Fix -Wno-unknown-warning support detection
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2015-12-16 Pedro Alves <palves@redhat.com>
2
3 * configure.ac (compiler warning flags): When testing a
4 -Wno-foo option, check whether -Wfoo works instead.
5 * configure: Regenerate.
6
7 2015-12-16 Pedro Alves <palves@redhat.com>
8
9 * common/vec.h (vec_offset): New macro.
10 (DEF_VEC_ALLOC_FUNC_I, DEF_VEC_ALLOC_FUNC_O): Use it instead of
11 offsetof.
12
13 2015-12-11 Don Breazeal <donb@codesourcery.com>
14
15 * NEWS: Announce fork and exec event support for target remote.
16
17 2015-12-11 Don Breazeal <donb@codesourcery.com>
18
19 * inferior.c (number_of_live_inferiors): New function.
20 (have_live_inferiors): Use number_of_live_inferiors in place
21 of duplicate code.
22 * inferior.h (number_of_live_inferiors): Declare new function.
23 * remote.c (set_general_process): Remove restriction on target
24 remote mode.
25 (remote_query_supported): Likewise.
26 (remote_detach_1): Exit in target remote mode only when there
27 is just one live inferior left.
28 (remote_disconnect): Unpush the target directly instead of
29 calling remote_mourn.
30 (remote_kill): Rewrite function to handle both target remote
31 and extended-remote. Call remote_kill_k.
32 (remote_kill_k): New function.
33 (extended_remote_kill): Delete function.
34 (remote_mourn, extended_remote_mourn): Combine functions into
35 one, remote_mourn, and enable extended functionality for target
36 remote.
37 (remote_pid_to_str): Enable "process" style ptid string for
38 target remote.
39 (remote_supports_multi_process): Remove restriction on target
40 remote mode.
41
42 2015-12-14 Andrew Burgess <andrew.burgess@embecosm.com>
43
44 * i386-tdep.c (i386_mpx_info_bounds): Use TYPE_LENGTH.
45 (i386_mpx_set_bounds): Likewise.
46 * solib-darwin.c (darwin_load_image_infos): Likewise.
47 (darwin_solib_read_all_image_info_addr): Likewise.
48
49 2015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
50
51 * cli/cli-cmds.c (_initialize_cli_cmds): Extend help text for
52 'list' command.
53
54 2015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
55
56 * cli/cli-cmds.c (list_command): Add an error when trying to use
57 '-' to scan read off the start of the source file.
58
59 2015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
60
61 * cli/cli-cmds.c (list_command): Check that the argument string is
62 a single character, either '+' or '-'.
63
64 2015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
65
66 * cli/cli-cmds.c (list_command): Move all handling of +/-
67 arguments into a single if block.
68
69 2015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
70
71 * cli/cli-cmds.c (list_command): Use NULL instead of 0 when
72 checking pointers.
73
74 2015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
75
76 * source.c (lines_to_list): Make static.
77
78 2015-12-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
79
80 * linux-thread-db.c (find_new_threads_callback): Use record_thread.
81
82 2015-12-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
83
84 * breakpoint.c (remove_thread_event_breakpoints): Remove.
85 * breakpoint.h (remove_thread_event_breakpoints): Remove
86 declaration.
87 * linux-nat.c (in_pid_list_p): Remove.
88 (lin_lwp_attach_lwp): Remove.
89 * linux-nat.h (lin_lwp_attach_lwp): Remove declaration.
90 * linux-thread-db.c (thread_db_use_events): Remove.
91 (struct thread_db_info) <td_create_bp_addr>: Remove.
92 <td_death_bp_addr>: Likewise.
93 <td_ta_event_addr_p>: Likewise.
94 <td_ta_set_event_p>: Likewise.
95 <td_ta_clear_event_p>: Likewise.
96 <td_ta_event_getmsg_p>: Likewise.
97 <td_thr_event_enable_p>: Likewise.
98 (attach_thread): Likewise.
99 (detach_thread): Likewise.
100 (have_threads_callback): Likewise.
101 (have_threads): Likewise.
102 (enable_thread_event): Likewise.
103 (enable_thread_event_reporting): Likewise.
104 (try_thread_db_load_1): Remove td_ta_event_addr, td_ta_set_event,
105 td_ta_clear_event, td_ta_event_getmsg, td_thr_event_enable
106 initializations.
107 (try_thread_db_load_1): Remove enable_thread_event_reporting call.
108 (disable_thread_event_reporting): Remove.
109 (record_thread): Adapt to thread_db_use_event removal.
110 (detach_thread): Remove.
111 (thread_db_detach): Adapt to thread_db_use_event removal.
112 (check_event): Remove.
113 (thread_db_wait): Adapt to thread events support removal.
114 (thread_db_mourn_inferior): Likewise.
115 (find_new_threads_callback): Likewise.
116 (find_new_threads_once): Likewise.
117 (thread_db_update_thread_list): Likewise.
118
119 2015-12-10 Andrew Burgess <andrew.burgess@embecosm.com>
120
121 * dwarf2read.c (dwarf2_ranges_read): Unify and fix base address
122 reading code.
123
124 2015-12-09 Kevin Buettner <kevinb@redhat.com>
125
126 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Perform a pointer
127 to address conversion for DWARF_VALUE_MEMORY.
128
129 2015-12-09 Luis Machado <lgustavo@codesourcery.com>
130
131 * gdb/mi/mi-cmd-var.c (mi_parse_format): Handle new "zero-hexadecimal"
132 format.
133 * gdb/varobj.c (varobj_format_string): Add "zero-hexadecimal" entry.
134 (format_code): Add 'z' entry.
135 (varobj_set_display_format): Handle FORMAT_ZHEXADECIMAL.
136 * gdb/varobj.h (varobj_display_formats) <FORMAT_ZHEXADECIMAL>: New enum
137 field.
138 * NEWS: Add new note to MI changes citing the new zero-hexadecimal
139 format for -var-set-format.
140
141 2015-12-09 Ruslan Kabatsayev <b7.10110111@gmail.com> (tiny patch)
142
143 PR gdb/18702
144 * configure.host: Fix detection of x86_64 host when setting
145 floatformats.
146
147 2015-12-08 Pierre-Marie de Rodat <derodat@adacore.com>
148
149 * NEWS: Announce this enhancement and the corresponding new
150 option.
151
152 2015-12-07 Pierre-Marie de Rodat <derodat@adacore.com>
153
154 * ada-lang.c (print_signatures): New.
155 (ada_print_symbol_signature): New.
156 (user_select_syms): Add signatures to the output of candidate
157 symbols using ada_print_symbol_signature.
158 (_initialize_ada_language): Add a "set/show ada
159 print-signatures" boolean option.
160
161 2015-12-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
162
163 * MAINTAINERS (Write After Approval): Add Andreas Arnez.
164
165 2015-12-06 Mike Stump <mikestump@comcast.net>
166 Joel Brobecker <brobecker@adacore.com>
167
168 * Makefile.in (TAGS): Replace i386-nat.h by x86-nat.h.
169 * x86-nat.c: Replace remaining references to i386-nat
170 by reference to x86-nat instead.
171
172 2015-12-05 Joel Brobecker <brobecker@adacore.com>
173
174 GDB 7.10.1 released.
175
176 2015-12-01 Ulrich Weigand <uweigand@de.ibm.com>
177
178 * remote.c (remote_parse_stop_reply): Avoid GCC 4.1 "operation
179 may be undefined" warning.
180
181 2015-12-01 Ulrich Weigand <uweigand@de.ibm.com>
182
183 * remote.c (remote_newthread_step): Initialize item.name.
184 (remote_get_threads_with_qthreadinfo): Likewise.
185
186 2015-11-30 Pedro Alves <palves@redhat.com>
187
188 PR 14618
189 * NEWS (New remote packets): Mention the N stop reply.
190 * remote.c (remote_protocol_features): Add "no-resumed" entry.
191 (remote_query_supported): Report no-resumed+ support.
192 (remote_parse_stop_reply): Handle 'N'.
193 (process_stop_reply): Handle TARGET_WAITKIND_NO_RESUMED.
194 (remote_wait_as): Handle 'N' / TARGET_WAITKIND_NO_RESUMED.
195 (_initialize_remote): Register "set/show remote
196 no-resumed-stop-reply" commands.
197
198 2015-11-30 Pedro Alves <palves@redhat.com>
199
200 PR 14618
201 * infrun.c (handle_no_resumed): New function.
202 (handle_inferior_event_1) <TARGET_WAITKIND_NO_RESUMED>: Defer to
203 handle_no_resumed.
204
205 2015-11-30 Pedro Alves <palves@redhat.com>
206
207 * NEWS (New commands): Mention "set/show remote thread-events"
208 commands.
209 (New remote packets): Mention thread created/exited stop reasons
210 and QThreadEvents packet.
211 * infrun.c (disable_thread_events): New function.
212 (stop_all_threads): Disable/enable thread create/exit events.
213 Handle TARGET_WAITKIND_THREAD_EXITED.
214 (handle_inferior_event_1): Handle TARGET_WAITKIND_THREAD_CREATED
215 and TARGET_WAITKIND_THREAD_EXITED.
216 * remote.c (remove_child_of_pending_fork): Also remove threads of
217 threads that have TARGET_WAITKIND_THREAD_EXITED events.
218 (remote_parse_stop_reply): Handle "create" magic register. Handle
219 'w' stop reply.
220 (initialize_remote): Install remote_thread_events as
221 to_thread_events target hook.
222 (remote_thread_events): New function.
223 * target-delegates.c: Regenerate.
224 * target.c (target_thread_events): New function.
225 * target.h (struct target_ops) <to_thread_events>: New field.
226 (target_thread_events): Declare.
227 * target/waitstatus.c (target_waitstatus_to_string): Handle
228 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
229 * target/waitstatus.h (enum target_waitkind)
230 <TARGET_WAITKIND_THREAD_CREATED, TARGET_WAITKIND_THREAD_EXITED):
231 New values.
232
233 2015-11-30 Pedro Alves <palves@redhat.com>
234
235 * NEWS (New remote packets): Mention vCtrlC.
236 * remote.c (PACKET_vCtrlC): New enum value.
237 (async_remote_interrupt): Call target_interrupt instead of
238 target_stop.
239 (remote_interrupt_as): Remove 'ptid' parameter.
240 (remote_interrupt_ns): New function.
241 (remote_stop): Adjust.
242 (remote_interrupt): If the target is in non-stop mode, try
243 interrupting with vCtrlC.
244 (initialize_remote): Install set remote ctrl-c packet.
245
246 2015-11-30 Pedro Alves <palves@redhat.com>
247
248 * remote.c (struct remote_state) <remote_watch_data_address,
249 stop_reason>: Delete fields.
250 (struct private_thread_info) <stop_reason, watch_data_address>:
251 New fields.
252 (resume_clear_thread_private_info): New function.
253 (append_pending_thread_resumptions): Call it.
254 (remote_resume): Clear all threads' private info.
255 (process_stop_reply): Adjust.
256 (remote_wait_as): Don't reference remote_state's stop_reason
257 field.
258 (remote_stopped_by_sw_breakpoint)
259 (remote_stopped_by_hw_breakpoint, remote_stopped_by_watchpoint)
260 (remote_stopped_data_address): Adjust to refer get data from the
261 current thread.
262
263 2015-11-30 Pedro Alves <palves@redhat.com>
264
265 * infcmd.c (attach_post_wait): If the target is always in non-stop
266 mode, and the UI is in all-stop mode, stop all threads and pick
267 the one with lowest number as current.
268
269 2015-11-30 Pedro Alves <palves@redhat.com>
270
271 * gdbthread.h (switch_to_thread_no_regs): Declare.
272 * infcmd.c (setup_inferior): New function, factored out from ...
273 (attach_command_post_wait): ... this. Rename to ...
274 (attach_post_wait): ... this. Replace parameter async_exec with
275 attach_post_wait_mode parameter. Adjust.
276 (enum attach_post_wait_mode): New enum.
277 (struct attach_command_continuation_args): Replace 'async_exec'
278 field with 'mode' field.
279 (attach_command_continuation): Adjust.
280 (attach_command): Add comment. Mark the inferior as needing
281 setup. Adjust to use enum attach_post_wait_mode.
282 (notice_new_inferior): Use switch_to_thread_no_regs. Adjust to
283 use enum attach_post_wait_mode.
284 * inferior.h (setup_inferior): Declare.
285 (struct inferior) <needs_setup>: New field.
286 * infrun.c (set_last_target_status): Make extern.
287 (stop_all_threads): Make extern. Setup inferior, if necessary.
288 * infrun.h (set_last_target_status, stop_all_threads): Declare.
289 * remote-notif.c (remote_async_get_pending_events_handler)
290 (handle_notification): Replace non_stop checks with
291 target_is_non_stop_p() checks.
292 * remote.c (remote_notice_new_inferior): Remove non_stop check.
293 (remote_update_thread_list): Replace non_stop check with
294 target_is_non_stop_p() check.
295 (print_one_stopped_thread): New function.
296 (process_initial_stop_replies): New 'from_tty' parameter.
297 "Notice" all new live inferiors after storing initial stops as
298 pending status in each corresponding thread. If all-stop, stop
299 all threads, try picking a signalled thread as current, and print
300 the status of that one thread. Record the last target status.
301 (remote_start_remote): Replace non_stop checks with
302 target_is_non_stop_p() checks. Don't query for the remote current
303 thread of use qOffsets here. Pass from_tty to
304 process_initial_stop_replies.
305 (extended_remote_attach): Replace non_stop checks with
306 target_is_non_stop_p() checks.
307 (extended_remote_post_attach): Send qOffsets here.
308 (remote_vcont_resume, remote_resume, remote_stop)
309 (remote_interrupt, remote_parse_stop_reply, remote_wait): Replace
310 non_stop checks with target_is_non_stop_p() checks.
311 (remote_async): If target is non-stop, mark/clear the pending
312 events token.
313 * thread.c (switch_to_thread_no_regs): New function.
314
315 2015-11-30 Pedro Alves <palves@redhat.com>
316
317 * gdb.mi/mi-nonstop.exp: Append "set non-stop on" to GDBFLAGS
318 instead of issuing "-gdb-set non-stop 1" after starting gdb.
319 Use mi_is_target_remote instead of checking "is_remote target".
320 * lib/gdb.exp (gdb_is_target_remote): Rename to ...
321 (gdb_is_target_remote_prompt): ... this, and add 'prompt_regexp'
322 parameter.
323 (gdb_is_target_remote): Reimplement.
324 * lib/mi-support.exp (mi_is_target_remote): New procedure.
325
326 2014-11-28 Pedro Alves <palves@redhat.com>
327
328 * cp-name-parser.y (conversion_op): Use
329 DEMANGLE_COMPONENT_CONVERSION instead of DEMANGLE_COMPONENT_CAST.
330
331 2015-11-27 Simon Marchi <simon.marchi@ericsson.com>
332
333 * remote.c (start_thread): Add cast.
334
335 2015-11-27 Yao Qi <yao.qi@linaro.org>
336
337 * nat/aarch64-linux-hw-point.c (aarch64_dr_state_remove_one_point):
338 Don't assert on alignment.
339 (aarch64_handle_breakpoint): Only check alignment when IS_INSERT
340 is true.
341
342 2015-11-27 Yao Qi <yao.qi@linaro.org>
343
344 * aarch64-tdep.c (is_hfa): Rename to ...
345 (is_hfa_or_hva): ... this. Handle vector type. All callers
346 updated.
347 (aarch64_extract_return_value): Update debugging message.
348 (aarch64_store_return_value): Likewise.
349 (aarch64_return_in_memory): Update comments.
350
351 2015-11-27 Yao Qi <yao.qi@linaro.org>
352
353 * aarch64-tdep.c (aarch64_type_align): For vector type, return
354 its length, but with the maximum of 16 bytes.
355 (is_hfa): Return zero for vector type.
356 (aarch64_push_dummy_call): Handle short vectors.
357 (aarch64_extract_return_value): Likewise.
358 (aarch64_store_return_value): Likewise.
359
360 2015-11-26 Daniel Colascione <dancol@dancol.org>
361 2015-11-26 Simon Marchi <simon.marchi@ericsson.com>
362
363 * linux-nat.c (linux_nat_thread_name): Replace implementation by call
364 to linux_proc_tid_get_name.
365 * nat/linux-procfs.c (linux_proc_tid_get_name): New function,
366 implementation inspired by linux_nat_thread_name.
367 * nat/linux-procfs.h (linux_proc_tid_get_name): New declaration.
368 * remote.c (struct private_thread_info) <name>: New field.
369 (free_private_thread_info): Free name field.
370 (remote_thread_name): New function.
371 (thread_item_t) <name>: New field.
372 (clear_threads_listing_context): Free name field.
373 (start_thread): Get name xml attribute.
374 (thread_attributes): Add "name" attribute.
375 (remote_update_thread_list): Copy name field.
376 (init_remote_ops): Assign remote_thread_name callback.
377 * target.h (target_thread_name): Update comment.
378 * NEWS: Mention remote thread name support.
379
380 2015-11-26 Simon Marchi <simon.marchi@ericsson.com>
381
382 * linux-nat.c (linux_nat_thread_name): Constify return value.
383 * target.h (struct target_ops) <to_thread_name>: Likewise.
384 (target_thread_name): Likewise.
385 * target.c (target_thread_name): Likewise.
386 * target-delegates.c (debug_thread_name): Regenerate.
387 * python/py-infthread.c (thpy_get_name): Constify local variables.
388 * thread.c (print_thread_info): Likewise.
389 (thread_find_command): Likewise.
390
391 2015-11-26 Markus Metzger <markus.t.metzger@intel.com>
392
393 PR 19297
394 * btrace.c (btrace_enable): Check whether HAVE_LIBIPT is defined.
395
396 2015-11-24 Pedro Alves <palves@redhat.com>
397
398 * NEWS: Mention that a few "info" commands now list the
399 corresponding items in ascending ID order.
400
401 2015-11-24 Pedro Alves <palves@redhat.com>
402
403 PR 17539
404 * printcmd.c (display_command): Append new display at the end of
405 the list.
406
407 2015-11-24 Pedro Alves <palves@redhat.com>
408
409 PR 17539
410 * printcmd.c (display_command): Append new display at the end of
411 the list.
412
413 2015-11-24 Pedro Alves <palves@redhat.com>
414
415 PR 17539
416 * inferior.c (add_inferior_silent): Append the new inferior to the
417 end of the list.
418 * progspace.c (add_program_space): Append the new pspace to the
419 end of the list.
420 * thread.c (new_thread): Append the new thread to the end of the
421 list.
422
423 2015-11-24 Pedro Alves <palves@redhat.com>
424
425 * linux-tdep.c (find_stop_signal): Delete.
426 (struct linux_corefile_thread_data) <pid>: Remove field.
427 (linux_corefile_thread_callback): Rename to ...
428 (linux_corefile_thread): ... this. Now takes a struct
429 linux_corefile_thread_data pointer rather than a void pointer.
430 Remove thread state and thread pid checks.
431 (linux_make_corefile_notes): Prefer dumping the signalled thread
432 first. Use ALL_NON_EXITED_THREADS instead of
433 iterate_over_threads.
434
435 2015-11-23 Par Olsson <par.olsson@windriver.com>
436
437 * breakpoint.c (tracepoint_print_recreate): Fix logic error
438 if -> else if.
439
440 2015-11-23 Kevin Buettner <kevinb@redhat.com>
441
442 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Scan backwards
443 over all zero-sized symbols.
444
445 2015-11-23 Joel Brobecker <brobecker@adacore.com>
446
447 * stack.c (print_frame_local_vars): Temporarily set the selected
448 frame to FRAME while printing the frame's local variables.
449
450 2015-11-23 Joel Brobecker <brobecker@adacore.com>
451
452 * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue):
453 Increment PC in while loop skipping "pop reg" instructions.
454
455 2015-11-23 Joel Brobecker <brobecker@adacore.com>
456
457 * arm-tdep.c (arm_exidx_unwind_sniffer): Do not check for a frame
458 stuck on a system call if the given frame is the innermost frame.
459
460 2015-11-23 Joel Brobecker <brobecker@adacore.com>
461
462 * dwarf2read.c (read_structure_type): Set the type's length
463 to zero if it has a DW_AT_byte_size attribute which is not
464 a constant.
465
466 2015-11-23 Tristan Gingold <gingold@adacore.com>
467
468 * darwin-nat.c (darwin_ptrace): Avoid a cast.
469 (darwin_resume_thread): Ditto. And always set or reset
470 single step.
471
472 2015-11-23 Tristan Gingold <gingold@adacore.com>
473
474 * darwin-nat.c (darwin_read_dyld_info): Write address in
475 big-endian order.
476 * solib-darwin.c (darwin_validate_exec_header): New function,
477 extracted from...
478 (darwin_read_exec_load_addr_from_dyld): ...here.
479 (darwin_read_exec_load_addr_at_init): New function.
480 (darwin_solib_read_all_image_info_addr): Adjust after
481 darwin_read_dyld_info change.
482 (darwin_solib_create_inferior_hook): Support PIE.
483
484 2015-11-23 Tristan Gingold <gingold@adacore.com>
485
486 * darwin-nat.c (darwin_ptrace): Add a cast to fix warning.
487 (darwin_resume, cancel_breakpoint, _initialize_darwin_inferior):
488 Likewise.
489 (darwin_read_write_inferior): Rewrite using mach_vm_read_overwrite.
490
491 2015-11-19 Don Breazeal <donb@codesourcery.com>
492
493 * target.c (read_memory_robust): Call read_whatever_is_readable
494 with arguments in the correct order.
495
496 2015-11-19 Pedro Alves <palves@redhat.com>
497
498 * remote.c (remote_query_supported): Send the "xmlRegisters="
499 feature last.
500
501 2015-11-19 Simon Marchi <simon.marchi@ericsson.com>
502
503 * nat/aarch64-linux-hw-point.c (aarch64_linux_set_debug_regs): Change
504 form of iov_len computation.
505
506 2015-11-19 Pedro Alves <palves@redhat.com>
507
508 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
509 mode.
510 * configure: Regenerate.
511
512 2015-11-19 Pedro Alves <palves@redhat.com>
513
514 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Remove -fpermissive.
515 * configure: Regenerate.
516
517 2015-11-19 Pedro Alves <palves@redhat.com>
518
519 * breakpoint.c (software_watchpoint_add_no_memory_location)
520 (is_no_memory_software_watchpoint): New functions.
521 (update_watchpoint): Use
522 software_watchpoint_add_memoryless_location.
523 (breakpoint_address_bits): Use is_no_memory_software_watchpoint.
524
525 2015-11-19 Simon Marchi <simon.marchi@ericsson.com>
526 Pedro Alves <palves@redhat.com>
527
528 * s390-linux-tdep.c (s390_canonicalize_syscall): Add casts and
529 intermediate 'int' variable.
530
531 2015-11-19 Pedro Alves <palves@redhat.com>
532
533 * linux-thread-db.c (try_thread_db_load_1): Add cast.
534
535 2015-11-19 Pedro Alves <palves@redhat.com>
536
537 * remote.c (remote_unpush_target): Use
538 pop_all_targets_at_and_above instead of pop_all_targets_above.
539 * target.c (unpush_target_and_assert): New function, factored out
540 from ...
541 (pop_all_targets_above): ... here.
542 (pop_all_targets_at_and_above): New function.
543 * target.h (pop_all_targets_at_and_above): Declare.
544
545 2015-11-18 Simon Marchi <simon.marchi@ericsson.com>
546
547 * valops.c (value_string): Constify 'ptr' parameter.
548 * value.h (value_string): Constify 'ptr' parameter.
549
550 2015-11-18 Simon Marchi <simon.marchi@ericsson.com>
551 Pedro Alves <palves@redhat.com>
552
553 * break-catch-sig.c (signal_catchpoint_print_one): Add cast.
554 * c-exp.y (parse_string_or_char, yylex): Add casts.
555 * c-lang.c (evaluate_subexp_c): Add casts.
556 * d-exp.y (parse_string_or_char, yylex): Add casts.
557 * go-exp.y (parse_string_or_char, build_packaged_name): Add casts.
558 * p-valprint.c (pascal_object_print_value_fields): Add casts.
559 * valprint.c (generic_emit_char, generic_printstr): Add casts.
560
561 2015-11-18 Simon Marchi <simon.marchi@ericsson.com>
562
563 * valops.c (value_cstring): Constify 'ptr' parameter.
564 * value.h (value_cstring): Constify 'ptr' parameter.
565
566 2015-11-18 Yao Qi <yao.qi@linaro.org>
567
568 * aarch64-tdep.c (pass_in_v): Add argument len. Add local array
569 reg. Callers updated.
570
571 2015-11-17 Yao Qi <yao.qi@linaro.org>
572
573 * infrun.c (resume): Check control.trap_expected only
574 when deciding the set of threads to resume.
575
576 2015-11-17 Pedro Alves <palves@redhat.com>
577
578 * cp-namespace.c (cp_lookup_bare_symbol)
579 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
580 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
581 (cp_lookup_nested_symbol): Use null_block_symbol.
582 * d-namespace.c (d_lookup_symbol, d_lookup_nested_symbol)
583 (d_lookup_symbol_imports, d_lookup_symbol_module): Use
584 null_block_symbol.
585 * symtab.c (null_block_symbol): New global.
586 * symtab.h (null_block_symbol): Declare.
587
588 2015-11-17 Pedro Alves <palves@redhat.com>
589
590 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
591 (GDB_XCPT_RAW_TRY, GDB_XCPT): Define.
592 Replace __cplusplus checks with GDB_XCPT checks throughout.
593 * common/common-exceptions.c: Replace __cplusplus checks with
594 GDB_XCPT checks throughout.
595
596 2015-11-17 Pedro Alves <palves@redhat.com>
597
598 * common/common-defs.h (ATTRIBUTE_PRINTF): Redefine in terms of
599 _GL_ATTRIBUTE_FORMAT_PRINTF after including ansidecl.h.
600
601 2015-11-17 Pedro Alves <palves@redhat.com>
602
603 * common/common-defs.h (__STDC_CONSTANT_MACROS)
604 (__STDC_LIMIT_MACROS): Define before including stdint.h.
605
606 2015-11-17 Pedro Alves <palves@redhat.com>
607
608 * windows-nat.c (handle_exception): Return 0 for first chance
609 exceptions.
610 (get_windows_debug_event): Adjust.
611
612 2015-11-17 Pedro Alves <palves@redhat.com>
613
614 * windows-nat.c (xslate): Use GDB_SIGNAL_UNKNOWN instead of -1 as
615 signal number for terminator.
616
617 2015-11-17 Pedro Alves <palves@redhat.com>
618
619 * ser-tcp.c (net_open) : Cast getsockopt argument to char *
620 instead of void *. Update comment.
621 (net_read_prim): Cast recv argument to char * instead of void *.
622 (net_write_prim): Cast send argument to char *. Add comment.
623
624 2015-11-17 Pedro Alves <palves@redhat.com>
625
626 * win32-i386-low.c (update_debug_registers_callback)
627 (win32_get_current_dr): Add cast.
628 * win32-low.c (thread_rec, delete_thread_info)
629 (continue_one_thread): Add casts.
630 (strwinerror): Cast FormatMessage argument to LPTSTR instead of
631 LPVOID.
632 (win32_create_inferior, suspend_one_thread): Add casts.
633
634 2015-11-17 Pedro Alves <palves@redhat.com>
635
636 * windows-nat.c (AdjustTokenPrivileges_ftype)
637 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
638 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
639 (GetCurrentConsoleFont_ftype, GetModuleInformation_ftype)
640 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
641 (GetConsoleFontSize_ftype): New typedefs.
642 (AdjustTokenPrivileges, DebugActiveProcessStop)
643 (DebugBreakProcess, DebugSetProcessKillOnExit, EnumProcessModules)
644 (GetConsoleFontSize, GetCurrentConsoleFont, GetModuleInformation)
645 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize):
646 Adjust.
647 (GetModuleFileNameEx_ftype): New typedef.
648 (GetModuleFileNameEx): Use it.
649 (_initialize_loadable): Define GPA macro and use it.
650
651 2015-11-17 Pedro Alves <palves@redhat.com>
652
653 * gdb-dlfcn.c (gdb_dlsym, gdb_dlclose) [__MINGW32__]: Add casts to
654 HMODULE.
655
656 2015-11-17 Pedro Alves <palves@redhat.com>
657
658 * exec.c (exec_file_attach, symfile_bfd_open) [__GO32__ || _WIN32
659 || __CYGWIN__]: Add casts.
660 * utils.c (gdb_filename_fnmatch): Add cast.
661 * windows-nat.c (windows_create_inferior): Add cast.
662
663 2015-11-17 Pedro Alves <palves@redhat.com>
664
665 * ser-mingw.c (CancelIo_ftype): New typedef.
666 (CancelIo): Use CancelIo_ftype.
667 (ser_windows_close, ser_windows_wait_handle)
668 (ser_windows_read_prim, stop_select_thread)
669 (console_select_thread, pipe_select_thread, file_select_thread)
670 (ser_console_wait_handle, ser_console_done_wait_handle)
671 (ser_console_close, cleanup_pipe_state, pipe_windows_close)
672 (pipe_windows_write, pipe_wait_handle, pipe_done_wait_handle)
673 (net_windows_socket_check_pending, net_windows_select_thread)
674 (net_windows_wait_handle, net_windows_done_wait_handle)
675 (net_windows_close): Add casts.
676 (_initialize_ser_windows): Cast to CancelIo_ftype* instead of
677 void*.
678
679 2015-11-17 Simon Marchi <simon.marchi@ericsson.com>
680
681 * c-exp.y (exp): Adjust, change enum c_string_type to
682 c_string_type.
683 (parse_string_or_char): Likewise.
684 * c-lang.c (charset_for_string_type): Likewise.
685 (classify_type): Likewise.
686 (c_printchar): Likewise.
687 (c_printstr): Likewise.
688 (evaluate_subexp_c): Likewise. And change cast to enum
689 c_string_type_values.
690 * c-lang.h: Include "common/enum_flags.h".
691 (enum c_string_type): Rename to...
692 (enum c_string_type_values): ...this.
693 (c_string_type): Define new enum flags type.
694
695 2015-11-17 Pedro Alves <palves@redhat.com>
696
697 * btrace.h: Include common/enum-flags.h.
698 (btrace_insn_flags): Define.
699 (struct btrace_insn) <flags>: Change type.
700 (btrace_function_flags): Define.
701 (struct btrace_function) <flags>: Change type.
702 (btrace_thread_flags): Define.
703 (struct btrace_thread_info) <flags>: Change type.
704 * c-exp.y (token_flags): Rename to ...
705 (token_flag): ... this.
706 (token_flags): Define.
707 (struct token) <flags>: Change type.
708 * common/enum-flags.h: New file.
709 * compile/compile-c-types.c (convert_qualified): Change type of
710 'quals' local.
711 * compile/compile-internal.h: Include "common/enum-flags.h".
712 (gcc_qualifiers_flags): Define.
713 * completer.c (enum reg_completer_targets): Rename to ...
714 (enum reg_completer_target): ... this.
715 (reg_completer_targets): Define.
716 (reg_or_group_completer_1): Change type of 'targets' parameter.
717 * disasm.c (do_mixed_source_and_assembly_deprecated): Change type
718 of 'psl_flags' local.
719 (do_mixed_source_and_assembly): Change type of 'psl_flags' local.
720 * infrun.c: Include "common/enum-flags.h".
721 (enum step_over_what): Rename to ...
722 (enum step_over_what_flag): ... this.
723 (step_over_what): Change type.
724 (start_step_over): Change type of 'step_what' local.
725 (thread_still_needs_step_over): Now returns a step_over_what.
726 Adjust.
727 (keep_going_pass_signal): Change type of 'step_what' local.
728 * linux-tdep.c: Include "common/enum-flags.h".
729 (enum filterflags): Rename to ...
730 (enum filter_flag): ... this.
731 (filter_flags): Define.
732 (dump_mapping_p): Change type of 'filterflags' parameter.
733 (linux_find_memory_regions_full): Change type of 'filterflags'
734 local.
735 (linux_find_memory_regions_full): Pass the address of an unsigned
736 int to sscanf instead of the address of an enum.
737 * record-btrace.c (btrace_print_lines): Change type of local
738 'psl_flags'.
739 (btrace_call_history): Replace 'flags' parameter
740 with 'int_flags' parameter. Adjust.
741 (record_btrace_call_history, record_btrace_call_history_range)
742 (record_btrace_call_history_from): Rename 'flags' parameter to
743 'int_flags'. Use record_print_flags.
744 * record.h: Include "common/enum-flags.h".
745 (record_print_flags): Define.
746 * source.c: Include "common/enum-flags.h".
747 (print_source_lines_base, print_source_lines): Change type of
748 flags parameter.
749 * symtab.h: Include "common/enum-flags.h".
750 (enum print_source_lines_flags): Rename to ...
751 (enum print_source_lines_flag): ... this.
752 (print_source_lines_flags): Define.
753 (print_source_lines): Change prototype.
754
755 2015-11-17 Pedro Alves <palves@redhat.com>
756
757 * guile/scm-disasm.c (gdbscm_disasm_read_memory): Return -1 on
758 error instead of TARGET_XFER_E_IO.
759 (gdbscm_disasm_memory_error): Always pass TARGET_XFER_E_IO to
760 memory_error.
761
762 2015-11-17 Dominik Vogt <vogt@linux.vnet.ibm.com>
763
764 * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend)
765 (prologue_inst_adjust_sp, hppa_frame_cache): Fix left shift of negative
766 value.
767 * dwarf2read.c (read_subrange_type): Likewise.
768
769 2015-11-16 Yao Qi <yao.qi@linaro.org>
770
771 * aarch64-tdep.c (aarch64_extract_return_value): Change array
772 buf's length to V_REGISTER_SIZE.
773
774 2015-11-16 Yao Qi <yao.qi@linaro.org>
775
776 * aarch64-tdep.c (pass_in_x_or_stack): Change argument type
777 from bfd_byte * to value *. Caller updated.
778 (pass_in_x): Likewise.
779 (pass_in_v_or_stack): Likewise.
780 (pass_on_stack): Likewise.
781
782 2015-11-16 Yao Qi <yao.qi@linaro.org>
783
784 * aarch64-tdep.c (aarch64_push_dummy_call): Call value_contents
785 instead of value_contents_writeable.
786 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
787
788 2015-11-16 Yao Qi <yao.qi@linaro.org>
789
790 * arm-tdep.c (arm_push_dummy_call): New array buf. Store regval
791 to buf. Pass buf instead of val to push_stack_item.
792
793 2015-11-13 Yao Qi <yao.qi@linaro.org>
794
795 PR tdep/19051
796 * arm-tdep.c (arm_type_align): Return the right alignment
797 value for vector.
798 (arm_vfp_cprc_sub_candidate): Return true for 64-bit and
799 128-bit vector types.
800 (arm_return_in_memory): Handel vector type.
801
802 2015-11-13 Yao Qi <yao.qi@linaro.org>
803
804 * arm-tdep.c (arm_return_in_memory): Rewrite it.
805 (arm_return_value): Call arm_return_in_memory for
806 TYPE_CODE_COMPLEX.
807
808 2015-11-12 Yao Qi <yao.qi@linaro.org>
809
810 * arm-tdep.c (push_stack_item): Change contents type to
811 const gdb_byte *.
812
813 2015-11-11 Simon Marchi <simon.marchi@ericsson.com>
814
815 * inf-ptrace.c (inf_ptrace_fetch_register): Change long int *
816 cast to PTRACE_TYPE_RET *.
817 (inf_ptrace_store_register): Likewise.
818
819 2015-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
820
821 * avr-tdep.c (_initialize_avr_tdep): Switch to 'add_info' for creating
822 info sub-commands.
823 * gnu-nat.c (add_task_commands): Likewise.
824 * macrocmd.c (_initialize_macrocmd): Likewise.
825
826 2015-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
827
828 * cli/cli-decode.c (add_info): Switch to class_info.
829
830 2015-11-09 Joel Brobecker <brobecker@adacore.com>
831
832 * ada-lang.c (ada_is_wrapper_field): Add special handling
833 for fields called "RETVAL".
834
835 2015-11-09 Yao Qi <yao.qi@linaro.org>
836
837 * arm-tdep.c (arm_exidx_new_objfile): Use
838 ELF_STRING_ARM_unwind.
839
840 2015-11-09 Yao Qi <yao.qi@linaro.org>
841
842 * infrun.c (displaced_step_in_progress_thread): New function.
843 (handle_inferior_event_1): Call it.
844
845 2015-11-05 Yao Qi <yao.qi@linaro.org>
846
847 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Call
848 aarch64_decode_insn and decode instruction by aarch64_inst.
849
850 2015-11-05 Yao Qi <yao.qi@linaro.org>
851
852 * aarch64-tdep.c (extract_signed_bitfield): Remove.
853 (decode_masked_match): Remove.
854 (aarch64_decode_add_sub_imm): Remove.
855 (aarch64_decode_br): Remove.
856 (aarch64_decode_eret): Remove.
857 (aarch64_decode_movz): Remove.
858 (aarch64_decode_orr_shifted_register_x): Remove.
859 (aarch64_decode_ret): Remove.
860 (aarch64_decode_stp_offset): Remove.
861 (aarch64_decode_stur): Remove.
862 (aarch64_analyze_prologue): Call aarch64_decode_insn
863 and use aarch64_inst to decode instructions.
864
865 2015-11-05 Yao Qi <yao.qi@linaro.org>
866
867 * aarch64-tdep.c (aarch64_decode_stp_offset): New argument
868 wback.
869 (aarch64_decode_stp_offset_wb): Removed.
870 (aarch64_analyze_prologue): Don't use
871 aarch64_decode_stp_offset_wb.
872
873 2015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
874
875 PR/18376
876 * gdb/s390-linux-tdep.c (s390_is_partial_instruction): New function.
877 (s390_software_single_step): New function.
878 (s390_displaced_step_hw_singlestep): New function.
879 (s390_gdbarch_init): Fill gdbarch slots with the above.
880
881 2015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
882
883 PR/18376
884 * gdb/configure.tgt: Add linux-record.o to s390*-linux.
885 * gdb/s390-linux-tdep.c: #include "linux-record.h", "record-full.h"
886 (s390_linux_record_tdep): New static global variable.
887 (s390x_linux_record_tdep): New static global variable.
888 (s390_all_but_pc_registers_record): New function.
889 (s390_canonicalize_syscall): New function.
890 (s390_linux_syscall_record): New function.
891 (s390_linux_record_signal): New function.
892 (s390_record_calc_disp_common): New function.
893 (s390_record_calc_disp): New function.
894 (s390_record_calc_disp_vsce): New function.
895 (s390_record_calc_rl): New function.
896 (s390_record_gpr_g): New function.
897 (s390_record_gpr_h): New function.
898 (s390_record_vr): New function.
899 (s390_process_record): New function.
900 (s390_init_linux_record_tdep): New function.
901 (s390_gdbarch_init): Fill record function slots.
902
903 2015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
904
905 * record-full.c (record_full_exec_insn): Use xmalloc for temporary
906 memory storage.
907
908 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
909
910 * record.c (get_insn_history_modifiers): Set DISASSEMBLY_SOURCE
911 instead of DISASSEMBLY_SOURCE_DEPRECATED. Also accept /s.
912 (_initialize_record): Document the /s modifier.
913 * NEWS: Announce record instruction-history's new /s modifier.
914
915 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
916
917 * record-btrace.c (struct btrace_line_range): New.
918 (btrace_mk_line_range, btrace_line_range_add)
919 (btrace_line_range_is_empty, btrace_line_range_contains_range)
920 (btrace_find_line_range, btrace_print_lines): New.
921 (btrace_insn_history): Add source interleaving algorithm.
922
923 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
924
925 * disasm.h (DISASSEMBLY_SPECULATION): New.
926 (struct disasm_insn): New.
927 (gdb_pretty_print_insn): New.
928 * disasm.c (gdb_pretty_print_insn): Replace parameter PC with INSN.
929 Update users. Print instruction number and indicate speculative
930 execution, if requested.
931
932 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
933
934 * disasm.c (dump_insns): Split into this and ...
935 (gdb_pretty_print_insn): ... this.
936
937 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
938
939 * xtensa-linux-nat.c (supply_gregset_reg): Make static.
940 (xtensa_linux_fetch_inferior_registers): Likewise.
941 (xtensa_linux_store_inferior_registers): Likewise.
942
943 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
944
945 * arm-linux-nat.c (arm_linux_read_description): Add cast.
946
947 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
948
949 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint): Change
950 type of rw to enum target_hw_bp_type.
951 (ppc_linux_remove_mask_watchpoint): Likewise.
952 * target.c (target_insert_mask_watchpoint): Likewise.
953 (target_remove_mask_watchpoint): Likewise.
954 * target.h (target_insert_mask_watchpoint): Likewise.
955 (target_remove_mask_watchpoint): Likewise.
956 (struct target_ops) <to_insert_mask_watchpoint>: Likewise.
957 (struct target_ops) <to_remove_mask_watchpoint>: Likewise.
958 * target-delegates.c: Regenerate.
959
960 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
961
962 * remote-sim.c (check_for_duplicate_sim_descriptor): Add casts.
963 (get_sim_inferior_data): Likewise.
964 (sim_inferior_data_cleanup): Likewise.
965 (gdbsim_close_inferior): Likewise.
966 (gdbsim_resume_inferior): Likewise.
967 (gdbsim_wait): Likewise.
968 (simulator_command): Likewise.
969 (sim_command_completer): Likewise.
970
971 2015-11-03 Marcin Kościelnicki <koriakin@0x04.net>
972
973 * MAINTAINERS (Write After Approval): Add Marcin Kościelnicki.
974
975 2015-10-30 Pedro Alves <palves@redhat.com>
976
977 * breakpoint.c (breakpoint_in_range_p)
978 (breakpoint_location_address_range_overlap): New functions.
979 * breakpoint.h (breakpoint_in_range_p): New declaration.
980 * infrun.c (displaced_step_prepare_throw): If there's a breakpoint
981 in the scratch pad range, don't displaced step.
982
983 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
984
985 * amd64-linux-tdep.c (amd64_x32_linux_init_abi): Fix size_msghdr,
986 size_stack_t, size_size_t, size_iovec.
987
988 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
989
990 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_termios.
991 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_termios.
992 (amd64_x32_linux_init_abi): Fix size_termios.
993
994 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
995
996 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix TASK_COMM_LEN.
997
998 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
999
1000 * linux-record.c (record_linux_system_call): Fix old_select.
1001
1002 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1003
1004 * linux-record.c (record_linux_system_call): Fix newstatat.
1005
1006 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1007
1008 * linux-record.c (record_linux_system_call): Fix [gs]etgroups16.
1009
1010 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1011
1012 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add size_time_t.
1013 * amd64-linux-tdep.c (amd64_linux_init_abi): Add size_time_t.
1014 (amd64_x32_linux_init_abi): Add size_time_t.
1015 * arm-linux-tdep.c (arm_linux_init_abi): Add size_time_t.
1016 * i386-linux-tdep.c (i386_linux_init_abi): Add size_time_t.
1017 * linux-record.c (record_linux_system_call): Add time, waitpid, pipe
1018 handling.
1019 * linux-record.h (struct linux_record_tdep): Add size_time_t.
1020 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Add size_time_t.
1021
1022 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1023
1024 * linux-record.c (record_linux_msghdr): Fix msg_namelen handling.
1025
1026 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1027
1028 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove
1029 size_dirent{,64}, add size_old_dirent.
1030 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_dirent{,64},
1031 add size_old_dirent.
1032 (amd64_x32_linux_init_abi): Remove size_dirent{,64}, add
1033 size_old_dirent.
1034 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_dirent{,64},
1035 add size_old_dirent.
1036 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_dirent{,64},
1037 add size_old_dirent.
1038 * linux-record.c (record_linux_system_call): Fix handling of readdir
1039 and getdents{,64}.
1040 * linux-record.h (struct linux_record_tdep): Remove size_dirent{,64},
1041 add size_old_dirent.
1042 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove
1043 size_dirent{,64}, add size_old_dirent.
1044
1045 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1046
1047 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_sigaction,
1048 size_sigset_t, size_old_sigaction, size_old_sigset_t.
1049 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_sigaction,
1050 size_sigset_t, size_old_sigaction, size_old_sigset_t.
1051 (amd64_x32_linux_init_abi): Fix size_sigaction, size_sigset_t,
1052 size_old_sigaction, size_old_sigset_t.
1053 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_sigaction,
1054 size_old_sigaction, size_old_sigset_t.
1055 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_sigaction,
1056 size_old_sigaction, size_old_sigset_t.
1057 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix size_sigaction,
1058 size_sigset_t, size_old_sigaction, size_old_sigset_t.
1059
1060 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1061
1062 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_[ug]id.
1063 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_[ug]id.
1064
1065 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1066
1067 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo.
1068 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo.
1069 (amd64_x32_linux_init_abi): Remove size_siginfo.
1070 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo.
1071 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo.
1072 * linux-record.c (record_linux_system_call): Change size_siginfo
1073 to size_siginfo_t.
1074 * linux-record.h (struct linux_record_tdep): Remove size_siginfo.
1075 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo.
1076
1077 2015-10-29 Pedro Alves <palves@redhat.com>
1078
1079 * mdebugread.c (add_data_symbol): New function, factored out from
1080 ...
1081 (parse_symbol): ... here. Delete 'theclass' local.
1082
1083 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1084
1085 * jit.c (jit_target_read_impl): Add cast.
1086
1087 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1088
1089 * jit.c (jit_reader_load): Add cast.
1090
1091 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1092
1093 * dwarf2read.c (partial_die_full_name): Add cast.
1094
1095 2015-10-29 Pedro Alves <palves@redhat.com>
1096
1097 * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
1098
1099 2015-10-29 Pedro Alves <palves@redhat.com>
1100
1101 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
1102
1103 2015-10-29 Eli Zaretskii <eliz@gnu.org>
1104
1105 * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
1106 in the environment.
1107
1108 2015-10-29 Pedro Alves <palves@redhat.com>
1109
1110 * gnu-v2-abi.c (gnuv2_is_destructor_name)
1111 (gnuv2_is_constructor_name): Add casts.
1112
1113 2015-10-29 Pedro Alves <palves@redhat.com>
1114
1115 * common/common-exceptions.c (exception_none): Add cast.
1116
1117 2015-10-29 Pedro Alves <palves@redhat.com>
1118
1119 * compile/compile-c-types.c (struct type_map_instance)
1120 <gcc_type>: Rename to gcc_type_handle.
1121 (insert_type, convert_type): Adjust.
1122
1123 2015-10-29 Pedro Alves <palves@redhat.com>
1124
1125 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
1126 assume that "break" breaks out of a TRY/CATCH.
1127 * python/py-framefilter.c (py_print_single_arg): Don't assume
1128 "continue" breaks out of a TRY/CATCH.
1129 * python/py-value.c (valpy_binop_throw): New function, factored
1130 out from ...
1131 (valpy_binop): ... this.
1132 (valpy_richcompare_throw): New function, factored
1133 out from ...
1134 (valpy_richcompare): ... this.
1135 * solib.c (solib_read_symbols): Don't assume "break" breaks out
1136 of a TRY/CATCH.
1137 * common/common-exceptions.h [USE_RAW_CXX_TRY]
1138 <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
1139
1140 2015-10-28 Simon Dardis <Simon.Dardis@imgtec.com>
1141
1142 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
1143 as move along with [d]addu.
1144
1145 2015-10-28 Yao Qi <yao.qi@linaro.org>
1146
1147 * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
1148 aarch64_decode_insn.
1149
1150 2015-10-27 Pedro Alves <palves@redhat.com>
1151
1152 * common/print-utils.c (host_address_to_string): Rename to ...
1153 (host_address_to_string_1): ... this.
1154 * common/print-utils.h (host_address_to_string): Reimplement as
1155 wrapper around host_address_to_string_1.
1156 * utils.c (gdb_print_host_address): Rename to ...
1157 (gdb_print_host_address_1): ... this.
1158 * utils.h (gdb_print_host_address): Reimplement as wrapper macro
1159 around host_address_to_string_1.
1160
1161 2015-10-27 Pedro Alves <palves@redhat.com>
1162
1163 * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
1164 memory_error. Rename local 'status' to 'res'.
1165 * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
1166 memory_error.
1167 * corefile.c (read_stack, read_code, write_memory): Always pass
1168 TARGET_XFER_E_IO to memory_error.
1169 * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
1170 memory_error. Rename parameter 'status' to 'err'.
1171 (dump_insns): Rename local 'status' to 'err'.
1172 * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
1173 to 'errp'. Rename local 'status' to 'err'. Always pass
1174 TARGET_XFER_E_IO to memory_error.
1175 (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
1176 * target.c (target_read_memory, target_read_raw_memory)
1177 (target_read_stack, target_read_code, target_write_memory)
1178 (target_write_raw_memory): Return -1 on error instead of
1179 TARGET_XFER_E_IO.
1180 * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
1181 Always pass TARGET_XFER_E_IO to memory_error. Update comment.
1182
1183 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1184
1185 * guile/guile-internal.h (gdbscm_with_guile): Change return
1186 types to const char *.
1187 * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
1188 (struct c_data) <func>: Likewise.
1189 (struct c_data) <result>: Change type to const char *.
1190 (scscm_eval_scheme_string): Change return type to
1191 const char *.
1192 (scscm_source_scheme_script): Likewise.
1193 (gdbscm_safe_eval_string): Change type of result variable to
1194 const char * and remove cast.
1195 (gdbscm_safe_source_script): Likewise.
1196 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
1197 Change return type to const char *.
1198 (gdbscm_disasm_read_memory): Change type of status to
1199 const char *.
1200
1201 2015-10-27 Pedro Alves <palves@redhat.com>
1202
1203 * source.c (openp): New local 'last_errno'. Use it to
1204 save/restore errno.
1205
1206 2015-10-27 Pedro Alves <palves@redhat.com>
1207
1208 * psymtab.c (dump_psymtab_addrmap_1): Add casts.
1209
1210 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1211
1212 * ctf.c (SET_ENUM_FIELD): New macro.
1213 (ctf_read_status): Use it.
1214 (ctf_read_tp): Use it.
1215
1216 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1217
1218 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
1219 scm_t_dynwind_flags casts.
1220 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1221 * guile/scm-ports.c (gdbscm_open_memory): Likewise.
1222 * guile/scm-value.c (gdbscm_value_to_string): Likewise.
1223
1224 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1225
1226 * ax.h (ax_raw_byte): New declaration.
1227 * ax-general.c (ax_raw_byte): New function.
1228 (ax_simple): Use ax_raw_byte.
1229 * ax-gdb.c (gen_printf): Likewise.
1230
1231 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1232
1233 * ada-lang.h (GROW_VECT): Add cast.
1234
1235 2015-10-26 Doug Evans <xdje42@gmail.com>
1236
1237 * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
1238
1239 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1240
1241 * target.c (memory_xfer_partial): Change type of buf to gdb_byte
1242 pointer.
1243 (simple_search_memory): Cast return of memmem.
1244
1245 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1246
1247 * stap-probe.c (handle_stap_probe): Add (const char *) casts.
1248
1249 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1250
1251 * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
1252 -1 on error.
1253
1254 2015-10-26 Doug Evans <dje@google.com>
1255
1256 PR symtab/17391
1257 * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
1258 instead of gdbarch_dwarf2_reg_to_regnum.
1259 (dwarf2_frame_cache): Ditto.
1260 (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
1261 gdbarch_dwarf2_reg_to_regnum.
1262 (get_reg_value): Ditto.
1263 (dwarf2_fetch_cfa_info): Ditto.
1264 (dwarf2_frame_prev_register): Ditto.
1265 * dwarf2loc.c: #include "complaints.h".
1266 (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
1267 instead of gdbarch_dwarf2_reg_to_regnum.
1268 (dwarf_expr_get_reg_value): Ditto.
1269 (read_pieced_value): Ditto.
1270 (write_pieced_value): Ditto.
1271 (dwarf2_evaluate_loc_desc_full): Ditto.
1272 (dwarf_reg_to_regnum): New function.
1273 (throw_bad_regnum_error): New function.
1274 (dwarf_reg_to_regnum_or_error): Renamed from
1275 dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
1276 All callers updated. Call throw_bad_regnum_error.
1277 (locexpr_regname): Improve text of bad register number.
1278 * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
1279 (dwarf_reg_to_regnum_or_error): Update prototype.
1280 * dwarf2expr.c: #include "dwarf2loc.h".
1281 (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
1282 gdbarch_dwarf2_reg_to_regnum.
1283 * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
1284 * gdbarch.h: Regenerate.
1285 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
1286 register.
1287 * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
1288 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
1289 * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
1290 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
1291 Remove warning for bad register.
1292 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
1293 * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
1294 i386_svr4_reg_to_regnum. Return -1 for bad registers.
1295 (i386_svr4_reg_to_regnum): New function.
1296 (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
1297 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
1298 on bad registers, return -1.
1299 * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
1300 Remove warning for bad register.
1301 * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
1302 (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
1303 Remove warning for bad register. Return -1 for bad register.
1304 * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
1305 for bad register, return -1.
1306 * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
1307 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
1308 * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
1309 * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
1310 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1311 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
1312 for bad regs.
1313 * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
1314 bad regs. Fix error result.
1315 * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
1316 (reg_value_complaint): Update complaint text.
1317 * mdebugread.c (reg_value_complaint): New function.
1318 (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
1319
1320 2015-10-26 Doug Evans <dje@google.com>
1321
1322 PR python/18938
1323 * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
1324 All callers updated.
1325
1326 2015-10-26 Doug Evans <dje@google.com>
1327
1328 * psymtab.c (struct dump_psymtab_addrmap_data): Define.
1329 (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
1330 (maintenance_print_psymbols): Print address map.
1331
1332 2015-10-26 Doug Evans <dje@google.com>
1333
1334 * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
1335
1336 2015-10-26 Doug Evans <dje@google.com>
1337
1338 * common/gdb_wait.h (W_STOPCODE): Define, moved here from
1339 gdbserver/linux-low.c.
1340 (WSETSTOP): Simplify.
1341
1342 2015-10-26 Doug Evans <dje@google.com>
1343
1344 * linux-thread-db.c (find_new_threads_callback): Ditto.
1345 (thread_db_pid_to_str): Ditto.
1346
1347 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1348
1349 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
1350 local char array to scm_mode_bits, use a cast instead.
1351
1352 2015-10-26 Simon Marchi <simon.marchi@ericsson.com>
1353
1354 * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
1355 result. Change type of element_block_ptr. Change allocation to
1356 use XNEWVEC.
1357
1358 2015-10-26 Luis Machado <lgustavo@codesourcery.com>
1359
1360 * record-full.c (record_full_message_wrapper_safe): Pass empty string to
1361 catch_errors call instead of NULL.
1362
1363 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1364
1365 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
1366 char pointer to scm_mode_bits.
1367
1368 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1369
1370 * symtab.c (default_make_symbol_completion_list_break_on_1): Add
1371 cast.
1372
1373 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1374
1375 * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
1376 "data" local variable and use it.
1377
1378 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1379
1380 * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
1381 domain_enum cast.
1382 (gdbscm_lookup_symbol): Likewise.
1383
1384 2015-10-25 Iain Buclaw <ibuclaw@gdcproject.org>
1385
1386 * d-exp.y: Remove an obsolete comment and propagate the block
1387 information to the produced expression.
1388
1389 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1390
1391 * tui/tui-data.c (tui_add_to_source_windows): Remove void *
1392 cast.
1393 (tui_add_content_elements): Likewise.
1394
1395 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1396
1397 * cli/cli-setshow.c (do_set_command): Constify p.
1398
1399 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1400
1401 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
1402 (void *) cast with (gdb_byte *).
1403
1404 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1405
1406 * proc-service.c (ps_pdread): Add cast.
1407
1408 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1409
1410 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
1411 valbuf.
1412
1413 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1414
1415 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
1416 (ia64_push_dummy_call): Remove cast and change type of "to" to
1417 array of gdb_byte.
1418
1419 2015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
1420
1421 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
1422
1423 2015-10-23 Simon Marchi <simon.marchi@ericsson.com>
1424
1425 * observer.h (observer_${event}_notification_stub): Add cast.
1426
1427 2015-10-23 Yao Qi <yao.qi@linaro.org>
1428
1429 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
1430 dsd.insn_count to zero.
1431
1432 2015-10-22 Pedro Alves <palves@redhat.com>
1433
1434 * infrun.c (stop_after_trap): Delete.
1435 (clear_proceed_status, handle_signal_stop, struct
1436 infcall_control_state, save_infcall_control_state)
1437 (restore_infcall_control_state): Remove references to
1438 stop_after_trap.
1439
1440 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
1441
1442 * python/python.c (_initialize_python): Add cast.
1443
1444 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
1445
1446 * nto-tdep.c (nto_inferior_data): Add cast.
1447
1448 2015-10-22 Pedro Alves <palves@redhat.com>
1449
1450 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
1451 windows_wait and windows_resume directly instead of
1452 wait_for_inferior and resume.
1453
1454 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1455
1456 * xtensa-tdep.h (XTREG): Add casts.
1457 (XTREG_END): Likewise.
1458
1459 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1460
1461 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
1462
1463 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1464
1465 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
1466
1467 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1468
1469 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
1470 buf to gdb_byte*.
1471 (supply_32bit_reg): Add cast.
1472 (mips64_fill_gregset): Likewise.
1473
1474 2015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1475
1476 PR python/18073
1477 * python/py-type.c (typy_get_composite): Allow returning a
1478 function type.
1479
1480 2015-10-21 Keven Boell <keven.boell@intel.com>
1481
1482 * dwarf2read.c (set_die_type): Add read of
1483 DW_AT_allocated and DW_AT_associated.
1484 * f-typeprint.c: New include of typeprint.h
1485 (f_print_type): Add check for allocated/associated
1486 status of type.
1487 (f_type_print_varspec_suffix): Add check for
1488 * gdbtypes.c (create_array_type_with_stride):
1489 Add check for valid data location of type in
1490 case allocated or associated attributes are set.
1491 Length of an array should be only calculated if
1492 allocated or associated is resolved as true.
1493 (is_dynamic_type_internal): Add check for allocated/
1494 associated.
1495 (resolve_dynamic_array): Evaluate allocated/associated
1496 properties.
1497 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
1498 <DYN_PROP_ASSOCIATED>: New enums.
1499 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
1500 (type_not_allocated): New function.
1501 (type_not_associated): New function.
1502 * valarith.c (value_subscripted_rvalue): Add check for
1503 allocated/associated.
1504 * valprint.c: New include of typeprint.h.
1505 (valprint_check_validity): Add check for allocated/associated.
1506 (value_check_printable): Add check for allocated/
1507 associated.
1508 * typeprint.h (val_print_not_allocated): New function.
1509 (val_print_not_associated): New function.
1510 * typeprint.c (val_print_not_allocated): New function.
1511 (val_print_not_associated): New function.
1512
1513 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
1514
1515 * Makefile.in: Add arm.c/o.
1516 * arch/arm.c: New file.
1517 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
1518 (MAKE_THUMB_ADDR): Likewise.
1519 (UNMAKE_THUMB_ADDR): Likewise.
1520 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
1521 (IS_THUMB_ADDR): Move to arm.h.
1522 (MAKE_THUMB_ADDR): Likewise.
1523 (UNMAKE_THUMB_ADDR): Likewise.
1524 * configure.tgt: Add arm.o to all ARM configs.
1525
1526 2015-10-21 Yao Qi <yao.qi@linaro.org>
1527
1528 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
1529 Remove argument exp_vCont_s.
1530 * gdb.base/range-stepping.exp: Callers updated.
1531 * gdb.trace/range-stepping.exp: Likewise.
1532
1533 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
1534
1535 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
1536 (nto_sniff_abi_note_section): New function.
1537 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
1538 binary.
1539
1540 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
1541
1542 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
1543 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
1544 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
1545 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
1546 New functions.
1547 (_initialize_nto_tdep): New forward declaration, new function.
1548 * nto-tdep.h (struct nto_inferior_data): New struct.
1549 (nto_inferior_data): New function declaration.
1550
1551 2015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1552
1553 * findvar.c (address_from_register): Check REGNUM validity.
1554
1555 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1556
1557 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
1558 (init_procfs_targets): Wire new function.
1559
1560 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1561
1562 * nto-procfs.c (sys/auxv.h): Include.
1563 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
1564 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
1565 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
1566
1567 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1568
1569 * nto-procfs.c (nto_procfs_path): Rename to...
1570 (nodestr): ... this, and change type.
1571 (nto_node): Use new variable and logic accordingly.
1572 (procfs_open_1): Use new variable name. Use local buffer to construct
1573 procfrs path.
1574 (procfs_pidlist): Use NODESTR to construct procfs path.
1575 (procfs_files_info): Use NODESTR to output meaningful text.
1576 (do_attach): Construct procfs using NODESTR.
1577 (procfs_create_inferior): Compare pointer to NULL.
1578
1579 2015-10-19 Josh Stone <jistone@redhat.com>
1580
1581 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
1582 return state, even when not actively catching syscalls at all.
1583 (linux_handle_extended_wait): Mark syscall_state like an entry.
1584 (wait_lwp): Set syscall_state ignored for other traps.
1585 (linux_nat_filter_event): Likewise.
1586
1587 2015-10-19 Luis Machado <lgustavo@codesourcery.com>
1588
1589 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
1590 when handling 'E', 'T', 'S', 'X' and 'W' packets.
1591 Do not set rs->waiting_for_stop_reply back to 1.
1592
1593 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
1594
1595 * nto-procfs.c (common/filestuff.h): Include.
1596 (procfs_can_use_hw_breakpoint): Fix enum name.
1597 (procfs_open_1): Fix compiler warning.
1598 (procfs_pidlist): Make static.
1599 (procfs_meminfo): Make static, fix type name, add missing argument.
1600 (procfs_store_registers): Make static.
1601 (procfs_thread_info): Remove unused function.
1602 (_initialize_procfs): Forward declare.
1603
1604 2015-10-16 Yao Qi <yao.qi@arm.com>
1605
1606 * MAINTAINERS: Update my email address.
1607
1608 2015-10-15 Yao Qi <yao.qi@linaro.org>
1609
1610 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
1611 Call gdbarch_breakpoint_from_pc to instruction length.
1612 (aarch64_linux_remove_hw_breakpoint): Likewise.
1613 * common/common-regcache.h (regcache_register_size): Declare.
1614 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
1615 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
1616 the process is 32bit, otherwise set alignment to 4.
1617 (aarch64_handle_breakpoint): Update comments.
1618 * regcache.c (regcache_register_size): New function.
1619
1620 2015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
1621
1622 * gdbarch.sh (core_regset_section): Remove.
1623 * gdbarch.h: Regenerate.
1624
1625 2015-10-14 Yao Qi <yao.qi@linaro.org>
1626
1627 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
1628 out of it.
1629 (enum aarch64_memory_operand_type): New.
1630
1631 2015-10-13 David Edelsohn <dje.gcc@gmail.com>
1632
1633 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
1634
1635 2015-10-13 Pedro Alves <palves@redhat.com>
1636
1637 * ada-lang.c (ada_enum_name): Constify local.
1638 * ada-typeprint.c (print_range_bound): Constify locals.
1639 * c-varobj.c (c_describe_child): Likewise.
1640 * cli/cli-setshow.c (do_set_command): Likewise.
1641 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1642 * dwarf2read.c (find_file_and_directory): Likewise.
1643 (anonymous_struct_prefix, dwarf2_name): Likewise.
1644 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1645 * go-lang.c (unpack_mangled_go_symbol): Likewise.
1646 * jv-typeprint.c (java_type_print_base): Likewise.
1647 * ser-tcp.c (net_open): Likewise.
1648 * symfile.c (deduce_language_from_filename): Likewise.
1649 * symtab.c (gdb_mangle_name): Likewise.
1650 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1651
1652 2015-10-13 Pedro Alves <palves@redhat.com>
1653
1654 * infrun.c (restore_execution_direction): New function.
1655 (fetch_inferior_event): Use it instead of
1656 make_cleanup_restore_integer.
1657 (execution_direction): Change type to enum
1658 exec_direction_kind.
1659 * infrun.h (execution_direction): Likewise.
1660
1661 2015-10-13 Pedro Alves <palves@redhat.com>
1662
1663 * ada-lang.c (ada_value_primitive_packed_val): Constify
1664 locals. Use value_contents_writeable. Remove casts.
1665
1666 2015-10-13 Pedro Alves <palves@redhat.com>
1667
1668 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
1669 and alloca calls.
1670
1671 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1672
1673 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
1674 write_memory with write_memory_unsigned_integer.
1675
1676 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1677
1678 * solib-dsbt.c (cmp_name): Constify arguments.
1679 * solib-frv.c (cmp_name): Likewise.
1680 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
1681 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
1682 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
1683 (gdb_bfd_lookup_symbol): Likewise.
1684 * solib.h (gdb_bfd_lookup_symbol): Likewise.
1685 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
1686
1687 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1688
1689 * stack.c (parse_frame_specification): Remove message parameter,
1690 replace with fixed string in function body, update function
1691 comment.
1692 (frame_info): Remove message to parse_frame_specification.
1693 (select_frame_command): Likewise.
1694
1695 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1696
1697 * stack.c (parse_frame_specification): Delete.
1698 (parse_frame_specification_1): Rename to
1699 parse_frame_specification.
1700 (frame_info): Use parse_frame_specification.
1701 (select_frame_command): Likewise.
1702 (return_command): Use select_frame and print_stack_frame rather
1703 than frame_command and select_frame_command.
1704 (func_command): Use get_current_frame rather than
1705 parse_frame_specification.
1706
1707 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1708
1709 * stack.c (func_command): Return early when there is no ARG
1710 string.
1711
1712 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1713
1714 * stack.c: Include safe-ctype.h not ctype.h.
1715 (parse_frame_specification): Use ISSPACE not isspace.
1716 (backtrace_command): Use TOLOWER not tolower.
1717
1718 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1719
1720 * mep-tdep.c (current_me_module): Add cast.
1721 (mep_gdbarch_init): Likewise.
1722
1723 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1724
1725 * m32c-tdep.c (m32c_move_reg_t): Replace with...
1726 (m32c_write_reg_t): ...this and...
1727 (m32c_read_reg_t): ...this.
1728 (struct m32c_reg): Update types of read and write.
1729 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
1730 adjust definition.
1731 (m32c_banked_read): Likewise.
1732 (m32c_sb_read): Likewise.
1733 (m32c_part_read): Likewise.
1734 (m32c_cat_read): Likewise.
1735 (m32c_r3r2r1r0_read): Likewise.
1736 (m32c_raw_write): Change declaration type to m32c_write_reg_t
1737 and adjust definition.
1738 (m32c_banked_write): Likewise.
1739 (m32c_sb_write): Likewise.
1740 (m32c_part_write): Likewise.
1741 (m32c_cat_write): Likewise.
1742 (m32c_r3r2r1r0_write): Likewise.
1743
1744 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1745
1746 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
1747
1748 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1749
1750 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
1751 gdb_sys_no_syscall instead of -1.
1752
1753 2015-10-12 Yao Qi <yao.qi@linaro.org>
1754
1755 * NEWS: Mention the change.
1756
1757 2015-10-12 Yao Qi <yao.qi@linaro.org>
1758
1759 * arch/aarch64-insn.c (emit_load_store): Rename to ...
1760 (aarch64_emit_load_store): ... it. All callers updated.
1761
1762 2015-10-12 Yao Qi <yao.qi@linaro.org>
1763
1764 * arch/aarch64-insn.c (emit_insn): Rename to ...
1765 (aarch64_emit_insn): ... it. All callers updated.
1766
1767 2015-10-12 Yao Qi <yao.qi@linaro.org>
1768
1769 * aarch64-linux-tdep.c: Include arch-utils.h.
1770 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
1771 set_gdbarch_displaced_step_copy_insn,
1772 set_gdbarch_displaced_step_fixup,
1773 set_gdbarch_displaced_step_free_closure,
1774 set_gdbarch_displaced_step_location,
1775 and set_gdbarch_displaced_step_hw_singlestep.
1776 * aarch64-tdep.c (struct displaced_step_closure): New.
1777 (struct aarch64_displaced_step_data): New.
1778 (aarch64_displaced_step_b): New function.
1779 (aarch64_displaced_step_b_cond): Likewise.
1780 (aarch64_register): Likewise.
1781 (aarch64_displaced_step_cb): Likewise.
1782 (aarch64_displaced_step_tb): Likewise.
1783 (aarch64_displaced_step_adr): Likewise.
1784 (aarch64_displaced_step_ldr_literal): Likewise.
1785 (aarch64_displaced_step_others): Likewise.
1786 (aarch64_displaced_step_copy_insn): Likewise.
1787 (aarch64_displaced_step_fixup): Likewise.
1788 (aarch64_displaced_step_hw_singlestep): Likewise.
1789 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
1790 (aarch64_displaced_step_copy_insn): Declare.
1791 (aarch64_displaced_step_fixup): Declare.
1792 (aarch64_displaced_step_hw_singlestep): Declare.
1793 * arch/aarch64-insn.c (emit_insn): Moved from
1794 gdbserver/linux-aarch64-low.c.
1795 (emit_load_store): Likewise.
1796 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
1797 gdbserver/linux-aarch64-low.c.
1798 (struct aarch64_register): Likewise.
1799 (struct aarch64_memory_operand): Likewise.
1800 (ENCODE): Likewise.
1801 (can_encode_int32): New macro.
1802 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
1803 (emit_tb, emit_nop): Likewise.
1804 (emit_insn): Declare.
1805 (emit_load_store): Declare.
1806
1807 2015-10-12 Yao Qi <yao.qi@linaro.org>
1808
1809 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
1810 gdbserver/linux-aarch64-low.c.
1811 (aarch64_relocate_instruction): Likewise.
1812 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
1813 (struct aarch64_insn_data): Moved from
1814 gdbserver/linux-aarch64-low.c.
1815 (struct aarch64_insn_visitor): Likewise.
1816 (aarch64_relocate_instruction): Declare.
1817
1818 2015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
1819
1820 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
1821 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
1822 to the returned value.
1823
1824 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1825
1826 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
1827 is large enough for BIT_SIZE. Update function comment.
1828
1829 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1830
1831 * ada-lang.c (ada_value_primitive_packed_val): Move
1832 src_len variable to local block where used. Override
1833 BIT_SIZE if bigger than size of resolved type.
1834
1835 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1836
1837 * gdbtypes.h (is_scalar_type): Add extern declaration.
1838 * gdbtypes.c (is_scalar_type): Make non-static.
1839 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
1840 to compute IS_SCALAR instead of doing it ourselves.
1841
1842 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1843
1844 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
1845 of case where TYPE is dynamic.
1846
1847 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1848
1849 * ada-lang.c (ada_unpack_from_contents): New function,
1850 extracted from ada_value_primitive_packed_val.
1851 (ada_value_primitive_packed_val): Replace extracted out code
1852 by call to ada_unpack_from_contents.
1853
1854 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1855
1856 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
1857 variable declarations.
1858
1859 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1860
1861 * ada-lang.c (ada_value_primitive_packed_val): Change the type
1862 of local variables src and unpacked to "gdb_type *" instead of
1863 "unsigned char *".
1864
1865 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1866
1867 * ada-lang.c (ada_value_primitive_packed_val): Make the name
1868 of various local variables more explicit and consistent.
1869 No real code change otherwise.
1870
1871 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1872
1873 * i386-tdep.h (struct gdbarch_tdep): Change type of
1874 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
1875
1876 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1877
1878 * cris-tdep.c (struct instruction_environment): Change type of
1879 byte_order to enum bfd_endian.
1880
1881 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1882
1883 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
1884 enum gdb_syscall casts.
1885
1886 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1887
1888 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
1889 * arm-tdep.c (struct stack_item): Likewise.
1890 (push_stack_item): Add gdb_byte* cast.
1891 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
1892 (push_stack_item): Add gdb_byte* cast.
1893 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
1894 and add cast.
1895 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
1896 (push_stack_item): Add gdb_byte* cast.
1897 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
1898 add cast.
1899 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
1900 gdb_byte*.
1901 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
1902 gdb_byte* and remove unnecessary cast.
1903 (h8300h_extract_return_value): Likewise.
1904 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
1905 (h8300h_store_return_value): Likewise.
1906 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
1907 gdb_byte* and remove unnecessary cast.
1908 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
1909 and add cast.
1910 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
1911 gdb_byte* and remove unnecessary cast.
1912 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
1913 valbuf.
1914 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
1915 (mep_pseudo_cr64_read): Likewise.
1916 (mep_pseudo_csr_write): Likewise.
1917 (mep_pseudo_cr32_write): Likewise.
1918 (mep_pseudo_cr64_write): Likewise.
1919 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
1920 gdb_byte* and add cast.
1921 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
1922 gdb_byte* and remove unnecessary cast.
1923 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
1924 valbuf.
1925 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
1926 gdb_byte*.
1927 * printcmd.c (void): Likewise.
1928 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
1929 gdb_byte* and add cast.
1930 (infpy_write_memory): Likewise.
1931 (infpy_search_memory): Likewise.
1932 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
1933 and add cast.
1934 (regcache_raw_write_unsigned): Likewise.
1935 (regcache_cooked_write_signed): Likewise.
1936 (regcache_cooked_write_unsigned): Likewise.
1937 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
1938 gdb_byte*.
1939
1940 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1941
1942 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
1943 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
1944
1945 2015-10-09 Eli Zaretskii <eliz@gnu.org>
1946
1947 * stack.c (print_stack_frame):
1948 * utils.c (printchar): Fix typos in commentary.
1949
1950 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
1951
1952 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
1953 (PostfixExpression): Support `expr.sizeof' expressions.
1954 (PrimaryExpression): Support `typeof(expr)' expressions.
1955
1956 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
1957
1958 * MAINTAINERS: Update my email address.
1959
1960 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
1961
1962 * record-btrace.c (record_btrace_resume): Fix void return.
1963
1964 2015-10-07 Yao Qi <yao.qi@linaro.org>
1965
1966 * aarch64-tdep.c: Include opcode/aarch64.h.
1967 (submask): Move it above.
1968 (bit): Likewise.
1969 (bits): Likewise.
1970 (aarch64_software_single_step): Call aarch64_decode_insn.
1971 Decode instruction by aarch64_inst instead of using
1972 aarch64_decode_bcond and decode_masked_match.
1973
1974 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1975
1976 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
1977 only when the file is binary.
1978
1979 2015-10-02 James Bowman <james.bowman@ftdichip.com>
1980
1981 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
1982 subroutine handling.
1983
1984 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
1985
1986 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
1987
1988 2015-09-30 Doug Evans <dje@google.com>
1989
1990 * dwarf2read.c (setup_type_unit_groups): Add comment.
1991
1992 2015-09-30 Pedro Alves <palves@redhat.com>
1993
1994 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
1995 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
1996 (x86_linux_create_target): Don't install
1997 x86_linux_always_non_stop_p.
1998
1999 2015-09-30 Don Breazeal <donb@codesourcery.com>
2000
2001 * remote.c (remote_parse_stop_reply): Call strprefix instead
2002 of strncmp.
2003
2004 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
2005
2006 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
2007 * gdbarch.h: Regenerate.
2008 * i386-tdep.c (i386_gdbarch_init): Remove cast to
2009 struct gdbarch_tdep_info *.
2010 * mips-tdep.c (mips_gdbarch_init): Likewise.
2011 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
2012 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2013 * spu-multiarch.c (spu_gdbarch): Likewise.
2014
2015 2015-09-30 Kevin Buettner <kevinb@redhat.com>
2016
2017 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
2018 record a NULL value.
2019
2020 2015-09-29 Kevin Buettner <kevinb@redhat.com>
2021
2022 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
2023 and union arguments the same as pointer arguments when determining
2024 size of argument.
2025
2026 2015-09-29 James Bowman <james.bowman@ftdichip.com>
2027
2028 * ft32-tdep.c: #include "opcode/ft32.h".
2029 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
2030 (ft32_analyze_prologue): Use FT32_* macros.
2031
2032 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
2033
2034 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
2035 comment.
2036
2037 2015-09-28 Doug Evans <dje@google.com>
2038
2039 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
2040
2041 2015-09-28 Doug Evans <dje@google.com>
2042
2043 * common/filestuff.c (make_cleanup_close): Update comment.
2044
2045 2015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
2046
2047 * btrace.c (parse_xml_btrace_block): Fix cast of
2048 xml_find_attribute's return value.
2049 * memory-map.c (memory_map_start_memory): Likewise.
2050 * solib-svr4.c (library_list_start_library): Likewise.
2051 * solib-target.c (library_list_start_segment): Likewise.
2052 (library_list_start_section): Likewise.
2053 * tracepoint.c (traceframe_info_start_memory): Likewise.
2054
2055 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
2056
2057 * d-namespace.c (d_lookup_symbol): New arg langdef.
2058 All callers updated. Support looking up symbol as a primitive type.
2059 (lookup_module_scope): New arg langdef. All callers updated.
2060 Call d_lookup_symbol directly for simple bare symbols.
2061
2062 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2063
2064 * macrocmd.c (print_macro_callback): Add cast(s).
2065 * macrotab.c (macro_bcache_str): Likewise.
2066 (new_macro_definition): Likewise.
2067 * main.c (captured_main): Likewise.
2068 * maint.c (print_bfd_section_info): Likewise.
2069 * mdebugread.c (mdebug_build_psymtabs): Likewise.
2070 (basic_type): Likewise.
2071 * memattr.c (mem_region_cmp): Likewise.
2072 * memory-map.c (memory_map_start_memory): Likewise.
2073 (memory_map_end_memory): Likewise.
2074 (memory_map_start_property): Likewise.
2075 (memory_map_end_property): Likewise.
2076 (clear_result): Likewise.
2077 * memrange.c (compare_mem_ranges): Likewise.
2078 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
2079 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
2080 * mi/mi-console.c (mi_console_file_delete): Likewise.
2081 (mi_console_file_fputs): Likewise.
2082 (mi_console_raw_packet): Likewise.
2083 (mi_console_file_flush): Likewise.
2084 (mi_console_set_raw): Likewise.
2085 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
2086 (mi_new_thread): Likewise.
2087 (mi_thread_exit): Likewise.
2088 (mi_record_changed): Likewise.
2089 (mi_inferior_added): Likewise.
2090 (mi_inferior_appeared): Likewise.
2091 (mi_inferior_exit): Likewise.
2092 (mi_inferior_removed): Likewise.
2093 (mi_interp_data): Likewise.
2094 (mi_on_normal_stop): Likewise.
2095 (mi_traceframe_changed): Likewise.
2096 (mi_tsv_created): Likewise.
2097 (mi_tsv_deleted): Likewise.
2098 (mi_tsv_modified): Likewise.
2099 (mi_breakpoint_created): Likewise.
2100 (mi_breakpoint_deleted): Likewise.
2101 (mi_breakpoint_modified): Likewise.
2102 (mi_output_running_pid): Likewise.
2103 (mi_inferior_count): Likewise.
2104 (mi_solib_loaded): Likewise.
2105 (mi_solib_unloaded): Likewise.
2106 (mi_command_param_changed): Likewise.
2107 (mi_memory_changed): Likewise.
2108 (report_initial_inferior): Likewise.
2109 (mi_ui_out): Likewise.
2110 (mi_set_logging): Likewise.
2111 * mi/mi-main.c (collect_cores): Likewise.
2112 (print_one_inferior): Likewise.
2113 (free_vector_of_ints): Likewise.
2114 (free_splay_tree): Likewise.
2115 (mi_execute_command): Likewise.
2116 * mi/mi-out.c (mi_table_body): Likewise.
2117 (mi_table_end): Likewise.
2118 (mi_table_header): Likewise.
2119 (mi_begin): Likewise.
2120 (mi_end): Likewise.
2121 (mi_field_int): Likewise.
2122 (mi_field_string): Likewise.
2123 (mi_field_fmt): Likewise.
2124 (mi_flush): Likewise.
2125 (mi_redirect): Likewise.
2126 (field_separator): Likewise.
2127 (mi_open): Likewise.
2128 (mi_close): Likewise.
2129 (mi_out_buffered): Likewise.
2130 (mi_out_rewind): Likewise.
2131 (mi_out_put): Likewise.
2132 (mi_version): Likewise.
2133 (mi_out_data_dtor): Likewise.
2134 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
2135 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
2136 * minidebug.c (lzma_open): Likewise.
2137 (lzma_pread): Likewise.
2138 (lzma_close): Likewise.
2139 (lzma_stat): Likewise.
2140 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
2141 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
2142 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
2143 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
2144 (mips_micro_frame_cache): Likewise.
2145 (mips_insn32_frame_cache): Likewise.
2146 (mips_stub_frame_cache): Likewise.
2147 (gdb_print_insn_mips): Likewise.
2148 (value_of_mips_user_reg): Likewise.
2149 (mips_gdbarch_init): Likewise.
2150 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
2151 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
2152 (mipsnbsd_supply_gregset): Likewise.
2153 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
2154 (am33_collect_gregset_method): Likewise.
2155 (am33_collect_fpregset_method): Likewise.
2156 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
2157 * moxie-tdep.c (moxie_frame_cache): Likewise.
2158 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
2159 (msp430_analyze_frame_prologue): Likewise.
2160 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
2161 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
2162 (nios2_collect_gregset): Likewise.
2163 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
2164 (nios2_stub_frame_cache): Likewise.
2165 * objc-lang.c (find_methods): Likewise.
2166 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
2167 (get_objfile_pspace_data): Likewise.
2168 (get_objfile_bfd_data): Likewise.
2169 (objfile_bfd_data_free): Likewise.
2170 (add_to_objfile_sections): Likewise.
2171 (do_free_objfile_cleanup): Likewise.
2172 (resume_section_map_updates_cleanup): Likewise.
2173 * opencl-lang.c (builtin_opencl_type): Likewise.
2174 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2175 * osdata.c (osdata_start_osdata): Likewise.
2176 (osdata_start_item): Likewise.
2177 (osdata_start_column): Likewise.
2178 (osdata_end_column): Likewise.
2179 (clear_parsing_data): Likewise.
2180 (osdata_free_cleanup): Likewise.
2181 * parse.c (type_stack_cleanup): Likewise.
2182 (exp_uses_objfile_iter): Likewise.
2183 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
2184 (ppc_linux_collect_gregset): Likewise.
2185 (ppu2spu_prev_arch): Likewise.
2186 (ppu2spu_this_id): Likewise.
2187 (ppu2spu_prev_register): Likewise.
2188 (ppu2spu_unwind_register): Likewise.
2189 (ppu2spu_sniffer): Likewise.
2190 (ppu2spu_dealloc_cache): Likewise.
2191 (ppc_linux_init_abi): Likewise.
2192 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
2193 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2194 * progspace.c (restore_program_space): Likewise.
2195 * psymtab.c (find_pc_sect_psymtab): Likewise.
2196 (compare_psymbols): Likewise.
2197 (psymbol_bcache_full): Likewise.
2198 (allocate_psymtab): Likewise.
2199 (discard_psymtabs_upto): Likewise.
2200 * python/py-block.c (set_block): Likewise.
2201 (del_objfile_blocks): Likewise.
2202 * python/py-breakpoint.c (build_bp_list): Likewise.
2203 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
2204 (build_inferior_list): Likewise.
2205 (py_free_inferior): Likewise.
2206 * python/py-objfile.c (py_free_objfile): Likewise.
2207 (objfile_to_objfile_object): Likewise.
2208 * python/py-prettyprint.c (py_restore_tstate): Likewise.
2209 * python/py-progspace.c (py_free_pspace): Likewise.
2210 (pspace_to_pspace_object): Likewise.
2211 * python/py-symbol.c (set_symbol): Likewise.
2212 (del_objfile_symbols): Likewise.
2213 * python/py-symtab.c (set_sal): Likewise.
2214 (set_symtab): Likewise.
2215 (del_objfile_symtab): Likewise.
2216 (del_objfile_sal): Likewise.
2217 * python/py-type.c (save_objfile_types): Likewise.
2218 (set_type): Likewise.
2219 * python/py-unwind.c (pyuw_prev_register): Likewise.
2220 (pyuw_on_new_gdbarch): Likewise.
2221 * python/py-utils.c (py_decref): Likewise.
2222 (py_xdecref): Likewise.
2223 (gdb_py_generic_dict): Likewise.
2224 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
2225 (gdbpy_clone_xmethod_worker_data): Likewise.
2226 (gdbpy_get_xmethod_arg_types): Likewise.
2227 (gdbpy_get_xmethod_result_type): Likewise.
2228 (gdbpy_invoke_xmethod): Likewise.
2229 * python/python.c (gdbpy_apply_type_printers): Likewise.
2230 (gdbpy_free_type_printers): Likewise.
2231 * record-btrace.c (record_btrace_disable_callback): Likewise.
2232 (bfcache_hash): Likewise.
2233 (bfcache_eq): Likewise.
2234 (btrace_get_frame_function): Likewise.
2235 (record_btrace_frame_unwind_stop_reason): Likewise.
2236 (record_btrace_frame_this_id): Likewise.
2237 (record_btrace_frame_prev_register): Likewise.
2238 (record_btrace_frame_dealloc_cache): Likewise.
2239 * record-full.c (record_full_message_wrapper): Likewise.
2240 (record_full_save_cleanups): Likewise.
2241 * regcache.c (regcache_descr): Likewise.
2242 (do_regcache_xfree): Likewise.
2243 (do_regcache_invalidate): Likewise.
2244 (do_cooked_read): Likewise.
2245 (regcache_transfer_regset): Likewise.
2246 * reggroups.c (reggroup_add): Likewise.
2247 (reggroup_next): Likewise.
2248 (reggroup_prev): Likewise.
2249 * remote-fileio.c (do_remote_fileio_request): Likewise.
2250 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
2251 (do_notif_event_xfree): Likewise.
2252 * remote.c (get_remote_arch_state): Likewise.
2253 (remote_pspace_data_cleanup): Likewise.
2254 (get_remote_exec_file): Likewise.
2255 (set_pspace_remote_exec_file): Likewise.
2256 (compare_pnums): Likewise.
2257 (clear_threads_listing_context): Likewise.
2258 (remote_newthread_step): Likewise.
2259 (start_thread): Likewise.
2260 (end_thread): Likewise.
2261 (remove_child_of_pending_fork): Likewise.
2262 (remove_stop_reply_for_inferior): Likewise.
2263 (remove_stop_reply_of_remote_state): Likewise.
2264 (remote_notif_remove_once_on_match): Likewise.
2265 (stop_reply_match_ptid_and_ws): Likewise.
2266 (kill_child_of_pending_fork): Likewise.
2267 (register_remote_g_packet_guess): Likewise.
2268 (remote_read_description_p): Likewise.
2269 (remote_read_description): Likewise.
2270 (free_actions_list_cleanup_wrapper): Likewise.
2271 (remote_async_serial_handler): Likewise.
2272 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
2273 (rl78_analyze_frame_prologue): Likewise.
2274 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
2275 (ppc_supply_fpregset): Likewise.
2276 (ppc_supply_vsxregset): Likewise.
2277 (ppc_supply_vrregset): Likewise.
2278 (ppc_collect_gregset): Likewise.
2279 (ppc_collect_fpregset): Likewise.
2280 (ppc_collect_vsxregset): Likewise.
2281 (ppc_collect_vrregset): Likewise.
2282 (e500_move_ev_register): Likewise.
2283 (do_regcache_raw_write): Likewise.
2284 (rs6000_frame_cache): Likewise.
2285 (rs6000_epilogue_frame_cache): Likewise.
2286 (rs6000_gdbarch_init): Likewise.
2287 * rx-tdep.c (rx_get_opcode_byte): Likewise.
2288 (rx_analyze_frame_prologue): Likewise.
2289 (rx_frame_type): Likewise.
2290 (rx_frame_sniffer_common): Likewise.
2291 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
2292 (s390_frame_unwind_cache): Likewise.
2293 (s390_stub_frame_unwind_cache): Likewise.
2294 (s390_sigtramp_frame_unwind_cache): Likewise.
2295 * score-tdep.c (score_make_prologue_cache): Likewise.
2296 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
2297 (sentinel_frame_prev_arch): Likewise.
2298 * ser-base.c (fd_event): Likewise.
2299 (push_event): Likewise.
2300 (ser_base_write): Likewise.
2301 * ser-pipe.c (pipe_close): Likewise.
2302 * serial.c (serial_write): Likewise.
2303 * sh-tdep.c (sh_frame_cache): Likewise.
2304 (sh_stub_this_id): Likewise.
2305 * sh64-tdep.c (sh64_frame_cache): Likewise.
2306 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
2307 (library_list_start_library): Likewise.
2308 (library_list_start_list): Likewise.
2309 (solib_aix_free_library_list): Likewise.
2310 * solib-darwin.c (get_darwin_info): Likewise.
2311 * solib-dsbt.c (get_dsbt_info): Likewise.
2312 * solib-spu.c (append_ocl_sos): Likewise.
2313 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
2314 (get_svr4_info): Likewise.
2315 (library_list_start_library): Likewise.
2316 (svr4_library_list_start_list): Likewise.
2317 (hash_probe_and_action): Likewise.
2318 (equal_probe_and_action): Likewise.
2319 (svr4_update_solib_event_breakpoint): Likewise.
2320 (set_solib_svr4_fetch_link_map_offsets): Likewise.
2321 (svr4_fetch_link_map_offsets): Likewise.
2322 (svr4_have_link_map_offsets): Likewise.
2323 * solib-target.c (library_list_start_segment): Likewise.
2324 (library_list_start_section): Likewise.
2325 (library_list_start_library): Likewise.
2326 (library_list_end_library): Likewise.
2327 (library_list_start_list): Likewise.
2328 (solib_target_free_library_list): Likewise.
2329 * solib.c (solib_ops): Likewise.
2330 (set_solib_ops): Likewise.
2331 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2332 * sparc-tdep.c (sparc_frame_cache): Likewise.
2333 (sparc32_frame_cache): Likewise.
2334 (sparc32_supply_gregset): Likewise.
2335 (sparc32_collect_gregset): Likewise.
2336 (sparc32_supply_fpregset): Likewise.
2337 (sparc32_collect_fpregset): Likewise.
2338 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2339 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
2340 (sparc64_collect_gregset): Likewise.
2341 (sparc64_supply_fpregset): Likewise.
2342 (sparc64_collect_fpregset): Likewise.
2343 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
2344 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2345 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2346 (sparc64obsd_trapframe_cache): Likewise.
2347 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
2348 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2349 * spu-multiarch.c (spu_gdbarch): Likewise.
2350 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
2351 (spu2ppu_prev_arch): Likewise.
2352 (spu2ppu_this_id): Likewise.
2353 (spu2ppu_prev_register): Likewise.
2354 (spu2ppu_dealloc_cache): Likewise.
2355 (spu_dis_asm_print_address): Likewise.
2356 (gdb_print_insn_spu): Likewise.
2357 (spu_get_overlay_table): Likewise.
2358 * stabsread.c (rs6000_builtin_type): Likewise.
2359 * stack.c (do_print_variable_and_value): Likewise.
2360 * stap-probe.c (get_stap_base_address_1): Likewise.
2361 * symfile-debug.c (debug_qf_has_symbols): Likewise.
2362 (debug_qf_find_last_source_symtab): Likewise.
2363 (debug_qf_forget_cached_source_info): Likewise.
2364 (debug_qf_map_symtabs_matching_filename): Likewise.
2365 (debug_qf_lookup_symbol): Likewise.
2366 (debug_qf_print_stats): Likewise.
2367 (debug_qf_dump): Likewise.
2368 (debug_qf_relocate): Likewise.
2369 (debug_qf_expand_symtabs_for_function): Likewise.
2370 (debug_qf_expand_all_symtabs): Likewise.
2371 (debug_qf_expand_symtabs_with_fullname): Likewise.
2372 (debug_qf_map_matching_symbols): Likewise.
2373 (debug_qf_expand_symtabs_matching): Likewise.
2374 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
2375 (debug_qf_map_symbol_filenames): Likewise.
2376 (debug_sym_get_probes): Likewise.
2377 (debug_sym_new_init): Likewise.
2378 (debug_sym_init): Likewise.
2379 (debug_sym_read): Likewise.
2380 (debug_sym_read_psymbols): Likewise.
2381 (debug_sym_finish): Likewise.
2382 (debug_sym_offsets): Likewise.
2383 (debug_sym_read_linetable): Likewise.
2384 (debug_sym_relocate): Likewise.
2385 (uninstall_symfile_debug_logging): Likewise.
2386 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
2387 * symfile.c (place_section): Likewise.
2388 (add_section_size_callback): Likewise.
2389 (load_progress): Likewise.
2390 (load_section_callback): Likewise.
2391 (clear_memory_write_data): Likewise.
2392 (allocate_symtab): Likewise.
2393 * symmisc.c (maintenance_expand_file_matcher): Likewise.
2394 * symtab.c (lookup_symtab_callback): Likewise.
2395 (hash_demangled_name_entry): Likewise.
2396 (eq_demangled_name_entry): Likewise.
2397 (get_symbol_cache): Likewise.
2398 (symbol_cache_cleanup): Likewise.
2399 (set_symbol_cache_size): Likewise.
2400 (symbol_cache_flush): Likewise.
2401 (maintenance_print_symbol_cache): Likewise.
2402 (maintenance_print_symbol_cache_statistics): Likewise.
2403 (delete_filename_seen_cache): Likewise.
2404 (output_partial_symbol_filename): Likewise.
2405 (search_symbols_file_matches): Likewise.
2406 (search_symbols_name_matches): Likewise.
2407 (do_free_completion_list): Likewise.
2408 (maybe_add_partial_symtab_filename): Likewise.
2409 (get_main_info): Likewise.
2410 (main_info_cleanup): Likewise.
2411 * target-dcache.c (target_dcache_cleanup): Likewise.
2412 (target_dcache_init_p): Likewise.
2413 (target_dcache_invalidate): Likewise.
2414 (target_dcache_get): Likewise.
2415 (target_dcache_get_or_init): Likewise.
2416 * target-descriptions.c (target_find_description): Likewise.
2417 (tdesc_find_type): Likewise.
2418 (tdesc_data_cleanup): Likewise.
2419 (tdesc_find_arch_register): Likewise.
2420 (tdesc_register_name): Likewise.
2421 (tdesc_register_type): Likewise.
2422 (tdesc_register_reggroup_p): Likewise.
2423 (set_tdesc_pseudo_register_name): Likewise.
2424 (set_tdesc_pseudo_register_type): Likewise.
2425 (set_tdesc_pseudo_register_reggroup_p): Likewise.
2426 (tdesc_use_registers): Likewise.
2427 (free_target_description): Likewise.
2428 * target-memory.c (compare_block_starting_address): Likewise.
2429 (cleanup_request_data): Likewise.
2430 (cleanup_write_requests_vector): Likewise.
2431 * target.c (open_target): Likewise.
2432 (cleanup_restore_target_terminal): Likewise.
2433 (free_memory_read_result_vector): Likewise.
2434 * thread.c (disable_thread_stack_temporaries): Likewise.
2435 (finish_thread_state_cleanup): Likewise.
2436 (do_restore_current_thread_cleanup): Likewise.
2437 (restore_current_thread_cleanup_dtor): Likewise.
2438 (set_thread_refcount): Likewise.
2439 (tp_array_compar): Likewise.
2440 (do_captured_thread_select): Likewise.
2441 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
2442 (tic6x_stub_this_id): Likewise.
2443 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
2444 * top.c (do_restore_instream_cleanup): Likewise.
2445 (gdb_readline_wrapper_cleanup): Likewise.
2446 (kill_or_detach): Likewise.
2447 (print_inferior_quit_action): Likewise.
2448 * tracefile-tfile.c (match_blocktype): Likewise.
2449 (build_traceframe_info): Likewise.
2450 * tracefile.c (trace_file_writer_xfree): Likewise.
2451 * tracepoint.c (memrange_cmp): Likewise.
2452 (do_collect_symbol): Likewise.
2453 (do_clear_collection_list): Likewise.
2454 (do_restore_current_traceframe_cleanup): Likewise.
2455 (restore_current_traceframe_cleanup_dtor): Likewise.
2456 (free_current_marker): Likewise.
2457 (traceframe_info_start_memory): Likewise.
2458 (traceframe_info_start_tvar): Likewise.
2459 (free_result): Likewise.
2460 * tramp-frame.c (tramp_frame_cache): Likewise.
2461 * tui/tui-file.c (tui_file_delete): Likewise.
2462 (tui_fileopen): Likewise.
2463 (tui_sfileopen): Likewise.
2464 (tui_file_isatty): Likewise.
2465 (tui_file_rewind): Likewise.
2466 (tui_file_put): Likewise.
2467 (tui_file_fputs): Likewise.
2468 (tui_file_get_strbuf): Likewise.
2469 (tui_file_adjust_strbuf): Likewise.
2470 (tui_file_flush): Likewise.
2471 * tui/tui-layout.c (make_command_window): Likewise.
2472 (make_data_window): Likewise.
2473 (show_source_disasm_command): Likewise.
2474 (show_data): Likewise.
2475 (make_source_or_disasm_window): Likewise.
2476 (show_source_or_disasm_and_command): Likewise.
2477 * tui/tui-out.c (tui_field_int): Likewise.
2478 (tui_field_string): Likewise.
2479 (tui_field_fmt): Likewise.
2480 (tui_text): Likewise.
2481 * typeprint.c (hash_typedef_field): Likewise.
2482 (eq_typedef_field): Likewise.
2483 (do_free_typedef_hash): Likewise.
2484 (copy_typedef_hash_element): Likewise.
2485 (do_free_global_table): Likewise.
2486 (find_global_typedef): Likewise.
2487 (find_typedef_in_hash): Likewise.
2488 * ui-file.c (ui_file_write_for_put): Likewise.
2489 (do_ui_file_xstrdup): Likewise.
2490 (mem_file_delete): Likewise.
2491 (mem_file_rewind): Likewise.
2492 (mem_file_put): Likewise.
2493 (mem_file_write): Likewise.
2494 (stdio_file_delete): Likewise.
2495 (stdio_file_flush): Likewise.
2496 (stdio_file_read): Likewise.
2497 (stdio_file_write): Likewise.
2498 (stdio_file_write_async_safe): Likewise.
2499 (stdio_file_fputs): Likewise.
2500 (stdio_file_isatty): Likewise.
2501 (stdio_file_fseek): Likewise.
2502 (tee_file_delete): Likewise.
2503 (tee_file_flush): Likewise.
2504 (tee_file_write): Likewise.
2505 (tee_file_fputs): Likewise.
2506 (tee_file_isatty): Likewise.
2507 * ui-out.c (do_cleanup_table_end): Likewise.
2508 (do_cleanup_end): Likewise.
2509 * user-regs.c (user_reg_add): Likewise.
2510 (user_reg_map_name_to_regnum): Likewise.
2511 (usernum_to_user_reg): Likewise.
2512 (maintenance_print_user_registers): Likewise.
2513 * utils.c (do_bfd_close_cleanup): Likewise.
2514 (do_fclose_cleanup): Likewise.
2515 (do_obstack_free): Likewise.
2516 (do_ui_file_delete): Likewise.
2517 (do_ui_out_redirect_pop): Likewise.
2518 (do_free_section_addr_info): Likewise.
2519 (restore_integer): Likewise.
2520 (do_unpush_target): Likewise.
2521 (do_htab_delete_cleanup): Likewise.
2522 (do_restore_ui_file): Likewise.
2523 (do_value_free): Likewise.
2524 (do_free_so): Likewise.
2525 (free_current_contents): Likewise.
2526 (do_regfree_cleanup): Likewise.
2527 (core_addr_hash): Likewise.
2528 (core_addr_eq): Likewise.
2529 (do_free_char_ptr_vec): Likewise.
2530 * v850-tdep.c (v850_frame_cache): Likewise.
2531 * varobj.c (do_free_variable_cleanup): Likewise.
2532 * vax-tdep.c (vax_supply_gregset): Likewise.
2533 (vax_frame_cache): Likewise.
2534 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
2535 * xml-support.c (gdb_xml_body_text): Likewise.
2536 (gdb_xml_values_cleanup): Likewise.
2537 (gdb_xml_start_element): Likewise.
2538 (gdb_xml_start_element_wrapper): Likewise.
2539 (gdb_xml_end_element): Likewise.
2540 (gdb_xml_end_element_wrapper): Likewise.
2541 (gdb_xml_cleanup): Likewise.
2542 (gdb_xml_fetch_external_entity): Likewise.
2543 (gdb_xml_parse_attr_enum): Likewise.
2544 (xinclude_start_include): Likewise.
2545 (xinclude_end_include): Likewise.
2546 (xml_xinclude_default): Likewise.
2547 (xml_xinclude_start_doctype): Likewise.
2548 (xml_xinclude_end_doctype): Likewise.
2549 (xml_xinclude_cleanup): Likewise.
2550 (xml_fetch_content_from_file): Likewise.
2551 * xml-syscall.c (free_syscalls_info): Likewise.
2552 (syscall_start_syscall): Likewise.
2553 * xml-tdesc.c (tdesc_end_arch): Likewise.
2554 (tdesc_end_osabi): Likewise.
2555 (tdesc_end_compatible): Likewise.
2556 (tdesc_start_target): Likewise.
2557 (tdesc_start_feature): Likewise.
2558 (tdesc_start_reg): Likewise.
2559 (tdesc_start_union): Likewise.
2560 (tdesc_start_struct): Likewise.
2561 (tdesc_start_flags): Likewise.
2562 (tdesc_start_field): Likewise.
2563 (tdesc_start_vector): Likewise.
2564 (fetch_available_features_from_target): Likewise.
2565 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
2566 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
2567 (xtensa_frame_cache): Likewise.
2568 (xtensa_frame_prev_register): Likewise.
2569 (xtensa_extract_return_value): Likewise.
2570
2571 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2572
2573 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
2574 (aarch64_make_stub_cache): Likewise.
2575 (value_of_aarch64_user_reg): Likewise.
2576 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
2577 (get_ada_inferior_data): Likewise.
2578 (get_ada_pspace_data): Likewise.
2579 (ada_pspace_data_cleanup): Likewise.
2580 (ada_complete_symbol_matcher): Likewise.
2581 (ada_exc_search_name_matches): Likewise.
2582 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
2583 (get_ada_tasks_inferior_data): Likewise.
2584 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
2585 (splay_obstack_alloc): Likewise.
2586 (splay_obstack_free): Likewise.
2587 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
2588 (alpha_linux_collect_gregset): Likewise.
2589 (alpha_linux_supply_fpregset): Likewise.
2590 (alpha_linux_collect_fpregset): Likewise.
2591 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
2592 * alpha-tdep.c (alpha_lds): Likewise.
2593 (alpha_sts): Likewise.
2594 (alpha_sigtramp_frame_unwind_cache): Likewise.
2595 (alpha_heuristic_frame_unwind_cache): Likewise.
2596 (alpha_supply_int_regs): Likewise.
2597 (alpha_fill_int_regs): Likewise.
2598 (alpha_supply_fp_regs): Likewise.
2599 (alpha_fill_fp_regs): Likewise.
2600 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
2601 (alphanbsd_aout_supply_gregset): Likewise.
2602 (alphanbsd_supply_gregset): Likewise.
2603 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
2604 (amd64_x32_linux_init_abi): Likewise.
2605 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
2606 (amd64_collect_native_gregset): Likewise.
2607 * amd64-tdep.c (amd64_frame_cache): Likewise.
2608 (amd64_sigtramp_frame_cache): Likewise.
2609 (amd64_epilogue_frame_cache): Likewise.
2610 (amd64_supply_fxsave): Likewise.
2611 (amd64_supply_xsave): Likewise.
2612 (amd64_collect_fxsave): Likewise.
2613 (amd64_collect_xsave): Likewise.
2614 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
2615 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
2616 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
2617 (arm_linux_collect_gregset): Likewise.
2618 (arm_linux_supply_nwfpe): Likewise.
2619 (arm_linux_collect_nwfpe): Likewise.
2620 (arm_linux_supply_vfp): Likewise.
2621 (arm_linux_collect_vfp): Likewise.
2622 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
2623 (arm_prologue_unwind_stop_reason): Likewise.
2624 (arm_prologue_this_id): Likewise.
2625 (arm_prologue_prev_register): Likewise.
2626 (arm_exidx_data_free): Likewise.
2627 (arm_find_exidx_entry): Likewise.
2628 (arm_stub_this_id): Likewise.
2629 (arm_m_exception_this_id): Likewise.
2630 (arm_m_exception_prev_register): Likewise.
2631 (arm_normal_frame_base): Likewise.
2632 (gdb_print_insn_arm): Likewise.
2633 (arm_objfile_data_free): Likewise.
2634 (arm_record_special_symbol): Likewise.
2635 (value_of_arm_user_reg): Likewise.
2636 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
2637 (armbsd_supply_gregset): Likewise.
2638 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
2639 (get_auto_load_pspace_data): Likewise.
2640 (hash_loaded_script_entry): Likewise.
2641 (eq_loaded_script_entry): Likewise.
2642 (clear_section_scripts): Likewise.
2643 (collect_matching_scripts): Likewise.
2644 * auxv.c (auxv_inferior_data_cleanup): Likewise.
2645 (get_auxv_inferior_data): Likewise.
2646 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
2647 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
2648 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2649 (target_bfd_xclose): Likewise.
2650 (target_bfd_get_section_table): Likewise.
2651 * bfin-tdep.c (bfin_frame_cache): Likewise.
2652 * block.c (find_block_in_blockvector): Likewise.
2653 (call_site_for_pc): Likewise.
2654 (block_find_non_opaque_type_preferred): Likewise.
2655 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
2656 (signal_catchpoint_remove_location): Likewise.
2657 (signal_catchpoint_breakpoint_hit): Likewise.
2658 (signal_catchpoint_print_one): Likewise.
2659 (signal_catchpoint_print_mention): Likewise.
2660 (signal_catchpoint_print_recreate): Likewise.
2661 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
2662 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
2663 (bp_location_compare_addrs): Likewise.
2664 (get_first_locp_gte_addr): Likewise.
2665 (check_tracepoint_command): Likewise.
2666 (do_map_commands_command): Likewise.
2667 (get_breakpoint_objfile_data): Likewise.
2668 (free_breakpoint_probes): Likewise.
2669 (do_captured_breakpoint_query): Likewise.
2670 (compare_breakpoints): Likewise.
2671 (bp_location_compare): Likewise.
2672 (bpstat_remove_breakpoint_callback): Likewise.
2673 (do_delete_breakpoint_cleanup): Likewise.
2674 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
2675 (bsd_uthread_set_collect_uthread): Likewise.
2676 (bsd_uthread_activate): Likewise.
2677 (bsd_uthread_fetch_registers): Likewise.
2678 (bsd_uthread_store_registers): Likewise.
2679 * btrace.c (check_xml_btrace_version): Likewise.
2680 (parse_xml_btrace_block): Likewise.
2681 (parse_xml_btrace_pt_config_cpu): Likewise.
2682 (parse_xml_btrace_pt_raw): Likewise.
2683 (parse_xml_btrace_pt): Likewise.
2684 (parse_xml_btrace_conf_bts): Likewise.
2685 (parse_xml_btrace_conf_pt): Likewise.
2686 (do_btrace_data_cleanup): Likewise.
2687 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
2688 * charset.c (cleanup_iconv): Likewise.
2689 (do_cleanup_iterator): Likewise.
2690 * cli-out.c (cli_uiout_dtor): Likewise.
2691 (cli_table_begin): Likewise.
2692 (cli_table_body): Likewise.
2693 (cli_table_end): Likewise.
2694 (cli_table_header): Likewise.
2695 (cli_begin): Likewise.
2696 (cli_end): Likewise.
2697 (cli_field_int): Likewise.
2698 (cli_field_skip): Likewise.
2699 (cli_field_string): Likewise.
2700 (cli_field_fmt): Likewise.
2701 (cli_spaces): Likewise.
2702 (cli_text): Likewise.
2703 (cli_message): Likewise.
2704 (cli_wrap_hint): Likewise.
2705 (cli_flush): Likewise.
2706 (cli_redirect): Likewise.
2707 (out_field_fmt): Likewise.
2708 (field_separator): Likewise.
2709 (cli_out_set_stream): Likewise.
2710 * cli/cli-cmds.c (compare_symtabs): Likewise.
2711 * cli/cli-dump.c (call_dump_func): Likewise.
2712 (restore_section_callback): Likewise.
2713 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
2714 (do_restore_user_call_depth): Likewise.
2715 (do_free_command_lines_cleanup): Likewise.
2716 * coff-pe-read.c (get_section_vmas): Likewise.
2717 (pe_as16): Likewise.
2718 (pe_as32): Likewise.
2719 * coffread.c (coff_symfile_read): Likewise.
2720 * common/agent.c (agent_look_up_symbols): Likewise.
2721 * common/filestuff.c (do_close_cleanup): Likewise.
2722 * common/format.c (free_format_pieces_cleanup): Likewise.
2723 * common/vec.c (vec_o_reserve): Likewise.
2724 * compile/compile-c-support.c (print_one_macro): Likewise.
2725 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
2726 (eq_symbol_error): Likewise.
2727 (del_symbol_error): Likewise.
2728 (error_symbol_once): Likewise.
2729 (gcc_convert_symbol): Likewise.
2730 (gcc_symbol_address): Likewise.
2731 (hash_symname): Likewise.
2732 (eq_symname): Likewise.
2733 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
2734 (eq_type_map_instance): Likewise.
2735 (insert_type): Likewise.
2736 (convert_type): Likewise.
2737 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
2738 (setup_sections): Likewise.
2739 (link_hash_table_free): Likewise.
2740 (copy_sections): Likewise.
2741 * compile/compile-object-run.c (do_module_cleanup): Likewise.
2742 * compile/compile.c (compile_print_value): Likewise.
2743 (do_rmdir): Likewise.
2744 (cleanup_compile_instance): Likewise.
2745 (cleanup_unlink_file): Likewise.
2746 * completer.c (free_completion_tracker): Likewise.
2747 * corelow.c (add_to_spuid_list): Likewise.
2748 * cp-namespace.c (reset_directive_searched): Likewise.
2749 * cp-support.c (reset_directive_searched): Likewise.
2750 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
2751 (cris_frame_unwind_cache): Likewise.
2752 * d-lang.c (builtin_d_type): Likewise.
2753 * d-namespace.c (reset_directive_searched): Likewise.
2754 * dbxread.c (dbx_free_symfile_info): Likewise.
2755 (do_free_bincl_list_cleanup): Likewise.
2756 * disasm.c (hash_dis_line_entry): Likewise.
2757 (eq_dis_line_entry): Likewise.
2758 (dis_asm_print_address): Likewise.
2759 (fprintf_disasm): Likewise.
2760 (do_ui_file_delete): Likewise.
2761 * doublest.c (convert_floatformat_to_doublest): Likewise.
2762 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
2763 (dummy_frame_prev_register): Likewise.
2764 (dummy_frame_this_id): Likewise.
2765 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
2766 (cache_eq): Likewise.
2767 (cache_find): Likewise.
2768 (tailcall_frame_this_id): Likewise.
2769 (dwarf2_tailcall_prev_register_first): Likewise.
2770 (tailcall_frame_prev_register): Likewise.
2771 (tailcall_frame_dealloc_cache): Likewise.
2772 (tailcall_frame_prev_arch): Likewise.
2773 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
2774 (dwarf2_frame_set_init_reg): Likewise.
2775 (dwarf2_frame_init_reg): Likewise.
2776 (dwarf2_frame_set_signal_frame_p): Likewise.
2777 (dwarf2_frame_signal_frame_p): Likewise.
2778 (dwarf2_frame_set_adjust_regnum): Likewise.
2779 (dwarf2_frame_adjust_regnum): Likewise.
2780 (clear_pointer_cleanup): Likewise.
2781 (dwarf2_frame_cache): Likewise.
2782 (find_cie): Likewise.
2783 (dwarf2_frame_find_fde): Likewise.
2784 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
2785 (free_dwarf_expr_context_cleanup): Likewise.
2786 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
2787 (locexpr_get_frame_base): Likewise.
2788 (loclist_find_frame_base_location): Likewise.
2789 (loclist_get_frame_base): Likewise.
2790 (dwarf_expr_dwarf_call): Likewise.
2791 (dwarf_expr_get_base_type): Likewise.
2792 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
2793 (dwarf_expr_get_obj_addr): Likewise.
2794 (entry_data_value_coerce_ref): Likewise.
2795 (entry_data_value_copy_closure): Likewise.
2796 (entry_data_value_free_closure): Likewise.
2797 (get_frame_address_in_block_wrapper): Likewise.
2798 (dwarf2_evaluate_property): Likewise.
2799 (dwarf2_compile_property_to_c): Likewise.
2800 (needs_frame_read_addr_from_reg): Likewise.
2801 (needs_frame_get_reg_value): Likewise.
2802 (needs_frame_frame_base): Likewise.
2803 (needs_frame_frame_cfa): Likewise.
2804 (needs_frame_tls_address): Likewise.
2805 (needs_frame_dwarf_call): Likewise.
2806 (needs_dwarf_reg_entry_value): Likewise.
2807 (get_ax_pc): Likewise.
2808 (locexpr_read_variable): Likewise.
2809 (locexpr_read_variable_at_entry): Likewise.
2810 (locexpr_read_needs_frame): Likewise.
2811 (locexpr_describe_location): Likewise.
2812 (locexpr_tracepoint_var_ref): Likewise.
2813 (locexpr_generate_c_location): Likewise.
2814 (loclist_read_variable): Likewise.
2815 (loclist_read_variable_at_entry): Likewise.
2816 (loclist_describe_location): Likewise.
2817 (loclist_tracepoint_var_ref): Likewise.
2818 (loclist_generate_c_location): Likewise.
2819 * dwarf2read.c (line_header_hash_voidp): Likewise.
2820 (line_header_eq_voidp): Likewise.
2821 (dwarf2_has_info): Likewise.
2822 (dwarf2_get_section_info): Likewise.
2823 (locate_dwz_sections): Likewise.
2824 (hash_file_name_entry): Likewise.
2825 (eq_file_name_entry): Likewise.
2826 (delete_file_name_entry): Likewise.
2827 (dw2_setup): Likewise.
2828 (dw2_get_file_names_reader): Likewise.
2829 (dw2_find_pc_sect_compunit_symtab): Likewise.
2830 (hash_signatured_type): Likewise.
2831 (eq_signatured_type): Likewise.
2832 (add_signatured_type_cu_to_table): Likewise.
2833 (create_debug_types_hash_table): Likewise.
2834 (lookup_dwo_signatured_type): Likewise.
2835 (lookup_dwp_signatured_type): Likewise.
2836 (lookup_signatured_type): Likewise.
2837 (hash_type_unit_group): Likewise.
2838 (eq_type_unit_group): Likewise.
2839 (get_type_unit_group): Likewise.
2840 (process_psymtab_comp_unit_reader): Likewise.
2841 (sort_tu_by_abbrev_offset): Likewise.
2842 (process_skeletonless_type_unit): Likewise.
2843 (psymtabs_addrmap_cleanup): Likewise.
2844 (dwarf2_read_symtab): Likewise.
2845 (psymtab_to_symtab_1): Likewise.
2846 (die_hash): Likewise.
2847 (die_eq): Likewise.
2848 (load_full_comp_unit_reader): Likewise.
2849 (reset_die_in_process): Likewise.
2850 (free_cu_line_header): Likewise.
2851 (handle_DW_AT_stmt_list): Likewise.
2852 (hash_dwo_file): Likewise.
2853 (eq_dwo_file): Likewise.
2854 (hash_dwo_unit): Likewise.
2855 (eq_dwo_unit): Likewise.
2856 (create_dwo_cu_reader): Likewise.
2857 (create_dwo_unit_in_dwp_v1): Likewise.
2858 (create_dwo_unit_in_dwp_v2): Likewise.
2859 (lookup_dwo_unit_in_dwp): Likewise.
2860 (dwarf2_locate_dwo_sections): Likewise.
2861 (dwarf2_locate_common_dwp_sections): Likewise.
2862 (dwarf2_locate_v2_dwp_sections): Likewise.
2863 (hash_dwp_loaded_cutus): Likewise.
2864 (eq_dwp_loaded_cutus): Likewise.
2865 (lookup_dwo_cutu): Likewise.
2866 (abbrev_table_free_cleanup): Likewise.
2867 (dwarf2_free_abbrev_table): Likewise.
2868 (find_partial_die_in_comp_unit): Likewise.
2869 (free_line_header_voidp): Likewise.
2870 (follow_die_offset): Likewise.
2871 (follow_die_sig_1): Likewise.
2872 (free_heap_comp_unit): Likewise.
2873 (free_stack_comp_unit): Likewise.
2874 (dwarf2_free_objfile): Likewise.
2875 (per_cu_offset_and_type_hash): Likewise.
2876 (per_cu_offset_and_type_eq): Likewise.
2877 (get_die_type_at_offset): Likewise.
2878 (partial_die_hash): Likewise.
2879 (partial_die_eq): Likewise.
2880 (dwarf2_per_objfile_free): Likewise.
2881 (hash_strtab_entry): Likewise.
2882 (eq_strtab_entry): Likewise.
2883 (add_string): Likewise.
2884 (hash_symtab_entry): Likewise.
2885 (eq_symtab_entry): Likewise.
2886 (delete_symtab_entry): Likewise.
2887 (cleanup_mapped_symtab): Likewise.
2888 (add_indices_to_cpool): Likewise.
2889 (hash_psymtab_cu_index): Likewise.
2890 (eq_psymtab_cu_index): Likewise.
2891 (add_address_entry_worker): Likewise.
2892 (unlink_if_set): Likewise.
2893 (write_one_signatured_type): Likewise.
2894 (save_gdb_index_command): Likewise.
2895 * elfread.c (elf_symtab_read): Likewise.
2896 (elf_gnu_ifunc_cache_hash): Likewise.
2897 (elf_gnu_ifunc_cache_eq): Likewise.
2898 (elf_gnu_ifunc_record_cache): Likewise.
2899 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2900 (elf_get_probes): Likewise.
2901 (probe_key_free): Likewise.
2902 * f-lang.c (builtin_f_type): Likewise.
2903 * frame-base.c (frame_base_append_sniffer): Likewise.
2904 (frame_base_set_default): Likewise.
2905 (frame_base_find_by_frame): Likewise.
2906 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
2907 (frame_unwind_append_unwinder): Likewise.
2908 (frame_unwind_find_by_frame): Likewise.
2909 * frame.c (frame_addr_hash): Likewise.
2910 (frame_addr_hash_eq): Likewise.
2911 (frame_stash_find): Likewise.
2912 (do_frame_register_read): Likewise.
2913 (unwind_to_current_frame): Likewise.
2914 (frame_cleanup_after_sniffer): Likewise.
2915 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
2916 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
2917 * ft32-tdep.c (ft32_frame_cache): Likewise.
2918 * gcore.c (do_bfd_delete_cleanup): Likewise.
2919 (gcore_create_callback): Likewise.
2920 * gdb_bfd.c (hash_bfd): Likewise.
2921 (eq_bfd): Likewise.
2922 (gdb_bfd_open): Likewise.
2923 (free_one_bfd_section): Likewise.
2924 (gdb_bfd_ref): Likewise.
2925 (gdb_bfd_unref): Likewise.
2926 (get_section_descriptor): Likewise.
2927 (gdb_bfd_map_section): Likewise.
2928 (gdb_bfd_crc): Likewise.
2929 (gdb_bfd_mark_parent): Likewise.
2930 (gdb_bfd_record_inclusion): Likewise.
2931 (gdb_bfd_requires_relocations): Likewise.
2932 (print_one_bfd): Likewise.
2933 * gdbtypes.c (type_pair_hash): Likewise.
2934 (type_pair_eq): Likewise.
2935 (builtin_type): Likewise.
2936 (objfile_type): Likewise.
2937 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
2938 (vtable_address_point_offset): Likewise.
2939 (gnuv3_get_vtable): Likewise.
2940 (hash_value_and_voffset): Likewise.
2941 (eq_value_and_voffset): Likewise.
2942 (compare_value_and_voffset): Likewise.
2943 (compute_vtable_size): Likewise.
2944 (gnuv3_get_typeid_type): Likewise.
2945 * go-lang.c (builtin_go_type): Likewise.
2946 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
2947 (bkscm_eq_block_smob): Likewise.
2948 (bkscm_objfile_block_map): Likewise.
2949 (bkscm_del_objfile_blocks): Likewise.
2950 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
2951 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
2952 (gdbscm_disasm_print_address): Likewise.
2953 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
2954 (frscm_eq_frame_smob): Likewise.
2955 (frscm_inferior_frame_map): Likewise.
2956 (frscm_del_inferior_frames): Likewise.
2957 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
2958 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
2959 (ofscm_objfile_smob_from_objfile): Likewise.
2960 * guile/scm-ports.c (ioscm_write): Likewise.
2961 (ioscm_file_port_delete): Likewise.
2962 (ioscm_file_port_rewind): Likewise.
2963 (ioscm_file_port_put): Likewise.
2964 (ioscm_file_port_write): Likewise.
2965 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
2966 (psscm_pspace_smob_from_pspace): Likewise.
2967 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
2968 (scscm_recording_unwind_handler): Likewise.
2969 (gdbscm_with_catch): Likewise.
2970 (scscm_call_0_body): Likewise.
2971 (scscm_call_1_body): Likewise.
2972 (scscm_call_2_body): Likewise.
2973 (scscm_call_3_body): Likewise.
2974 (scscm_call_4_body): Likewise.
2975 (scscm_apply_1_body): Likewise.
2976 (scscm_eval_scheme_string): Likewise.
2977 (gdbscm_safe_eval_string): Likewise.
2978 (scscm_source_scheme_script): Likewise.
2979 (gdbscm_safe_source_script): Likewise.
2980 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
2981 (gdbscm_call_scm_from_stringn): Likewise.
2982 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
2983 (syscm_eq_symbol_smob): Likewise.
2984 (syscm_get_symbol_map): Likewise.
2985 (syscm_del_objfile_symbols): Likewise.
2986 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
2987 (stscm_eq_symtab_smob): Likewise.
2988 (stscm_objfile_symtab_map): Likewise.
2989 (stscm_del_objfile_symtabs): Likewise.
2990 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
2991 (tyscm_eq_type_smob): Likewise.
2992 (tyscm_type_map): Likewise.
2993 (tyscm_copy_type_recursive): Likewise.
2994 (save_objfile_types): Likewise.
2995 * guile/scm-utils.c (extract_arg): Likewise.
2996 * h8300-tdep.c (h8300_frame_cache): Likewise.
2997 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
2998 * hppa-tdep.c (compare_unwind_entries): Likewise.
2999 (find_unwind_entry): Likewise.
3000 (hppa_frame_cache): Likewise.
3001 (hppa_stub_frame_unwind_cache): Likewise.
3002 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
3003 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
3004 (hppaobsd_supply_fpregset): Likewise.
3005 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
3006 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3007 * i386-tdep.c (i386_frame_cache): Likewise.
3008 (i386_epilogue_frame_cache): Likewise.
3009 (i386_sigtramp_frame_cache): Likewise.
3010 (i386_supply_gregset): Likewise.
3011 (i386_collect_gregset): Likewise.
3012 (i386_gdbarch_init): Likewise.
3013 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
3014 (i386obsd_trapframe_cache): Likewise.
3015 * i387-tdep.c (i387_supply_fsave): Likewise.
3016 (i387_collect_fsave): Likewise.
3017 (i387_supply_fxsave): Likewise.
3018 (i387_collect_fxsave): Likewise.
3019 (i387_supply_xsave): Likewise.
3020 (i387_collect_xsave): Likewise.
3021 * ia64-tdep.c (ia64_frame_cache): Likewise.
3022 (ia64_sigtramp_frame_cache): Likewise.
3023 * infcmd.c (attach_command_continuation): Likewise.
3024 (attach_command_continuation_free_args): Likewise.
3025 * inferior.c (restore_inferior): Likewise.
3026 (delete_thread_of_inferior): Likewise.
3027 * inflow.c (inflow_inferior_data_cleanup): Likewise.
3028 (get_inflow_inferior_data): Likewise.
3029 (inflow_inferior_exit): Likewise.
3030 * infrun.c (displaced_step_clear_cleanup): Likewise.
3031 (restore_current_uiout_cleanup): Likewise.
3032 (release_stop_context_cleanup): Likewise.
3033 (do_restore_infcall_suspend_state_cleanup): Likewise.
3034 (do_restore_infcall_control_state_cleanup): Likewise.
3035 (restore_inferior_ptid): Likewise.
3036 * inline-frame.c (block_starting_point_at): Likewise.
3037 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
3038 * jit.c (get_jit_objfile_data): Likewise.
3039 (get_jit_program_space_data): Likewise.
3040 (jit_object_close_impl): Likewise.
3041 (jit_find_objf_with_entry_addr): Likewise.
3042 (jit_breakpoint_deleted): Likewise.
3043 (jit_unwind_reg_set_impl): Likewise.
3044 (jit_unwind_reg_get_impl): Likewise.
3045 (jit_dealloc_cache): Likewise.
3046 (jit_frame_sniffer): Likewise.
3047 (jit_frame_prev_register): Likewise.
3048 (jit_prepend_unwinder): Likewise.
3049 (jit_inferior_exit_hook): Likewise.
3050 (free_objfile_data): Likewise.
3051 * jv-lang.c (jv_per_objfile_free): Likewise.
3052 (get_dynamics_objfile): Likewise.
3053 (get_java_class_symtab): Likewise.
3054 (builtin_java_type): Likewise.
3055 * language.c (language_string_char_type): Likewise.
3056 (language_bool_type): Likewise.
3057 (language_lookup_primitive_type): Likewise.
3058 (language_lookup_primitive_type_as_symbol): Likewise.
3059 * linespec.c (hash_address_entry): Likewise.
3060 (eq_address_entry): Likewise.
3061 (iterate_inline_only): Likewise.
3062 (iterate_name_matcher): Likewise.
3063 (decode_line_2_compare_items): Likewise.
3064 (collect_one_symbol): Likewise.
3065 (compare_symbols): Likewise.
3066 (compare_msymbols): Likewise.
3067 (add_symtabs_to_list): Likewise.
3068 (collect_symbols): Likewise.
3069 (compare_msyms): Likewise.
3070 (add_minsym): Likewise.
3071 (cleanup_linespec_result): Likewise.
3072 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
3073 * linux-nat.c (delete_lwp_cleanup): Likewise.
3074 (count_events_callback): Likewise.
3075 (select_event_lwp_callback): Likewise.
3076 (resume_stopped_resumed_lwps): Likewise.
3077 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
3078 (invalidate_linux_cache_inf): Likewise.
3079 (get_linux_inferior_data): Likewise.
3080 (linux_find_memory_regions_thunk): Likewise.
3081 (linux_make_mappings_callback): Likewise.
3082 (linux_corefile_thread_callback): Likewise.
3083 (find_mapping_size): Likewise.
3084 * linux-thread-db.c (find_new_threads_callback): Likewise.
3085 * lm32-tdep.c (lm32_frame_cache): Likewise.
3086 * m2-lang.c (builtin_m2_type): Likewise.
3087 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
3088 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
3089 (m32r_linux_supply_gregset): Likewise.
3090 (m32r_linux_collect_gregset): Likewise.
3091 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3092 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3093 * m68k-tdep.c (m68k_frame_cache): Likewise.
3094 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
3095 (m68kbsd_supply_gregset): Likewise.
3096 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
3097 * m88k-tdep.c (m88k_frame_cache): Likewise.
3098 (m88k_supply_gregset): Likewise.
3099
3100 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
3101
3102 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
3103 to allocation result assignment.
3104 * ada-exp.y (write_object_renaming): Likewise.
3105 (write_ambiguous_var): Likewise.
3106 (ada_nget_field_index): Likewise.
3107 (write_var_or_type): Likewise.
3108 * ada-lang.c (ada_decode_symbol): Likewise.
3109 (ada_value_assign): Likewise.
3110 (value_pointer): Likewise.
3111 (cache_symbol): Likewise.
3112 (add_nonlocal_symbols): Likewise.
3113 (ada_name_for_lookup): Likewise.
3114 (symbol_completion_add): Likewise.
3115 (ada_to_fixed_type_1): Likewise.
3116 (ada_get_next_arg): Likewise.
3117 (defns_collected): Likewise.
3118 * ada-lex.l (processId): Likewise.
3119 (processString): Likewise.
3120 * ada-tasks.c (read_known_tasks_array): Likewise.
3121 (read_known_tasks_list): Likewise.
3122 * ada-typeprint.c (decoded_type_name): Likewise.
3123 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
3124 * amd64-tdep.c (amd64_push_arguments): Likewise.
3125 (amd64_displaced_step_copy_insn): Likewise.
3126 (amd64_classify_insn_at): Likewise.
3127 (amd64_relocate_instruction): Likewise.
3128 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3129 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
3130 (initialize_current_architecture): Likewise.
3131 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3132 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
3133 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
3134 (arm_push_dummy_call): Likewise.
3135 (extend_buffer_earlier): Likewise.
3136 (arm_adjust_breakpoint_address): Likewise.
3137 (arm_skip_stub): Likewise.
3138 * auto-load.c (filename_is_in_pattern): Likewise.
3139 (maybe_add_script_file): Likewise.
3140 (maybe_add_script_text): Likewise.
3141 (auto_load_objfile_script_1): Likewise.
3142 * auxv.c (ld_so_xfer_auxv): Likewise.
3143 * ax-general.c (new_agent_expr): Likewise.
3144 (grow_expr): Likewise.
3145 (ax_reg_mask): Likewise.
3146 * bcache.c (bcache_full): Likewise.
3147 * breakpoint.c (program_breakpoint_here_p): Likewise.
3148 * btrace.c (parse_xml_raw): Likewise.
3149 * build-id.c (build_id_to_debug_bfd): Likewise.
3150 * buildsym.c (end_symtab_with_blockvector): Likewise.
3151 * c-exp.y (string_exp): Likewise.
3152 (qualified_name): Likewise.
3153 (write_destructor_name): Likewise.
3154 (operator_stoken): Likewise.
3155 (parse_number): Likewise.
3156 (scan_macro_expansion): Likewise.
3157 (yylex): Likewise.
3158 (c_print_token): Likewise.
3159 * c-lang.c (c_get_string): Likewise.
3160 (emit_numeric_character): Likewise.
3161 * charset.c (wchar_iterate): Likewise.
3162 * cli/cli-cmds.c (complete_command): Likewise.
3163 (make_command): Likewise.
3164 * cli/cli-dump.c (restore_section_callback): Likewise.
3165 (restore_binary_file): Likewise.
3166 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
3167 * cli/cli-script.c (execute_control_command): Likewise.
3168 * cli/cli-setshow.c (do_set_command): Likewise.
3169 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
3170 (read_pe_exported_syms): Likewise.
3171 * coffread.c (coff_read_struct_type): Likewise.
3172 (coff_read_enum_type): Likewise.
3173 * common/btrace-common.c (btrace_data_append): Likewise.
3174 * common/buffer.c (buffer_grow): Likewise.
3175 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
3176 * common/format.c (parse_format_string): Likewise.
3177 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
3178 * common/xml-utils.c (xml_escape_text): Likewise.
3179 * compile/compile-object-load.c (copy_sections): Likewise.
3180 (compile_object_load): Likewise.
3181 * compile/compile-object-run.c (compile_object_run): Likewise.
3182 * completer.c (filename_completer): Likewise.
3183 * corefile.c (read_memory_typed_address): Likewise.
3184 (write_memory_unsigned_integer): Likewise.
3185 (write_memory_signed_integer): Likewise.
3186 (complete_set_gnutarget): Likewise.
3187 * corelow.c (get_core_register_section): Likewise.
3188 * cp-name-parser.y (d_grab): Likewise.
3189 (allocate_info): Likewise.
3190 (cp_new_demangle_parse_info): Likewise.
3191 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
3192 (cp_lookup_symbol_in_namespace): Likewise.
3193 (lookup_namespace_scope): Likewise.
3194 (find_symbol_in_baseclass): Likewise.
3195 (cp_lookup_nested_symbol): Likewise.
3196 (cp_lookup_transparent_type_loop): Likewise.
3197 * cp-support.c (copy_string_to_obstack): Likewise.
3198 (make_symbol_overload_list): Likewise.
3199 (make_symbol_overload_list_namespace): Likewise.
3200 (make_symbol_overload_list_adl_namespace): Likewise.
3201 (first_component_command): Likewise.
3202 * cp-valprint.c (cp_print_value): Likewise.
3203 * ctf.c (ctf_xfer_partial): Likewise.
3204 * d-exp.y (StringExp): Likewise.
3205 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
3206 (lookup_module_scope): Likewise.
3207 (find_symbol_in_baseclass): Likewise.
3208 (d_lookup_nested_symbol): Likewise.
3209 * dbxread.c (find_stab_function_addr): Likewise.
3210 (read_dbx_symtab): Likewise.
3211 (dbx_end_psymtab): Likewise.
3212 (cp_set_block_scope): Likewise.
3213 * dcache.c (dcache_alloc): Likewise.
3214 * demangle.c (_initialize_demangler): Likewise.
3215 * dicos-tdep.c (dicos_load_module_p): Likewise.
3216 * dictionary.c (dict_create_hashed_expandable): Likewise.
3217 (dict_create_linear_expandable): Likewise.
3218 (expand_hashtable): Likewise.
3219 (add_symbol_linear_expandable): Likewise.
3220 * dwarf2-frame.c (add_cie): Likewise.
3221 (add_fde): Likewise.
3222 (dwarf2_build_frame_info): Likewise.
3223 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
3224 (dwarf_expr_fetch_address): Likewise.
3225 (add_piece): Likewise.
3226 (execute_stack_op): Likewise.
3227 * dwarf2loc.c (chain_candidate): Likewise.
3228 (dwarf_entry_parameter_to_value): Likewise.
3229 (read_pieced_value): Likewise.
3230 (write_pieced_value): Likewise.
3231 * dwarf2read.c (dwarf2_read_section): Likewise.
3232 (add_type_unit): Likewise.
3233 (read_comp_units_from_section): Likewise.
3234 (fixup_go_packaging): Likewise.
3235 (dwarf2_compute_name): Likewise.
3236 (dwarf2_physname): Likewise.
3237 (create_dwo_unit_in_dwp_v1): Likewise.
3238 (create_dwo_unit_in_dwp_v2): Likewise.
3239 (read_func_scope): Likewise.
3240 (read_call_site_scope): Likewise.
3241 (dwarf2_attach_fields_to_type): Likewise.
3242 (process_structure_scope): Likewise.
3243 (mark_common_block_symbol_computed): Likewise.
3244 (read_common_block): Likewise.
3245 (abbrev_table_read_table): Likewise.
3246 (guess_partial_die_structure_name): Likewise.
3247 (fixup_partial_die): Likewise.
3248 (add_file_name): Likewise.
3249 (dwarf2_const_value_data): Likewise.
3250 (dwarf2_const_value_attr): Likewise.
3251 (build_error_marker_type): Likewise.
3252 (guess_full_die_structure_name): Likewise.
3253 (anonymous_struct_prefix): Likewise.
3254 (typename_concat): Likewise.
3255 (dwarf2_canonicalize_name): Likewise.
3256 (dwarf2_name): Likewise.
3257 (write_constant_as_bytes): Likewise.
3258 (dwarf2_fetch_constant_bytes): Likewise.
3259 (copy_string): Likewise.
3260 (parse_macro_definition): Likewise.
3261 * elfread.c (elf_symfile_segments): Likewise.
3262 (elf_rel_plt_read): Likewise.
3263 (elf_gnu_ifunc_resolve_by_cache): Likewise.
3264 (elf_gnu_ifunc_resolve_by_got): Likewise.
3265 (elf_read_minimal_symbols): Likewise.
3266 (elf_gnu_ifunc_record_cache): Likewise.
3267 * event-top.c (top_level_prompt): Likewise.
3268 (command_line_handler): Likewise.
3269 * exec.c (resize_section_table): Likewise.
3270 * expprint.c (print_subexp_standard): Likewise.
3271 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
3272 * findcmd.c (parse_find_args): Likewise.
3273 * findvar.c (address_from_register): Likewise.
3274 * frame.c (get_prev_frame_always): Likewise.
3275 * gdb_bfd.c (gdb_bfd_ref): Likewise.
3276 (get_section_descriptor): Likewise.
3277 * gdb_obstack.c (obconcat): Likewise.
3278 (obstack_strdup): Likewise.
3279 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
3280 (create_set_type): Likewise.
3281 (lookup_unsigned_typename): Likewise.
3282 (lookup_signed_typename): Likewise.
3283 (resolve_dynamic_union): Likewise.
3284 (resolve_dynamic_struct): Likewise.
3285 (add_dyn_prop): Likewise.
3286 (copy_dynamic_prop_list): Likewise.
3287 (arch_flags_type): Likewise.
3288 (append_composite_type_field_raw): Likewise.
3289 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
3290 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
3291 * go-exp.y (string_exp): Likewise.
3292 * go-lang.c (go_demangle): Likewise.
3293 * guile/guile.c (compute_scheme_string): Likewise.
3294 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3295 (gdbscm_canonicalize_command_name): Likewise.
3296 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
3297 (ioscm_init_memory_port): Likewise.
3298 (ioscm_reinit_memory_port): Likewise.
3299 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
3300 (gdbscm_gc_dup_argv): Likewise.
3301 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3302 * hppa-tdep.c (internalize_unwinds): Likewise.
3303 (read_unwind_info): Likewise.
3304 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
3305 (windows_core_xfer_shared_libraries): Likewise.
3306 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3307 (i386_stap_parse_special_token_triplet): Likewise.
3308 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3309 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3310 * inf-child.c (inf_child_fileio_readlink): Likewise.
3311 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
3312 (inf_ptrace_store_register): Likewise.
3313 * infrun.c (follow_exec): Likewise.
3314 (displaced_step_prepare_throw): Likewise.
3315 (save_stop_context): Likewise.
3316 (save_infcall_suspend_state): Likewise.
3317 * jit.c (jit_read_descriptor): Likewise.
3318 (jit_read_code_entry): Likewise.
3319 (jit_symtab_line_mapping_add_impl): Likewise.
3320 (finalize_symtab): Likewise.
3321 (jit_unwind_reg_get_impl): Likewise.
3322 * jv-exp.y (QualifiedName): Likewise.
3323 * jv-lang.c (get_java_utf8_name): Likewise.
3324 (type_from_class): Likewise.
3325 (java_demangle_type_signature): Likewise.
3326 (java_class_name_from_physname): Likewise.
3327 * jv-typeprint.c (java_type_print_base): Likewise.
3328 * jv-valprint.c (java_value_print): Likewise.
3329 * language.c (add_language): Likewise.
3330 * linespec.c (add_sal_to_sals_basic): Likewise.
3331 (add_sal_to_sals): Likewise.
3332 (decode_objc): Likewise.
3333 (find_linespec_symbols): Likewise.
3334 * linux-fork.c (fork_save_infrun_state): Likewise.
3335 * linux-nat.c (linux_nat_detach): Likewise.
3336 (linux_nat_fileio_readlink): Likewise.
3337 * linux-record.c (record_linux_sockaddr): Likewise.
3338 (record_linux_msghdr): Likewise.
3339 (Do): Likewise.
3340 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
3341 (linux_collect_regset_section_cb): Likewise.
3342 (linux_get_siginfo_data): Likewise.
3343 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
3344 (try_thread_db_load_from_dir): Likewise.
3345 (thread_db_load_search): Likewise.
3346 (info_auto_load_libthread_db): Likewise.
3347 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
3348 (m32c_m16c_pointer_to_address): Likewise.
3349 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
3350 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3351 * machoread.c (macho_check_dsym): Likewise.
3352 * macroexp.c (resize_buffer): Likewise.
3353 (gather_arguments): Likewise.
3354 (maybe_expand): Likewise.
3355 * macrotab.c (new_macro_key): Likewise.
3356 (new_source_file): Likewise.
3357 (new_macro_definition): Likewise.
3358 * mdebugread.c (parse_symbol): Likewise.
3359 (parse_type): Likewise.
3360 (parse_partial_symbols): Likewise.
3361 (psymtab_to_symtab_1): Likewise.
3362 * mem-break.c (default_memory_insert_breakpoint): Likewise.
3363 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
3364 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
3365 (mi_cmd_data_read_memory_bytes): Likewise.
3366 (mi_cmd_data_write_memory_bytes): Likewise.
3367 (mi_cmd_trace_frame_collected): Likewise.
3368 * mi/mi-parse.c (mi_parse_argv): Likewise.
3369 (mi_parse): Likewise.
3370 * minidebug.c (lzma_open): Likewise.
3371 (lzma_pread): Likewise.
3372 * mips-tdep.c (mips_read_fp_register_single): Likewise.
3373 (mips_print_fp_register): Likewise.
3374 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
3375 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3376 * mt-tdep.c (mt_register_name): Likewise.
3377 (mt_registers_info): Likewise.
3378 (mt_push_dummy_call): Likewise.
3379 * namespace.c (add_using_directive): Likewise.
3380 * nat/linux-btrace.c (perf_event_read): Likewise.
3381 (linux_enable_bts): Likewise.
3382 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
3383 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
3384 * nto-tdep.c (nto_find_and_open_solib): Likewise.
3385 (nto_parse_redirection): Likewise.
3386 * objc-lang.c (objc_demangle): Likewise.
3387 (find_methods): Likewise.
3388 * objfiles.c (get_objfile_bfd_data): Likewise.
3389 (set_objfile_main_name): Likewise.
3390 (allocate_objfile): Likewise.
3391 (objfile_relocate): Likewise.
3392 (update_section_map): Likewise.
3393 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
3394 * p-exp.y (exp): Likewise.
3395 (yylex): Likewise.
3396 * p-valprint.c (pascal_object_print_value): Likewise.
3397 * parse.c (initialize_expout): Likewise.
3398 (mark_completion_tag): Likewise.
3399 (copy_name): Likewise.
3400 (parse_float): Likewise.
3401 (type_stack_reserve): Likewise.
3402 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3403 (ppu2spu_prev_register): Likewise.
3404 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
3405 * printcmd.c (printf_wide_c_string): Likewise.
3406 (printf_pointer): Likewise.
3407 * probe.c (parse_probes): Likewise.
3408 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3409 (cmdpy_init): Likewise.
3410 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
3411 * python/py-symtab.c (set_sal): Likewise.
3412 * python/py-unwind.c (pyuw_sniffer): Likewise.
3413 * python/python.c (python_interactive_command): Likewise.
3414 (compute_python_string): Likewise.
3415 * ravenscar-thread.c (get_running_thread_id): Likewise.
3416 * record-full.c (record_full_exec_insn): Likewise.
3417 (record_full_core_open_1): Likewise.
3418 * regcache.c (regcache_raw_read_signed): Likewise.
3419 (regcache_raw_read_unsigned): Likewise.
3420 (regcache_cooked_read_signed): Likewise.
3421 (regcache_cooked_read_unsigned): Likewise.
3422 * remote-fileio.c (remote_fileio_func_open): Likewise.
3423 (remote_fileio_func_rename): Likewise.
3424 (remote_fileio_func_unlink): Likewise.
3425 (remote_fileio_func_stat): Likewise.
3426 (remote_fileio_func_system): Likewise.
3427 * remote-mips.c (mips_xfer_memory): Likewise.
3428 (mips_load_srec): Likewise.
3429 (pmon_end_download): Likewise.
3430 * remote.c (new_remote_state): Likewise.
3431 (map_regcache_remote_table): Likewise.
3432 (remote_register_number_and_offset): Likewise.
3433 (init_remote_state): Likewise.
3434 (get_memory_packet_size): Likewise.
3435 (remote_pass_signals): Likewise.
3436 (remote_program_signals): Likewise.
3437 (remote_start_remote): Likewise.
3438 (remote_check_symbols): Likewise.
3439 (remote_query_supported): Likewise.
3440 (extended_remote_attach): Likewise.
3441 (process_g_packet): Likewise.
3442 (store_registers_using_G): Likewise.
3443 (putpkt_binary): Likewise.
3444 (read_frame): Likewise.
3445 (compare_sections_command): Likewise.
3446 (remote_hostio_pread): Likewise.
3447 (remote_hostio_readlink): Likewise.
3448 (remote_file_put): Likewise.
3449 (remote_file_get): Likewise.
3450 (remote_pid_to_exec_file): Likewise.
3451 (_initialize_remote): Likewise.
3452 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3453 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3454 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
3455 (bfd_uses_spe_extensions): Likewise.
3456 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
3457 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
3458 * solib-dsbt.c (decode_loadmap): Likewise.
3459 (fetch_loadmap): Likewise.
3460 (scan_dyntag): Likewise.
3461 (enable_break): Likewise.
3462 (dsbt_relocate_main_executable): Likewise.
3463 * solib-frv.c (fetch_loadmap): Likewise.
3464 (enable_break2): Likewise.
3465 (frv_relocate_main_executable): Likewise.
3466 * solib-spu.c (spu_relocate_main_executable): Likewise.
3467 (spu_bfd_open): Likewise.
3468 * solib-svr4.c (lm_info_read): Likewise.
3469 (read_program_header): Likewise.
3470 (find_program_interpreter): Likewise.
3471 (scan_dyntag): Likewise.
3472 (elf_locate_base): Likewise.
3473 (open_symbol_file_object): Likewise.
3474 (read_program_headers_from_bfd): Likewise.
3475 (svr4_relocate_main_executable): Likewise.
3476 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
3477 * solib.c (solib_find_1): Likewise.
3478 (exec_file_find): Likewise.
3479 (solib_find): Likewise.
3480 * source.c (openp): Likewise.
3481 (print_source_lines_base): Likewise.
3482 (forward_search_command): Likewise.
3483 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
3484 * spu-tdep.c (spu2ppu_prev_register): Likewise.
3485 (spu_get_overlay_table): Likewise.
3486 * stabsread.c (patch_block_stabs): Likewise.
3487 (define_symbol): Likewise.
3488 (again:): Likewise.
3489 (read_member_functions): Likewise.
3490 (read_one_struct_field): Likewise.
3491 (read_enum_type): Likewise.
3492 (common_block_start): Likewise.
3493 * stack.c (read_frame_arg): Likewise.
3494 (backtrace_command): Likewise.
3495 * stap-probe.c (stap_parse_register_operand): Likewise.
3496 * symfile.c (syms_from_objfile_1): Likewise.
3497 (find_separate_debug_file): Likewise.
3498 (load_command): Likewise.
3499 (load_progress): Likewise.
3500 (load_section_callback): Likewise.
3501 (reread_symbols): Likewise.
3502 (add_filename_language): Likewise.
3503 (allocate_compunit_symtab): Likewise.
3504 (read_target_long_array): Likewise.
3505 (simple_read_overlay_table): Likewise.
3506 * symtab.c (symbol_set_names): Likewise.
3507 (resize_symbol_cache): Likewise.
3508 (rbreak_command): Likewise.
3509 (completion_list_add_name): Likewise.
3510 (completion_list_objc_symbol): Likewise.
3511 (add_filename_to_list): Likewise.
3512 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
3513 * target-memory.c (target_write_memory_blocks): Likewise.
3514 * target.c (target_read_string): Likewise.
3515 (read_whatever_is_readable): Likewise.
3516 (target_read_alloc_1): Likewise.
3517 (simple_search_memory): Likewise.
3518 (target_fileio_read_alloc_1): Likewise.
3519 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
3520 * top.c (command_line_input): Likewise.
3521 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
3522 * tracefile.c (tracefile_fetch_registers): Likewise.
3523 * tracepoint.c (add_memrange): Likewise.
3524 (init_collection_list): Likewise.
3525 (add_aexpr): Likewise.
3526 (trace_dump_actions): Likewise.
3527 (parse_trace_status): Likewise.
3528 (parse_tracepoint_definition): Likewise.
3529 (parse_tsv_definition): Likewise.
3530 (parse_static_tracepoint_marker_definition): Likewise.
3531 * tui/tui-file.c (tui_sfileopen): Likewise.
3532 (tui_file_adjust_strbuf): Likewise.
3533 * tui/tui-io.c (tui_expand_tabs): Likewise.
3534 * tui/tui-source.c (tui_set_source_content): Likewise.
3535 * typeprint.c (find_global_typedef): Likewise.
3536 * ui-file.c (do_ui_file_xstrdup): Likewise.
3537 (ui_file_obsavestring): Likewise.
3538 (mem_file_write): Likewise.
3539 * utils.c (make_hex_string): Likewise.
3540 (get_regcomp_error): Likewise.
3541 (puts_filtered_tabular): Likewise.
3542 (gdb_realpath_keepfile): Likewise.
3543 (ldirname): Likewise.
3544 (gdb_bfd_errmsg): Likewise.
3545 (substitute_path_component): Likewise.
3546 * valops.c (search_struct_method): Likewise.
3547 (find_oload_champ_namespace_loop): Likewise.
3548 * valprint.c (print_decimal_chars): Likewise.
3549 (read_string): Likewise.
3550 (generic_emit_char): Likewise.
3551 * varobj.c (varobj_delete): Likewise.
3552 (varobj_value_get_print_value): Likewise.
3553 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
3554 * windows-tdep.c (display_one_tib): Likewise.
3555 * xcoffread.c (read_xcoff_symtab): Likewise.
3556 (process_xcoff_symbol): Likewise.
3557 (swap_sym): Likewise.
3558 (scan_xcoff_symtab): Likewise.
3559 (xcoff_initial_scan): Likewise.
3560 * xml-support.c (gdb_xml_end_element): Likewise.
3561 (xml_process_xincludes): Likewise.
3562 (xml_fetch_content_from_file): Likewise.
3563 * xml-syscall.c (xml_list_of_syscalls): Likewise.
3564 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
3565
3566 2015-09-23 James Bowman <james.bowman@ftdichip.com>
3567
3568 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
3569 instead of builtin_func_ptr.
3570 (ft32_pointer_to_address): New function.
3571 (ft32_address_class_type_flags): New function.
3572 (ft32_address_class_type_flags_to_name): New function.
3573 (ft32_address_class_name_to_type_flags): New function.
3574 (ft32_gdbarch_init): Set tdep->pc_type. Call
3575 set_gdbarch_pointer_to_address,
3576 set_gdbarch_address_class_type_flags
3577 set_gdbarch_address_class_name_to_type_flags,
3578 and set_gdbarch_address_class_type_flags_to_name.
3579 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
3580
3581 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
3582
3583 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
3584 value is a reference, actually dereference it in order to get
3585 the underlying value.
3586
3587 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
3588
3589 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
3590
3591 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
3592
3593 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
3594 * linespec.c (linespec_lexer_lex_string): Same.
3595
3596 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
3597
3598 * NEWS: Mention support for fast tracepoints on aarch64-linux.
3599
3600 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
3601
3602 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
3603 variable. Call aarch64_decode_adr instead of
3604 aarch64_decode_adrp.
3605 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
3606 (aarch64_decode_adr): New function declaration.
3607 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
3608 (aarch64_decode_adr): New function, factored out from
3609 aarch64_decode_adrp to decode both adr and adrp instructions.
3610
3611 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
3612
3613 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
3614 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
3615 (aarch64-insn.o): New rule.
3616 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
3617 (aarch64*-*-linux*): Likewise.
3618 * arch/aarch64-insn.c: New file.
3619 * arch/aarch64-insn.h: New file.
3620 * aarch64-tdep.c: Include arch/aarch64-insn.h.
3621 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
3622 arch/aarch64-insn.h.
3623 (decode_add_sub_imm): Rename to ...
3624 (aarch64_decode_add_sub_imm): ... this.
3625 (decode_adrp): Rename to ...
3626 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
3627 Declare in arch/aarch64-insn.h.
3628 (decode_b): Rename to ...
3629 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
3630 Declare in arch/aarch64-insn.h.
3631 (decode_bcond): Rename to ...
3632 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
3633 Declare in arch/aarch64-insn.h.
3634 (decode_br): Rename to ...
3635 (aarch64_decode_br): ... this.
3636 (decode_cb): Rename to ...
3637 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
3638 Declare in arch/aarch64-insn.h.
3639 (decode_eret): Rename to ...
3640 (aarch64_decode_eret): ... this.
3641 (decode_movz): Rename to ...
3642 (aarch64_decode_movz): ... this.
3643 (decode_orr_shifted_register_x): Rename to ...
3644 (aarch64_decode_orr_shifted_register_x): ... this.
3645 (decode_ret): Rename to ...
3646 (aarch64_decode_ret): ... this.
3647 (decode_stp_offset): Rename to ...
3648 (aarch64_decode_stp_offset): ... this.
3649 (decode_stp_offset_wb): Rename to ...
3650 (aarch64_decode_stp_offset_wb): ... this.
3651 (decode_stur): Rename to ...
3652 (aarch64_decode_stur): ... this.
3653 (decode_tb): Rename to ...
3654 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
3655 Declare in arch/aarch64-insn.h.
3656 (aarch64_analyze_prologue): Adjust calls to renamed functions.
3657
3658 2015-09-20 Doug Evans <xdje42@gmail.com>
3659
3660 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
3661
3662 2015-09-20 Doug Evans <xdje42@gmail.com>
3663
3664 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
3665 variable name that collides with a parameter.
3666
3667 2015-09-20 Joel Brobecker <brobecker@adacore.com>
3668
3669 * dwarf2loc.c (locexpr_get_frame_base): Renames
3670 block_op_get_frame_base.
3671 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
3672 block_op_get_frame_base by reference to locexpr_get_frame_base.
3673 (loclist_get_frame_base): New function, near identical copy of
3674 locexpr_get_frame_base.
3675 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
3676 block_op_get_frame_base by reference to loclist_get_frame_base.
3677
3678 2015-09-19 Doug Evans <xdje42@gmail.com>
3679
3680 * ravenscar-thread.c (ravenscar_inferior_created): Replace
3681 current_inferior ()->gdbarch with its wrapper target_gdbarch.
3682
3683 2015-09-18 Doug Evans <xdje42@gmail.com>
3684
3685 * linux-thread-db.c (record_thread): Return the created thread.
3686 (thread_from_lwp): Likewise.
3687 (thread_db_get_thread_local_address): Update.
3688
3689 2015-09-18 Doug Evans <xdje42@gmail.com>
3690
3691 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
3692 move only member demangled_name up. All uses updated.
3693
3694 2015-09-18 Doug Evans <xdje42@gmail.com>
3695
3696 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
3697 kind of minimal symbol in the error message.
3698 * objfiles.c (objfile_flavour_name): New function.
3699 * objfiles.h (objfile_flavour_name): Declare.
3700
3701 2015-09-18 Yao Qi <yao.qi@linaro.org>
3702
3703 * nat/aarch64-linux.c: Include elf/common.h,
3704 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
3705 (aarch64_ps_get_thread_area): New function.
3706 * nat/aarch64-linux.h: Include gdb_proc_service.h.
3707 (aarch64_ps_get_thread_area): Declare.
3708 * aarch64-linux-nat.c (ps_get_thread_area): Call
3709 aarch64_ps_get_thread_area.
3710
3711 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3712
3713 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
3714
3715 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3716
3717 * NEWS: Announce new scheduler-locking mode.
3718 * infrun.c (schedlock_replay): New.
3719 (scheduler_enums): Add schedlock_replay.
3720 (scheduler_mode): Change default to schedlock_replay.
3721 (user_visible_resume_ptid): Handle schedlock_replay.
3722 (clear_proceed_status_thread): Stop replaying if resumed thread is
3723 not replaying.
3724 (schedlock_applies): Handle schedlock_replay.
3725 (_initialize_infrun): Document new scheduler-locking mode.
3726 * record-btrace.c (record_btrace_resume): Remove code to stop other
3727 threads when not replaying the resumed thread.
3728
3729 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3730
3731 * record-btrace.c ((record_btrace_will_replay): New.
3732 (init_record_btrace_ops): Initialize to_record_will_replay.
3733 * record-full.c ((record_full_will_replay): New.
3734 (init_record_full_ops): Initialize to_record_will_replay.
3735 * target-delegates.c: Regenerated.
3736 * target.c (target_record_will_replay): New.
3737 * target.h (struct target_ops) <to_record_will_replay>: New.
3738 (target_record_will_replay): New.
3739
3740 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3741
3742 * record-btrace.c (record_btrace_resume): Call
3743 target_record_stop_replaying.
3744 (record_btrace_stop_replaying_all): New.
3745 (init_record_btrace_ops): Initialize to_record_stop_replaying.
3746 * record-full.c (record_full_stop_replaying): New.
3747 (init_record_full_ops ): Initialize to_record_stop_replaying.
3748 * target-delegates.c: Regenerated.
3749 * target.c (target_record_stop_replaying): New.
3750 * target.h (struct target_ops) <to_record_stop_replaying>: New.
3751 (target_record_stop_replaying): New.
3752
3753 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3754
3755 * record-btrace.c (record_btrace_xfer_partial)
3756 (record_btrace_store_registers, record_btrace_prepare_to_store):
3757 Call record_btrace_is_replaying with inferior_ptid instead of
3758 minus_one_ptid.
3759 (record_btrace_store_registers): Change error message.
3760
3761 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3762
3763 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
3764 Update users to pass minus_one_ptid.
3765 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
3766 * record.c (cmd_record_delete): Pass inferior_ptid to
3767 target_record_is_replaying.
3768 * target-delegates.c: Regenerated.
3769 * target.c (target_record_is_replaying): Add ptid argument.
3770 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
3771 argument.
3772 (target_record_is_replaying): Add ptid argument.
3773
3774 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3775
3776 * record-btrace.c (record_btrace_open): Remove non_stop check.
3777 * NEWS: Announce that record btrace supports non-stop mode.
3778
3779 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3780
3781 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
3782 in the TARKET_WAITKIND_NO_HISTORY case.
3783
3784 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3785
3786 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
3787 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
3788
3789 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3790
3791 * record-btrace.c (get_thread_current_frame): New.
3792 (record_btrace_start_replaying): Call get_thread_current_frame.
3793
3794 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3795
3796 * record-btrace.c (record_btrace_resume_thread): A move request
3797 overwrites a previous move request.
3798 (record_btrace_find_resume_thread): Removed.
3799 (record_btrace_resume): Resume all requested threads.
3800
3801 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3802
3803 * record-btrace.c: Include vec.h.
3804 (record_btrace_find_thread_to_move): Removed.
3805 (btrace_step_no_resumed, btrace_step_again)
3806 (record_btrace_stop_replaying_at_end): New.
3807 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
3808 (record_btrace_single_step_forward): Remove calls to
3809 record_btrace_stop_replaying.
3810 (record_btrace_step_thread): Do only one step for BTHR_CONT and
3811 BTHR_RCONT. Keep threads at the end of their history moving.
3812 (record_btrace_wait): Call record_btrace_step_thread for all threads
3813 until one reports an event. Call record_btrace_stop_replaying_at_end
3814 for the eventing thread.
3815
3816 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3817
3818 * record-btrace.c (record_btrace_single_step_forward): Return
3819 NO_HISTORY if a step brings us to the end of the execution history.
3820
3821 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3822
3823 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
3824 to ...
3825 (record_btrace_single_step_forward): ... here and
3826 (record_btrace_single_step_backward): ... here.
3827
3828 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3829
3830 * record-btrace.c (btrace_step_spurious)
3831 (record_btrace_single_step_forward)
3832 (record_btrace_single_step_backward): New.
3833 (record_btrace_step_thread): Call record_btrace_single_step_forward
3834 and record_btrace_single_step_backward.
3835
3836 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3837
3838 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
3839 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
3840
3841 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3842
3843 * record-btrace.c (btrace_thread_flag_to_str)
3844 (record_btrace_cancel_resume): New.
3845 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
3846 (record_btrace_resume): Print execution direction.
3847 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
3848 (record_btrace_wait): Call record_btrace_cancel_resume.
3849
3850 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3851
3852 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
3853 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
3854 (record_btrace_find_thread_to_move): Also accept threads that have
3855 BTHR_STOP set.
3856 (btrace_step_stopped_on_request, record_btrace_stop): New.
3857 (record_btrace_step_thread): Support BTHR_STOP.
3858 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
3859 (init_record_btrace_ops): Initialize to_stop.
3860
3861 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3862
3863 * record-btrace.c (record_btrace_wait): Replace non_stop check with
3864 target_is_non_stop_p ().
3865
3866 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
3867
3868 * ada-typeprint.c (print_array_type): Do not describe arrays as
3869 packed when they embed dynamic elements.
3870
3871 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3872
3873 * symtab.h (address_class): Document that TLS variables
3874 are handled by LOC_UNRESOLVED.
3875 * findvar.c (default_read_var_value): Don't relocate TLS variables.
3876 * printcmd.c (address_info): Don't relocate TLS variables.
3877
3878 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
3879
3880 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
3881 (decode_adrp): Likewise.
3882 (decode_b): Likewise.
3883 (decode_bcond): Likewise.
3884 (decode_br): Likewise.
3885 (decode_cb): Likewise.
3886 (decode_eret): Likewise.
3887 (decode_movz): Likewise.
3888 (decode_orr_shifted_register_x): Likewise.
3889 (decode_ret): Likewise.
3890 (decode_stp_offset): Likewise.
3891 (decode_stp_offset_wb): Likewise.
3892 (decode_stur): Likewise.
3893 (decode_tb): Likewise.
3894 (aarch64_analyze_prologue): Likewise.
3895 (pass_in_x): Likewise.
3896 (pass_in_v): Likewise.
3897 (pass_on_stack): Likewise.
3898 (aarch64_push_dummy_call): Likewise.
3899 (aarch64_extract_return_value): Likewise.
3900 (aarch64_store_return_value): Likewise.
3901 (aarch64_return_value): Likewise.
3902 (aarch64_record_asimd_load_store): Likewise.
3903 (aarch64_record_load_store): Likewise.
3904 (aarch64_record_data_proc_simd_fp): Likewise.
3905
3906 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3907
3908 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
3909 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
3910 (ppc64_skip_trampoline_code_1): ... here.
3911 (ppc64_skip_trampoline_code): New wrapper function.
3912 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
3913
3914 2015-09-15 Yao Qi <yao.qi@linaro.org>
3915
3916 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
3917 function.
3918 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
3919 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
3920 if target_can_do_single_step returns 1.
3921 * remote.c (struct vCont_action_support) <s, S>: New fields.
3922 (PACKET_vContSupported): New enum.
3923 (remote_protocol_features): New element for vContSupported.
3924 (remote_query_supported): Append "vContSupported+".
3925 (remote_vcont_probe): Remove support_s and support_S, use
3926 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
3927 vCont packet if c and C actions are not supported.
3928 (remote_can_do_single_step): New function.
3929 (init_remote_ops): Install it to to_can_do_single_step.
3930 (_initialize_remote): Call add_packet_config_cmd.
3931 * target.h (struct target_ops) <to_can_do_single_step>: New field.
3932 (target_can_do_single_step): New macro.
3933 * target-delegates.c: Re-generated.
3934
3935 2015-09-15 Yao Qi <yao.qi@linaro.org>
3936
3937 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
3938 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
3939 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
3940 New function.
3941 (aarch64_siginfo_from_compat_siginfo): New function.
3942 * nat/aarch64-linux.h: Include signal.h.
3943 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
3944 (compat_timer_t, compat_clock_t): Likewise.
3945 (struct compat_timeval): New.
3946 (union compat_sigval): New.
3947 (struct compat_siginfo): New.
3948 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
3949 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
3950 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
3951 (cpt_si_band, cpt_si_fd): Likewise.
3952
3953 2015-09-14 Pedro Alves <palves@redhat.com>
3954
3955 * infrun.c (current_stop_id): New global.
3956 (get_stop_id, new_stop_id): New functions.
3957 (fetch_inferior_event): Handle normal_stop proceeding the target.
3958 (struct stop_context): New.
3959 (save_stop_context, release_stop_context_cleanup)
3960 (stop_context_changed): New functions.
3961 (normal_stop): Return true if the hook-stop changes the stop
3962 context.
3963 * infrun.h (get_stop_id): Declare.
3964 (normal_stop): Now returns int. Add documentation.
3965
3966 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
3967
3968 * ada-lang.c (ada_value_ptr_subscript): Update the heading
3969 comment. Handle packed arrays.
3970
3971 2015-09-14 Pedro Alves <palves@redhat.com>
3972
3973 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
3974 mention of maint set/show target-non-stop.
3975
3976 2015-09-11 Don Breazeal <donb@codesourcery.com>
3977
3978 * NEWS: Announce new remote packets for the exec-events
3979 feature and the exec-events feature and associated commands.
3980
3981 2015-09-11 Don Breazeal <donb@codesourcery.com>
3982
3983 * remote.c (remote_exec_event_p): New function.
3984 (remote_insert_exec_catchpoint): New function.
3985 (remote_remove_exec_catchpoint): New function.
3986 (init_extended_remote_ops): Initialize extended_remote_ops
3987 members to_insert_exec_catchpoint and
3988 to_remove_exec_catchpoint.
3989
3990 2015-09-11 Don Breazeal <donb@codesourcery.com>
3991 Luis Machado <lgustavo@codesourcery.com>
3992
3993 * infrun.c (follow_exec): Use process-style ptid for
3994 exec message. Call add_inferior_with_spaces and
3995 target_follow_exec.
3996 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
3997 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
3998 * remote.c (remote_pspace_data): New static variable.
3999 (remote_pspace_data_cleanup): New function.
4000 (get_remote_exec_file): New function.
4001 (set_remote_exec_file_1): New function.
4002 (set_remote_exec_file): New function.
4003 (show_remote_exec_file): New function.
4004 (remote_exec_file): Delete static variable.
4005 (anonymous enum) <PACKET_exec_event_feature>: New
4006 enumeration constant.
4007 (remote_protocol_features): Add entry for exec-events feature.
4008 (remote_query_supported): Add client side of qSupported query
4009 for exec-events feature.
4010 (remote_follow_exec): New function.
4011 (remote_parse_stop_reply): Handle 'exec' stop reason.
4012 (extended_remote_run, extended_remote_create_inferior): Call
4013 get_remote_exec_file and set_remote_exec_file_1.
4014 (init_extended_remote_ops) <to_follow_exec>: Initialize new
4015 member.
4016 (_initialize_remote): Call
4017 register_program_space_data_with_cleanup. Call
4018 add_packet_config_cmd for remote exec-events feature.
4019 Modify call to add_setshow_string_noescape_cmd for exec-file
4020 to use new functions set_remote_exec_file and
4021 show_remote_exec_file.
4022 * target-debug.h, target-delegates.c: Regenerated.
4023 * target.c (target_follow_exec): New function.
4024 * target.h (struct target_ops) <to_follow_exec>: New member.
4025 (target_follow_exec): Declare new function.
4026
4027 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
4028
4029 * aarch64-tdep.c (decode_cb): Move up comment describing the
4030 encoding.
4031 (decode_tb): Fix a typo in comment above the function. Move up
4032 comment describing the encoding.
4033
4034 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
4035
4036 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
4037
4038 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
4039
4040 PR gdb/18947
4041 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
4042 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
4043
4044 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
4045
4046 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
4047 operations.
4048
4049 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
4050
4051 * ada-lang.c (ada_search_struct_field): Constify parameters
4052 and/or variables..
4053 (xget_renaming_scope): Likewise.
4054 (ada_is_redundant_range_encoding): Likewise.
4055 (scan_discrim_bound): Likewise.
4056 (to_fixed_range_type): Likewise.
4057
4058 2015-09-10 Yao Qi <yao.qi@linaro.org>
4059
4060 * breakpoint.c (download_tracepoint_locations): New local
4061 can_download_tracepoint. Check the result of
4062 target_can_download_tracepoint and save it in
4063 can_download_tracepoint if there are tracepoints to download.
4064 * linux-nat.h (enum tribool): Move it to ...
4065 * common/common-types.h: ... here.
4066
4067 2015-09-09 Pedro Alves <palves@redhat.com>
4068
4069 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
4070 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
4071
4072 2015-09-09 Pedro Alves <palves@redhat.com>
4073
4074 * continuations.c (add_continuation, restore_thread_cleanup)
4075 (do_all_continuations_ptid, do_all_continuations_thread_callback)
4076 (do_all_continuations_thread, do_all_continuations)
4077 (discard_all_continuations_thread_callback)
4078 (discard_all_continuations_thread, discard_all_continuations)
4079 (add_intermediate_continuation)
4080 (do_all_intermediate_continuations_thread_callback)
4081 (do_all_intermediate_continuations_thread)
4082 (do_all_intermediate_continuations)
4083 (discard_all_intermediate_continuations_thread_callback)
4084 (discard_all_intermediate_continuations_thread)
4085 (discard_all_intermediate_continuations): Delete.
4086 * continuations.h (add_continuation, do_all_continuations)
4087 (do_all_continuations_thread, discard_all_continuations)
4088 (discard_all_continuations_thread, add_intermediate_continuation)
4089 (do_all_intermediate_continuations)
4090 (do_all_intermediate_continuations_thread)
4091 (discard_all_intermediate_continuations)
4092 (discard_all_intermediate_continuations_thread): Delete
4093 declarations.
4094 * event-top.c (stdin_event_handler): Delete references to
4095 continuations.
4096 * gdbthread.h (struct thread_info): Delete continuations and
4097 intermediate_continuations fields.
4098 * inf-loop.c (inferior_event_handler): Remove references to
4099 continuations.
4100 * infrun.c (infrun_thread_stop_requested_callback): Remove
4101 references to continuations.
4102 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
4103 * thread.c: Don't include "continuations.h".
4104 (clear_thread_inferior_resources): Remove references to
4105 continuations.
4106
4107 2015-09-09 Pedro Alves <palves@redhat.com>
4108
4109 * infcall.c (struct dummy_frame_context_saver): Delete.
4110 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
4111 (dummy_frame_context_saver_drop)
4112 (dummy_frame_context_saver_cleanup)
4113 (dummy_frame_context_saver_get_regs)
4114 (dummy_frame_context_saver_setup): Delete.
4115 * infcall.h (dummy_frame_context_saver_drop)
4116 (dummy_frame_context_saver_cleanup)
4117 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
4118 Delete.
4119 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
4120 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
4121 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
4122
4123 2015-09-09 Pedro Alves <palves@redhat.com>
4124
4125 * breakpoint.c: Include "thread-fsm.h".
4126 (struct until_break_command_continuation_args): Delete.
4127 (struct until_break_fsm): New.
4128 (until_break_fsm_ops): New global.
4129 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
4130 (until_break_command_continuation): Delete.
4131 (until_break_fsm_clean_up): New function.
4132 (until_break_fsm_async_reply_reason): New function.
4133 (until_break_command): Adjust to create an until_break_fsm instead
4134 of a continuation.
4135 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
4136 here.
4137 * infcmd.c (struct until_next_fsm): New.
4138 (until_next_fsm_ops): New global.
4139 (new_until_next_fsm, until_next_fsm_should_stop): New function.
4140 (until_next_continuation): Delete.
4141 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
4142 functions.
4143 (until_next_command): Adjust to create a new until_next_fsm
4144 instead of a continuation.
4145
4146 2015-09-09 Pedro Alves <palves@redhat.com>
4147
4148 * infcall.c: Include thread_fsm.h.
4149 (struct call_return_meta_info): New.
4150 (get_call_return_value): New function, factored out from
4151 call_function_by_hand_dummy.
4152 (struct call_thread_fsm): New.
4153 (call_thread_fsm_ops): New global.
4154 (new_call_thread_fsm, call_thread_fsm_should_stop)
4155 (call_thread_fsm_should_notify_stop): New functions.
4156 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
4157 the thread.
4158 (call_function_by_hand_dummy): Create a new call_thread_fsm
4159 instance, associate it with the thread, and wait for the FSM to
4160 finish. If finished successfully, fetch the function's result
4161 value out of the FSM.
4162 * infrun.c (fetch_inferior_event): If the FSM says the stop
4163 shouldn't be notified, don't call normal_stop.
4164 (maybe_remove_breakpoints): New function, factored out from ...
4165 (normal_stop): ... here. Simplify.
4166 * infrun.h (maybe_remove_breakpoints): Declare.
4167 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
4168 (thread-fsm.h) <struct thread_fsm_ops>: New field.
4169 (thread_fsm_should_notify_stop): Declare.
4170
4171 2015-09-09 Pedro Alves <palves@redhat.com>
4172
4173 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
4174 * breakpoint.c (handle_jit_event): Print debug output.
4175 (bpstat_what): Split event callback handling to ...
4176 (bpstat_run_callbacks): ... this new function.
4177 (momentary_bkpt_print_it): No longer handle bp_finish here.
4178 * breakpoint.h (bpstat_run_callbacks): Declare.
4179 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
4180 <thread_fsm>: New field.
4181 (thread_cancel_execution_command): Declare.
4182 * infcmd.c: Include thread-fsm.h.
4183 (struct step_command_fsm): New.
4184 (step_command_fsm_ops): New global.
4185 (new_step_command_fsm, step_command_fsm_prepare): New functions.
4186 (step_1): Adjust to use step_command_fsm_prepare and
4187 prepare_one_step.
4188 (struct step_1_continuation_args): Delete.
4189 (step_1_continuation): Delete.
4190 (step_command_fsm_should_stop): New function.
4191 (step_once): Delete.
4192 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
4193 (prepare_one_step): New function, based on step_once.
4194 (until_next_command): Remove step_multi reference.
4195 (struct return_value_info): New.
4196 (print_return_value): Rename to ...
4197 (print_return_value_1): ... this. New struct return_value_info
4198 parameter. Adjust.
4199 (print_return_value): Reimplement as wrapper around
4200 print_return_value_1.
4201 (struct finish_command_fsm): New.
4202 (finish_command_continuation): Delete.
4203 (finish_command_fsm_ops): New global.
4204 (new_finish_command_fsm, finish_command_fsm_should_stop): New
4205 functions.
4206 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
4207 New.
4208 (finish_command_continuation_free_arg): Delete.
4209 (finish_command_fsm_async_reply_reason): New.
4210 (finish_backward, finish_forward): Change symbol parameter to a
4211 finish_command_fsm. Adjust.
4212 (finish_command): Create a finish_command_fsm. Adjust.
4213 * infrun.c: Include "thread-fsm.h".
4214 (clear_proceed_status_thread): Delete the thread's FSM.
4215 (infrun_thread_stop_requested_callback): Cancel the thread's
4216 execution command.
4217 (clean_up_just_stopped_threads_fsms): New function.
4218 (fetch_inferior_event): Handle the event_thread's should_stop
4219 method saying the command isn't done yet.
4220 (process_event_stop_test): Run breakpoint callbacks here.
4221 (print_stop_event): Rename to ...
4222 (print_stop_location): ... this.
4223 (restore_current_uiout_cleanup): New function.
4224 (print_stop_event): Reimplement.
4225 (normal_stop): No longer notify the end_stepping_range observers
4226 here handle "step N" nor "finish" here. No longer call
4227 print_stop_event here.
4228 * infrun.h (struct return_value_info): Forward declare.
4229 (print_return_value): Declare.
4230 (print_stop_event): Change prototype.
4231 * thread-fsm.c: New file.
4232 * thread-fsm.h: New file.
4233 * thread.c: Include "thread-fsm.h".
4234 (thread_cancel_execution_command): New function.
4235 (clear_thread_inferior_resources): Call it.
4236 * cli/cli-interp.c (cli_on_normal_stop): New function.
4237 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
4238 observer.
4239 * mi/mi-interp.c: Include "thread-fsm.h".
4240 (restore_current_uiout_cleanup): Delete.
4241 (mi_on_normal_stop): If the thread has an FSM associated, and it
4242 finished, ask it for the async-reply-reason to print. Always call
4243 print_stop_event here, regardless of the top-level interpreter.
4244 Check bpstat_what to tell whether an asynchronous breakpoint hit
4245 triggered.
4246 * tui/tui-interp.c (tui_on_normal_stop): New function.
4247 (tui_init): Install tui_on_normal_stop as normal_stop observer.
4248
4249 2015-09-09 Pedro Alves <palves@redhat.com>
4250
4251 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
4252 check whether the target can async.
4253 * inf-loop.c (inferior_event_handler): Only call target_async if
4254 the target can async.
4255 * infcall.c: Include top.h and interps.h.
4256 (run_inferior_call): For the interpreter to sync mode while
4257 running the infcall. Call wait_sync_command_done instead of
4258 wait_for_inferior plus normal_stop.
4259 * infcmd.c (prepare_execution_command): Don't check whether the
4260 target can async when running in the foreground.
4261 (step_1): Delete synchronous case handling.
4262 (step_once): Always install a continuation, even in sync mode.
4263 (until_next_command, finish_forward): Don't check whether the
4264 target can async.
4265 (attach_command_post_wait, notice_new_inferior): Always install a
4266 continuation, even in sync mode.
4267 * infrun.c (mark_infrun_async_event_handler): New function.
4268 (proceed): In sync mode, mark infrun's event source instead of
4269 waiting for events here.
4270 (fetch_inferior_event): If the target can't async, do a blocking
4271 wait.
4272 (prepare_to_wait): In sync mode, mark infrun's event source.
4273 (infrun_async_inferior_event_handler): No longer bail out if the
4274 target can't async.
4275 * infrun.h (mark_infrun_async_event_handler): New declaration.
4276 * linux-nat.c (linux_nat_wait_1): Remove calls to
4277 set_sigint_trap/clear_sigint_trap.
4278 (linux_nat_terminal_inferior): No longer check whether the target
4279 can async.
4280 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
4281 comment.
4282 (mi_execute_command_input_handler): No longer check whether the
4283 target is async. Update and simplify comment.
4284 * target.c (default_target_wait): New function.
4285 * target.h (struct target_ops) <to_wait>: Now defaults to
4286 default_target_wait.
4287 (default_target_wait): Declare.
4288 * top.c (wait_sync_command_done): New function, factored out from
4289 ...
4290 (maybe_wait_sync_command_done): ... this.
4291 * top.h (wait_sync_command_done): Declare.
4292 * target-delegates.c: Regenerate.
4293
4294 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
4295
4296 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
4297 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
4298 Remove include of sys/utsname.h.
4299 (linux_determine_kernel_ptr_bits): Remove.
4300 (linux_determine_kernel_start): New.
4301 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
4302 Update check.
4303 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
4304 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
4305 initialization.
4306 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
4307 assignment.
4308
4309 2015-09-07 Pedro Alves <palves@redhat.com>
4310
4311 * guile/guile-internal.h (as_a_scm_t_subr): New.
4312 * guile/guile.c (misc_guile_functions): Use it.
4313 * guile/scm-arch.c (arch_functions): Use it.
4314 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
4315 Use it.
4316 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
4317 * guile/scm-cmd.c (command_functions): Use it.
4318 * guile/scm-disasm.c (disasm_functions): Use it.
4319 * guile/scm-exception.c (exception_functions)
4320 (private_exception_functions): Use it.
4321 * guile/scm-frame.c (frame_functions)
4322 * guile/scm-gsmob.c (gsmob_functions): Use it.
4323 * guile/scm-iterator.c (iterator_functions): Use it.
4324 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
4325 * guile/scm-math.c (math_functions): Use it.
4326 * guile/scm-objfile.c (objfile_functions): Use it.
4327 * guile/scm-param.c (parameter_functions): Use it.
4328 * guile/scm-ports.c (port_functions, private_port_functions): Use
4329 it.
4330 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
4331 * guile/scm-progspace.c (pspace_functions): Use it.
4332 * guile/scm-string.c (string_functions): Use it.
4333 * guile/scm-symbol.c (symbol_functions): Use it.
4334 * guile/scm-symtab.c (symtab_functions): Use it.
4335 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
4336 it.
4337 * guile/scm-value.c (value_functions): Use it.
4338
4339 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
4340
4341 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
4342 (tui_next_win): Likewise.
4343 (tui_prev_win): Likewise.
4344 (tui_partial_win_by_name): Likewise.
4345 (tui_init_generic_part): Likewise.
4346 (init_content_element): Likewise.
4347 (tui_del_window): Likewise.
4348 (tui_free_window): Likewise.
4349 (tui_del_data_windows): Likewise.
4350 (tui_free_data_content): Likewise.
4351 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
4352 * tui/tui-regs.c (tui_show_register_group): Likewise.
4353 * tui/tui-win.c (tui_resize_all): Likewise.
4354 (tui_set_focus): Likewise.
4355 (tui_set_win_height): Likewise.
4356 (make_invisible_and_set_new_height): Likewise.
4357 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
4358 * tui/tui-wingeneral.c (make_visible): Likewise.
4359
4360 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
4361
4362 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
4363
4364 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
4365
4366 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
4367 pointer.
4368 * dbxread.c (dbx_end_psymtab): Likewise.
4369 * gnu-nat.c (gnu_write_inferior): Likewise.
4370 * mdebugread.c (cross_ref): Likewise.
4371 * p-valprint.c (pascal_val_print): Likewise.
4372 * xcoffread.c (xcoff_end_psymtab): Likewise.
4373
4374 2015-09-04 Yao Qi <yao.qi@linaro.org>
4375
4376 * NEWS: Mention the aarch64 multi-arch debugging support.
4377
4378 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
4379
4380 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
4381 type instead of a TYPE_CODE_INT one for the string_char_type
4382 and the ada_primitive_type_char types.
4383
4384 2015-09-03 Yao Qi <yao.qi@linaro.org>
4385
4386 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
4387 Move code to aarch64_linux_region_ok_for_watchpoint. Call
4388 aarch64_linux_region_ok_for_watchpoint.
4389 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
4390 New function.
4391 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
4392 Declare it.
4393
4394 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
4395
4396 * gdb_obstack.h (obstack_strdup): Declare.
4397 * gdb_obstack.c (obstack_strdup): Define.
4398 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
4399 * gdbarch.c: Regenerate.
4400 * gdbarch.h: Regenerate.
4401 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
4402
4403 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
4404
4405 * gdbtypes.c (copy_type_recursive): Update documentation.
4406
4407 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4408
4409 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
4410 as zero.
4411
4412 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4413
4414 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
4415
4416 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4417
4418 * solib-svr4.c (solib_event_probe_action): Call
4419 get_probe_argument_count using TRY...CATCH.
4420 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
4421
4422 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4423
4424 * probe.h (struct probe_ops) <get_probe_argument_count,
4425 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
4426 the comment that the function can throw an exception.
4427 (get_probe_argument_count): Likewise.
4428 (evaluate_probe_argument): Likewise.
4429 * stap-probe.c (stap_get_opcode): Call error instead of
4430 internal_error.
4431 (stap_get_expected_argument_type): Likewise. Add argument
4432 'probe'. Improve error message by mentioning the probe's name.
4433 (stap_parse_probe_arguments): Adjust call to
4434 stap_get_expected_argument_type.
4435 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
4436 not zero. Call internal_error if GDB requests an argument but the
4437 probe has no arguments.
4438
4439 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
4440
4441 * ada-lang.c (ada_resolve_function): Do not ask the user what
4442 match to use when in completion mode.
4443
4444 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
4445
4446 * tui/tui-data.c (tui_win_name): Make local variable const, remove
4447 cast of NULL.
4448
4449 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
4450
4451 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
4452 call_abi using XSHAL_ABI macro.
4453
4454 2015-08-29 Doug Evans <xdje42@gmail.com>
4455
4456 * symtab.h (struct symbol): Tweak comment.
4457
4458 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
4459
4460 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
4461 gdbarch obstack instead of on the heap. Update commentary
4462 accordingly.
4463
4464 2015-08-28 Joel Brobecker <brobecker@adacore.com>
4465
4466 GDB 7.10 released.
4467
4468 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
4469
4470 * NEWS: Update entry about non-8-bits addressable memory.
4471
4472 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
4473
4474 Revert:
4475 2014-11-06 Doug Evans <xdje42@gmail.com>
4476 * solib.c (solib_global_lookup): Fetch arch from objfile,
4477 not target_gdbarch.
4478
4479 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
4480
4481 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
4482 attempt to relocate a TLS variable offset.
4483
4484 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
4485
4486 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
4487 registered yet. Set inferior_ptid while calling target_read_memory.
4488
4489 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
4490
4491 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
4492 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
4493 * linux-nat.c (check_stopped_by_breakpoint): Use
4494 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
4495
4496 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
4497
4498 * linux-thread-db.c (thread_db_get_thread_local_address): If the
4499 thread was not yet discovered, use thread_from_lwp instead of
4500 calling thread_db_find_new_threads_1.
4501
4502 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
4503
4504 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
4505 statements.
4506
4507 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
4508
4509 * NEWS: Document support for non-8-bits addressable memory.
4510
4511 2015-08-27 Pedro Alves <palves@redhat.com>
4512
4513 * configure.ac: Remove AC_TYPE_SIGNAL call.
4514 * configure, config.in: Regenerate.
4515
4516 2015-08-27 Pedro Alves <palves@redhat.com>
4517
4518 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
4519 * extension-priv.h: Include signal.h.
4520 (struct signal_handler) <handler>: Change type to sighandler_t.
4521 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
4522 * inflow.c (sigint_ours, sigquit_ours): Change type to
4523 sighandler_t.
4524 (child_terminal_inferior): Remove casts.
4525 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
4526 (osig): Change type to sighandler_t.
4527 * nto-procfs.c (ofunc): Change type to sighandler_t.
4528 (procfs_wait): Remove casts.
4529 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
4530 * remote-sim.c (gdbsim_wait): Use sighandler_t.
4531 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
4532
4533 2015-08-27 Pedro Alves <palves@redhat.com>
4534
4535 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
4536 * gnulib/aclocal.m4: Renegerate.
4537 * gnulib/config.in: Renegerate.
4538 * gnulib/configure: Renegerate.
4539 * gnulib/import/Makefile.am: Update.
4540 * gnulib/import/Makefile.in: Regenerate.
4541 * gnulib/import/m4/gnulib-cache.m4: Update.
4542 * gnulib/import/m4/gnulib-comp.m4: Update.
4543 * gnulib/import/m4/signal_h.m4: New file.
4544 * gnulib/import/signal.in.h: New file.
4545
4546 2015-08-27 Pedro Alves <palves@redhat.com>
4547
4548 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
4549 (MIN_MEMORY_PACKET_SIZE): New.
4550 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
4551 (get_memory_packet_size): Adjust. No longer limit the max packet
4552 size.
4553 (set_memory_packet_size): Adjust, and remove dead code.
4554 (remote_check_symbols): Use xmalloc and a cleanup instead of
4555 alloca.
4556 (remote_packet_size): No longer cap the packet size.
4557 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
4558
4559 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
4560
4561 * compile/compile.c (compile_to_object): Mention language in
4562 error message.
4563
4564 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
4565
4566 * target.c (target_pre_inferior): Unset attach_flag.
4567
4568 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
4569
4570 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
4571 * gdbarch.c: Re-generate.
4572
4573 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
4574
4575 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
4576 function with the XNEW-family equivalent.
4577 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
4578 * ada-exp.y (write_ambiguous_var): Likewise.
4579 * ada-lang.c (resolve_subexp): Likewise.
4580 (user_select_syms): Likewise.
4581 (assign_aggregate): Likewise.
4582 (ada_evaluate_subexp): Likewise.
4583 (cache_symbol): Likewise.
4584 * addrmap.c (allocate_key): Likewise.
4585 (addrmap_create_mutable): Likewise.
4586 * aix-thread.c (sync_threadlists): Likewise.
4587 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
4588 (alpha_gdbarch_init): Likewise.
4589 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
4590 * arm-linux-nat.c (arm_linux_add_process): Likewise.
4591 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
4592 * arm-tdep.c (push_stack_item): Likewise.
4593 (arm_displaced_step_copy_insn): Likewise.
4594 (arm_gdbarch_init): Likewise.
4595 (_initialize_arm_tdep): Likewise.
4596 * avr-tdep.c (push_stack_item): Likewise.
4597 * ax-general.c (new_agent_expr): Likewise.
4598 * block.c (block_initialize_namespace): Likewise.
4599 * breakpoint.c (alloc_counted_command_line): Likewise.
4600 (update_dprintf_command_list): Likewise.
4601 (parse_breakpoint_sals): Likewise.
4602 (decode_static_tracepoint_spec): Likewise.
4603 (until_break_command): Likewise.
4604 (clear_command): Likewise.
4605 (update_global_location_list): Likewise.
4606 (get_breakpoint_objfile_data) Likewise.
4607 * btrace.c (ftrace_new_function): Likewise.
4608 (btrace_set_insn_history): Likewise.
4609 (btrace_set_call_history): Likewise.
4610 * buildsym.c (add_symbol_to_list): Likewise.
4611 (record_pending_block): Likewise.
4612 (start_subfile): Likewise.
4613 (start_buildsym_compunit): Likewise.
4614 (push_subfile): Likewise.
4615 (end_symtab_get_static_block): Likewise.
4616 (buildsym_init): Likewise.
4617 * cli/cli-cmds.c (source_command): Likewise.
4618 * cli/cli-decode.c (add_cmd): Likewise.
4619 * cli/cli-script.c (build_command_line): Likewise.
4620 (setup_user_args): Likewise.
4621 (realloc_body_list): Likewise.
4622 (process_next_line): Likewise.
4623 (copy_command_lines): Likewise.
4624 * cli/cli-setshow.c (do_set_command): Likewise.
4625 * coff-pe-read.c (read_pe_exported_syms): Likewise.
4626 * coffread.c (coff_locate_sections): Likewise.
4627 (coff_symtab_read): Likewise.
4628 (coff_read_struct_type): Likewise.
4629 * common/cleanups.c (make_my_cleanup2): Likewise.
4630 * common/common-exceptions.c (throw_it): Likewise.
4631 * common/filestuff.c (make_cleanup_close): Likewise.
4632 * common/format.c (parse_format_string): Likewise.
4633 * common/queue.h (DEFINE_QUEUE_P): Likewise.
4634 * compile/compile-object-load.c (munmap_list_add): Likewise.
4635 (compile_object_load): Likewise.
4636 * compile/compile-object-run.c (compile_object_run): Likewise.
4637 * compile/compile.c (append_args): Likewise.
4638 * corefile.c (specify_exec_file_hook): Likewise.
4639 * cp-support.c (make_symbol_overload_list): Likewise.
4640 * cris-tdep.c (push_stack_item): Likewise.
4641 (cris_gdbarch_init): Likewise.
4642 * ctf.c (ctf_trace_file_writer_new): Likewise.
4643 * dbxread.c (init_header_files): Likewise.
4644 (add_new_header_file): Likewise.
4645 (init_bincl_list): Likewise.
4646 (dbx_end_psymtab): Likewise.
4647 (start_psymtab): Likewise.
4648 (dbx_end_psymtab): Likewise.
4649 * dcache.c (dcache_init): Likewise.
4650 * dictionary.c (dict_create_hashed): Likewise.
4651 (dict_create_hashed_expandable): Likewise.
4652 (dict_create_linear): Likewise.
4653 (dict_create_linear_expandable): Likewise.
4654 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
4655 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
4656 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
4657 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4658 (decode_frame_entry_1): Likewise.
4659 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
4660 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4661 * dwarf2read.c (dwarf2_has_info): Likewise.
4662 (create_signatured_type_table_from_index): Likewise.
4663 (dwarf2_read_index): Likewise.
4664 (dw2_get_file_names_reader): Likewise.
4665 (create_all_type_units): Likewise.
4666 (read_cutu_die_from_dwo): Likewise.
4667 (init_tu_and_read_dwo_dies): Likewise.
4668 (init_cutu_and_read_dies): Likewise.
4669 (create_all_comp_units): Likewise.
4670 (queue_comp_unit): Likewise.
4671 (inherit_abstract_dies): Likewise.
4672 (read_call_site_scope): Likewise.
4673 (dwarf2_add_field): Likewise.
4674 (dwarf2_add_typedef): Likewise.
4675 (dwarf2_add_member_fn): Likewise.
4676 (attr_to_dynamic_prop): Likewise.
4677 (abbrev_table_alloc_abbrev): Likewise.
4678 (abbrev_table_read_table): Likewise.
4679 (add_include_dir): Likewise.
4680 (add_file_name): Likewise.
4681 (dwarf_decode_line_header): Likewise.
4682 (dwarf2_const_value_attr): Likewise.
4683 (dwarf_alloc_block): Likewise.
4684 (parse_macro_definition): Likewise.
4685 (set_die_type): Likewise.
4686 (write_psymtabs_to_index): Likewise.
4687 (create_cus_from_index): Likewise.
4688 (dwarf2_create_include_psymtab): Likewise.
4689 (process_psymtab_comp_unit_reader): Likewise.
4690 (build_type_psymtab_dependencies): Likewise.
4691 (read_comp_units_from_section): Likewise.
4692 (compute_compunit_symtab_includes): Likewise.
4693 (create_dwo_unit_in_dwp_v1): Likewise.
4694 (create_dwo_unit_in_dwp_v2): Likewise.
4695 (read_func_scope): Likewise.
4696 (process_structure_scope): Likewise.
4697 (mark_common_block_symbol_computed): Likewise.
4698 (load_partial_dies): Likewise.
4699 (dwarf2_symbol_mark_computed): Likewise.
4700 * elfread.c (elf_symfile_segments): Likewise.
4701 (elf_read_minimal_symbols): Likewise.
4702 * environ.c (make_environ): Likewise.
4703 * eval.c (evaluate_subexp_standard): Likewise.
4704 * event-loop.c (create_file_handler): Likewise.
4705 (create_async_signal_handler): Likewise.
4706 (create_async_event_handler): Likewise.
4707 (create_timer): Likewise.
4708 * exec.c (build_section_table): Likewise.
4709 * fbsd-nat.c (fbsd_remember_child): Likewise.
4710 * fork-child.c (fork_inferior): Likewise.
4711 * frv-tdep.c (new_variant): Likewise.
4712 * gdbarch.sh (gdbarch_alloc): Likewise.
4713 (append_name): Likewise.
4714 * gdbtypes.c (rank_function): Likewise.
4715 (copy_type_recursive): Likewise.
4716 (add_dyn_prop): Likewise.
4717 * gnu-nat.c (make_proc): Likewise.
4718 (make_inf): Likewise.
4719 (gnu_write_inferior): Likewise.
4720 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
4721 (build_std_type_info_type): Likewise.
4722 * guile/scm-param.c (compute_enum_list): Likewise.
4723 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
4724 * guile/scm-value.c (gdbscm_value_call): Likewise.
4725 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
4726 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
4727 (read_unwind_info): Likewise.
4728 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
4729 * infcall.c (dummy_frame_context_saver_setup): Likewise.
4730 (call_function_by_hand_dummy): Likewise.
4731 * infcmd.c (step_once): Likewise.
4732 (finish_forward): Likewise.
4733 (attach_command): Likewise.
4734 (notice_new_inferior): Likewise.
4735 * inferior.c (add_inferior_silent): Likewise.
4736 * infrun.c (add_displaced_stepping_state): Likewise.
4737 (save_infcall_control_state): Likewise.
4738 (save_inferior_ptid): Likewise.
4739 (_initialize_infrun): Likewise.
4740 * jit.c (bfd_open_from_target_memory): Likewise.
4741 (jit_gdbarch_data_init): Likewise.
4742 * language.c (add_language): Likewise.
4743 * linespec.c (decode_line_2): Likewise.
4744 * linux-nat.c (add_to_pid_list): Likewise.
4745 (add_initial_lwp): Likewise.
4746 * linux-thread-db.c (add_thread_db_info): Likewise.
4747 (record_thread): Likewise.
4748 (info_auto_load_libthread_db): Likewise.
4749 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
4750 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4751 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
4752 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
4753 * macrocmd.c (macro_define_command): Likewise.
4754 * macroexp.c (gather_arguments): Likewise.
4755 * macroscope.c (sal_macro_scope): Likewise.
4756 * macrotab.c (new_macro_table): Likewise.
4757 * mdebugread.c (push_parse_stack): Likewise.
4758 (parse_partial_symbols): Likewise.
4759 (parse_symbol): Likewise.
4760 (psymtab_to_symtab_1): Likewise.
4761 (new_block): Likewise.
4762 (new_psymtab): Likewise.
4763 (mdebug_build_psymtabs): Likewise.
4764 (add_pending): Likewise.
4765 (elfmdebug_build_psymtabs): Likewise.
4766 * mep-tdep.c (mep_gdbarch_init): Likewise.
4767 * mi/mi-main.c (mi_execute_command): Likewise.
4768 * mi/mi-parse.c (mi_parse_argv): Likewise.
4769 * minidebug.c (lzma_open): Likewise.
4770 * minsyms.c (terminate_minimal_symbol_table): Likewise.
4771 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
4772 * mips-tdep.c (mips_gdbarch_init): Likewise.
4773 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
4774 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
4775 * mt-tdep.c (mt_registers_info): Likewise.
4776 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
4777 * nat/linux-btrace.c (linux_enable_bts): Likewise.
4778 (linux_enable_pt): Likewise.
4779 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
4780 (linux_xfer_osdata_processgroups): Likewise.
4781 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
4782 * nto-procfs.c (procfs_meminfo): Likewise.
4783 * objc-lang.c (start_msglist): Likewise.
4784 (selectors_info): Likewise.
4785 (classes_info): Likewise.
4786 (find_methods): Likewise.
4787 * objfiles.c (allocate_objfile): Likewise.
4788 (update_section_map): Likewise.
4789 * osabi.c (gdbarch_register_osabi): Likewise.
4790 (gdbarch_register_osabi_sniffer): Likewise.
4791 * parse.c (start_arglist): Likewise.
4792 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
4793 (hwdebug_insert_point): Likewise.
4794 * printcmd.c (display_command): Likewise.
4795 (ui_printf): Likewise.
4796 * procfs.c (create_procinfo): Likewise.
4797 (load_syscalls): Likewise.
4798 (proc_get_LDT_entry): Likewise.
4799 (proc_update_threads): Likewise.
4800 * prologue-value.c (make_pv_area): Likewise.
4801 (pv_area_store): Likewise.
4802 * psymtab.c (extend_psymbol_list): Likewise.
4803 (init_psymbol_list): Likewise.
4804 (allocate_psymtab): Likewise.
4805 * python/py-inferior.c (add_thread_object): Likewise.
4806 * python/py-param.c (compute_enum_values): Likewise.
4807 * python/py-value.c (valpy_call): Likewise.
4808 * python/py-varobj.c (py_varobj_iter_next): Likewise.
4809 * python/python.c (ensure_python_env): Likewise.
4810 * record-btrace.c (record_btrace_start_replaying): Likewise.
4811 * record-full.c (record_full_reg_alloc): Likewise.
4812 (record_full_mem_alloc): Likewise.
4813 (record_full_end_alloc): Likewise.
4814 (record_full_core_xfer_partial): Likewise.
4815 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
4816 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
4817 * remote-notif.c (remote_notif_state_allocate): Likewise.
4818 * remote.c (demand_private_info): Likewise.
4819 (remote_notif_stop_alloc_reply): Likewise.
4820 (remote_enable_btrace): Likewise.
4821 * reverse.c (save_bookmark_command): Likewise.
4822 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
4823 * rx-tdep.c (rx_gdbarch_init): Likewise.
4824 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
4825 * ser-go32.c (dos_get_tty_state): Likewise.
4826 (dos_copy_tty_state): Likewise.
4827 * ser-mingw.c (ser_windows_open): Likewise.
4828 (ser_console_wait_handle): Likewise.
4829 (ser_console_get_tty_state): Likewise.
4830 (make_pipe_state): Likewise.
4831 (net_windows_open): Likewise.
4832 * ser-unix.c (hardwire_get_tty_state): Likewise.
4833 (hardwire_copy_tty_state): Likewise.
4834 * solib-aix.c (solib_aix_new_lm_info): Likewise.
4835 * solib-dsbt.c (dsbt_current_sos): Likewise.
4836 (dsbt_relocate_main_executable): Likewise.
4837 * solib-frv.c (frv_current_sos): Likewise.
4838 (frv_relocate_main_executable): Likewise.
4839 * solib-spu.c (spu_bfd_fopen): Likewise.
4840 * solib-svr4.c (lm_info_read): Likewise.
4841 (svr4_copy_library_list): Likewise.
4842 (svr4_default_sos): Likewise.
4843 * source.c (find_source_lines): Likewise.
4844 (line_info): Likewise.
4845 (add_substitute_path_rule): Likewise.
4846 * spu-linux-nat.c (spu_bfd_open): Likewise.
4847 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
4848 * stabsread.c (dbx_lookup_type): Likewise.
4849 (read_type): Likewise.
4850 (read_member_functions): Likewise.
4851 (read_struct_fields): Likewise.
4852 (read_baseclasses): Likewise.
4853 (read_args): Likewise.
4854 (_initialize_stabsread): Likewise.
4855 * stack.c (func_command): Likewise.
4856 * stap-probe.c (handle_stap_probe): Likewise.
4857 * symfile.c (addrs_section_sort): Likewise.
4858 (addr_info_make_relative): Likewise.
4859 (load_section_callback): Likewise.
4860 (add_symbol_file_command): Likewise.
4861 (init_filename_language_table): Likewise.
4862 * symtab.c (create_filename_seen_cache): Likewise.
4863 (sort_search_symbols_remove_dups): Likewise.
4864 (search_symbols): Likewise.
4865 * target.c (make_cleanup_restore_target_terminal): Likewise.
4866 * thread.c (new_thread): Likewise.
4867 (enable_thread_stack_temporaries): Likewise.
4868 (make_cleanup_restore_current_thread): Likewise.
4869 (thread_apply_all_command): Likewise.
4870 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
4871 * top.c (gdb_readline_wrapper): Likewise.
4872 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
4873 * tracepoint.c (trace_find_line_command): Likewise.
4874 (all_tracepoint_actions_and_cleanup): Likewise.
4875 (make_cleanup_restore_current_traceframe): Likewise.
4876 (get_uploaded_tp): Likewise.
4877 (get_uploaded_tsv): Likewise.
4878 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
4879 (tui_alloc_win_info): Likewise.
4880 (tui_alloc_content): Likewise.
4881 (tui_add_content_elements): Likewise.
4882 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
4883 (tui_set_disassem_content): Likewise.
4884 * ui-file.c (ui_file_new): Likewise.
4885 (stdio_file_new): Likewise.
4886 (tee_file_new): Likewise.
4887 * utils.c (make_cleanup_restore_integer): Likewise.
4888 (add_internal_problem_command): Likewise.
4889 * v850-tdep.c (v850_gdbarch_init): Likewise.
4890 * valops.c (find_oload_champ): Likewise.
4891 * value.c (allocate_value_lazy): Likewise.
4892 (record_latest_value): Likewise.
4893 (create_internalvar): Likewise.
4894 * varobj.c (install_variable): Likewise.
4895 (new_variable): Likewise.
4896 (new_root_variable): Likewise.
4897 (cppush): Likewise.
4898 (_initialize_varobj): Likewise.
4899 * windows-nat.c (windows_make_so): Likewise.
4900 * x86-nat.c (x86_add_process): Likewise.
4901 * xcoffread.c (arrange_linetable): Likewise.
4902 (allocate_include_entry): Likewise.
4903 (process_linenos): Likewise.
4904 (SYMBOL_DUP): Likewise.
4905 (xcoff_start_psymtab): Likewise.
4906 (xcoff_end_psymtab): Likewise.
4907 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
4908 * xtensa-tdep.c (xtensa_register_type): Likewise.
4909 * gdbarch.c: Regenerate.
4910 * gdbarch.h: Regenerate.
4911
4912 2015-08-25 Don Breazeal <donb@codesourcery.com>
4913
4914 * infrun.c (follow_exec): Re-order operations for
4915 handling follow-exec-mode "new".
4916 (handle_inferior_event_1): Assign ecs->event_thread
4917 to the current thread.
4918 * remote.c (get_remote_arch_state): Add an assertion.
4919
4920 2015-08-26 Pedro Alves <palves@redhat.com>
4921
4922 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
4923
4924 2015-08-25 Pedro Alves <palves@redhat.com>
4925
4926 PR gdb/18804
4927 * defs.h (maybe_quit): Declare.
4928 (QUIT): Now calls maybe_quit.
4929 * event-loop.c (clear_async_signal_handler)
4930 (async_signal_handler_is_marked): New functions.
4931 * event-loop.h (async_signal_handler_is_marked)
4932 (clear_async_signal_handler): New declarations.
4933 * remote.c (remote_check_pending_interrupt): New function.
4934 (interrupt_query): Use make_cleanup_restore_target_terminal. No
4935 longer check whether the target is async. If waiting for a stop
4936 reply, and a Ctrl-C as been sent to the target, offer to
4937 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
4938 Otherwise do not disconnect and throw a quit.
4939 (_initialize_remote): Install remote_check_pending_interrupt as
4940 to_check_pending_interrupt.
4941 * target.c (target_check_pending_interrupt): New function.
4942 * target.h (struct target_ops) <to_check_pending_interrupt>: New
4943 field.
4944 (target_check_pending_interrupt): New declaration.
4945 * utils.c (maybe_quit): New function.
4946 * target-delegates.c: Regenerate.
4947
4948 2015-08-25 Yao Qi <yao.qi@linaro.org>
4949
4950 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
4951 Rename local variable pid to tid, and get lwpid of lwp. Update
4952 debug output.
4953
4954 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
4955
4956 * ada-lang.c (ada_read_var_value): Add a var_block argument
4957 and pass it to default_read_var_value.
4958 * block.c (block_static_link): New accessor.
4959 * block.h (block_static_link): Declare it.
4960 * buildsym.c (finish_block_internal): Add a static_link
4961 argument. If there is a static link, associate it to the new
4962 block.
4963 (finish_block): Add a static link argument and pass it to
4964 finish_block_internal.
4965 (end_symtab_get_static_block): Update calls to finish_block and
4966 to finish_block_internal.
4967 (end_symtab_with_blockvector): Update call to
4968 finish_block_internal.
4969 * buildsym.h: Forward-declare struct dynamic_prop.
4970 (struct context_stack): Add a static_link field.
4971 (finish_block): Add a static link argument.
4972 * c-exp.y: Remove an obsolete comment (evaluation of variables
4973 already start from the selected frame, and now they climb *up*
4974 the call stack) and propagate the block information to the
4975 produced expression.
4976 * d-exp.y: Likewise.
4977 * f-exp.y: Likewise.
4978 * go-exp.y: Likewise.
4979 * jv-exp.y: Likewise.
4980 * m2-exp.y: Likewise.
4981 * p-exp.y: Likewise.
4982 * coffread.c (coff_symtab_read): Update calls to finish_block.
4983 * dbxread.c (process_one_symbol): Likewise.
4984 * xcoffread.c (read_xcoff_symtab): Likewise.
4985 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
4986 "sym" parameter to struct block_symbol, update its uses and pass
4987 its block to calls to read_var_value.
4988 (convert_symbol_sym): Update the calls to convert_one_symbol.
4989 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
4990 call to read_var_value.
4991 * dwarf2loc.c (block_op_get_frame_base): New.
4992 (dwarf2_block_frame_base_locexpr_funcs): Implement the
4993 get_frame_base method.
4994 (dwarf2_block_frame_base_loclist_funcs): Likewise.
4995 (dwarf2locexpr_baton_eval): Add a frame argument and use it
4996 instead of the selected frame in order to evaluate the
4997 expression.
4998 (dwarf2_evaluate_property): Add a frame argument. Update call
4999 to dwarf2_locexpr_baton_eval to provide a frame in available and
5000 to handle the absence of address stack.
5001 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
5002 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
5003 declaration.
5004 (read_func_scope): Record any available static link description.
5005 Update call to finish_block.
5006 (read_lexical_block_scope): Update call to finish_block.
5007 * findvar.c (follow_static_link): New.
5008 (get_hosting_frame): New.
5009 (default_read_var_value): Add a var_block argument. Use
5010 get_hosting_frame to handle non-local references.
5011 (read_var_value): Add a var_block argument and pass it to the
5012 LA_READ_VAR_VALUE method.
5013 * gdbtypes.c (resolve_dynamic_range): Update calls to
5014 dwarf2_evaluate_property.
5015 (resolve_dynamic_type_internal): Likewise.
5016 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
5017 read_var_value, passing it the block coming from symbol lookup.
5018 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
5019 read_var_value (TODO).
5020 * infcmd.c (finish_command_continuation): Update call to
5021 read_var_value, passing it the block coming from symbol lookup.
5022 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5023 * language.h (struct language_defn): Add a var_block argument to
5024 the LA_READ_VAR_VALUE method.
5025 * objfiles.c (struct static_link_htab_entry): New.
5026 (static_link_htab_entry_hash): New.
5027 (static_link_htab_entry_eq): New.
5028 (objfile_register_static_link): New.
5029 (objfile_lookup_static_link): New.
5030 (free_objfile): Free the STATIC_LINKS hashed map if needed.
5031 * objfiles.h: Include hashtab.h.
5032 (struct objfile): Add a static_links field.
5033 (objfile_register_static_link): New.
5034 (objfile_lookup_static_link): New.
5035 * printcmd.c (print_variable_and_value): Update call to
5036 read_var_value.
5037 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
5038 * python/py-frame.c (frapy_read_var): Update call to
5039 read_var_value, passing it the block coming from symbol lookup.
5040 * python/py-framefilter.c (extract_sym): Add a sym_block
5041 parameter and set the pointed value to NULL (TODO).
5042 (enumerate_args): Update call to extract_sym.
5043 (enumerate_locals): Update calls to extract_sym and to
5044 read_var_value.
5045 * python/py-symbol.c (sympy_value): Update call to
5046 read_var_value (TODO).
5047 * stack.c (read_frame_local): Update call to read_var_value.
5048 (read_frame_arg): Likewise.
5049 (return_command): Likewise.
5050 * symtab.h (struct symbol_block_ops): Add a get_frame_base
5051 method.
5052 (struct symbol): Add a block field.
5053 (SYMBOL_BLOCK): New accessor.
5054 * valops.c (value_of_variable): Remove frame/block handling and
5055 pass the block argument to read_var_value, which does this job
5056 now.
5057 (value_struct_elt_for_reference): Update calls to
5058 read_var_value.
5059 (value_of_this): Pass the block found to read_var_value.
5060 * value.h (read_var_value): Add a var_block argument.
5061 (default_read_var_value): Likewise.
5062
5063 2015-08-25 Yao Qi <yao.qi@linaro.org>
5064
5065 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
5066 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
5067 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
5068
5069 2015-08-25 Yao Qi <yao.qi@linaro.org>
5070
5071 * Makefile.in (aarch64-liunx.o): New rule.
5072 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
5073 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
5074 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
5075 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
5076 extern.
5077 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
5078 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
5079 * nat/aarch64-linux.c: New file.
5080 * nat/aarch64-linux.h: New file.
5081
5082 2015-08-25 Yao Qi <yao.qi@linaro.org>
5083
5084 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
5085 lwp_arch_private_info and ptid_of_lwp.
5086
5087 2015-08-25 Yao Qi <yao.qi@linaro.org>
5088
5089 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
5090 Move it to nat/aarch64-linux-hw-point.c.
5091 (debug_reg_change_callback): Likewise.
5092 (aarch64_notify_debug_reg_change): :Likewise.
5093 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
5094 (aarch64_dr_update_callback_param): New.
5095 (debug_reg_change_callback): New function.
5096 (aarch64_notify_debug_reg_change): Likewise.
5097 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
5098 Remove the declaration.
5099
5100 2015-08-25 Yao Qi <yao.qi@linaro.org>
5101
5102 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
5103 Call current_lwp_ptid.
5104
5105 2015-08-25 Yao Qi <yao.qi@linaro.org>
5106
5107 * aarch64-linux-nat.c (debug_reg_change_callback): Use
5108 debug_printf.
5109
5110 2015-08-25 Yao Qi <yao.qi@linaro.org>
5111
5112 * aarch64-linux-nat.c (debug_reg_change_callback): Call
5113 ptid_get_pid rather than ptid_get_lwp.
5114
5115 2015-08-24 Pedro Alves <palves@redhat.com>
5116
5117 * NEWS (New commands): Mention set/show remote
5118 multiprocess-extensions-packet.
5119 * remote.c (remote_query_supported): Only tell the server to use
5120 the multiprocess extensions if the user hasn't force-disabled them
5121 with "set remote multiprocess-extensions-packet off".
5122
5123 2015-08-24 Pedro Alves <palves@redhat.com>
5124
5125 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
5126 1029a8112290f6eee9d7878a391c49db42c999bd.
5127 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
5128 Regenerate.
5129 * gnulib/import/Makefile.am: Update.
5130 * gnulib/import/Makefile.in: Update.
5131 * gnulib/import/alloca.in.h: Update.
5132 * gnulib/import/basename-lgpl.c: Update.
5133 * gnulib/import/canonicalize-lgpl.c: Update.
5134 * gnulib/import/config.charset: Update.
5135 * gnulib/import/dirent.in.h: Update.
5136 * gnulib/import/dirfd.c: Update.
5137 * gnulib/import/dirname-lgpl.c: Update.
5138 * gnulib/import/dirname.h: Update.
5139 * gnulib/import/dosname.h: Update.
5140 * gnulib/import/errno.in.h: Update.
5141 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
5142 * gnulib/import/extra/snippet/c++defs.h: Update.
5143 * gnulib/import/extra/snippet/warn-on-use.h: Update.
5144 * gnulib/import/extra/update-copyright: Update.
5145 * gnulib/import/float+.h: Update.
5146 * gnulib/import/float.c: Update.
5147 * gnulib/import/float.in.h: Update.
5148 * gnulib/import/fnmatch.c: Update.
5149 * gnulib/import/fnmatch.in.h: Update.
5150 * gnulib/import/fnmatch_loop.c: Update.
5151 * gnulib/import/fpucw.h: Update.
5152 * gnulib/import/frexp.c: Update.
5153 * gnulib/import/frexpl.c: Update.
5154 * gnulib/import/gettimeofday.c: Update.
5155 * gnulib/import/inttypes.in.h: Update.
5156 * gnulib/import/isnan.c: Update.
5157 * gnulib/import/isnand-nolibm.h: Update.
5158 * gnulib/import/isnand.c: Update.
5159 * gnulib/import/isnanl-nolibm.h: Update.
5160 * gnulib/import/isnanl.c: Update.
5161 * gnulib/import/itold.c: Update.
5162 * gnulib/import/localcharset.c: Update.
5163 * gnulib/import/localcharset.h: Update.
5164 * gnulib/import/lstat.c: Update.
5165 * gnulib/import/m4/00gnulib.m4: Update.
5166 * gnulib/import/m4/absolute-header.m4: Update.
5167 * gnulib/import/m4/alloca.m4: Update.
5168 * gnulib/import/m4/canonicalize.m4: Update.
5169 * gnulib/import/m4/codeset.m4: Update.
5170 * gnulib/import/m4/configmake.m4: Update.
5171 * gnulib/import/m4/dirent_h.m4: Update.
5172 * gnulib/import/m4/dirfd.m4: Update.
5173 * gnulib/import/m4/dirname.m4: Update.
5174 * gnulib/import/m4/double-slash-root.m4: Update.
5175 * gnulib/import/m4/eealloc.m4: Update.
5176 * gnulib/import/m4/errno_h.m4: Update.
5177 * gnulib/import/m4/exponentd.m4: Update.
5178 * gnulib/import/m4/exponentl.m4: Update.
5179 * gnulib/import/m4/extensions.m4: Update.
5180 * gnulib/import/m4/extern-inline.m4: Update.
5181 * gnulib/import/m4/fcntl-o.m4: Update.
5182 * gnulib/import/m4/float_h.m4: Update.
5183 * gnulib/import/m4/fnmatch.m4: Update.
5184 * gnulib/import/m4/fpieee.m4: Update.
5185 * gnulib/import/m4/frexp.m4: Update.
5186 * gnulib/import/m4/frexpl.m4: Update.
5187 * gnulib/import/m4/gettimeofday.m4: Update.
5188 * gnulib/import/m4/glibc21.m4: Update.
5189 * gnulib/import/m4/gnulib-cache.m4: Update.
5190 * gnulib/import/m4/gnulib-common.m4: Update.
5191 * gnulib/import/m4/gnulib-comp.m4: Update.
5192 * gnulib/import/m4/gnulib-tool.m4: Update.
5193 * gnulib/import/m4/include_next.m4: Update.
5194 * gnulib/import/m4/inttypes-pri.m4: Update.
5195 * gnulib/import/m4/inttypes.m4: Update.
5196 * gnulib/import/m4/isnand.m4: Update.
5197 * gnulib/import/m4/isnanl.m4: Update.
5198 * gnulib/import/m4/largefile.m4: Update.
5199 * gnulib/import/m4/localcharset.m4: Update.
5200 * gnulib/import/m4/locale-fr.m4: Update.
5201 * gnulib/import/m4/locale-ja.m4: Update.
5202 * gnulib/import/m4/locale-zh.m4: Update.
5203 * gnulib/import/m4/longlong.m4: Update.
5204 * gnulib/import/m4/lstat.m4: Update.
5205 * gnulib/import/m4/malloc.m4: Update.
5206 * gnulib/import/m4/malloca.m4: Update.
5207 * gnulib/import/m4/math_h.m4: Update.
5208 * gnulib/import/m4/mbrtowc.m4: Update.
5209 * gnulib/import/m4/mbsinit.m4: Update.
5210 * gnulib/import/m4/mbsrtowcs.m4: Update.
5211 * gnulib/import/m4/mbstate_t.m4: Update.
5212 * gnulib/import/m4/memchr.m4: Update.
5213 * gnulib/import/m4/memmem.m4: Update.
5214 * gnulib/import/m4/mmap-anon.m4: Update.
5215 * gnulib/import/m4/multiarch.m4: Update.
5216 * gnulib/import/m4/nocrash.m4: Update.
5217 * gnulib/import/m4/off_t.m4: Update.
5218 * gnulib/import/m4/pathmax.m4: Update.
5219 * gnulib/import/m4/readlink.m4: Update.
5220 * gnulib/import/m4/rename.m4: Update.
5221 * gnulib/import/m4/rmdir.m4: Update.
5222 * gnulib/import/m4/ssize_t.m4: Update.
5223 * gnulib/import/m4/stat.m4: Update.
5224 * gnulib/import/m4/stdbool.m4: Update.
5225 * gnulib/import/m4/stddef_h.m4: Update.
5226 * gnulib/import/m4/stdint.m4: Update.
5227 * gnulib/import/m4/stdio_h.m4: Update.
5228 * gnulib/import/m4/stdlib_h.m4: Update.
5229 * gnulib/import/m4/string_h.m4: Update.
5230 * gnulib/import/m4/strstr.m4: Update.
5231 * gnulib/import/m4/strtok_r.m4: Update.
5232 * gnulib/import/m4/sys_socket_h.m4: Update.
5233 * gnulib/import/m4/sys_stat_h.m4: Update.
5234 * gnulib/import/m4/sys_time_h.m4: Update.
5235 * gnulib/import/m4/sys_types_h.m4: Update.
5236 * gnulib/import/m4/time_h.m4: Update.
5237 * gnulib/import/m4/unistd_h.m4: Update.
5238 * gnulib/import/m4/warn-on-use.m4: Update.
5239 * gnulib/import/m4/wchar_h.m4: Update.
5240 * gnulib/import/m4/wchar_t.m4: Update.
5241 * gnulib/import/m4/wctype_h.m4: Update.
5242 * gnulib/import/m4/wint_t.m4: Update.
5243 * gnulib/import/malloc.c: Update.
5244 * gnulib/import/malloca.c: Update.
5245 * gnulib/import/malloca.h: Update.
5246 * gnulib/import/math.in.h: Update.
5247 * gnulib/import/mbrtowc.c: Update.
5248 * gnulib/import/mbsinit.c: Update.
5249 * gnulib/import/mbsrtowcs-impl.h: Update.
5250 * gnulib/import/mbsrtowcs-state.c: Update.
5251 * gnulib/import/mbsrtowcs.c: Update.
5252 * gnulib/import/memchr.c: Update.
5253 * gnulib/import/memmem.c: Update.
5254 * gnulib/import/pathmax.h: Update.
5255 * gnulib/import/readlink.c: Update.
5256 * gnulib/import/ref-add.sin: Update.
5257 * gnulib/import/ref-del.sin: Update.
5258 * gnulib/import/rename.c: Update.
5259 * gnulib/import/rmdir.c: Update.
5260 * gnulib/import/same-inode.h: Update.
5261 * gnulib/import/stat.c: Update.
5262 * gnulib/import/stdbool.in.h: Update.
5263 * gnulib/import/stddef.in.h: Update.
5264 * gnulib/import/stdint.in.h: Update.
5265 * gnulib/import/stdio.c: Update.
5266 * gnulib/import/stdio.in.h: Update.
5267 * gnulib/import/stdlib.in.h: Update.
5268 * gnulib/import/str-two-way.h: Update.
5269 * gnulib/import/streq.h: Update.
5270 * gnulib/import/string.in.h: Update.
5271 * gnulib/import/stripslash.c: Update.
5272 * gnulib/import/strnlen1.c: Update.
5273 * gnulib/import/strnlen1.h: Update.
5274 * gnulib/import/strstr.c: Update.
5275 * gnulib/import/strtok_r.c: Update.
5276 * gnulib/import/sys_stat.in.h: Update.
5277 * gnulib/import/sys_time.in.h: Update.
5278 * gnulib/import/sys_types.in.h: Update.
5279 * gnulib/import/time.in.h: Update.
5280 * gnulib/import/unistd.in.h: Update.
5281 * gnulib/import/verify.h: Update.
5282 * gnulib/import/wchar.in.h: Update.
5283 * gnulib/import/wctype.in.h: Update.
5284 * gnulib/import/gettimeofday.c: New file.
5285 * gnulib/import/m4/absolute-header.m4: New file.
5286 * gnulib/import/m4/gettimeofday.m4: New file.
5287 * gnulib/import/m4/sys_socket_h.m4: New file.
5288 * gnulib/import/m4/sys_time_h.m4: New file.
5289 * gnulib/import/stdio.c: Delete file.
5290 * gnulib/import/sys_time.in.h: New file.
5291
5292 2015-08-24 Pedro Alves <palves@redhat.com>
5293
5294 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
5295 * common/gdb_sys_time.h: New file.
5296 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
5297 * gdb_select.h: Likewise.
5298 * gdb_usleep.c: Likewise.
5299 * maint.c: Likewise.
5300 * mi/mi-main.c: Likewise.
5301 * mi/mi-parse.h: Likewise.
5302 * remote-fileio.c: Likewise.
5303 * remote-m32r-sdi.c: Likewise.
5304 * remote.c: Likewise.
5305 * ser-base.c: Likewise.
5306 * ser-pipe.c: Likewise.
5307 * ser-tcp.c: Likewise.
5308 * ser-unix.c: Likewise.
5309 * symfile.c: Likewise.
5310 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
5311 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
5312 * utils.c: Likewise.
5313
5314 2015-08-24 Pedro Alves <palves@redhat.com>
5315
5316 * NEWS: Mention removed support for the various ROM monitors.
5317 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
5318 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
5319 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
5320 gdb_target_obs.
5321 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
5322 gdb_target_obs.
5323 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
5324 dsrec.o from gdb_target_obs.
5325 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
5326 from gdb_target_obs.
5327 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
5328 gdb_target_obs.
5329 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
5330 dink32-rom.o from gdb_target_obs.
5331 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
5332 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
5333 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
5334 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
5335
5336 2015-08-21 Pedro Alves <palves@redhat.com>
5337
5338 * frame.c (null_frame_id): Explicitly zero-initialize.
5339
5340 2015-08-21 Tom Tromey <tromey@redhat.com>
5341
5342 * dwarf2read.c (struct dwarf2_section_info): Rename field
5343 'asection' to 'section'.
5344 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
5345 (dwarf2_locate_sections, dwarf2_locate_sections)
5346 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
5347 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
5348 (dwarf2_locate_v2_dwp_sections): Adjust.
5349
5350 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
5351
5352 * top.h (gdb_in_secondary_prompt_p): Declare.
5353 * top.c (gdb_secondary_prompt_depth): Define.
5354 (gdb_in_secondary_prompt_p): Define.
5355 (gdb_readline_wrapper_cleanup): Decrement
5356 gdb_secondary_prompt_depth.
5357 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
5358 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
5359 are in a secondary prompt.
5360
5361 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
5362
5363 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
5364 emit the newline.
5365
5366 2015-08-21 Gary Benson <gbenson@redhat.com>
5367
5368 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
5369
5370 2015-08-21 Gary Benson <gbenson@redhat.com>
5371
5372 * target.h (struct target_ops) <to_fileio_open>: New argument
5373 warn_if_slow. Update comment. All implementations updated.
5374 (target_fileio_open_warn_if_slow): New declaration.
5375 * target.c (target_fileio_open): Renamed as...
5376 (target_fileio_open_1): ...this. New argument warn_if_slow.
5377 Pass warn_if_slow to implementation. Update debug printing.
5378 (target_fileio_open): New function.
5379 (target_fileio_open_warn_if_slow): Likewise.
5380 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
5381 target_fileio_open_warn_if_slow.
5382
5383 2015-08-21 Gary Benson <gbenson@redhat.com>
5384
5385 * nat/linux-namespaces.c (linux_mntns_access_fs):
5386 Do not overwrite old_chain.
5387
5388 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
5389
5390 * arch/xtensa.h: New file.
5391 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
5392 (ps_get_thread_area): New function.
5393 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
5394 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
5395 * xtensa-tdep.c (osabi.h): New #include.
5396 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
5397 xtensa-specific hooks.
5398 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
5399 member and move the structure to arch/xtensa.h.
5400
5401 2015-08-21 Pedro Alves <palves@redhat.com>
5402
5403 * remote.c (struct readahead_cache): New.
5404 (struct remote_state) <readahead_cache>: New field.
5405 (remote_open_1): Invalidate the cache.
5406 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
5407 functions.
5408 (remote_hostio_pwrite): Invalidate the readahead cache.
5409 (remote_hostio_pread): Rename to ...
5410 (remote_hostio_pread_vFile): ... this.
5411 (remote_hostio_pread_from_cache): New function.
5412 (remote_hostio_pread): Reimplement.
5413 (remote_hostio_close): Invalidate the readahead cache.
5414
5415 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
5416
5417 PR build/18843
5418 * procfs.c: Include "filestuff.h".
5419
5420 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
5421
5422 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
5423 curch.
5424 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
5425 cur_line or curch, instead call wmove().
5426 (init_win_info) [CMD_WIN]: Likewise.
5427 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
5428 instead call getcury().
5429 (tui_redisplay_readline): Don't set cur_line or curch.
5430 (tui_mld_erase_entire_line): Don't read cur_line, instead call
5431 getcury().
5432 (tui_cont_sig): Remove call to wmove.
5433 (tui_getc): Don't read cur_line or curch, instead call getcury()
5434 or getyx(). Don't set curch.
5435 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
5436 set cur_line or curch. Always move cursor to (0,0).
5437
5438 2015-08-20 Pedro Alves <palves@redhat.com>
5439
5440 * infrun.c (print_target_wait_results): Make extern.
5441 * infrun.h (print_target_wait_results): Declare.
5442 * remote.c (set_stop_requested_callback): Delete.
5443 (process_initial_stop_replies): New function.
5444 (remote_start_remote): Use it.
5445 (stop_reply_queue_length): New function.
5446
5447 2015-08-20 Pedro Alves <palves@redhat.com>
5448
5449 * dwarf2read.c (process_full_comp_unit): To tell whether
5450 start_subfile managed to deduce a language, test for
5451 language_unknown instead of language_c.
5452
5453 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
5454
5455 * ada-lex.l: Reset the start condition to INITIAL in the rule that
5456 matches attributes.
5457
5458 2015-08-19 Kevin Buettner <kevinb@redhat.com>
5459
5460 * dwarf2read.c (dwarf2_string_attr): New function.
5461 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
5462 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
5463 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
5464 (anonymous_struct_prefix, prepare_one_comp_unit): Use
5465 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
5466
5467 2015-08-18 Doug Evans <dje@google.com>
5468 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5469
5470 PR mi/18833
5471 * cli/cli-logging.c (pop_output_files): Don't restore redirection
5472 if MI-like.
5473 * mi/mi-out.c: #include "vec.h".
5474 (ui_filep): New type.
5475 (DEV_VEC_P (ui_filep)): New type.
5476 (struct ui_out_data) <buffer, original_buffer>: Delete.
5477 (struct ui_out_data) <streams>: New member.
5478 (mi_ui_out_impl): Add data_destroy field.
5479 (mi_field_string, mi_field_fmt): Update.
5480 (mi_flush, mi_redirect, field_separator): Update.
5481 (mi_open, mi_close): Update.
5482 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
5483 (mi_out_data_ctor, mi_out_data_dtor): New functions.
5484 (mi_out_new): Call mi_out_data_ctor.
5485
5486 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
5487
5488 * remote.c (strprefix): New.
5489 (remote_parse_stop_reply): Use strprefix instead of strncmp
5490 to ensure exact match of keyword.
5491
5492 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
5493
5494 * gdb_bfd.c (debug_bfd_cache): New variable.
5495 (show_bfd_cache_debug): New function.
5496 (gdb_bfd_open): Add debug logging.
5497 (gdb_bfd_ref): Likewise.
5498 (gdb_bfd_unref): Likewise.
5499 (_initialize_gdb_bfd): Add new set/show command.
5500 * NEWS: Mention new command.
5501
5502 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
5503
5504 * gdb_bfd.c (bfd_sharing): New variable.
5505 (show_bfd_sharing): New function.
5506 (gdb_bfd_open): Check bfd_sharing variable.
5507 (_initialize_gdb_bfd): Add new set/show command.
5508 * NEWS: Mention new command.
5509
5510 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
5511
5512 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
5513 field.
5514 (struct gdb_bfd_cache_search): Likewise.
5515 (eq_bfd): Compare the size, inode, and device id fields.
5516 (gdb_bfd_open): Initialise the size, inode, and device id fields.
5517 (gdb_bfd_ref): Likewise.
5518 (gdb_bfd_unref): Likewise.
5519
5520 2015-08-18 Pedro Alves <palves@redhat.com>
5521
5522 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
5523 target implements to_always_non_stop_p, call it.
5524 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
5525 (x86_linux_create_target): Install it as to_always_non_stop_p
5526 method.
5527
5528 2015-08-17 Doug Evans <dje@google.com>
5529
5530 * ui-out.c (default_ui_out_impl): Add comment.
5531
5532 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
5533
5534 * d-exp.y (type_aggregate_p): New function.
5535 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
5536 (classify_inner_name): Likewise.
5537 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
5538
5539 2015-08-15 Doug Evans <xdje42@gmail.com>
5540
5541 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
5542 updated.
5543 (add_psymbol_to_list): Ditto.
5544
5545 2015-08-15 Doug Evans <xdje42@gmail.com>
5546
5547 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
5548 updated. Call end_psymtab_common.
5549 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
5550 end_psymtab_common.
5551 (build_type_psymtabs_reader): Ditto.
5552 * psympriv.h (sort_pst_symbols): Delete.
5553 (end_psymtab_common): Declare.
5554 * psymtab.c (sort_pst_symbols): Make static.
5555 (end_psymtab_common): New function.
5556 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
5557
5558 2015-08-15 Doug Evans <xdje42@gmail.com>
5559
5560 * defs.h (LANGUAGE_BITS): Define.
5561 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
5562 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
5563 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
5564 (minimal_symbol_type): Add nr_minsym_types.
5565 (MINSYM_TYPE_BITS): Define.
5566 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
5567 (domain_enum_tag): Add NR_DOMAINS.
5568 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
5569 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
5570
5571 2015-08-15 Doug Evans <xdje42@gmail.com>
5572
5573 * objfiles.h: Whitespace cleanup.
5574 * psympriv.h: Whitespace cleanup.
5575 * psymtab.c: Whitespace/coding convention cleanup.
5576
5577 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
5578
5579 * inferior.c (detach_inferior_command): Don't call
5580 any_thread_of_process when pid is 0.
5581 (kill_inferior_command): Likewise.
5582
5583 2015-08-14 Doug Evans <xdje42@gmail.com>
5584
5585 PR gdb/11833
5586 * NEWS: Document new /s modifier for the disassemble command.
5587 * cli/cli-cmds.c (disassemble_command): Add support for /s.
5588 (_initialize_cli_cmds): Update online docs of disassemble command.
5589 * disasm.c: #include "source.h".
5590 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
5591 All uses updated.
5592 (dis_line_entry): New struct.
5593 (hash_dis_line_entry, eq_dis_line_entry): New functions.
5594 (allocate_dis_line_table): New functions.
5595 (maybe_add_dis_line_entry, line_has_code_p): New functions.
5596 (dump_insns): New arg end_pc. All callers updated.
5597 (do_mixed_source_and_assembly_deprecated): Renamed from
5598 do_mixed_source_and_assembly. All callers updated.
5599 (do_mixed_source_and_assembly): New function.
5600 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
5601 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
5602 DISASSEMBLY_SOURCE. All uses updated.
5603 (DISASSEMBLY_SOURCE): New macro.
5604 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
5605
5606 2015-08-14 Keith Seitz <keiths@redhat.com>
5607
5608 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
5609 `typename' to `type_name' to avoid C++ reserved word.
5610
5611 2015-08-14 Keith Seitz <keiths@redhat.com>
5612
5613 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
5614 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
5615 silence ARI errors.
5616
5617 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
5618
5619 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
5620 xstrprintf instead of malloc and sprintf.
5621 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
5622 (lex_one_token): Likewise.
5623
5624 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
5625
5626 * solib-svr4.c (read_program_header): Add base_addr argument to
5627 report the runtime address of the segment.
5628 (find_program_interpreter): Update read_program_header call to pass
5629 a NULL pointer for the new argument.
5630 (scan_dyntag): Add ptr_addr argument to report the runtime address
5631 of the tag payload.
5632 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
5633 read_program_header to get the base address of the dynamic segment.
5634 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
5635 read_program_header.
5636 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
5637
5638 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
5639
5640 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
5641
5642 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
5643
5644 * d-exp.y (%union): Add voidval.
5645 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
5646 name in the lexing stage.
5647 (PostfixExpression): Move symbol completion handling in grammar here
5648 from PrimaryExpression.
5649 (PrimaryExpression): Move routines to handle resolving identifier
5650 tokens in the grammar here from push_expression_name.
5651 (IdentifierExp): Remove the handling of alternating '.' and identifier
5652 tokens.
5653 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
5654 (BasicType): Remove C-style typename rules.
5655 (d_type_from_name, d_module_from_name, push_variable)
5656 (push_fieldnames, push_type_name, push_module_name)
5657 (push_expression_name): Remove.
5658 (lex_one_token): Rename from yylex. Replace pstate with par_state.
5659 (token_and_value): New type.
5660 (token_fifo, popping, name_obstack): New globals.
5661 (classify_name): New function.
5662 (classify_inner_name): Likewise.
5663 (yylex): Likewise.
5664 (d_parse): Initialize token_fifo, popping and name_obstack.
5665
5666 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
5667
5668 * Makefile.in (SFILES): Add d-namespace.c.
5669 (COMMON_OBS): Add d-namespace.o.
5670 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
5671 la_lookup_symbol_nonlocal callback function pointer.
5672 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
5673 (d_lookup_nested_symbol): New declaration.
5674 * d-namespace.c: New file.
5675
5676 2015-08-13 Pedro Alves <palves@redhat.com>
5677
5678 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
5679 cleanup after the decref cleanup, not before.
5680
5681 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
5682
5683 * ada-lang.c: Include namespace.h
5684 (aux_add_nonlocal_symbols): Fix a function name in comment.
5685 (ada_add_block_renamings): New.
5686 (add_nonlocal_symbols): Add global renamings handling.
5687 (ada_lookup_symbol_list_worker): Move the symbol lookup part
5688 to...
5689 (ada_add_all_symbols): ... this new function.
5690 (ada_add_block_symbols): Try to match the input name against the
5691 "using directives list", perform a recursive symbol lookup on
5692 the matched declarations.
5693 * block.h (struct block): Move the_namespace to top-level as
5694 namespace_info. Remove the language_specific field.
5695 (BLOCK_NAMESPACE): Update access to the namespace_info field.
5696 * buildsym.h (using_directives): Rename into...
5697 (local_using_directives): ... this.
5698 (global_using_directives): New.
5699 (struct context_stack): Rename the using_directives field into
5700 local_using_directives.
5701 * buildsym.c (finish_block_internal): Deal with the proper
5702 using directives repository (local or global).
5703 (prepare_for_building): Reset local_using_directives. Assert
5704 that there is no pending global using directive.
5705 (reset_symtab_globals): Reset global_using_directives and
5706 local_using_directives.
5707 (end_symtab_get_static_block): Don't ignore symtabs that have
5708 only using directives.
5709 (push_context): Update references to local_using_directives.
5710 (buildsym_init): Do not reset using_directives.
5711 * cp-support.c: Include namespace.h.
5712 * cp-support.h (struct using_direct): Move to namespace.h.
5713 (cp_add_using_directives): Move to namespace.h.
5714 * cp-namespace.c: Include namespace.h
5715 (cp_add_using_directive): Move to namespace.c, rename it to
5716 add_using_directive, add a "using_directives" argument and use
5717 it as the pending using directives repository. All callers
5718 updated.
5719 * dwarf2read.c (using_directives): New.
5720 (read_import_statement): Call using_directives.
5721 (read_func_scope): Update references to local_using_directives.
5722 (read_lexical_block_scope): Likewise.
5723 (read_namespace): Update the heading comment, call
5724 using_directives.
5725 * namespace.h: New file.
5726 * namespace.c: New file.
5727 * Makefile.in (SFILES): Add namespace.c.
5728 (COMMON_OBS): Add namespace.o
5729
5730 2015-08-12 Joel Brobecker <brobecker@adacore.com>
5731
5732 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
5733 compute RETADDR.
5734
5735 2015-08-12 Keith Seitz <keiths@redhat.com>
5736
5737 * break-catch-throw.c (re_set_exception_catchpoint) Rename
5738 reserved C++ keyword "explicit" to "explicit_loc".
5739 * breakpoint.c (create_overlay_event_breakpoint)
5740 (create_longjmp_master_breakpoint)
5741 (create_std_terminate_master_breakpoint)
5742 (create_exception_master_breakpoint, update_static_tracepoint):
5743 Rename reserved C++ keyword "explicit" to "explicit_loc".
5744 * completer.c (collect_explicit_location_matches)
5745 (explicit_location_completer): Rename reserved C++ keyword
5746 "explicit" to "explicit_loc".
5747 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
5748 (canonicalize_linespec, create_sals_line_offset)
5749 (convert_linespec_to_sals, convert_explicit_location_to_sals)
5750 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
5751 "explicit" to "explicit_loc".
5752 * location.c (struct event_location) <explicit>: Rename to
5753 "explicit_loc".
5754 (initialize_explicit_location, new_explicit_location)
5755 (explicit_location_to_string_internal, explicit_location_to_linespec):
5756 Rename reserved C++ keyword "explicit" to "explicit_loc".
5757 * location.h (explicit_location_to_string)
5758 (explicit_location_to_linespec, initialize_explicit_location)
5759 (new_explicit_location): Rename reserved C++ keyword "explicit"
5760 to "explicit_loc".
5761 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
5762 keyword "explicit" to "explicit_loc".
5763
5764 2015-08-12 Keith Seitz <keiths@redhat.com>
5765
5766 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
5767 and only call decode_line_1 when it is non-NULL.
5768
5769 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
5770
5771 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
5772 location address is not meaningful.
5773 (breakpoint_address_is_meaningful): Update comment.
5774
5775 2015-08-11 Keith Seitz <keiths@redhat.com>
5776
5777 * NEWS: Mention explicit locations.
5778 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
5779 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
5780 (_initialize_breakpoint): Update documentation for
5781 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
5782
5783 2015-08-11 Keith Seitz <keiths@redhat.com>
5784
5785 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
5786 explicit locations, options "--source", "--function",
5787 "--label", and "--line".
5788
5789 2015-08-11 Keith Seitz <keiths@redhat.com>
5790
5791 * completer.c: Include location.h.
5792 (enum match_type): New enum.
5793 (location_completer): Rename to ...
5794 (linespec_completer): ... this.
5795 (collect_explicit_location_matches, backup_text_ptr)
5796 (explicit_location_completer): New functions.
5797 (location_completer): "New" function; handle linespec
5798 and explicit location completions.
5799 (complete_line_internal): Remove all location completer-specific
5800 handling.
5801 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
5802 (find_toplevel_char): Export.
5803 (linespec_parse_line_offset): Export.
5804 Issue error if STRING is not numerical.
5805 (gdb_get_linespec_parser_quote_characters): New function.
5806 * linespec.h (linespec_parse_line_offset): Declare.
5807 (get_gdb_linespec_parser_quote_characters): Declare.
5808 (is_ada_operator): Declare.
5809 (find_toplevel_char): Declare.
5810 (linespec_lexer_lex_keyword): Declare.
5811 * location.c (explicit_to_event_location): New function.
5812 (explicit_location_lex_one): New function.
5813 (string_to_explicit_location): New function.
5814 (string_to_event_location): Handle explicit locations.
5815 * location.h (explicit_to_event_location): Declare.
5816 (string_to_explicit_location): Declare.
5817
5818 2015-08-11 Keith Seitz <keiths@redhat.com>
5819
5820 * break-catch-throw.c (re_set_exception_catchpoint): Convert
5821 linespec into explicit location.
5822 * breakpoint.c (create_overlay_breakpoint)
5823 (create_longjmp_master_breakpoint)
5824 (create_std_terminate_master_breakpoint)
5825 (create_exception_master_breakpoint): Convert linespec into explicit
5826 location.
5827 (update_static_tracepoint): Convert linespec into explicit location.
5828 * linespec.c (enum offset_relative_sign, struct line_offset): Move
5829 location.h.
5830 (struct linespec) <expression, expr_pc, source_filename>
5831 <function_name, label_name, line_offset>: Replace with ...
5832 <explicit>: ... this.
5833 <is_linespec>: New member.
5834 (PARSER_EXPLICIT): New accessor macro.
5835 (undefined_label_error): New function.
5836 (source_file_not_found_error): New function.
5837 (linespec_parse_basic): The parser result is now an explicit location.
5838 Use PARSER_EXPLICIT to access it.
5839 Use undefined_label_error.
5840 (canonicalize_linespec): Convert canonical linespec into explicit
5841 location.
5842 Move string representation of location to explicit_location_to_linespec
5843 and use it and explicit_location_to_string to save string
5844 representations of the canonical location.
5845 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
5846 explicit location. Update all references.
5847 (convert_explicit_location_to_sals): New function.
5848 (parse_linespec): Use PARSER_EXPLICIT to access the parser
5849 result's explicit location.
5850 (linespec_state_constructor): Initialize is_linespec.
5851 Use PARSER_EXPLICIT.
5852 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
5853 result.
5854 (event_location_to_sals): For linespec locations, set is_linespec.
5855 Handle explicit locations.
5856 (decode_objc): 'ls' contains an explicit location now. Update all
5857 references.
5858 (symtabs_from_filename): Use source_file_not_found_error.
5859 * location.c (struct event_location.u) <explicit>: New member.
5860 (initialize_explicit_location): New function.
5861 (initialize_event_location): Initialize explicit locations.
5862 (new_explicit_location, get_explicit_location)
5863 (get_explicit_location_const): New functions.
5864 (explicit_to_string_internal): New function; most of contents moved
5865 from canonicalize_linespec.
5866 (explicit_location_to_string): New function.
5867 (explicit_location_to_linespec): New function.
5868 (copy_event_location, delete_event_location)
5869 (event_location_to_string_const, event_location_empty_p): Handle
5870 explicit locations.
5871 * location.h (enum offset_relative_sign, struct line_offset): Move
5872 here from linespec.h.
5873 (enum event_location_type): Add EXPLICIT_LOCATION.
5874 (struct explicit_location): New structure.
5875 (explicit_location_to_string): Declare.
5876 (explicit_location_to_linespec): Declare.
5877 (new_explicit_location, get_explicit_locationp
5878 (get_explicit_location_const, initialize_explicit_location): Declare.
5879
5880 2015-08-11 Keith Seitz <keiths@redhat.com>
5881
5882 * break-catch-throw.c (re_set_exception_catchpoint): Convert
5883 linespec for stap probe to probe location.
5884 * breakpoint.c (create_longjmp_master_breakpoint)
5885 (create_exception_master_breakpoint): Likewise.
5886 (break_command_1): Remove local variable `arg_cp'.
5887 Check location type to set appropriate breakpoint ops methods.
5888 (trace_command): Likewise.
5889 * linespec.c (event_location_to_sals): Assert on probe locations.
5890 * location.c (EL_PROBE): Add macro definition.
5891 (new_probe_location, get_probe_location): New functions.
5892 (copy_event_location, delete_event_location, event_location_to_string)
5893 (string_to_event_location, event_location_empty_p): Handle probe
5894 locations.
5895 * location.h (enum event_location_type): Add PROBE_LOCATION.
5896 (new_probe_location, get_probe_location): Declare.
5897 * probe.c (parse_probes): Assert that LOCATION is a probe location.
5898 Convert linespec into probe location.
5899
5900 2015-08-11 Keith Seitz <keiths@redhat.com>
5901
5902 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
5903 Convert linespec to address location.
5904 * linespec.c (canonicalize_linespec): Do not handle address
5905 locations here.
5906 (convert_address_location_to_sals): New function; contents moved
5907 from ...
5908 (convert_linespc_to_sals): ... here.
5909 (parse_linespec): Remove address locations from linespec grammar.
5910 Remove handling of address locations.
5911 (linespec_lex_to_end): Remove handling of address linespecs.
5912 (event_location_to_sals): Handle ADDRESS_LOCATION.
5913 (linespec_expression_to_pc): Export.
5914 * linespec.h (linespec_expression_to_pc): Add declaration.
5915 * location.c (struct event_location.u) <address>: New member.
5916 (new_address_location, get_address_location): New functions.
5917 (copy_event_location, delete_event_location, event_location_to_string)
5918 (string_to_event_location, event_location_empty_p): Handle address
5919 locations.
5920 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
5921 (new_address_location, get_address_location): Declare.
5922 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
5923 to address location.
5924 * spu-tdep.c (spu_catch_start): Likewise.
5925
5926 2015-08-11 Keith Seitz <keiths@redhat.com>
5927
5928 * ax-gdb.c: Include location.h.
5929 (agent_command_1) Use linespec location instead of address
5930 string.
5931 * break-catch-throw.c: Include location.h.
5932 (re_set_exception_catchpoint): Use linespec locations instead
5933 of address strings.
5934 * breakpoint.c: Include location.h.
5935 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
5936 (create_std_terminate_master_breakpoint)
5937 (create_exception_master_breakpoint, update_breakpoints_after_exec):
5938 Use linespec location instead of address string.
5939 (print_breakpoint_location): Use locations and
5940 event_location_to_string.
5941 Print extra_string for pending locations for non-MI streams.
5942 (print_one_breakpoint_location): Use locations and
5943 event_location_to_string.
5944 (init_raw_breakpoint_without_location): Initialize b->location.
5945 (create_thread_event_breakpoint): Use linespec location instead of
5946 address string.
5947 (init_breakpoint_sal): Likewise.
5948 Only save extra_string if it is non-NULL and not the empty string.
5949 Use event_location_to_string instead of `addr_string'.
5950 Constify `p' and `endp'.
5951 Use skip_spaces_const/skip_space_const instead of non-const versions.
5952 Copy the location into the breakpoint.
5953 If LOCATION is NULL, save the breakpoint address as a linespec location
5954 instead of an address string.
5955 (create_breakpoint_sal): Change `addr_string' parameter to a struct
5956 event_location. All uses updated.
5957 (create_breakpoints_sal): Likewise for local variable `addr_string'.
5958 (parse_breakpoint_sals): Use locations instead of address strings.
5959 Remove check for empty linespec with conditional.
5960 Refactor.
5961 (decode_static_tracepoint_spec): Make argument const and update
5962 function.
5963 (create_breakpoint): Change `arg' to a struct event_location and
5964 rename.
5965 Remove `copy_arg' and `addr_start'.
5966 If EXTRA_STRING is empty, set it to NULL.
5967 Don't populate `canonical' for pending breakpoints.
5968 Pass `extra_string' to find_condition_and_thread.
5969 Clear `extra_string' if `rest' was NULL.
5970 Do not error with "garbage after location" if setting a dprintf
5971 breakpoint.
5972 Copy the location into the breakpoint instead of an address string.
5973 (break_command_1): Use string_to_event_location and pass this to
5974 create_breakpoint instead of an address string.
5975 Check against `arg_cp' for a probe linespec.
5976 (dprintf_command): Use string_to_event_location and pass this to
5977 create_breakpoint instead of an address string.
5978 Throw an exception if no format string was specified.
5979 (print_recreate_ranged_breakpoint): Use event_location_to_string
5980 instead of address strings.
5981 (break_range_command, until_break_command)
5982 (init_ada_exception_breakpoint): Use locations instead
5983 of address strings.
5984 (say_where): Print out extra_string for pending locations.
5985 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
5986 the breakpoint.
5987 (base_breakpoint_create_sals_from_location): Use struct event_location
5988 instead of address string.
5989 Remove `addr_start' and `copy_arg' parameters.
5990 (base_breakpoint_decode_location): Use struct event_location instead of
5991 address string.
5992 (bkpt_re_set): Use locations instead of address strings.
5993 Use event_location_empty_p to check for unset location.
5994 (bkpt_print_recreate): Use event_location_to_string instead of
5995 an address string.
5996 Print out extra_string for pending locations.
5997 (bkpt_create_sals_from_location, bkpt_decode_location)
5998 (bkpt_probe_create_sals_from_location): Use struct event_location
5999 instead of address string.
6000 (bkpt_probe_decode_location): Use struct event_location instead of
6001 address string.
6002 (tracepoint_print_recreate): Use event_location_to_string to
6003 recreate the tracepoint.
6004 (tracepoint_create_sals_from_location, tracepoint_decode_location)
6005 (tracepoint_probe_create_sals_from_location)
6006 (tracepoint_probe_decode_location): Use struct event_location
6007 instead of address string.
6008 (dprintf_print_recreate): Use event_location_to_string to recreate
6009 the dprintf.
6010 (dprintf_re_set): Remove check for valid/missing format string.
6011 (strace_marker_create_sals_from_location)
6012 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
6013 (update_static_tracepoint): Use struct event_location instead of
6014 address string.
6015 (location_to_sals): Likewise.
6016 Pass `extra_string' to find_condition_and_thread.
6017 For newly resolved pending breakpoint locations, clear the location's
6018 string representation.
6019 Assert that the breakpoint's condition string is NULL when
6020 condition_not_parsed.
6021 (breakpoint_re_set_default, create_sals_from_location_default)
6022 (decode_location_default, trace_command, ftrace_command)
6023 (strace_command, create_tracepoint_from_upload): Use locations
6024 instead of address strings.
6025 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
6026 Use struct event_location instead of address string.
6027 Update all uses.
6028 <decode_location>: Likewise.
6029 (struct breakpoint) <addr_string>: Change to struct event_location
6030 and rename `location'.
6031 <addr_string_range_end>: Change to struct event_location and rename
6032 `location_range_end'.
6033 (create_breakpoint): Use struct event_location instead of address
6034 string.
6035 * cli/cli-cmds.c: Include location.h.
6036 (edit_command, list_command): Use locations instead of address strings.
6037 * elfread.c: Include location.h.
6038 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
6039 * guile/scm-breakpoint.c: Include location.h.
6040 (bpscm_print_breakpoint_smob): Use event_location_to_string.
6041 (gdbscm_register_breakpoint): Use locations instead of address
6042 strings.
6043 * linespec.c: Include location.h.
6044 (struct ls_parser) <stream>: Change to const char *.
6045 (PARSER_STREAM): Update.
6046 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
6047 keywords must be followed by whitespace.
6048 (canonicalize_linespec): Save a linespec location into `canonical'.
6049 Save a canonical linespec into `canonical'.
6050 (parse_linespec): Change `argptr' to const char * and rename `arg'.
6051 All uses updated.
6052 Update function description.
6053 (linespec_parser_new): Initialize `parser'.
6054 Update initialization of parsing stream.
6055 (event_location_to_sals): New function.
6056 (decode_line_full): Change `argptr' to a struct event_location and
6057 rename it `location'.
6058 Use locations instead of address strings.
6059 Call event_location_to_sals instead of parse_linespec.
6060 (decode_line_1): Likewise.
6061 (decode_line_with_current_source, decode_line_with_last_displayed)
6062 Use locations instead of address strings.
6063 (decode_objc): Likewise.
6064 Change `argptr' to const char * and rename `arg'.
6065 (destroy_linespec_result): Delete the linespec result's location
6066 instead of freeing the address string.
6067 * linespec.h (struct linespec_result) <addr_string>: Change to
6068 struct event_location and rename to ...
6069 <location>: ... this.
6070 (decode_line_1, decode_line_full): Change `argptr' to struct
6071 event_location. All callers updated.
6072 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
6073 (mi_cmd_break_insert_1): Use locations instead of address strings.
6074 Throw an error if there was "garbage" at the end of the specified
6075 linespec.
6076 * probe.c: Include location.h.
6077 (parse_probes): Change `argptr' to struct event_location.
6078 Use event locations instead of address strings.
6079 * probe.h (parse_probes): Change `argptr' to struct event_location.
6080 * python/py-breakpoint.c: Include location.h.
6081 (bppy_get_location): Constify local variable `str'.
6082 Use event_location_to_string.
6083 (bppy_init): Use locations instead of address strings.
6084 * python/py-finishbreakpoint.c: Include location.h.
6085 (bpfinishpy_init): Remove local variable `addr_str'.
6086 Use locations instead of address strings.
6087 * python/python.c: Include location.h.
6088 (gdbpy_decode_line): Use locations instead of address strings.
6089 * remote.c: Include location.h.
6090 (remote_download_tracepoint): Use locations instead of address
6091 strings.
6092 * spu-tdep.c: Include location.h.
6093 (spu_catch_start): Remove local variable `buf'.
6094 Use locations instead of address strings.
6095 * tracepoint.c: Include location.h.
6096 (scope_info): Use locations instead of address strings.
6097 (encode_source_string): Constify parameter `src'.
6098 * tracepoint.h (encode_source_string): Likewise.
6099
6100 2015-08-11 Keith Seitz <keiths@redhat.com>
6101
6102 * Makefile.in (SFILES): Add location.c.
6103 (HFILES_NO_SRCDIR): Add location.h.
6104 (COMMON_OBS): Add location.o.
6105 * linespec.c (linespec_lex_to_end): New function.
6106 * linespec.h (linespec_lex_to_end): Declare.
6107 * location.c: New file.
6108 * location.h: New file.
6109
6110 2015-08-11 Keith Seitz <keiths@redhat.com>
6111
6112 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
6113 Renamed to create_sals_from_location.
6114 <decode_linespec>: Renamed to decode_location.
6115 Update all callers.
6116 * breakpoint.c (create_sals_from_address_default): Renamed to ...
6117 (create_sals_from_location_default): ... this.
6118 (addr_string_to_sals): Renamed to ...
6119 (location_to_sals): ... this.
6120 (decode_linespec_default): Renamed to ...
6121 (decode_location_default): ... this.
6122 (base_breakpoint_create_sals_from_address): Renamed to ...
6123 (base_breakpoint_create_sals_from_location): ... this.
6124 (bkpt_create_sals_from_address): Renamed to ...
6125 (bkpt_create_sals_from_location): ... this.
6126 (bkpt_decode_linespec): Renamed to ...
6127 (bkpt_decode_location): ... this.
6128 (bkpt_probe_create_sals_from_address): Renamed to ...
6129 (bkpt_probe_create_sals_from_location): ... this.
6130 (tracepoint_create_sals_from_address): Renamed to ...
6131 (tracepoint_create_sals_from_location): ... this.
6132 (tracepoint_decode_linespec): Renamed to ...
6133 (tracepoint_decode_location): ... this.
6134 (tracepoint_probe_create_sals_from_address): Renamed to ...
6135 (tracepoint_probe_create_sals_from_location): ... this.
6136 (tracepoint_probe_decode_linespec): Renamed to ...
6137 (tracepoint_probe_decode_location): ... this.
6138 (strace_marker_create_sals_from_address): Renamed to ...
6139 (strace_marker_create_sals_from_location): ... this.
6140 (decode_linespec_default): Renamed to ...
6141 (decode_location_default): ... this.
6142
6143 2015-08-10 Doug Evans <dje@google.com>
6144 Keith Seitz <keiths@redhat.com>
6145
6146 PR gdb/17960
6147 * symtab.c (make_file_symbol_completion_list_1): Renamed from
6148 make_file_symbol_completion_list and made static.
6149 (make_file_symbol_completion_list): New function.
6150
6151 2015-08-10 Joel Brobecker <brobecker@adacore.com>
6152
6153 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
6154 trailing new-line at end of warning message.
6155 (proceed): Add i18n marker to error messages.
6156
6157 2015-08-07 Pedro Alves <palves@redhat.com>
6158
6159 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
6160
6161 2015-08-07 Pedro Alves <palves@redhat.com>
6162
6163 * s390-linux-tdep.c (is_non_branch_ril)
6164 (s390_displaced_step_copy_insn): New functions.
6165 (s390_displaced_step_fixup): Update comment.
6166 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
6167 gdbarch_displaced_step_copy_insn hook.
6168
6169 2015-08-07 Pedro Alves <palves@redhat.com>
6170
6171 * infrun.c (displaced_step_prepare_throw): Return -1 if
6172 gdbarch_displaced_step_copy_insn returns NULL. Update intro
6173 comment.
6174 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
6175 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
6176 in file.
6177 (ppc_displaced_step_copy_insn): New function.
6178 (ppc_displaced_step_fixup): Update comment.
6179 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
6180 gdbarch_displaced_step_copy_insn hook.
6181 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
6182 NULL return.
6183 * gdbarch.h: Regenerate.
6184
6185 2015-08-07 Pedro Alves <palves@redhat.com>
6186
6187 * inferior.h (struct inferior) <displaced_stepping_failed>: New
6188 field.
6189 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
6190 Return false if dispaced stepping failed before.
6191 (resume): Pass the current inferior to
6192 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
6193 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
6194 displaced_stepping_failed flag, and fall back to an in-line
6195 step-over.
6196
6197 2015-08-07 Pedro Alves <palves@redhat.com>
6198
6199 * darwin-nat.c (darwin_stop): Rename to ...
6200 (darwin_interrupt): ... this.
6201 (_initialize_darwin_inferior): Adjust.
6202 * gnu-nat.c (gnu_stop): Delete.
6203 (gnu_target): Don't install gnu_stop.
6204 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
6205 (inf_ptrace_interrupt): ... this.
6206 (inf_ptrace_target): Adjust.
6207 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
6208 target_stop.
6209 * linux-nat (linux_nat_stop): Rename to ...
6210 (linux_nat_interrupt): ... this.
6211 (linux_nat_stop): Reimplement.
6212 (linux_nat_add_target): Install linux_nat_interrupt.
6213 * nto-procfs.c (nto_interrupt_twice): Rename to ...
6214 (nto_handle_sigint_twice): ... this.
6215 (nto_interrupt): Rename to ...
6216 (nto_handle_sigint): ... this. Call target_interrupt instead of
6217 target_stop.
6218 (procfs_wait): Adjust.
6219 (procfs_stop): Rename to ...
6220 (procfs_interrupt): ... this.
6221 (init_procfs_targets): Adjust.
6222 * procfs.c (procfs_stop): Rename to ...
6223 (procfs_interrupt): ... this.
6224 (procfs_target): Adjust.
6225 * remote-m32r-sdi.c (m32r_stop): Rename to ...
6226 (m32r_interrupt): ... this.
6227 (init_m32r_ops): Adjust.
6228 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
6229 (gdbsim_interrupt_inferior): ... this.
6230 (gdbsim_stop): Rename to ...
6231 (gdbsim_interrupt): ... this.
6232 (gdbsim_cntrl_c): Adjust.
6233 (init_gdbsim_ops): Adjust.
6234 * remote.c (sync_remote_interrupt): Adjust comments.
6235 (remote_stop_as): Rename to ...
6236 (remote_interrupt_as): ... this.
6237 (remote_stop): Adjust comment.
6238 (remote_interrupt): New function.
6239 (init_remote_ops): Install remote_interrupt.
6240 * target.c (target_interrupt): New function.
6241 * target.h (struct target_ops) <to_interrupt>: New field.
6242 (target_interrupt): New declaration.
6243 * windows-nat.c (windows_stop): Rename to ...
6244 (windows_interrupt): ... this.
6245 * target-delegates.c: Regenerate.
6246
6247 2015-08-07 Pedro Alves <palves@redhat.com>
6248
6249 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
6250 threads" as alternative to "switching back to stepped thread".
6251
6252 2015-08-07 Pedro Alves <palves@redhat.com>
6253
6254 * NEWS: Mention "maint set/show target-non-stop".
6255 * breakpoint.c (update_global_location_list): Check
6256 target_is_non_stop_p instead of non_stop.
6257 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
6258 * infrun.c (show_can_use_displaced_stepping)
6259 (can_use_displaced_stepping_p, start_step_over_inferior):
6260 Likewise.
6261 (internal_resume_ptid): New function.
6262 (resume): Use it.
6263 (proceed): Check target_is_non_stop_p instead of non_stop. If in
6264 all-stop mode but the target is always in non-stop mode, start all
6265 the other threads that are implicitly resumed too.
6266 (for_each_just_stopped_thread, fetch_inferior_event)
6267 (adjust_pc_after_break, stop_all_threads): Check
6268 target_is_non_stop_p instead of non_stop.
6269 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
6270 with the target always in non-stop mode.
6271 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
6272 instead of non_stop.
6273 (switch_back_to_stepped_thread): Check target_is_non_stop_p
6274 instead of non_stop.
6275 (keep_going_stepped_thread): Use internal_resume_ptid.
6276 (stop_waiting): If in all-stop mode, and the target is in non-stop
6277 mode, stop all threads.
6278 (keep_going_pass): Likewise, when starting a new in-line step-over
6279 sequence.
6280 * linux-nat.c (get_pending_status, select_event_lwp)
6281 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
6282 target_is_non_stop_p instead of non_stop.
6283 (linux_nat_always_non_stop_p): New function.
6284 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
6285 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
6286 * target-delegates.c: Regenerate.
6287 * target.c (target_is_non_stop_p): New function.
6288 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
6289 (maint_set_target_non_stop_command)
6290 (maint_show_target_non_stop_command): New functions.
6291 (_initilize_target): Install "maint set/show target-non-stop"
6292 commands.
6293 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
6294 (target_non_stop_enabled): New declaration.
6295 (target_is_non_stop_p): New declaration.
6296
6297 2015-08-07 Pedro Alves <pedro@codesourcery.com>
6298
6299 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
6300 has a pending status, return true.
6301 * gdbthread.h: Include target/waitstatus.h.
6302 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
6303 stop_pc>: New fields.
6304 (struct thread_info) <resumed>: New field.
6305 (set_resumed): Declare.
6306 * infrun.c: Include "event-loop.h".
6307 (infrun_async_inferior_event_token, infrun_is_async): New globals.
6308 (infrun_async): New function.
6309 (clear_step_over_info): Add debug output.
6310 (displaced_step_in_progress_any_inferior): New function.
6311 (displaced_step_fixup): New returns int.
6312 (start_step_over): Handle in-line step-overs too. Assert the
6313 thread is marked resumed.
6314 (resume_cleanups): Clear the thread's resumed flag.
6315 (resume): Set the thread's resumed flag. Return early if the
6316 thread has a pending status. Allow stepping a breakpoint with no
6317 signal.
6318 (proceed): Adjust to check 'resumed' instead of 'executing'.
6319 (clear_proceed_status_thread): If the thread has a pending status,
6320 and that status is a finished step, discard the pending status.
6321 (clear_proceed_status): Don't clear step_over_info here.
6322 (random_pending_event_thread, do_target_wait): New functions.
6323 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
6324 do_target_wait.
6325 (wait_one): New function.
6326 (THREAD_STOPPED_BY): New macro.
6327 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6328 (thread_stopped_by_hw_breakpoint): New functions.
6329 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
6330 functions.
6331 (handle_inferior_event): Also call set_resumed(false) on all
6332 threads implicitly stopped by the event.
6333 (restart_threads, resumed_thread_with_pending_status): New
6334 functions.
6335 (finish_step_over): If we were doing an in-line step-over before,
6336 and no longer are after trying to start a new step-over, restart
6337 all threads. If we have multiple threads with pending events,
6338 save the current event and go through the event loop again.
6339 (handle_signal_stop): Return early if finish_step_over returns
6340 false.
6341 <random signal>: If we get a signal while stepping over a
6342 breakpoint in-line in non-stop mode, restart all threads. Clear
6343 step_over_info before delivering the signal.
6344 (keep_going_stepped_thread): Use internal_error instead of
6345 gdb_assert. Mark the thread as resumed.
6346 (keep_going_pass_signal): Assert the thread isn't already resumed.
6347 If some other thread is doing an in-line step-over, defer the
6348 resume. If we just started a new in-line step-over, stop all
6349 threads. Don't clear step_over_info.
6350 (infrun_async_inferior_event_handler): New function.
6351 (_initialize_infrun): Create async event handler with
6352 infrun_async_inferior_event_handler as callback.
6353 (infrun_async): New declaration.
6354 * target.c (target_async): New function.
6355 * target.h (target_async): Declare macro and readd as function
6356 declaration.
6357 * target/waitstatus.h (enum target_stop_reason)
6358 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
6359 * thread.c (new_thread): Clear the new waitstatus field.
6360 (set_resumed): New function.
6361
6362 2015-08-07 Pedro Alves <palves@redhat.com>
6363
6364 * infrun.c (keep_going_stepped_thread): New function, factored out
6365 from ...
6366 (switch_back_to_stepped_thread): ... here.
6367
6368 2015-08-07 Pedro Alves <palves@redhat.com>
6369
6370 * infrun.c (currently_stepping): Extend intro comment.
6371 * target.h (target_resume): Extend intro comment.
6372
6373 2015-08-07 Pedro Alves <palves@redhat.com>
6374
6375 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
6376 of inferior_ptid. If the stepped thread vanished, return 0
6377 instead of resuming here. Use reset_ecs. Print the prev_pc and
6378 the current stop_pc in log message. Clear trap_expected if the
6379 thread advanced. Don't pass currently_stepping to
6380 do_target_resume.
6381
6382 2015-08-07 Pedro Alves <palves@redhat.com>
6383
6384 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
6385 * infrun.c (struct execution_control_state): Move higher up in the
6386 file.
6387 (reset_ecs): New function.
6388 (start_step_over): Now returns int. Rewrite to use
6389 keep_going_pass_signal instead of manually starting a displaced step.
6390 (resume): Don't call set_running here. If displaced stepping
6391 can't start now, clear trap_expected.
6392 (find_thread_needs_step_over): Delete function.
6393 (proceed): Set up finish_thread_state_cleanup. Call set_running.
6394 If the current thread needs a step over, push it in the step-over
6395 chain. Don't set insert breakpoints nor call resume directly
6396 here. Instead rewrite to use start_step_over and
6397 keep_going_pass_signal.
6398 (finish_step_over): New function.
6399 (handle_signal_stop): Call finish_step_over instead of
6400 start_step_over.
6401 (switch_back_to_stepped_thread): If the event thread needs another
6402 step-over do that first. Use start_step_over.
6403 (keep_going_pass_signal): New function, factored out from ...
6404 (keep_going): ... here.
6405 (_initialize_infrun): Comment moved here.
6406 * thread.c (set_running_thread): New function.
6407 (set_running, finish_thread_state): Use set_running_thread.
6408
6409 2015-08-07 Pedro Alves <palves@redhat.com>
6410
6411 * gdbthread.h (struct thread_info) <step_over_prev,
6412 step_over_next>: New fields.
6413 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
6414 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
6415 declarations.
6416 * infrun.c (struct displaced_step_request): Delete.
6417 (struct displaced_step_inferior_state) <step_request_queue>:
6418 Delete field.
6419 (displaced_step_prepare): Assert that trap_expected is set. Use
6420 thread_step_over_chain_enqueue. Split starting a new displaced
6421 step to ...
6422 (start_step_over): ... this new function.
6423 (resume): Assert the thread isn't waiting for a step over already.
6424 (proceed): Assert the thread isn't waiting for a step over
6425 already.
6426 (infrun_thread_stop_requested): Adjust to remove threads from the
6427 embedded step-over chain.
6428 (handle_inferior_event) <fork/vfork>: Call start_step_over after
6429 displaced_step_fixup.
6430 (handle_signal_stop): Call start_step_over after
6431 displaced_step_fixup.
6432 * infrun.h (step_over_queue_head): New declaration.
6433 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
6434 (thread_step_over_chain_next, thread_is_in_step_over_chain)
6435 (thread_step_over_chain_enqueue)
6436 (thread_step_over_chain_remove): New functions.
6437 (delete_thread_1): Remove thread from the step-over chain.
6438
6439 2015-08-07 Pedro Alves <palves@redhat.com>
6440
6441 * infrun.c (thread_still_needs_step_over): Rename to ...
6442 (thread_still_needs_step_over_bp): ... this.
6443 (enum step_over_what): New.
6444 (thread_still_needs_step_over): Reimplement.
6445
6446 2015-08-07 Pedro Alves <palves@redhat.com>
6447
6448 * remote.c (remote_wait_as): If not waiting for a stop reply,
6449 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
6450 requested, don't block waiting forever.
6451
6452 2015-08-07 Pedro Alves <pedro@codesourcery.com>
6453
6454 * infrun.c (adjust_pc_after_break): Now takes thread_info and
6455 waitstatus pointers instead of an ecs. Adjust.
6456 (handle_inferior_event): Adjust caller.
6457
6458 2015-08-07 Pedro Alves <palves@redhat.com>
6459
6460 * infrun.c (handle_inferior_event): If we get
6461 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
6462 mode, mark all threads of the exiting process as not-executing.
6463 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
6464 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
6465 exiting process, if inferior_ptid still points at a process.
6466 * thread.c (struct current_thread_cleanup) <next>: New field.
6467 (current_thread_cleanup_chain): New global.
6468 (restore_current_thread_ptid_changed): New function.
6469 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
6470 current_thread_cleanup_chain list.
6471 (make_cleanup_restore_current_thread): Add the cleanup data to the
6472 current_thread_cleanup_chain list.
6473 (_initialize_thread): Install restore_current_thread_ptid_changed
6474 as thread_ptid_changed observer.
6475
6476 2015-08-07 Joel Brobecker <brobecker@adacore.com>
6477
6478 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
6479 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
6480 smaller than expected.
6481
6482 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
6483
6484 * stack.c (get_frame_language): Moved ...
6485 * frame.c (get_frame_language): ... to here.
6486 * language.h (get_frame_language): Declaration moved to frame.h.
6487 * frame.h: Add language.h include, for language enum.
6488 (get_frame_language): Declaration moved from language.h.
6489 * language.c: Add frame.h include.
6490 * top.c: Add frame.h include.
6491 * symtab.h (struct obj_section): Declare.
6492 (struct cmd_list_element): Declare.
6493
6494 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
6495
6496 * language.c (show_language_command): Find selected frame before
6497 asking for the language of that frame.
6498 (set_language_command): Likewise.
6499 * language.h (get_frame_language): Add frame parameter.
6500 * stack.c (get_frame_language): Add frame parameter, assert
6501 parameter is not NULL, update comment and reindent.
6502 * top.c (check_frame_language_change): Pass the selected frame
6503 into get_frame_language.
6504
6505 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
6506
6507 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
6508 (pt_btrace_insn_flags): New.
6509 (ftrace_add_pt): Call pt_btrace_insn_flags.
6510 * btrace.h (btrace_insn_flag): New.
6511 (btrace_insn) <flags>: New.
6512 * record-btrace.c (btrace_insn_history): Print insn prefix.
6513 * NEWS: Announce it.
6514
6515 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
6516
6517 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
6518 * configure: Regenerate.
6519
6520 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
6521
6522 * Makefile.in (LIBICONV): Define.
6523 (CLIBS): Add LIBICONV.
6524 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
6525 * configure: Regenerate.
6526
6527 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
6528 Pedro Alves <palves@redhat.com>
6529
6530 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
6531 (arm_set_abi): Likewise.
6532 * ax-general.c (ax_print): Likewise.
6533 * c-exp.y (exp : string_exp): Likewise.
6534 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
6535 (do_compile_dwarf_expr_to_c): Likewise.
6536 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
6537 Likewise.
6538 * dwarf2expr.c (execute_stack_op): Likewise.
6539 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
6540 (disassemble_dwarf_expression): Likewise.
6541 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
6542 (read_array_order): Likewise.
6543 (abbrev_table_read_table): Likewise.
6544 (read_attribute_value): Likewise.
6545 (skip_unknown_opcode): Likewise.
6546 (dwarf_decode_macro_bytes): Likewise.
6547 (dwarf_decode_macros): Likewise.
6548 * eval.c (value_f90_subarray): Likewise.
6549 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
6550 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
6551 * infrun.c (handle_command): Likewise.
6552 * memory-map.c (memory_map_start_memory): Likewise.
6553 * osabi.c (set_osabi): Likewise.
6554 * parse.c (operator_length_standard): Likewise.
6555 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
6556 single return point.
6557 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6558 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6559 (gdbpy_lookup_global_symbol): Likewise.
6560 * record-full.c (record_full_restore): Likewise.
6561 * regcache.c (regcache_register_status): Likewise.
6562 (regcache_raw_read): Likewise.
6563 (regcache_cooked_read): Likewise.
6564 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
6565 * symtab.c (initialize_ordinary_address_classes): Likewise.
6566 * target-debug.h (target_debug_print_signals): Likewise.
6567 * utils.c (do_restore_current_language): Likewise.
6568
6569 2015-08-06 Clem Dickey <clemd@acm.org>
6570
6571 PR python/17136
6572 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
6573
6574 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
6575
6576 * complaints.c (enum complaint_series): Add newlines and remove
6577 out of date comment.
6578 (struct complaints) <series>: Change type to enum
6579 complaint_series and remove out of date comment.
6580 (symfile_complaint_hook): Use equivalent enum value
6581 ISOLATED_MESSAGE instead of 0.
6582
6583 2015-08-06 Pedro Alves <palves@redhat.com>
6584
6585 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
6586 returned > 0.
6587
6588 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
6589
6590 * common/agent.c (symbol_list) <required>: Remove.
6591
6592 2015-08-06 Pedro Alves <palves@redhat.com>
6593
6594 * target/waitstatus.h (enum target_stop_reason)
6595 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
6596
6597 2015-08-05 Pedro Alves <palves@redhat.com>
6598 Joel Brobecker <brobecker@adacore.com>
6599
6600 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
6601 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
6602 case where BS->STOP is not set.
6603
6604 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
6605
6606 * nat/gdb_thread_db.h: Add copyright header.
6607 Protect against multiple inclusion.
6608
6609 2015-08-05 Yao Qi <yao.qi@linaro.org>
6610
6611 * aarch64-linux-nat.c (get_thread_id): Remove.
6612 (debug_reg_change_callback): Call ptid_get_lwp instead of
6613 get_thread_id.
6614 (fetch_gregs_from_thread): Likewise.
6615 (store_gregs_to_thread): Likewise.
6616 (fetch_fpregs_from_thread): Likewise.
6617 (store_fpregs_to_thread): Likewise.
6618 (aarch64_linux_get_debug_reg_capacity): Likewise.
6619 * arm-linux-nat.c (get_thread_id): Remove.
6620 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
6621 * xtensa-linux-nat.c (get_thread_id): Remove.
6622 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
6623 * arm-linux-nat.c (get_thread_id): Remove.
6624 (GET_THREAD_ID): Remove.
6625 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
6626 (store_fpregs, fetch_regs, store_regs): Likewise.
6627 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
6628 (fetch_vfp_regs, store_vfp_regs): Likewise.
6629 (arm_linux_read_description): Likewise.
6630 (arm_linux_get_hwbp_cap): Likewise.
6631 * xtensa-linux-nat.c (get_thread_id): Remove.
6632 (GET_THREAD_ID): Remove.
6633 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
6634 GET_THREAD_ID.
6635
6636 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
6637
6638 * python/py-linetable.c: Fix case of Linetable to LineTable
6639 in docstrings and code comments.
6640 * python/py-symtab.c: Same.
6641
6642 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6643
6644 * infcmd.c (signal_command): Call do_cleanups for args_chain.
6645
6646 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6647
6648 PR gdb/18767
6649 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
6650 use.
6651
6652 2015-08-04 Pedro Alves <palves@redhat.com>
6653
6654 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
6655 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
6656 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
6657 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
6658 (td_thr_validate_ftype, td_thr_get_info_ftype)
6659 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
6660 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
6661 New typedefs.
6662 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
6663 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
6664 local macros and use them instead of verbose_dlsym and dlsym
6665 calls.
6666
6667 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
6668
6669 * nios2-tdep.h: Include opcode/nios2.h here.
6670 (NIOS2_CDX_OPCODE_SIZE): New.
6671 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
6672 * nios2-tdep.c: Don't include opcode/nios2.h here.
6673 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
6674 4-byte read fails.
6675 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
6676 (nios2_match_addi, nios2_match_orhi): Likewise.
6677 (nios2_match_stw, nios2_match_ldw): Likewise.
6678 (nios2_match_rdctl): Likewise.
6679 (nios2_match_stwm, nios2_match_ldwm): New.
6680 (nios2_match_branch): Add cases for R2 encodings.
6681 (nios2_match_jmpi, nios2_match_calli): Likewise.
6682 (nios2_match_jmpr, nios2_match_callr): Likewise.
6683 (nios2_match_break, nios2_match_trap): Likewise.
6684 (nios2_in_epilogue_p): Add R2 support.
6685 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
6686 prologues.
6687 (nios2_breakpoint_from_pc): Handle R2 instructions.
6688 (nios2_get_next_pc): Likewise. Adjust call to
6689 tdep->syscall_next_pc.
6690 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
6691 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
6692 instruction field macros instead of literal hex values.
6693 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
6694 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
6695 Use size field from OP instead of assuming all instructions
6696 are the same size.
6697 (nios2_linux_init_abi): Register appropriate unwinder for mach.
6698
6699 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
6700
6701 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
6702 variable warning with some compilers.
6703
6704 2015-08-03 Yao Qi <yao.qi@linaro.org>
6705
6706 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
6707 in comment. Replace "rw" with "type".
6708 (arm_linux_remove_watchpoint): Change type of "rw" to
6709 "enum target_hw_bp_type".
6710
6711 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
6712
6713 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
6714 lookup_symbol.
6715 * ft32-tdep.c (ft32_skip_prologue): Likewise.
6716 * moxie-tdep.c (moxie_skip_prologue): Likewise.
6717 * mt-tdep.c (mt_skip_prologue): Likewise.
6718 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
6719
6720 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
6721
6722 * ada-exp.y (write_object_renaming): Replace struct
6723 ada_symbol_info with struct block_symbol. Update field
6724 references accordingly.
6725 (block_lookup, select_possible_type_sym): Likewise.
6726 (find_primitive_type): Likewise. Also update call to
6727 ada_lookup_symbol to extract the symbol itself.
6728 (write_var_or_type, write_name_assoc): Likewise.
6729 * ada-lang.h (struct ada_symbol_info): Remove.
6730 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
6731 struct block_symbol.
6732 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
6733 (ada_lookup_symbol): Return struct block_symbol instead of a
6734 mere symbol.
6735 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
6736 with struct block_symbol.
6737 (resolve_subexp, ada_resolve_function, sort_choices,
6738 user_select_syms, is_nonfunction, add_defn_to_vec,
6739 num_defns_collected, defns_collected,
6740 symbols_are_identical_enums, remove_extra_symbols,
6741 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
6742 ada_lookup_symbol_list, ada_iterate_over_symbols,
6743 ada_lookup_encoded_symbol, get_var_value): Likewise.
6744 (ada_lookup_symbol): Return a block_symbol instead of a mere
6745 symbol. Replace struct ada_symbol_info with struct
6746 block_symbol.
6747 (ada_lookup_symbol_nonlocal): Likewise.
6748 (standard_lookup): Make block passing explicit through
6749 lookup_symbol_in_language.
6750 * ada-tasks.c (get_tcb_types_info): Update the calls to
6751 lookup_symbol_in_language to extract the mere symbol out of the
6752 returned value.
6753 (ada_tasks_inferior_data_sniffer): Likewise.
6754 * ax-gdb.c (gen_static_field): Likewise for the call to
6755 lookup_symbol.
6756 (gen_maybe_namespace_elt): Deal with struct block_symbol from
6757 lookup functions.
6758 (gen_expr): Likewise.
6759 * c-exp.y: Likewise. Remove uses of block_found.
6760 (lex_one_token, classify_inner_name, c_print_token): Likewise.
6761 (classify_name): Likewise. Rename the "sym" local variable to
6762 "bsym".
6763 * c-valprint.c (print_unpacked_pointer): Likewise.
6764 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
6765 "sym" parameter from struct symbol * to struct block_symbol.
6766 Use it to remove uses of block_found. Deal with struct
6767 block_symbol from lookup functions.
6768 (gcc_convert_symbol): Likewise. Update the call to
6769 convert_symbol_sym.
6770 * compile/compile-object-load.c (compile_object_load): Deal with
6771 struct block_symbol from lookup functions.
6772 * cp-namespace.c (cp_lookup_nested_symbol_1,
6773 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
6774 cp_search_static_and_baseclasses,
6775 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
6776 cp_lookup_symbol_imports_or_template,
6777 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
6778 lookup_namespace_scope, cp_lookup_nonlocal,
6779 find_symbol_in_baseclass): Return struct block_symbol instead of
6780 mere symbols and deal with struct block_symbol from lookup
6781 functions.
6782 * cp-support.c (inspect_type, replace_typedefs,
6783 cp_lookup_rtti_type): Deal with struct block_symbol from
6784 lookup functions.
6785 * cp-support.h (cp_lookup_symbol_nonlocal,
6786 cp_lookup_symbol_from_namespace,
6787 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
6788 Return struct block_symbol instead of mere symbols.
6789 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
6790 push_module_name):
6791 Deal with struct block_symbol from lookup functions. Remove
6792 uses of block_found.
6793 * eval.c (evaluate_subexp_standard): Update call to
6794 cp_lookup_symbol_namespace.
6795 * f-exp.y: Deal with struct block_symbol from lookup functions.
6796 Remove uses of block_found.
6797 (yylex): Likewise.
6798 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
6799 lookup_enum, lookup_template_type, check_typedef): Deal with
6800 struct block_symbol from lookup functions.
6801 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
6802 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
6803 (gdbscm_lookup_global_symbol): Likewise.
6804 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
6805 * go-exp.y: Likewise. Remove uses of block_found.
6806 (package_name_p, classify_packaged_name, classify_name):
6807 Likewise.
6808 * infrun.c (insert_exception_resume_breakpoint): Likewise.
6809 * jv-exp.y (push_variable): Likewise.
6810 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
6811 * language.c (language_bool_type): Likewise.
6812 * language.h (struct language_defn): Update
6813 la_lookup_symbol_nonlocal to return a struct block_symbol rather
6814 than a mere symbol.
6815 * linespec.c (find_label_symbols): Deal with struct block_symbol
6816 from lookup functions.
6817 * m2-exp.y: Likewise. Remove uses of block_found.
6818 (yylex): Likewise.
6819 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6820 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
6821 * p-exp.y: Likewise. Remove uses of block_found.
6822 (yylex): Likewise.
6823 * p-valprint.c (pascal_val_print): Likewise.
6824 * parse.c (write_dollar_variable): Likewise. Remove uses of
6825 block_found.
6826 * parser-defs.h (struct symtoken): Turn the SYM field into a
6827 struct block_symbol.
6828 * printcmd.c (address_info): Deal with struct block_symbol from
6829 lookup functions.
6830 * python/py-frame.c (frapy_read_var): Likewise.
6831 * python/py-symbol.c (gdbpy_lookup_symbol,
6832 gdbpy_lookup_global_symbol): Likewise.
6833 * skip.c (skip_function_command): Likewise.
6834 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
6835 block_symbol instead of a mere symbol.
6836 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
6837 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
6838 * solib.c (solib_global_lookup): Likewise.
6839 * solist.h (solib_global_lookup): Likewise.
6840 (struct target_so_ops): Update lookup_lib_global_symbol to
6841 return a struct block_symbol rather than a mere symbol.
6842 * source.c (select_source_symtab): Deal with struct block_symbol
6843 from lookup functions.
6844 * stack.c (print_frame_args, iterate_over_block_arg_vars):
6845 Likewise.
6846 * symfile.c (set_initial_language): Likewise.
6847 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
6848 block_symbol.
6849 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
6850 (struct symbol_cache_slot): Turn the FOUND field into a struct
6851 block_symbol.
6852 (block_found): Remove.
6853 (eq_symbol_entry): Update to deal with struct block_symbol in
6854 cache slots.
6855 (symbol_cache_lookup): Return a struct block_symbol rather than
6856 a mere symbol.
6857 (symbol_cache_mark_found): Add a BLOCK parameter to fill
6858 appropriately the cache slots. Update callers.
6859 (symbol_cache_dump): Update cache slots handling to the type
6860 change.
6861 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
6862 lookup_symbol_aux, lookup_local_symbol,
6863 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
6864 lookup_symbol_in_objfile_symtabs,
6865 lookup_symbol_in_objfile_from_linkage_name,
6866 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
6867 lookup_symbol_in_static_block, lookup_static_symbol,
6868 lookup_global_symbol):
6869 Return a struct block_symbol rather than a mere symbol. Deal
6870 with struct block_symbol from other lookup functions. Remove
6871 uses of block_found.
6872 (lookup_symbol_in_block): Remove uses of block_found.
6873 (struct global_sym_lookup_data): Turn the RESULT field into a
6874 struct block_symbol.
6875 (lookup_symbol_global_iterator_cb): Update references to the
6876 RESULT field.
6877 (search_symbols): Deal with struct block_symbol from lookup
6878 functions.
6879 * symtab.h (struct block_symbol): New structure.
6880 (block_found): Remove.
6881 (lookup_symbol_in_language, lookup_symbol,
6882 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
6883 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
6884 lookup_global_symbol_from_objfile): Return a struct block_symbol
6885 rather than just a mere symbol. Update comments to remove
6886 mentions of block_found.
6887 * valops.c (find_function_in_inferior,
6888 value_struct_elt_for_reference, value_maybe_namespace_elt,
6889 value_of_this): Deal with struct block_symbol from lookup
6890 functions.
6891 * value.c (value_static_field, value_fn_field): Likewise.
6892
6893 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
6894
6895 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
6896 instead of integer.
6897
6898 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
6899 Pedro Alves <palves@redhat.com>
6900
6901 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
6902 type or value instead of integer.
6903 (aarch64_linux_insert_watchpoint): Likewise.
6904 (aarch64_linux_remove_watchpoint): Likewise.
6905 * ada-lang.c (ada_op_print_tab): Likewise.
6906 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
6907 (amd64_linux_syscall_record_common): Likewise.
6908 * arch-utils.c (target_byte_order_user): Likewise.
6909 (default_byte_order): Likewise.
6910 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
6911 (arm_linux_get_hwbp_type): Likewise.
6912 (arm_linux_hw_watchpoint_initialize): Likewise.
6913 (arm_linux_insert_watchpoint): Likewise.
6914 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
6915 (arm_linux_syscall_record): Likewise.
6916 * breakpoint.c (update_watchpoint): Likewise.
6917 (breakpoint_here_p): Likewise.
6918 (bpstat_print): Likewise.
6919 (enable_breakpoint_disp): Likewise.
6920 * c-lang.c (c_op_print_tab): Likewise.
6921 * cli/cli-decode.c (add_info_alias): Likewise.
6922 * d-lang.c (d_op_print_tab): Likewise.
6923 * eval.c (evaluate_subexp_standard): Likewise.
6924 * f-exp.y (dot_ops): Likewise.
6925 (f77_keywords): Likewise.
6926 * f-lang.c (f_op_print_tab): Likewise.
6927 * go-lang.c (go_op_print_tab): Likewise.
6928 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
6929 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
6930 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
6931 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
6932 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
6933 (struct scm_from_stringn_data): Likewise.
6934 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
6935 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
6936 (ia64_linux_remove_watchpoint): Likewise.
6937 (ia64_linux_can_use_hw_breakpoint): Likewise.
6938 * infrun.c (print_stop_event): Likewise.
6939 * jv-lang.c (java_op_print_tab): Likewise.
6940 * linux-nat.c (linux_proc_xfer_partial): Likewise.
6941 * linux-nat.h (struct lwp_info): Likewise.
6942 * linux-thread-db.c (enable_thread_event): Likewise.
6943 * m2-lang.c (m2_op_print_tab): Likewise.
6944 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
6945 (mi_cmd_stack_list_variables): Likewise.
6946 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
6947 * mi/mi-out.c (mi_table_begin): Likewise.
6948 (mi_table_header): Likewise.
6949 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
6950 (mips_linux_insert_watchpoint): Likewise.
6951 (mips_linux_remove_watchpoint): Likewise.
6952 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
6953 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
6954 (mips_linux_watch_type_to_irw): Likewise.
6955 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
6956 (procfs_insert_hw_watchpoint): Likewise.
6957 (procfs_remove_hw_watchpoint): Likewise.
6958 (procfs_hw_watchpoint): Likewise.
6959 (procfs_can_use_hw_breakpoint): Likewise.
6960 (procfs_remove_hw_watchpoint): Likewise.
6961 (procfs_insert_hw_watchpoint): Likewise.
6962 * p-lang.c (pascal_op_print_tab): Likewise.
6963 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
6964 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
6965 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
6966 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
6967 (procfs_insert_watchpoint): Likewise.
6968 (procfs_remove_watchpoint): Likewise.
6969 * psymtab.c (recursively_search_psymtabs): Likewise.
6970 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
6971 (m32r_insert_watchpoint): Likewise.
6972 * remote-mips.c (mips_can_use_watchpoint): Likewise.
6973 (mips_insert_watchpoint): Likewise.
6974 (mips_remove_watchpoint): Likewise.
6975 * remote.c (watchpoint_to_Z_packet): Likewise.
6976 (remote_insert_watchpoint): Likewise.
6977 (remote_remove_watchpoint): Likewise.
6978 (remote_check_watch_resources): Likewise.
6979 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
6980 (s390_remove_watchpoint): Likewise.
6981 (s390_can_use_hw_breakpoint): Likewise.
6982 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6983 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
6984 * target.h (struct target_ops): Likewise.
6985 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6986 * ui-out.c (struct ui_out_hdr): Likewise.
6987 (append_header_to_list): Likewise.
6988 (get_next_header): Likewise.
6989 (verify_field): Likewise.
6990 (ui_out_begin): Likewise.
6991 (ui_out_field_int): Likewise.
6992 (ui_out_field_fmt_int): Likewise.
6993 (ui_out_field_skip): Likewise.
6994 (ui_out_field_string): Likewise.
6995 (ui_out_field_fmt): Likewise.
6996 * varobj.c (new_variable): Likewise.
6997 * x86-nat.c (x86_insert_watchpoint): Likewise.
6998 (x86_remove_watchpoint): Likewise.
6999 (x86_can_use_hw_breakpoint): Likewise.
7000 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
7001 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
7002 previously anonymous enumeration type..
7003 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
7004 value.
7005 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
7006 (target_debug_print_enum_bptype): New.
7007 * target-delegates.c: Regenerate.
7008
7009 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
7010
7011 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
7012 already says and disallow non-stack memory writes in the prologue.
7013
7014 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
7015
7016 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
7017 reflect how current GCC emits stack overflow checks. Match
7018 both trap and break instructions for backward compatbility.
7019 Disallow other trap and break instructions in the prologue.
7020
7021 2015-07-30 Pedro Alves <palves@redhat.com>
7022
7023 PR threads/18600
7024 * linux-nat.c (wait_lwp): Report to the core when thread group
7025 leader exits.
7026
7027 2015-07-30 Pedro Alves <palves@redhat.com>
7028 Simon Marchi <simon.marchi@ericsson.com>
7029
7030 PR threads/18600
7031 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
7032 mark the new thread as resumed. Remove STOPPING parameter.
7033 (wait_lwp): Adjust call to linux_handle_extended_wait.
7034 (linux_nat_filter_event): Adjust call to
7035 linux_handle_extended_wait.
7036 (resume_stopped_resumed_lwps): Add debug output.
7037
7038 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
7039
7040 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
7041 isize argument.
7042 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
7043 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
7044 gdbarch_fast_tracepoint_valid_at.
7045 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
7046 * gdbarch.h: Regenerate.
7047 * gdbarch.c: Regenerate.
7048 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
7049 argument. Do not set it.
7050 * remote.c (remote_download_tracepoint): Adjust call to
7051 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
7052 the instruction length.
7053
7054 2015-07-30 Yao Qi <yao.qi@linaro.org>
7055
7056 * arm-tdep.h (enum gdb_regnum): Move it to ...
7057 * arch/arm.h: ... here. New file.
7058 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
7059
7060 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
7061
7062 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
7063 Change its type to int *.
7064 (decode_br): Rename link argument to is_blr. Change its type to
7065 int *.
7066 (decode_cb): Rename op argument to is_cbnz. Change its type to
7067 int *.
7068 (decode_tb): Rename op argument to is_tbnz. Change its type to
7069 int *. Set is_tbnz to either 1 or 0.
7070 (aarch64_analyze_prologue): Change type of is_link to int. Add
7071 new variables is_cbnz and is_tbnz. Adjust call to
7072 aarch64_decode_cb and aarch64_decode_tb.
7073
7074 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
7075
7076 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
7077 parameter.
7078 (mips_linux_new_thread): Likewise.
7079 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
7080
7081 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
7082
7083 * top.c: Include "tui/tui.h".
7084 (undo_terminal_modifications_before_exit): New static function.
7085 (quit_force): Use it.
7086
7087 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
7088
7089 * target.c (terminal_state): Initialize to terminal_is_ours.
7090
7091 2015-07-29 Yao Qi <yao.qi@linaro.org>
7092
7093 PR record/18691
7094 * dcache.c (dcache_read_memory_partial): Call
7095 raw_memory_xfer_partial.
7096 * target.c (raw_memory_xfer_partial): Make it non-static.
7097 * target.h (raw_memory_xfer_partial): Declare.
7098
7099 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
7100
7101 * c-valprint.c (c_val_print_array): Consider addressable memory
7102 unit size.
7103 (c_val_print_ptr): Likewise.
7104 (c_val_print_int): Likewise.
7105 * findvar.c (read_frame_register_value): Likewise.
7106 * valarith.c (find_size_for_pointer_math): Likewise.
7107 (value_ptrdiff): Likewise.
7108 (value_subscripted_rvalue): Likewise.
7109 * valops.c (read_value_memory): Likewise (and rename variables).
7110 (value_assign): Likewise.
7111 (value_repeat): Likewise.
7112 (value_array): Likewise.
7113 (value_slice): Likewise.
7114 * valprint.c (generic_val_print_ptr): Likewise.
7115 (generic_val_print_enum): Likewise.
7116 (generic_val_print_bool): Likewise.
7117 (generic_val_print_int): Likewise.
7118 (generic_val_print_char): Likewise.
7119 (generic_val_print_float): Likewise.
7120 (generic_val_print_decfloat): Likewise.
7121 (generic_val_print_complex): Likewise.
7122 (val_print_scalar_formatted): Likewise.
7123 (val_print_array_elements): Likewise.
7124 * value.c (set_value_parent): Likewise.
7125 (value_contents_copy_raw): Likewise.
7126 (set_internalvar_component): Likewise.
7127 (value_primitive_field): Likewise.
7128 (value_fetch_lazy): Likewise.
7129 * value.h (read_value_memory): Update comment.
7130
7131 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
7132
7133 * value.c (get_value_arch): New function.
7134 * value.h (get_value_arch): New declaration.
7135
7136 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
7137
7138 * value.c (struct value): Update comments.
7139
7140 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
7141
7142 * gdbtypes.c (type_length_units): New function.
7143 * gdbtypes.h (type_length_units): New declaration.
7144 (struct type) <length>: Update comment.
7145
7146 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7147
7148 * valprint.c (generic_val_print): Factor out complex
7149 printing code to ...
7150 (generic_val_print_complex): ... this new function.
7151
7152 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7153
7154 * valprint.c (generic_val_print): Factor out decfloat
7155 printing code to ...
7156 (generic_val_print_decfloat): ... this new function.
7157
7158 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7159
7160 * valprint.c (generic_val_print): Factor out float
7161 printing code to ...
7162 (generic_val_print_float): ... this new function.
7163
7164 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7165
7166 * valprint.c (generic_val_print): Factor out char
7167 printing code to ...
7168 (generic_val_print_char): ... this new function.
7169
7170 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7171
7172 * valprint.c (generic_val_print): Factor out integer
7173 printing code to ...
7174 (generic_val_print_int): ... this new function.
7175
7176 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7177
7178 * valprint.c (generic_val_print): Factor out bool
7179 printing code to ...
7180 (generic_val_print_bool): ... this new function.
7181
7182 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7183
7184 * valprint.c (generic_val_print): Factor out function/method
7185 printing code to ...
7186 (generic_val_print_func): ... this new function.
7187
7188 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7189
7190 * valprint.c (generic_val_print): Factor out flags
7191 printing code to ...
7192 (generic_val_print_flags): ... this new function.
7193
7194 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7195
7196 * valprint.c (generic_val_print): Factor out enum
7197 printing code to ...
7198 (generic_val_print_enum): ... this new function.
7199
7200 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7201
7202 * valprint.c (generic_val_print): Factor out reference
7203 printing code to ...
7204 (generic_val_print_ref): ... this new function.
7205
7206 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7207
7208 * valprint.c (generic_val_print): Factor out memberptr
7209 printing code to ...
7210 (generic_val_print_memberptr): ... this new function.
7211
7212 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7213
7214 * valprint.c (generic_val_print): Factor out pointer
7215 printing code to ...
7216 (generic_val_print_ptr): ... this new function.
7217
7218 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7219
7220 * valprint.c (generic_val_print): Factor out array
7221 printing code to ...
7222 (generic_val_print_array): ... this new function.
7223
7224 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7225
7226 * valprint.c (generic_val_print): Factor out
7227 print_unpacked_pointer code to ...
7228 (print_unpacked_pointer): ... this new function.
7229
7230 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
7231
7232 * event-top.c (handle_sigterm): Don't inspect
7233 target_can_async_p. Always set the quit flag and always mark
7234 the async signal handler.
7235
7236 2015-07-27 Yao Qi <yao.qi@linaro.org>
7237
7238 * Makefile.in (REMOTE_EXAMPLES): Remove it.
7239
7240 2015-07-25 Kevin Buettner <kevinb@redhat.com>
7241
7242 * remote.c (read_ptid): Return null_ptid when no thread id
7243 is found.
7244 (remote_current_thread): Add log warning for malformed
7245 qC reply.
7246 (remote_start_remote): Add log warning when current thread
7247 not found.
7248
7249 2015-07-24 Pedro Alves <palves@redhat.com>
7250
7251 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
7252 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
7253 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
7254
7255 2015-07-24 Pedro Alves <palves@redhat.com>
7256
7257 PR gdb/18717
7258 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
7259 is resumed, and extend the debug log.
7260
7261 2015-07-24 Pedro Alves <palves@redhat.com>
7262
7263 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
7264
7265 2015-07-24 Pedro Alves <palves@redhat.com>
7266
7267 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
7268 sys/ptrace.h.
7269 * alpha-linux-nat.c: Likewise.
7270 * amd64-linux-nat.c: Likewise.
7271 * arm-linux-nat.c: Likewise.
7272 * hppa-linux-nat.c: Likewise.
7273 * i386-linux-nat.c: Likewise.
7274 * ia64-linux-nat.c: Likewise.
7275 * linux-fork.c: Likewise.
7276 * linux-nat.c: Likewise.
7277 * m32r-linux-nat.c: Likewise.
7278 * m68klinux-nat.c: Likewise.
7279 * mips-linux-nat.c: Likewise.
7280 * nat/linux-btrace.c: Likewise.
7281 * nat/linux-ptrace.c: Likewise.
7282 * nat/linux-ptrace.h
7283 * nat/mips-linux-watch.c: Likewise.
7284 * nat/x86-linux-dregs.c: Likewise.
7285 * ppc-linux-nat.c: Likewise.
7286 * s390-linux-nat.c: Likewise.
7287 * spu-linux-nat.c: Likewise.
7288 * tilegx-linux-nat.c: Likewise.
7289 * x86-linux-nat.c: Likewise.
7290 * xtensa-linux-nat.c: Likewise.
7291
7292 2015-07-24 Pedro Alves <palves@redhat.com>
7293
7294 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
7295 __ptrace_request as first parameter type instead of int.
7296 (PTRACE_TYPE_ARG1): Define.
7297 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
7298 that casts first argument to PTRACE_TYPE_ARG1.
7299 * config.in: Regenerate.
7300 * configure: Regenerate.
7301
7302 2015-07-24 Pedro Alves <palves@redhat.com>
7303
7304 * gdb_ptrace.h: Move ...
7305 * nat/gdb_ptrace.h: ... here.
7306 * inf-ptrace.c: Adjust.
7307
7308 2015-07-24 Pedro Alves <palves@redhat.com>
7309
7310 * acinclude.m4: Include ptrace.m4.
7311 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
7312 * ptrace.m4: ... to this new file.
7313
7314 2015-07-23 Doug Evans <dje@google.com>
7315
7316 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
7317 (load_cu): Handle dummy CUs.
7318 (dw2_do_instantiate_symtab, process_queuef): Ditto.
7319 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
7320
7321 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
7322
7323 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
7324 documentation to say that it returns a list rather than
7325 a FrozenSet.
7326 (linetable_object_methods): Update the docstring of the
7327 "source_line" entry.
7328
7329 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
7330
7331 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
7332 type to the recursive call instead of the original (maybe
7333 TYPE_CODE_TYPEDEF) type.
7334
7335 2015-07-23 Yao Qi <yao.qi@linaro.org>
7336
7337 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
7338 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
7339 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
7340
7341 2015-07-21 Yao Qi <yao.qi@linaro.org>
7342
7343 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
7344 Move it to nat/aarch64-linux-hw-point.c.
7345 (aarch64_linux_child_post_startup_inferior): Update.
7346 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
7347 New function.
7348 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
7349 Declare it.
7350
7351 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
7352
7353 * common/btrace-common.c (btrace_data_append): Change case label.
7354
7355 2015-07-20 Yao Qi <yao.qi@linaro.org>
7356
7357 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
7358 Re-indent the code.
7359 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
7360 "unsigned long long".
7361
7362 2015-07-18 Kevin Buettner <kevinb@redhat.com>
7363
7364 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
7365 to be set for SEC_ALLOC sections too.
7366
7367 2015-07-17 Yao Qi <yao.qi@linaro.org>
7368
7369 * Makefile.in (HFILES_NO_SRCDIR): Add
7370 nat/aarch64-linux-hw-point.h.
7371 (aarch64-linux-hw-point.o): New rule.
7372 * nat/aarch64-linux-hw-point.h: New file.
7373 * nat/aarch64-linux-hw-point.c: New file.
7374 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
7375 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
7376 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
7377 (AARCH64_HWP_ALIGNMENT): Likewise.
7378 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
7379 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
7380 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
7381 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
7382 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
7383 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
7384 (struct aarch64_debug_reg_state): Likewise.
7385 (struct arch_lwp_info): Likewise.
7386 (aarch64_linux_set_debug_regs): Likewise.
7387 (aarch64_notify_debug_reg_change): Remove static.
7388 (aarch64_align_watchpoint): Likewise.
7389 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
7390 (aarch64_watchpoint_length): Likewise.
7391 (aarch64_point_encode_ctrl_reg): Likewise
7392 (aarch64_point_is_aligned): Likewise.
7393 (aarch64_dr_state_insert_one_point): Likewise.
7394 (aarch64_dr_state_remove_one_point): Likewise.
7395 (aarch64_handle_breakpoint): Likewise.
7396 (aarch64_handle_aligned_watchpoint): Likewise.
7397 (aarch64_handle_unaligned_watchpoint): Likewise.
7398 (aarch64_handle_watchpoint): Likewise.
7399 * config/aarch64/linux.mh (NAT_FILE): Add
7400 aarch64-linux-hw-point.o.
7401
7402 2015-07-17 Yao Qi <yao.qi@linaro.org>
7403
7404 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
7405 state and don't call aarch64_get_debug_reg_state. All callers
7406 update.
7407 (aarch64_linux_insert_hw_breakpoint): Call
7408 aarch64_get_debug_reg_state earlier.
7409 (aarch64_linux_remove_hw_breakpoint): Likewise.
7410 (aarch64_handle_aligned_watchpoint): Add argument state and
7411 don't call aarch64_get_debug_reg_state. All callers update.
7412 (aarch64_handle_unaligned_watchpoint): Likewise.
7413 (aarch64_handle_watchpoint): Add argument state.
7414 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
7415 earlier.
7416 (aarch64_linux_remove_watchpoint): Likewise.
7417
7418 2015-07-17 Yao Qi <yao.qi@linaro.org>
7419
7420 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
7421 debug_printf.
7422 (aarch64_handle_unaligned_watchpoint): Likewise.
7423
7424 2015-07-17 Yao Qi <yao.qi@linaro.org>
7425
7426 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
7427 argument type's type to 'enum target_hw_bp_type'.
7428 (aarch64_dr_state_remove_one_point): Likewise.
7429 (aarch64_handle_breakpoint): Likewise.
7430 (aarch64_linux_insert_hw_breakpoint): Likewise.
7431 (aarch64_linux_remove_hw_breakpoint): Likewise.
7432 (aarch64_handle_aligned_watchpoint): Likewise.
7433
7434 2015-07-17 Yao Qi <yao.qi@linaro.org>
7435
7436 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
7437 ptid_get_pid instead of get_thread_id.
7438
7439 2015-07-17 Yao Qi <yao.qi@linaro.org>
7440
7441 * remote.c (get_current_thread): Initialise ptid to null_ptid.
7442 (add_current_inferior_and_thread): Don't initialise ptid.
7443
7444 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
7445
7446 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
7447 unavailable if invalid.
7448
7449 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7450
7451 Revert the previous 6 commits:
7452 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
7453 Move gdb_regex* to common/
7454 Prepare linux_find_memory_regions_full & co. for move
7455 Move linux_find_memory_regions_full & co.
7456 gdbserver build-id attribute generator
7457 Validate symbol file using build-id
7458
7459 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7460 Jan Kratochvil <jan.kratochvil@redhat.com>
7461
7462 Validate symbol file using build-id.
7463 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
7464 and 'show validate-build-id'. Add build-id attribute.
7465 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
7466 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
7467 * solib-frv.c (_initialize_frv_solib): Ditto.
7468 * solib-spu.c (set_spu_solib_ops): Ditto.
7469 * solib-svr4.c: Include rsp-low.h.
7470 (NOTE_GNU_BUILD_ID_NAME): New define.
7471 (svr4_validate): New function.
7472 (svr4_copy_library_list): Duplicate field build_id.
7473 (library_list_start_library): Parse 'build-id' attribute.
7474 (svr4_library_attributes): Add 'build-id' attribute.
7475 (_initialize_svr4_solib): Assign validate value.
7476 * solib-target.c (solib.h): Include.
7477 (_initialize_solib_target): Assign validate value.
7478 * solib.c (validate_build_id, show_validate_build_id): New.
7479 (solib_map_sections): Use ops->validate.
7480 (clear_so): Free build_id.
7481 (default_solib_validate): New function.
7482 (_initialize_solib): Add "validate-build-id".
7483 * solib.h (default_solib_validate): New declaration.
7484 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
7485 (target_so_ops): New field 'validate'.
7486
7487 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7488 Jan Kratochvil <jan.kratochvil@redhat.com>
7489
7490 gdbserver build-id attribute generator.
7491 * features/library-list-svr4.dtd (library-list-svr4): New
7492 'build-id' attribute.
7493
7494 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7495 Jan Kratochvil <jan.kratochvil@redhat.com>
7496
7497 Move linux_find_memory_regions_full & co.
7498 * linux-tdep.c (nat/linux-maps.h): Include.
7499 (gdb_regex.h): Remove the include.
7500 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
7501 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
7502 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
7503 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
7504 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
7505 and target/target.h.
7506 (struct smaps_vmflags, read_mapping, decode_vmflags)
7507 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
7508 (linux_find_memory_regions_full): Move from linux-tdep.c.
7509 * nat/linux-maps.h (read_mapping): New declaration.
7510 (linux_find_memory_region_ftype, enum filterflags): Moved from
7511 linux-tdep.c.
7512 (linux_find_memory_regions_full): New declaration.
7513 * target.c (target/target-utils.h): Include.
7514 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
7515 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
7516 definitions to target/target-utils.c.
7517 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
7518 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
7519 from target.c.
7520 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
7521 (read_alloc): New declaration.
7522 (read_stralloc_func_ftype): New typedef.
7523 (read_stralloc): New declaration.
7524 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
7525
7526 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7527 Jan Kratochvil <jan.kratochvil@redhat.com>
7528
7529 Prepare linux_find_memory_regions_full & co. for move.
7530 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
7531 (linux_find_memory_regions_full): Change signature and prepare
7532 for moving to linux-maps.
7533 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
7534 (linux_find_memory_regions_thunk): New.
7535 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
7536 (linux_find_memory_regions_gdb): New.
7537 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
7538 (linux_make_mappings_corefile_notes): Use
7539 linux_find_memory_regions_gdb.
7540 * target.c (read_alloc_pread_ftype): New typedef.
7541 (target_fileio_read_alloc_1_pread): New function.
7542 (read_alloc): Refactor from target_fileio_read_alloc_1.
7543 (read_stralloc_func_ftype): New typedef.
7544 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
7545 (read_stralloc): Refactored from target_fileio_read_stralloc.
7546 (target_fileio_read_stralloc): New implementation, use read_stralloc.
7547
7548 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7549
7550 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
7551 common/gdb_regex.h.
7552 (COMMON_OBS): Add gdb_regex.o.
7553 (gdb_regex.o): New.
7554 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
7555 --without-included-regex and USE_INCLUDED_REGEX.
7556 * common/gdb_regex.c: New file from utils.c functions.
7557 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
7558 file wrapping define name.
7559 * configure: Rebuilt.
7560 * configure.ac (gdb_use_included_regex, --without-included-regex)
7561 (USE_INCLUDED_REGEX): Move them to common/common.m4.
7562 * gdb_regex.h: Move it to common/gdb_regex.h.
7563 * utils.c: Remove include gdb_regex.h.
7564 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
7565 (compile_rx_or_error): Move them to common/gdb_regex.c.
7566
7567 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7568 Jan Kratochvil <jan.kratochvil@redhat.com>
7569
7570 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
7571 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
7572 common/target-utils.h.
7573 (COMMON_OBS): Add target-utils.o.
7574 (linux-maps.o, target-utils.o): New.
7575 * target/target-utils.c: New file.
7576 * target/target-utils.h: New file.
7577 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
7578 * config/i386/linux64.mh (NATDEPFILES): Ditto.
7579 * nat/linux-maps.c: New file.
7580 * nat/linux-maps.h: New file.
7581
7582 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
7583 Pedro Alves <palves@redhat.com>
7584
7585 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
7586 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
7587 (perf_event_read_bts): Change the type of SIZE and READ.
7588 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
7589 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
7590 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
7591 mmap page.
7592 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
7593 buffer size to UINT_MAX.
7594 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
7595 DATA_TAIL.
7596 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
7597 <last_head>: Change type.
7598 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
7599 * common/btrace-common.c (btrace_data_append): Change the type of
7600 SIZE.
7601 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
7602 check.
7603
7604 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
7605
7606 * gdbtypes.h (CHECK_TYPEDEF): Remove.
7607 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
7608 with check_typedef.
7609 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
7610 (ada_array_length): Likewise.
7611 (find_parallel_type_by_descriptive_type): Likewise.
7612 (ada_check_typedef): Likewise.
7613 * arm-tdep.c (arm_return_in_memory): Likewise.
7614 * ax-gdb.c (gen_trace_static_fields): Likewise.
7615 (gen_struct_ref_recursive): Likewise.
7616 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
7617 (variable: block COLONCOLON name): Likewise.
7618 (qualified_name: TYPENAME COLONCOLON name): Likewise.
7619 * c-lang.c (classify_type): Likewise.
7620 * c-typeprint.c (c_print_type): Likewise.
7621 (c_print_typedef): Likewise.
7622 (c_type_print_base): Likewise.
7623 * c-valprint.c (c_val_print): Likewise.
7624 * compile/compile-c-types.c (convert_type): Likewise.
7625 * compile/compile-object-load.c (get_out_value_type): Likewise.
7626 * completer.c (add_struct_fields): Likewise.
7627 (expression_completer): Likewise.
7628 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
7629 (cp_lookup_nested_symbol_1): Likewise.
7630 (cp_lookup_nested_symbol): Likewise.
7631 * cp-valprint.c (cp_print_value_fields): Likewise.
7632 (cp_print_static_field): Likewise.
7633 * d-valprint.c (d_val_print): Likewise.
7634 * eval.c (evaluate_subexp_standard): Likewise.
7635 (evaluate_subexp_for_sizeof): Likewise.
7636 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
7637 * f-typeprint.c (f_type_print_base): Likewise.
7638 * f-valprint.c (f_val_print): Likewise.
7639 * gdbtypes.c (get_discrete_bounds): Likewise.
7640 (create_array_type_with_stride): Likewise.
7641 (type_name_no_tag_or_error): Likewise.
7642 (lookup_struct_elt_type): Likewise.
7643 (get_unsigned_type_max): Likewise.
7644 (internal_type_vptr_fieldno): Likewise.
7645 (set_type_vptr_fieldno): Likewise.
7646 (internal_type_vptr_basetype): Likewise.
7647 (set_type_vptr_basetype): Likewise.
7648 (get_vptr_fieldno): Likewise.
7649 (is_integral_type): Likewise.
7650 (is_scalar_type): Likewise.
7651 (is_scalar_type_recursive): Likewise.
7652 (distance_to_ancestor): Likewise.
7653 (is_unique_ancestor_worker): Likewise.
7654 (check_types_equal): Likewise.
7655 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
7656
7657 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
7658
7659 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
7660 also test for language_d.
7661 (dwarf2_compute_name): Likewise.
7662 (read_func_scope): Likewise.
7663 (read_structure_type): Likewise.
7664 (new_symbol_full): Likewise.
7665 (determine_prefix): Likewise.
7666 (read_import_statement): Use dot as the separator for language_d.
7667 (typename_concat): Likewise, but don't prefix the D main function.
7668
7669 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
7670
7671 * nat/linux-namespaces.c (setns): Rename from this ...
7672 (do_setns): ... to this. Support calling setns if it exists.
7673 (mnsh_handle_setns): Call do_setns.
7674
7675 2015-07-13 Yao Qi <yao.qi@linaro.org>
7676
7677 * exec.c (exec_file_attach): Add period at the end of error
7678 message.
7679
7680 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
7681
7682 * tui/tui-win.c (window_name_completer): New function.
7683 (focus_completer): Call window_name_completer. All old content
7684 moved into window_name_completer.
7685 (winheight_completer): New function.
7686 (_initialize_tui_win): Rename variable. Add completer to
7687 winheight command. Update doc string on winheight.
7688
7689 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
7690
7691 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
7692 all nios2 mach variants.
7693
7694 2015-07-10 Kevin Buettner <kevinb@redhat.com>
7695
7696 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
7697 of target_read_memory.
7698
7699 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7700
7701 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
7702 string copy.
7703 (parse_scrolling_args): Likewise.
7704
7705 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7706
7707 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
7708 names in this function.
7709
7710 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7711
7712 * tui/tui-data.h (SRC_NAME): Convert to lower case.
7713 (CMD_NAME): Likewise.
7714 (DATA_NAME): Likewise.
7715 (DISASSEM_NAME): Likewise.
7716 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
7717 (tui_set_win_height): Likewise.
7718 (parse_scrolling_args): Likewise.
7719
7720 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
7721
7722 * record-btrace.c (record_btrace_goto_begin)
7723 (record_btrace_goto_end, record_btrace_goto): Move call to
7724 print_stack_frame ...
7725 (record_btrace_set_replay): ... here. Set stop_pc.
7726 * record-full.c (record_full_goto_entry): Set stop_pc.
7727
7728 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7729
7730 * NEWS: Mention support for tracepoints on aarch64-linux.
7731
7732 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7733
7734 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
7735 function. Return 1.
7736 (the_low_target): Install it.
7737
7738 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7739
7740 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
7741 * gdb.trace/collection.exp: Likewise.
7742 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
7743 * gdb.trace/mi-trace-unavailable.exp: Likewise.
7744 * gdb.trace/report.exp: Likewise.
7745 * gdb.trace/trace-break.exp: Likewise.
7746 * gdb.trace/unavailable.exp: Likewise.
7747 * gdb.trace/while-dyn.exp: Likewise.
7748
7749 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7750
7751 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
7752 (aarch64_gen_return_address): New function.
7753 (aarch64_gdbarch_init): Hook it.
7754
7755 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7756
7757 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
7758 swallow NOT_AVAILABLE_ERROR.
7759 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
7760 available_p is not set.
7761 (aarch64_stub_frame_unwind_stop_reason): New function.
7762 (aarch64_stub_unwind): Install it.
7763
7764 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7765
7766 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
7767 field.
7768 (aarch64_make_prologue_cache_1): New function, factored out from
7769 aarch64_make_prologue_cache. Do not allocate cache. Set
7770 available_p.
7771 (aarch64_make_prologue_cache): Reimplement wrapping
7772 aarch64_make_prologue_cache_1, and swallowing
7773 NOT_AVAILABLE_ERROR.
7774 (aarch64_prologue_frame_unwind_stop_reason): New function.
7775 Return UNWIND_UNAVAILABLE if available_p is not set.
7776 (aarch64_prologue_unwind): Install it.
7777 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
7778 checks into aarch64_prologue_frame_unwind_stop_reason. Call
7779 frame_id_build_unavailable_stack if available_p is not set.
7780
7781 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7782
7783 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
7784 fields.
7785 (aarch64_scan_prologue): Set prev_pc.
7786 (aarch64_make_prologue_cache): Set func.
7787 (aarch64_make_stub_cache): Set prev_pc.
7788 (aarch64_prologue_this_id): Remove local variables id, pc and
7789 func. Read prev_pc and func from cache.
7790 (aarch64_stub_this_id): Read prev_pc from cache.
7791
7792 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7793
7794 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
7795 argument this_cache. Remove unused local variables reg and
7796 unwound_fp. Return early if this_cache is already set. Set
7797 this_cache.
7798 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
7799
7800 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7801
7802 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
7803 New argument this_cache. Return early if this_cache is already
7804 set. Set this_cache.
7805 (aarch64_prologue_this_id): Update call to
7806 aarch64_make_prologue_cache.
7807 (aarch64_prologue_prev_register): Likewise.
7808 (aarch64_normal_frame_base): Likewise.
7809
7810 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7811
7812 * c-valprint.c (c_val_print): Factor out memberptr printing code
7813 from c_val_print to ...
7814 (c_val_print_memberptr): ... this new function.
7815
7816 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7817
7818 * c-valprint.c (c_val_print): Factor out int printing code to ...
7819 (c_val_print_int): ... this new function.
7820
7821 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7822
7823 * c-valprint.c (c_val_print): Factor out struct and union
7824 printing code to ...
7825 (c_val_print_struct): ... this new function ...
7826 (c_val_print_union): ... and this new function.
7827
7828 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7829
7830 * c-valprint.c (c_val_print): Factor out pointer printing code
7831 to ...
7832 (c_val_print_ptr): ... this new function.
7833
7834 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7835
7836 * c-valprint.c (c_valprint): Factor our array printing code from
7837 c_val_print to ...
7838 (c_val_print_array): ... this new function.
7839
7840 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7841
7842 * c-valprint.c (c_val_print): Factor out pointer printing code
7843 to ...
7844 (print_unpacked_pointer): ... this new function.
7845
7846 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7847
7848 * c-valprint.c (c_val_print): Remove an assignment to i and move
7849 its declaration.
7850
7851 2015-07-09 Yao Qi <yao.qi@linaro.org>
7852
7853 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
7854 argument ptid. Update comments. Caller update.
7855
7856 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
7857
7858 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
7859 mnt packets.
7860
7861 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
7862
7863 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
7864
7865 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
7866
7867 * progspace.c (delete_program_space): Add missing spaces.
7868
7869 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
7870
7871 * inferior.c (delete_inferior_1): Rename to ...
7872 (delete_inferior): ..., remove 'silent' parameter, delete
7873 program space when unused and remove call to prune_program_spaces.
7874 Remove the old, unused, delete_inferior.
7875 (delete_inferior_silent): Remove.
7876 (prune_inferiors): Change call from delete_inferior_1 to
7877 delete_inferior and remove 'silent' parameter. Remove call to
7878 prune_program_spaces.
7879 (remove_inferior_command): Idem.
7880 * inferior.h (delete_inferior_1): Rename to...
7881 (delete_inferior): ..., remove 'silent' parameter and remove the
7882 original delete_inferior.
7883 (delete_inferior_silent): Remove.
7884 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
7885 delete_inferior_1 to delete_inferior and remove 'silent'
7886 parameter.
7887 * progspace.c (prune_program_spaces): Remove.
7888 (pspace_empty_p): Rename to...
7889 (program_space_empty_p): ... and make non-static.
7890 (delete_program_space): New.
7891 * progspace.h (prune_program_spaces): Remove declaration.
7892 (program_space_empty_p): New declaration.
7893 (delete_program_space): New declaration.
7894 * monitor.c (monitor_close): Replace call to
7895 delete_thread_silent and delete_inferior_silent with
7896 discard_all_inferiors.
7897
7898 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
7899
7900 * defs.h (deprecated_register_changed_hook): Remove prototype.
7901 * interps.c (clear_iterpreter_hooks): Remove reference to
7902 deprecated_register_changed_hook.
7903 * top.c (deprecated_register_changed_hook): Remove prototype.
7904 * valops.c (value_assign): Remove reference to
7905 deprecated_register_changed_hook.
7906 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
7907 Add comment documenting the function.
7908 (tui_register_changed_observer): Define.
7909 (tui_install_hooks): Remove reference to
7910 deprecated_register_changed_hook. Set
7911 tui_register_changed_observer.
7912 (tui_remove_hooks): Remove reference to
7913 deprecated_register_changed_hook. Unset
7914 tui_register_changed_observer.
7915
7916 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7917
7918 PR compile/18484
7919 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
7920
7921 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
7922
7923 PR exp/18617
7924 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
7925
7926 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
7927
7928 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
7929
7930 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
7931
7932 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
7933 Use safe_strerror() instead of strerror().
7934
7935 2015-07-07 Yao Qi <yao.qi@linaro.org>
7936
7937 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
7938 * features/arm-with-m-fpa-layout.c: Regenerated.
7939 * features/arm-with-m-vfp-d16.xml: Likewise.
7940 * features/arm-with-m-vfp-d16.c: Regenerated.
7941 * features/arm-with-m.xml: Likewise.
7942 * features/arm-with-m.c: Regenerated.
7943 * features/arm-with-neon.xml: Likewise.
7944 * features/arm-with-neon.c: Regenerated.
7945 * features/arm-with-vfpv2.xml: Likewise.
7946 * features/arm-with-vfpv2.c: Regenerated.
7947 * features/arm-with-vfpv3.xml: Likewise.
7948 * features/arm-with-vfpv3.c: Regenerated.
7949
7950 2015-07-07 Yao Qi <yao.qi@linaro.org>
7951
7952 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
7953 arm-linux-nat.c.
7954 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
7955 elf/external.h.
7956 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
7957 if target is 32-bit.
7958 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
7959 if target is 32-bit.
7960 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
7961 if target is 32-bit.
7962 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
7963 if target is 32-bit.
7964 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
7965 (aarch64_linux_read_description): Return the right target
7966 description.
7967 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
7968 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
7969 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
7970 arm-linux-tdep.o.
7971
7972 2015-07-07 Yao Qi <yao.qi@linaro.org>
7973
7974 * aarch32-linux-nat.c: New file.
7975 * aarch32-linux-nat.h: New file.
7976 * arm-linux-nat.c: Include aarch32-linux-nat.h.
7977 (fetch_regs): Move code to aarch32-linux-nat.c. Call
7978 aarch32_gp_regcache_supply.
7979 (store_regs): Move code to aarch32-linux-nat.c. Call
7980 aarch32_gp_regcache_collect.
7981 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
7982 aarch32_vfp_regcache_supply.
7983 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
7984 aarch32_vfp_regcache_collect.
7985 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
7986
7987 2015-07-07 Yao Qi <yao.qi@linaro.org>
7988
7989 * arm-linux-nat.c (store_fpregister): Remove.
7990 (store_register): Likewise.
7991 (fetch_fpregister): Likewise.
7992 (fetch_register): Likewise.
7993 (arm_linux_store_inferior_registers): Call store_regs and
7994 store_fpregs instead.
7995 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
7996 fetch_regs instead.
7997
7998 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7999
8000 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
8001 and focus commands.
8002
8003 2015-07-06 Joel Brobecker <brobecker@adacore.com>
8004
8005 * NEWS: Create a new section for the next release branch.
8006 Rename the section of the current branch, now that it has
8007 been cut.
8008
8009 2015-07-06 Joel Brobecker <brobecker@adacore.com>
8010
8011 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
8012 * version.in: Bump version to 7.10.50.DATE-cvs.
8013
8014 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
8015
8016 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
8017 breakpoints in a special way.
8018 (remove_breakpoint): Likewise.
8019 (mark_breakpoints_out): Likewise.
8020
8021 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
8022
8023 * doc/gdb.texinfo (TUI): Add comma after @xref.
8024
8025 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
8026
8027 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
8028 instead of casting the structure type.
8029
8030 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
8031
8032 * valops.c (search_struct_field): Remove OFFSET parameter.
8033 (value_cast_structs): Adjust calls to search_struct_field.
8034 (value_struct_elt): Same.
8035 (find_overload_match): Same.
8036
8037 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
8038
8039 * value.c (value_fetch_lazy): Update comment, change return
8040 value to void.
8041 * value.h (value_fetch_lazy): Change return value to void.
8042
8043 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
8044
8045 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
8046 (tui_win_name): Make parameter and result const.
8047 * tui/tui-data.h (tui_win_name): Make parameter and result const.
8048
8049 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
8050
8051 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
8052 use printf_unfiltered.
8053 (set_mpx_cmd): Add missing trailing space to command string
8054 literal.
8055 (_initialize_i386_tdep): Give the "mpx" prefix command its
8056 correct name.
8057
8058 2015-07-02 Kevin Buettner <kevinb@redhat.com>
8059
8060 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
8061 (enum rx_frame_type): New.
8062 (struct rx_prologue): Add new field `frame_type'.
8063 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
8064 parameter in the prologue struct. Add code for recording
8065 locations of PC and PSW for fast interrupt and exception frames.
8066 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
8067 (rx_analyze_frame_prologue): Add `frame_type' parameter.
8068 (rx_frame_type): New function.
8069 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
8070 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
8071 `this_cache'.
8072 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
8073 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
8074 RX_FRAME_TYPE_FAST_INTERRUPT.
8075 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
8076 (rx_frame_sniffer, rx_exception_sniffer): New functions.
8077 (rx_frame_unwind): Use rx_frame_sniffer instead of
8078 default_frame_sniffer.
8079 (rx_frame_unwind): New unwinder.
8080 (rx_gdbarch_init): Register new unwinder.
8081
8082 2015-07-02 Kevin Buettner <kevinb@redhat.com>
8083
8084 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
8085 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
8086 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
8087 and RX_FPSW_REGNUM.
8088 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
8089
8090 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8091
8092 Fix GCC false warning.
8093 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
8094
8095 2015-07-02 Yao Qi <yao.qi@linaro.org>
8096
8097 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
8098 typo in the debugging message.
8099
8100 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8101
8102 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
8103 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
8104 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
8105 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
8106 (btrace_maint_clear): New.
8107 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
8108 (pt_print_packet, btrace_maint_decode_pt)
8109 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
8110 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
8111 (maint_btrace_packet_history_cmd)
8112 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
8113 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
8114 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
8115 (maint_info_btrace_cmd, _initialize_btrace): New.
8116 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
8117 (btrace_maint_packet_history, btrace_maint_info): New.
8118 (btrace_thread_info) <maint>: New.
8119 * NEWS: Announce it.
8120
8121 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8122
8123 * btrace.c (btrace_fetch): Append the new trace data.
8124 (btrace_clear): Clear the stored trace data.
8125 * btrace.h (btrace_thread_info) <data>: New.
8126 * common/btrace-common.h (btrace_data_clear)
8127 (btrace_data_append): New.
8128 * common/btrace-common.c (btrace_data_clear)
8129 (btrace_data_append): New.
8130
8131 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8132
8133 * nat/linux-btrace.c (linux_enable_bts): Check for
8134 PERF_ATTR_SIZE_VER5.
8135 Check for data_offset and data_size fields. Use them.
8136
8137 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8138
8139 * NEWS: Announce new commands "record btrace pt" and "record pt".
8140 Announce new options "set|show record btrace pt buffer-size".
8141 * btrace.c: Include "rsp-low.h".
8142 Include "inttypes.h".
8143 (btrace_add_pc): Add forward declaration.
8144 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
8145 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
8146 (btrace_compute_ftrace_pt): New.
8147 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
8148 (check_xml_btrace_version): Update version check.
8149 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
8150 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
8151 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
8152 (btrace_pt_children): New.
8153 (btrace_children): Add support for "pt".
8154 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
8155 (btrace_conf_children): Add support for "pt".
8156 * btrace.h: Include "intel-pt.h".
8157 (btrace_pt_error): New.
8158 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
8159 (btrace_data_empty): Support BTRACE_FORMAT_PT.
8160 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
8161 (struct btrace_config_pt): New.
8162 (struct btrace_config)<pt>: New.
8163 (struct btrace_data_pt_config, struct btrace_data_pt): New.
8164 (struct btrace_data)<pt>: New.
8165 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
8166 (pt): New.
8167 * features/btrace.dtd (btrace)<pt>: New.
8168 (pt, pt-config, cpu): New.
8169 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
8170 (perf_event_pt_event_type, kernel_supports_pt)
8171 (linux_supports_pt): New.
8172 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
8173 (linux_enable_bts): Free tinfo on error.
8174 (linux_enable_pt): New.
8175 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
8176 (linux_disable_pt): New.
8177 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
8178 (linux_fill_btrace_pt_config, linux_read_pt): New.
8179 (linux_read_btrace): Support BTRACE_FORMAT_PT.
8180 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
8181 (struct btrace_target_info)<pt>: New.
8182 * record-btrace.c (set_record_btrace_pt_cmdlist)
8183 (show_record_btrace_pt_cmdlist): New.
8184 (record_btrace_print_pt_conf): New.
8185 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
8186 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
8187 (cmd_record_btrace_pt_start): New.
8188 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
8189 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
8190 (_initialize_record_btrace): Add new commands.
8191 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
8192 (remote_protocol_features): Add "Qbtrace:pt".
8193 Add "Qbtrace-conf:pt:size".
8194 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
8195 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
8196 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
8197 (_initialize_remote): Add new commands.
8198
8199 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8200
8201 * configure.ac: check for libipt
8202 * configure: Regenerate.
8203 * config.in: Regenerate.
8204 * Makefile.in (LIBIPT): New.
8205 (CLIBS): Add $LIBIPT.
8206 * NEWS: document new configure options
8207
8208 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8209
8210 * compile/compile-object-load.c (compile_object_load): Replace debug
8211 message "lookup undefined ELF symbol" by 3 more specific messages.
8212
8213 2015-07-01 Kevin Buettner <kevinb@redhat.com>
8214
8215 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
8216 (rl78_register_type): Add case for RL78_PSW_REGNUM.
8217 (rl78_gdbarch_init): Initialize rl78_psw_type.
8218
8219 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
8220
8221 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
8222 Update commentary. Always refresh the registers when frame
8223 information has changed.
8224 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
8225 Change return type to int. Return 1 if frame information has
8226 changed, 0 otherwise.
8227 (tui_before_prompt): Update commentary.
8228 * tui/tui-stack.h (tui_show_frame_info): Change return type to
8229 int.
8230
8231 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
8232
8233 PR tui/13378
8234 * frame.c (select_frame): Remove reference to
8235 deprecated_selected_frame_level_changed_hook.
8236 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
8237 declaration.
8238 * stack.c (deprecated_selected_frame_level_changed_hook):
8239 Likewise.
8240 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
8241 Rename to ...
8242 (tui_refresh_frame_and_register_information): ... this. Bail
8243 out if there is no stack. Don't update register information
8244 unless registers_too_p is true.
8245 (tui_print_frame_info_listing_hook): Rename to ...
8246 (tui_dummy_print_frame_info_listing_hook): ... this.
8247 (tui_before_prompt): New function.
8248 (tui_normal_stop): New function.
8249 (tui_before_prompt_observer): New observer.
8250 (tui_normal_stop_observer): New observer.
8251 (tui_install_hooks): Set
8252 deprecated_print_frame_info_listing_hook to
8253 tui_dummy_print_frame_info_listing_hook. Register
8254 tui_before_prompt_observer to call tui_before_prompt and
8255 tui_normal_stop_observer to call tui_normal_stop. Remove
8256 reference to deprecated_selected_frame_level_changed_hook.
8257 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
8258 and tui_normal_stop_observer. Remove reference to
8259 deprecated_selected_frame_level_changed_hook.
8260
8261 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
8262
8263 PR tui/13378
8264 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
8265 return an int instead of void. Return whether the locator
8266 window has changed.
8267 (tui_show_frame_info): If the locator info has not changed, then
8268 bail out early to avoid refreshing the windows.
8269
8270 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
8271
8272 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
8273 LOCATOR_WIN to tui_alloc_content.
8274
8275 2015-06-30 Yao Qi <yao.qi@linaro.org>
8276
8277 PR tdep/18605
8278 * arm-tdep.c (arm_get_next_pc_raw): Break for media
8279 instructions.
8280
8281 2015-06-29 Kevin Buettner <kevinb@redhat.com>
8282
8283 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
8284 (rx_dwarf_reg_to_regnum): New function.
8285 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
8286 unwinding.
8287
8288 2015-06-29 Pedro Alves <palves@redhat.com>
8289
8290 PR threads/18127
8291 * infcall.c (run_inferior_call): On infcall success, if the thread
8292 was marked stopped before, reset it back to stopped.
8293 * infrun.c (resume): Don't suppress the set_running calls when
8294 doing an infcall.
8295 (normal_stop): Only discard the finish_thread_state cleanup if the
8296 infcall succeeded.
8297
8298 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8299
8300 * MAINTAINERS (Write After Approval): Update my email address.
8301
8302 2015-06-26 Keith Seitz <keiths@redhat.com>
8303 Doug Evans <dje@google.com>
8304
8305 PR 16253
8306 * block.c (block_lookup_symbol): For non-function blocks,
8307 continue to search for a symbol with an exact domain match
8308 Otherwise, return any previously found "best domain" symbol.
8309 (block_lookup_symbol_primary): Likewise.
8310
8311 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
8312
8313 * NEWS: Mention the new option "history remove-duplicates".
8314 * top.c (history_remove_duplicates): New static variable.
8315 (show_history_remove_duplicates): New static function.
8316 (gdb_add_history): Conditionally remove duplicate history
8317 entries.
8318 (init_main): Add "history remove-duplicates" option.
8319
8320 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
8321
8322 * tui/tui-win.c (focus_completer): New static function.
8323 (_initialize_tui_win): Set the completion function of the
8324 "focus" command to focus_completer.
8325
8326 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8327
8328 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
8329 and language_asm..
8330 * symtab.c (find_function_start_sal): Likewise.
8331
8332 2015-06-25 Gary Benson <gbenson@redhat.com>
8333
8334 * solib.c (solib_find_1): Set local variable sysroot to NULL if
8335 it is the empty string after trailing slashes have been stripped.
8336
8337 2015-06-25 Gary Benson <gbenson@redhat.com>
8338
8339 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
8340 * infrun.c (follow_exec): Likewise.
8341 * remote.c (remote_filesystem_is_local): Likewise.
8342 * solib.c (solib_find_1): Likewise.
8343
8344 2015-06-24 Keith Seitz <keiths@redhat.com>
8345
8346 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
8347 return value from lrealpath.
8348
8349 2015-06-24 Mike Frysinger <vapier@gentoo.org>
8350
8351 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
8352
8353 2015-06-24 Mike Frysinger <vapier@gentoo.org>
8354
8355 * remote-sim.c: Include gdb_bfd.h.
8356 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
8357 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
8358
8359 2015-06-24 Yao Qi <yao.qi@linaro.org>
8360
8361 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
8362 set_gdbarch_get_siginfo_type.
8363 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
8364 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8365 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8366 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
8367 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
8368 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8369 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
8370 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
8371 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
8372 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
8373
8374 2015-06-24 Gary Benson <gbenson@redhat.com>
8375
8376 * common/buffer.c (stdint.h): Do not include.
8377 * common/print-utils.c (stdint.h): Likewise.
8378 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
8379 * compile/compile-c-types.c (gdb_assert.h): Likewise.
8380 * ft32-tdep.c (gdb_assert.h): Likewise.
8381 * guile/scm-utils.c (stdint.h): Likewise.
8382 * i386-linux-tdep.c (stdint.h): Likewise.
8383 * i386-tdep.c (stdint.h): Likewise.
8384 * nat/linux-btrace.c (stdint.h): Likewise.
8385 * nat/linux-btrace.h (stdint.h): Likewise.
8386 * nat/linux-ptrace.c (stdint.h): Likewise.
8387 * nat/mips-linux-watch.h (stdint.h): Likewise.
8388 * ppc-linux-nat.c (stdint.h): Likewise.
8389 * python/python-internal.h (stdint.h): Likewise.
8390 * stub-termcap.c (stdlib.h): Likewise.
8391 * target/target.h (stdint.h): Likewise.
8392 * xtensa-linux-nat.c (stdint.h): Likewise.
8393
8394 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
8395
8396 * top.c (init_history): Look at errno after calling strtol to
8397 properly map large GDBHISTSIZE values to infinity.
8398
8399 2015-06-23 Doug Evans <dje@google.com>
8400
8401 * inferior.h (struct inferior_suspend_state): Delete, unused.
8402 All references deleted.
8403
8404 2015-06-23 Mike Frysinger <vapier@gentoo.org>
8405
8406 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
8407 (microblaze_push_dummy_call): Likewise.
8408 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
8409 and set_gdbarch_push_dummy_call.
8410
8411 2015-06-23 Yao Qi <yao.qi@linaro.org>
8412
8413 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
8414 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
8415 (amd64_linux_store_inferior_registers): Likewise.
8416 * arm-linux-nat.c (fetch_fpregister): Likewise.
8417 (fetch_fpregs, store_fpregister): Likewise.
8418 (store_fpregister, store_fpregs): Likewise.
8419 (fetch_register, fetch_regs): Likewise.
8420 (store_register, store_regs): Likewise.
8421 (fetch_vfp_regs, store_vfp_regs): Likewise.
8422 (arm_linux_read_description): Check have_ptrace_getregset is
8423 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
8424 or TRIBOOL_FALSE.
8425 * i386-linux-nat.c (fetch_xstateregs): Check
8426 have_ptrace_getregset is not TRIBOOL_TRUE.
8427 (store_xstateregs): Likewise.
8428 * linux-nat.c (have_ptrace_getregset): Change its type to
8429 enum tribool.
8430 * linux-nat.h (tribool): New enum.
8431 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
8432 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
8433
8434 2015-06-19 Doug Evans <dje@google.com>
8435
8436 * NEWS: Mention Sun's version of stabs is no longer supported.
8437 * elfread.c (free_elfinfo): Delete. All uses updated.
8438 (elfstab_offset_sections): Delete. All uses updated.
8439 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
8440 * psympriv.h (partial_symtab) <section_offsets>: Delete.
8441 All uses updated.
8442 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
8443 All callers updated.
8444
8445 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
8446
8447 * common/rsp-low.c (needs_escaping): New.
8448 (remote_escape_output): Add unit_size parameter. Refactor to
8449 support multi-byte addressable units. Rename parameters.
8450 * common/rsp-low.h (remote_escape_output): Add unit_size
8451 parameter and rename others. Update doc.
8452 * remote.c (align_for_efficient_write): New.
8453 (remote_write_bytes_aux): Add unit_size parameter and use it.
8454 Rename some variables. Update doc.
8455 (remote_xfer_partial): Get unit size and use it.
8456 (remote_read_bytes_1): Add unit_size parameter and use it.
8457 Rename some variables. Update doc.
8458 (remote_write_bytes): Same.
8459 (remote_xfer_live_readonly_partial): Same.
8460 (remote_read_bytes): Same.
8461 (remote_flash_write): Update call to remote_write_bytes_aux.
8462 (remote_write_qxfer): Update call to remote_escape_output.
8463 (remote_search_memory): Same.
8464 (remote_hostio_pwrite): Same.
8465
8466 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
8467
8468 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
8469 locations as inserted.
8470 Update and expand comment about permanent locations.
8471 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
8472 Move comment to add_location_to_breakpoint.
8473 (update_global_location_list): Don't error out if a permanent
8474 breakpoint is not marked inserted.
8475 Don't error out if a non-permanent breakpoint location is inserted on
8476 top of a permanent breakpoint.
8477
8478 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
8479
8480 * breakpoint.c (make_breakpoint_permanent): Remove unused
8481 function.
8482 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
8483
8484 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
8485
8486 PR gdb/16999
8487 * NEWS: Mention new GDBHISTSIZE behavior.
8488 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
8489 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
8490
8491 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
8492
8493 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
8494 * top.c (init_history): Read from GDBHISTSIZE instead of
8495 HISTSIZE.
8496 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
8497
8498 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
8499
8500 * top.c (gdb_safe_append_history): Do not call
8501 history_truncate_file if the history is not stifled.
8502
8503 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
8504
8505 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
8506 * syscalls/s390x-linux.xml: Likewise.
8507
8508 2015-06-16 Michael Eager <eager@eagercon.com>
8509
8510 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
8511
8512 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
8513
8514 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
8515 target_terminal_ours_for_output() before calling
8516 tui_show_frame_info(), and restore the original terminal
8517 settings afterwards.
8518
8519 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
8520
8521 * arm-linux-nat.c: Include nat/linux-ptrace.h.
8522
8523 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
8524
8525 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
8526 memory unit size.
8527 (mi_cmd_data_write_memory_bytes): Same.
8528
8529 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
8530
8531 * corefile.c (write_memory): Update doc.
8532 * gdbcore.h (write_memory): Same.
8533
8534 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8535
8536 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
8537 (dump_mapping_p): Use it for parameter filterflags.
8538 (linux_find_memory_regions_full): Use it for variable filterflags.
8539
8540 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8541 Jan Kratochvil <jan.kratochvil@redhat.com>
8542
8543 Merge multiple hex conversions.
8544 * monitor.c: Include rsp-low.h.
8545 (fromhex): Remove definition.
8546
8547 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8548 Jan Kratochvil <jan.kratochvil@redhat.com>
8549
8550 Move utility functions to common/.
8551 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
8552 Move defs to common/common-utils.c.
8553 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
8554 (skip_to_space_const): Move decls to common/common-utils.h.
8555 * common/common-defs.h: Move include of common-types.h before
8556 common-utils.h.
8557 * common/common-utils.c: Include host-defs.h and ctype.h.
8558 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
8559 from utils.c.
8560 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
8561 cli/cli-utils.c.
8562 * common/common-utils.h (strtoulst): Move decl from utils.h.
8563 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
8564 Move from cli/cli-utils.h.
8565 * common/host-defs.h: Include limits.h.
8566 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
8567 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
8568 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
8569 common/common-utils.h.
8570 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
8571 (strtoulst): Move to common/common-utils.c.
8572 * utils.h (strtoulst): Moved decl to common/common-utils.h.
8573
8574 2015-06-15 Yao Qi <yao.qi@linaro.org>
8575
8576 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
8577
8578 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
8579
8580 * build-id.c: Don't include elf-bfd.h.
8581 (build_id_bfd_get): Use bfd_build_id.
8582 (build_id_verify): Ditto.
8583 * build-id.h: Ditto.
8584 (find_separate_debug_file_by_buildid): Ditto.
8585 * python/py-objfile.c: Don't include elf-bfd.h.
8586 (objfpy_get_build_id) Use bfd_build_id.
8587 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
8588 * coffread.c: Include build-id.h.
8589 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
8590
8591 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
8592
8593 * windows-nat.c (do_windows_fetch_inferior_registers)
8594 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
8595 conditional with __CYGWIN__.
8596
8597 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
8598
8599 * completer.c: Add arch-utils.h include.
8600 (enum reg_completer_targets): New enum.
8601 (reg_or_group_completer_1): New function containing old
8602 reg_or_group_completer, add and use new parameter to control what
8603 is completed on. Use get_current_arch rather than architecture of
8604 currently selected frame.
8605 (reg_or_group_completer): Call new reg_or_group_completer_1.
8606 (reggroup_completer): Call new reg_or_group_completer_1.
8607 * completer.h (reggroup_completer): Add declaration.
8608 * tui/tui-regs.c: Add 'completer.h' include.
8609 (tui_reg_next_command): Renamed to...
8610 (tui_reg_next): ...this. Adjust parameters and return rather than
8611 display new group.
8612 (tui_reg_prev_command): Renamed to...
8613 (tui_reg_prev): ...this. Adjust parameters and return rather than
8614 display new group.
8615 (tui_reg_float_command): Delete.
8616 (tui_reg_general_command): Delete.
8617 (tui_reg_system_command): Delete.
8618 (tui_reg_command): Rewrite to perform switching of register group.
8619 Add header comment.
8620 (tuireglist): Remove.
8621 (tui_reggroup_completer): New function.
8622 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
8623 creation of 'tui reg' command.
8624 * NEWS: Add comment about 'tui reg' changes.
8625
8626 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
8627
8628 * target.c (target_read): Consider addressable unit size when
8629 reading from a memory object.
8630 (read_memory_robust): Same.
8631 (read_whatever_is_readable): Same.
8632 (target_write_with_progress): Consider addressable unit size
8633 when writing to a memory object.
8634 * target.h (target_read): Update documentation.
8635 (target_write): Add documentation.
8636
8637 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
8638
8639 * arch-utils.h (default_addressable_memory_unit_size): New.
8640 * arch-utils.c (default_addressable_memory_unit_size): New.
8641 * gdbarch.sh (addressable_memory_unit_size): New.
8642 * gdbarch.h: Re-generate.
8643 * gdbarch.c: Re-generate.
8644
8645 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
8646
8647 * target.c (target_read): Rename variables and use
8648 TARGET_XFER_E_IO.
8649 (target_read_with_progress): Same.
8650 (read_memory_robust): Constify parameters and rename
8651 variables.
8652 (read_whatever_is_readable): Constify parameters,
8653 rename variables, adjust formatting.
8654 * target.h (read_memory_robust): Constify parameters.
8655
8656 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
8657
8658 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
8659 synthetic (non-AltiVec) vector types.
8660 (ppc64_sysv_abi_return_value): Likewise.
8661
8662 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
8663
8664 PR breakpoints/16465
8665 * breakpoint.c (create_breakpoint): Save extra_string for
8666 pending breakpoints.
8667
8668 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
8669
8670 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
8671 and bt_mask to CORE_ADDR.
8672
8673 2015-06-11 Gary Benson <gbenson@redhat.com>
8674
8675 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
8676 (mnsh_recv_message): Likewise.
8677
8678 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
8679
8680 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
8681 long long int and plongest instead of %ll.
8682
8683 2015-06-11 Gary Benson <gbenson@redhat.com>
8684
8685 * nat/linux-namespaces.c (gdb_wait.h): New include.
8686 (sys/wait.h): Do not include.
8687
8688 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
8689
8690 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
8691 end_sequence is true.
8692
8693 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8694
8695 Code cleanup.
8696 * solib-target.c (library_list_start_list): Use explicit NULL
8697 comparison.
8698
8699 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8700
8701 * solib-target.c (library_list_start_list): Do not dereference
8702 variable version in its initialization. Make the VERSION check handle
8703 NULL.
8704 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
8705
8706 2015-06-10 Gary Benson <gbenson@redhat.com>
8707
8708 * NEWS: Announce support for direct access of executable and
8709 shared library files when attaching to inferiors in containers
8710 on GNU/Linux systems.
8711
8712 2015-06-10 Gary Benson <gbenson@redhat.com>
8713
8714 * remote.c (struct remote_state) <fs_pid>: New field.
8715 (new_remote_state): Initialize the above.
8716 (PACKET_vFile_setfs): New enum value.
8717 (remote_hostio_set_filesystem): New function.
8718 (remote_hostio_open): Call the above.
8719 (remote_hostio_unlink): Likewise.
8720 (remote_hostio_readlink): Likewise.
8721 (_initialize_remote): Register new "set/show remote
8722 hostio-setfs-packet" command.
8723 * NEWS: Announce new vFile:setfs packet.
8724
8725 2015-06-10 Gary Benson <gbenson@redhat.com>
8726
8727 * linux-nat.c (nat/linux-namespaces.h): New include.
8728 (fileio.h): Likewise.
8729 (linux_nat_filesystem_is_local): New function.
8730 (linux_nat_fileio_pid_of): Likewise.
8731 (linux_nat_fileio_open): Likewise.
8732 (linux_nat_fileio_readlink): Likewise.
8733 (linux_nat_fileio_unlink): Likewise.
8734 (linux_nat_add_target): Initialize to_filesystem_is_local,
8735 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
8736 (_initialize_linux_nat): New "set/show debug linux-namespaces"
8737 commands.
8738 * NEWS: Mention new "set/show debug linux-namespaces" commands.
8739
8740 2015-06-10 Gary Benson <gbenson@redhat.com>
8741
8742 * target.h (struct inferior): New forward declaration.
8743 (struct target_ops) <to_filesystem_is_local>: Update comment.
8744 (struct target_ops) <to_fileio_open>: New argument inf.
8745 Update comment. All implementations updated.
8746 (struct target_ops) <to_fileio_unlink>: Likewise.
8747 (struct target_ops) <to_fileio_readlink>: Likewise.
8748 (target_filesystem_is_local): Update comment.
8749 (target_fileio_open): New argument inf. Update comment.
8750 (target_fileio_unlink): Likewise.
8751 (target_fileio_readlink): Likewise.
8752 (target_fileio_read_alloc): Likewise.
8753 (target_fileio_read_stralloc): Likewise.
8754 * target.c (target_fileio_open): New argument inf.
8755 Pass inf to implementation. Update debug printing.
8756 (target_fileio_unlink): Likewise.
8757 (target_fileio_readlink): Likewise.
8758 (target_fileio_read_alloc_1): New argument inf. Pass inf
8759 to target_fileio_open.
8760 (target_fileio_read_alloc): New argument inf. Pass inf to
8761 target_fileio_read_alloc_1.
8762 (target_fileio_read_stralloc): Likewise.
8763 * gdb_bfd.c (inferior.h): New include.
8764 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
8765 argument with new argument "inferior". Pass inferior to
8766 target_fileio_open.
8767 (gdb_bfd_open): Supply inferior argument to
8768 gdb_bfd_iovec_fileio_open.
8769 * linux-tdep.c (linux_info_proc): Supply inf argument to
8770 relevant target_fileio calls.
8771 (linux_find_memory_regions_full): Likewise.
8772 (linux_fill_prpsinfo): Likewise.
8773 * remote.c (remote_filesystem_is_local): Supply inf
8774 argument to remote_hostio_open.
8775 (remote_file_put): Likewise.
8776 (remote_file_get): Likewise.
8777 (remote_file_delete): Supply inf argument to
8778 remote_hostio_unlink.
8779
8780 2015-06-10 Gary Benson <gbenson@redhat.com>
8781
8782 * inf-child.c (inf_child_fileio_open): Replace comment.
8783 (inf_child_fileio_pwrite): Likewise.
8784 (inf_child_fileio_pread): Likewise.
8785 (inf_child_fileio_fstat): Insert blank line before comment.
8786 (inf_child_fileio_close): Replace comment.
8787 (inf_child_fileio_unlink): Likewise.
8788 (inf_child_fileio_readlink): Likewise.
8789 * remote.c (remote_hostio_open): Likewise.
8790 (remote_hostio_pread): Likewise.
8791 (remote_hostio_pwrite): Likewise.
8792 (remote_hostio_close): Likewise.
8793 (remote_hostio_unlink): Likewise.
8794 (remote_hostio_readlink): Likewise.
8795 (remote_hostio_fstat): Likewise.
8796 (remote_filesystem_is_local): Likewise.
8797 * target.c (target_fileio_open): Likewise.
8798 (target_fileio_pwrite): Likewise.
8799 (target_fileio_pread): Likewise.
8800 (target_fileio_fstat): Insert blank line before comment.
8801 (target_fileio_close): Replace comment.
8802 (target_fileio_unlink): Likewise.
8803 (target_fileio_readlink): Likewise.
8804 (target_fileio_read_alloc): Likewise.
8805 (target_fileio_read_stralloc): Likewise.
8806
8807 2015-06-10 Gary Benson <gbenson@redhat.com>
8808
8809 * linux-thread-db.c (nat/linux-namespaces.h): New include.
8810 (check_pid_namespace_match): Use linux_ns_same rather than
8811 linux_proc_pid_get_ns to spot PID namespace mismatches.
8812 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
8813 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
8814
8815 2015-06-10 Gary Benson <gbenson@redhat.com>
8816
8817 * configure.ac (AC_CHECK_FUNCS): Add setns.
8818 * config.in: Regenerate.
8819 * configure: Likewise.
8820 * nat/linux-namespaces.h: New file.
8821 * nat/linux-namespaces.c: Likewise.
8822 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
8823 (linux-namespaces.o): New rule.
8824 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
8825 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
8826 * config/arm/linux.mh (NATDEPFILES): Likewise.
8827 * config/i386/linux.mh (NATDEPFILES): Likewise.
8828 * config/i386/linux64.mh (NATDEPFILES): Likewise.
8829 * config/ia64/linux.mh (NATDEPFILES): Likewise.
8830 * config/m32r/linux.mh (NATDEPFILES): Likewise.
8831 * config/m68k/linux.mh (NATDEPFILES): Likewise.
8832 * config/mips/linux.mh (NATDEPFILES): Likewise.
8833 * config/pa/linux.mh (NATDEPFILES): Likewise.
8834 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
8835 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
8836 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
8837 * config/s390/linux.mh (NATDEPFILES): Likewise.
8838 * config/sparc/linux.mh (NATDEPFILES): Likewise.
8839 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
8840 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
8841 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
8842
8843 2015-06-10 Gary Benson <gbenson@redhat.com>
8844
8845 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
8846 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
8847 (make_cleanup_close): Likewise.
8848 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
8849 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
8850 (make_cleanup_close): Likewise.
8851
8852 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
8853
8854 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
8855 from SuspendThread().
8856
8857 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
8858
8859 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
8860 from OutputDebugString.
8861
8862 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
8863 Mircea Gherzan <mircea.gherzan@intel.com>
8864
8865 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
8866 MPX_BT_MASK_32): New macros.
8867 (i386_mpx_set_bounds): New function that implements
8868 the command "set-mpx-bound".
8869 (i386_mpx_enabled): Helper function to test MPX availability.
8870 (i386_mpx_bd_base): Helper function to calculate the base directory
8871 address.
8872 (i386_mpx_get_bt_entry): Helper function to access a bound
8873 table entry.
8874 (i386_mpx_print_bounds): Effectively display bound information.
8875 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
8876 "show mpx".
8877 (_initialize_i386_tdep):
8878 Add "bound" to the commands "show mpx" and "set mpx" commands.
8879 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
8880 and "show mpx" commands.
8881 * NEWS: List new commands for MPX support.
8882
8883 2015-06-09 Gary Benson <gbenson@redhat.com>
8884
8885 * common/fileio.h (fileio_to_host_mode): New declaration.
8886 * common/fileio.c (fileio_to_host_mode): New Function.
8887 * inf-child.c (inf_child_fileio_open): Process mode argument
8888 with fileio_to_host_mode.
8889
8890 2015-06-09 Gary Benson <gbenson@redhat.com>
8891
8892 * common/fileio.c (fileio_mode_pack): Fix preprocessor
8893 conditional.
8894
8895 2015-06-05 Gary Benson <gbenson@redhat.com>
8896
8897 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
8898 * remote.c (remote_filesystem_is_local): ...here.
8899
8900 2015-06-04 Yao Qi <yao.qi@linaro.org>
8901
8902 * gdbarch.c: Regenerate it.
8903
8904 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8905
8906 * arch-utils.c (default_infcall_munmap): New.
8907 * arch-utils.h (default_infcall_munmap): New declaration.
8908 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
8909 (munmap_list_free, munmap_listp_free_cleanup): New.
8910 (struct setup_sections_data): Add field munmap_list_headp.
8911 (setup_sections): Call munmap_list_add.
8912 (compile_object_load): New variable munmap_list_head, initialize
8913 setup_sections_data.munmap_list_headp, return munmap_list_head.
8914 * compile/compile-object-load.h (struct munmap_list): New declaration.
8915 (struct compile_module): Add field munmap_list_head.
8916 (munmap_list_free): New declaration.
8917 * compile/compile-object-run.c (struct do_module_cleanup): Add field
8918 munmap_list_head.
8919 (do_module_cleanup): Call munmap_list_free.
8920 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
8921 * gdbarch.c: Regenerate.
8922 * gdbarch.h: Regenerate.
8923 * gdbarch.sh (infcall_munmap): New.
8924 * linux-tdep.c (linux_infcall_munmap): New.
8925 (linux_init_abi): Install it.
8926
8927 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
8928
8929 PR gdb/15564
8930 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
8931
8932 2015-06-02 Yao Qi <yao.qi@linaro.org>
8933
8934 * i386-linux-nat.c: Include linux-nat.h.
8935
8936 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
8937 Jan Kratochvil <jan.kratochvil@redhat.com>
8938
8939 PR symtab/18392
8940 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
8941 assertion.
8942 * dwarf2loc.c (chain_candidate): Likewise.
8943
8944 2015-06-01 Yao Qi <yao.qi@linaro.org>
8945
8946 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
8947 (store_vfp_regs): Use PTRACE_SETREGSET.
8948
8949 2015-06-01 Yao Qi <yao.qi@linaro.org>
8950
8951 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
8952 (fetch_fpregs): Likewise.
8953 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
8954 (store_fpregs): Likewise.
8955
8956 2015-06-01 Yao Qi <yao.qi@linaro.org>
8957
8958 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
8959 (fetch_regs): Likewise.
8960 (store_regs): Use PTRACE_SETREGSET.
8961 (store_register): Likewise.
8962
8963 2015-06-01 Yao Qi <yao.qi@linaro.org>
8964
8965 * arm-linux-nat.c (arm_linux_read_description): Check whether
8966 kernel supports PTRACE_GETREGSET.
8967
8968 2015-06-01 Yao Qi <yao.qi@linaro.org>
8969
8970 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
8971 * linux-nat.c: ... here.
8972 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
8973 to ...
8974 * linux-nat.h: ... here.
8975
8976 2015-06-01 Yao Qi <yao.qi@linaro.org>
8977
8978 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
8979 * i386-linux-nat.c: Likewise.
8980 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
8981 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
8982 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8983 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
8984 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8985
8986 2015-05-30 Eli Zaretskii <eliz@gnu.org>
8987
8988 * go32-nat.c (go32_xfer_memory): Fix the return value to be
8989 compatible to what read_child and write_child return. This
8990 unbreaks that DJGPP build of GDB which was broken since v7.7.
8991
8992 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
8993
8994 * MAINTAINERS (Write After Approval): Add Martin Galvan.
8995
8996 2015-05-29 Roland McGrath <mcgrathr@google.com>
8997
8998 PR gdb/18464
8999 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
9000 rather than internal_error for an unrecognized value.
9001
9002 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
9003
9004 * xtensa-tdep.c (xtensa_pseudo_register_read)
9005 (xtensa_pseudo_register_write): Don't alias last pseudo register
9006 to a1.
9007
9008 2015-05-28 Don Breazeal <donb@codesourcery.com>
9009
9010 * infrun.c (follow_fork_inferior): Ensure the use of
9011 process-style ptids (pid,0,0) in verbose/debug "Detaching"
9012 messages.
9013
9014 2015-05-28 Doug Evans <dje@google.com>
9015
9016 * dwarf2read.c (record_line_ftype): Remove, duplicate.
9017
9018 2015-05-28 Yao Qi <yao.qi@linaro.org>
9019
9020 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
9021 (arm_linux_fetch_inferior_registers): Use
9022 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
9023 (arm_linux_store_inferior_registers): Likewise.
9024 (arm_linux_read_description): Don't set
9025 arm_linux_has_wmmx_registers.
9026 * arm-tdep.c (arm_gdbarch_init): Set
9027 tdep->have_wmmx_registers according target descriptions.
9028 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
9029 field.
9030
9031 2015-05-28 Yao Qi <yao.qi@linaro.org>
9032
9033 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
9034 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
9035 instead of arm_linux_vfp_register_count.
9036 (store_vfp_regs): Likewise.
9037 (arm_linux_fetch_inferior_registers): Likewise.
9038 (arm_linux_store_inferior_registers): Likewise.
9039 (arm_linux_read_description): Don't set
9040 arm_linux_vfp_register_count.
9041 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
9042 Adjust.
9043 * arm-tdep.c (arm_gdbarch_init): Add assert on
9044 vfp_register_count.
9045 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
9046 field to vfp_register_count. All users updated.
9047
9048 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
9049
9050 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
9051 ELFOSABI_GNU binaries.
9052
9053 2015-05-27 Doug Evans <dje@google.com>
9054
9055 * dwarf2read.c (lnp_state_machine): New typedef.
9056 (lnp_reader_state): New typedef.
9057 (dwarf_record_line_1): Renamed from dwarf_record_line.
9058 All callers updated.
9059 (dwarf_record_line): New function.
9060 (init_lnp_state_machine): New function.
9061 (check_line_address): Replace p_record_line parameter with state.
9062 All callers updated.
9063 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
9064 Update to record state in lnp_state_machine.
9065
9066 2015-05-27 Doug Evans <dje@google.com>
9067
9068 * dwarf2read.c (record_line_ftype): New typedef.
9069 (check_line_address): New function.
9070 (dwarf_decode_lines_1): Call it.
9071
9072 2015-05-27 Doug Evans <dje@google.com>
9073
9074 * NEWS: Mention "set debug dwarf-line".
9075 * dwarf2read.c (dwarf_line_debug): New static global.
9076 (add_include_dir): Add debug dwarf-line support.
9077 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
9078 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
9079
9080 2015-05-27 Doug Evans <dje@google.com>
9081
9082 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
9083 All callers updated.
9084 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
9085 * cp-support.h (cp_lookup_nested_symbol): Update.
9086
9087 2015-05-27 Doug Evans <dje@google.com>
9088
9089 PR symtab/18258
9090 * block.c (block_find_symbol): New function.
9091 (block_find_non_opaque_type): Ditto.
9092 (block_find_non_opaque_type_preferred): Ditto.
9093 * block.h (block_symbol_matcher_ftype): New typedef.
9094 (block_find_symbol): Declare.
9095 (block_find_non_opaque_type): Ditto.
9096 (block_find_non_opaque_type_preferred): Ditto.
9097 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
9098 * psymtab.c (psym_lookup_symbol): Ditto.
9099 * symtab.c (basic_lookup_transparent_type_1): New function.
9100 (basic_lookup_transparent_type): Call it.
9101
9102 2015-05-27 Yao Qi <yao.qi@linaro.org>
9103
9104 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
9105 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
9106
9107 2015-05-27 Yao Qi <yao.qi@linaro.org>
9108
9109 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
9110 before operator &&.
9111 (aarch64_record_load_store): Likewise.
9112
9113 2015-05-26 Doug Evans <dje@google.com>
9114
9115 PR c++/18141, c++/18417.
9116 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
9117 a typedef.
9118
9119 2015-05-26 Doug Evans <dje@google.com>
9120
9121 * NEWS: Add entries for command renamings.
9122 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
9123 All uses updated.
9124 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
9125 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
9126 All uses updated.
9127 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
9128 All callers updated. Fix spelling of DWARF in help text.
9129 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
9130 All uses updated.
9131 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
9132 All uses updated.
9133 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
9134 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
9135 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
9136 All uses updated.
9137 (show_dwarf_always_disassemble): Renamed from
9138 show_dwarf2_always_disassemble. All callers updated.
9139 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
9140 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
9141 "set/show dwarf max-cache-age". Rename
9142 "set/show dwarf2 always-disassemble" to
9143 "set/show dwarf always-disassemble". Rename
9144 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
9145 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
9146
9147 2015-05-26 Doug Evans <dje@google.com>
9148
9149 PR python/18438
9150 * python/py-lazy-string.c (stpy_convert_to_value): Use
9151 gdbpy_gdb_memory_error not PyExc_MemoryError.
9152 (gdbpy_create_lazy_string_object): Ditto.
9153
9154 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
9155
9156 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
9157
9158 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
9159
9160 * tui/tui-regs.c (tui_reg_prev_command): New function.
9161 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
9162 * reggroups.c (reggroup_prev): New function.
9163 * reggroups.h (reggroup_prev): Add declaration. Update comment.
9164
9165 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
9166 Yao Qi <yao.qi@linaro.org>
9167
9168 * aarch64-linux-tdep.c: Include linux-record.h and
9169 record-full.h.
9170 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
9171 (aarch64_syscall): New enum.
9172 (aarch64_canonicalize_syscall): New function.
9173 (aarch64_all_but_pc_registers_record): New function.
9174 (aarch64_linux_syscall_record): New function.
9175 (aarch64_linux_init_abi): Install AArch64 process record
9176 handler. Update to handle syscall recording.
9177 * aarch64-tdep.c: Include record.h and record-full.h.
9178 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
9179 (struct aarch64_mem_r): Define.
9180 (aarch64_record_result): New enum.
9181 (struct insn_decode_record): Define.
9182 (insn_decode_record): New typedef.
9183 (aarch64_record_data_proc_reg): New function.
9184 (aarch64_record_data_proc_imm): New function.
9185 (aarch64_record_branch_except_sys): New function.
9186 (aarch64_record_load_store): New function.
9187 (aarch64_record_data_proc_simd_fp): New function.
9188 (aarch64_record_asimd_load_store): New function.
9189 (aarch64_record_decode_insn_handler): New function.
9190 (deallocate_reg_mem): New function.
9191 (aarch64_process_record): New function.
9192 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
9193 New field.
9194 (aarch64_process_record): New extern declaration.
9195 * configure.tgt: Add linux-record.o to gdb_target_obs.
9196 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
9197
9198 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
9199
9200 * NEWS: Add a note on process record-replay support on aarch64*-linux*
9201 targets.
9202
9203 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
9204
9205 * amd64-tdep.c: Replace in_function_epilogue_p with
9206 stack_frame_destroyed_p throughout.
9207 * arch-utils.c: Ditto.
9208 * arch-utils.h: Ditto.
9209 * arm-tdep.c: Ditto.
9210 * breakpoint.c: Ditto.
9211 * gdbarch.sh: Ditto.
9212 * hppa-tdep.c: Ditto.
9213 * i386-tdep.c: Ditto.
9214 * mips-tdep.c: Ditto.
9215 * nios2-tdep.c: Ditto.
9216 * rs6000-tdep.c: Ditto.
9217 * s390-linux-tdep.c: Ditto.
9218 * score-tdep.c: Ditto.
9219 * sh-tdep.c: Ditto.
9220 * sparc-tdep.c: Ditto.
9221 * sparc-tdep.h: Ditto.
9222 * sparc64-tdep.c: Ditto.
9223 * spu-tdep.c: Ditto.
9224 * tic6x-tdep.c: Ditto.
9225 * tilegx-tdep.c: Ditto.
9226 * xstormy16-tdep.c: Ditto.
9227 * gdbarch.c, gdbarch.h: Re-generated.
9228
9229 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9230
9231 * NEWS: Mention 'tui enable' and 'tui disable'.
9232 * tui/tui.c (tui_enable_command): New function.
9233 (tui_disable_command): New function.
9234 (_initialize_tui): New function.
9235
9236 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9237
9238 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
9239
9240 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9241
9242 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
9243 buf_ptr is freed.
9244
9245 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9246
9247 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
9248 into ...
9249 (tui_set_layout_for_display_command): ...here, before calling
9250 tui_set_layout. Only set the layout if gdb has not already
9251 entered the TUI_FAILURE state.
9252
9253 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9254
9255 * tui/tui-layout.c (layout_completer): New function.
9256 (_initialize_tui_layout): Set completer on layout command.
9257
9258 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9259
9260 * tui/tui-layout.c (tui_set_layout): Remove
9261 tui_register_display_type parameter. Remove all checking of this
9262 parameter, and reindent function. Update header comment.
9263 (tui_set_layout_for_display_command): Rename to...
9264 (tui_set_layout_by_name): ...this, and don't check for different
9265 register class types, don't pass a tui_register_display_type to
9266 tui_set_layout. Update header comment.
9267 (layout_names): Remove register set specific names.
9268 * tui/tui-layout.h (tui_set_layout): Remove
9269 tui_register_display_type parameter.
9270 * tui/tui.c (tui_rl_change_windows): Don't pass a
9271 tui_register_display_type to tui_set_layout.
9272 (tui_rl_delete_other_windows): Likewise.
9273 (tui_enable): Likewise.
9274 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
9275 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
9276 (TUI_GENERAL_REGS_NAME): Remove.
9277 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
9278 (TUI_SPECIAL_REGS_NAME): Remove.
9279 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
9280 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
9281 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
9282 (enum tui_register_display_type): Remove.
9283 (struct tui_layout_def): Remove regs_display_type and
9284 float_regs_display_type fields.
9285 (struct tui_data_info): Remove regs_display_type field.
9286 (tui_layout_command): Use new name for
9287 tui_set_layout_for_display_command.
9288 * tui/tui-data.c (layout_def): Don't initialise removed fields.
9289 (tui_clear_win_detail): Don't initialise removed fields of
9290 win_info.
9291 * tui/tui-regs.c (tui_show_registers): Use new name for
9292 tui_set_layout_for_display_command.
9293 * tui/tui.h (tui_set_layout_for_display_command): Rename
9294 declaration to...
9295 (tui_set_layout_by_name): ...this.
9296 * printcmd.c (display_command): Remove tui related layout call,
9297 and reindent.
9298
9299 2015-05-20 Joel Brobecker <brobecker@adacore.com>
9300
9301 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
9302 (handle_inferior_event): New function.
9303
9304 2015-05-20 Joel Brobecker <brobecker@adacore.com>
9305
9306 * ada-lang.c (to_fixed_array_type): Rename local variable
9307 typename into type_name.
9308
9309 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9310
9311 Fix ASAN crash for gdb.compile/compile.exp.
9312 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
9313
9314 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9315
9316 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
9317 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
9318 * compile/compile-object-load.c (setup_sections, compile_object_load):
9319 Likewise.
9320 * compile/compile.c (compile_to_object): Likewise.
9321
9322 2015-05-16 Doug Evans <xdje42@gmail.com>
9323
9324 * NEWS: Mention support for unbuffered Guile memory ports.
9325 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
9326 (ioscm_lseek_address): Improve overflow calculation.
9327 (gdbscm_memory_port_fill_input): Add assert.
9328 (gdbscm_memory_port_write): Handle unbuffered ports.
9329 Handle large writes identical to Guile's fport_write.
9330 (gdbscm_memory_port_seek): Fix seeking past end check.
9331 (gdbscm_memory_port_close): Handle closing unbuffered port.
9332 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
9333 (ioscm_init_memory_port): Handle unbuffered ports.
9334 (ioscm_reinit_memory_port): Ditto.
9335 (ioscm_init_memory_port): Update size calculation.
9336 (gdbscm_open_memory): Support zero sized ports.
9337
9338 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9339
9340 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
9341 variable compiler warnings.
9342
9343 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9344
9345 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
9346
9347 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9348 Phil Muldoon <pmuldoon@redhat.com>
9349
9350 * NEWS (Changes since GDB 7.9): Add compile print.
9351 * compile/compile-c-support.c (add_code_header, add_code_footer)
9352 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
9353 COMPILE_I_PRINT_VALUE_SCOPE.
9354 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
9355 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
9356 New.
9357 * compile/compile-object-load.c: Include block.h.
9358 (get_out_value_type): New function.
9359 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
9360 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
9361 OUT_VALUE_TYPE.
9362 * compile/compile-object-load.h (struct compile_module): Add fields
9363 out_value_addr and out_value_type.
9364 * compile/compile-object-run.c: Include valprint.h and compile.h.
9365 (struct do_module_cleanup): Add fields out_value_addr and
9366 out_value_type.
9367 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
9368 COMPILE_I_PRINT_VALUE_SCOPE.
9369 (compile_object_run): Propagate out_value_addr and out_value_type.
9370 Pass OUT_VALUE_ADDR.
9371 * compile/compile.c: Include valprint.h.
9372 (compile_print_value, compile_print_command): New functions.
9373 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
9374 (_initialize_compile): Update compile code help text. Install
9375 compile_print_command.
9376 * compile/compile.h (compile_print_value): New prototype.
9377 * defs.h (enum compile_i_scope_types): Add
9378 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
9379
9380 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9381
9382 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
9383 Rely on its parameter count.
9384 (compile_object_load): Replace lookup_minimal_symbol_text by
9385 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
9386 return value.
9387 * compile/compile-object-load.h (struct compile_module): Replace
9388 func_addr by func_sym.
9389 * compile/compile-object-run.c: Include block.h.
9390 (compile_object_run): Reset module variable after it is freed. Use
9391 FUNC_SYM instead of FUNC_ADDR. Rely on it.
9392
9393 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9394
9395 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
9396 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
9397 (c_compute_program): Call generate_register_struct after typedefs.
9398 * compile/compile-loc2c.c (push, pushf_register_address)
9399 (pushf_register): Cast to GCC_UINTPTR.
9400 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
9401 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
9402 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
9403 * compile/compile.c (_initialize_compile): Enable warnings for
9404 COMPILE_ARGS.
9405
9406 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9407
9408 * cli/cli-script.c (execute_control_command): Update
9409 eval_compile_command caller.
9410 * compile/compile-object-load.c (compile_object_load): Add parameters
9411 scope and scope_data. Set them.
9412 * compile/compile-object-load.h (struct compile_module): Add fields
9413 scope and scope_data.
9414 (compile_object_load): Add parameters scope and scope_data.
9415 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
9416 scope and scope_data.
9417 (compile_object_run): Propagate the fields scope and scope_data.
9418 * compile/compile.c (compile_file_command, compile_code_command):
9419 Update eval_compile_command callers.
9420 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
9421 * compile/compile.h (eval_compile_command): Add parameter scope_data.
9422 * defs.h (struct command_line): Add field scope_data.
9423
9424 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9425
9426 * printcmd.c (struct format_data): Move it to valprint.h.
9427 (print_command_parse_format, print_value): New functions from ...
9428 (print_command_1): ... here. Call them.
9429 * valprint.h (struct format_data): Move it here from printcmd.c.
9430 (print_command_parse_format, print_value): New declarations.
9431
9432 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9433
9434 * compile/compile-object-load.c (compile_object_load): Add
9435 COMPILE_DEBUG message.
9436
9437 2015-05-15 Jerome Guitton <guitton@adacore.com>
9438
9439 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
9440 index to get element instead of enum value.
9441 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
9442 of index to compute length, but enum values to compute bounds.
9443 (ada_array_length): Use enum position of index instead of enum value.
9444 (pos_atr): Move position computation to...
9445 (ada_evaluate_subexp): Use enum values to compute bounds.
9446 * gdbtypes.c (discrete_position): ...this new function.
9447 * gdbtypes.h (discrete_position): New function declaration.
9448 * valprint.c (val_print_array_elements): Call discrete_position
9449 to handle array indexed by non-contiguous enumeration types.
9450
9451 2015-05-15 Jerome Guitton <guitton@adacore.com>
9452
9453 * ada-lang.c (find_parallel_type_by_descriptive_type):
9454 Go through typedefs during lookup.
9455 (to_fixed_array_type): Add support for non-bit packed arrays
9456 as variable-length fields.
9457
9458 2015-05-15 Pedro Alves <palves@redhat.com>
9459 Simon Marchi <simon.marchi@ericsson.com>
9460
9461 * event-loop.c (gdb_notifier) <next_file_handler,
9462 next_poll_fds_index>: New fields.
9463 (get_next_file_handler_to_handle_and_advance): New function.
9464 (delete_file_handler): If deleting the next file handler to
9465 handle, advance to the next file handler.
9466 (gdb_wait_for_event): Bail early if no event fired. Poll file
9467 handlers in round-robin fashion.
9468
9469 2015-05-15 Pedro Alves <palves@redhat.com>
9470
9471 * linux-tdep.c (linux_find_memory_regions_full): Rename local
9472 'private' to 'priv'.
9473
9474 2015-05-15 Pedro Alves <palves@redhat.com>
9475
9476 * nat/linux-nat.h: Include "target/waitstatus.h".
9477
9478 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
9479
9480 * python/py-unwind.c (struct reg_info): Move out of ...
9481 (struct cached_frame_info): ... this scope.
9482 (pending_frame_object_type, unwind_info_object_type): Make extern.
9483
9484 2015-05-15 Joel Brobecker <brobecker@adacore.com>
9485
9486 * ada-lang.c (ada_value_primitive_packed_val): Make sure
9487 accumSize is never negative.
9488
9489 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
9490
9491 * tui/tui-command.c: Remove include of <ctype.h>.
9492 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
9493
9494 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
9495
9496 * dwarf2read.c (die_needs_namespace): Return 1 for
9497 DW_TAG_inlined_subroutine.
9498
9499 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9500
9501 * regcache.c (regcache_cpy_no_passthrough): New declaration.
9502 (regcache_cpy_no_passthrough): Make it static, add function comment.
9503 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
9504 (regcache_cpy_no_passthrough): Remove declaration.
9505
9506 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9507
9508 * gdbthread.h (struct thread_control_state): Update comment for
9509 proceed_to_finish.
9510 * infcall.c (run_inferior_call): Update comment about
9511 proceed_to_finish.
9512 * infcmd.c (get_return_value): Update comment about stop_registers.
9513 (finish_forward): Update comment about proceed_to_finish.
9514 * infrun.c (stop_registers): Remove.
9515 (clear_proceed_status, normal_stop): Remove stop_registers handling.
9516 * infrun.h (stop_registers): Remove.
9517
9518 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9519
9520 * infcall.c (struct dummy_frame_context_saver)
9521 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
9522 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
9523 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
9524 New.
9525 (call_function_by_hand_dummy): Move discard_cleanups of
9526 inf_status_cleanup before dummy_frame_push. Call
9527 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
9528 Use dummy_frame_context_saver_get_regs instead of stop_registers.
9529 * infcall.h (struct dummy_frame_context_saver)
9530 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
9531 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
9532 New declarations.
9533 * infcmd.c: Include infcall.h.
9534 (get_return_value): Add parameter ctx_saver, use it instead of
9535 stop_registers.
9536 (print_return_value): Add parameter ctx_saver, pass it.
9537 (struct finish_command_continuation_args): Add field ctx_saver.
9538 (finish_command_continuation): Update print_return_value caller.
9539 (finish_command_continuation_free_arg): Free also ctx_saver.
9540 (finish_forward): Call dummy_frame_context_saver_setup.
9541 * inferior.h (struct dummy_frame_context_saver): New declaration.
9542 (get_return_value): Add parameter ctx_saver.
9543 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
9544 get_return_value caller.
9545
9546 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9547
9548 * dummy-frame.c (struct dummy_frame_dtor_list): New.
9549 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
9550 (remove_dummy_frame): Process dtor_list.
9551 (pop_dummy_frame): Process dtor_list.
9552 (register_dummy_frame_dtor): Maintain dtor_list.
9553 (find_dummy_frame_dtor): Handle dtor_list.
9554 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
9555 Update comments.
9556
9557 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9558
9559 * compile/compile-object-run.c (do_module_cleanup): Add parameter
9560 registers_valid.
9561 (compile_object_run): Update do_module_cleanup caller.
9562 * dummy-frame.c: Include infcall.h.
9563 (struct dummy_frame): Update dtor comment.
9564 (remove_dummy_frame): Call dtor.
9565 (pop_dummy_frame): Update dtor caller.
9566 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
9567 registers_valid.
9568
9569 2015-05-13 Joel Brobecker <brobecker@adacore.com>
9570
9571 GDB 7.9.1 released.
9572
9573 2015-05-13 Joel Brobecker <brobecker@adacore.com>
9574
9575 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
9576 Xmethods now being able to specify a result type to that new
9577 sectioin.
9578
9579 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
9580
9581 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
9582 first before resizing the window.
9583 * tui/tui.c (tui_enable): Likewise.
9584
9585 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9586
9587 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
9588 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
9589 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
9590 dummy_dtor parameter.
9591 * infcall.h: Include dummy-frame.h.
9592 (call_function_by_hand_dummy_dtor_ftype): Remove.
9593 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
9594 parameter.
9595
9596 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
9597
9598 PR gdb/17820
9599 * top.c (history_size_setshow_var): Change type to signed.
9600 Initialize to -2. Update documentation.
9601 (set_readline_history_size): Define.
9602 (set_history_size_command): Use it. Remove logic for handling
9603 out-of-range sizes.
9604 (init_history): Use set_readline_history_size(). Test for a
9605 value of -2 instead of 0 when determining whether to set a
9606 default history size.
9607 (init_main): Decode the argument of the "size" command as a
9608 zuinteger_unlimited.
9609
9610 2015-05-12 Doug Evans <dje@google.com>
9611
9612 * dwarf2read.c (struct file_entry): Tweak comments.
9613 (get_debug_line_section): Tweak comments.
9614
9615 2015-05-12 Don Breazeal <donb@codesourcery.com>
9616
9617 * NEWS: Announce fork support in the RSP and support
9618 for fork debugging in extended mode.
9619
9620 2015-05-12 Don Breazeal <donb@codesourcery.com>
9621
9622 * remote.c (remote_insert_fork_catchpoint): New function.
9623 (remote_remove_fork_catchpoint): New function.
9624 (remote_insert_vfork_catchpoint): New function.
9625 (remote_remove_vfork_catchpoint): New function.
9626 (pending_fork_parent_callback): New function.
9627 (remove_new_fork_child): New function.
9628 (remote_update_thread_list): Call remote_notif_get_pending_events
9629 and remove_new_fork_child.
9630 (extended_remote_kill): Kill fork child when killing the
9631 parent before follow_fork completes.
9632 (init_extended_remote_ops): Initialize target vector with
9633 new fork catchpoint functions.
9634
9635 2015-05-12 Don Breazeal <donb@codesourcery.com>
9636
9637 * remote.c (remove_vfork_event_p): New function.
9638 (remote_follow_fork): Add vfork event type to event checking.
9639 (remote_parse_stop_reply): New stop reasons "vfork" and
9640 "vforkdone" for RSP 'T' Stop Reply Packet.
9641
9642 2015-05-12 Don Breazeal <donb@codesourcery.com>
9643
9644 * linux-nat.c (linux_nat_ptrace_options): New function.
9645 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
9646 Call linux_nat_ptrace_options and use different argument to
9647 linux_enable_event_reporting.
9648 (_initialize_linux_nat): Delete call to
9649 linux_ptrace_set_additional_flags.
9650 * nat/linux-ptrace.c (current_ptrace_options): Rename to
9651 supported_ptrace_options.
9652 (additional_flags): Delete variable.
9653 (linux_check_ptrace_features): Use supported_ptrace_options.
9654 (linux_test_for_tracesysgood, linux_test_for_tracefork):
9655 Likewise, and remove additional_flags check.
9656 (linux_enable_event_reporting): Change 'attached' argument to
9657 'options'. Use supported_ptrace_options.
9658 (ptrace_supports_feature): Change comment. Use
9659 supported_ptrace_options.
9660 (linux_ptrace_set_additional_flags): Delete function.
9661 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
9662 Delete function prototype.
9663 * remote.c (remote_fork_event_p): New function.
9664 (remote_detach_pid): New function.
9665 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
9666 if doing detach-on-fork.
9667 (remote_follow_fork): New function.
9668 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
9669 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
9670 (init_extended_remote_ops): Initialize to_follow_fork.
9671
9672 2015-05-12 Don Breazeal <donb@codesourcery.com>
9673
9674 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
9675 from static to extern.
9676 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
9677 * remote.c (anonymous enum): <PACKET_fork_event_feature,
9678 * PACKET_vfork_event_feature>: New enumeration constants.
9679 (remote_protocol_features): Add table entries for new packets.
9680 (remote_query_supported): Add new feature queries to qSupported
9681 packet.
9682
9683 2015-05-12 Gary Benson <gbenson@redhat.com>
9684
9685 * remote.c (remote_add_inferior): Call exec_file_locate_attach
9686 for fake PIDs as well as real ones.
9687 (remote_pid_to_exec_file): Send empty annex if PID is fake.
9688
9689 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
9690
9691 * NEWS (Python Scripting): Mention the new gdb.Value methods.
9692 * python/py-value.c (valpy_reference_value): New function.
9693 (valpy_const_value): Likewise.
9694 (value_object_methods): Add new methods.
9695 * value.c (make_cv_value): New function.
9696 * value.h (make_cv_value): Declare.
9697
9698 2015-05-08 Yao Qi <yao@codesourcery.com>
9699 Sandra Loosemore <sandra@codesourcery.com>
9700
9701 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
9702 to 'lh->include_dirs' before accessing to it.
9703 (psymtab_include_file_name): Likewise.
9704 (dwarf_decode_lines_1): Likewise.
9705 (dwarf_decode_lines): Likewise.
9706 (file_file_name): Likewise.
9707
9708 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9709
9710 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
9711 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
9712 (nios2_linux_rt_sigreturn_init): Adjust base address of
9713 register save area.
9714
9715 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9716
9717 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
9718 "trap 31" as the breakpoint instruction on all targets.
9719
9720 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9721
9722 * infcmd.c (print_return_value): Remove unused declaration.
9723
9724 2015-05-08 Joel Brobecker <brobecker@adacore.com>
9725
9726 * dwarf2read.c (attr_to_dynamic_prop)
9727 <DW_AT_data_member_location>: Use read_type_die isntead of
9728 get_die_type.
9729
9730 2015-05-08 Joel Brobecker <brobecker@adacore.com>
9731
9732 * ada-lang.c (ada_convert_actual): Add handling of formals
9733 passed inside an aligner type.
9734
9735 2015-05-08 Joel Brobecker <brobecker@adacore.com>
9736
9737 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
9738
9739 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
9740
9741 PR python/18291
9742 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
9743 Print xmethod matcher status.
9744
9745 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
9746
9747 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
9748 register in the regcache when treating the PSWM register, and vice
9749 versa.
9750
9751 2015-05-07 Gary Benson <gbenson@redhat.com>
9752
9753 * linux-thread-db.c (struct thread_db_info)
9754 <td_ta_map_id2thr_p>: Remove field.
9755 (try_thread_db_load_1): Remove initialization for the above.
9756
9757 2015-05-07 Gary Benson <gbenson@redhat.com>
9758
9759 * linux-thread-db.c (struct thread_db_info)
9760 <td_thr_validate_p>: Remove field.
9761 (try_thread_db_load_1): Remove initialization for the above.
9762
9763 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
9764
9765 * compile/compile-object-load.c (compile_object_load): Support
9766 mst_text_gnu_ifunc.
9767
9768 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
9769
9770 * compile/compile.c (compile_to_object): Make the cmd_string parameter
9771 const. Use new variables for the const compatibility.
9772 (eval_compile_command): Make the cmd_string parameter const.
9773 * compile/compile.h (eval_compile_command): Make the cmd_string
9774 parameter const.
9775
9776 2015-05-06 Joel Brobecker <brobecker@adacore.com>
9777
9778 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
9779 comment.
9780 * top.c (deprecated_init_ui_hook): Delete.
9781 (gdb_init): Remove handling of deprecated_init_ui_hook.
9782 * interps.c (clear_interpreter_hooks): Remove handling of
9783 deprecated_init_ui_hook.
9784 * main.c (captured_main): Update comment.
9785
9786 2015-05-06 Joel Brobecker <brobecker@adacore.com>
9787
9788 * solib.c (_initialize_solib): Add "info dll" alias creation.
9789 * windows-nat.c (set_windows_aliases): Delete.
9790 (_initialize_windows_nat): Remove deprecated_init_ui_hook
9791 assignment.
9792 * NEWS: Add news entry about "info dll" now being available
9793 on all platforms.
9794
9795 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9796
9797 * ada-lang.c (value_assign_to_component): Reformat and improve
9798 documentation. Remove all trailing spaces.
9799
9800 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9801
9802 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
9803 Stop counting inlined frames as soon as an out-of-line function
9804 is found.
9805
9806 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
9807
9808 * dwarf2read.c (inherit_abstract_dies): Skip
9809 DW_TAG_GNU_call_site dies while inheriting children of an
9810 abstract DIE into a scope.
9811 (read_lexical_block_scope): Inherit abstract DIE's for
9812 lexical scopes.
9813
9814 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9815
9816 * ada-valprint.c (val_print_packed_array_elements): Delete
9817 variable "len". Add a type-length check when comparing two
9818 consecutive elements of the array. Use the element's actual
9819 length in call to value_contents_eq.
9820 * ada-lang.c (ada_value_primitive_packed_val): Always return
9821 a value whose type has been resolved.
9822
9823 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9824
9825 * ada-lang.c (ada_value_primitive_packed_val): Recompute
9826 BIT_SIZE and LEN if the size of the resolved type is smaller
9827 than BIT_SIZE * HOST_CHAR_BIT.
9828
9829 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9830
9831 * ada-lang.c (ada_value_primitive_packed_val): Use a more
9832 correct address in call to value_at. Adjust call to
9833 value_address accordingly.
9834
9835 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9836
9837 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
9838 to print it.
9839
9840 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9841
9842 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
9843 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
9844 pinfo->valaddr.
9845 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
9846 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
9847 (resolve_dynamic_type_internal): Set pinfo.valaddr.
9848 Add handling of addr_stack->valaddr.
9849 (resolve_dynamic_type): Add "valaddr" parameter.
9850 Set pinfo.valaddr field.
9851 * ada-lang.c (ada_discrete_type_high_bound): Update call to
9852 resolve_dynamic_type.
9853 (ada_discrete_type_low_bound): Likewise.
9854 * findvar.c (default_read_var_value): Likewise.
9855 * value.c (value_from_contents_and_address): Likewise.
9856
9857 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9858
9859 * gdbtypes.c (resolve_dynamic_array): Use
9860 create_array_type_with_stride instead of create_array_type.
9861
9862 2015-04-30 DJ Delorie <dj@redhat.com>
9863
9864 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
9865 rl78_decode_opcode
9866
9867 2015-04-29 Doug Evans <dje@google.com>
9868
9869 PR python/18285
9870 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
9871 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
9872 EVAL_AVOID_SIDE_EFFECTS for xmethods.
9873 * extension-priv.h (struct extension_language_ops)
9874 <get_xmethod_result_type>: New member.
9875 * extension.c (get_xmethod_result_type): New function.
9876 * extension.h (get_xmethod_result_type): Declare.
9877 * python/py-xmethods.c (get_result_type_method_name): New static
9878 global.
9879 (py_get_result_type_method_name): Ditto.
9880 (gdbpy_get_xmethod_result_type): New function.
9881 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
9882 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
9883 * python/python.c (python_extension_ops): Add
9884 gdbpy_get_xmethod_result_type.
9885 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
9886 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
9887 xmethods.
9888 (value_x_unop): Ditto.
9889 * value.c (result_type_of_xmethod): New function.
9890 * value.h (result_type_of_xmethod): Declare.
9891
9892 2015-04-29 Gary Benson <gbenson@redhat.com>
9893
9894 * solib.c (solib_find_1): Allow fd argument to be NULL.
9895 (exec_file_find): Update comment.
9896 (solib_find): Likewise.
9897 * exec.c (exec_file_locate_attach): Use NULL as fd
9898 argument to exec_file_find to avoid having to close
9899 the opened file.
9900 * infrun.c (follow_exec): Likewise.
9901
9902 2015-04-28 Doug Evans <dje@google.com>
9903
9904 PR python/18299
9905 * python/lib/gdb/printing.py (register_pretty_printer): Handle
9906 name or __name__ attributes. Handle gdb module as first argument.
9907
9908 2015-04-28 Doug Evans <dje@google.com>
9909
9910 PR python/18089
9911 * python/py-prettyprint.c (print_children): Verify result of children
9912 iterator. Provide better error message.
9913 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
9914 * python/python.c (gdbpy_print_python_errors_p): New function.
9915
9916 2015-04-28 Doug Evans <dje@google.com>
9917
9918 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
9919
9920 2015-04-28 Sasha Smundak <asmundak@google.com>
9921
9922 * NEWS: Mention gdb.Type.optimized_out method.
9923 * python/py-type.c (typy_optimized_out): New function.
9924
9925 2015-04-28 John Baldwin <jhb@FreeBSD.org>
9926
9927 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9928
9929 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9930
9931 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
9932 (initialize_utils): Move call of init_page_info() to ...
9933 * top.c (gdb_init): ... here.
9934
9935 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9936
9937 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
9938 (tui_sigwinch_handler): Still update our idea of
9939 the terminal's width and height even when TUI is not active.
9940
9941 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9942
9943 * utils.h (set_screen_width_and_height): Declare.
9944 * utils.c (set_screen_width_and_height): Define.
9945 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
9946
9947 2015-04-28 Gary Benson <gbenson@redhat.com>
9948
9949 * infrun.c (solist.h): New include.
9950 (follow_exec): Use exec_file_find to prefix execd_pathname
9951 with gdb_sysroot.
9952
9953 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9954
9955 * tui/tui-source.c (tui_set_source_content): Avoid calling
9956 strcpy() when offset is 0.
9957
9958 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9959
9960 PR gdb/18155
9961 * tui/tui-data.c (tui_free_window): Don't free the locator
9962 window when passed an SRC_WIN or a DISASSEM_WIN.
9963
9964 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9965
9966 * tui/tui-data.h (struct tui_win_element): Forward-declare.
9967 (tui_win_content): Move declaration.
9968 (struct tui_gen_win_info): Give 'content' field the
9969 type tui_win_content.
9970 * tui/tui-data.c (init_content_element): Remove redundant and
9971 erroneous casts.
9972 (tui_add_content_elements): Remove erroneous cast.
9973 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
9974 casts.
9975 (tui_get_begin_asm_address): Likewise.
9976 * tui/tui-regs.c (tui_show_registers): Likewise.
9977 (tui_show_register_group): Likewise.
9978 (tui_display_registers_from): Likewise.
9979 (tui_check_register_values): Likewise.
9980 * tui/tui-source.c (tui_set_source_content): Likewise.
9981 (tui_set_source_content_nil): Likewise.
9982 (tui_source_is_displayed): Likewise.
9983 * tui/tui-stack.c (tui_show_locator_content): Likewise.
9984 (tui_set_locator_fullname): Likewise.
9985 (tui_set_locator_info): Likewise.
9986 (tui_show_frame_info): Likewise.
9987 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
9988 (tui_show_source_line): Likewise.
9989 (tui_horizontal_source_scroll): Likewise.
9990 (tui_update_breakpoint_info): Likewise.
9991 (tui_set_exec_info_content): Likewise.
9992 (tui_show_exec_info_content): Likewise.
9993 (tui_alloc_source_buffer): Likewise.
9994 (tui_line_is_displayed): Likewise.
9995 (tui_addr_is_displayed): Likewise.
9996
9997 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9998
9999 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
10000 event if PL_FLAG_EXEC is set.
10001 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
10002 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
10003 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
10004 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
10005 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
10006
10007 2015-04-27 John Baldwin <jhb@FreeBSD.org>
10008
10009 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
10010 [TDP_RFPPWAIT] New variable fbsd_pending_children.
10011 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
10012 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
10013 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
10014 [PT_LWPINFO] (fbsd_wait): New function.
10015 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
10016 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
10017 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
10018 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
10019 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
10020 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
10021 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
10022 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
10023 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
10024 "fbsd_wait".
10025 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
10026 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
10027 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
10028 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
10029 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
10030 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
10031 Set "to_post_attach" to "fbsd_post_attach".
10032
10033 2015-04-27 John Baldwin <jhb@FreeBSD.org>
10034
10035 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
10036 (fbsd_find_memory_regions): Mark static.
10037 (fbsd_nat_add_target): New function.
10038 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
10039 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
10040 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
10041 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
10042 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
10043 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
10044
10045 2015-04-27 Gary Benson <gbenson@redhat.com>
10046
10047 * objfiles.c (allocate_objfile): Do not attempt to expand name
10048 if name is a "target:" filename.
10049 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
10050 to load auto-load scripts for objfiles with "target:" filenames.
10051
10052 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10053
10054 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
10055 (enum s390_vector_abi_kind): New enum.
10056 (struct gdbarch_tdep)<vector_abi>: New field.
10057 (s390_effective_inner_type): Add parameter min_size. Stop
10058 unwrapping if the inner type is smaller than min_size.
10059 (s390_function_arg_float): Adjust call to
10060 s390_effective_inner_type.
10061 (s390_function_arg_vector): New function.
10062 (s390_function_arg_integer): Adjust comment.
10063 (struct s390_arg_state)<vr>: New field.
10064 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
10065 arguments according to vector ABI when appropriate.
10066 (s390_push_dummy_call): Initialize the argument state's field
10067 'vr'. Adjust calls to s390_handle_arg.
10068 (s390_register_return_value): Handle vector return values.
10069 (s390_return_value): Apply the "register" return value convention
10070 to a vector when appropriate.
10071 (s390_gdbarch_init): Initialize tdep->vector_abi.
10072 * NEWS: Announce S390 vector ABI support.
10073
10074 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10075
10076 * s390-linux-tdep.c (s390_return_value_convention): Remove
10077 function. Inline its logic...
10078 (s390_return_value): ...here. Instead, move the handling of the
10079 "register" return value convention...
10080 (s390_register_return_value): ...here. New function.
10081
10082 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10083
10084 * s390-linux-tdep.c
10085 (is_float_singleton): Remove function. Move the "singleton" part
10086 of the logic...
10087 (s390_effective_inner_type): ...here. New function.
10088 (is_float_like): Remove function. Inline its logic...
10089 (s390_function_arg_float): ...here.
10090 (is_pointer_like, is_integer_like, is_struct_like): Remove
10091 functions. Inline their logic...
10092 (s390_function_arg_integer): ...here.
10093 (s390_function_arg_pass_by_reference): Remove function.
10094 (extend_simple_arg): Remove function.
10095 (alignment_of): Remove function.
10096 (struct s390_arg_state): New structure.
10097 (s390_handle_arg): New function.
10098 (s390_push_dummy_call): Move parameter placement logic to the new
10099 function s390_handle_arg. Call it for calculating the stack area
10100 sizes first, and again for actually writing the parameters.
10101
10102 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10103
10104 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
10105 false if the argument is zero.
10106
10107 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
10108
10109 * ada-lang.c (template_to_static_fixed_type): Return input type
10110 when it is already fixed. Cache the input type itself when not
10111 creating a static fixed copy. Make it explicit that we never
10112 molestate the input type.
10113 * gdbtypes.c (resolve_dynamic_struct): Reset the
10114 TYPE_TARGET_TYPE field for resolved copies.
10115
10116 2015-04-27 Joel Brobecker <brobecker@adacore.com>
10117
10118 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
10119 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
10120 (template_to_static_fixed_type): Call ada_check_typedef only
10121 when necessary.
10122
10123 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
10124
10125 * cli/cli-dump.c (srec_dump_command): Add internationalization
10126 mark ups.
10127 (ihex_dump_command): Likewise.
10128 (tekhex_dump_command): Likewise.
10129 (binary_dump_command): Likewise.
10130 (binary_append_command): Likewise.
10131
10132 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
10133
10134 * cli/cli-dump.c (verilog_cmdlist): New variable.
10135 (dump_verilog_memory): New function.
10136 (dump_verilog_value): New function.
10137 (verilog_dump_command): New function.
10138 (_initialize_cli_dump): Add new commands to support verilog dump
10139 format.
10140 * NEWS: Add entry for "dump verilog".
10141
10142 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
10143
10144 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
10145 descriptive type when there is none.
10146
10147 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
10148
10149 * tui/tui-win.c (tui_async_resize_screen): Call
10150 rl_resize_terminal().
10151
10152 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
10153
10154 * windows-nat.c (handle_output_debug_string): Don't change
10155 current_event.dwThreadId.
10156 (get_windows_debug_event): Use thread_id, rather than relying on
10157 current_event.dwThreadId being changed.
10158
10159 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
10160
10161 * windows-nat.c (windows_continue): Report an error if
10162 ContinueDebugEvent() fails.
10163
10164 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
10165
10166 * windows-nat.c (windows_resume): Fix misspelling in debug output.
10167
10168 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
10169
10170 * windows-nat.c (get_windows_debug_event): Replace retval with
10171 thread_id throughout. Update stale comment.
10172
10173 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
10174
10175 * windows-nat.c (get_windows_debug_event): Don't use ternary
10176 conditional operator.
10177
10178 2015-04-21 Pierre Muller <muller@sourceware.org>
10179
10180 PR pascal/17815
10181 p-exp.y (yylex): Reorganize code to return the matched pattern
10182 for a field of this.
10183
10184 2015-04-21 Gary Benson <gbenson@redhat.com>
10185
10186 * common/fileio.h (fileio_to_host_openflags): New declaration.
10187 * common/fileio.c (fcntl.h): New include.
10188 (fileio_to_host_openflags): New function, factored out from...
10189 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
10190 Single use updated.
10191
10192 2015-04-21 Kevin Buettner <kevinb@redhat.com>
10193
10194 * rl78-tdep.c (RL78_SP_ADDR): Define.
10195 (opc_reg_to_gdb_regnum): New static function.
10196 (rl78_analyze_prologue): Recognize instructions forming slightly
10197 more interesting prologues.
10198
10199 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
10200
10201 Revert:
10202 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10203 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
10204 TYPE_CODE_REF types so that they are not considered as dynamic
10205 depending on the referenced type.
10206 (resolve_dynamic_type_internal): Likewise.
10207
10208 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
10209
10210 Revert:
10211 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10212 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
10213 "top_level" parameter.
10214 (resolve_dynamic_type_internal): Remove the unused "top_level"
10215 parameter. Update call to is_dynamic_type_internal.
10216 (is_dynamic_type): Update call to is_dynamic_type_internal.
10217 (resolve_dynamic_range): Update call to
10218 resolve_dynamic_type_internal.
10219 (resolve_dynamic_union): Likewise.
10220 (resolve_dynamic_struct): Likewise.
10221 (resolve_dynamic_type): Likewise.
10222
10223 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
10224
10225 * breakpoint.c (update_dprintf_command_list): Remove duplicated
10226 xmalloc.
10227
10228 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
10229
10230 * reply_mig_hack.awk: Robustify parsing.
10231
10232 * reply_mig_hack.awk: Don't bother to declare an intermediate
10233 function pointer variable.
10234
10235 2015-04-17 Doug Evans <dje@google.com>
10236
10237 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
10238 to "exec_displacement" to avoid confusion with inner use of the name.
10239
10240 2015-04-17 Pedro Alves <palves@redhat.com>
10241
10242 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
10243 if HW point of TYPE isn't supported.
10244
10245 2015-04-17 Yao Qi <yao.qi@linaro.org>
10246 Pedro Alves <palves@redhat.com>
10247
10248 * target.h (target_can_use_hardware_watchpoint): Update comments.
10249 Remove trailing ";".
10250
10251 2015-04-17 Gary Benson <gbenson@redhat.com>
10252
10253 * remote.c (remote_add_inferior): New argument try_open_exec.
10254 If nonzero, attempt to open the inferior's executable file as
10255 the main executable if no main executable is open already.
10256 All callers updated.
10257 * NEWS: Mention that GDB now supports automatic location and
10258 retrieval of executable + files from remote targets.
10259
10260 2015-04-17 Gary Benson <gbenson@redhat.com>
10261
10262 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
10263 * remote.c (PACKET_qXfer_exec_file): Likewise.
10264 (remote_protocol_features): Register the
10265 "qXfer:exec-file:read" feature.
10266 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
10267 (remote_pid_to_exec_file): New function.
10268 (init_remote_ops): Initialize to_pid_to_exec_file.
10269 (_initialize_remote): Register new "set/show remote
10270 pid-to-exec-file-packet" command.
10271 * NEWS: Announce new qXfer:exec-file:read packet.
10272
10273 2015-04-17 Gary Benson <gbenson@redhat.com>
10274
10275 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
10276 New declaration.
10277 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
10278 New function, factored out from...
10279 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
10280
10281 2015-04-17 Gary Benson <gbenson@redhat.com>
10282
10283 * exec.c (solist.h): New include.
10284 (exec_file_locate_attach): Prefix absolute executable
10285 paths with gdb_sysroot if set.
10286 * NEWS: Mention that executable paths may be prepended
10287 with sysroot.
10288
10289 2015-04-17 Gary Benson <gbenson@redhat.com>
10290
10291 * solist.h (exec_file_find): New declaration.
10292 * solib.c (solib_find_1): New function, factored out from...
10293 (solib_find): ...here.
10294 (exec_file_find): New function.
10295
10296 2015-04-17 Gary Benson <gbenson@redhat.com>
10297
10298 * gdbcore.h (exec_file_locate_attach): New declaration.
10299 * exec.c (exec_file_locate_attach): New function, factored
10300 out from...
10301 * infcmd.c (attach_command_post_wait): ...here.
10302
10303 2015-04-17 Mike Frysinger <vapier@gentoo.org>
10304
10305 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
10306
10307 2015-04-16 Yao Qi <yao.qi@linaro.org>
10308
10309 * infrun.c (maybe_software_singlestep): Declare.
10310 (displaced_step_fixup): Call maybe_software_singlestep.
10311
10312 2015-04-15 Doug Evans <dje@google.com>
10313
10314 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
10315
10316 2015-04-15 Doug Evans <dje@google.com>
10317
10318 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
10319
10320 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
10321
10322 * python/lib/gdb/command/unwinders.py: Add parentheses.
10323
10324 2015-04-15 Yao Qi <yao.qi@linaro.org>
10325
10326 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
10327
10328 2015-04-15 Yao Qi <yao.qi@linaro.org>
10329
10330 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
10331
10332 2015-04-15 Yao Qi <yao.qi@linaro.org>
10333
10334 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
10335 dsc->insn_size instead of 4.
10336
10337 2015-04-14 Gary Benson <gbenson@redhat.com>
10338
10339 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
10340 * minidebug.c (lzma_stat): Likewise.
10341 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
10342 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
10343
10344 2015-04-13 Stan Shebs <stanshebs@google.com>
10345
10346 * MAINTAINERS: Update my email address.
10347
10348 2015-04-13 John Baldwin <jhb@FreeBSD.org>
10349
10350 * amd64-tdep.c (amd64_target_description): New function.
10351 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
10352 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
10353 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
10354 x86 extended save area.
10355 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
10356 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
10357 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
10358 (_initialize_amd64fbsd_nat): Set "to_read_description" to
10359 "amd64fbsd_read_description".
10360 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
10361 (amd64fbsd_supply_xstateregset): New function.
10362 (amd64fbsd_collect_xstateregset): New function.
10363 Add "amd64fbsd_xstateregset".
10364 (amd64fbsd_iterate_over_regset_sections): New function.
10365 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
10366 "I386_FBSD_XSAVE_XCR0_OFFSET".
10367 Add "iterate_over_regset_sections" gdbarch method.
10368 Add "core_read_description" gdbarch method.
10369 * i386-tdep.c (i386_target_description): New function.
10370 * i386-tdep.h: Export i386_target_description and tdesc_i386.
10371 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
10372 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
10373 x86 extended save area.
10374 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
10375 * i386bsd-nat.h: Export i386bsd_xsave_len.
10376 * i386fbsd-nat.c (i386fbsd_read_description): New function.
10377 (_initialize_i386fbsd_nat): Set "to_read_description" to
10378 "i386fbsd_read_description".
10379 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
10380 (i386fbsd_core_read_description): New function.
10381 (i386fbsd_supply_xstateregset): New function.
10382 (i386fbsd_collect_xstateregset): New function.
10383 Add "i386fbsd_xstateregset".
10384 (i386fbsd_iterate_over_regset_sections): New function.
10385 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
10386 "I386_FBSD_XSAVE_XCR0_OFFSET".
10387 Add "iterate_over_regset_sections" gdbarch method.
10388 Add "core_read_description" gdbarch method.
10389 * i386fbsd-tdep.h: New file.
10390
10391 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10392
10393 * NEWS (Changes since GDB 7.9): Add removed -xdb.
10394 * breakpoint.c (command_line_is_silent): Remove xdb_commands
10395 conditional.
10396 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
10397 and lb.
10398 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
10399 va.
10400 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
10401 conditional.
10402 * defs.h (xdb_commands): Remove declaration.
10403 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
10404 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
10405 * infcmd.c (run_no_args_command, go_command): Remove.
10406 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
10407 * infrun.c (xdb_handle_command): Remove.
10408 (_initialize_infrun): Remove xdb_commands for lz and z.
10409 * main.c (xdb_commands): Remove variable.
10410 (captured_main): Remove "xdb" from long_options.
10411 (print_gdb_help): Remove --xdb from help.
10412 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
10413 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
10414 * stack.c (backtrace_full_command, args_plus_locals_info)
10415 (current_frame_command): Remove.
10416 (_initialize_stack): Remove xdb_commands for t, T and l.
10417 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
10418 * thread.c (_initialize_thread): Remove xdb_commands condition.
10419 * tui/tui-layout.c (tui_toggle_layout_command)
10420 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
10421 (_initialize_tui_layout): Remove xdb_commands for td and ts.
10422 * tui/tui-regs.c (tui_scroll_regs_forward_command)
10423 (tui_scroll_regs_backward_command): Remove.
10424 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
10425 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
10426 (_initialize_tui_win): Remove xdb_commands for U and w.
10427 * utils.c (pagination_on_command, pagination_off_command): Remove.
10428 (initialize_utils): Remove xdb_commands for am and sm.
10429
10430 2015-04-10 Pedro Alves <palves@redhat.com>
10431
10432 * infrun.c (displaced_step_fixup): Switch to the event ptid
10433 earlier. If the thread stopped for a watchpoint and the
10434 target/arch has non-continuable watchpoints, cancel the displaced
10435 step.
10436 (resume): Don't start a displaced step if in-line step-over info
10437 is valid.
10438
10439 2015-04-10 Pedro Alves <palves@redhat.com>
10440
10441 * infrun.c (displaced_step_in_progress): New function.
10442 (do_target_resume): Advise target to report all signals if
10443 displaced stepping.
10444
10445 2015-04-10 Pedro Alves <palves@redhat.com>
10446
10447 PR gdb/18216
10448 * infrun.c (process_event_stop_test): Don't assume a step-resume
10449 is set if tp->stepped_breakpoint is true.
10450
10451 2015-04-10 Yao Qi <yao.qi@linaro.org>
10452
10453 * arm-tdep.c (install_alu_reg): Update comment.
10454 (thumb_copy_alu_reg): Remove local variable rn. Update
10455 debugging message. Use r2 instead of r1 in the modified
10456 instruction.
10457
10458 2015-04-10 Pedro Alves <palves@redhat.com>
10459
10460 PR gdb/13858
10461 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
10462 linux_displaced_step_location as gdbarch_displaced_step_location
10463 hook.
10464 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
10465 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
10466 * linux-tdep.c (linux_displaced_step_location): New function,
10467 based on ppc_linux_displaced_step_location.
10468 * linux-tdep.h (linux_displaced_step_location): New declaration.
10469 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
10470 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
10471 Delete.
10472 (ppc_linux_init_abi): Install linux_displaced_step_location as
10473 gdbarch_displaced_step_location hook, even without Cell/B.E..
10474 (_initialize_ppc_linux_tdep): Don't install
10475 ppc_linux_inferior_created as inferior_created observer.
10476 * s390-linux-tdep.c (s390_gdbarch_init): Install
10477 linux_displaced_step_location as gdbarch_displaced_step_location
10478 hook.
10479
10480 2015-04-09 Gary Benson <gbenson@redhat.com>
10481
10482 * common/common-remote-fileio.h: Rename to...
10483 * common/fileio.h: ...this. Update all references.
10484 (remote_fileio_to_fio_error): Rename to...
10485 (host_to_fileio_error): ...this.
10486 (remote_fileio_to_be): Rename to...
10487 (host_to_bigendian): ...this. Update all callers.
10488 (remote_fileio_to_fio_uint): Rename to...
10489 (host_to_fileio_uint): ...this. Update all callers.
10490 (remote_fileio_to_fio_time): Rename to...
10491 (host_to_fileio_time): ...this. Update all callers.
10492 (remote_fileio_to_fio_stat): Rename to...
10493 (host_to_fileio_stat): ...this.
10494 Update all references.
10495 * common/common-remote-fileio.c: Rename to...
10496 * common/fileio.c: ...this. Update all references.
10497 (remote_fileio_to_fio_error): Rename to...
10498 (host_to_fileio_error): ...this. Update all callers.
10499 (remote_fileio_mode_to_target): Rename to...
10500 (fileio_mode_pack): ...this. Update all callers.
10501 (remote_fileio_to_fio_mode): Rename to...
10502 (host_to_fileio_mode): ...this. Update all callers.
10503 (remote_fileio_to_fio_ulong): Rename to...
10504 (host_to_fileio_ulong): ...this. Update all callers.
10505 (remote_fileio_to_fio_stat): Rename to...
10506 (host_to_fileio_stat): ...this. Update all callers.
10507
10508 2015-04-09 Andy Wingo <wingo@igalia.com>
10509
10510 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
10511 (frame_functions): Bind gdbscm_frame_read_register to
10512 frame-read-register.
10513 * guile/lib/gdb.scm (frame-read-register): Export.
10514
10515 2015-04-09 Gary Benson <gbenson@redhat.com>
10516
10517 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
10518 New declaration.
10519 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
10520 New function, factored out the named functions below.
10521 * inf-child.c (gdb/fileio.h): Remove include.
10522 (common-remote-fileio.h): New include.
10523 (inf_child_errno_to_fileio_error): Remove function. Update
10524 all callers to use remote_fileio_to_fio_error.
10525 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
10526
10527 2015-04-09 Andy Wingo <wingo@igalia.com>
10528
10529 * MAINTAINERS (Write After Approval): Add Andy Wingo.
10530
10531 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
10532
10533 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
10534 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
10535 * configure: Regenerated.
10536
10537 2015-04-09 Pedro Alves <palves@redhat.com>
10538
10539 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
10540 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
10541 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
10542 * gnulib/import/Makefile.am: Update.
10543 * gnulib/import/Makefile.in: Update.
10544 * gnulib/import/m4/gnulib-cache.m4: Update.
10545 * gnulib/import/m4/gnulib-comp.m4: Update.
10546 * gnulib/import/m4/strtok_r.m4: New file.
10547 * gnulib/import/strtok_r.c: New file.
10548
10549 2015-04-09 Pedro Alves <palves@redhat.com>
10550
10551 * gnulib/update-gnulib.sh (aclocal version check): Filter out
10552 "called too early to check prototype".
10553
10554 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
10555
10556 PR python/16699
10557 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
10558 use a caching mechanism. Adjust comments and code to reflect
10559 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
10560 (cmdpy_completer_handle_brkchars): Adjust call to
10561 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
10562 (cmdpy_completer): Likewise.
10563
10564 2015-04-08 Yao Qi <yao.qi@linaro.org>
10565
10566 * spu-tdep.c (spu_gdbarch_init): Don't call
10567 set_gdbarch_cannot_step_breakpoint.
10568
10569 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
10570
10571 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
10572
10573 2015-04-07 Pedro Alves <palves@redhat.com>
10574
10575 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
10576 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
10577 (delete_exited_threads): New declaration.
10578 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
10579 * linux-nat.c (linux_nat_update_thread_list): New function.
10580 (linux_nat_add_target): Install it.
10581 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
10582 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
10583 (delete_exited_threads): New function.
10584
10585 2015-04-07 Pedro Alves <pedro@codesourcery.com>
10586
10587 * infrun.c (resume) <displaced stepping debug output>: Get the
10588 leader thread's regcache, not resume_ptid's.
10589
10590 2015-04-06 Doug Evans <xdje42@gmail.com>
10591
10592 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
10593 VAR_DOMAIN.
10594 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
10595 Include symbol domain in debugging output.
10596
10597 2015-04-06 Pedro Alves <palves@redhat.com>
10598 Bernd Edlinger <bernd.edlinger@hotmail.de>
10599
10600 * configure.ac: Remove the mingw32-specific stub-termcap.o
10601 fallback, and instead fallback to the stub termcap on all hosts.
10602 * configure: Regenerate.
10603 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
10604 symbols.
10605
10606 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10607
10608 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
10609 "top_level" parameter.
10610 (resolve_dynamic_type_internal): Remove the unused "top_level"
10611 parameter. Update call to is_dynamic_type_internal.
10612 (is_dynamic_type): Update call to is_dynamic_type_internal.
10613 (resolve_dynamic_range): Update call to
10614 resolve_dynamic_type_internal.
10615 (resolve_dynamic_union): Likewise.
10616 (resolve_dynamic_struct): Likewise.
10617 (resolve_dynamic_type): Likewise.
10618
10619 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10620
10621 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
10622 TYPE_CODE_REF types so that they are not considered as dynamic
10623 depending on the referenced type.
10624 (resolve_dynamic_type_internal): Likewise.
10625
10626 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
10627
10628 * Makefile.in (top_srcdir): New.
10629 * configure: Regenerated.
10630
10631 2015-04-02 Gary Benson <gbenson@redhat.com>
10632
10633 * NEWS: Announce the new default sysroot of "target:".
10634
10635 2015-04-02 Gary Benson <gbenson@redhat.com>
10636
10637 * main.c (captured_main): Set gdb_sysroot to "target:"
10638 if not otherwise set.
10639
10640 2015-04-02 Gary Benson <gbenson@redhat.com>
10641
10642 * exec.c (exec_file_attach): Support "target:" filenames.
10643
10644 2015-04-02 Gary Benson <gbenson@redhat.com>
10645
10646 * solib.c (solib_find): Strip "target:" prefix from sysroot
10647 if accessing local files.
10648
10649 2015-04-02 Gary Benson <gbenson@redhat.com>
10650
10651 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
10652 checks and error messages.
10653
10654 2015-04-02 Gary Benson <gbenson@redhat.com>
10655
10656 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
10657 (remote_filename_p): Remove declaration.
10658 (remote_bfd_open): Likewise.
10659 * remote.c (remote_bfd_iovec_open): Remove function.
10660 (remote_bfd_iovec_close): Likewise.
10661 (remote_bfd_iovec_pread): Likewise.
10662 (remote_bfd_iovec_stat): Likewise.
10663 (remote_filename_p): Likewise.
10664 (remote_bfd_open): Likewise.
10665 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
10666 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
10667 (gdb_bfd_open_maybe_remote): Remove function.
10668 (symfile_bfd_open): Replace remote filename check with
10669 target filename check.
10670 (reread_symbols): Use gdb_bfd_open.
10671 * build-id.c (gdbcore.h): New include.
10672 (build_id_to_debug_bfd): Use gdb_bfd_open.
10673 * infcmd.c (attach_command_post_wait): Remove remote filename
10674 check.
10675 * solib.c (solib_find): Replace remote-specific handling with
10676 target-specific handling. Update comments where necessary.
10677 (solib_bfd_open): Replace remote-specific handling with
10678 target-specific handling.
10679 (gdb_sysroot_changed): New function.
10680 (_initialize_solib): Call the above when gdb_sysroot changes.
10681 * windows-tdep.c (gdbcore.h): New include.
10682 (windows_xfer_shared_library): Use gdb_bfd_open.
10683
10684 2015-04-02 Gary Benson <gbenson@redhat.com>
10685
10686 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
10687 (is_target_filename): New declaration.
10688 (gdb_bfd_has_target_filename): Likewise.
10689 (gdb_bfd_open): Update documentation comment.
10690 * gdb_bfd.c (target.h): New include.
10691 (gdb/fileio.h): Likewise.
10692 (is_target_filename): New function.
10693 (gdb_bfd_has_target_filename): Likewise.
10694 (fileio_errno_to_host): Likewise.
10695 (gdb_bfd_iovec_fileio_open): Likewise.
10696 (gdb_bfd_iovec_fileio_pread): Likewise.
10697 (gdb_bfd_iovec_fileio_close): Likewise.
10698 (gdb_bfd_iovec_fileio_fstat): Likewise.
10699 (gdb_bfd_open): Use target fileio to access paths prefixed
10700 with "target:" where necessary.
10701
10702 2015-04-02 Gary Benson <gbenson@redhat.com>
10703
10704 * target.h (struct target_ops) <to_filesystem_is_local>:
10705 New field.
10706 (target_filesystem_is_local): New macro.
10707 * target-delegates.c: Regenerate.
10708 * remote.c (remote_filesystem_is_local): New function.
10709 (init_remote_ops): Initialize to_filesystem_is_local.
10710
10711 2015-04-02 Gary Benson <gbenson@redhat.com>
10712
10713 * target.h (struct target_ops) <to_fileio_fstat>: New field.
10714 (target_fileio_fstat): New declaration.
10715 * target.c (target_fileio_fstat): New function.
10716 * inf-child.c (inf_child_fileio_fstat): Likewise.
10717 (inf_child_target): Initialize to_fileio_fstat.
10718 * remote.c (init_remote_ops): Likewise.
10719
10720 2015-04-01 Sasha Smundak <asmundak@google.com>
10721
10722 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
10723 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
10724 (py-unwind.o): New recipe.
10725 * NEWS: mention Python frame unwinding.
10726 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
10727 gdb/unwinder.py and gdb/command/unwinder.py
10728 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
10729 list.
10730 (execute_unwinders): New function.
10731 * python/lib/gdb/command/unwinders.py: New file.
10732 * python/lib/gdb/unwinder.py: New file.
10733 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
10734 (objfpy_dealloc): Decrement frame_unwinders reference count.
10735 (objfpy_initialize): Create frame_unwinders list.
10736 (objfpy_get_frame_unwinders): New function.
10737 (objfpy_set_frame_unwinders): Ditto.
10738 (objfile_getset): Add frame_unwinders attribute to Objfile.
10739 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
10740 (pspy_dealloc): Decrement frame_unwinders reference count.
10741 (pspy_initialize): Create frame_unwinders list.
10742 (pspy_get_frame_unwinders): New function.
10743 (pspy_set_frame_unwinders): Ditto.
10744 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
10745 * python/py-unwind.c: New file.
10746 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
10747 (objpy_get_frame_unwinders): New prototype.
10748 (gdbpy_initialize_unwind): New prototype.
10749 * python/python.c (gdbpy_apply_type_printers): Call
10750 gdbpy_initialize_unwind.
10751
10752 2015-04-01 Pedro Alves <palves@redhat.com>
10753
10754 * infrun.c (resume): Check currently_stepping after clearing
10755 stepped_breakpoint, not before.
10756
10757 2015-04-01 Pedro Alves <palves@redhat.com>
10758
10759 * infrun.c (print_target_wait_results): Print all the ptid
10760 elements.
10761
10762 2015-04-01 Pedro Alves <palves@redhat.com>
10763
10764 * infrun.c (keep_going): Also discard cleanups if inserting
10765 breakpoints fails.
10766
10767 2015-04-01 Pedro Alves <palves@redhat.com>
10768
10769 * infrun.c (wait_for_inferior): Install the
10770 finish_thread_state_cleanup cleanup across the whole function, not
10771 just around handle_inferior_event.
10772
10773 2015-04-01 Pedro Alves <palves@redhat.com>
10774
10775 * infrun.c (resume) <step past permanent breakpoint>: Use
10776 do_target_resume.
10777
10778 2015-04-01 Pedro Alves <palves@redhat.com>
10779
10780 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
10781
10782 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
10783
10784 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
10785
10786 2015-04-01 Pedro Alves <palves@redhat.com>
10787
10788 * linux-thread-db.c (record_thread): Readd the thread to gdb's
10789 list if it was marked exited.
10790
10791 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
10792
10793 * configure: Regenerated.
10794
10795 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
10796 Jan Kratochvil <jan.kratochvil@redhat.com>
10797 Oleg Nesterov <oleg@redhat.com>
10798
10799 PR corefiles/16092
10800 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
10801 New enum identifying the various options of the coredump_filter
10802 file.
10803 (struct smaps_vmflags): New struct.
10804 (use_coredump_filter): New variable.
10805 (decode_vmflags): New function.
10806 (mapping_is_anonymous_p): Likewise.
10807 (dump_mapping_p): Likewise.
10808 (linux_find_memory_regions_full): New variables
10809 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
10810 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
10811 parsing of its information. Implement memory mapping filtering
10812 based on its contents.
10813 (show_use_coredump_filter): New function.
10814 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
10815 * NEWS: Mention the possibility of using the
10816 '/proc/PID/coredump_filter' file when generating a corefile.
10817 Mention new command 'set use-coredump-filter'.
10818
10819 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
10820
10821 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
10822 read_memory_unsigned_integer.
10823
10824 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
10825
10826 * Makefile.in (ZLIB): New.
10827 (ZLIBINC): Likewise.
10828 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
10829 (CLIBS): Add $(ZLIB).
10830 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
10831 Add -lz to LIBS.
10832 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
10833 * top.c (print_gdb_configuration): Remove --with-zlib and
10834 --without-zlib.
10835 * config.in: Regenerated.
10836 * configure: Likewise.
10837
10838 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
10839
10840 * NEWS: Mention info os cpus support.
10841 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
10842 (struct osdata_type): Add cpus entry, reorder the entries in
10843 alphabetical order.
10844
10845 2015-03-31 Matthias Klose <doko@ubuntu.com>
10846
10847 * compile/compile.c (compile_to_object): Allow triplets with or
10848 without vendor set.
10849
10850 2015-03-30 Doug Evans <dje@google.com>
10851
10852 PR c++/18141
10853 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
10854 klass in VAR_DOMAIN.
10855
10856 2015-03-30 Gary Benson <gbenson@redhat.com>
10857
10858 * remote.c (remote_mourn_1): Remove function. Update all callers
10859 to use remote_mourn.
10860 (extended_remote_mourn_1): Remove function. Update all callers
10861 to use extended_remote_mourn.
10862 (extended_remote_attach_1): Remove function. Update all callers
10863 to use extended_remote_attach.
10864
10865 2015-03-28 James Bowman <james.bowman@ftdichip.com>
10866
10867 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
10868 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
10869 (ALLDEPFILES): Add ft32-tdep.c.
10870 * configure.tgt: Add FT32 entry.
10871 * ft32-tdep.c: New file, FT32 target-dependent code.
10872 * ft32-tdep.h: New file, FT32 target-dependent code.
10873
10874 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10875
10876 Revert:
10877 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10878 Code cleanup.
10879 * printcmd.c (print_command_1): Move expr variable scope.
10880
10881 2015-03-27 Joel Brobecker <brobecker@adacore.com>
10882
10883 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
10884
10885 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
10886
10887 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
10888 sections.
10889
10890 2015-03-26 Joel Brobecker <brobecker@adacore.com>
10891
10892 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
10893 exception raised while parsing the probe arguments.
10894 Force parsing to be done using the C language parser.
10895 * expression.h (parse_expression_with_language): Declare.
10896 * parse.c (parse_expression_with_language): New function.
10897
10898 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
10899
10900 * MAINTAINERS (Write After Approval): Add "Jon Turney".
10901
10902 2015-03-26 Andy Wingo <wingo@igalia.com>
10903
10904 PR symtab/18148
10905 * dwarf2read.c (struct partial_die_info): Add has_const_value
10906 member.
10907 (add_partial_symbol): Don't punt on symbols that have const_value
10908 attributes.
10909 (read_partial_die): Detect DW_AT_const_value.
10910
10911 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10912
10913 Code cleanup.
10914 * printcmd.c (print_command_1): Move expr variable scope.
10915
10916 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10917
10918 Code cleanup.
10919 * printcmd.c (validate_format): Make the parameter cmdname const.
10920
10921 2015-03-26 Don Breazeal <donb@codesourcery.com>
10922
10923 * remote.c (_initialize_remote): Update comment.
10924
10925 2015-03-26 Pedro Alves <palves@redhat.com>
10926 Jon TURNEY <jon.turney@dronecode.org.uk>
10927
10928 * coffread.c (coff_symfile_read): When constructing the name of an
10929 import stub symbol from import symbol for amd64, only skip the
10930 char after _imp_ if the target is underscored (like i386) and the
10931 char is indeed the target's leading char.
10932
10933 2015-03-25 Pedro Alves <palves@redhat.com>
10934
10935 * target.h <to_async>: Replace 'callback' and 'context' parameters
10936 with boolean 'enable' parameter.
10937 (target_async): Replace CALLBACK and CONTEXT parameters with
10938 boolean ENABLE parameter.
10939 * inf-loop.c (inferior_event_handler): Adjust.
10940 * linux-nat.c (linux_nat_attach, linux_nat_resume)
10941 (linux_nat_resume): Adjust.
10942 (async_client_callback, async_client_context): Delete.
10943 (handle_target_event): Call inferior_event_handler directly.
10944 (linux_nat_async): Replace 'callback' and 'context' parameters
10945 with boolean 'enable' parameter. Adjust. Remove references to
10946 async_client_callback and async_client_context.
10947 (linux_nat_close): Adjust.
10948 * record-btrace.c (record_btrace_async): Replace 'callback' and
10949 'context' parameters with boolean 'enable' parameter. Adjust.
10950 (record_btrace_resume): Adjust.
10951 * record-full.c (record_full_async): Replace 'callback' and
10952 'context' parameters with boolean 'enable' parameter. Adjust.
10953 (record_full_resume, record_full_core_resume): Adjust.
10954 * remote.c (struct remote_state) <async_client_callback,
10955 async_client_context>: Delete fields.
10956 (remote_start_remote, extended_remote_attach_1, remote_resume)
10957 (extended_remote_create_inferior): Adjust.
10958 (remote_async_serial_handler): Call inferior_event_handler
10959 directly.
10960 (remote_async): Replace 'callback' and 'context' parameters with
10961 boolean 'enable' parameter. Adjust.
10962 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
10963 Adjust.
10964 * target-delegates.c: Regenerate.
10965
10966 2015-03-25 Gary Benson <gbenson@redhat.com>
10967 Pedro Alves <palves@redhat.com>
10968
10969 * target.c (fileio_ft_t): New typedef, define object vector.
10970 (fileio_fhandles): New static variable.
10971 (is_closed_fileio_fh): New macro.
10972 (lowest_closed_fd): New static variable.
10973 (acquire_fileio_fd): New function.
10974 (release_fileio_fd): Likewise.
10975 (fileio_fd_to_fh): New macro.
10976 (target_fileio_open): Wrap the file descriptor on success.
10977 (target_fileio_pwrite): Updated to use wrapped file descriptor.
10978 (target_fileio_pread): Likewise.
10979 (target_fileio_close): Likewise.
10980
10981 2015-03-24 Pedro Alves <palves@redhat.com>
10982
10983 * thread.c (thread_apply_all_command): Take exited threads into
10984 account.
10985
10986 2015-03-24 Pedro Alves <palves@redhat.com>
10987
10988 * infrun.c (resume, proceed): Mention
10989 switch_back_to_stepped_thread, not switch_back_to_stepping.
10990
10991 2015-03-24 Pedro Alves <palves@redhat.com>
10992
10993 * infrun.c (user_visible_resume_ptid): Rewrite going from
10994 most-locked to unlocked instead of the opposite. Move comment ...
10995 * infrun.h (user_visible_resume_ptid): ... here.
10996
10997 2015-03-24 Pedro Alves <palves@redhat.com>
10998
10999 * linux-nat.c (linux_nat_resume): Output debug logs before trying
11000 to resume the event lwp. Use the lwp's ptid instead of the passed
11001 in (maybe wildcard) ptid.
11002 (stop_wait_callback): Tweak debug log output.
11003 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
11004 TRAP_TRACE.
11005 (linux_nat_filter_event): In debug output, distinguish a
11006 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
11007 before trying to resume the lwp.
11008
11009 2015-03-24 Joel Brobecker <brobecker@adacore.com>
11010
11011 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
11012 pointer indirection.
11013 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
11014 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
11015
11016 2015-03-24 Joel Brobecker <brobecker@adacore.com>
11017
11018 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
11019 Renames DYN_ATTR_DATA_LOCATION.
11020 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
11021 DYN_ATTR_DATA_LOCATION.
11022 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
11023 instead of DYN_ATTR_DATA_LOCATION.
11024
11025 2015-03-24 Pedro Alves <palves@redhat.com>
11026
11027 * breakpoint.c (until_break_command): Adjust call to proceed.
11028 * gdbthread.h (struct thread_control_state) <stepping_command>:
11029 New field.
11030 * infcall.c (run_inferior_call): Adjust call to proceed.
11031 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
11032 Adjust calls to proceed.
11033 (set_step_frame): Set the current thread's step_start_function
11034 here.
11035 (step_once): Adjust calls to proceed.
11036 (jump_command, signal_command, until_next_command)
11037 (finish_backward, finish_forward, proceed_after_attach_callback)
11038 (attach_command_post_wait): Adjust calls to proceed.
11039 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
11040 (do_target_resume): New function, factored out from ...
11041 (resume): ... here. Remove 'step' parameter. Instead, check
11042 currently_stepping to determine whether the thread should be
11043 single-stepped.
11044 (proceed): Remove 'step' parameter and don't set the thread's
11045 step_start_function here. Adjust call to 'resume'.
11046 (handle_inferior_event): Adjust calls to 'resume'.
11047 (switch_back_to_stepped_thread): Use do_target_resume instead of
11048 'resume'.
11049 (keep_going): Adjust calls to 'resume'.
11050 * infrun.h (proceed): Remove 'step' parameter.
11051 (resume): Likewise.
11052 * windows-nat.c (do_initial_windows_stuff): Adjust call to
11053 'resume'.
11054 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
11055
11056 2015-03-24 Pedro Alves <palves@redhat.com>
11057
11058 * gdbthread.h (struct thread_control_state) <stepping_command>:
11059 New field.
11060 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
11061 the thread's stepping_command field.
11062 * infrun.c (resume): Check the thread's stepping_command flag to
11063 determine which threads should be resumed. Rename 'entry_step'
11064 local to user_step.
11065 (clear_proceed_status_thread): Clear 'stepping_command'.
11066 (schedlock_applies): Change parameter type to struct thread_info
11067 pointer. Adjust.
11068 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
11069 (switch_back_to_stepped_thread): Adjust calls to
11070 'schedlock_applies'.
11071 (_initialize_infrun): Adjust "set scheduler-locking step" help.
11072
11073 2015-03-24 Pedro Alves <palves@redhat.com>
11074
11075 * infrun.c (step_start_function): Delete and ...
11076 * gdbthread.h (struct thread_control_state) <step_start_function>:
11077 ... now a field here.
11078 * infrun.c (clear_proceed_status_thread): Clear the thread's
11079 step_start_function.
11080 (proceed, process_event_stop_test, print_stop_event): Adjust.
11081
11082 2015-03-24 Pedro Alves <palves@redhat.com>
11083
11084 * infrun.c (proceed): No longer handle negative step.
11085
11086 2015-03-24 Gary Benson <gbenson@redhat.com>
11087
11088 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
11089 (x86_linux_prepare_to_resume): Likewise.
11090 * x86-linux-nat.c (x86_linux_new_thread):
11091 Moved to nat/x86-linux.c.
11092 (x86_linux_prepare_to_resume): Likewise.
11093 * nat/x86-linux.c (x86_linux_new_thread): New function.
11094 (x86_linux_prepare_to_resume): Likewise.
11095
11096 2015-03-24 Gary Benson <gbenson@redhat.com>
11097
11098 * nat/x86-linux-dregs.h: New file.
11099 * nat/x86-linux-dregs.c: Likewise.
11100 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
11101 (x86-linux-dregs.o): New rule.
11102 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
11103 * config/i386/linux64.mh (NATDEPFILES): Likewise.
11104 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
11105 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11106 (x86_linux_dr_get): Likewise.
11107 (x86_linux_dr_set): Likewise.
11108 (x86_linux_dr_get_addr): Likewise.
11109 (x86_linux_dr_get_control): Likewise.
11110 (x86_linux_dr_get_status): Likewise.
11111 (update_debug_registers_callback): Likewise.
11112 (x86_linux_dr_set_control): Likewise.
11113 (x86_linux_dr_set_addr): Likewise.
11114 (x86_linux_update_debug_registers): Likewise.
11115
11116 2015-03-24 Gary Benson <gbenson@redhat.com>
11117
11118 * x86-linux-nat.c (x86_linux_update_debug_registers):
11119 New function, factored out from...
11120 (x86_linux_prepare_to_resume): ...this.
11121
11122 2015-03-24 Gary Benson <gbenson@redhat.com>
11123
11124 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
11125 (x86_linux_dr_set): Likewise.
11126 (x86_linux_dr_get_addr): Likewise.
11127 (x86_linux_dr_get_control): Likewise.
11128 (x86_linux_dr_get_status): Likewise.
11129 (update_debug_registers_callback): Likewise.
11130 (x86_linux_dr_set_control): Likewise.
11131 (x86_linux_dr_set_addr): Likewise.
11132 (x86_linux_prepare_to_resume): Likewise.
11133 (x86_linux_new_thread): Likewise.
11134
11135 2015-03-24 Gary Benson <gbenson@redhat.com>
11136
11137 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
11138 (x86_linux_new_thread): Rename argument.
11139
11140 2015-03-24 Gary Benson <gbenson@redhat.com>
11141
11142 * nat/x86-linux.h: New file.
11143 * nat/x86-linux.c: Likewise.
11144 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
11145 (x86-linux.o): New rule.
11146 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
11147 * config/i386/linux64.mh (NATDEPFILES): Likewise.
11148 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
11149 (lwp_set_arch_private_info): New declaration.
11150 (lwp_arch_private_info): Likewise.
11151 * linux-nat.c (lwp_set_arch_private_info): New function.
11152 (lwp_arch_private_info): Likewise.
11153 * x86-linux-nat.c: Include nat/x86-linux.h.
11154 (arch_lwp_info): Removed structure.
11155 (update_debug_registers_callback):
11156 Use lwp_set_debug_registers_changed.
11157 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11158 and lwp_set_debug_registers_changed.
11159 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11160
11161 2015-03-24 Gary Benson <gbenson@redhat.com>
11162
11163 * nat/linux-nat.h (ptid_of_lwp): New declaration.
11164 (lwp_is_stopped): Likewise.
11165 (lwp_stop_reason): Likewise.
11166 * linux-nat.c (ptid_of_lwp): New function.
11167 (lwp_is_stopped): Likewise.
11168 (lwp_is_stopped_by_watchpoint): Likewise.
11169 * x86-linux-nat.c (update_debug_registers_callback):
11170 Use lwp_is_stopped.
11171 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11172 lwp_stop_reason.
11173
11174 2015-03-24 Gary Benson <gbenson@redhat.com>
11175
11176 * linux-nat.h (linux_stop_lwp): Move declaration to...
11177 * nat/linux-nat.h (linux_stop_lwp): New declaration.
11178
11179 2015-03-24 Gary Benson <gbenson@redhat.com>
11180
11181 * linux-nat.h: Include nat/linux-nat.h.
11182 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
11183 * nat/linux-nat.h (struct lwp_info): New forward declaration.
11184 (iterate_over_lwps_ftype): New typedef.
11185 (iterate_over_lwps): New declaration.
11186 * linux-nat.h (iterate_over_lwps): Update comment. Use
11187 iterate_over_lwps_ftype. Update callback return value check.
11188
11189 2015-03-24 Gary Benson <gbenson@redhat.com>
11190
11191 * x86-nat.h (x86_debug_reg_state): Move declaration to...
11192 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
11193
11194 2015-03-24 Gary Benson <gbenson@redhat.com>
11195
11196 * nat/linux-nat.h (current_lwp_ptid): New declaration.
11197 * linux-nat.c (current_lwp_ptid): New function.
11198 * x86-linux-nat.c: Include nat/linux-nat.h.
11199 (x86_linux_dr_get_addr): Use current_lwp_ptid.
11200 (x86_linux_dr_get_control): Likewise.
11201 (x86_linux_dr_get_status): Likewise.
11202 (x86_linux_dr_set_control): Likewise.
11203 (x86_linux_dr_set_addr): Likewise.
11204
11205 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
11206
11207 PR breakpoints/16466
11208 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
11209
11210 2015-03-23 Joel Brobecker <brobecker@adacore.com>
11211
11212 * ser-mingw.c (ser_windows_setparity): Fix indentation.
11213 * ser-unix.c (hardwire_setparity): Likewise.
11214
11215 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
11216
11217 * NEWS: Mention set/show serial parity command.
11218 * monitor.c (monitor_open): Call serial_setparity.
11219 * remote.c (remote_open_1): Likewise.
11220 * ser-base.c (ser_base_serparity): New function.
11221 * ser-base.h (ser_base_setparity): Add declaration.
11222 * ser-go32.c (dos_ops): Set "setparity" field.
11223 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
11224 state.Parity.
11225 (ser_windows_setparity): New function.
11226 (hardwire_ops): Add ser_windows_setparity.
11227 (tty_ops): Add NULL for setparity field.
11228 (pipe_ops): Add ser_base_setparity.
11229 (tcp_ops): Likewise.
11230 * ser-pipe.c (pipe_ops): Likewise.
11231 * ser-tcp.c (tcp_ops): Likewise.
11232 * ser-unix.c (hardwire_setparity): Add declaration.
11233 (hardwire_raw): Don't reset PARENB flag.
11234 (hardwire_setparity): New function.
11235 (hardwire_ops): Add hardwire_setparity.
11236 * serial.c (serial_setparity): New function.
11237 (serial_parity): New global.
11238 (parity_none, parity_odd, parity_even, parity_enums, parity):
11239 New static globals.
11240 (set_parity): New function.
11241 (_initialize_serial): Add set/show serial parity commands.
11242 * serial.h (GDBPARITY_NONE): Define.
11243 (GDBPARITY_ODD): Define.
11244 (GDBPARITY_EVEN): Define.
11245 (serial_setparity) Add declaration.
11246 (struct serial_ops): Add setparity field.
11247 * target.h (serial_parity): Add declaration.
11248
11249 2015-03-23 Keith Seitz <keiths@redhat.com>
11250
11251 * linespec.c (linespec_lexer_lex_keyword): Update comment.
11252
11253 2015-03-23 Keith Seitz <keiths@redhat.com>
11254
11255 * breakpoint.c (parse_breakpoint_sals): Use
11256 linespec_lexer_lex_keyword to ascertain if the user specified
11257 a NULL location.
11258 * linespec.c [IF_KEYWORD_INDEX]: Define.
11259 (linespec_lexer_lex_keyword): Export.
11260 (struct ls_parser) <keyword_ok>: Remove.
11261 A keyword is only a keyword if not followed by another keyword.
11262 (linespec_lexer_lex_one): Remove keyword_ok handling.
11263 Add comment explaining why the parsing stream is not advanced
11264 when a keyword is seen.
11265 (parse_linespec): Remove parser->keyword_ok.
11266 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
11267
11268 2015-03-23 Keith Seitz <keiths@redhat.com>
11269
11270 PR gdb/18021
11271 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
11272 if we find a static method with DW_AT_vtable_elem_location.
11273
11274 2015-03-21 Eli Zaretskii <eliz@gnu.org>
11275
11276 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
11277 before the second loop, to avoid undefined behavior. Reported by
11278 Anton Blanchard <anton@samba.org>.
11279
11280 2015-03-20 Keven Boell <keven.boell@intel.com>
11281
11282 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
11283 data_location usage to linked list.
11284 (resolve_dynamic_type_internal): Adapt data_location to
11285 linked list.
11286 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
11287 (copy_type_recursive, copy_type): Add copy of linked list.
11288 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
11289 (struct dynamic_prop_list): New struct.
11290 * dwarf2read.c (set_die_type): Set data_location data.
11291
11292 2015-03-20 Pedro Alves <palves@redhat.com>
11293
11294 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
11295 inner block and make it const.
11296 * machoread.c (get_archive_prefix_len): Make "lparen" const.
11297
11298 2015-03-20 Pedro Alves <palves@redhat.com>
11299
11300 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
11301 * breakpoint.h (set_breakpoint_condition): Update declaration.
11302
11303 2015-03-20 Pedro Alves <palves@redhat.com>
11304
11305 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
11306
11307 2015-03-20 Pedro Alves <palves@redhat.com>
11308
11309 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
11310
11311 2015-03-20 Pedro Alves <palves@redhat.com>
11312
11313 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
11314
11315 2015-03-20 Pedro Alves <palves@redhat.com>
11316
11317 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
11318 (nto_init_solib_absolute_prefix): Likewise.
11319
11320 2015-03-20 Pedro Alves <palves@redhat.com>
11321
11322 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
11323 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
11324
11325 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11326
11327 * config/djgpp/README: Remove gdb.hp.
11328
11329 2015-03-20 Yao Qi <yao.qi@linaro.org>
11330
11331 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
11332 set_gdbarch_cannot_step_breakpoint.
11333
11334 2015-03-19 Pedro Alves <palves@redhat.com>
11335
11336 * linux-nat.c (linux_resume_one_lwp): Rename to ...
11337 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11338 instead call perror_with_name.
11339 (check_ptrace_stopped_lwp_gone): New function.
11340 (linux_resume_one_lwp): Reimplement as wrapper around
11341 linux_resume_one_lwp_throw that swallows errors if the LWP is
11342 gone.
11343 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
11344 swallows errors if the LWP is gone. Use
11345 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
11346
11347 2015-03-19 Pedro Alves <palves@redhat.com>
11348
11349 * linux-nat.c (status_callback): Return early if the LWP has no
11350 status pending.
11351
11352 2015-03-19 Pedro Alves <palves@redhat.com>
11353
11354 * linux-nat.c (select_event_lwp_callback): Update comment to no
11355 longer mention SIGTRAP.
11356
11357 2015-03-18 Tristan Gingold <gingold@adacore.com>
11358
11359 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
11360 redirection code to ...
11361 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
11362 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
11363
11364 2015-03-18 Gary Benson <gbenson@redhat.com>
11365
11366 (remote_protocol_features): Remove the "vFile:fstat" feature.
11367 (remote_hostio_fstat): Probe for "vFile:fstat" support.
11368
11369 2015-03-11 Yao Qi <yao.qi@linaro.org>
11370
11371 PR tdep/18107
11372 * aarch64-linux-tdep.c: Include xml-syscall.h
11373 (aarch64_linux_get_syscall_number): New function.
11374 (aarch64_linux_init_abi): Call
11375 set_gdbarch_get_syscall_number.
11376 * syscalls/aarch64-linux.xml: New file.
11377
11378 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
11379
11380 * ser-base.h (ser_base_setstopbits): Change second argument name
11381 from "rate" to "num".
11382
11383 2015-03-17 Gary Benson <gbenson@redhat.com>
11384 Luke Allardyce <lukeallardyce@gmail.com>
11385
11386 PR gdb/18131
11387 * common/common-remote-fileio.h (sys/stat.h): New include.
11388 (stuct stat): Remove forward declaration.
11389
11390 2015-03-16 John Baldwin <jhb@FreeBSD.org>
11391
11392 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
11393 before writing core register notes.
11394
11395 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
11396 Pedro Alves <palves@redhat.com>
11397
11398 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
11399 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
11400 (tgoto): Wrap with extern "C".
11401
11402 2015-03-16 Pedro Alves <palves@redhat.com>
11403 Yuanhui Zhang <asmwarrior@gmail.com>
11404
11405 * stub-termcap.c (tputs): Change prototype.
11406
11407 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
11408 Pedro Alves <palves@redhat.com>
11409
11410 * windows-nat.c (struct thread_info_struct): Rename to ...
11411 (struct windows_thread_info_struct): ... this.
11412 (thread_info): Rename to ...
11413 (windows_thread_info): ... this.
11414 All users updated.
11415
11416 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11417 Pedro Alves <palves@redhat.com>
11418
11419 * NEWS: New Removed targets and native configurations.
11420
11421 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11422
11423 Remove HPUX.
11424 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
11425 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
11426 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
11427 ia64-hpux-tdep.h, solib-ia64-hpux.h.
11428 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
11429 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
11430 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
11431 hppa-hpux-tdep.c.
11432 * config/ia64/hpux.mh: Remove file.
11433 * config/pa/hpux.mh: Remove file.
11434 * configure: Rebuilt.
11435 * configure.ac (dlgetmodinfo, somread.o): Remove.
11436 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
11437 (ia64-*-hpux*): Remove its float format exception.
11438 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
11439 * hppa-hpux-nat.c: Remove file.
11440 * hppa-hpux-tdep.c: Remove file.
11441 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
11442 Move them here from hppa-tdep.h
11443 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
11444 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
11445 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
11446 Move them to hppa-tdep.c.
11447 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
11448 declarations.
11449 * ia64-hpux-nat.c: Remove file.
11450 * ia64-hpux-tdep.c: Remove file.
11451 * ia64-hpux-tdep.h: Remove file.
11452 * inf-ttrace.c: Remove file.
11453 * inf-ttrace.h: Remove file.
11454 * solib-ia64-hpux.c: Remove file.
11455 * solib-ia64-hpux.h: Remove file.
11456 * solib-pa64.c: Remove file.
11457 * solib-pa64.h: Remove file.
11458 * solib-som.c: Remove file.
11459 * solib-som.h: Remove file.
11460 * somread.c: Remove file.
11461
11462 2015-03-13 John Baldwin <jhb@FreeBSD.org>
11463
11464 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
11465 * config.in: Regenerate.
11466 * configure: Regenerate.
11467 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
11468 define.
11469 (fbsd_find_memory_regions): Use kinfo_getvmmap to
11470 enumerate memory regions if present.
11471
11472 2015-03-13 John Baldwin <jhb@FreeBSD.org>
11473
11474 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
11475 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
11476 expressions.
11477 (i386fbsd_sigtramp_p): Likewise.
11478
11479 2015-03-12 John Baldwin <jhb@FreeBSD.org>
11480
11481 * MAINTAINERS (Write After Approval): Add John Baldwin.
11482
11483 2015-03-12 Gary Benson <gbenson@redhat.com>
11484
11485 * solib.c (_initialize_solib): Make "set/show sysroot" use
11486 add_setshow_optional_filename_cmd so it can be restored to
11487 empty after being set.
11488
11489 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
11490
11491 * Makefile.in (SFILES): New source break-catch-syscall.c.
11492 (COMMON_OBS): New object break-catch-syscall.o.
11493 * break-catch-syscall.c: New file.
11494 * breakpoint.c: Remove inclusion of "xml-syscall.h".
11495 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
11496 (struct syscall_catchpoint): Likewise.
11497 (dtor_catch_syscall): Likewise.
11498 (catch_syscall_inferior_data): Likewise.
11499 (struct catch_syscall_inferior_data): Likewise.
11500 (get_catch_syscall_inferior_data): Likewise.
11501 (catch_syscall_inferior_data_cleanup): Likewise.
11502 (insert_catch_syscall): Likewise.
11503 (remove_catch_syscall): Likewise.
11504 (breakpoint_hit_catch_syscall): Likewise.
11505 (print_it_catch_syscall): Likewise.
11506 (print_one_catch_syscall): Likewise.
11507 (print_mention_catch_syscall): Likewise.
11508 (print_recreate_catch_syscall): Likewise.
11509 (catch_syscall_breakpoint_ops): Likewise.
11510 (syscall_catchpoint_p): Likewise.
11511 (create_syscall_event_catchpoint): Likewise.
11512 (catch_syscall_split_args): Likewise.
11513 (catch_syscall_command_1): Likewise.
11514 (is_syscall_catchpoint_enabled): Likewise.
11515 (catch_syscall_enabled): Likewise.
11516 (catching_syscall_number): Likewise.
11517 (catch_syscall_completer): Likewise.
11518 (clear_syscall_counts): Likewise.
11519 (initialize_breakpoint_ops): Move initialization of syscall
11520 catchpoints to break-catch-syscall.c.
11521 (_initialize_breakpoint): Move code related to syscall catchpoints
11522 to break-catch-syscall.c.
11523
11524 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
11525
11526 * breakpoint.c (breakpoint_find_if): New function.
11527 * breakpoint.h (breakpoint_find_if): New prototype.
11528
11529 2015-03-11 Gary Benson <gbenson@redhat.com>
11530
11531 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
11532 * remote-fileio.c (remote_fileio_to_host_uint): New function.
11533 (remote_fileio_to_host_ulong): Likewise.
11534 (remote_fileio_to_host_mode): Likewise.
11535 (remote_fileio_to_host_time): Likewise.
11536 (remote_fileio_to_host_stat): Likewise.
11537 * remote.c (PACKET_vFile_fstat): New enum value.
11538 (remote_protocol_features): Register the "vFile:fstat" feature.
11539 (remote_hostio_fstat): New function.
11540 (remote_bfd_iovec_stat): Use the above.
11541 (_initialize_remote): Register new "set/show remote
11542 hostio-fstat-packet" command.
11543 * symfile.c (separate_debug_file_exists): Update comment.
11544 * NEWS: Announce new vFile:fstat packet.
11545
11546 2015-03-11 Gary Benson <gbenson@redhat.com>
11547
11548 * common/common-remote-fileio.h: New file.
11549 * common/common-remote-fileio.c: Likewise.
11550 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11551 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
11552 (COMMON_OBS): Add common-remote-fileio.o.
11553 (common-remote-fileio.o): New rule.
11554 * remote-fileio.h (common-remote-fileio.h): New include.
11555 * remote-fileio.c (gdb/fileio.h): Do not include.
11556 (remote_fileio_to_be): Moved to common-remote-fileio.h.
11557 (remote_fileio_to_fio_uint): Likewise.
11558 (remote_fileio_to_fio_time): Likewise.
11559 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
11560 (remote_fileio_to_fio_mode): Likewise.
11561 (remote_fileio_to_fio_ulong): Likewise.
11562 (remote_fileio_to_fio_stat): Likewise.
11563
11564 2015-03-11 Andy Wingo <wingo@igalia.com>
11565
11566 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
11567 we were checking the cached type, not the cached dynamic type.
11568
11569 2015-03-11 Andy Wingo <wingo@igalia.com>
11570
11571 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
11572 other strings, as these are on the GC'd heap, and will be
11573 collected along with the smob.
11574
11575 2015-03-11 Andy Wingo <wingo@igalia.com>
11576
11577 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
11578 (objfile_functions): Bind gdbscm_objfile_progspace to
11579 objfile-progspace.
11580 * guile/lib/gdb.scm: Add objfile-progspace to exports.
11581
11582 2015-03-11 Andy Wingo <wingo@igalia.com>
11583
11584 * guile/guile.c (_initialize_guile): Disable automatic
11585 finalization, if Guile offers us that possibility.
11586 * guile/guile.c (call_initialize_gdb_module):
11587 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
11588 finalizers in appropriate places.
11589 * configure.ac (AC_TRY_LIBGUILE): Add a check for
11590 scm_set_automatic_finalization_enabled.
11591 * configure: Regenerated.
11592
11593 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
11594
11595 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
11596 SAL, if possible.
11597
11598 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
11599
11600 * s390-linux-nat.c (struct arch_lwp_info): New.
11601 (s390_fix_watch_points): Rename to...
11602 (s390_prepare_to_resume): ...this. Skip the PER info update
11603 unless the watch points have changed.
11604 (s390_refresh_per_info, s390_new_thread): New functions.
11605 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
11606 s390_fix_watch_points.
11607 (s390_remove_watchpoint): Likewise.
11608 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
11609 Register s390_prepare_to_resume.
11610
11611 2015-03-09 Pedro Alves <palves@redhat.com>
11612
11613 Revert:
11614 2015-03-07 Pedro Alves <palves@redhat.com>
11615 * common/gdb_socket.h: New file.
11616 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
11617 sys/socket.h.
11618 (net_open): Use union gdb_sockaddr_u.
11619
11620 2015-03-07 Pedro Alves <palves@redhat.com>
11621
11622 * configure.ac (build_warnings): Move -Wmissing-prototypes
11623 -Wdeclaration-after-statement -Wmissing-parameter-type
11624 -Wold-style-declaration -Wold-style-definition to the C-specific
11625 set.
11626 * configure: Regenerate.
11627
11628 2015-03-07 Pedro Alves <palves@redhat.com>
11629
11630 * common/gdb_socket.h: New file.
11631 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
11632 sys/socket.h.
11633 (net_open): Use union gdb_sockaddr_u.
11634
11635 2015-03-07 Pedro Alves <palves@redhat.com>
11636
11637 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
11638 (exceptions_state_mc_action_iter)
11639 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
11640 Don't define.
11641 [__cplusplus] (try_scope_depth): New global.
11642 [__cplusplus] (exception_try_scope_entry)
11643 (exception_try_scope_exit, gdb_exception_sliced_copy)
11644 (exception_rethrow): New functions.
11645 (throw_exception): In C++ mode, throw
11646 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
11647 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
11648 (throw_it): In C++ mode, use try_scope_depth.
11649 * common/common-exceptions.h [!__cplusplus]
11650 (exceptions_state_mc_action_iter)
11651 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
11652 Don't declare.
11653 [__cplusplus] (exception_try_scope_entry)
11654 (exception_try_scope_exit, exception_rethrow): Declare.
11655 [__cplusplus] (struct exception_try_scope): New struct.
11656 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
11657 C++ exceptions.
11658 (struct gdb_exception_RETURN_MASK_ALL)
11659 (struct gdb_exception_RETURN_MASK_ERROR)
11660 (struct gdb_exception_RETURN_MASK_QUIT): New types.
11661
11662 2015-03-07 Pedro Alves <palves@redhat.com>
11663
11664 * main.c (handle_command_errors): Remove volatile qualifier from
11665 parameter.
11666
11667 2015-03-07 Pedro Alves <palves@redhat.com>
11668
11669 * breakpoint.c (save_breakpoints): Adjust to avoid code between
11670 TRY and CATCH.
11671 * gdbtypes.c (safe_parse_type): Remove empty line.
11672 (types_deeply_equal):
11673 * guile/scm-frame.c (gdbscm_frame_name):
11674 * linux-thread-db.c (find_new_threads_once):
11675 * python/py-breakpoint.c (bppy_get_commands):
11676 * record-btrace.c (record_btrace_insert_breakpoint)
11677 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
11678 (record_btrace_start_replaying): Adjust to avoid code between TRY
11679 and CATCH.
11680
11681 2015-03-07 Pedro Alves <palves@redhat.com>
11682
11683 * common/common-exceptions.c (struct catcher) <exception>: No
11684 longer a pointer to volatile exception. Now an exception value.
11685 <mask>: Delete field.
11686 (exceptions_state_mc_init): Remove all parameters. Adjust.
11687 (exceptions_state_mc): No longer pop the catcher here.
11688 (exceptions_state_mc_catch): New function.
11689 (throw_exception): Adjust.
11690 * common/common-exceptions.h (exceptions_state_mc_init): Remove
11691 all parameters.
11692 (exceptions_state_mc_catch): Declare.
11693 (TRY_CATCH): Rename to ...
11694 (TRY): ... this. Remove EXCEPTION and MASK parameters.
11695 (CATCH, END_CATCH): New.
11696 All callers adjusted.
11697
11698 2015-03-07 Tom Tromey <tromey@redhat.com>
11699
11700 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
11701
11702 2015-03-07 Pedro Alves <palves@redhat.com>
11703
11704 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11705 (amd64_epilogue_frame_cache): Normal exception handling code.
11706 * break-catch-throw.c (check_status_exception_catchpoint)
11707 (re_set_exception_catchpoint): Ditto.
11708 * cli/cli-interp.c (safe_execute_command):
11709 * cli/cli-script.c (script_from_file): Ditto.
11710 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
11711 Ditto.
11712 * compile/compile-object-run.c (compile_object_run): Ditto.
11713 * cp-abi.c (baseclass_offset): Ditto.
11714 * cp-valprint.c (cp_print_value): Ditto.
11715 * exceptions.c (catch_exceptions_with_msg):
11716 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
11717 * frame.c (get_frame_address_in_block_if_available): Ditto.
11718 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11719 (i386_sigtramp_frame_cache): Ditto.
11720 * infcmd.c (post_create_inferior): Ditto.
11721 * linespec.c (parse_linespec, find_linespec_symbols):
11722 * p-valprint.c (pascal_object_print_value): Ditto.
11723 * parse.c (parse_expression_for_completion): Ditto.
11724 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
11725 * remote.c (remote_get_noisy_reply): Ditto.
11726 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
11727 * solib-svr4.c (solib_svr4_r_map): Ditto.
11728
11729 2015-03-06 Gary Benson <gbenson@redhat.com>
11730
11731 * common/common-utils.h (startswith): New inline function.
11732 All places where this logic was used updated to use the above.
11733
11734 2015-03-05 Pedro Alves <palves@redhat.com>
11735
11736 PR gdb/18002
11737 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
11738 after reading the breakpoint's shadow memory.
11739
11740 2015-03-05 Mark Kettenis <kettenis@gnu.org>
11741
11742 * hppabsd-nat.c: Remove file.
11743 * hppaobsd-nat.c: New file.
11744 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
11745 hppaobsd-nat.c.
11746 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
11747 hppaobsd-nat.o.
11748
11749 2015-03-04 Pedro Alves <palves@redhat.com>
11750
11751 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
11752 (target_decr_pc_after_break): Delete declaration.
11753 * target.c (default_target_decr_pc_after_break)
11754 (target_decr_pc_after_break): Delete.
11755 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
11756 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
11757 * linux-thread-db.c (check_event): Likewise.
11758 * infrun.c (adjust_pc_after_break): Likewise.
11759 * darwin-nat.c (cancel_breakpoint): Likewise.
11760 * aix-thread.c (aix_thread_wait): Likewise.
11761 * target-delegates.c: Regenerate.
11762
11763 2015-03-04 Pedro Alves <palves@redhat.com>
11764
11765 * linux-nat.c (save_sigtrap): Check for breakpoints before
11766 checking watchpoints.
11767 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11768 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11769 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
11770 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
11771 (linux_nat_stopped_by_sw_breakpoint)
11772 (linux_nat_supports_stopped_by_sw_breakpoint)
11773 (linux_nat_stopped_by_hw_breakpoint)
11774 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
11775 (linux_nat_wait_1): Don't re-increment the PC if relying on
11776 SIGTRAP's siginfo->si_code.
11777 (linux_nat_add_target): Install new target methods.
11778 * linux-thread-db.c (check_event): Don't account for breakpoint PC
11779 offset if the target already adjusted the PC.
11780 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
11781 (GDB_ARCH_TRAP_BRKPT): New.
11782 (TRAP_HWBKPT): Define if not already defined.
11783
11784 2015-03-04 Pedro Alves <palves@redhat.com>
11785
11786 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
11787 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
11788 Delete field.
11789 <stop_reason>: New field.
11790 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
11791 (packet_set_cmd_state): New function.
11792 (remote_protocol_features): Register the "swbreak" and "hwbreak"
11793 features.
11794 (remote_query_supported): If not disabled with the corresponding
11795 "set remote foo-packet" command, report support for the swbreak
11796 and hwbreak features.
11797 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
11798 field.
11799 <stop_reason>: New field.
11800 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
11801 (remote_wait_as): Adjust.
11802 (remote_stopped_by_sw_breakpoint)
11803 (remote_supports_stopped_by_sw_breakpoint)
11804 (remote_stopped_by_hw_breakpoint)
11805 (remote_supports_stopped_by_hw_breakpoint): New functions.
11806 (remote_stopped_by_watchpoint): New function.
11807 (init_remote_ops): Install them.
11808 (_initialize_remote): Register new "set/show remote
11809 swbreak-feature-packet" and "set/show remote
11810 swbreak-feature-packet" commands.
11811
11812 2015-03-04 Pedro Alves <palves@redhat.com>
11813
11814 * btrace.h: Include target/waitstatus.h.
11815 (struct btrace_thread_info) <stop_reason>: New field.
11816 * record-btrace.c (record_btrace_step_thread): Use
11817 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
11818 (record_btrace_decr_pc_after_break): Delete.
11819 (record_btrace_stopped_by_sw_breakpoint)
11820 (record_btrace_supports_stopped_by_sw_breakpoint)
11821 (record_btrace_stopped_by_hw_breakpoint)
11822 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
11823 (init_record_btrace_ops): Install them.
11824 * record-full.c (record_full_hw_watchpoint): Delete and replace
11825 with ...
11826 (record_full_stop_reason): ... this throughout.
11827 (record_full_exec_insn): Adjust.
11828 (record_full_wait_1): Adjust. No longer re-increment the PC.
11829 (record_full_wait_1): Adjust. Use
11830 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
11831 (record_full_stopped_by_watchpoint): Adjust.
11832 (record_full_stopped_by_sw_breakpoint)
11833 (record_full_supports_stopped_by_sw_breakpoint)
11834 (record_full_supports_stopped_by_sw_breakpoint)
11835 (record_full_stopped_by_hw_breakpoint)
11836 (record_full_supports_stopped_by_hw_breakpoint): New functions.
11837 (init_record_full_ops, init_record_full_core_ops): Install them.
11838 * record.c (record_check_stopped_by_breakpoint): New function.
11839 * record.h: Include target/waitstatus.h.
11840 (record_check_stopped_by_breakpoint): New declaration.
11841
11842 2015-03-04 Pedro Alves <palves@redhat.com>
11843
11844 enum lwp_stop_reason -> enum target_stop_reason
11845 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
11846 (linux_nat_stopped_by_watchpoint, status_callback)
11847 (linux_nat_wait_1): Adjust.
11848 * linux-nat.h (enum lwp_stop_reason): Delete.
11849 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11850 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
11851 * target/waitstatus.h (enum target_stop_reason): New.
11852
11853 2015-03-04 Pedro Alves <palves@redhat.com>
11854
11855 * breakpoint.c (need_moribund_for_location_type): New function.
11856 (bpstat_stop_status): Don't skipping checking moribund locations
11857 of breakpoint types which the target tell caused a stop.
11858 (program_breakpoint_here_p): New function, factored out from ...
11859 (bp_loc_is_permanent): ... this.
11860 (update_global_location_list): Don't create a moribund location if
11861 the target supports reporting stops of the type of the removed
11862 breakpoint.
11863 * breakpoint.h (program_breakpoint_here_p): New declaration.
11864 * infrun.c (adjust_pc_after_break): Return early if the target has
11865 already adjusted the PC. Add comments.
11866 (handle_signal_stop): If nothing explains a signal, and the target
11867 tells us the stop was caused by a software breakpoint, check if
11868 there's a breakpoint instruction in the memory. If so, adjust the
11869 PC before presenting the stop to the user. Otherwise, ignore the
11870 trap. If nothing explains a signal, and the target tells us the
11871 stop was caused by a hardware breakpoint, ignore the trap.
11872 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
11873 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
11874 to_supports_stopped_by_hw_breakpoint>: New fields.
11875 (target_stopped_by_sw_breakpoint)
11876 (target_supports_stopped_by_sw_breakpoint)
11877 (target_stopped_by_hw_breakpoint)
11878 (target_supports_stopped_by_hw_breakpoint): Define.
11879 * target-delegates.c: Regenerate.
11880
11881 2015-03-04 Pedro Alves <palves@redhat.com>
11882
11883 * infrun.c (follow_fork_inferior): Use the whole of the
11884 inferior_ptid and pending_follow.related_pid ptids instead of
11885 building ptids from the process components. Adjust verbose output
11886 to use target_pid_to_str.
11887 * linux-nat.c (linux_child_follow_fork): Use the whole of the
11888 inferior_ptid and pending_follow.related_pid ptids instead of
11889 building ptids from the process components.
11890
11891 2015-03-04 Mark Kettenis <kettenis@gnu.org>
11892
11893 * inf-ptrace.c [PT_GET_PROCESS_STATE]
11894 (inf_ptrace_insert_fork_catchpoint): New function.
11895 (inf_ptrace_remove_fork_catchpoint): New function.
11896 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
11897
11898 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11899
11900 * s390-linux-tdep.c (s390_register_name): Return empty string
11901 instead of NULL for registers that shouldn't be visible.
11902
11903 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11904
11905 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
11906 XML file for 64-bit targets.
11907
11908 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
11909
11910 * target.h (find_default_create_inferior): Remove declaration.
11911 (find_default_attach): Likewise.
11912
11913 2015-03-03 Pedro Alves <palves@redhat.com>
11914
11915 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
11916 Use ptid_get_pid to get the overall process id when resuming all
11917 threads.
11918
11919 2015-03-03 Pedro Alves <palves@redhat.com>
11920
11921 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
11922 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
11923 * inf-ptrace.c (get_ptrace_pid): New function.
11924 (inf_ptrace_resume): Use it.
11925 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
11926 to the lower layer.
11927
11928 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11929
11930 * nat/linux-btrace.c: Include sys/utsname.h.
11931 (linux_determine_kernel_ptr_bits): New.
11932 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
11933 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
11934 ptr_bits.
11935
11936 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11937
11938 * btrace.c (ftrace_update_function): Treat return as tailcall for
11939 "_dl_runtime_resolve".
11940
11941 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11942
11943 * btrace.h (btrace_function) <lbegin, lend>: Remove.
11944 * btrace.c (ftrace_debug): Do not print the line range.
11945 (ftrace_skip_file, ftrace_update_lines): Remove.
11946 (ftrace_new_function): Remove lbegin and lend initialization.
11947 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
11948 * record-btrace.c (btrace_compute_src_line_range): New.
11949 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
11950
11951 2015-03-02 Pedro Alves <palves@redhat.com>
11952
11953 * infrun.c (follow_exec): Delete all threads of the process except
11954 the event thread. Extended comments.
11955
11956 2015-03-02 Joel Brobecker <brobecker@adacore.com>
11957
11958 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
11959
11960 2015-03-02 Joel Brobecker <brobecker@adacore.com>
11961
11962 * utils.h: Remove <stdbool.h> #include.
11963 (producer_is_gcc): Change return type to "int".
11964 * utils.c (producer_is_gcc): Change return type to int.
11965 Return 1 instead of true, and 0 instead of false.
11966 Adjust function documentation accordingly.
11967
11968 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11969
11970 * s390-linux-nat.c (have_regset_vxrs): New static variable.
11971 (s390_linux_fetch_inferior_registers): Handle vector registers, if
11972 present.
11973 (s390_linux_store_inferior_registers): Likewise.
11974 (s390_get_hwcap): Remove function. Embed its logic...
11975 (s390_read_description): ...here. Yield a target description with
11976 vector registers if applicable.
11977 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
11978 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
11979 "features/s390x-tevx-linux64.c".
11980 (struct gdbarch_tdep) <v0_full_regnum>: New field.
11981 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
11982 for "GNU/Linux-specific registers".
11983 (s390_dwarf_reg_r0l): New enum value.
11984 (s390_dwarf_reg_to_regnum): Support vector registers.
11985 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
11986 of GPR lower halves.
11987 (regnum_is_vxr_full): New function.
11988 (s390_register_name): New function.
11989 (s390_pseudo_register_name): Handle v0-v15, which are composed of
11990 f0-f15 and v0l-v15l.
11991 (s390_pseudo_register_type): Likewise.
11992 (s390_pseudo_register_read): Likewise.
11993 (s390_pseudo_register_write): Likewise.
11994 (s390_value_from_register): Account for the fact that values are
11995 placed left-justified in vector registers.
11996 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
11997 the vector reggroup and omit them from the general reggroup.
11998 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
11999 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
12000 (s390_iterate_over_regset_sections): Add iterations for the two
12001 new vector regsets.
12002 (s390_core_read_description): Yield a target description with
12003 vector registers if applicable.
12004 (s390_gdbarch_init): Handle target descriptions with vector
12005 registers. Add "register_name" gdbarch method.
12006 (_initialize_s390_tdep): Call new tdesc initialization functions.
12007 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
12008 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
12009 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
12010 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
12011 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
12012 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
12013 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
12014 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
12015 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
12016 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
12017 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
12018 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
12019 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
12020 (S390_NUM_REGS): Adjust value.
12021 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
12022 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
12023 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
12024 * NEWS: Announce S/390 vector register support.
12025
12026 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
12027
12028 * features/s390-tevx-linux64.xml: New file.
12029 * features/s390-vx-linux64.xml: New file.
12030 * features/s390-vx.xml: New file.
12031 * features/s390x-tevx-linux64.xml: New file.
12032 * features/s390x-vx-linux64.xml: New file.
12033 * features/Makefile (WHICH): Add s390-vx-linux64,
12034 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
12035 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
12036 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
12037 macros.
12038 * features/s390-tevx-linux64.c: New generated file.
12039 * features/s390-vx-linux64.c: Likewise.
12040 * features/s390x-tevx-linux64.c: Likewise.
12041 * features/s390x-vx-linux64.c: Likewise.
12042 * regformats/s390-tevx-linux64.dat: Likewise.
12043 * regformats/s390-vx-linux64.dat: Likewise.
12044 * regformats/s390x-tevx-linux64.dat: Likewise.
12045 * regformats/s390x-vx-linux64.dat: Likewise.
12046
12047 2015-02-28 Doug Evans <xdje42@gmail.com>
12048
12049 * symtab.h (struct symtab) <next>: Fix comment.
12050
12051 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
12052
12053 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
12054 python_GdbMethods.
12055
12056 2015-02-27 Pedro Alves <palves@redhat.com>
12057
12058 * dtrace-probe.c (dtrace_probe_ops): Make extern.
12059
12060 2015-02-27 Pedro Alves <palves@redhat.com>
12061
12062 * common/common-exceptions.h (exception_none): Declare.
12063 * common/common-exceptions.c (exception_none): Moved from
12064 exceptions.c.
12065 (exceptions_state_mc_init): Use exception_none.
12066 * exceptions.c (exception_none): Move to
12067 common/common-exceptions.c.
12068 * exceptions.h (exception_none): Move to
12069 common/common-exceptions.h.
12070
12071 2015-02-27 Pedro Alves <palves@redhat.com>
12072
12073 * main.c (catch_command_errors, catch_command_errors_const):
12074 Remove 'mask' argument. Adjust.
12075 (captured_main): Adjust callers.
12076
12077 2015-02-27 Pedro Alves <palves@redhat.com>
12078
12079 * python/python-internal.h: Include "extension-priv.h".
12080
12081 2015-02-27 Pedro Alves <palves@redhat.com>
12082
12083 * breakpoint.h (enum print_stop_action): Move further up in the
12084 file.
12085
12086 2015-02-27 Pedro Alves <palves@redhat.com>
12087
12088 * gdbarch.sh: Include regcache.h.
12089 * gdbarch.h: Regenerate.
12090
12091 2015-02-27 Pedro Alves <palves@redhat.com>
12092
12093 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
12094 Remove duplicate const.
12095 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
12096 duplicate const.
12097
12098 2015-02-27 Pedro Alves <palves@redhat.com>
12099
12100 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
12101 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
12102 * features/feature_to_c.sh: Tag the generated xml_builtin array
12103 with extern const in C++ mode.
12104
12105 2015-02-27 Tom Tromey <tromey@redhat.com>
12106
12107 * minidebug.c (struct lzma_stream): Rename to ...
12108 (struct gdb_lzma_stream): ... this.
12109 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
12110
12111 2015-02-27 Pedro Alves <palves@redhat.com>
12112
12113 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
12114 function.
12115 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
12116 (mi_cmd_stack_list_variables): Use it.
12117
12118 2015-02-27 Pedro Alves <palves@redhat.com>
12119
12120 * x86-linux-nat.c (u_debugreg_offset): New function.
12121 (x86_linux_dr_get, x86_linux_dr_set): Use it.
12122
12123 2015-02-27 Pedro Alves <palves@redhat.com>
12124
12125 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
12126 declaration.
12127 Include break-common.h.
12128
12129 2015-02-27 Tom Tromey <tromey@redhat.com>
12130 Pedro Alves <palves@redhat.com>
12131
12132 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
12133 local used to iterate over enums.
12134 * completer.c (signal_completer): Likewise.
12135 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
12136 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
12137 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
12138 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
12139 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
12140 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
12141 * tui-wingeneral.c (tui_refresh_all): Likewise.
12142
12143 2015-02-27 Pedro Alves <palves@redhat.com>
12144
12145 * target.h: Include "infrun.h".
12146
12147 2015-02-27 Pedro Alves <palves@redhat.com>
12148
12149 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
12150
12151 2015-02-27 Pedro Alves <palves@redhat.com>
12152
12153 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
12154 (IPA_SYM): Use it.
12155 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
12156
12157 2015-02-27 Pedro Alves <palves@redhat.com>
12158
12159 * cli-out.c (_rl_erase_entire_line): Move declaration out of
12160 cli_mld_erase_entire_line, and make it extern "C".
12161 * common/common-defs.h (EXTERN_C): New.
12162 * completer.c (_rl_completion_prefix_display_length)
12163 (_rl_print_completions_horizontally, QSFUNC): Move declarations
12164 out of gdb_display_match_list_1.
12165 (_rl_qsort_string_compare): Move declaration out of
12166 gdb_display_match_list_1, and make it extern "C".
12167 * defs.h (re_comp): Use EXTERN_C.
12168 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
12169 and make it extern "C".
12170 (monstartup): Move declaration out of maintenance_set_profile_cmd,
12171 and make it extern "C".
12172 (main): Move declaration out of maintenance_set_profile_cmd.
12173 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
12174 EXTERN_C.
12175
12176 2015-02-27 Pedro Alves <palves@redhat.com>
12177
12178 * python/python.c (GdbMethods): Rename to ...
12179 (python_GdbMethods): ... this and make extern.
12180 (GdbModuleDef): Rename to ...
12181 (python_GdbModuleDef): ... this and make extern.
12182
12183 2015-02-27 Pedro Alves <palves@redhat.com>
12184
12185 * record-btrace.c (set_record_btrace_cmdlist)
12186 (show_record_btrace_cmdlist): Remove redefinitions.
12187
12188 2015-02-27 Tom Tromey <tromey@redhat.com>
12189 Pedro Alves <palves@redhat.com>
12190
12191 * dwarf2-frame.c (enum cfa_how_kind, struct
12192 dwarf2_frame_state_reg_info): Move out of struct
12193 dwarf2_frame_state.
12194 * dwarf2read.c (struct tu_stats): Move out of struct
12195 dwarf2_per_objfile.
12196 (struct file_entry): Move out of struct line_header.
12197 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
12198 typedef_field_list): Move out of struct field_info.
12199 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
12200 Move out of struct dynamic_prop.
12201 (union type_owner, union field_location, struct field, struct
12202 range_bounds, union type_specific): Move out of struct main_type.
12203 (struct fn_fieldlist, struct fn_field, struct typedef_field)
12204 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
12205 (struct call_site_target, union call_site_parameter_u, struct
12206 call_site_parameter): Move out of struct call_site.
12207 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
12208 m32c_prologue.
12209 (enum srcdest_kind): Move out of struct srcdest.
12210 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
12211 * prologue-value.h (enum prologue_value_kind): Move out of struct
12212 prologue_value.
12213 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
12214 gdbarch_tdep.
12215 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
12216 out of struct field_info.
12217 * symfile.h (struct other_sections): Move out of struct
12218 section_addr_info.
12219 * symtab.c (struct symbol_cache_slot): Move out struct
12220 block_symbol_cache.
12221 * target-descriptions.c (enum tdesc_type_kind): Move out of
12222 typedef struct tdesc_type.
12223 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
12224 struct tui_line_or_address.
12225 * value.c (enum internalvar_kind, union internalvar_data): Move
12226 out of struct internalvar.
12227 * xtensa-tdep.h (struct ctype_cache): Move out of struct
12228 gdbarch_tdep.
12229
12230 2015-02-27 Tom Tromey <tromey@redhat.com>
12231 Pedro Alves <palves@redhat.com>
12232
12233 Rename symbols whose names are reserved C++ keywords throughout.
12234
12235 2015-02-27 Pedro Alves <palves@redhat.com>
12236
12237 * Makefile.in (COMPILER): New, get it from autoconf.
12238 (COMPILE.pre, CC_LD): Use COMPILER.
12239 (CXX): Get from autoconf instead.
12240 (CXX_FOR_TARGET): Default to g++ instead of gcc.
12241 * acinclude.m4: Include build-with-cxx.m4.
12242 * build-with-cxx.m4: New file.
12243 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12244 Disable -Werror by default if building in C++ mode.
12245 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12246 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
12247 Run supported-warning-flags tests with the C++ compiler.
12248 Save/restore CXXFLAGS too.
12249 * configure: Regenerate.
12250
12251 2015-02-27 Pedro Alves <palves@redhat.com>
12252
12253 * libiberty.m4: New file.
12254 * acinclude.m4: Include libiberty.m4.
12255 * configure.ac: Call libiberty_INIT.
12256 * config.in, configure: Regenerate.
12257
12258 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
12259
12260 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
12261 31-bit targets, but 64-bit targets as well.
12262 (s390_gnu_triplet_regexp): New function.
12263 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
12264 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
12265 method.
12266
12267 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
12268
12269 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
12270 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
12271 from CONTEXT_DEBUGGER.
12272
12273 2015-02-26 Doug Evans <dje@google.com>
12274
12275 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
12276 CHECK_TYPEDEF.
12277 (set_type_vptr_fieldno): Ditto.
12278 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
12279 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
12280
12281 2015-02-26 Pedro Alves <palves@redhat.com>
12282
12283 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
12284 * complaints.c (vcomplaint): Pass argument FMT directly to
12285 printf-like functions instead of complaint->fmt.
12286 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
12287 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
12288 * compile/compile-loc2c.c (pushf, unary, binary): Add
12289 ATTRIBUTE_PRINTF.
12290 (do_compile_dwarf_expr_to_c): Pass string literal as format string
12291 to pushf.
12292 (BINARY): Pass string literal as format string to 'binary'.
12293 * compile/compile-object-load.c (link_callbacks_einfo): Add
12294 ATTRIBUTE_PRINTF.
12295 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
12296
12297 2015-02-26 Pedro Alves <palves@redhat.com>
12298
12299 * windows-termcap.c: Rename to ...
12300 * stub-termcap.c: ... this. Adjust header line.
12301 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
12302 windows-termcap.c.
12303 * configure: Regenerate.
12304 * configure.ac: Refer to stub-termcap.o instead of
12305 windows-termcap.o.
12306 * gdb_curses.h: Mention stub-termcap.c instead of
12307 windows-termcap.c.
12308
12309 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12310
12311 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
12312 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
12313
12314 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
12315
12316 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
12317
12318 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12319
12320 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
12321 bfd_canonicalize_symtab.
12322
12323 2015-02-25 John Baldwin <jhb@FreeBSD.org>
12324
12325 * amd64fbsd-nat.c: Include sys/user.h.
12326 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
12327 instead of KERN_PS_STRINGS to locate the signal trampoline.
12328 * i386fbsd-nat.c: Include sys/user.h.
12329 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
12330 instead of KERN_PS_STRINGS to locate the signal trampoline.
12331 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
12332 (amd64fbsd_sigtramp_p): New.
12333 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
12334 longer set default values.
12335 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
12336 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
12337 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
12338 (i386fbsd_freebsd4_sigtramp_start)
12339 (i386fbsd_freebsd4_sigtramp_middle)
12340 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
12341 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
12342 (i386fbsd_sigtramp_p): New.
12343 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
12344 longer set default values.
12345 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
12346
12347 2015-02-25 John Baldwin <jhb@freebsd.org>
12348
12349 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
12350 get_frame_register instead of frame_unwind_register_unsigned.
12351
12352 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12353
12354 PR build/18033
12355 * compile/compile-c-support.c (c_compute_program): Change // comment.
12356 * compile/compile-object-load.c (setup_sections): Change // comment.
12357
12358 2015-02-26 Joel Brobecker <brobecker@adacore.com>
12359
12360 PR build/18033:
12361 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
12362
12363 2015-02-23 Pedro Alves <palves@redhat.com>
12364
12365 * remote.c (skip_to_semicolon): New function.
12366 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
12367 special case the stop reasons that look like hex numbers
12368 upfront. Instead handle real register numbers after matching
12369 all the known stop reasons.
12370
12371 2015-02-21 Doug Evans <dje@google.com>
12372
12373 PR c++/17976, symtab/17821
12374 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
12375 is_in_anonymous. All callers updated.
12376 (find_symbol_in_baseclass): Ditto.
12377 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
12378 for symbols in an anonymous namespace.
12379 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
12380 DW_AT_name directly.
12381 (dwarf2_name): Convert missing namespace name to
12382 CP_ANONYMOUS_NAMESPACE_STR.
12383
12384 2015-02-20 Pedro Alves <palves@redhat.com>
12385
12386 * linux-nat.c (linux_handle_extended_wait): Call
12387 thread_db_notice_clone whenever a new clone LWP is detected.
12388 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
12389 functions.
12390 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
12391 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
12392 (linux_unstop_all_lwps): Declare.
12393 * linux-thread-db.c (struct thread_get_info_inout): Delete.
12394 (thread_get_info_callback): Delete.
12395 (thread_from_lwp): Use td_thr_get_info and record_thread.
12396 (thread_db_attach_lwp): Delete.
12397 (thread_db_notice_clone): New function.
12398 (try_thread_db_load_1): If /proc is mounted and shows the
12399 process'es task list, walk over all LWPs and call thread_from_lwp
12400 instead of relying on td_ta_thr_iter.
12401 (attach_thread): Don't call check_thread_signals here. Split the
12402 tail part of the function (which adds the thread to the core GDB
12403 thread list) to ...
12404 (record_thread): ... this function. Call check_thread_signals
12405 here.
12406 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
12407 call thread_from_lwp.
12408 (thread_db_update_thread_list): Rename to ...
12409 (thread_db_update_thread_list_org): ... this.
12410 (thread_db_update_thread_list): New function.
12411 (thread_db_find_thread_from_tid): Delete.
12412 (thread_db_get_ada_task_ptid): Simplify.
12413 * nat/linux-procfs.c: Include <sys/stat.h>.
12414 (linux_proc_task_list_dir_exists): New function.
12415 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
12416
12417 2015-02-20 Pedro Alves <palves@redhat.com>
12418
12419 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
12420 main LWP. Handle the case of waitpid returning 0 if we're already
12421 attached to the LWP. Don't set the LWP's last_resume_kind to
12422 resume_stop if we already knew about the LWP.
12423 (linux_nat_filter_event): Add debug logs.
12424
12425 2015-02-20 Pedro Alves <palves@redhat.com>
12426
12427 * target.h (forward_target_decr_pc_after_break): Delete
12428 declaration.
12429
12430 2015-02-20 Pedro Alves <palves@redhat.com>
12431
12432 PR threads/18006
12433 * linux-thread-db.c (thread_get_info_callback): Return early if
12434 the thread's lwp id is -1.
12435
12436 2015-02-20 Joel Brobecker <brobecker@adacore.com>
12437
12438 GDB 7.9 released.
12439
12440 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
12441
12442 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
12443 (dtrace_get_probes) Change type of variable 'dof'.
12444
12445 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12446
12447 PR breakpoints/16812
12448 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
12449 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
12450 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
12451
12452 2015-02-19 David Taylor <dtaylor@emc.com>
12453
12454 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
12455
12456 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
12457
12458 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
12459 function.
12460 (tui_putc): Don't call tui_handle_resize_during_io.
12461 (tui_getc): Likewise.
12462 (tui_mld_getc): Likewise.
12463 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
12464 (tui_sigwinch_token): New static variable.
12465 (tui_initialize_win): Adjust documentation. Set
12466 tui_sigwinch_token.
12467 (tui_async_resize_screen): New asynchronous callback.
12468 (tui_sigwinch_handler): Adjust documentation. Asynchronously
12469 invoke tui_async_resize_screen.
12470
12471 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
12472
12473 * configure: Regenerated.
12474 * configure.ac: Use GDB_AC_TRANSFORM.
12475 * Makefile.in (aclocal_m4_deps): Added transform.m4.
12476 * acinclude.m4: sinclude transform.m4.
12477 * transform.m4: New file.
12478 (GDB_AC_TRANSFORM): New macro.
12479
12480 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12481
12482 * NEWS: Announce the support for DTrace SDT probes.
12483
12484 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12485
12486 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
12487 (amd64_dtrace_parse_probe_argument): New function.
12488 (amd64_dtrace_probe_is_enabled): Likewise.
12489 (amd64_dtrace_enable_probe): Likewise.
12490 (amd64_dtrace_disable_probe): Likewise.
12491 (amd64_linux_init_abi): Register the
12492 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
12493 `gdbarch_dtrace_disable_probe' and
12494 `gdbarch_dtrace_probe_is_enabled' hooks.
12495 (amd64_dtrace_disabled_probe_sequence_1): New constant.
12496 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
12497 (amd64_dtrace_enable_probe_sequence): Likewise.
12498 (amd64_dtrace_disable_probe_sequence): Likewise.
12499
12500 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12501
12502 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
12503 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
12504 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
12505 handle ELF files.
12506 * Makefile.in (SFILES): dtrace-probe.c added.
12507 * configure: Regenerate.
12508 * dtrace-probe.c: New file.
12509 (SHT_SUNW_dof): New constant.
12510 (dtrace_probe_type): New enum.
12511 (dtrace_probe_arg): New struct.
12512 (dtrace_probe_arg_s): New typedef.
12513 (struct dtrace_probe_enabler): New struct.
12514 (dtrace_probe_enabler_s): New typedef.
12515 (dtrace_probe): New struct.
12516 (dtrace_probe_is_linespec): New function.
12517 (dtrace_dof_sect_type): New enum.
12518 (dtrace_dof_dofh_ident): Likewise.
12519 (dtrace_dof_encoding): Likewise.
12520 (DTRACE_DOF_ENCODE_LSB): Likewise.
12521 (DTRACE_DOF_ENCODE_MSB): Likewise.
12522 (dtrace_dof_hdr): New struct.
12523 (dtrace_dof_sect): Likewise.
12524 (dtrace_dof_provider): Likewise.
12525 (dtrace_dof_probe): Likewise.
12526 (DOF_UINT): New macro.
12527 (DTRACE_DOF_PTR): Likewise.
12528 (DTRACE_DOF_SECT): Likewise.
12529 (dtrace_process_dof_probe): New function.
12530 (dtrace_process_dof): Likewise.
12531 (dtrace_build_arg_exprs): Likewise.
12532 (dtrace_get_arg): Likewise.
12533 (dtrace_get_probes): Likewise.
12534 (dtrace_get_probe_argument_count): Likewise.
12535 (dtrace_can_evaluate_probe_arguments): Likewise.
12536 (dtrace_evaluate_probe_argument): Likewise.
12537 (dtrace_compile_to_ax): Likewise.
12538 (dtrace_probe_destroy): Likewise.
12539 (dtrace_gen_info_probes_table_header): Likewise.
12540 (dtrace_gen_info_probes_table_values): Likewise.
12541 (dtrace_probe_is_enabled): Likewise.
12542 (dtrace_probe_ops): New variable.
12543 (info_probes_dtrace_command): New function.
12544 (_initialize_dtrace_probe): Likewise.
12545 (dtrace_type_name): Likewise.
12546
12547 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12548
12549 * gdbarch.sh (dtrace_parse_probe_argument): New.
12550 (dtrace_probe_is_enabled): Likewise.
12551 (dtrace_enable_probe): Likewise.
12552 (dtrace_disable_probe): Likewise.
12553 * gdbarch.c: Regenerate.
12554 * gdbarch.h: Regenerate.
12555
12556 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12557
12558 * stap-probe.c (stap_probe_ops): Add NULLs in the static
12559 stap_probe_ops for `enable_probe' and `disable_probe'.
12560 * probe.c (enable_probes_command): New function.
12561 (disable_probes_command): Likewise.
12562 (_initialize_probe): Define the cli commands `enable probe' and
12563 `disable probe'.
12564 (parse_probe_linespec): New function.
12565 (info_probes_for_ops): Use parse_probe_linespec.
12566 * probe.h (probe_ops): New hooks `enable_probe' and
12567 `disable_probe'.
12568
12569 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12570
12571 * probe.c (compute_probe_arg): Moved from stap-probe.c
12572 (compile_probe_arg): Likewise.
12573 (probe_funcs): Likewise.
12574 * stap-probe.c (compute_probe_arg): Moved to probe.c.
12575 (compile_probe_arg): Likewise.
12576 (probe_funcs): Likewise.
12577
12578 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12579
12580 * probe.c (print_ui_out_not_applicables): New function.
12581 (exists_probe_with_pops): Likewise.
12582 (info_probes_for_ops): Do not include column headers for probe
12583 types for which no probe has been actually found on any object.
12584 Also invoke `print_ui_out_not_applicables' in order to match the
12585 column rows with the header when probes of several types are
12586 listed.
12587 Print the "Type" column.
12588 * probe.h (probe_ops): Added a new probe operation `type_name'.
12589 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
12590 (stap_type_name): New function.
12591
12592 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
12593
12594 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
12595 (key_is_command_char): Delete.
12596
12597 2015-02-17 Pedro Alves <palves@redhat.com>
12598
12599 * tui/tui.c (tui_enable): Resize windows before anything
12600 might show a window.
12601
12602 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
12603
12604 PR gdb/17984
12605 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
12606 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
12607 call.
12608 * aarch64-tdep.h (tdesc_aarch64): Declare.
12609
12610 2015-02-12 Mark Wielaard <mjw@redhat.com>
12611
12612 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
12613
12614 2015-02-13 Doug Evans <dje@google.com>
12615
12616 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
12617 anonymous_namespace to is_in_anonymous for consistency with the rest
12618 of the file.
12619 (cp_lookup_bare_symbol): Fix typo in comment.
12620 (cp_search_static_and_baseclasses): Ditto.
12621 (search_symbol_list): Use vertical space in comment better.
12622 (reset_directive_searched): Ditto. Fix typo.
12623 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
12624
12625 2015-02-13 Yao Qi <yao.qi@arm.com>
12626
12627 * MAINTAINERS: Update my email address.
12628
12629 2015-02-12 Doug Evans <dje@google.com>
12630
12631 * symtab.c (completion_list_add_name): Fix memory leak.
12632
12633 2015-02-12 Doug Evans <dje@google.com>
12634
12635 * completer.c (complete_line): Remove incorrect comment.
12636
12637 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12638
12639 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
12640 (py_print_frame): Use RETURN_MASK_ERROR.
12641
12642 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12643
12644 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
12645 function comment. Wrap all function that can throw in cleanups.
12646 (gdbpy_apply_frame_filter): Wrap all function that can throw in
12647 cleanups.
12648
12649 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12650
12651 * python/py-framefilter.c (py_print_frame): Substitute goto error.
12652 Remove the error label.
12653
12654 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12655
12656 * python/py-framefilter.c (py_print_frame): Put conditional code paths
12657 with goto first, indent the former else codepath left. Put variable
12658 'elided' to a new inner block.
12659
12660 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12661
12662 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
12663
12664 2015-02-11 Pedro Alves <palves@redhat.com>
12665
12666 * xcoffread.c (within_function): Delete.
12667
12668 2015-02-11 Tom Tromey <tromey@redhat.com>
12669 Pedro Alves <palves@redhat.com>
12670
12671 * breakpoint.c (base_breakpoint_ops): Delete.
12672 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
12673 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
12674 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
12675 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
12676 * python/py-arch.c (arch_object_type): Make extern.
12677 * python/py-block.c (block_syms_iterator_object_type): Make extern.
12678 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
12679 * python/py-cmd.c (cmdpy_object_type): Make extern.
12680 * python/py-continueevent.c (continue_event_object_type)
12681 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
12682 parameter. Update all callers.
12683 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
12684 * python/py-exitedevent.c (exited_event_object_type): Make extern.
12685 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
12686 * python/py-function.c (fnpy_object_type): Make extern.
12687 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
12688 * python/py-infevents.c (call_pre_event_object_type)
12689 (inferior_call_post_event_object_type).
12690 (memory_changed_event_object_type): Make extern.
12691 * python/py-infthread.c (thread_object_type): Make extern.
12692 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
12693 * python/py-linetable.c (linetable_entry_object_type)
12694 (linetable_object_type, ltpy_iterator_object_type): Make extern.
12695 * python/py-newobjfileevent.c (new_objfile_event_object_type)
12696 (clear_objfiles_event_object_type): Make extern.
12697 * python/py-objfile.c (objfile_object_type): Make extern.
12698 * python/py-param.c (parmpy_object_type): Make extern.
12699 * python/py-progspace.c (pspace_object_type): Make extern.
12700 * python/py-signalevent.c (signal_event_object_type): Make extern.
12701 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
12702 * python/py-type.c (type_object_type, field_object_type)
12703 (type_iterator_object_type): Make extern.
12704 * python/python.c (python_extension_script_ops)
12705 (python_extension_ops): Make extern.
12706 * stap-probe.c (stap_probe_ops): Make extern.
12707
12708 2015-02-11 Pedro Alves <pedro@codesourcery.com>
12709
12710 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
12711 because the event thread is not the current thread.
12712
12713 2015-02-11 Doug Evans <xdje42@gmail.com>
12714
12715 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
12716 been initialized yet, return NULL.
12717
12718 2015-02-11 Doug Evans <dje@google.com>
12719
12720 * symfile.h (new_symfile_objfile): Delete.
12721 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
12722 All callers updated.
12723
12724 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
12725
12726 * tui/tui-io.c (tui_handle_resize_during_io): Call
12727 tui_update_gdb_sizes() after resizing the screen.
12728 * tui/tui.c (tui_enable): Resize the terminal before
12729 calling tui_update_gdb_sizes().
12730
12731 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
12732
12733 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
12734 line before printing a newline.
12735
12736 2015-02-11 Mark Wielaard <mjw@redhat.com>
12737
12738 * utils.c (producer_is_gcc): Return true or false.
12739
12740 2015-02-10 Mark Wielaard <mjw@redhat.com>
12741
12742 * utils.h (producer_is_gcc): Change return type to bool. Add major
12743 argument.
12744 * utils.c (producer_is_gcc): Likewise.
12745 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
12746 * dwarf2read.c (check_producer): Likewise.
12747
12748 2015-02-10 Pedro Alves <palves@redhat.com>
12749
12750 * infrun.c (displaced_step_fixup): Switch to the event thread
12751 before calling gdbarch_displaced_step_fixup.
12752
12753 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12754
12755 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
12756
12757 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
12758
12759 * ada-varobj.c (ada_name_of_child): Constify parent.
12760 (ada_path_expr_of_child): Same.
12761 (ada_value_of_child): Same.
12762 (ada_type_of_child): Same.
12763 * c-varobj.c (c_is_path_expr_parent): Same.
12764 (c_describe_child): Same.
12765 (c_name_of_child): Same.
12766 (c_value_of_child): Same.
12767 (c_type_of_child): Same.
12768 (cplus_number_of_children): Same.
12769 (cplus_describe_child): Constify var.
12770 (cplus_name_of_child): Constify parent.
12771 (cplus_value_of_child): Same.
12772 (cplus_type_of_child): Same.
12773 * jv-varobj.c (java_name_of_child): Same.
12774 (java_value_of_child): Same.
12775 (java_type_of_child): Same.
12776 * varobj.c (value_of_child): Same.
12777 (varobj_default_is_path_expr_parent): Constify var, parent and return
12778 value.
12779 (varobj_get_path_expr): Constify var, modify path_expr through
12780 mutable_var.
12781 (install_new_value): Constify parent.
12782 (value_of_child): Constify parent.
12783 * varobj.h (struct varobj): Constify parent.
12784 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
12785 type_of_child.
12786 (varobj_get_path_expr): Constify var.
12787 (varobj_get_path_expr_parent): Constify var and return value.
12788
12789 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
12790
12791 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
12792 (arm_prologue_this_id): Move PC and SP limit checks to
12793 arm_prologue_unwind_stop_reason.
12794 (arm_prologue_unwind) <stop_reason> : Set to
12795 arm_prologue_unwind_stop_reason.
12796
12797 2015-02-09 Mark Wielaard <mjw@redhat.com>
12798
12799 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
12800 DW_LANG_Fortran08 as language_fortran.
12801
12802 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
12803
12804 PR remote/17946
12805 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
12806 of pointer against char.
12807
12808 2015-02-09 Mark Wielaard <mjw@redhat.com>
12809
12810 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
12811 (c_type_print_modifier): Likewise.
12812 * dwarf2read.c (read_tag_atomic_type): New function.
12813 (read_type_die_1): Handle DW_TAG_atomic_type.
12814 * gdbtypes.c (make_atomic_type): New function.
12815 (recursive_dump_type): Handle TYPE_ATOMIC.
12816 * gdbtypes.h (enum type_flag_values): Renumber.
12817 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
12818 (TYPE_ATOMIC): New macro.
12819 (make_atomic_type): Declare.
12820
12821 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12822
12823 * btrace.c (ftrace_find_call): Skip gaps.
12824 (ftrace_new_function): Initialize level.
12825 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
12826 (ftrace_new_switch): Update
12827 level computation.
12828 (ftrace_new_gap): New.
12829 (ftrace_update_function): Create new function after gap.
12830 (btrace_compute_ftrace_bts): Create gap on error.
12831 (btrace_stitch_bts): Update parameters. Clear trace if it
12832 becomes empty.
12833 (btrace_stitch_trace): Update parameters. Update callers.
12834 (btrace_clear): Reset the number of gaps.
12835 (btrace_insn_get): Return NULL if the iterator points to a gap.
12836 (btrace_insn_number): Return zero if the iterator points to a gap.
12837 (btrace_insn_end): Allow gaps at the end.
12838 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
12839 (btrace_find_insn_by_number): Assert that the found iterator does
12840 not point to a gap.
12841 (btrace_call_next, btrace_call_prev): Assert that the last function
12842 is not a gap.
12843 * btrace.h (btrace_bts_error): New.
12844 (btrace_function): Update comment.
12845 (btrace_function) <insn, insn_offset, number>: Update comment.
12846 (btrace_function) <errcode>: New.
12847 (btrace_thread_info) <ngaps>: New.
12848 (btrace_thread_info) <replay>: Update comment.
12849 (btrace_insn_get): Update comment.
12850 * record-btrace.c (btrace_ui_out_decode_error): New.
12851 (record_btrace_info): Print number of gaps.
12852 (btrace_insn_history, btrace_call_history): Call
12853 btrace_ui_out_decode_error for gaps.
12854 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
12855
12856 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12857
12858 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
12859 * nat/linux-btrace.c: (btrace_this_cpu): New.
12860 (cpu_supports_bts): Call btrace_this_cpu.
12861 (intel_supports_bts): Add cpu parameter.
12862
12863 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12864
12865 * btrace.h (btrace_insn_class): New.
12866 (btrace_insn) <size, iclass>: New.
12867 * btrace.c (ftrace_find_call): Update parameters. Update users.
12868 Use instruction classification.
12869 (ftrace_new_return): Update parameters. Update users.
12870 (ftrace_update_function): Update parameters. Update users. Use
12871 instruction classification.
12872 (ftrace_update_insns): Update parameters. Update users.
12873 (ftrace_classify_insn): New.
12874 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
12875 TRY_CATCH around call to gdb_insn_length.
12876
12877 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12878
12879 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
12880 Update parameters. Update users.
12881
12882 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12883
12884 * btrace.c (parse_xml_btrace_conf_bts): Add size.
12885 (btrace_conf_bts_attributes): New.
12886 (btrace_conf_children): Add attributes.
12887 * common/btrace-common.h (btrace_config_bts): New.
12888 (btrace_config)<bts>: New.
12889 (btrace_config): Update comment.
12890 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
12891 Use config.
12892 * features/btrace-conf.dtd: Increment version. Add size
12893 attribute to bts element.
12894 * record-btrace.c (set_record_btrace_bts_cmdlist,
12895 show_record_btrace_bts_cmdlist): New.
12896 (record_btrace_adjust_size, record_btrace_print_bts_conf,
12897 record_btrace_print_conf, cmd_set_record_btrace_bts,
12898 cmd_show_record_btrace_bts): New.
12899 (record_btrace_info): Call record_btrace_print_conf.
12900 (_initialize_record_btrace): Add commands.
12901 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
12902 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
12903 (btrace_sync_conf): Synchronize bts size.
12904 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
12905 * NEWS: Announce new commands and new packets.
12906
12907 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12908
12909 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
12910 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
12911 (x86_linux_btrace_conf): New.
12912 (x86_linux_create_target): Initialize to_btrace_conf.
12913 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
12914 Check format. Split into this and ...
12915 (linux_enable_bts): ... this.
12916 (linux_btrace_conf): New.
12917 (perf_event_skip_record): Renamed into ...
12918 (perf_event_skip_bts_record): ... this. Updated users.
12919 (linux_disable_btrace): Split into this and ...
12920 (linux_disable_bts): ... this.
12921 (linux_read_btrace): Check format.
12922 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
12923 (linux_btrace_conf): New.
12924 (btrace_target_info)<ptid>: Moved.
12925 (btrace_target_info)<conf>: New.
12926 (btrace_target_info): Split into this and ...
12927 (btrace_tinfo_bts): ... this. Updated users.
12928 * btrace.c (btrace_enable): Update parameters.
12929 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
12930 (btrace_conf_children, btrace_conf_attributes)
12931 (btrace_conf_elements): New.
12932 * btrace.h (btrace_enable): Update parameters.
12933 (btrace_conf, parse_xml_btrace_conf): New.
12934 * common/btrace-common.h (btrace_config): New.
12935 * feature/btrace-conf.dtd: New.
12936 * record-btrace.c (record_btrace_conf): New.
12937 (record_btrace_cmdlist): New.
12938 (record_btrace_enable_warn, record_btrace_open): Pass
12939 &record_btrace_conf.
12940 (record_btrace_info): Print recording format.
12941 (cmd_record_btrace_bts_start): New.
12942 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
12943 (_initialize_record_btrace): Add "record btrace bts" subcommand.
12944 Add "record bts" alias command.
12945 * remote.c (remote_state)<btrace_config>: New.
12946 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
12947 (remote_protocol_features): Add qXfer:btrace-conf:read.
12948 (remote_open_1): Call remote_btrace_reset.
12949 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
12950 (btrace_target_info)<conf>: New.
12951 (btrace_sync_conf, btrace_read_config): New.
12952 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
12953 btrace_read_conf.
12954 (remote_btrace_conf): New.
12955 (init_remote_ops): Initialize to_btrace_conf.
12956 (_initialize_remote): Add qXfer:btrace-conf packet.
12957 * target.c (target_enable_btrace): Update parameters.
12958 (target_btrace_conf): New.
12959 * target.h (target_enable_btrace): Update parameters.
12960 (target_btrace_conf): New.
12961 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
12962 (target_ops)<to_enable_btrace>: Update parameters and comment.
12963 (target_ops)<to_btrace_conf>: New.
12964 * target-delegates: Regenerate.
12965 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
12966 (target_debug_print_const_struct_btrace_target_info_p): New.
12967 * NEWS: Announce new command and new packet.
12968
12969 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12970
12971 * nat/linux-btrace.h (perf_event_buffer): New.
12972 (btrace_target_info) <buffer, size, data_head>: Replace with ...
12973 <bts>: ... this.
12974 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
12975 (perf_event_buffer_size, perf_event_buffer_begin)
12976 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
12977 Updated users.
12978 (perf_event_new_data): New.
12979
12980 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12981
12982 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
12983 * record-btrace.c (record_btrace_open): Remove call to
12984 target_supports_btrace.
12985 * remote.c (remote_supports_btrace): Update parameters.
12986 * target.c (target_supports_btrace): Update parameters.
12987 * target.h (to_supports_btrace, target_supports_btrace): Update
12988 parameters.
12989 * target-delegates.c: Regenerate.
12990 * target-debug.h (target_debug_print_enum_btrace_format): New.
12991 * nat/linux-btrace.c
12992 (kernel_supports_btrace): Rename into ...
12993 (kernel_supports_bts): ... this. Update users. Update warning text.
12994 (intel_supports_btrace): Rename into ...
12995 (intel_supports_bts): ... this. Update users.
12996 (cpu_supports_btrace): Rename into ...
12997 (cpu_supports_bts): ... this. Update users.
12998 (linux_supports_btrace): Update parameters. Split into this and ...
12999 (linux_supports_bts): ... this.
13000 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
13001
13002 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13003
13004 * Makefile.in (SFILES): Add common/btrace-common.c.
13005 (COMMON_OBS): Add common/btrace-common.o.
13006 (btrace-common.o): Add build rules.
13007 * btrace.c (parse_xml_btrace): Update parameters.
13008 (parse_xml_btrace_block): Set format field.
13009 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
13010 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
13011 (btrace_compute_ftrace): Split into this and...
13012 (btrace_compute_ftrace_bts): ...this.
13013 (btrace_stitch_trace): Split into this and...
13014 (btrace_stitch_bts): ...this.
13015 * btrace.h (parse_xml_btrace): Update parameters.
13016 (make_cleanup_btrace_data): New.
13017 * common/btrace-common.c: New.
13018 * common/btrace-common.h: Include common-defs.h.
13019 (btrace_block_s): Update comment.
13020 (btrace_format): New.
13021 (btrace_format_string): New.
13022 (btrace_data_bts): New.
13023 (btrace_data): New.
13024 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
13025 * remote.c (remote_read_btrace): Update parameters.
13026 * target.c (target_read_btrace): Update parameters.
13027 * target.h (target_read_btrace): Update parameters.
13028 (target_ops)<to_read_btrace>: Update parameters.
13029 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
13030 * target-delegates.c: Regenerate.
13031 * target-debug (target_debug_print_struct_btrace_data_p): New.
13032 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
13033 (linux_read_bts): ...this.
13034 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
13035
13036 2015-02-06 Doug Evans <dje@google.com>
13037
13038 * remote-m32r-sdi.c: Include symfile.h.
13039
13040 2015-02-06 Doug Evans <dje@google.com>
13041
13042 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
13043 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
13044 to here.
13045
13046 2015-02-06 Pedro Alves <palves@redhat.com>
13047
13048 * linux-thread-db.c (find_new_threads_callback): Add debug output.
13049
13050 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
13051
13052 PR gdb/15678
13053 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
13054 (enable_count_command): Check args for NULL value.
13055
13056 2015-02-05 Doug Evans <xdje42@gmail.com>
13057
13058 * guile/scm-frame.c: Fix spelling errors in a comment.
13059
13060 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
13061
13062 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
13063 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
13064 return type.
13065
13066 2015-02-04 Pedro Alves <palves@redhat.com>
13067
13068 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
13069 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
13070 returns true.
13071 (resume_stopped_resumed_lwps): Don't check whether the thread is
13072 marked as executing.
13073 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
13074
13075 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
13076
13077 * regset.h (struct regset): Add flags field.
13078 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
13079 * corelow.c (get_core_register_section): Add warning if the size
13080 exceeds the requested size and the regset does not have the
13081 REGSET_VARIABLE_SIZE flag set.
13082 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
13083 flag.
13084 * armbsd-tdep.c (armbsd_gregset): Likewise.
13085 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
13086 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
13087 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
13088 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
13089
13090 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
13091
13092 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
13093 For ".reg-xstate", explicitly specify the requested section size
13094 via X86_XSTATE_SIZE instead of just 0 on input and
13095 X86_XSTATE_MAX_SIZE on output.
13096 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
13097 Likewise.
13098
13099 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
13100
13101 PR corefiles/17808:
13102 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
13103 function type, particularly its SIZE parameter.
13104 * gdbarch.h: Regenerate.
13105 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
13106 actual against required size using ">=" instead of "==".
13107 (amd64_collect_fpregset): Likewise.
13108 * i386-tdep.c (i386_supply_gregset): Likewise.
13109 (i386_collect_gregset): Likewise.
13110 (i386_supply_fpregset): Likewise.
13111 (i386_collect_fpregset): Likewise.
13112 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
13113 (mips_fill_gregset_wrapper): Likewise.
13114 (mips_supply_fpregset_wrapper): Likewise.
13115 (mips_fill_fpregset_wrapper): Likewise.
13116 (mips64_supply_gregset_wrapper): Likewise.
13117 (mips64_fill_gregset_wrapper): Likewise.
13118 (mips64_supply_fpregset_wrapper): Likewise.
13119 (mips64_fill_fpregset_wrapper): Likewise.
13120 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
13121 (am33_supply_fpregset_method): Likewise.
13122 (am33_collect_gregset_method): Likewise.
13123 (am33_collect_fpregset_method): Likewise.
13124
13125 2015-02-04 Doug Evans <dje@google.com>
13126 Pedro Alves <palves@redhat.com>
13127 Eli Zaretskii <eliz@gnu.org>
13128
13129 PR tui/17810
13130 * tui/tui-command.c (tui_refresh_cmd_win): New function.
13131 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
13132 * tui/tui-file.c: #include tui/tui-command.h.
13133 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
13134 (tui_file_flush): Refresh command window if stream is gdb_stdout.
13135 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
13136
13137 2015-02-04 Pedro Alves <palves@redhat.com>
13138
13139 Fix build breakage.
13140 * event-loop.c (gdb_do_one_event): Add default switch case.
13141
13142 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
13143
13144 Filter out inferior gcc option -fpreprocessed.
13145 * compile/compile.c (filter_args): New function.
13146 (get_args): Use it.
13147
13148 2015-02-03 Pedro Alves <palves@redhat.com>
13149
13150 * event-loop.c: Don't declare nor define a queue type for
13151 gdb_event_p.
13152 (event_queue): Delete.
13153 (create_event, create_file_event, gdb_event_xfree)
13154 (initialize_event_loop, process_event): Delete.
13155 (gdb_do_one_event): Return as soon as one event is handled.
13156 (handle_file_event): Change prototype. Used the passed in
13157 file_handler pointer and ready_mask instead of looping over all
13158 file handlers.
13159 (gdb_wait_for_event): Update the poll/select timeouts before
13160 blocking. Run event handlers directly instead of queueing events.
13161 Return as soon as one event is handled.
13162 (struct async_event_handler_data): Delete.
13163 (invoke_async_event_handler): Delete.
13164 (check_async_event_handlers): Change return type to int. Run
13165 event handlers directly instead of queueing events. Return as
13166 soon as one event is handled.
13167 (handle_timer_event): Delete.
13168 (update_wait_timeout): New function, factored out from
13169 poll_timers.
13170 (poll_timers): Reimplement.
13171 * event-loop.h (initialize_event_loop): Delete declaration.
13172 * top.c (gdb_init): Don't call initialize_event_loop.
13173
13174 2015-02-03 Pedro Alves <palves@redhat.com>
13175
13176 * event-loop.c (clear_async_event_handler): New function.
13177 * event-loop.h (clear_async_event_handler): New declaration.
13178 * record-btrace.c (record_btrace_async): New function.
13179 (init_record_btrace_ops): Install record_btrace_async.
13180 * record-full.c (record_full_async): New function.
13181 (record_full_resume): Don't mark the async event source here.
13182 (init_record_full_ops): Install record_full_async.
13183 (record_full_core_resume): Don't mark the async event source here.
13184 (init_record_full_core_ops): Install record_full_async.
13185 * remote.c (remote_async): Mark and clear the async stop reply
13186 queue event-loop token as appropriate.
13187
13188 2015-02-03 Pedro Alves <palves@redhat.com>
13189
13190 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
13191 target_is_async_p instead of target_can_async.
13192 (linux_nat_wait): Use target_is_async_p instead of
13193 target_can_async. Don't enable async here.
13194 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
13195 target_is_async_p instead of target_can_async.
13196
13197 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
13198
13199 * varobj.h (lang_varobj_ops): Mention which return values need
13200 to be freed.
13201
13202 2015-02-02 Joel Brobecker <brobecker@adacore.com>
13203
13204 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
13205
13206 2015-02-02 Joel Brobecker <brobecker@adacore.com>
13207
13208 PR gdb/17856:
13209 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
13210 results found in the cache.
13211
13212 2015-02-02 Joel Brobecker <brobecker@adacore.com>
13213
13214 PR gdb/17854:
13215 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
13216 when allocating a new one.
13217
13218 2015-02-01 Tom Tromey <tom@tromey.com>
13219
13220 * MAINTAINERS: Remove myself.
13221
13222 2015-01-31 Doug Evans <xdje42@gmail.com>
13223
13224 * dwarf2read.c (process_structure_scope): Update setting of
13225 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
13226 * gdbtypes.c (internal_type_vptr_fieldno): New function.
13227 (set_type_vptr_fieldno): New function.
13228 (internal_type_vptr_basetype): New function.
13229 (set_type_vptr_basetype): New function.
13230 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
13231 TYPE_VPTR_BASETYPE.
13232 (allocate_cplus_struct_type): Initialize vptr_fieldno.
13233 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
13234 (print_cplus_stuff): ... moved here.
13235 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
13236 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
13237 moved to ...
13238 (struct cplus_struct_type): ... here. All uses updated.
13239 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
13240 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
13241 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
13242 * stabsread.c (read_tilde_fields): Update setting of
13243 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
13244
13245 2015-01-31 Doug Evans <xdje42@gmail.com>
13246
13247 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
13248 to self_p.
13249 (cp_print_class_member): Rename local domain to self_type.
13250 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
13251 domain_type to self_type.
13252 (set_die_type) <need_gnat_info>: Handle
13253 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
13254 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
13255 TYPE_SPECIFIC_SELF_TYPE.
13256 * gdbtypes.c (internal_type_self_type): New function.
13257 (set_type_self_type): New function.
13258 (smash_to_memberptr_type): Rename parameter domain to self_type.
13259 Update setting of TYPE_SELF_TYPE.
13260 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
13261 (smash_to_method_type): Rename parameter domain to self_type.
13262 Update setting of TYPE_SELF_TYPE.
13263 (check_stub_method): Call smash_to_method_type.
13264 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
13265 (copy_type_recursive): Ditto.
13266 * gdbtypes.h (enum type_specific_kind): New value
13267 TYPE_SPECIFIC_SELF_TYPE.
13268 (struct main_type) <type_specific>: New member self_type.
13269 (struct cplus_struct_type) <fn_field.type>: Update comment.
13270 (TYPE_SELF_TYPE): Rewrite.
13271 (internal_type_self_type, set_type_self_type): Declare.
13272 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
13273 self_type.
13274 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
13275 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
13276 TYPE_TARGET_TYPE.
13277 * stabsread.c (read_member_functions): Mark methods with
13278 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
13279 TYPE_SELF_TYPE.
13280
13281 2015-01-31 Doug Evans <xdje42@gmail.com>
13282
13283 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
13284 All uses updated.
13285
13286 2015-01-31 Doug Evans <xdje42@gmail.com>
13287
13288 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
13289 or unions. Return zero if union.
13290 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
13291 (gnuv3_rtti_type): Pass already-check_typedef'd value to
13292 gnuv3_get_vtable.
13293 (compute_vtable_size): Assert only passed structs.
13294 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
13295
13296 2015-01-31 Doug Evans <xdje42@gmail.com>
13297
13298 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
13299 kinds.
13300
13301 2015-01-31 Gary Benson <gbenson@redhat.com>
13302 Doug Evans <dje@google.com>
13303
13304 PR cli/9007
13305 PR cli/11920
13306 PR cli/15548
13307 * cli/cli-cmds.c (complete_command): Notify user if max-completions
13308 reached.
13309 * common/common-exceptions.h (enum errors)
13310 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
13311 * completer.h (get_max_completions_reached_message): New declaration.
13312 (max_completions): Likewise.
13313 (completion_tracker_t): New typedef.
13314 (new_completion_tracker): New declaration.
13315 (make_cleanup_free_completion_tracker): Likewise.
13316 (maybe_add_completion_enum): New enum.
13317 (maybe_add_completion): New declaration.
13318 (throw_max_completions_reached_error): Likewise.
13319 * completer.c (max_completions): New global variable.
13320 (new_completion_tracker): New function.
13321 (free_completion_tracker): Likewise.
13322 (make_cleanup_free_completion_tracker): Likewise.
13323 (maybe_add_completions): Likewise.
13324 (throw_max_completions_reached_error): Likewise.
13325 (complete_line): Remove duplicates and limit result to max_completions
13326 entries.
13327 (get_max_completions_reached_message): New function.
13328 (gdb_display_match_list): Handle max_completions.
13329 (_initialize_completer): New declaration and function.
13330 * symtab.c: Include completer.h.
13331 (completion_tracker): New static variable.
13332 (completion_list_add_name): Call maybe_add_completion.
13333 (default_make_symbol_completion_list_break_on_1): Renamed from
13334 default_make_symbol_completion_list_break_on. Maintain
13335 completion_tracker across calls to completion_list_add_name.
13336 (default_make_symbol_completion_list_break_on): New function.
13337 * top.c (init_main): Set rl_completion_display_matches_hook.
13338 * tui/tui-io.c: Include completer.h.
13339 (tui_old_rl_display_matches_hook): New static global.
13340 (tui_rl_display_match_list): Notify user if max-completions reached.
13341 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
13342 * NEWS (New Options): Mention set/show max-completions.
13343
13344 2015-01-31 Gary Benson <gbenson@redhat.com>
13345
13346 * symtab.c (struct add_name_data) <code>: New field.
13347 Updated comments.
13348 (add_symtab_completions): New function.
13349 (symtab_expansion_callback): Likewise.
13350 (default_make_symbol_completion_list_break_on): Set datum.code.
13351 Move minimal symbol scan before calling expand_symtabs_matching.
13352 Scan known primary symtabs for externs and statics before calling
13353 expand_symtabs_matching. Pass symtab_expansion_callback as
13354 expansion_notify argument to expand_symtabs_matching. Do not scan
13355 primary symtabs for externs and statics after calling
13356 expand_symtabs_matching.
13357
13358 2015-01-31 Gary Benson <gbenson@redhat.com>
13359
13360 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
13361 (struct quick_symbol_functions) <expand_symtabs_matching>:
13362 New argument expansion_notify. All uses updated.
13363 (expand_symtabs_matching): New argument expansion_notify.
13364 All uses updated.
13365 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13366 Also print expansion notify.
13367 * symtab.c (expand_symtabs_matching_via_partial): Call
13368 expansion_notify whenever a partial symbol table is expanded.
13369 * dwarf2read.c (dw2_expand_symtabs_matching): Call
13370 expansion_notify whenever a symbol table is instantiated.
13371
13372 2015-01-31 Doug Evans <xdje42@gmail.com>
13373
13374 * cli-out.c: #include completer.h, readline/readline.h.
13375 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
13376 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
13377 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
13378 * cli-out.h (cli_display_match_list): Declare.
13379 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
13380 (ELLIPSIS_LEN): Ditto.
13381 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
13382 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
13383 (gdb_fnprint, gdb_print_filename): Ditto.
13384 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
13385 (gdb_display_match_list): Ditto.
13386 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
13387 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
13388 (mld_beep_ftype, mld_read_key_ftype): Ditto.
13389 (match_list_displayer): New struct.
13390 (gdb_display_match_list): Declare.
13391 * top.c (init_main): Set rl_completion_display_matches_hook.
13392 * tui/tui-io.c: #include completer.h.
13393 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
13394 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
13395 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
13396 (tui_mld_getc, tui_mld_read_key): Ditto.
13397 (tui_rl_display_match_list): Rewrite.
13398 (tui_handle_resize_during_io): New arg for_completion. All callers
13399 updated.
13400
13401 2015-01-31 Doug Evans <xdje42@gmail.com>
13402
13403 Add symbol lookup cache.
13404 * NEWS: Document new options and commands.
13405 * symtab.c (symbol_cache_key): New static global.
13406 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
13407 (SYMBOL_LOOKUP_FAILED): New macro.
13408 (symbol_cache_slot_state): New enum.
13409 (block_symbol_cache): New struct.
13410 (symbol_cache): New struct.
13411 (new_symbol_cache_size, symbol_cache_size): New static globals.
13412 (hash_symbol_entry, eq_symbol_entry): New functions.
13413 (symbol_cache_byte_size, resize_symbol_cache): New functions.
13414 (make_symbol_cache, free_symbol_cache): New functions.
13415 (get_symbol_cache, symbol_cache_cleanup): New function.
13416 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
13417 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
13418 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
13419 (symbol_cache_flush, symbol_cache_dump): New functions.
13420 (maintenance_print_symbol_cache): New function.
13421 (maintenance_flush_symbol_cache): New function.
13422 (symbol_cache_stats): New function.
13423 (maintenance_print_symbol_cache_statistics): New function.
13424 (symtab_new_objfile_observer): New function.
13425 (symtab_free_objfile_observer): New function.
13426 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
13427 (_initialize_symtab): Init symbol_cache_key. New parameter
13428 maint symbol-cache-size. New maint commands print symbol-cache,
13429 print symbol-cache-statistics, flush-symbol-cache.
13430 Install new_objfile, free_objfile observers.
13431
13432 2015-01-31 Joel Brobecker <brobecker@adacore.com>
13433
13434 PR symtab/17855
13435 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
13436 to end.
13437
13438 2015-01-31 Doug Evans <xdje42@gmail.com>
13439
13440 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
13441 * auto-load.c: #include ctype.h.
13442 (struct auto_load_pspace_info): Replace member loaded_scripts with
13443 new members loaded_script_files, loaded_script_texts.
13444 (auto_load_pspace_data_cleanup): Update.
13445 (init_loaded_scripts_info): Update.
13446 (get_auto_load_pspace_data_for_loading): Update.
13447 (maybe_add_script_file): Renamed from maybe_add_script. All callers
13448 updated.
13449 (maybe_add_script_text): New function.
13450 (clear_section_scripts): Update.
13451 (source_script_file, execute_script_contents): New functions.
13452 (source_section_scripts): Add support for
13453 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
13454 (print_scripts): New function.
13455 (auto_load_info_scripts): Also print inlined scripts.
13456 (maybe_print_unsupported_script_warning): Renamed from
13457 unsupported_script_warning_print. All callers updated.
13458 (maybe_print_script_not_found_warning): Renamed from
13459 script_not_found_warning_print. All callers updated.
13460 * extension-priv.h (struct extension_language_script_ops): New member
13461 objfile_script_executor.
13462 * extension.c (ext_lang_objfile_script_executor): New function.
13463 * extension.h (objfile_script_executor_func): New typedef.
13464 (ext_lang_objfile_script_executor): Declare.
13465 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
13466 * guile/guile.c (guile_extension_script_ops): Update.
13467 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
13468 * python/python.c (python_extension_script_ops): Update.
13469 (gdbpy_execute_objfile_script): New function.
13470
13471 2015-01-31 Eli Zaretskii <eliz@gnu.org>
13472
13473 * tui/tui-io.c (tui_expand_tabs): New function.
13474 (tui_puts, tui_redisplay_readline): Expand TABs into the
13475 appropriate number of spaces.
13476 * tui/tui-regs.c: Include tui-io.h.
13477 (tui_register_format): Call tui_expand_tabs to expand TABs into
13478 the appropriate number of spaces.
13479 * tui/tui-io.h: Add prototype for tui_expand_tabs.
13480
13481 2015-01-30 Doug Evans <dje@google.com>
13482
13483 * NEWS: "info source" command now display producer string if present.
13484 * source.c (source_info): Print producer string if present.
13485
13486 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13487
13488 * varobj.c (varobj_delete): Fix comment.
13489
13490 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13491
13492 * varobj.c (create_child): Modify comment.
13493
13494 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13495
13496 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
13497 parameter.
13498 (ada_name_of_variable): Same.
13499 (ada_path_expr_of_child): Same.
13500 (ada_value_of_variable): Same.
13501 (ada_value_is_changeable_p): Same.
13502 (ada_value_has_mutated): Same.
13503 * c-varobj.c (varobj_is_anonymous_child): Same.
13504 (c_is_path_expr_parent): Same.
13505 (c_number_of_children): Same.
13506 (c_name_of_variable): Same.
13507 (c_path_expr_of_child): Same.
13508 (get_type): Same.
13509 (c_value_of_variable): Same.
13510 (cplus_number_of_children): Same.
13511 (cplus_name_of_variable): Same.
13512 (cplus_path_expr_of_child): Same.
13513 (cplus_value_of_variable): Same.
13514 * jv-varobj.c (java_number_of_children): Same.
13515 (java_name_of_variable): Same.
13516 (java_path_expr_of_child): Same.
13517 (java_value_of_variable): Same.
13518 * varobj.c (number_of_children): Same.
13519 (name_of_variable): Same.
13520 (is_root_p): Same.
13521 (varobj_ensure_python_env): Same.
13522 (varobj_get_objname): Same.
13523 (varobj_get_expression): Same.
13524 (varobj_get_display_format): Same.
13525 (varobj_get_display_hint): Same.
13526 (varobj_has_more): Same.
13527 (varobj_get_thread_id): Same.
13528 (varobj_get_frozen): Same.
13529 (dynamic_varobj_has_child_method): Same.
13530 (varobj_get_gdb_type): Same.
13531 (is_path_expr_parent): Same.
13532 (varobj_default_is_path_expr_parent): Same.
13533 (varobj_get_language): Same.
13534 (varobj_get_attributes): Same.
13535 (varobj_is_dynamic_p): Same.
13536 (varobj_get_child_range): Same.
13537 (varobj_value_has_mutated): Same.
13538 (varobj_get_value_type): Same.
13539 (number_of_children): Same.
13540 (name_of_variable): Same.
13541 (check_scope): Same.
13542 (varobj_editable_p): Same.
13543 (varobj_value_is_changeable_p): Same.
13544 (varobj_floating_p): Same.
13545 (varobj_default_value_is_changeable_p): Same.
13546
13547 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13548
13549 * varobj.c (varobj_get_path_expr): Set var->path_expr.
13550 * c-varobj.c (c_path_expr_of_child): Set local var instead of
13551 child->path_expr.
13552 (cplus_path_expr_of_child): Same.
13553
13554 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13555
13556 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
13557 result.
13558 (mi_cmd_var_info_expression): Same.
13559 * varobj.c (varobj_get_expression): Mention in the comment that
13560 the result must by freed by the caller.
13561
13562 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13563
13564 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
13565 varobj_get_type.
13566 (varobj_update_one): Same.
13567 * varobj.c (update_type_if_necessary): Free curr_type_str and
13568 new_type_str.
13569 (varobj_get_type): Specify in comment that the result needs to be
13570 freed by the caller.
13571
13572 2015-01-29 Doug Evans <dje@google.com>
13573
13574 PR symtab/17890
13575 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
13576
13577 2015-01-25 Mark Wielaard <mjw@redhat.com>
13578
13579 * dwarf2read.c (checkproducer): Call producer_is_gcc.
13580 * utils.c (producer_is_gcc_ge_4): Likewise.
13581 (producer_is_gcc): New function.
13582 * utils.h (producer_is_gcc): New declaration.
13583
13584 2015-01-29 Joel Brobecker <brobecker@adacore.com>
13585
13586 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
13587 kind.
13588 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
13589 parameter by "addr_stack" parameter.
13590 (resolve_dynamic_range): Replace "addr" parameter by
13591 "stack_addr" parameter. Update function documentation.
13592 Update code accordingly.
13593 (resolve_dynamic_array, resolve_dynamic_union)
13594 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
13595 (resolve_dynamic_type): Update code, following the changes made
13596 to resolve_dynamic_type_internal's interface.
13597 * dwarf2loc.h (struct property_addr_info): New.
13598 (dwarf2_evaluate_property): Replace "address" parameter
13599 by "addr_stack" parameter. Adjust function documentation.
13600 (struct dwarf2_offset_baton): New.
13601 (struct dwarf2_property_baton): Update documentation of
13602 field "referenced_type" to be more general. New field
13603 "offset_info" in union data field.
13604 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
13605 parameter by "addr_stack" parameter. Adjust code accordingly.
13606 Add support for PROP_ADDR_OFFSET properties.
13607 * dwarf2read.c (attr_to_dynamic_prop): Add support for
13608 DW_AT_data_member_location attributes as well. Use case
13609 statements instead of if/else condition.
13610
13611 2015-01-29 Joel Brobecker <brobecker@adacore.com>
13612
13613 * ada-varobj.c (ada_varobj_get_array_number_of_children):
13614 Return zero if PARENT_VALUE is NULL and parent_type's
13615 range type is dynamic.
13616
13617 2015-01-29 Joel Brobecker <brobecker@adacore.com>
13618
13619 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
13620 nonzero if the type's subtype is dynamic.
13621 (resolve_dynamic_range): Also resolve the range's subtype.
13622
13623 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
13624
13625 Pushed by Joel Brobecker <brobecker@adacore.com>.
13626 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
13627
13628 2015-01-27 Doug Evans <dje@google.com>
13629
13630 * NEWS: Mention gdb.Objfile.username.
13631 * python/py-objfile.c (objfpy_get_username): New function.
13632 (objfile_getset): Add "username".
13633
13634 2015-01-24 Mark Wielaard <mjw@redhat.com>
13635
13636 * stack.c (return_command): Markup warning message with _.
13637
13638 2015-01-24 Doug Evans <xdje42@gmail.com>
13639
13640 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
13641
13642 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
13643
13644 Fix 100x slowdown regression on DWZ files.
13645 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
13646 (struct line_header): Add offset and offset_in_dwz.
13647 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
13648 (free_line_header_voidp): New declaration.
13649 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
13650 functions.
13651 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
13652 (handle_DW_AT_stmt_list): Use line_header_hash.
13653 (free_line_header_voidp): New function.
13654 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
13655 (dwarf_decode_lines): New parameter decode_mapping, use it.
13656 (dwarf2_free_objfile): Free line_header_hash.
13657
13658 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
13659
13660 PR gdb/17416
13661 * valops.c (value_rtti_indirect_type): Catch exception thrown by
13662 value_ind.
13663
13664 2015-01-15 Mark Wielaard <mjw@redhat.com>
13665
13666 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
13667 DW_AT_noreturn.
13668 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
13669 calling_convention an 8 bit bit field.
13670 (TYPE_NO_RETURN): New macro.
13671 * infcmd.c (finish_command): Query if function does not return
13672 normally.
13673 * stack.c (return_command): Likewise.
13674
13675 2015-01-23 Pedro Alves <palves@redhat.com>
13676
13677 * linux-nat.c (linux_is_async_p): New macro.
13678 (linux_nat_is_async_p):
13679 (linux_nat_terminal_inferior): Check whether the target can async
13680 instead of whether it is already async.
13681 (linux_nat_terminal_ours): Don't check whether the target is
13682 async.
13683 (linux_async_pipe): Use linux_is_async_p.
13684
13685 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13686
13687 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
13688 '-ascending'.
13689 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
13690 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
13691 Sort tp_array using tp_array_compar.
13692 (_initialize_thread): Extend thread_apply_all_command help.
13693
13694 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13695
13696 * corelow.c (core_open): Call also thread_command.
13697 * gdbthread.h (thread_command): New prototype moved from ...
13698 * thread.c (thread_command): ... here.
13699 (thread_command): Make it global.
13700
13701 2015-01-22 Pedro Alves <palves@redhat.com>
13702
13703 * configure.ac [*mingw32*]: Check $curses_found instead of
13704 $prefer_curses.
13705 * configure: Regenerate.
13706 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
13707 HAVE_NCURSES_NCURSES_H checks.
13708
13709 2015-01-22 Eli Zaretskii <eliz@gnu.org>
13710
13711 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
13712 fails with the 1st arg NULL, try again with "unknown". Don't test
13713 the "cup" capability: it isn't supported by the Windows port of
13714 ncurses, but the Windows console driver is still capable of
13715 supporting TUI.
13716
13717 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13718
13719 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
13720
13721 2015-01-22 Eli Zaretskii <eliz@gnu.org>
13722
13723 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
13724 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
13725 reason that "make TAGS" is broken.
13726
13727 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
13728
13729 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
13730 and check additional store instructions.
13731
13732 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
13733
13734 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
13735
13736 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
13737
13738 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
13739 ppc_canonicalize_syscall, ppc_linux_syscall_record,
13740 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
13741 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13742 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
13743 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
13744 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
13745 ppc_process_record_op19, ppc_process_record_op31,
13746 ppc_process_record_op59, ppc_process_record_op60,
13747 ppc_process_record_op63): Likewise.
13748
13749 2015-01-20 Joel Brobecker <brobecker@adacore.com>
13750
13751 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
13752 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
13753 strerror.
13754
13755 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
13756
13757 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
13758 ppc_process_record_op31, ppc_process_record_op59,
13759 ppc_process_record_op60, ppc_process_record_op63,
13760 ppc_process_record): Fix -Wformat warning.
13761 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
13762 Remove unused variables.
13763
13764 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
13765
13766 * MAINTAINERS (Write After Approval): Add "Chen Gang".
13767
13768 2015-01-19 Eli Zaretskii <eliz@gnu.org>
13769
13770 * configure.ac [*mingw32*]: Only add windows-termcap.o to
13771 CONFIG_OBS if not building with a curses library.
13772 * configure: Regenerate.
13773
13774 * windows-termcap.c: Include defs.h. Make the whole body empty if
13775 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
13776 HAVE_NCURSES_NCURSES_H is defined.
13777
13778 2015-01-19 Joel Brobecker <brobecker@adacore.com>
13779
13780 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
13781 from end of line to start of next line.
13782
13783 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
13784
13785 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
13786 Scan PLT stub backward for reverse debugging.
13787 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13788
13789 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
13790 Ulrich Weigand <uweigand@de.ibm.com>
13791
13792 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
13793 gdb_target_obs.
13794 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
13795 record.
13796 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
13797 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
13798 (ppc_linux_init_abi): Set process_record, process_record_signal.
13799 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
13800 ppc_linux_record_tdep to gdbarch_tdep.
13801 (ppc_process_record): New declaration.
13802 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
13803 ppc_process_record_op19, ppc_process_record_op31,
13804 ppc_process_record_op59, ppc_process_record_op60,
13805 ppc_process_record_op63, ppc_process_record): New functions.
13806
13807 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
13808
13809 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
13810 rs6000_in_function_epilogue_frame_p and add an argument
13811 for frame_info.
13812 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
13813 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
13814 New functions.
13815 (rs6000_epilogue_frame_unwind): New.
13816 (rs6000_gdbarch_init): Append epilogue unwinder.
13817
13818 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
13819
13820 * nat/linux-personality.c: Replace "#ifndef
13821 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
13822 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
13823 systems.
13824
13825 2015-01-16 Eli Zaretskii <eliz@gnu.org>
13826
13827 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
13828 functions.
13829 (_initialize_tui_win) <border-kind, border-mode>:
13830 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
13831 (tui_set_tab_width_command): Fix the commentary.
13832
13833 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
13834
13835 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
13836 Doc fix.
13837 (tui_set_tab_width_command): Delete and recreate the source and
13838 the disassembly windows, to show the effect of the changed tab
13839 size immediately.
13840
13841 * tui/tui-data.h (LINE_PREFIX): Make shorter
13842 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
13843 "Thread NNNNN.XXXX" thread ID notation on Windows.
13844
13845 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13846
13847 Fix gcc-5 compilation.
13848 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
13849
13850 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
13851
13852 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
13853 (linux-personality.o): New rule.
13854 * common/common-defs.h: Include <stdint.h>.
13855 * config/aarch64/linux.mh (NATDEPFILES): Include
13856 linux-personality.o.
13857 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
13858 * config/arm/linux.mh (NATDEPFILES): Likewise.
13859 * config/i386/linux64.mh (NATDEPFILES): Likewise.
13860 * config/i386/linux.mh (NATDEPFILES): Likewise.
13861 * config/ia64/linux.mh (NATDEPFILES): Likewise.
13862 * config/m32r/linux.mh (NATDEPFILES): Likewise.
13863 * config/m68k/linux.mh (NATDEPFILES): Likewise.
13864 * config/mips/linux.mh (NATDEPFILES): Likewise.
13865 * config/pa/linux.mh (NATDEPFILES): Likewise.
13866 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
13867 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
13868 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
13869 * config/s390/linux.mh (NATDEPFILES): Likewise.
13870 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
13871 * config/sparc/linux.mh (NATDEPFILES): Likewise.
13872 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
13873 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
13874 * defs.h: Remove #include <stdint.h> (moved to
13875 common/common-defs.h).
13876 * linux-nat.c: Include nat/linux-personality.h. Remove #include
13877 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
13878 nat/linux-personality.c).
13879 (linux_nat_create_inferior): Remove code to disable address space
13880 randomization (moved to nat/linux-personality.c). Create cleanup
13881 to disable address space randomization.
13882 * nat/linux-personality.c: New file.
13883 * nat/linux-personality.h: Likewise.
13884
13885 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
13886
13887 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
13888 common/posix-strerror.c.
13889 (posix-strerror.o): New rule.
13890 (mingw-strerror.o): Likewise.
13891 * common/common-utils.h (safe_strerror): Move prototype to here,
13892 from utils.h.
13893 * common/common.host: New file.
13894 * common/mingw-strerror.c: Likewise.
13895 * common/posix-strerror.c: Likewise.
13896 * configure: Regenerated.
13897 * configure.ac: Source common/common.host. Add variable
13898 common_host_obs to gdb_host_obs.
13899 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
13900 gdb/common/posix-strerror.c when warning about the use of
13901 strerror.
13902 * mingw-hdep.c (safe_strerror): Remove definition; move it to
13903 common/mingw-strerror.c.
13904 * posix-hdep.c (safe_strerror): Remove definition; move it to
13905 common/posix-hdep.c.
13906 * utils.h (safe_strerror): Remove prototype; move to
13907 common/common-utils.h.
13908
13909 2015-01-15 Joel Brobecker <brobecker@adacore.com>
13910
13911 GDB 7.8.2 released.
13912
13913 2015-01-15 Joel Brobecker <brobecker@adacore.com>
13914
13915 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
13916 ___XA type if the array has already been fixed.
13917
13918 2015-01-14 Yao Qi <yao@codesourcery.com>
13919
13920 * Makefile.in (ppc-linux.o): New rule.
13921 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
13922 * configure.ac: AC_CHECK_FUNCS(getauxval).
13923 * config.in: Re-generated.
13924 * configure: Re-generated.
13925 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
13926 Declare.
13927 * nat/ppc-linux.c: New file.
13928 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
13929 Call ppc64_64bit_inferior_p.
13930
13931 2015-01-14 Yao Qi <yao@codesourcery.com>
13932
13933 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
13934 nat/ppc-linux.h.
13935 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
13936 (PPC_FEATURE_HAS_DFP): Likewise.
13937 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
13938 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
13939 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
13940 Include "nat/ppc-linux.h".
13941 * nat/ppc-linux.h: New file.
13942 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
13943
13944 2015-01-14 Pedro Alves <palves@redhat.com>
13945
13946 PR gdb/17525
13947 * breakpoint.c: Include "interps.h".
13948 (bpstat_do_actions_1): Also check whether the interpreter is
13949 async.
13950
13951 2015-01-14 Pedro Alves <palves@redhat.com>
13952
13953 PR cli/17828
13954 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
13955 reinstall if the interpreter is sync.
13956
13957 2015-01-13 Doug Evans <dje@google.com>
13958
13959 * objfiles.c (objfile_filename): New function.
13960 * objfiles.h (objfile_filename): Declare it.
13961 (objfile_name): Add function comment.
13962 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
13963 bfd file name (which may be realpath'd), and the original name.
13964
13965 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13966
13967 * NEWS: Create a new section for the next release branch.
13968 Rename the section of the current branch, now that it has
13969 been cut.
13970
13971 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13972
13973 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
13974 * version.in: Bump version to 7.9.50.DATE-cvs.
13975
13976 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13977
13978 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
13979 Remove trailing new-line in argument of call to warning.
13980
13981 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13982
13983 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
13984 new-line in argument of call to "warning".
13985
13986 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13987
13988 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
13989 in static block, then try searching for primitive types.
13990
13991 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
13992
13993 * top.h (gdb_add_history): Declare.
13994 * top.c (command_count): New variable.
13995 (gdb_add_history): New function.
13996 (gdb_safe_append_history): New static function.
13997 (quit_force): Call it.
13998 (command_line_input): Use gdb_add_history instead of
13999 add_history.
14000 * event-top.c (command_line_handler): Likewise.
14001
14002 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
14003
14004 PR gdb/17046
14005 * darwin-nat.c: Replace <machine/setjmp.h> #include by
14006 <setjmp.h> #include.
14007
14008 2015-01-11 Doug Evans <xdje42@gmail.com>
14009
14010 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
14011
14012 2015-01-11 Doug Evans <xdje42@gmail.com>
14013
14014 PR gdb/15830
14015 * NEWS: The "maint demangle" command is renamed as "demangle".
14016 * demangle.c: #include cli/cli-utils.h, language.h.
14017 (demangle_command): New function.
14018 (_initialize_demangle): Add new command "demangle".
14019 * maint.c (maintenance_demangle): Stub out.
14020 (_initialize_maint_cmds): Update help text for "maint demangle",
14021 and mark as deprecated.
14022
14023 2015-01-11 Mark Kettenis <kettenis@gnu.org>
14024
14025 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
14026 inferior_thread is a function.
14027
14028 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
14029
14030 * Makefile.in (.y.c): Don't munge yacc's #line
14031 directives.
14032
14033 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
14034
14035 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
14036 to prompt for input.
14037 * tui/tui-hooks.c (tui_query_hook): Remove.
14038 (tui_install_hooks): Don't set deprecated_query_hook.
14039 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
14040 height calculation. Always update the command window's cur_line.
14041
14042 2015-01-09 Pedro Alves <palves@redhat.com>
14043
14044 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
14045 function.
14046 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
14047 declaration.
14048 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
14049 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
14050 stop_reason.
14051 (check_stopped_by_watchpoint): New function.
14052 (save_sigtrap): Reimplement.
14053 (linux_nat_stopped_by_watchpoint): Adjust.
14054 (linux_nat_lp_status_is_event): Delete.
14055 (stop_wait_callback): Only call save_sigtrap after storing the
14056 pending status.
14057 (status_callback): If the thread had been stopped for a breakpoint
14058 that has since been removed, discard the event and resume the LWP.
14059 (count_events_callback, select_event_lwp_callback): Use
14060 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
14061 (cancel_breakpoint): Rename to ...
14062 (check_stopped_by_breakpoint): ... this. Record whether the LWP
14063 stopped for a software breakpoint or hardware breakpoint.
14064 (select_event_lwp): Only give preference to the stepping LWP in
14065 all-stop mode. Adjust comments.
14066 (stop_and_resume_callback): Remove references to new_pending_p.
14067 (linux_nat_filter_event): Likewise. Leave exit events of the
14068 leader thread pending here. Handle signal short circuiting here.
14069 Only call save_sigtrap after storing the pending waitstatus.
14070 (linux_nat_wait_1): Remove 'retry' label. Remove references to
14071 new_pending. Don't handle leaving events the caller is not
14072 interested in pending here, nor handle signal short-circuiting
14073 here. Also give equal priority to all LWPs that have had events
14074 in non-stop mode. If reporting a software breakpoint event,
14075 unadjust the LWP's PC.
14076 * linux-nat.h (enum lwp_stop_reason): New.
14077 (struct lwp_info) <stop_pc>: New field.
14078 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
14079 (struct lwp_info) <stop_reason>: New field.
14080 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
14081
14082 2015-01-09 Pedro Alves <palves@redhat.com>
14083
14084 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
14085 Set the LWP's 'resumed' flag.
14086
14087 2015-01-09 Pedro Alves <palves@redhat.com>
14088
14089 * linux-nat.c (linux_resume_one_lwp): New function.
14090 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
14091 (linux_nat_resume): Use lwp_status_pending_p and
14092 linux_resume_one_lwp.
14093 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
14094 (linux_handle_extended_wait): Use linux_resume_one_lwp.
14095 (status_callback, running_callback): Use lwp_status_pending_p.
14096 (lwp_status_pending_p): New function.
14097 (stop_and_resume_callback): Use lwp_status_pending_p.
14098 (linux_nat_filter_event): Use linux_resume_one_lwp.
14099 (linux_nat_wait_1): Always use status_callback to look for an LWP
14100 with a pending status. Use linux_resume_one_lwp.
14101 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
14102 linux_resume_one_lwp.
14103
14104 2015-01-09 Pedro Alves <palves@redhat.com>
14105
14106 * breakpoint.c (bp_location_inserted_here_p): New function,
14107 factored out from ...
14108 (breakpoint_inserted_here_p): ... here. Use
14109 ALL_BP_LOCATIONS_AT_ADDR.
14110 (software_breakpoint_inserted_here_p): Use
14111 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
14112
14113 2014-01-09 Pedro Alves <palves@redhat.com>
14114
14115 Skip enabling event reporting if the kernel supports
14116 PTRACE_EVENT_CLONE.
14117 * linux-thread-db.c: Include "nat/linux-ptrace.h".
14118 (thread_db_use_events): New function.
14119 (try_thread_db_load_1): Check thread_db_use_events before enabling
14120 event reporting.
14121 (update_thread_state): New function.
14122 (attach_thread): Use it. Check thread_db_use_events before
14123 enabling event reporting.
14124 (thread_db_detach): Check thread_db_use_events before disabling
14125 event reporting.
14126 (find_new_threads_callback): Check thread_db_use_events before
14127 enabling event reporting. Update the thread's state if not using
14128 libthread_db events.
14129
14130 2015-01-09 Pedro Alves <palves@redhat.com>
14131
14132 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
14133 about to wait for is > 0.
14134 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
14135 the kernel thread ID is -1.
14136
14137 2015-01-09 Pedro Alves <palves@redhat.com>
14138
14139 * linux-nat.c (attach_proc_task_lwp_callback): New function.
14140 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
14141 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
14142 ptrace option flags.
14143 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
14144 field.
14145 * nat/linux-procfs.c: Include <dirent.h>.
14146 (linux_proc_get_int): New parameter "warn". Handle it.
14147 (linux_proc_get_tgid): Adjust.
14148 (linux_proc_get_tracerpid): Rename to ...
14149 (linux_proc_get_tracerpid_nowarn): ... this.
14150 (linux_proc_pid_get_state): New function, factored out from
14151 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
14152 and handle it.
14153 (linux_proc_pid_is_gone): New function.
14154 (linux_proc_pid_is_stopped): Adjust.
14155 (linux_proc_pid_is_zombie_maybe_warn)
14156 (linux_proc_pid_is_zombie_nowarn): New functions.
14157 (linux_proc_pid_is_zombie): Use
14158 linux_proc_pid_is_zombie_maybe_warn.
14159 (linux_proc_attach_tgid_threads): New function.
14160 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
14161 (linux_proc_get_tracerpid): Rename to ...
14162 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
14163 (linux_proc_pid_is_gone): New declaration.
14164 (linux_proc_pid_is_zombie): Update comment.
14165 (linux_proc_pid_is_zombie_nowarn): New declaration.
14166 (linux_proc_attach_lwp_func): New typedef.
14167 (linux_proc_attach_tgid_threads): New declaration.
14168 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
14169 use nowarn functions.
14170 (linux_ptrace_attach_fail_reason_string): Move here from
14171 gdbserver/linux-low.c and rename.
14172 (ptrace_supports_feature): If the current ptrace options are not
14173 known yet, check them now, instead of asserting.
14174 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
14175 Declare.
14176
14177 2015-01-09 Pedro Alves <palves@redhat.com>
14178
14179 * linux-thread-db.c (thread_db_find_new_threads_silently)
14180 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
14181 (find_new_threads_once): Print debug output on gdb_stdlog.
14182
14183 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
14184 Pedro Alves <palves@redhat.com>
14185
14186 * compile/compile.c: Include "gdb_wait.h".
14187 (do_rmdir): Check return value, and free 'zap'.
14188
14189 2015-01-08 Pedro Alves <palves@redhat.com>
14190 Yao Qi <yao@codesourcery.com>
14191
14192 * dwarf2loc.c (indirect_pieced_value): Don't call
14193 gdb_sign_extend. Call extract_signed_integer instead.
14194 * utils.c (gdb_sign_extend): Remove.
14195 * utils.h (gdb_sign_extend): Remove declaration.
14196
14197 2015-01-07 Pierre Muller <muller@sourceware.org>
14198
14199 PR symtab/17811
14200 * stabsread.c (define_symbol): Set language for C++ special symbols.
14201
14202 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
14203
14204 * inflow.c (initial_gdb_ttystate): Tweak comment.
14205
14206 2015-01-07 Joel Brobecker <brobecker@adacore.com>
14207
14208 * inflow.c (set_initial_gdb_ttystate): Add empty line after
14209 comment documenting function.
14210
14211 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
14212
14213 * terminal.h (set_initial_gdb_ttystate): Declare.
14214 * inflow.c (initial_gdb_ttystate): New static variable.
14215 (set_initial_gdb_ttystate): New setter.
14216 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
14217 instead of our current terminal state.
14218 * top.c (gdb_init): Call set_initial_gdb_ttystate.
14219
14220 2015-01-07 Joel Brobecker <brobecker@adacore.com>
14221
14222 * guile/scm-type.c (tyscm_array_1): Add comment.
14223 * python/py-type.c (typy_array_1): Add comment.
14224
14225 2015-01-06 Joel Brobecker <brobecker@adacore.com>
14226
14227 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
14228 error if N2 is equal to N1 - 1.
14229
14230 2015-01-06 Joel Brobecker <brobecker@adacore.com>
14231
14232 * python/py-type.c (typy_array_1): Do not raise negative-length
14233 exception if N2 is equal to N1 - 1.
14234
14235 2015-01-03 Doug Evans <xdje42@gmail.com>
14236
14237 * c-exp.y: Whitespace cleanup.
14238 (classify_inner_name): Remove extra ;.
14239
14240 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
14241
14242 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
14243 offset signed.
14244
14245 2015-01-02 Doug Evans <dje@google.com>
14246
14247 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
14248
14249 2015-01-02 Doug Evans <dje@google.com>
14250
14251 * symtab.h (struct symbol): Fix typo in comment.
14252
14253 2015-01-01 Joel Brobecker <brobecker@adacore.com>
14254
14255 Update year range in copyright notice of all files.
14256
14257 2015-01-01 Joel Brobecker <brobecker@adacore.com>
14258
14259 * top.c (print_gdb_version): Update copyright year to 2015.
14260
14261 2015-01-01 Joel Brobecker <brobecker@adacore.com>
14262
14263 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
14264
14265 For older changes see ChangeLog-2014.
14266 \f
14267 Local Variables:
14268 mode: change-log
14269 left-margin: 8
14270 fill-column: 74
14271 version-control: never
14272 coding: utf-8
14273 End:
This page took 0.439241 seconds and 4 git commands to generate.