constify command prefix
[binutils-gdb.git] / gdb / ChangeLog
1 2014-07-24 Tom Tromey <tromey@redhat.com>
2
3 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5 (help_cmd_list): Constify.
6 (lookup_cmd): Update.
7 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
8 const.
9 (help_cmd_list, apropos_cmd): Update.
10 * cli/cli-script.c (show_user): Update.
11 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
12 * cli/cli-setshow.h (cmd_show_list): Update.
13 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
14 (cmd_show_list): Update.
15 * guile/scm-cmd.c (cmdscm_destroyer): Update.
16 * python/py-cmd.c (cmdpy_destroyer): Update.
17
18 2014-07-24 Tom Tromey <tromey@redhat.com>
19
20 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
21 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
22 const.
23 * command.h (deprecate_cmd): Update.
24 * maint.c (maintenance_do_deprecate): Add casts.
25
26 2014-07-24 Tom Tromey <tromey@redhat.com>
27
28 * cli/cli-decode.c (help_cmd): Make parameter "const".
29 * cli/cli-decode.h (help_cmd): Update.
30
31 2014-07-24 Tom Tromey <tromey@redhat.com>
32
33 * stack.c (up_silently_base, down_silently_base): Make argument
34 const.
35
36 2014-07-24 Tom Tromey <tromey@redhat.com>
37
38 * solib.c (solib_add): Make "pattern" const.
39 * solib.h (solib_add): Update.
40
41 2014-07-24 Tom Tromey <tromey@redhat.com>
42
43 * remote.c (remote_serial_open, print_packet, putpkt)
44 (putpkt_binary): Constify.
45 * remote.h (putpkt): Update.
46
47 2014-07-24 Tom Tromey <tromey@redhat.com>
48
49 * monitor.c (monitor_open): Make "args" const.
50 * monitor.h (monitor_open): Update.
51
52 2014-07-24 Tom Tromey <tromey@redhat.com>
53
54 * maint.c (match_bfd_flags): Make "string" const.
55 (print_bfd_section_info): Remove casts.
56 (print_objfile_section_info): Make "string" const.
57
58 2014-07-24 Tom Tromey <tromey@redhat.com>
59
60 * inf-child.c (inf_child_open_target): Make "arg" const.
61 * inf-child.h (inf_child_open_target): Update.
62
63 2014-07-24 Tom Tromey <tromey@redhat.com>
64
65 * environ.c (unset_in_environ): Make "var" const.
66 * environ.h (unset_in_environ): Update.
67
68 2014-07-24 Tom Tromey <tromey@redhat.com>
69
70 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
71 Make "cmd" const.
72 (scan_filename_with_cleanup): Likewise.
73 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
74 Make arguments const.
75 (restore_command): Update.
76
77 2014-07-24 Pedro Alves <palves@redhat.com>
78
79 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
80
81 2014-07-24 Tom Tromey <tromey@redhat.com>
82 Gary Benson <gbenson@redhat.com>
83
84 * nat/linux-ptrace.c (additional_flags): New global.
85 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
86 additional_flags; don't check GDBSERVER.
87 (linux_ptrace_set_additional_flags): New function.
88 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
89 Declare.
90 * linux-nat.c (_initialize_linux_nat): Call
91 linux_ptrace_set_additional_flags.
92
93 2014-07-24 Tom Tromey <tromey@redhat.com>
94
95 * make-target-delegates (munge_type, write_debugmethod): New
96 functions.
97 (debug_names): New global.
98 ($TARGET_DEBUG_PRINTER): New global.
99 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
100 name.
101 Write debug methods. Generate init_debug_target.
102 * target-debug.h: New file.
103 * target-delegates.c: Rebuild.
104 * target.c: Include target-debug.h.
105 (debug_target): Hoist definition.
106 (target_kill, target_get_section_table, target_memory_map)
107 (target_flash_erase, target_flash_done, target_detach)
108 (target_disconnect, target_wait, target_resume)
109 (target_pass_signals, target_program_signals, target_follow_fork)
110 (target_mourn_inferior, target_search_memory)
111 (target_thread_address_space, target_close)
112 (target_find_new_threads, target_core_of_thread)
113 (target_verify_memory, target_insert_mask_watchpoint)
114 (target_remove_mask_watchpoint): Remove targetdebug code.
115 (debug_to_post_attach, debug_to_prepare_to_store)
116 (debug_to_files_info, debug_to_insert_breakpoint)
117 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
118 (debug_to_region_ok_for_hw_watchpoint)
119 (debug_to_can_accel_watchpoint_condition)
120 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
121 (debug_to_watchpoint_addr_within_range)
122 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
123 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
124 (debug_to_terminal_init, debug_to_terminal_inferior)
125 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
126 (debug_to_terminal_save_ours, debug_to_terminal_info)
127 (debug_to_load, debug_to_post_startup_inferior)
128 (debug_to_insert_fork_catchpoint)
129 (debug_to_remove_fork_catchpoint)
130 (debug_to_insert_vfork_catchpoint)
131 (debug_to_remove_vfork_catchpoint)
132 (debug_to_insert_exec_catchpoint)
133 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
134 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
135 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
136 (setup_target_debug): Call init_debug_target.
137 * target.h (TARGET_DEBUG_PRINTER): New macro.
138 (struct target_ops) <to_resume, to_wait, to_pass_signals,
139 to_program_signals>: Use TARGET_DEBUG_PRINTER.
140
141 2014-07-24 Gary Benson <gbenson@redhat.com>
142
143 * exceptions.h (throw_vfatal): Renamed to...
144 (throw_vquit): New declaration.
145 (throw_quit): Likewise.
146 * exceptions.c (throw_vfatal): Renamed to...
147 (throw_vquit): New function.
148 (throw_quit): Likewise.
149 (throw_error): Call throw_verror rather than throw_it.
150 * utils.h (vfatal): Removed.
151 (fatal): Likewise.
152 * utils.c (vfatal): Removed.
153 (fatal): Likewise.
154 (internal_verror): Replaced call to fatal with call to throw_quit.
155 (quit): Replaced calls to fatal with calls to throw_quit.
156
157 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
158
159 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
160 target_read_code.
161
162 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
163
164 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
165 less than zero in conditional expression.
166
167 2014-07-23 Tom Tromey <tromey@redhat.com>
168
169 * make-target-delegates ($ARGS_PART): Match trailing close paren.
170 ($INTRO_PART): Don't match whitespace.
171 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
172 argument matching.
173 ($METHOD): Add $METHOD_TRAILER.
174 (trim): Rewrite.
175 (scan_target_h): New sub.
176 Change main loop not to collect state.
177 * target-delegates.c: Rebuild.
178
179 2014-07-23 Gary Benson <gbenson@redhat.com>
180
181 * cp-support.c (gdb_demangle): Fix build on systems without
182 sigaltstack.
183
184 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
185
186 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
187 for reference entry value target data value.
188
189 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
190
191 * stack.c (read_frame_arg): Verify value_optimized_out before calling
192 value_available_contents_eq.
193
194 2014-07-22 Pedro Alves <palves@redhat.com>
195
196 * value.c (allocate_optimized_out_value): Don't mark value as
197 non-lazy.
198
199 2014-07-22 Jiong Wang <jiong.wang@arm.com>
200
201 * MAINTAINERS (Write After Approval): Update my email address.
202
203 2014-07-20 Doug Evans <dje@google.com>
204
205 PR server/17147
206 * remote.c (putpkt_binary): Add text to error message.
207
208 2014-07-20 Yao Qi <yao@codesourcery.com>
209
210 * eval.c: Remove "Chill" from comments.
211 * gdbtypes.h: Likewise.
212 * symtab.h: Likewise.
213
214 2014-07-20 Yao Qi <yao@codesourcery.com>
215
216 * std-operator.def: Update comments to TERNOP_SLICE.
217
218 2014-07-20 Yao Qi <yao@codesourcery.com>
219
220 * std-operator.def: Remove BINOP_RANGE.
221 * breakpoint.c (watchpoint_exp_is_const): Update.
222 * expprint.c (dump_subexp_body_standard): Likewise.
223 * eval.c (init_array_element): Remove dead code.
224 (evaluate_subexp_standard): Likewise.
225
226 2014-07-20 Yao Qi <yao@codesourcery.com>
227
228 * std-operator.def: Remove BINOP_IN.
229 * breakpoint.c (watchpoint_exp_is_const): Update.
230 * eval.c (evaluate_subexp_standard): Likewise.
231 * expprint.c (dump_subexp_body_standard): Likewise.
232
233 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
234
235 * microblaze-tdep.c (microblaze_register_names): Add
236 the rshr and rslr register names.
237 (microblaze_gdbarch_init): Use of tdesc_has_registers.
238 Use of tdesc_find_feature. Use of tdesc_data_alloc.
239 Use of tdesc_numbered_register. Use of
240 microblaze_register_g_packet_guesses. Use of
241 tdesc_use_registers. Use of set_gdbarch_register_type.
242 (microblaze_register_g_packet_guesses): New.
243 * microblaze-tdep.h (microblaze_reg_num): Add
244 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
245 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
246 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
247 * features/microblaze-core.xml: New file.
248 * features/microblaze-stack-protect.xml: New file.
249 * features/microblaze-with-stack-protect.c: New file.
250 * features/microblaze-with-stack-protect.xml: New file.
251 * features/microblaze.xml: New file.
252 * features/microblaze.c: New file.
253 * features/Makefile (microblaze-with-stack-protect): Add
254 microblaze-with-stack-protect microblaze and microblaze-expedite.
255 * regformats/microblaze-with-stack-protect.dat: New file.
256 * regformats/microblaze.dat: New file.
257 * doc/gdb.texinfo (MicroBlaze Features): Added.
258
259 2014-07-18 Tom Tromey <tromey@redhat.com>
260
261 * exec.c (exec_ops): Now static.
262 * exec.h (exec_ops): Don't declare.
263
264 2014-07-18 Tom Tromey <tromey@redhat.com>
265
266 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
267 to find_target_beneath.
268 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
269 find_target_beneath.
270 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
271
272 2014-07-18 Tom Tromey <tromey@redhat.com>
273
274 PR gdb/17130:
275 * utils.c (quit): Use target_supports_terminal_ours.
276 * target.h (target_supports_terminal_ours): Declare.
277 * target.c (target_supports_delete_record): Don't check
278 to_delete_record against NULL.
279 (target_supports_terminal_ours): New function.
280
281 2014-07-18 Tom Tromey <tromey@redhat.com>
282
283 PR gdb/17130:
284 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
285 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
286 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
287 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
288 * windows-nat.c (windows_xfer_partial): Always delegate.
289 * record-btrace.c (record_btrace_xfer_partial): Simplify
290 delegation.
291 (record_btrace_fetch_registers, record_btrace_store_registers)
292 (record_btrace_prepare_to_store, record_btrace_resume)
293 (record_btrace_wait, record_btrace_find_new_threads)
294 (record_btrace_thread_alive): Likewise.
295 * procfs.c (procfs_xfer_partial): Always delegate.
296 * corelow.c (core_xfer_partial): Always delegate.
297 * sol-thread.c (sol_find_new_threads): Simplify delegation.
298
299 2014-07-18 Tom Tromey <tromey@redhat.com>
300
301 * exec.c (exec_make_note_section): Move earlier.
302
303 2014-07-17 Doug Evans <dje@google.com>
304
305 PR gdb/17170
306 * maint.c (count_symtabs_and_blocks): Handle NULL
307 current_program_space.
308 (report_command_stats): Check global enabled flag in addition to
309 recorded enabled flag.
310 (make_command_stats_cleanup): Handle msg_type == 0, startup.
311
312 2014-07-16 Pedro Alves <palves@redhat.com>
313
314 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
315
316 2014-07-16 Tom Tromey <tromey@redhat.com>
317
318 * target.h (struct target_ops) <to_delete_record>: Reformat
319 comment.
320
321 2014-07-16 Tom Tromey <tromey@redhat.com>
322
323 * target-delegates.c: Rebuild.
324
325 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
326
327 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
328 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
329 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
330 (avr_pointer_to_address): Likewise.
331 (avr_address_class_type_flags): New function.
332 (avr_address_class_type_flags_to_name): Likewise.
333 (avr_address_class_name_to_type_flags): Likewise.
334 (avr_gdbarch_init): Set address_class_type_flags,
335 address_class_type_flags_to_name and
336 address_class_name_to_type_flags.
337
338 2014-07-15 Pedro Alves <palves@redhat.com>
339
340 * linux-nat.c (kill_callback): Save errno and work with saved
341 copy.
342
343 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
344
345 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
346
347 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
348
349 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
350 breakpoint support correctly.
351
352 2014-07-14 Pedro Alves <palves@redhat.com>
353
354 * utils.c (prompt_for_continue): Call target_terminal_ours.
355
356 2014-07-14 Pedro Alves <palves@redhat.com>
357
358 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
359 catch_errors. Don't re-enable stdin or notify observers where,
360 and rethrow error.
361 (fetch_inferior_event_wrapper): Delete.
362
363 2014-07-14 Pedro Alves <palves@redhat.com>
364
365 PR gdb/17072
366 * top.c: Include "inf-loop.h".
367 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
368 field.
369 (gdb_readline_wrapper_cleanup): Make the target async again, if it
370 was async before.
371 (gdb_readline_wrapper): Store whether the target is async, and
372 make it sync.
373
374 2014-07-14 Pedro Alves <palves@redhat.com>
375
376 PR gdb/17072
377 * top.c (gdb_readline_wrapper_line): Tweak comment.
378 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
379 the input handler callback.
380
381 2014-07-14 Pedro Alves <palves@redhat.com>
382
383 PR gdb/17072
384 * main.c: Include event-top.h.
385 (handle_command_errors): New function.
386 (catch_command_errors, catch_command_errors_const): Use it.
387
388 2014-07-14 Pedro Alves <palves@redhat.com>
389
390 * exceptions.c (catch_command_errors, catch_command_errors_const):
391 Moved to main.c.
392 * exceptions.h (catch_command_errors_ftype)
393 (catch_command_errors_const_ftype): Moved to main.c.
394 (catch_command_errors, catch_command_errors_const): Delete
395 declarations.
396 * main.c (catch_command_errors_ftype)
397 (catch_command_errors_const_ftype): Moved here from exceptions.h.
398 (catch_command_errors, catch_command_errors_const)): Moved here
399 from exceptions.c and make static.
400
401 2014-07-14 Pedro Alves <palves@redhat.com>
402
403 * exceptions.c (print_any_exception): Delete.
404 (catch_exceptions_with_msg): Use exception_print instead of
405 print_any_exception.
406 (catch_errors): Use exception_fprintf instead of
407 print_any_exception.
408 (catch_command_errors, catch_command_errors_const): Use
409 exception_print instead of print_any_exception.
410
411 2014-07-14 Pedro Alves <palves@redhat.com>
412
413 * infcall.c (run_inferior_call): Set 'sync_execution' while
414 running the inferior call.
415
416 2014-07-14 Pedro Alves <palves@redhat.com>
417
418 * value.c (value_contents_equal): Delete function.
419 * value.h (value_contents_equal): Delete declaration.
420
421 2014-07-14 Tom Tromey <tromey@redhat.com>
422
423 PR exp/17106:
424 * gdbtypes.c (is_dynamic_type_internal): New function, from
425 is_dynamic_type.
426 (is_dynamic_type): Rewrite.
427 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
428 (resolve_dynamic_struct): Likewise.
429 (resolve_dynamic_type_internal): New function, from
430 resolve_dynamic_type.
431 (resolve_dynamic_type): Rewrite.
432
433 2014-07-14 Tom Tromey <tromey@redhat.com>
434
435 * target.c (target_require_runnable): Also check record_stratum.
436 Update comment.
437
438 2014-07-11 Yao Qi <yao@codesourcery.com>
439
440 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
441 thumb_instruction_restores_sp return true.
442
443 2014-07-11 Yao Qi <yao@codesourcery.com>
444
445 * arm-tdep.c (thumb_instruction_restores_sp): New function.
446 (thumb_in_function_epilogue_p): Call
447 thumb_instruction_restores_sp.
448
449 2014-07-11 Yao Qi <yao@codesourcery.com>
450
451 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
452 'add sp, #imm'.
453 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
454
455 2014-07-11 Gary Benson <gbenson@redhat.com>
456
457 * amd64-linux-nat.c (gdbcore.h): Remove include.
458 (regset.h): Likewise.
459 (nat/linux-btrace.h): Likewise.
460 (btrace.h): Likewise.
461 (gdb_assert.h): Likewise.
462 (string.h): Likewise.
463 (sys/uio.h): Likewise.
464 (sys/debugreg.h): Likewise.
465 (sys/syscall.h): Likewise.
466 (sys/procfs.h): Likewise.
467 (sys/user.h): Likewise.
468 (asm/ptrace.h): Likewise.
469 (i386-nat.h): Likewise.
470 * i386-linux-nat.c (i386-nat.h): Likewise.
471 (regset.h): Likewise.
472 (target.h): Likewise.
473 (linux-nat.h): Likewise.
474 (nat/linux-btrace.h): Likewise.
475 (btrace.h): Likewise.
476 (gdb_assert.h): Likewise.
477 (string.h): Likewise.
478 (sys/uio.h): Likewise.
479 (sys/user.h): Likewise.
480 (sys/procfs.h): Likewise.
481 (sys/reg.h): Likewise.
482 (sys/debugreg.h): Likewise.
483 (ORIG_EAX): Remove definition.
484
485 2014-07-11 Gary Benson <gbenson@redhat.com>
486
487 * i386-linux-nat.h: New file.
488 * x86-linux-nat.h: Likewise.
489 * x86-linux-nat.c: Likewise.
490 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
491 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
492 * config/i386/linux64.mh (NATDEPFILES): Likewise.
493 * amd64-linux-nat.c (x86-linux-nat.h): New include.
494 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
495 (PTRACE_SETREGSET): Likewise.
496 (arch_lwp_info): Now in x86-linux-nat.c.
497 (have_ptrace_getregset): Now in x86-linux-nat.h.
498 (x86_linux_dr_get): Now in x86-linux-nat.c.
499 (x86_linux_dr_set): Likewise.
500 (x86_linux_dr_get_addr): Likewise.
501 (x86_linux_dr_get_control): Likewise.
502 (x86_linux_dr_get_status): Likewise.
503 (update_debug_registers_callback): Likewise.
504 (x86_linux_dr_set_control): Likewise.
505 (x86_linux_dr_set_addr): Likewise.
506 (x86_linux_prepare_to_resume): Likewise.
507 (x86_linux_new_thread): Likewise.
508 (x86_linux_new_fork): Likewise.
509 (x86_linux_get_thread_area): Likewise.
510 (super_post_startup_inferior): Likewise.
511 (x86_linux_child_post_startup_inferior): Likewise.
512 (AMD64_LINUX_USER64_CS): Likewise.
513 (AMD64_LINUX_X32_DS): Likewise.
514 (x86_linux_read_description): Likewise.
515 (x86_linux_enable_btrace): Likewise.
516 (x86_linux_disable_btrace): Likewise.
517 (x86_linux_teardown_btrace): Likewise.
518 (x86_linux_read_btrace): Likewise.
519 (x86_linux_create_target): Likewise.
520 (x86_linux_add_target): Likewise.
521 * i386-linux-nat.c (x86-linux-nat.h): New include.
522 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
523 (PTRACE_SETREGSET): Likewise.
524 (arch_lwp_info): Now in x86-linux-nat.c.
525 (have_ptrace_getregset): Now in x86-linux-nat.h.
526 (x86_linux_dr_get): Now in x86-linux-nat.c.
527 (x86_linux_dr_set): Likewise.
528 (x86_linux_dr_get_addr): Likewise.
529 (x86_linux_dr_get_control): Likewise.
530 (x86_linux_dr_get_status): Likewise.
531 (update_debug_registers_callback): Likewise.
532 (x86_linux_dr_set_control): Likewise.
533 (x86_linux_dr_set_addr): Likewise.
534 (x86_linux_prepare_to_resume): Likewise.
535 (x86_linux_new_thread): Likewise.
536 (x86_linux_new_fork): Likewise.
537 (x86_linux_get_thread_area): Likewise.
538 (super_post_startup_inferior): Likewise.
539 (x86_linux_child_post_startup_inferior): Likewise.
540 (AMD64_LINUX_USER64_CS): Likewise.
541 (AMD64_LINUX_X32_DS): Likewise.
542 (x86_linux_read_description): Likewise.
543 (x86_linux_enable_btrace): Likewise.
544 (x86_linux_disable_btrace): Likewise.
545 (x86_linux_teardown_btrace): Likewise.
546 (x86_linux_read_btrace): Likewise.
547 (x86_linux_create_target): Likewise.
548 (x86_linux_add_target): Likewise.
549
550 2014-07-11 Gary Benson <gbenson@redhat.com>
551
552 * amd64-linux-nat.c: Comment and whitespace changes.
553 * i386-linux-nat.c: Comment and whitespace changes.
554
555 2014-07-11 Gary Benson <gbenson@redhat.com>
556
557 * amd64-linux-nat.c (x86_linux_create_target): New function.
558 (x86_linux_add_target): Likewise.
559 (_initialize_amd64_linux_nat): Delegate to the above new functions.
560 * i386-linux-nat.c (x86_linux_create_target): New function.
561 (x86_linux_add_target): Likewise.
562 (_initialize_i386_linux_nat): Delegate to the above new functions.
563
564 2014-07-11 Gary Benson <gbenson@redhat.com>
565
566 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
567 (ps_get_thread_area): Delegate to the above in 32-bit mode.
568 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
569 (ps_get_thread_area): Delegate to the above.
570
571 2014-07-11 Gary Benson <gbenson@redhat.com>
572
573 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
574 x86_linux_read_description. All uses updated. amd64-specific
575 code conditionalized. Conditionalized i386-specific code added.
576 Redundant cast removed.
577 * i386-linux-nat.c (i386_linux_read_description): Renamed to
578 x86_linux_read_description. All uses updated. i386-specific
579 code conditionalized. Conditionalized amd64-specific code added.
580 One sizeof replaced with the actual type it is describing.
581
582 2014-07-11 Gary Benson <gbenson@redhat.com>
583
584 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
585 x86_linux_dr_get. All uses updated.
586 (amd64_linux_dr_set): Renamed to
587 x86_linux_dr_set. All uses updated.
588 (amd64_linux_dr_get_addr): Renamed to
589 x86_linux_dr_get_addr. All uses updated.
590 (amd64_linux_dr_get_control): Renamed to
591 x86_linux_dr_get_control. All uses updated.
592 (amd64_linux_dr_get_status): Renamed to
593 x86_linux_dr_get_status. All uses updated.
594 (amd64_linux_dr_set_control): Renamed to
595 x86_linux_dr_set_control. All uses updated.
596 (amd64_linux_dr_set_addr): Renamed to
597 x86_linux_dr_set_addr. All uses updated.
598 (amd64_linux_prepare_to_resume): Renamed to
599 x86_linux_prepare_to_resume. All uses updated.
600 (amd64_linux_new_thread): Renamed to
601 x86_linux_new_thread. All uses updated.
602 (amd64_linux_new_fork): Renamed to
603 x86_linux_new_fork. All uses updated.
604 (amd64_linux_child_post_startup_inferior): Renamed to
605 x86_linux_child_post_startup_inferior. All uses updated.
606 (amd64_linux_enable_btrace): Renamed to
607 x86_linux_enable_btrace. All uses updated.
608 (amd64_linux_disable_btrace): Renamed to
609 x86_linux_disable_btrace. All uses updated.
610 (amd64_linux_teardown_btrace): Renamed to
611 x86_linux_teardown_btrace. All uses updated.
612 (amd64_linux_read_btrace): Renamed to
613 x86_linux_read_btrace. All uses updated.
614 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
615 x86_linux_dr_get. All uses updated.
616 (i386_linux_dr_set): Renamed to
617 x86_linux_dr_set. All uses updated.
618 (i386_linux_dr_get_addr): Renamed to
619 x86_linux_dr_get_addr. All uses updated.
620 (i386_linux_dr_get_control): Renamed to
621 x86_linux_dr_get_control. All uses updated.
622 (i386_linux_dr_get_status): Renamed to
623 x86_linux_dr_get_status. All uses updated.
624 (i386_linux_dr_set_control): Renamed to
625 x86_linux_dr_set_control. All uses updated.
626 (i386_linux_dr_set_addr): Renamed to
627 x86_linux_dr_set_addr. All uses updated.
628 (i386_linux_prepare_to_resume): Renamed to
629 x86_linux_prepare_to_resume. All uses updated.
630 (i386_linux_new_thread): Renamed to
631 x86_linux_new_thread. All uses updated.
632 (i386_linux_new_fork): Renamed to
633 x86_linux_new_fork. All uses updated.
634 (i386_linux_child_post_startup_inferior): Renamed to
635 x86_linux_child_post_startup_inferior. All uses updated.
636 (i386_linux_enable_btrace): Renamed to
637 x86_linux_enable_btrace. All uses updated.
638 (i386_linux_disable_btrace): Renamed to
639 x86_linux_disable_btrace. All uses updated.
640 (i386_linux_teardown_btrace): Renamed to
641 x86_linux_teardown_btrace. All uses updated.
642 (i386_linux_read_btrace): Renamed to
643 x86_linux_read_btrace. All uses updated.
644
645 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
646
647 * remote.c (extended_remote_post_attach): New function.
648 (init_extended_remote_ops): Install it as to_post_attach method.
649
650 2014-07-09 Pedro Alves <palves@redhat.com>
651
652 * infcmd.c (attach_command_post_wait): Don't call
653 target_terminal_inferior here.
654 (attach_command): Call it here instead.
655
656 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
657
658 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
659 field.
660 * c-varobj.c (c_is_path_expr_parent): New function, moved core
661 from varobj.c, with additional checks.
662 (c_varobj_ops): Fill in is_path_expr_parent field.
663 (cplus_varobj_ops): Fill in is_path_expr_parent field.
664 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
665 field.
666 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
667 ops method.
668 (varobj_default_is_path_expr_parent): New function.
669 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
670 (varobj_default_is_path_expr_parent): Declare new function.
671
672 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
673
674 * infcmd.c (finish_backward): Turn internal error into normal error.
675
676 2014-07-07 Pedro Alves <palves@redhat.com>
677
678 PR gdb/17096
679 * remote.c (async_handle_remote_sigint)
680 (async_handle_remote_sigint_twice): Call
681 gdb_call_async_signal_handler instead of
682 mark_async_signal_handler.
683
684 2014-07-07 Tom Tromey <tromey@redhat.com>
685
686 * target-delegates.c: Rebuild.
687 * target.c (target_info_record): Remove.
688 * record.c (info_record_command): Unconditionally call
689 to_info_record.
690 * target.h (struct target_ops) <to_info_record>: Use
691 TARGET_DEFAULT_IGNORE.
692 (target_info_record): Remove.
693
694 2014-07-07 Tom Tromey <tromey@redhat.com>
695
696 * target.h (struct target_ops) <to_get_thread_local_address>: Use
697 TARGET_DEFAULT_NORETURN.
698 * target.c (generic_tls_error): New function.
699 (target_translate_tls_address): Don't search target stack.
700 * target-delegates.c: Rebuild.
701 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
702 stack.
703 * linux-thread-db.c (thread_db_get_thread_local_address):
704 Unconditionally call beneath target.
705
706 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
707
708 * cli/cli-logging.c (pop_output_files): Assign targerr to
709 gdb_stdtargerr.
710
711 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
712
713 * MAINTAINERS (Write After Approval): Update my email address.
714
715 2014-07-02 Gary Benson <gbenson@redhat.com>
716
717 * proc-service.c (ps_xfer_memory): Update comment.
718 (ps_pstop): Remove unused function.
719 (ps_pcontinue): Likewise.
720 (ps_lstop): Likewise.
721 (ps_lcontinue): Likewise.
722 (ps_lgetxregsize): Likewise.
723 (ps_lgetxregs): Likewise.
724 (ps_lsetxregs): Likewise.
725 (ps_plog): Likewise.
726 (ps_ptread): Likewise.
727 (ps_ptwrite): Likewise.
728
729 2014-07-01 Mark Wielaard <mjw@redhat.com>
730
731 * dwarf2read.c (add_array_cv_type): New function.
732 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
733 (read_tag_volatile_type): Likewise.
734
735 2014-07-01 Tom Tromey <tromey@redhat.com>
736
737 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
738 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
739 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
740 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
741 * command.h (cmd_cfunc_ftype): Move earlier.
742 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
743 (add_com, add_info): Use cmd_cfunc_ftype.
744
745 2014-06-30 Tom Tromey <tromey@redhat.com>
746
747 * symtab.c (operator_chars): Make parameters and return type
748 const.
749 (file_matches): Make "files" const.
750 (struct search_symbols_data) <files>: Now const.
751 (search_symbols): Make "regexp" and "files" parameters const.
752 Update.
753 (symtab_symbol_info): Remove cast.
754 (rbreak_command): Update.
755 * symtab.h (search_symbols): Update.
756
757 2014-06-27 Yao Qi <yao@codesourcery.com>
758
759 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
760 Change parameter type to 'struct thread_info *'. Caller
761 updated.
762 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
763 Update declaration.
764 * dummy-frame.c (struct dummy_frame_id): New.
765 (dummy_frame_id_eq): New function.
766 (struct dummy_frame) <id>: Change its type to 'struct
767 dummy_frame_id'.
768 (dummy_frame_push): Add parameter ptid and save it in
769 dummy_frame_id.
770 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
771 inferior_ptid.
772 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
773 to inferior_ptid.
774 (lookup_dummy_frame): Change parameter type to 'struct
775 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
776 instead of frame_id_eq.
777 (dummy_frame_pop): Add parameter ptid. Callers updated.
778 Update comments. Compose dummy_frame_id and pass it to
779 lookup_dummy_frame.
780 (dummy_frame_discard): Add parameter ptid.
781 (dummy_frame_sniffer): Compose dummy_frame_id and call
782 dummy_frame_id_eq instead of frame_id_eq.
783 (fprint_dummy_frames): Print ptid.
784 * dummy-frame.h: Remove comments.
785 (dummy_frame_push): Add ptid in declaration.
786 (dummy_frame_pop, dummy_frame_discard): Likewise.
787
788 2014-06-26 Tom Tromey <tromey@redhat.com>
789
790 * cli/cli-cmds.c (error_no_arg): Make "why" const.
791 * command.h (error_no_arg): Update.
792
793 2014-06-26 Tom Tromey <tromey@redhat.com>
794
795 * cli/cli-setshow.c (do_set_command): Make "arg" const.
796 (do_show_command): Make "arg" const.
797 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
798
799 2014-06-26 Tom Tromey <tromey@redhat.com>
800
801 * record-full.c (record_full_get_bookmark): Make "args" const.
802 (record_full_goto_bookmark): Make "raw_bookmark" const.
803 * record.c (record_goto): New function.
804 (cmd_record_goto): Use it. Now static.
805 * record.h (record_goto): Declare.
806 (cmd_record_goto): Remove declaration.
807 * target-delegates.c: Rebuild.
808 * target.h (struct target_ops) <to_get_bookmark,
809 to_goto_bookmark>: Make parameter const.
810
811 2014-06-26 Tom Tromey <tromey@redhat.com>
812
813 * defs.h (generic_load): Update.
814 * m32r-rom.c (m32r_load_gen): Make "filename" const.
815 * monitor.c (monitor_load): Make "args" const.
816 * remote-m32r-sdi.c (m32r_load): Make "args" const.
817 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
818 const.
819 (mips_load): Make "file" const.
820 * remote-sim.c (gdbsim_load): Make "args" const.
821 * remote.c (remote_load): Make "name" const.
822 * symfile.c (generic_load): Make "args" const.
823 * target-delegates.c: Rebuild.
824 * target.c (target_load): Make "arg" const.
825 (debug_to_load): Make "args" const.
826 * target.h (struct target_ops) <to_load>: Make parameter const.
827 (target_load): Update.
828
829 2014-06-26 Tom Tromey <tromey@redhat.com>
830
831 PR symtab/16902:
832 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
833 (dwarf2_physname, read_partial_die)
834 (guess_partial_die_structure_name, fixup_partial_die)
835 (guess_full_die_structure_name, anonymous_struct_prefix)
836 (dwarf2_name): Use per-BFD obstack.
837
838 2014-06-26 Yao Qi <yao@codesourcery.com>
839
840 * dummy-frame.c (dummy_frame_sniffer): Move local variables
841 dummyframe and this_id into inner block below.
842
843 2014-06-26 Yao Qi <yao@codesourcery.com>
844
845 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
846 with "signal_pass[0]" in the initialization of signal_pass.
847
848 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
849
850 * record-btrace.c (record_btrace_generating_corefile)
851 (record_btrace_prepare_to_generate_core)
852 (record_btrace_done_generating_core): New.
853 (record_btrace_xfer_partial, record_btrace_fetch_registers)
854 (record_btrace_store_registers, record_btrace_prepare_to_store):
855 Forward request when generating a core file.
856 (record_btrace_open): Set record_btrace_generating_corefile to zero.
857 (init_record_btrace_ops): Set to_prepare_to_generate_core and
858 to_done_generating_core.
859
860 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
861
862 * target.h (target_ops) <to_prepare_to_generate_core>
863 <to_done_generating_core>: New.
864 (target_prepare_to_generate_core, target_done_generating_core): New.
865 * target.c (target_prepare_to_generate_core)
866 (target_done_generating_core): New.
867 * target-delegates.c: Regenerate.
868 * gcore.c: (write_gcore_file): Rename to ...
869 (write_gcore_file_1): ...this.
870 (write_gcore_file): Call target_prepare_to_generate_core
871 and target_done_generating_core.
872
873 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
874
875 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
876 * gcore.c (write_gcore_file): Free memory returned from
877 make_corefile_notes.
878 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
879 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
880
881 2014-06-24 Yao Qi <yao@codesourcery.com>
882
883 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
884 (arm_linux_init_abi): Set skip_trampoline_code with
885 gdbarch_skip_trampoline_code instead of
886 find_solib_trampoline_target.
887
888 2014-06-24 Yao Qi <yao@codesourcery.com>
889
890 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
891 arm_skip_bx_reg returns non-zero.
892
893 2014-06-24 Yao Qi <yao@codesourcery.com>
894
895 * arm-tdep.c (arm_skip_bx_reg): New function.
896 (arm_skip_stub): Call arm_skip_bx_reg.
897
898 2014-06-23 Don Breazeal <donb@codesourcery.com>
899
900 * MAINTAINERS: Add myself as write-after-approval maintainer.
901
902 2014-06-23 Pedro Alves <palves@redhat.com>
903
904 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
905 DR_CONTROL before setting DR0..DR3.
906 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
907 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
908 bits of DR_CONTROL related to the debug register slot being
909 disabled. If all slots are vacant, clear local slowdown as well,
910 and assert DR_CONTROL is 0.
911
912 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
913
914 * python/lib/gdb/command/xmethods.py
915 (get_method_matchers_in_loci): Lookup xmethod matchers in the
916 current progspace only if the string "progspace" matches LOCUS_RE.
917
918 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
919
920 Fix --with-system-readline with readline-6.3 patch 5.
921 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
922 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
923 types.
924
925 2014-06-20 Tom Tromey <tromey@redhat.com>
926
927 * dwarf2read.c (dw2_get_real_path): Use correct type in
928 OBSTACK_CALLOC.
929 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
930
931 2014-06-20 Gary Benson <gbenson@redhat.com>
932
933 * common/gdb_thread_db.h: Moved to nat. All includes updated.
934 * common/glibc_thread_db.h: Likewise.
935 * common/i386-cpuid.h: Likewise.
936 * common/i386-gcc-cpuid.h: Likewise.
937 * common/linux-btrace.h: Likewise.
938 * common/linux-osdata.h: Likewise.
939 * common/linux-procfs.h: Likewise.
940 * common/linux-ptrace.h: Likewise.
941 * common/mips-linux-watch.h: Likewise.
942 * common/linux-btrace.c: Moved to nat.
943 * common/linux-osdata.c: Likewise.
944 * common/linux-procfs.c: Likewise.
945 * common/linux-ptrace.c: Likewise.
946 * common/mips-linux-watch.c: Likewise.
947 * nat/gdb_thread_db.h: Moved from common.
948 * nat/glibc_thread_db.h: Likewise.
949 * nat/i386-cpuid.h: Likewise.
950 * nat/i386-gcc-cpuid.h: Likewise.
951 * nat/linux-btrace.c: Likewise.
952 * nat/linux-btrace.h: Likewise.
953 * nat/linux-osdata.c: Likewise.
954 * nat/linux-osdata.h: Likewise.
955 * nat/linux-procfs.c: Likewise.
956 * nat/linux-procfs.h: Likewise.
957 * nat/linux-ptrace.c: Likewise.
958 * nat/linux-ptrace.h: Likewise.
959 * nat/mips-linux-watch.c: Likewise.
960 * nat/mips-linux-watch.h: Likewise.
961 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
962 (object file files): Reordered.
963 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
964 of glibc_thread_db.h.
965
966 2014-06-20 Gary Benson <gbenson@redhat.com>
967
968 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
969 (i386_dr_low_type): Moved to nat/i386-dregs.h.
970 (i386_dr_low): Likewise.
971 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
972 (i386_dr_low_set_addr): Likewise.
973 (i386_dr_low_get_addr): Likewise.
974 (i386_dr_low_can_set_control): Likewise.
975 (i386_dr_low_set_control): Likewise.
976 (i386_dr_low_get_control): Likewise.
977 (i386_dr_low_get_status): Likewise.
978 (i386_get_debug_register_length): Likewise.
979 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
980 (i386_dr_low): Likewise.
981 * nat/i386-dregs.c (i386-low.h): Remove include.
982 (i386-nat.h): Likewise.
983 (nat/i386-dregs.h): New include.
984 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
985 (i386_dr_low_set_addr): Likewise.
986 (i386_dr_low_get_addr): Likewise.
987 (i386_dr_low_can_set_control): Likewise.
988 (i386_dr_low_set_control): Likewise.
989 (i386_dr_low_get_control): Likewise.
990 (i386_dr_low_get_status): Likewise.
991 (i386_get_debug_register_length): Likewise.
992 (debug_hw_points): Likewise.
993
994 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
995
996 * Makefile.in (SFILES): Add d-exp.y.
997 (YYFILES): Add d-exp.c.
998 (YYOBJ): Add d-exp.o.
999 (local-maintainer-clean): Delete d-exp.c.
1000 * d-exp.y: New file.
1001 * d-lang.h (d_parse): New declaration.
1002 (d_error): New declaration.
1003 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
1004 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
1005 PREC_ORDER operators.
1006 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
1007
1008 2014-06-19 Yao Qi <yao@codesourcery.com>
1009
1010 * gdbthread.h (any_running): Remove the declaration.
1011 * thread.c (any_running): Remove.
1012
1013 2014-06-19 Yao Qi <yao@codesourcery.com>
1014
1015 * gdbthread.h (struct thread_info) <state>: Change its type to
1016 'enum thread_state'. Update comments.
1017
1018 2014-06-19 Pedro Alves <palves@redhat.com>
1019
1020 * gdbthread.h (ALL_THREADS): Delete.
1021 (ALL_NON_EXITED_THREADS): New macro.
1022 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
1023 instead of ALL_THREADS.
1024 * infrun.c (find_thread_needs_step_over)
1025 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
1026 instead of ALL_THREADS.
1027 * record-btrace.c (record_btrace_open)
1028 (record_btrace_stop_recording, record_btrace_close)
1029 (record_btrace_is_replaying, record_btrace_resume)
1030 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
1031 * remote.c (append_pending_thread_resumptions): Likewise.
1032 * thread.c (thread_apply_all_command): Likewise.
1033
1034 2014-06-19 Gary Benson <gbenson@redhat.com>
1035
1036 * i386-nat.c (i386_stopped_by_watchpoint):
1037 Use i386_dr_stopped_by_watchpoint.
1038 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
1039 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1040
1041 2014-06-19 Gary Benson <gbenson@redhat.com>
1042
1043 * nat/i386-dregs.c: New file.
1044 * Makefile.in (i386-dregs.o): New rule.
1045 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1046 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1047 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1048 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1049 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1050 * config/i386/go32.mh (NATDEPFILES): Likewise.
1051 * config/i386/linux.mh (NATDEPFILES): Likewise.
1052 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1053 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1054 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1055 * i386-nat.h (debug_hw_points): New declaration.
1056 * i386-nat.c (breakpoint.h): Remove include.
1057 (command.h): Likewise.
1058 (target.h): Likewise.
1059 (gdb_assert.h): Likewise.
1060 (debug_hw_points): Made nonstatic.
1061 (debug_printf): Now in i386-dregs.c.
1062 (TARGET_HAS_DR_LEN_8): Likewise.
1063 (DR_CONTROL_SHIFT): Likewise.
1064 (DR_CONTROL_SIZE): Likewise.
1065 (DR_RW_EXECUTE): Likewise.
1066 (DR_RW_WRITE): Likewise.
1067 (DR_RW_READ): Likewise.
1068 (DR_RW_IORW): Likewise.
1069 (DR_LEN_1): Likewise.
1070 (DR_LEN_2): Likewise.
1071 (DR_LEN_4): Likewise.
1072 (DR_LEN_8): Likewise.
1073 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1074 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1075 (DR_ENABLE_SIZE): Likewise.
1076 (DR_LOCAL_SLOWDOWN): Likewise.
1077 (DR_GLOBAL_SLOWDOWN): Likewise.
1078 (DR_CONTROL_RESERVED): Likewise.
1079 (I386_DR_CONTROL_MASK): Likewise.
1080 (I386_DR_VACANT): Likewise.
1081 (I386_DR_LOCAL_ENABLE): Likewise.
1082 (I386_DR_GLOBAL_ENABLE): Likewise.
1083 (I386_DR_DISABLE): Likewise.
1084 (I386_DR_SET_RW_LEN): Likewise.
1085 (I386_DR_GET_RW_LEN): Likewise.
1086 (I386_DR_WATCH_HIT): Likewise.
1087 (i386_wp_op_t): Likewise.
1088 (i386_show_dr): Likewise.
1089 (i386_length_and_rw_bits): Likewise.
1090 (i386_insert_aligned_watchpoint): Likewise.
1091 (i386_remove_aligned_watchpoint): Likewise.
1092 (i386_handle_nonaligned_watchpoint): Likewise.
1093 (i386_update_inferior_debug_regs): Likewise.
1094 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1095 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1096 (i386_region_ok_for_watchpoint):
1097 Use i386_dr_region_ok_for_watchpoint.
1098 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1099
1100 2014-06-19 Gary Benson <gbenson@redhat.com>
1101
1102 * i386-nat.c (i386_insert_hw_breakpoint): Use
1103 i386_insert_watchpoint.
1104 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1105
1106 2014-06-19 Gary Benson <gbenson@redhat.com>
1107
1108 * i386-nat.c (i386_dr_show): Renamed to
1109 i386_show_dr and made static. All uses updated.
1110 (i386_dr_length_and_rw_bits): Renamed to
1111 i386_length_and_rw_bits and made static.
1112 All uses updated.
1113 (i386_dr_insert_aligned_watchpoint): Renamed to
1114 i386_insert_aligned_watchpoint and made static.
1115 All uses updated.
1116 (i386_dr_remove_aligned_watchpoint): Renamed to
1117 i386_remove_aligned_watchpoint and made static.
1118 All uses updated.
1119 (i386_dr_update_inferior_debug_regs): Renamed to
1120 i386_update_inferior_debug_regs and made static.
1121 All uses updated.
1122 * nat/i386-dregs.h (i386_dr_show): Removed.
1123 (i386_dr_length_and_rw_bits): Likewise.
1124 (i386_dr_insert_aligned_watchpoint): Likewise.
1125 (i386_dr_remove_aligned_watchpoint): Likewise.
1126 (i386_dr_update_inferior_debug_regs): Likewise.
1127
1128 2014-06-19 Gary Benson <gbenson@redhat.com>
1129
1130 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1131 * configure: Regenerate.
1132 * config.in: Likewise.
1133 * main.c (signal.h): New include.
1134 (setup_alternate_signal_stack): New function.
1135 (captured_main): Call the above.
1136 * cp-support.c (signal.h): New include.
1137 (catch_demangler_crashes): New flag.
1138 (SIGJMP_BUF): New define.
1139 (SIGSETJMP): Likewise.
1140 (SIGLONGJMP): Likewise.
1141 (gdb_demangle_jmp_buf): New static global.
1142 (gdb_demangle_attempt_core_dump): Likewise.
1143 (gdb_demangle_signal_handler): New function.
1144 (gdb_demangle): If catch_demangler_crashes is set, install the
1145 above signal handler before calling bfd_demangle, and restore
1146 the original signal handler afterwards. Display the offending
1147 symbol and call demangler_warning the first time a segmentation
1148 fault is caught.
1149 (_initialize_cp_support): New maint set/show command.
1150
1151 2014-06-19 Gary Benson <gbenson@redhat.com>
1152
1153 * utils.h (resource_limit_kind): New enum.
1154 (can_dump_core): New declaration.
1155 (warn_cant_dump_core): Likewise.
1156 (dump_core): Likewise.
1157 * utils.c (dump_core): Made nonstatic. Added new
1158 parameter "limit_kind".
1159 (can_dump_core): Made nonstatic. Moved printing code to...
1160 (warn_cant_dump_core): New function.
1161 (can_dump_core_warn): Likewise.
1162 (internal_vproblem): Replace calls to can_dump_core with
1163 calls to can_dump_core_warn. Supply new argument to each.
1164
1165 2014-06-19 Gary Benson <gbenson@redhat.com>
1166
1167 * utils.h (demangler_vwarning): New declaration.
1168 (demangler_warning): Likewise.
1169 * utils.c (struct internal_problem)
1170 <user_settable_should_quit>: New field.
1171 <user_settable_should_dump_core>: Likewise
1172 (internal_error_problem): Add values for above new fields.
1173 (internal_warning_problem): Likewise.
1174 (demangler_warning_problem): New static global.
1175 (demangler_vwarning): New function.
1176 (demangler_warning): Likewise.
1177 (add_internal_problem_command): Selectively add commands.
1178 (_initialize_utils): New internal problem command.
1179 * maint.c (maintenance_demangler_warning): New function.
1180 (_initialize_maint_cmds): New command.
1181
1182 2014-06-18 Tom Tromey <tromey@redhat.com>
1183
1184 * f-valprint.c (info_common_command_for_block): Update.
1185 * symtab.h (struct general_symbol_info) <common_block>: Now
1186 const.
1187
1188 2014-06-18 Tom Tromey <tromey@redhat.com>
1189
1190 * symtab.h (struct symtab) <blockvector>: Now const.
1191 * ada-lang.c (ada_add_global_exceptions): Update.
1192 * buildsym.c (augment_type_symtab): Update.
1193 * dwarf2read.c (dw2_lookup_symbol): Update.
1194 * jit.c (finalize_symtab): Update.
1195 * jv-lang.c (add_class_symtab_symbol): Update.
1196 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1197 Update.
1198 * objfiles.c (objfile_relocate1): Update.
1199 * psymtab.c (lookup_symbol_aux_psymtabs)
1200 (maintenance_check_psymtabs): Update.
1201 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1202 Update.
1203 * spu-tdep.c (spu_catch_start): Update.
1204 * symmisc.c (dump_symtab_1): Update.
1205 * symtab.c (lookup_global_symbol_from_objfile)
1206 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1207 (basic_lookup_transparent_type_quick)
1208 (basic_lookup_transparent_type, find_pc_sect_symtab)
1209 (find_pc_sect_line, search_symbols): Update.
1210 * block.c (find_block_in_blockvector): Make "bl" const.
1211 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1212 const.
1213 (blockvector_contains_pc): Make "bv" const.
1214 (block_for_pc_sect): Update.
1215 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1216 (blockvector_contains_pc): Update.
1217 * breakpoint.c (resolve_sal_pc): Update.
1218 * inline-frame.c (block_starting_point_at): Update.
1219
1220 2014-06-18 Tom Tromey <tromey@redhat.com>
1221
1222 * completer.c (complete_line): Make "line_buffer" const.
1223 * completer.h (complete_line): Update.
1224
1225 2014-06-18 Tom Tromey <tromey@redhat.com>
1226
1227 * symtab.c (add_macro_name): Remove unneeded cast.
1228
1229 2014-06-18 Tom Tromey <tromey@redhat.com>
1230
1231 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1232 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1233
1234 2014-06-18 Tom Tromey <tromey@redhat.com>
1235
1236 * probe.c (info_probes_for_ops): Make "arg" const.
1237 * probe.h (info_probes_for_ops): Update.
1238
1239 2014-06-18 Tom Tromey <tromey@redhat.com>
1240
1241 * varobj.c (varobj_create): Update.
1242 * valops.c (value_of_this): Update.
1243 * tracepoint.c (add_local_symbols, scope_info): Update.
1244 * symtab.h (struct general_symbol_info) <block>: Now const.
1245 * symtab.c (skip_prologue_sal)
1246 (default_make_symbol_completion_list_break_on)
1247 (skip_prologue_using_sal): Update.
1248 * stack.h (iterate_over_block_locals)
1249 (iterate_over_block_local_vars): Update.
1250 * stack.c (print_frame_args): Update.
1251 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1252 parameter const.
1253 (get_selected_block): Make return type const.
1254 * python/py-frame.c (frapy_block): Update.
1255 * python/py-block.c (gdbpy_block_for_pc): Update.
1256 * p-exp.y (%union) <bval>: Now const.
1257 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1258 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1259 * m2-exp.y (%union) <bval>: Now const.
1260 * linespec.c (get_current_search_block): Make return type const.
1261 (create_sals_line_offset, find_label_symbols): Update.
1262 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1263 Update.
1264 (block_starting_point_at): Make "block" const.
1265 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1266 (check_exception_resume): Update.
1267 * guile/scm-frame.c (gdbscm_frame_block): Update.
1268 * guile/scm-block.c (gdbscm_lookup_block): Update.
1269 * frame.h (get_frame_block): Update.
1270 (get_selected_block): Make return type const.
1271 * frame.c (frame_id_inner): Update.
1272 * f-valprint.c (info_common_command_for_block)
1273 (info_common_command): Update.
1274 * dwarf2loc.c (dwarf2_find_location_expression)
1275 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1276 (locexpr_describe_location_piece): Update.
1277 * c-exp.y (%union) <bval>: Now const.
1278 * breakpoint.c (resolve_sal_pc): Update.
1279 * blockframe.c (get_frame_block):Make return type const.
1280 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1281 (block_innermost_frame): Update.
1282 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1283 (block_for_pc, block_for_pc_sect): Update.
1284 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1285 'pblock' const.
1286 (block_for_pc_sect, block_for_pc): Make return type const.
1287 * ax-gdb.c (gen_expr): Update.
1288 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1289 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1290 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1291 (ada_read_var_value): Update.
1292 * ada-exp.y (struct name_info) <block>: Now const.
1293 (%union): Likewise.
1294 (block_lookup): Constify.
1295
1296 2014-06-18 Gary Benson <gbenson@redhat.com>
1297
1298 * nat/i386-dregs.h: New file.
1299 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1300 * i386-nat.h (i386-dregs.h): New include.
1301 (DR_FIRSTADDR): Now in i386-dregs.h.
1302 (DR_LASTADDR): Likewise.
1303 (DR_NADDR): Likewise.
1304 (DR_STATUS): Likewise.
1305 (DR_CONTROL): Likewise.
1306 (i386_debug_reg_state): Likewise.
1307 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1308
1309 2014-06-18 Don Breazeal <donb@codesourcery.com>
1310
1311 * breakpoint.c (set_longjmp_breakpoint): Call
1312 momentary_breakpoint_from_master with additional argument.
1313 (set_longjmp_breakpoint_for_call_dummy): Call
1314 momentary_breakpoint_from_master with additional argument.
1315 (set_std_terminate_breakpoint): Call
1316 momentary_breakpoint_from_master with additional argument.
1317 (momentary_breakpoint_from_master): Add argument to function
1318 definition and use it to initialize structure member flag.
1319 (clone_momentary_breakpoint): Call
1320 momentary_breakpoint_from_master with additional argument.
1321 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1322 member flags set in momentary_breakpoint_from_master.
1323
1324 2014-06-18 Gary Benson <gbenson@redhat.com>
1325
1326 * i386-nat.c (i386_show_dr): Renamed to
1327 i386_dr_show and made nonstatic. All uses updated.
1328 (i386_length_and_rw_bits): Renamed to
1329 i386_dr_length_and_rw_bits and made nonstatic.
1330 All uses updated.
1331 (i386_insert_aligned_watchpoint): Renamed to
1332 i386_dr_insert_aligned_watchpoint and made nonstatic.
1333 All uses updated.
1334 (i386_remove_aligned_watchpoint): Renamed to
1335 i386_dr_remove_aligned_watchpoint and made nonstatic.
1336 All uses updated.
1337 (i386_update_inferior_debug_regs): Renamed to
1338 i386_dr_update_inferior_debug_regs and made nonstatic.
1339 All uses updated.
1340
1341 2014-06-18 Gary Benson <gbenson@redhat.com>
1342
1343 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1344 (i386_dr_low_can_set_control): Likewise.
1345 (i386_dr_low_set_addr): Likewise.
1346 (i386_dr_low_set_control): Likewise.
1347 (i386_dr_low_get_addr): Likewise.
1348 (i386_dr_low_get_status): Likewise.
1349 (i386_dr_low_get_control): Likewise.
1350 (i386_insert_aligned_watchpoint): Use new macros.
1351 (i386_update_inferior_debug_regs): Likewise.
1352 (i386_stopped_data_address): Likewise.
1353
1354 2014-06-18 Gary Benson <gbenson@redhat.com>
1355
1356 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1357 New parameter. All uses updated.
1358
1359 2014-06-18 Gary Benson <gbenson@redhat.com>
1360
1361 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1362 All uses updated.
1363
1364 2014-06-18 Gary Benson <gbenson@redhat.com>
1365
1366 * i386-nat.c (debug_printf): New macro.
1367 (i386_get_debug_register_length): Likewise.
1368 (TARGET_HAS_DR_LEN_8): Use above macro.
1369 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1370 and printf_unfiltered. Use phex to format values.
1371
1372 2014-06-18 Gary Benson <gbenson@redhat.com>
1373
1374 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1375 Make const.
1376
1377 2014-06-18 Gary Benson <gbenson@redhat.com>
1378
1379 * i386-nat.c: Comment changes.
1380
1381 2014-06-18 Gary Benson <gbenson@redhat.com>
1382
1383 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1384
1385 2014-06-18 Gary Benson <gbenson@redhat.com>
1386
1387 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1388 (i386_insert_aligned_watchpoint): Likewise.
1389 (i386_remove_aligned_watchpoint): Likewise.
1390 (i386_handle_nonaligned_watchpoint): Likewise.
1391
1392 2014-06-18 Gary Benson <gbenson@redhat.com>
1393
1394 * i386-nat.c: Whitespace changes.
1395
1396 2014-06-17 Samuel Bronson <naesten@gmail.com>
1397
1398 * MAINTAINERS: Update Roland McGrath's email address.
1399 Thanks to Sergio Durigan Junior for pointing out that he left
1400 Red Hat a while ago, and giving me a current address.
1401
1402 2014-06-17 Tom Tromey <tromey@redhat.com>
1403
1404 * utils.h (savestring): Remove declaration.
1405
1406 2014-06-17 Tom Tromey <tromey@redhat.com>
1407
1408 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1409
1410 2014-06-16 Keith Seitz <keiths@redhat.com>
1411
1412 PR mi/15863
1413 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1414 to update the varobj if inferior_ptid is null_ptid.
1415
1416 2014-06-16 Tom Tromey <tromey@redhat.com>
1417
1418 * target.h (struct target_ops) <to_info_proc>: Make parameter
1419 const.
1420 (target_info_proc): Update.
1421 * target.c (target_info_proc): Make "args" const.
1422 * procfs.c (procfs_info_proc): Update.
1423 * linux-tdep.c (linux_info_proc): Update.
1424 (linux_core_info_proc_mappings): Make "args" const.
1425 (linux_core_info_proc): Update.
1426 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1427 * gdbarch.c: Rebuild.
1428 * gdbarch.h: Rebuild.
1429 * corelow.c (core_info_proc): Update.
1430
1431 2014-06-16 Tom Tromey <tromey@redhat.com>
1432
1433 * target.h (struct target_ops) <to_disconnect>: Make parameter
1434 const.
1435 (target_disconnect): Update.
1436 * target.c (target_disconnect): Make "args" const.
1437 * target-delegates.c: Rebuild.
1438 * remote.c (remote_disconnect): Update.
1439 * record.h (record_disconnect): Update.
1440 * record.c (record_disconnect): Update.
1441 * inf-child.c (inf_child_disconnect): Update.
1442
1443 2014-06-16 Tom Tromey <tromey@redhat.com>
1444
1445 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1446 * target.c (debug_to_rcmd, default_rcmd): Update.
1447 * target-delegates.c: Rebuild.
1448 * remote.c (remote_rcmd): Update.
1449 * monitor.c (monitor_rcmd): Update.
1450
1451 2014-06-16 Pedro Alves <palves@redhat.com>
1452
1453 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1454 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1455 have OBJF_SHARED set.
1456 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1457 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1458 instead of OBJF_USERLOADED.
1459 * objfiles.h (OBJF_SHARED): Update comment.
1460 (userloaded_objfile_contains_address_p): Rename to ...
1461 (shared_objfile_contains_address_p): ... this, and update
1462 comments.
1463 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1464 new objfile.
1465 (remove_symbol_file_command): Skip objfiles that don't have
1466 OBJF_SHARED set.
1467
1468 2014-06-16 Tom Tromey <tromey@redhat.com>
1469
1470 * minsyms.h (prim_record_minimal_symbol)
1471 (prim_record_minimal_symbol_and_info): Update comments.
1472
1473 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1474
1475 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1476 or --without-guile, according to how GDB was built.
1477
1478 2014-06-13 Tom Tromey <tromey@redhat.com>
1479
1480 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1481 to help_list.
1482 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1483 to help_list.
1484 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1485 help_list.
1486 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1487 help_list.Pass all_commands, not -1, to help_list.
1488 * cli/cli-dump.c (dump_command, append_command)
1489 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1490 (binary_dump_command, binary_append_command): Pass all_commands,
1491 not -1, to help_list.
1492 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1493 -1, to help_list.
1494 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1495 -1, to help_list.
1496 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1497 help_list.
1498 * top.c (set_history): Pass all_commands, not -1, to help_list.
1499 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1500 all_commands, not -1, to help_list.
1501 * symfile.c (overlay_command): Pass all_commands, not -1, to
1502 help_list.
1503 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1504 help_list.
1505 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1506 help_list.
1507 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1508 -1, to help_list.
1509 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1510 not -1, to help_list.
1511 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1512 not -1, to help_list.
1513 * maint.c (maintenance_command, maintenance_info_command)
1514 (maintenance_print_command, maintenance_set_cmd): Pass
1515 all_commands, not -1, to help_list.
1516 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1517 help_list.
1518 * language.c (set_check): Pass all_commands, not -1, to help_list.
1519 * infcmd.c (unset_command): Pass all_commands, not -1, to
1520 help_list.
1521 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1522 help_list.
1523 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1524 help_list.
1525 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1526 help_list.
1527 * breakpoint.c (save_command): Pass all_commands, not -1, to
1528 help_list.
1529 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1530 all_commands, not -1, to help_list.
1531
1532 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1533
1534 * regcache.c (struct register_to_invalidate): New structure.
1535 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1536 functions.
1537 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1538
1539 2014-06-12 Yao Qi <yao@codesourcery.com>
1540
1541 * varobj.c (varobj_get_num_children): Call
1542 varobj_is_dynamic_p.
1543 (varobj_list_children): Likewise.
1544 (varobj_update): Likewise. Update comments.
1545
1546 2014-06-12 Yao Qi <yao@codesourcery.com>
1547
1548 * varobj.c (varobj_pretty_printed_p): Rename to ...
1549 (varobj_is_dynamic_p): ... this. New function.
1550 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1551 (varobj_is_dynamic_p): Declare.
1552 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1553 (mi_print_value_p, varobj_update_one): Likewise.
1554
1555 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1556 Yao Qi <yao@codesourcery.com>
1557
1558 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1559 (varobj_get_iterator): Wrap up code for pretty-printer by
1560 "#if HAVE_PYTHON" and "#endif".
1561 (update_dynamic_varobj_children): Likewise.
1562
1563 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1564 Yao Qi <yao@codesourcery.com>
1565
1566 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1567 gdb_python_initialized is false. Move some code from varobj.c.
1568 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1569 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1570 (struct varobj_item): Moved to varobj-iter.h".
1571 (varobj_clear_saved_item): New function.
1572 (update_dynamic_varobj_children): Move python-related code to
1573 py-varobj.c.
1574 (free_variable): Call varobj_clear_saved_item and
1575 varobj_iter_delete.
1576
1577 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1578 Yao Qi <yao@codesourcery.com>
1579
1580 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1581 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1582 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1583 (py-varobj.o): New rule.
1584 * python/py-varobj.c: New file.
1585 * python/python-internal.h (py_varobj_get_iterator): Declare.
1586 * varobj-iter.h: New file.
1587 * varobj.c: Include "varobj-iter.h"
1588 (struct varobj) <child_iter>: Change its type from "PyObject *"
1589 to "struct varobj_iter *".
1590 <saved_item>: Likewise.
1591 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1592 [HAVE_PYTHON] (varobj_get_iterator): New function.
1593 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1594 python-specific code to python/py-varobj.c.
1595 (install_visualizer): Call varobj_iter_delete instead of
1596 Py_XDECREF.
1597 * varobj.h (varobj_ensure_python_env): Declare.
1598
1599 2014-06-12 Yao Qi <yao@codesourcery.com>
1600
1601 * varobj.c (struct varobj_item): New structure.
1602 (create_child_with_value): Update declaration.
1603 (varobj_add_child): Replace arguments 'name' and 'value' with
1604 'item'. All callers updated.
1605 (install_dynamic_child): Likewise.
1606 (update_dynamic_varobj_children): Likewise.
1607 (varobj_add_child): Likewise.
1608 (create_child_with_value): Likewise.
1609
1610 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1611
1612 * NEWS: Create a new section for the next release branch.
1613 Rename the section of the current branch, now that it has
1614 been cut.
1615
1616 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1617
1618 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1619 * version.in: Bump version to 7.8.50.DATE-cvs.
1620
1621 2014-06-11 Pedro Alves <palves@redhat.com>
1622
1623 PR remote/17028
1624 * ser-mingw.c (net_windows_socket_check_pending): New function.
1625 (net_windows_select_thread): Ignore spurious wakeups. Use
1626 net_windows_socket_check_pending.
1627 (net_windows_wait_handle): Check for pending events with
1628 ioctlsocket, through net_windows_socket_check_pending, instead of
1629 checking the socket's event.
1630
1631 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1632
1633 * python/python-internal.h (gdb_PyObject_GetAttrString)
1634 (gdb_PyObject_HasAttrString): New inline function definitions.
1635 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1636 char * of the second argument to PyObject_GetAttrString.
1637
1638 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1639
1640 * serial.c (serial_write): Fix index of character to be printed
1641 in call to serial_logchar when serial debug traces are enabled.
1642
1643 2014-06-10 Joel Brobecker <brobecker@adacore.com>
1644
1645 * gdbtypes (resolve_dynamic_range): Add function description.
1646
1647 2014-06-09 Pedro Alves <palves@redhat.com>
1648
1649 * linux-nat.c (linux_child_follow_fork): Initialize status with
1650 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1651 inner block. Only pass the signal to PTRACE_DETACH if in pass
1652 state.
1653
1654 2014-06-09 Gary Benson <gbenson@redhat.com>
1655
1656 * common/signals.c (gdb_signal_from_host): Reorder to separate
1657 the always-available ANSI-standard signals from the signals that
1658 require checking.
1659 (do_gdb_signal_to_host): Likewise.
1660 * proc-events.c (signal_table): Likewise.
1661
1662 2014-06-08 Hui Zhu <hui@codesourcery.com>
1663
1664 * common/linux-ptrace.c (linux_disable_event_reporting): New
1665 function.
1666 * common/linux-ptrace.h (linux_disable_event_reporting): New
1667 declaration.
1668 * linux-nat.c (linux_child_follow_fork): Do a single step before
1669 detach.
1670
1671 2014-06-07 Keith Seitz <keiths@redhat.com>
1672
1673 Revert:
1674 PR c++/16253
1675 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1676 from symbol_matches_domain in symtab.c. All local callers
1677 of symbol_matches_domain updated.
1678 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1679 search STRUCT_DOMAIN.
1680 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1681 independently. standard_lookup will do that automatically.
1682 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1683 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1684 (cp_lookup_symbol_in_namespace): Likewise.
1685 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1686 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1687 may return a STRUCT_DOMAIN match.
1688 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1689 * cp-support.c: Include language.h.
1690 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1691 VAR_DOMAIN.
1692 * psymtab.c (match_partial_symbol): Compare the requested
1693 domain with the symbol's domain directly.
1694 (lookup_partial_symbol): Likewise.
1695 * symtab.c (lookup_symbol_in_language): Explain when/why
1696 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1697 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1698 appropriate languages.
1699 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1700 and moved to ada-lang.c
1701 (lookup_block_symbol): Explain that this function only returns
1702 symbol matching the requested DOMAIN.
1703 Compare the requested domain with the symbol's domain directly.
1704 (iterate_over_symbols): Compare the requested domain with the
1705 symbol's domain directly.
1706 * symtab.h (symbol_matches_domain): Remove.
1707
1708 2014-06-06 Doug Evans <xdje42@gmail.com>
1709
1710 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1711 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1712 (gdbscm_guile_version_is_at_least): Declare.
1713 (gdbscm_scm_string_to_int): Declare.
1714 * guile/guile.c (gdbscm_guile_major_version): New global.
1715 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1716 (guile_datadir): New static global.
1717 (gdbscm_guile_data_directory): New function.
1718 (initialize_scheme_side): Update.
1719 (misc_guile_functions): Add guile-data-directory.
1720 (initialize_gdb_module): Fetch guile version number.
1721 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1722 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1723 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1724 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1725 comments.
1726 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1727 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1728 * guile/scm-value.c (gdbscm_value_to_string): Only call
1729 scm_port_conversion_strategy if Guile version >= 2.0.6.
1730
1731 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1732
1733 * main.c (print_gdb_help): Add -q and --silent.
1734
1735 2014-06-06 Gary Benson <gbenson@redhat.com>
1736
1737 * common/signals.c: Remove preprocessor conditionals for
1738 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1739 SIGSEGV and SIGTERM.
1740 * proc-events.c: Likewise.
1741
1742 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1743
1744 * symfile.c (symfile_free_objfile): Remove restriction to
1745 OBJF_USERLOADED.
1746 * symfile-mem.c (symbol_file_add_from_memory): Call
1747 add_target_sections_of_objfile.
1748
1749 2014-06-05 Ludovic Courtès <ludo@gnu.org>
1750
1751 * guile/scm-value.c (gdbscm_history_append_x): Use
1752 'vlscm_get_value_smob_arg_unsafe' instead of
1753 'vlscm_scm_to_value'.
1754
1755 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1756
1757 PR mi/15806
1758 * utils.c (printchar): Don't escape at all if quoter is NUL.
1759 Update function documentation to clarify effect of parameter
1760 QUOTER.
1761 * remote.c (escape_buffer): Pass '\\' as the quoter to
1762 fputstrn_unfiltered.
1763 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1764 generate the output.
1765 (mi_solib_unloaded): Same.
1766
1767 2014-06-05 Joel Brobecker <brobecker@adacore.com>
1768
1769 * development.sh: Delete.
1770 * Makefile.in (config.status): Adjust dependency on development.sh.
1771 * configure.ac: Adjust development.sh source call.
1772 * configure: Regenerate.
1773
1774 2014-06-04 Doug Evans <xdje42@gmail.com>
1775
1776 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1777 is_scheme_bkpt, spec.
1778 (bpscm_make_breakpoint_smob): Initialize new members.
1779 (gdbscm_create_breakpoint_x): Split into two ...
1780 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1781 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1782 (scheme_function breakpoint_functions): Update.
1783 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1784 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1785 register-breakpoint!.
1786
1787 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
1788
1789 PR server/17023
1790 * mem-break.c (z_type_supported): Return zero if
1791 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1792
1793 2014-06-04 Tom Tromey <tromey@redhat.com>
1794
1795 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1796 value_from_contents_and_address_unresolved.
1797 (ada_template_to_fixed_record_type_1): Likewise.
1798 (ada_which_variant_applies): Likewise.
1799 * value.h (value_from_contents_and_address_unresolved): Declare.
1800 * value.c (value_from_contents_and_address_unresolved): New
1801 function.
1802 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1803 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1804 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1805
1806 2014-06-04 Tom Tromey <tromey@redhat.com>
1807
1808 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1809
1810 2014-06-04 Tom Tromey <tromey@redhat.com>
1811
1812 * procfs.c (procfs_attach): Make "args" const.
1813 * windows-nat.c (windows_attach): Make "args" const.
1814 * nto-procfs.c (procfs_attach): Make "args" const.
1815 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1816 * go32-nat.c (go32_attach): Make "args" const.
1817 * gnu-nat.c (gnu_attach): Make "args" const.
1818 * darwin-nat.c (darwin_attach): Make "args" const.
1819 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1820 * linux-nat.c (linux_nat_attach): Make "args" const.
1821 * remote.c (extended_remote_attach_1, extended_remote_attach):
1822 Make "args" const.
1823 * target.h (struct target_ops) <to_attach>: Make "args" const.
1824 (find_default_attach): Likewise.
1825 * utils.c (parse_pid_to_attach): Make "args" const.
1826 * utils.h (parse_pid_to_attach): Update.
1827
1828 2014-06-04 Tom Tromey <tromey@redhat.com>
1829
1830 * target-delegates.c: Rebuild.
1831 * target.c (default_thread_address_space): New function.
1832 (target_thread_address_space): Simplify.
1833 * target.h (struct target_ops) <to_thread_address_space>: Add
1834 TARGET_DEFAULT_FUNC.
1835
1836 2014-06-04 Doug Evans <xdje42@gmail.com>
1837
1838 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1839
1840 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1841
1842 * record-btrace.c: Include event-loop.h and inf-loop.h.
1843 (record_btrace_resume_exec_dir)
1844 (record_btrace_async_inferior_event_handler)
1845 (record_btrace_handle_async_inferior_event): New.
1846 (record_btrace_open): Create async event handler.
1847 (record_btrace_close): Delete async event handler.
1848 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1849 Mark async event handler.
1850 (record_btrace_execution_direction): New.
1851 (init_record_btrace_ops): Initialize to_execution_direction.
1852
1853 2014-06-03 Doug Evans <xdje42@gmail.com>
1854
1855 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1856 (gdbscm_make_parameter): Ditto.
1857
1858 2014-06-03 Doug Evans <dje@google.com>
1859
1860 * exec.c (exec_close_1): Call clear_section_table instead of
1861 resize_section_table.
1862 (clear_section_table): New function.
1863 (resize_section_table): Make static. Rename arg num_added to
1864 adjustment.
1865 * exec.h (clear_section_table): Declare.
1866 (resize_section_table): Delete.
1867 * progspace.c (release_program_space): Call clear_section_table
1868 instead of resize_section_table.
1869
1870 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1871
1872 * NEWS (Python Scripting): Add entry about the new xmethods
1873 feature.
1874
1875 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1876
1877 * python/py-xmethods.c: New file.
1878 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1879 (objfpy_dealloc): XDECREF on the new xmethods field.
1880 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1881 field.
1882 (objfpy_get_xmethods): New function.
1883 (objfile_getset): New entry 'xmethods'.
1884 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1885 (pspy_dealloc): XDECREF on the new xmethods field.
1886 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1887 field.
1888 (pspy_get_xmethods): New function.
1889 (pspace_getset): New entry 'xmethods'.
1890 * python/python-internal.h: Add declarations for new functions.
1891 * python/python.c (_initialize_python): Invoke
1892 gdbpy_initialize_xmethods.
1893 * python/lib/gdb/__init__.py (xmethods): New
1894 attribute.
1895 * python/lib/gdb/xmethod.py: New file.
1896 * python/lib/gdb/command/xmethods.py: New file.
1897
1898 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1899
1900 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1901 best match method returned by find_overload_match is an xmethod.
1902 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1903 the best matching operator returned by find_overload_match is an
1904 xmethod.
1905 * valops.c: #include "extension.h".
1906 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1907 Return void. The list of matching source methods is returned in
1908 "fn_list" and a vector of matching debug method workers is
1909 returned in "xm_worker_vec". Update all callers.
1910 (value_find_oload_method_list): Likewise.
1911 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1912 non-NULL, then the index of the best matching method in this
1913 vector is returned. Update all callers.
1914 (find_overload_match): Include xmethods while performing overload
1915 resolution.
1916
1917 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1918
1919 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1920 * extension-priv.h (struct extension_language_ops): Add the
1921 xmethod interface.
1922 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1923 get_matching_xmethod_workers, get_xmethod_argtypes,
1924 invoke_xmethod, free_xmethod_worker,
1925 free_xmethod_worker_vec): New functions.
1926 * extension.h: #include "common/vec.h".
1927 New function declarations.
1928 (struct xmethod_worker): New struct.
1929 (VEC (xmethod_worker_ptr)): New vector type.
1930 (xmethod_worker_ptr): New typedef.
1931 (xmethod_worker_vec): Likewise.
1932 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1933 builtin_type.
1934 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1935 (struct builtin_type): New field "xmethod".
1936 * valarith.c (value_ptradd): Assert that the value argument is not
1937 lval_xcallable.
1938 * valops.c (value_must_coerce_to_target): Return 0 for
1939 lval_xcallable values.
1940 * value.c (struct value): New field XM_WORKER in the field
1941 LOCATION.
1942 (value_address, value_raw_address): Return 0 for lval_xcallable
1943 values.
1944 (set_value_address): Assert that the value is not an
1945 lval_xcallable.
1946 (value_free): Free the associated xmethod worker when freeing
1947 lval_xcallable values.
1948 (set_value_component_location): Assert that the WHOLE value is not
1949 lval_xcallable.
1950 (value_of_xmethod, call_xmethod): New functions.
1951 * value.h: Declare "struct xmethod_worker".
1952 Declare new functions value_of_xmethod, call_xmethod.
1953
1954 2014-06-03 Joel Brobecker <brobecker@adacore.com>
1955 Pedro Alves <palves@redhat.com>
1956
1957 PR breakpoints/17000
1958 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1959 New function, extracted from software_breakpoint_inserted_here_p.
1960 (software_breakpoint_inserted_here_p): Replace factored out code
1961 by call to find_non_raw_software_breakpoint_inserted_here.
1962 (bp_target_info_copy_insertion_state): New function.
1963 (bkpt_insert_location): Handle the case of a single-step
1964 breakpoint already inserted at the same address.
1965 (bkpt_remove_location): Handle the case of a single-step
1966 breakpoint still inserted at the same address.
1967 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1968 breakpoint already inserted at the same address.
1969 (deprecated_remove_raw_breakpoint): Handle the case of a
1970 non-raw breakpoint still inserted at the same address.
1971 (find_single_step_breakpoint): New function, extracted from
1972 single_step_breakpoint_inserted_here_p.
1973 (find_single_step_breakpoint): New function,
1974 factored out from single_step_breakpoint_inserted_here_p.
1975 (single_step_breakpoint_inserted_here_p): Reimplement.
1976
1977 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1978
1979 Pushed by Joel Brobecker <brobecker@adacore.com>
1980 * source.c (show_substitute_path_command): Fix display of matching
1981 substitution rules.
1982
1983 2014-06-03 Gary Benson <gbenson@redhat.com>
1984
1985 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1986
1987 2014-06-02 Doug Evans <xdje42@gmail.com>
1988
1989 Add parameter support for Guile.
1990 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1991 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1992 (scm-param.o): New rule.
1993 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1994 (gdbscm_misc_error): Declare.
1995 (gdbscm_canonicalize_command_name): Declare.
1996 (gdbscm_scm_to_host_string): Declare.
1997 (gdbscm_scm_from_host_string): Declare.
1998 (gdbscm_initialize_parameters): Declare.
1999 * guile/guile.c (initialize_gdb_module): Call
2000 gdbscm_initialize_parameters.
2001 * guile/lib/gdb.scm: Export parameter symbols.
2002 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
2003 cmdscm_canonicalize_name and made public. All callers updated.
2004 * guile/scm-exception.c (gdbscm_misc_error): New function.
2005 * guile/scm-param.c: New file.
2006 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
2007 (gdbscm_scm_to_host_string): New function.
2008 (gdbscm_scm_from_host_string): New function.
2009 * scm-utils.c (gdbscm_gc_dup_argv): New function.
2010
2011 2014-06-02 Doug Evans <xdje42@gmail.com>
2012
2013 Add command support for Guile.
2014 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
2015 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
2016 (scm-cmd.o): New rule.
2017 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
2018 (gdbscm_user_error_p): Declare.
2019 (gdbscm_parse_command_name): Declare.
2020 (gdbscm_valid_command_class_p): Declare.
2021 (gdbscm_initialize_commands): Declare.
2022 * guile/guile.c (initialize_gdb_module): Call
2023 gdbscm_initialize_commands.
2024 * guile/lib/gdb.scm: Export command symbols.
2025 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
2026 (throw-user-error): New function.
2027 * guile/scm-cmd.c: New file.
2028 * guile/scm-exception.c (user_error_symbol): New static global.
2029 (gdbscm_user_error_p): New function.
2030 (gdbscm_initialize_exceptions): Set user_error_symbol.
2031 * scm-utils.c (gdbscm_gc_xstrdup): New function.
2032
2033 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
2034
2035 * top.c (command_loop): Handle comments here...
2036 (command_line_input): ... not here.
2037
2038 2014-06-02 Doug Evans <xdje42@gmail.com>
2039
2040 Add progspace support for Guile.
2041 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2042 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2043 (scm-progspace.o): New rule.
2044 * guile/guile-internal.h (pspace_smob): New typedef.
2045 (psscm_pspace_smob_pretty_printers): Declare.
2046 (psscm_pspace_smob_from_pspace): Declare.
2047 (psscm_scm_from_pspace): Declare.
2048 * guile/guile.c (initialize_gdb_module): Call
2049 gdbscm_initialize_pspaces.
2050 * guile/lib/gdb.scm: Export progspace symbols.
2051 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2052 support.
2053 (append-pretty-printer!): Ditto.
2054 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2055 Implement.
2056 * guile/scm-progspace.c: New file.
2057
2058 2014-06-03 Alan Modra <amodra@gmail.com>
2059
2060 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2061 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2062
2063 2014-06-02 Doug Evans <dje@google.com>
2064
2065 Add support for skeletonless type units.
2066 * dwarf2read.c (struct dwarf2_per_objfile): New member
2067 n_allocated_type_units.
2068 (struct dwarf2_per_objfile) <tu_stats>: New member
2069 nr_all_type_units_reallocs.
2070 (create_signatured_type_table_from_index): Initialize
2071 n_allocated_type_units
2072 (create_all_type_units): Ditto.
2073 (add_type_unit): Move up in file. New arg slot.
2074 All callers updated. Increase space for all_type_units more
2075 efficiently.
2076 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2077 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2078 (lookup_dwp_signatured_type): Ditto.
2079 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2080 All callers updated.
2081 (build_type_psymtabs_1): Leave type_unit_groups as
2082 NULL if no TUs present.
2083 (print_tu_stats): New function.
2084 (process_skeletonless_type_unit): New function.
2085 (process_dwo_file_for_skeletonless_type_units): New
2086 function.
2087 (process_skeletonless_type_units): New function.
2088 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2089 Call print tu_stats if debugging enabled.
2090
2091 2014-06-02 Pedro Alves <palves@redhat.com>
2092
2093 * breakpoint.c (build_target_command_list): Don't build a command
2094 list if we have any duplicate location that isn't a dprintf.
2095
2096 2014-06-02 Pedro Alves <palves@redhat.com>
2097
2098 * breakpoint.c (dprintf_breakpoint_hit): New function.
2099 (initialize_breakpoint_ops): Install it as dprintf's
2100 breakpoint_hit method.
2101
2102 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2103
2104 * source.c (substitute_path_rule_matches): Simplify using
2105 filename_ncmp instead of FILENAME_CMP.
2106
2107 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2108
2109 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2110
2111 2014-06-01 Ludovic Courtès <ludo@gnu.org>
2112
2113 * configure.ac: When Guile is available, check for the
2114 availability of 'scm_new_smob'.
2115 * configure, config.h.in: Regenerate.
2116 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2117 function.
2118
2119 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2120
2121 * frame.c (struct frame_info): Add stop_string field.
2122 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2123 (get_prev_frame_always): Old content moved into
2124 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2125 TRY_CATCH, handle MEMORY_ERROR exceptions.
2126 (frame_stop_reason_string): New function definition.
2127 * frame.h (unwind_stop_reason_to_string): Extend comment to
2128 mention frame_stop_reason_string.
2129 (frame_stop_reason_string): New function declaration.
2130 * stack.c (frame_info): Switch to frame_stop_reason_string.
2131 (backtrace_command_1): Switch to frame_stop_reason_string.
2132 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2133 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2134 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2135
2136 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2137
2138 * frame.c (frame_stop_reason_string): Rename to ...
2139 (unwind_stop_reason_to_string): this.
2140 * frame.h (frame_stop_reason_string): Rename to ...
2141 (unwind_stop_reason_to_string): this.
2142 * stack.c (frame_info): Update call to frame_stop_reason_string.
2143 (backtrace_command_1): Likewise.
2144 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2145 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2146
2147 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2148
2149 * frame.c (remove_prev_frame): New function.
2150 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2151 remove_prev_frame.
2152
2153 2014-05-29 Pedro Alves <palves@redhat.com>
2154
2155 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2156 and make it const. When a single-step decays to a continue,
2157 clear 'step', not 'hw_step'. Pass whether the caller wanted
2158 to step to user_visible_resume_ptid, not what we ask the
2159 target to do.
2160
2161 2014-05-29 Pedro Alves <palves@redhat.com>
2162
2163 * infrun.c (process_event_stop_test, handle_step_into_function)
2164 (handle_step_into_function_backward): Adjust.
2165 Don't set the even thread's stop_step and call stop_waiting before
2166 calling end_stepping_range. Instead do that ...
2167 (end_stepping_range): ... here. Take an ecs pointer parameter.
2168
2169 2014-05-29 Pedro Alves <palves@redhat.com>
2170
2171 * infrun.c (stop_stepping): Rename to ...
2172 (stop_waiting): ... this.
2173 (proceed): Update comment.
2174 (process_event_stop_test, handle_inferior_event)
2175 (handle_signal_stop, handle_step_into_function)
2176 (handle_step_into_function_backward): Update.
2177
2178 2014-05-29 Pedro Alves <palves@redhat.com>
2179
2180 * infcall.c (run_inferior_call): Don't check whether the current
2181 thread is running after the proceed call.
2182
2183 2014-05-29 Pedro Alves <palves@redhat.com>
2184 Tom Tromey <tromey@redhat.com>
2185
2186 * NEWS: Mention "maint set target-async", "set mi-async", and that
2187 background execution commands are now always available.
2188 * target.h (target_async_permitted): Update comment.
2189 * target.c (target_async_permitted, target_async_permitted_1):
2190 Default to 1.
2191 (set_target_async_command): Rename to ...
2192 (maint_set_target_async_command): ... this.
2193 (show_target_async_command): Rename to ...
2194 (maint_show_target_async_command): ... this.
2195 (_initialize_target): Adjust.
2196 * infcmd.c (prepare_execution_command): Make extern.
2197 * inferior.h (prepare_execution_command): Declare.
2198 * infrun.c (set_observer_mode): Leave target async alone.
2199 * mi/mi-interp.c (mi_interpreter_init): Install
2200 mi_on_sync_execution_done as sync_execution_done observer.
2201 (mi_on_sync_execution_done): New function.
2202 (mi_execute_command_input_handler): Don't print the prompt if we
2203 just started a synchronous command with an async target.
2204 (mi_on_resume): Check sync_execution before printing prompt.
2205 * mi/mi-main.h (mi_async_p): Declare.
2206 * mi/mi-main.c: Include gdbcmd.h.
2207 (mi_async_p): New function.
2208 (mi_async, mi_async_1): New globals.
2209 (set_mi_async_command, show_mi_async_command, mi_async): New
2210 functions.
2211 (exec_continue): Call prepare_execution_command.
2212 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2213 (mi_execute_async_cli_command): Use mi_async_p.
2214 (_initialize_mi_main): Install "set mi-async". Make
2215 "target-async" a deprecated alias.
2216
2217 2014-05-29 Pedro Alves <palves@redhat.com>
2218
2219 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2220 (_initialize_cli_interp): Adjust.
2221 * event-loop.c: Include "observer.h".
2222 (start_event_loop): Notify 'command_error' observers instead of
2223 calling display_gdb_prompt. Remove FIXME comment.
2224 * event-top.c (display_gdb_prompt): Remove call into the
2225 interpreters.
2226 * inf-loop.c: Include "observer.h".
2227 (inferior_event_handler): Notify 'command_error' observers instead
2228 of calling display_gdb_prompt.
2229 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2230 observers instead of calling display_gdb_prompt.
2231 * interps.c (interp_set): Don't call display_gdb_prompt.
2232 (current_interp_display_prompt_p): Delete.
2233 * interps.h (interp_prompt_p): Delete declaration.
2234 (interp_prompt_p_ftype): Delete.
2235 (struct interp_procs) <prompt_proc_p>: Delete field.
2236 (current_interp_display_prompt_p): Delete declaration.
2237 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2238 (_initialize_mi_interp): Adjust.
2239 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2240 'command_error' observers.
2241 (tui_on_sync_execution_done, tui_on_command_error): New
2242 functions.
2243 (tui_display_prompt_p): Delete.
2244 (_initialize_tui_interp): Adjust.
2245
2246 2014-05-29 Pedro Alves <palves@redhat.com>
2247
2248 PR gdb/13860
2249 * cli/cli-interp.c: Include infrun.h and observer.h.
2250 (cli_uiout, cli_interp): New globals.
2251 (cli_on_signal_received, cli_on_end_stepping_range)
2252 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2253 functions.
2254 (cli_interpreter_init): Install them as 'end_stepping_range',
2255 'signal_received' 'signal_exited', 'exited' and 'no_history'
2256 observers.
2257 (_initialize_cli_interp): Remove cli_interp local.
2258 * infrun.c (handle_inferior_event): Call the several stop reason
2259 observers instead of printing the stop reason directly.
2260 (end_stepping_range): New function.
2261 (print_end_stepping_range_reason, print_signal_exited_reason)
2262 (print_exited_reason, print_signal_received_reason)
2263 (print_no_history_reason): Make static, and add an uiout
2264 parameter. Print to that instead of to CURRENT_UIOUT.
2265 * infrun.h (print_end_stepping_range_reason)
2266 (print_signal_exited_reason, print_exited_reason)
2267 (print_signal_received_reason print_no_history_reason): New
2268 declarations.
2269 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2270 'mi_uiout'.
2271 <cli_uiout>: New field.
2272 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2273 uiout for CLI output. Install 'signal_received',
2274 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2275 observers.
2276 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2277 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2278 (mi_on_no_history): New functions.
2279 (ui_out_free_cleanup): Delete function.
2280 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2281 instead use the one already stored in the MI interpreter data.
2282 (mi_ui_out): Adjust.
2283 * tui/tui-interp.c: Include infrun.h and observer.h.
2284 (tui_interp): New global.
2285 (tui_on_signal_received, tui_on_end_stepping_range)
2286 (tui_on_signal_exited, tui_on_exited)
2287 (tui_on_no_history): New functions.
2288 (tui_init): Install them as 'end_stepping_range',
2289 'signal_received' 'signal_exited', 'exited' and 'no_history'
2290 observers.
2291 (_initialize_tui_interp): Delete tui_interp local.
2292
2293 2014-05-29 Pedro Alves <palves@redhat.com>
2294
2295 PR gdb/15713
2296 * linux-nat.c (linux_nat_resume_callback): Rename the second
2297 parameter to 'except'. Skip LP if it points to EXCEPT.
2298 (linux_nat_resume): Don't mark the event lwp as not stopped
2299 before resuming sibling lwps. Instead ask
2300 linux_nat_resume_callback to skip the event lwp. Mark it as not
2301 stopped after actually resuming it.
2302 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2303 resuming it.
2304 (wait_lwp): Mark the lwp as stopped here.
2305 (stop_wait_callback): Mark the lwp as not stopped right after
2306 resuming it. Don't mark lwps as stopped here.
2307 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2308 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2309
2310 2014-05-29 Pedro Alves <palves@redhat.com>
2311
2312 PR PR15693
2313 * infrun.c (resume): Determine how much to resume depending on
2314 whether the caller wanted a step, not whether we can hardware step
2315 the target. Mark all threads that we intend to run as running,
2316 unless we're calling an inferior function.
2317 (normal_stop): If the thread is running an infcall, don't finish
2318 thread state.
2319 * target.c (target_resume): Don't mark threads as running here.
2320
2321 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2322
2323 * serial.c (_initialize_serial): Remove support for
2324 the "set remotebaud" and "show remotebaud" commands.
2325 * NEWS: Add entry documenting the removal of that command.
2326
2327 2014-05-28 Yao Qi <yao@codesourcery.com>
2328
2329 * charset.c: Fix typo in comments.
2330
2331 2014-05-27 Gary Benson <gbenson@redhat.com>
2332
2333 * utils.c (internal_vproblem): Prompt for a bug report.
2334
2335 2014-05-26 Andy Wingo <wingo@igalia.com>
2336
2337 * guile/scm-arch.c (arscm_mark_arch_smob):
2338 * guile/scm-block.c (bkscm_mark_block_smob)
2339 (bkscm_mark_block_syms_progress_smob):
2340 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2341 * guile/scm-exception.c (exscm_mark_exception_smob):
2342 * guile/scm-frame.c (frscm_mark_frame_smob):
2343 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2344 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2345 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2346 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2347 (ppscm_mark_pretty_printer_worker_smob):
2348 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2349 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2350 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2351 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2352 mark functions.
2353 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2354 function.
2355
2356 2014-05-26 Andy Wingo <wingo@igalia.com>
2357 Doug Evans <xdje42@gmail.com>
2358
2359 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2360 empty_base_class. All uses updated.
2361 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2362 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2363 Adapt all callers.
2364 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2365 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2366 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2367 (gdbscm_gsmob_has_property_p, add_property_name)
2368 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2369 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2370 (gdb-object-has-property?, gdb-object-properties): Remove.
2371 (gdb-object-kind): Renamed from gsmob-kind.
2372
2373 2014-05-26 Andy Wingo <wingo@igalia.com>
2374
2375 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2376 * configure: Regenerate.
2377
2378 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2379
2380 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2381
2382 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2383
2384 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2385 (replay_memory_access_read_only, replay_memory_access_read_write)
2386 (replay_memory_access_types, replay_memory_access)
2387 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2388 (cmd_set_record_btrace, cmd_show_record_btrace)
2389 (cmd_show_replay_memory_access): New.
2390 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2391 (record_btrace_remove_breakpoint): Replace
2392 record_btrace_allow_memory_access with replay_memory_access.
2393 (_initialize_record_btrace): Add commands.
2394 * NEWS: Announce it.
2395
2396 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2397
2398 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2399
2400 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2401
2402 * MAINTAINERS (Write After Approval): Move self back from
2403 paper trail.
2404
2405 2014-05-22 Pedro Alves <palves@redhat.com>
2406
2407 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2408 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2409 (disable_randomization, enum exec_direction_kind)
2410 (execution_direction, stop_registers, start_remote)
2411 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2412 (wait_for_inferior, normal_stop, get_last_target_status)
2413 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2414 (insert_step_resume_breakpoint_at_sal)
2415 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2416 (set_step_info, print_stop_event, signal_stop_state)
2417 (signal_print_state, signal_pass_state, signal_stop_update)
2418 (signal_print_update, signal_pass_update)
2419 (update_signals_program_target, clear_exit_convenience_vars)
2420 (displaced_step_dump_bytes, update_observer_mode)
2421 (signal_catch_update, gdb_signal_from_command): Move
2422 declarations ...
2423 * infrun.h: ... to this new file.
2424 * amd64-tdep.c: Include infrun.h.
2425 * annotate.c: Include infrun.h.
2426 * arch-utils.c: Include infrun.h.
2427 * arm-linux-tdep.c: Include infrun.h.
2428 * arm-tdep.c: Include infrun.h.
2429 * break-catch-sig.c: Include infrun.h.
2430 * breakpoint.c: Include infrun.h.
2431 * common/agent.c: Include infrun.h instead of inferior.h.
2432 * corelow.c: Include infrun.h.
2433 * event-top.c: Include infrun.h.
2434 * go32-nat.c: Include infrun.h.
2435 * i386-tdep.c: Include infrun.h.
2436 * inf-loop.c: Include infrun.h.
2437 * infcall.c: Include infrun.h.
2438 * infcmd.c: Include infrun.h.
2439 * infrun.c: Include infrun.h.
2440 * linux-fork.c: Include infrun.h.
2441 * linux-nat.c: Include infrun.h.
2442 * linux-thread-db.c: Include infrun.h.
2443 * monitor.c: Include infrun.h.
2444 * nto-tdep.c: Include infrun.h.
2445 * procfs.c: Include infrun.h.
2446 * record-btrace.c: Include infrun.h.
2447 * record-full.c: Include infrun.h.
2448 * remote-m32r-sdi.c: Include infrun.h.
2449 * remote-mips.c: Include infrun.h.
2450 * remote-notif.c: Include infrun.h.
2451 * remote-sim.c: Include infrun.h.
2452 * remote.c: Include infrun.h.
2453 * reverse.c: Include infrun.h.
2454 * rs6000-tdep.c: Include infrun.h.
2455 * s390-linux-tdep.c: Include infrun.h.
2456 * solib-irix.c: Include infrun.h.
2457 * solib-osf.c: Include infrun.h.
2458 * solib-svr4.c: Include infrun.h.
2459 * target.c: Include infrun.h.
2460 * top.c: Include infrun.h.
2461 * windows-nat.c: Include infrun.h.
2462 * mi/mi-interp.c: Include infrun.h.
2463 * mi/mi-main.c: Include infrun.h.
2464 * python/py-threadevent.c: Include infrun.h.
2465
2466 2014-05-22 Pedro Alves <palves@redhat.com>
2467
2468 * infrun.c (handle_inferior_event): Store the exit code for
2469 --return-child-result here, instead of ...
2470 (print_exited_reason): ... here.
2471
2472 2014-05-21 Pedro Alves <palves@redhat.com>
2473
2474 PR gdb/13860
2475 * gdbthread.h (struct thread_control_state): New field
2476 `command_interp'.
2477 * infrun.c (follow_fork): Copy the new thread control field to the
2478 child fork thread.
2479 (clear_proceed_status_thread): Clear the new thread control field.
2480 (proceed): Set the new thread control field.
2481 * interps.h (command_interp): Declare.
2482 * interps.c (command_interpreter): New global.
2483 (command_interp): New function.
2484 (interp_exec): Set `command_interpreter' while here.
2485 * cli-out.c (cli_uiout_dtor): New function.
2486 (cli_ui_out_impl): Install it.
2487 * mi/mi-interp.c: Include cli-out.h.
2488 (mi_cmd_interpreter_exec): Add comment.
2489 (restore_current_uiout_cleanup): New function.
2490 (ui_out_free_cleanup): New function.
2491 (mi_on_normal_stop): If finishing an execution command started by
2492 a CLI command, or any kind of breakpoint-like event triggered,
2493 print the stop event to the output (CLI) stream.
2494 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2495
2496 2014-05-21 Pedro Alves <palves@redhat.com>
2497
2498 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2499 current source line having changed.
2500 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2501 * infrun.c (normal_stop): Adjust call to
2502 set_current_sal_from_frame.
2503 * source.c (clear_lines_listed_range): New function.
2504 (set_current_source_symtab_and_line, identify_source_line): Clear
2505 the lines listed range.
2506 (line_info): Handle the first "info line" after the current source
2507 line having changed.
2508 * stack.c (print_stack_frame): Remove center handling.
2509 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2510 center sal.line.
2511
2512 2014-05-21 Pedro Alves <palves@redhat.com>
2513
2514 * inf-child.c (inf_child_mourn_inferior): New function.
2515 * inf-child.h (inf_child_mourn_inferior): New declaration.
2516 * darwin-nat.c (darwin_mourn_inferior): Use
2517 inf_child_mourn_inferior.
2518 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2519 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2520 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2521 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2522 * windows-nat.c (windows_mourn_inferior): Likewise.
2523
2524 2014-05-21 Doug Evans <xdje42@gmail.com>
2525
2526 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2527
2528 2014-05-21 Doug Evans <xdje42@gmail.com>
2529
2530 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2531 (gdbscm_out_of_range_error): Ditto.
2532 (gdbscm_memory_error): Ditto.
2533 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2534 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2535 (gdbscm_out_of_range_error): Update.
2536 (gdbscm_memory_error): Update.
2537 (gdbscm_scm_to_target_string_unsafe): Delete.
2538
2539 2014-05-21 Pedro Alves <palves@redhat.com>
2540
2541 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2542 globals.
2543 (inf_child_open_target): New function.
2544 (inf_child_open): Use inf_child_open_target to push the target
2545 instead of erroring out.
2546 (inf_child_disconnect, inf_child_close)
2547 (inf_child_maybe_unpush_target): New functions.
2548 (inf_child_target): Install inf_child_disconnect and
2549 inf_child_close. Store a pointer to the returned object.
2550 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2551 declarations.
2552 * target.c (auto_connect_native_target): New global.
2553 (show_default_run_target): New function.
2554 (find_default_run_target): Return NULL if automatically connecting
2555 to the native target is disabled.
2556 (_initialize_target): Install set/show auto-connect-native-target.
2557 * NEWS: Mention "set auto-connect-native-target", and "target
2558 native".
2559 * linux-nat.c (super_close): New global.
2560 (linux_nat_close): Call super_close.
2561 (linux_nat_add_target): Store a pointer to the base class's
2562 to_close method.
2563 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2564 inf_child_maybe_unpush.
2565 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2566 already pushed.
2567 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2568 the inferior. Use inf_child_maybe_unpush_target.
2569 (inf_ttrace_attach): Don't push the target if it is already
2570 pushed.
2571 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2572 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2573 after mourning the inferior. Use inf_child_maybe_unpush_target.
2574 (darwin_attach_pid): Don't push the target if it is already
2575 pushed.
2576 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2577 mourning the inferior. Use inf_child_maybe_unpush_target.
2578 (gnu_detach): Use inf_child_maybe_unpush_target.
2579 * go32-nat.c (go32_create_inferior): Don't push the target if it
2580 is already pushed.
2581 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2582 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2583 (procfs_open): Rename to ...
2584 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2585 comments. Can target_preopen before changing node. Call
2586 inf_child_open_target to push the target explicitly.
2587 (procfs_attach): Don't push the target if it is already pushed.
2588 (procfs_detach): Use inf_child_maybe_unpush_target.
2589 (procfs_create_inferior): Don't push the target if it is already
2590 pushed.
2591 (nto_native_ops): New global.
2592 (procfs_open): Reimplement.
2593 (procfs_native_open): New function.
2594 (init_procfs_targets): Install procfs_native_open as to_open of
2595 "target native". Store a pointer to the "native" target in
2596 nto_native_ops.
2597 * procfs.c (procfs_attach): Don't push the target if it is already
2598 pushed.
2599 (procfs_detach): Use inf_child_maybe_unpush_target.
2600 (procfs_mourn_inferior): Only unpush the target after mourning the
2601 inferior. Use inf_child_maybe_unpush_target.
2602 (procfs_init_inferior): Don't push the target if it is already
2603 pushed.
2604 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2605 if it is already pushed.
2606
2607 2014-05-21 Pedro Alves <palves@redhat.com>
2608
2609 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2610 and "procfs" targets are now called "native" instead.
2611
2612 2014-05-21 Pedro Alves <palves@redhat.com>
2613
2614 * go32-nat.c (go32_open): Delete.
2615 (go32_target): Don't override the to_open method.
2616
2617 2014-05-21 Pedro Alves <palves@redhat.com>
2618
2619 * nto-procfs.c (procfs_can_run): New function.
2620 (nto_procfs_ops): New global.
2621 (init_procfs_targets): New, based on procfs_target. Install
2622 "target native" in addition to "target procfs".
2623 (_initialize_procfs): Call init_procfs_targets instead of adding
2624 the target here.
2625
2626 2014-05-21 Pedro Alves <palves@redhat.com>
2627
2628 * windows-nat.c (windows_target): Don't override to_shortname,
2629 to_longname or to_doc.
2630
2631 2014-05-21 Pedro Alves <palves@redhat.com>
2632
2633 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2634 to_doc.
2635
2636 2014-05-21 Pedro Alves <palves@redhat.com>
2637
2638 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2639 to_shortname, to_longname or to_doc.
2640
2641 2014-05-21 Pedro Alves <palves@redhat.com>
2642
2643 * go32-nat.c (go32_target): Don't override to_shortname,
2644 to_longname or to_doc.
2645
2646 2014-05-21 Pedro Alves <palves@redhat.com>
2647
2648 * inf-child.c (inf_child_open): Remove mention of "child".
2649 (inf_child_target): Rename target to "native" instead of "child".
2650
2651 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2652
2653 * Makefile.in (SFILES): Delete "regset.c".
2654 (COMMON_OBS): Delete "regset.o".
2655 * regset.c: Remove.
2656 * regset.h (regset_alloc): Delete prototype.
2657
2658 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2659
2660 * sparc-linux-tdep.c (sparc32_linux_gregset)
2661 (sparc32_linux_fpregset): New static regset structures.
2662 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2663 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2664 'fpregset' fields.
2665 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2666 (sparc64_linux_fpregset): New static regset structures.
2667 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2668 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2669 New static regset structures.
2670 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2671 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2672 New static regset structures.
2673 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2674 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2675 New static regset structures.
2676 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2677 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2678 New static regset structures.
2679 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2680
2681 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2682
2683 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2684 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2685 register maps ("regmaps") from "*regset" to "*regmap". Do this
2686 for all regmap types and variables.
2687 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2688 (sparc32_linux_supply_core_gregset)
2689 (sparc32_linux_collect_core_gregset)
2690 (sparc32_linux_supply_core_fpregset)
2691 (sparc32_linux_collect_core_fpregset): Likewise.
2692 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2693 (sparc_gregmap, sparc_fpregmap): ... these.
2694 (sparc_supply_gregset, sparc_collect_gregset)
2695 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2696 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2697 (_initialize_sparc_nat): Rename regmaps.
2698 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2699 (sparc_gregmap, sparc_fpregmap): ... these.
2700 (sparc_supply_gregset, sparc_collect_gregset)
2701 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2702 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2703 Rename macros to...
2704 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2705 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2706 Likewise.
2707 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2708 Rename to...
2709 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2710 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2711 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2712 regmaps.
2713 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2714 (sparc32_bsd_fpregset): Rename to...
2715 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2716 (sparc32_bsd_fpregmap): ... these.
2717 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2718 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2719 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2720 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2721 (struct sparc_gregmap, struct sparc_fpregmap)
2722 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2723 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2724 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2725 (sparc32_supply_regset, sparc32_collect_gregset)
2726 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2727 prototypes.
2728 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2729 (sparc64_linux_ptrace_gregmap): ... this.
2730 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2731 (_initialize_sparc64_linux_nat): Rename regmaps.
2732 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2733 (sparc64_linux_core_gregmap): ... this.
2734 (sparc64_linux_supply_core_gregset)
2735 (sparc64_linux_collect_core_gregset)
2736 (sparc64_linux_supply_core_fpregset)
2737 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2738 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2739 (sparc64_sol2_fpregset): Rename to...
2740 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2741 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2742 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2743 regmaps.
2744 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2745 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2746 (sparc64_bsd_fpregset): Rename to...
2747 (struct sparc_gregmap, sparc64_sol2_gregmap)
2748 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2749 (sparc64_bsd_fpregmap): ... these.
2750 (sparc64_supply_gregset, sparc64_collect_gregset)
2751 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2752 prototypes.
2753 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2754 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2755 (sparc64fbsd_gregmap): ... this.
2756 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2757 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2758 Rename regmaps.
2759 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2760 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2761 (sparc64nbsd_collect_fpregset): Likewise.
2762 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2763 (sparc64nbsd_gregmap): ... this.
2764 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2765 regmaps.
2766 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2767 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2768 (sparc64obsd_gregmap): ... this.
2769 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2770 regmaps.
2771 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2772 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2773 (sparc32nbsd_gregmap): ... this.
2774 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2775 regmaps.
2776
2777 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2778
2779 * score-tdep.c (score7_linux_gregset): New static regset
2780 structure.
2781 (score7_linux_regset_from_core_section): Remove dynamic regset
2782 allocation.
2783 (score_gdbarch_init): Drop allocation of tdep structure.
2784 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2785
2786 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2787
2788 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2789 regset structures.
2790 (am33_regset_from_core_section): Remove dynamic regset
2791 allocations.
2792
2793 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2794
2795 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2796 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2797 structures.
2798 (mips_linux_regset_from_core_section): Remove dynamic regset
2799 allocations.
2800 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2801 'gregset64', 'fpregset', and 'fpregset64'.
2802 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2803 deleted tdep fields.
2804
2805 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2806
2807 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2808 regset structures.
2809 (amd64_regset_from_core_section): Remove dynamic regset
2810 allocations.
2811 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2812 structure.
2813 (amd64obsd_regset_from_core_section): Remove dynamic regset
2814 allocation.
2815 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2816 Likewise.
2817 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2818 x86-common regset supply function.
2819 * i386-tdep.c (i386_collect_gregset): Make static.
2820 (i386_gregset): New global regset structure.
2821 (i386_fpregset, i386_xstateregset): New static regset structures.
2822 (i386_regset_from_core_section): Remove dynamic regset
2823 allocations.
2824 (i386_gdbarch_init): Remove initialization of tdep fields
2825 'gregset', 'fpregset', and 'xstateregset'.
2826 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2827 'fpregset', and 'xstateregset'.
2828 (i386_collect_gregset): Remove prototype.
2829 (i386_gregset): New declaration.
2830 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
2831 structure.
2832 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
2833 allocation.
2834
2835 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2836
2837 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2838 (arm_linux_vfpregset): New static regset structures.
2839 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2840 regset structures.
2841 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2842 and 'vfpregset' fields.
2843
2844 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2845
2846 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2847 (aarch64_linux_fpregset): New static regset structures.
2848 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2849 of regset structures.
2850 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2851 'fpregset' fields.
2852
2853 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2854
2855 * regset.h (struct regset): Remove gdbarch field.
2856 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2857 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2858 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2859 Likewise.
2860 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2861 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2862 (ppc32_linux_vsxregset): Likewise.
2863 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2864 via the regcache instead of the regset.
2865 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2866 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2867 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2868 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2869 Likewise.
2870
2871 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2872
2873 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2874 Constify structures.
2875 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2876 (alphanbsd_aout_gregset): Likewise.
2877 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2878 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2879 Likewise.
2880 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2881 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2882 Likewise.
2883 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2884 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2885 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2886 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2887 * m88k-tdep.c (m88k_gregset): Likewise.
2888 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2889 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2890 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2891 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2892 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2893 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2894 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2895 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2896 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2897 Likewise.
2898 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2899 * sh-tdep.h (sh_corefile_gregset): Likewise.
2900 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2901 * vax-tdep.c (vax_gregset): Likewise.
2902
2903 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2904
2905 Fix TLS access for -static -pthread.
2906 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2907 (try_thread_db_load_1): Initialize it.
2908 (thread_db_get_thread_local_address): Call it if LM is zero.
2909 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2910 * target.h (struct target_ops) (to_get_thread_local_address): Add
2911 load_module_addr comment.
2912
2913 2014-05-21 Pedro Alves <palves@redhat.com>
2914
2915 * dcache.c (dcache_read_memory_partial): If reading the cache line
2916 fails, fallback to reading just the memory the caller wanted.
2917
2918 2014-05-20 Doug Evans <dje@google.com>
2919
2920 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2921 instead of get_current_arch.
2922
2923 2014-05-20 Pedro Alves <palves@redhat.com>
2924
2925 * NEWS: Mention that compare-sections now works with all targets.
2926
2927 * remote.c (PACKET_qCRC): New enum value.
2928 (remote_verify_memory): Don't send qCRC if the target has no
2929 execution. Use packet_support/packet_ok. If the target doesn't
2930 support the qCRC packet, fallback to a deep memory copy.
2931 (compare_sections_command): Say "target image" instead of "remote
2932 executable".
2933 (_initialize_remote): Add PACKET_qCRC to the list of config
2934 packets that have no associated command. Extend comment.
2935 * target.c (simple_verify_memory, default_verify_memory): New
2936 function.
2937 * target.h (struct target_ops) <to_verify_memory>: Default to
2938 default_verify_memory.
2939 (simple_verify_memory): New declaration.
2940 * target-delegates.c: Regenerate.
2941
2942 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2943
2944 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2945
2946 2014-05-20 Hui Zhu <hui@codesourcery.com>
2947 Yao Qi <yao@codesourcery.com>
2948
2949 PR backtrace/16558
2950 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2951 and change address of sp and pc.
2952
2953 2014-05-19 Tom Tromey <tromey@redhat.com>
2954
2955 * gdbtypes.c (rank_function): Use XNEWVEC.
2956 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2957
2958 2014-05-19 Doug Evans <dje@google.com>
2959
2960 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2961 build_type_unit_groups and moved closer to only caller. Remove
2962 arguments. All references updated. Remove outdated .gdb_index
2963 comment.
2964 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2965 build_type_psymtabs_1.
2966
2967 2014-05-19 Doug Evans <dje@google.com>
2968
2969 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2970 n_type_unit_groups, all_type_unit_groups. All uses removed.
2971 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2972 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2973 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2974 (add_type_unit_group_to_table): Delete.
2975
2976 2014-05-19 Doug Evans <dje@google.com>
2977
2978 * eval.c (evaluate_subexp_standard): Add some comments.
2979
2980 2014-05-17 Doug Evans <xdje42@gmail.com>
2981
2982 * progspace.c (remove_program_space): Delete, unused.
2983 * progspace.h (remove_program_space): Ditto.
2984
2985 2014-05-17 Doug Evans <xdje42@gmail.com>
2986
2987 * inferior.c (prune_inferiors): Fix comment.
2988 (remove_inferior_command): Call prune_program_spaces.
2989
2990 2014-05-16 Doug Evans <dje@google.com>
2991
2992 New command line option -D.
2993 * NEWS: Mention it.
2994 * main.c (set_gdb_data_directory): New function.
2995 (captured_main): Recognize -D. Flag error for --data-directory "".
2996 Call set_gdb_data_directory.
2997 (print_gdb_help): Print --data-directory, -D.
2998 * main.h (set_gdb_data_directory): Declare.
2999 * top.c (staged_gdb_datadir): New static global.
3000 (set_gdb_datadir): Call set_gdb_data_directory
3001 (show_gdb_datadir): New function.
3002 (init_main): Update init of data-directory parameter.
3003
3004 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
3005
3006 Import the "dirfd" gnulib module.
3007 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
3008 * gnulib/aclocal.m4: Update.
3009 * gnulib/config.in: Update.
3010 * gnulib/configure: Update.
3011 * gnulib/import/Makefile.am: Update.
3012 * gnulib/import/Makefile.in: Update.
3013 * gnulib/import/dirfd.c: New.
3014 * gnulib/import/m4/dirfd.m4: New.
3015 * gnulib/import/m4/gnulib-cache.m4: Update.
3016 * gnulib/import/m4/gnulib-comp.m4: Update.
3017
3018 2014-05-16 Pierre Muller <muller@sourceware.org>
3019 Yao Qi <yao@codesourcery.com>
3020
3021 * valprint.c (print_wchar): Move the code on checking whether
3022 W is a printable wide char to the default branch of switch
3023 statement below. Call wchar_printable instead of gdb_iswprint.
3024
3025 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
3026
3027 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
3028 ldr.w and ldrd instructions.
3029
3030 2014-05-15 Doug Evans <dje@google.com>
3031
3032 * dwarf2read.c (read_structure_type): Delete outdated comments.
3033
3034 2014-05-14 Tom Tromey <tromey@redhat.com>
3035
3036 * macrocmd.c (print_macro_definition): Reindent.
3037
3038 2014-05-13 Doug Evans <xdje42@gmail.com>
3039
3040 * python/py-cmd.c (cmdpy_completer): Add comment.
3041 (completers): Make const.
3042
3043 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3044
3045 * infrun.c (resume): Remove should_resume (unused). Move up
3046 declaration of resume_ptid.
3047
3048 2014-05-13 Tom Tromey <tromey@redhat.com>
3049
3050 * language.h (unop_type_check): Remove.
3051 (binop_type_check): Don't declare.
3052
3053 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3054
3055 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3056 call to regcache_raw_collect.
3057
3058 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3059
3060 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3061 mi_console->quote as the quoting character.
3062
3063 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3064
3065 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3066
3067 2014-04-29 Tom Tromey <tromey@redhat.com>
3068
3069 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3070 "show debug varobj".
3071
3072 2014-05-07 Kyle McMartin <kyle@redhat.com>
3073
3074 Pushed by Joel Brobecker <brobecker@adacore.com>.
3075 * aarch64-tdep.c (aarch64_software_single_step): New function.
3076 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3077 with aarch64_software_single_step.
3078
3079 2014-05-05 Joel Brobecker <brobecker@adacore.com>
3080
3081 GDB 7.7.1 released.
3082
3083 2014-05-05 Keith Seitz <keiths@redhat.com>
3084
3085 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3086 variable or history value is successfully parsed.
3087
3088 2014-05-05 Yao Qi <yao@codesourcery.com>
3089 Pedro Alves <palves@redhat.com>
3090
3091 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3092 address of blocks that intersects the requested range. Trim
3093 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3094 sections.
3095 * ctf.c (ctf_xfer_partial): Likewise.
3096
3097 2014-05-05 Yao Qi <yao@codesourcery.com>
3098
3099 * printcmd.c (display_command): Remove the check to
3100 target_has_execution.
3101
3102 2014-05-03 Mark Kettenis <kettenis@gnu.org>
3103
3104 * ppcobsd-nat.c: Include "obsd-nat.h".
3105 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3106 add_target.
3107 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3108
3109 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3110
3111 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3112 and 16-bit signed and unsigned arguments. Update comment.
3113 (stap_parse_probe_arguments): Extend code to handle such
3114 arguments. Use warning instead of complaint to notify about
3115 unrecognized bitness.
3116
3117 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3118
3119 PR breakpoints/16889
3120 * stap-probe.c (stap_parse_probe_arguments): Simplify
3121 check for non-prefixed probes (i.e., probes whose
3122 arguments do not start with "N@"). Always set the
3123 argument type to a sane value.
3124
3125 2014-05-01 David Taylor <dtaylor@emc.com>
3126
3127 * remote.c (compare_sections_command): Add -r option to compare
3128 all loadable read-only sections.
3129
3130 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3131
3132 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3133 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3134 Update all callers.
3135 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3136 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3137 Remove unused CORE_ADDR argument. Update all callers.
3138
3139 2014-04-29 Pedro Alves <palves@redhat.com>
3140
3141 * remote.c (struct packet_config) <detect>: Extend comment.
3142 (add_packet_config_cmd): Don't set the config's detect or support
3143 fields here.
3144 (init_all_packet_configs): Also initialize the config's 'detect'
3145 field.
3146 (reset_all_packet_configs_support): New function.
3147 (remote_open_1): Call reset_all_packet_configs_support instead of
3148 init_all_packet_configs.
3149 (_initialize_remote): Initialize all packet configs. Assert that
3150 all packets have an associated command, except a few known
3151 outliers.
3152
3153 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3154
3155 * dwarf2read.c (read_subrange_type): Handle dynamic
3156 DW_AT_lower_bound attributes.
3157
3158 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3159
3160 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3161 dynamic bounds before computing its upper bound.
3162 (ada_discrete_type_low_bound): Same as above with the lower bound.
3163
3164 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3165
3166 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3167 range types. Adjust the array handling implementation to
3168 take advantage of this change.
3169 (resolve_dynamic_range): New function, mostly extracted from
3170 resolve_dynamic_bounds.
3171 (resolve_dynamic_array): New function, mostly extracted from
3172 resolve_dynamic_bounds.
3173 (resolve_dynamic_bounds): Delete.
3174 (resolve_dynamic_type): Reimplement. Add handling of
3175 TYPE_CODE_RANGE types.
3176
3177 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3178
3179 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3180 handling of parallel ___XA types.
3181
3182 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3183
3184 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3185 unnecessary second call to static_unwrap_type.
3186
3187 2014-04-27 Hui Zhu <hui@codesourcery.com>
3188
3189 * stack.c (print_frame_info): Call do_gdb_disassembly with
3190 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3191
3192 2014-04-26 Doug Evans <xdje42@gmail.com>
3193
3194 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3195
3196 2014-04-25 Pedro Alves <palves@redhat.com>
3197
3198 PR server/16255
3199 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3200 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3201 and newline from built string.
3202 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3203 (linux_ptrace_attach_fail_reason): ... this.
3204 * linux-nat.c (linux_nat_attach): Adjust to use
3205 linux_ptrace_attach_fail_reason.
3206
3207 2014-04-25 Pedro Alves <palves@redhat.com>
3208
3209 * remote.c (struct remote_state): Remove multi_process_aware,
3210 non_stop_aware, cond_tracepoints, cond_breakpoints,
3211 breakpoint_commands, fast_tracepoints, static_tracepoints,
3212 install_in_trace, disconnected_tracing,
3213 enable_disable_tracepoints, string_tracing, and
3214 augmented_libraries_svr4_read fields.
3215 (remote_multi_process_p): Move further below in the file.
3216 (struct packet_config): Add comments.
3217 (update_packet_config): Delete function.
3218 (show_packet_config_cmd): Use packet_config_support.
3219 (add_packet_config_cmd): Use NULL as set callback.
3220 (packet_ok): "set remote foo-packet"-style commands no longer
3221 change config->supported -- adjust.
3222 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3223 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3224 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3225 (PACKET_QNonStop, PACKET_multiprocess_feature)
3226 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3227 (PACKET_DisconnectedTracing_feature)
3228 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3229 (set_remote_protocol_packet_cmd): Delete function.
3230 (packet_config_support, packet_support): New functions.
3231 (set_remote_protocol_Z_packet_cmd): Don't call
3232 update_packet_config.
3233 (remote_query_attached, remote_pass_signals)
3234 (remote_program_signals, remote_threads_info)
3235 (remote_threads_extra_info, remote_start_remote): Use
3236 packet_support.
3237 (remote_start_remote): Use packet_config_support and
3238 packet_support.
3239 (init_all_packet_configs): Set all packets to unknown support,
3240 instead of calling update_packet_config.
3241 (remote_check_symbols): Use packet_support.
3242 (remote_supported_packet): Unconditionally set the packet config's
3243 support status.
3244 (remote_multi_process_feature, remote_non_stop_feature)
3245 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3246 (remote_breakpoint_commands_feature)
3247 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3248 (remote_install_in_trace_feature)
3249 (remote_disconnected_tracing_feature)
3250 (remote_enable_disable_tracepoint_feature)
3251 (remote_string_tracing_feature)
3252 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3253 (remote_protocol_features): Adjust to use remote_supported_packet
3254 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3255 "ConditionalTracepoints", "ConditionalBreakpoints",
3256 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3257 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3258 "EnableDisableTracepoints", and "tracenz".
3259 (remote_query_supported): Use packet_support.
3260 (remote_open_1): Adjust.
3261 (extended_remote_attach_1): Use packet_support. Switch on the
3262 result of packet_ok instead of checking whether the packet ended
3263 up disabled.
3264 (remote_vcont_resume): Use packet_support.
3265 (remote_resume, remote_stop_ns, fetch_register_using_p)
3266 (remote_prepare_to_store, store_register_using_P)
3267 (check_binary_download, remote_write_bytes): Use packet_support.
3268 (remote_vkill): Use packet_support. Switch on the result of
3269 packet_ok instead of checking whether the packet ended up
3270 disabled.
3271 (extended_remote_supports_disable_randomization): Use
3272 packet_support.
3273 (extended_remote_run): Switch on the result of packet_ok instead
3274 of checking whether the packet ended up disabled.
3275 (remote_insert_breakpoint, remote_remove_breakpoint)
3276 (remote_insert_watchpoint, remote_remove_watchpoint)
3277 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3278 packet_support.
3279 (remote_search_memory): Use packet_config_support.
3280 (remote_get_thread_local_address, remote_get_tib_address)
3281 (remote_hostio_send_command, remote_can_execute_reverse): Use
3282 packet_support.
3283 (remote_supports_cond_tracepoints)
3284 (remote_supports_cond_breakpoints)
3285 (remote_supports_fast_tracepoints)
3286 (remote_supports_static_tracepoints)
3287 (remote_supports_install_in_trace)
3288 (remote_supports_enable_disable_tracepoint)
3289 (remote_supports_string_tracing)
3290 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3291 the packet config says the feature is enabled or disabled.
3292 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3293 (remote_get_trace_status): Use packet_support.
3294 (remote_set_disconnected_tracing): Adjust to check whether the
3295 feature is enabled with packet_support.
3296 (remote_set_trace_buffer_size, remote_use_agent)
3297 (remote_can_use_agent, remote_supports_btrace): Use
3298 packet_support.
3299 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3300 Use packet_config_support.
3301 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3302 the packet config says the feature is enabled or disabled.
3303 (set_range_stepping): Use packet_support.
3304
3305 2014-04-25 Tom Tromey <tromey@redhat.com>
3306
3307 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3308 argument.
3309
3310 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3311
3312 * NEWS: Mention support for C99 variable length arrays.
3313
3314 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3315
3316 * ada-lang.c (standard_exc): Expand introductory comment.
3317
3318 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3319 Walfred Tedeschi <walfred.tedeschi@intel.com>
3320
3321 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3322 AVX512 registers.
3323 (amd64_linux_read_description): Add code to handle AVX512 xstate
3324 mask and return respective tdesc.
3325 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3326 and features/i386/x32-avx512-linux.c.
3327 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3328 (amd64_linux_core_read_description): Add code to handle AVX512
3329 xstate mask and return respective tdesc.
3330 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3331 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3332 calculation.
3333 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3334 (tdesc_amd64_avx512_linux): New prototype.
3335 (tdesc_x32_avx512_linux): Likewise.
3336 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3337 features/i386/x32-avx512.c.
3338 (amd64_ymm_avx512_names): New register names for pseudo
3339 registers YMM16-31.
3340 (amd64_ymmh_avx512_names): New register names for raw registers
3341 YMMH16-31.
3342 (amd64_k_names): New register names for K registers.
3343 (amd64_zmmh_names): New register names for ZMM raw registers.
3344 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3345 (amd64_xmm_avx512_names): New register names for XMM16-31
3346 registers.
3347 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3348 registers.
3349 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3350 if feature is present.
3351 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3352 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3353 (AMD64_NUM_REGS): Adjust to new number of registers.
3354 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3355 registers supplied via XSTATE by AVX512 registers.
3356 (i386_linux_read_description): Add case for AVX512.
3357 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3358 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3359 (i386_linux_core_read_description): Add case for AVX512.
3360 (i386_linux_init_abi): Install supported register note section
3361 for AVX512.
3362 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3363 AVX512.
3364 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3365 registers to be number of zmm7h + 1.
3366 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3367 * i386-tdep.c: Include features/i386/i386-avx512.c.
3368 (i386_zmm_names): Add ZMM pseudo register names array.
3369 (i386_zmmh_names): Add ZMM raw register names array.
3370 (i386_k_names): Add K raw register names array.
3371 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3372 registers. AVX512 has 16 more ZMM registers than there are YMM
3373 registers.
3374 (i386_zmmh_regnum_p): Add function to look up register number of
3375 ZMM raw registers.
3376 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3377 (i386_k_regnum_p): Likewise for K raw registers.
3378 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3379 registers added by AVX512.
3380 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3381 registers added by AVX512.
3382 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3383 added by AVX512.
3384 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3385 (i386_pseudo_register_name): Add ZMM pseudo registers.
3386 (i386_zmm_type): Construct and return vector registers type for ZMM
3387 registers.
3388 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3389 ZMM0-31 pseudo registers and K registers.
3390 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3391 and YMM16-31 registers from register cache.
3392 (i386_pseudo_register_write): Add code to write K, ZMM and
3393 YMM16-31 registers.
3394 (i386_register_reggroup_p): Add code to include/exclude AVX512
3395 registers in/from respective register groups.
3396 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3397 registers if feature is present in xcr0.
3398 (i386_gdbarch_init): Add code to initialize AVX512 feature
3399 variables in tdep structure, wire in pseudo registers and call
3400 initialize_tdesc_i386_avx512.
3401 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3402 variables.
3403 (i386_regnum): Add AVX512 registers.
3404 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3405 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3406 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3407 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3408 512 bits wide.
3409 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3410 (i386_ymm_avx512_regnum_p): Likewise.
3411 (i386_k_regnum_p): Likewise.
3412 (i386_zmm_regnum_p): Likewise.
3413 (i386_zmmh_regnum_p): Likewise.
3414 * i387-tdep.c : Update year in copyright notice.
3415 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3416 XSAVE buffer.
3417 (XSAVE_YMM_AVX512_ADDR): New macro.
3418 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3419 XSAVE buffer.
3420 (XSAVE_XMM_AVX512_ADDR): New macro.
3421 (xsave_avx512_k_offset): New table for K register offsets in
3422 XSAVE buffer.
3423 (XSAVE_AVX512_K_ADDR): New macro.
3424 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3425 in XSAVE buffer.
3426 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3427 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3428 buffer.
3429 (i387_collect_xsave): Add code to collect AVX512 registers from
3430 XSAVE buffer.
3431 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3432 of XMM16-31 registers.
3433 (I387_NUM_K_REGS): New define for number of K registers.
3434 (I387_K0_REGNUM): New define for K0 register number.
3435 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3436 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3437 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3438 registers.
3439 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3440 (I387_XMM16_REGNUM): New define for XMM16 register number.
3441 (I387_YMM0_REGNUM): New define for YMM0 register number.
3442 (I387_KEND_REGNUM): New define for last K register number.
3443 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3444 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3445 number.
3446 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3447 number.
3448 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3449 size.
3450 * features/Makefile: Add AVX512 related files.
3451 * features/i386/32bit-avx512.xml: New file.
3452 * features/i386/64bit-avx512.xml: Likewise.
3453 * features/i386/amd64-avx512-linux.c: Likewise.
3454 * features/i386/amd64-avx512-linux.xml: Likewise.
3455 * features/i386/amd64-avx512.c: Likewise.
3456 * features/i386/amd64-avx512.xml: Likewise.
3457 * features/i386/i386-avx512-linux.c: Likewise.
3458 * features/i386/i386-avx512-linux.xml: Likewise.
3459 * features/i386/i386-avx512.c: Likewise.
3460 * features/i386/i386-avx512.xml: Likewise.
3461 * features/i386/x32-avx512-linux.c: Likewise.
3462 * features/i386/x32-avx512-linux.xml: Likewise.
3463 * features/i386/x32-avx512.c: Likewise.
3464 * features/i386/x32-avx512.xml: Likewise.
3465 * regformats/i386/amd64-avx512-linux.dat: New file.
3466 * regformats/i386/amd64-avx512.dat: Likewise.
3467 * regformats/i386/i386-avx512-linux.dat: Likewise.
3468 * regformats/i386/i386-avx512.dat: Likewise.
3469 * regformats/i386/x32-avx512-linux.dat: Likewise.
3470 * regformats/i386/x32-avx512.dat: Likewise.
3471 * NEWS: Add note about new support for AVX512.
3472
3473
3474 2014-04-23 Pedro Alves <palves@redhat.com>
3475
3476 * breakpoint.c (insert_bp_location): Tolerate errors if the
3477 breakpoint is set in a user-loaded objfile.
3478 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3479 location is marked shlib_disabled. If the breakpoint is set in a
3480 user-loaded objfile is a GDB-side memory breakpoint, validate it
3481 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3482 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3483 flag.
3484 * mem-break.c (memory_validate_breakpoint): New function.
3485 * objfiles.c (userloaded_objfile_contains_address_p): New
3486 function.
3487 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3488 * target.h (memory_validate_breakpoint): New declaration.
3489
3490 2014-04-23 Pedro Alves <palves@redhat.com>
3491
3492 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3493 the breakpoint is set in a shared library, only suppress
3494 errors for software breakpoints, not hardware breakpoints.
3495
3496 2014-04-22 Pedro Alves <palves@redhat.com>
3497
3498 * infrun.c (schedlock_applies): New function, factored out from
3499 find_thread_needs_step_over.
3500 (find_thread_needs_step_over): Use it.
3501 (switch_back_to_stepped_thread): Always clear trap_expected if the
3502 step over is finished. Return early if scheduler locking applies.
3503 Look for the stepping thread and a potential step-over thread with
3504 a single loop.
3505 (currently_stepping_or_nexting_callback): Delete.
3506
3507 2014-04-22 Nick Clifton <nickc@redhat.com>
3508
3509 * NEWS: Mention that ARM sim now supports tracing.
3510
3511 2014-04-22 Yao Qi <yao@codesourcery.com>
3512
3513 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3514 to ...
3515 * tracefile.c (tracefile_fetch_registers): ... it. New
3516 function.
3517 * tracefile.h (tracefile_fetch_registers): Declare.
3518 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3519 tracefile_fetch_registers.
3520
3521 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3522
3523 PR gdb/14018
3524 * windows-nat.c (thread_rec): Don't display a warning when
3525 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3526 fails for any reason, set th->suspended to -1, so that we don't
3527 try to resume such a thread. Also, don't return NULL in these
3528 cases, to avoid completely ruin the session due to "PC register is
3529 not available" error.
3530 (do_windows_fetch_inferior_registers): Check errors in
3531 GetThreadContext call.
3532 (windows_continue): Accept an additional argument KILLED; if not
3533 zero, ignore errors in the SetThreadContext call, since the
3534 inferior was killed and is shutting down.
3535 (windows_resume, get_windows_debug_event)
3536 (windows_create_inferior, windows_mourn_inferior)
3537 (windows_kill_inferior): All callers of windows_continue changed
3538 to adjust to its new calling sequence.
3539
3540 2014-04-19 Yao Qi <yao@codesourcery.com>
3541
3542 * ctf.c (ctf_open): Call post_create_inferior.
3543
3544 2014-04-19 Yao Qi <yao@codesourcery.com>
3545
3546 * ctf.c (handle_id): New static variable.
3547 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3548 value. Get the declaration of event "register" and get length
3549 of field "contents".
3550
3551 2014-04-19 Yao Qi <yao@codesourcery.com>
3552
3553 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3554
3555 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3556
3557 * valops.c (oload_method_static): Remove unnecessary argument
3558 METHOD. Update all callers.
3559
3560 2014-04-18 Pedro alves <palves@redhat.com>
3561 Tom Tromey <tromey@redhat.com>
3562
3563 PR backtrace/15558
3564 * frame.c (get_prev_frame_1): Rename to ...
3565 (get_prev_frame_always): ... this, and make extern. Adjust.
3566 (skip_artificial_frames): Use get_prev_frame_always.
3567 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3568 (get_frame_unwind_stop_reason): Adjust to rename.
3569 * frame.h (get_prev_frame_always): Declare.
3570 * inline-frame.c: Include frame.h.
3571 (inline_frame_this_id): Use get_prev_frame_always.
3572
3573 2014-04-18 Tristan Gingold <gingold@adacore.com>
3574
3575 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3576 code by using bfd_mach_o_get_base_address.
3577
3578 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
3579
3580 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3581 (spu_ax_pseudo_register_collect): New function.
3582 (spu_ax_pseudo_register_push_stack): Likewise.
3583 (spu_dwarf_reg_to_regnum): Likewise.
3584 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3585
3586 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
3587
3588 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3589 Replace FRAME argument with FRAME_ID.
3590 * gdbarch.c, gdbarch.h: Regenerate.
3591 * findvar.c (default_value_from_register): Add GDBARCH argument;
3592 replace FRAME by FRAME_ID. No longer call get_frame_id.
3593 (value_from_register): Update call to gdbarch_value_from_register.
3594 * value.h (default_value_from_register): Update prototype.
3595 * s390-linux-tdep.c (s390_value_from_register): Update interface
3596 and call to default_value_from_register.
3597 * spu-tdep.c (spu_value_from_register): Likewise.
3598
3599 * findvar.c (address_from_register): Remove TYPE argument.
3600 Do not call value_from_register; use gdbarch_value_from_register
3601 with null_frame_id instead.
3602 * value.h (address_from_register): Update prototype.
3603 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3604 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3605 address_from_register interface change.
3606
3607 2014-04-17 Yao Qi <yao@codesourcery.com>
3608
3609 * gdbtypes.h: Update comments to link to types and macros'
3610 definitions.
3611
3612 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3613
3614 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3615
3616 2014-04-16 Keith Seitz <keiths@redhat.com>
3617
3618 PR gdb/15827
3619 * dwarf2read.c (skip_one_die): Check that all relative-offset
3620 sibling DIEs fall within range of the current reader's buffer.
3621 (read_partial_die): Likewise.
3622
3623 2014-04-16 Keith Seitz <keiths@redhat.com>
3624
3625 PR c++/16597
3626 * cp-namespace.c (lookup_symbol_file): If the type name of
3627 `this' is NULL, return immediately.
3628
3629 2014-04-14 Keith Seitz <keiths@redhat.com>
3630
3631 PR c++/16253
3632 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3633 from symbol_matches_domain in symtab.c. All local callers
3634 of symbol_matches_domain updated.
3635 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3636 search STRUCT_DOMAIN.
3637 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3638 independently. standard_lookup will do that automatically.
3639 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3640 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3641 (cp_lookup_symbol_in_namespace): Likewise.
3642 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3643 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3644 may return a STRUCT_DOMAIN match.
3645 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3646 * cp-support.c: Include language.h.
3647 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3648 VAR_DOMAIN.
3649 * psymtab.c (match_partial_symbol): Compare the requested
3650 domain with the symbol's domain directly.
3651 (lookup_partial_symbol): Likewise.
3652 * symtab.c (lookup_symbol_in_language): Explain when/why
3653 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3654 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3655 appropriate languages.
3656 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3657 and moved to ada-lang.c
3658 (lookup_block_symbol): Explain that this function only returns
3659 symbol matching the requested DOMAIN.
3660 Compare the requested domain with the symbol's domain directly.
3661 (iterate_over_symbols): Compare the requested domain with the
3662 symbol's domain directly.
3663 * symtab.h (symbol_matches_domain): Remove.
3664
3665 2014-04-14 Tom Tromey <tromey@redhat.com>
3666
3667 PR c++/15246:
3668 * c-exp.y (type_aggregate_p): New function.
3669 (qualified_name, classify_inner_name): Use it.
3670 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3671 and TYPE_TARGET_TYPE of an enum type.
3672 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3673 an enum type.
3674 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3675 handle TYPE_DECLARED_CLASS.
3676 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3677 types.
3678 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3679 * valops.c (enum_constant_from_type): New function.
3680 (value_aggregate_elt): Use it.
3681 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3682 TYPE_CODE_ENUM.
3683
3684 2014-04-14 Tom Tromey <tromey@redhat.com>
3685
3686 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3687 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3688 const.
3689 * value.h (value_aggregate_elt): Update.
3690
3691 2014-04-14 Tom Tromey <tromey@redhat.com>
3692
3693 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3694
3695 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3696
3697 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3698 (evaluate_subexp_standard): Pass noside argument.
3699 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3700 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3701 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3702 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3703 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3704
3705 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3706
3707 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3708 points to a constant blob.
3709
3710 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3711
3712 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3713 property and store it as the high bound and flag the range accordingly.
3714 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3715 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3716 * gdbtypes.h (enum range_flags): New enum.
3717 (struct range_bounds): Add flags member.
3718
3719 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3720
3721 * c-typeprint.c (c_type_print_varspec_suffix): Added
3722 check for not yet resolved high bound. If unresolved, print
3723 "variable length" string to the console instead of random
3724 length.
3725
3726 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3727
3728 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3729 value.
3730 (ada_template_to_fixed_record_type_1): Likewise.
3731 (ada_to_fixed_type_1): Likewise.
3732 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3733 (cp_print_value): Likewise.
3734 * d-valprint.c (dynamic_array_type): Likewise.
3735 * findvar.c (address_of_variable): Likewise.
3736 * jv-valprint.c (java_value_print): Likewise.
3737 * valops.c (value_ind): Likewise.
3738 * value.c (coerce_ref): Likewise.
3739
3740 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3741
3742 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3743 value and retrieve the dynamic type size.
3744
3745 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3746
3747 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3748 passed to sizeof is dynamic evaluate the argument to compute the length.
3749
3750 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3751 Joel Brobecker <brobecker@adacore.com>
3752
3753 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3754 (dwarf2_evaluate_property): New function.
3755 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3756 * dwarf2read.c (attr_to_dynamic_prop): New function.
3757 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3758 attribute.
3759 * gdbtypes.c: Include dwarf2loc.h.
3760 (is_dynamic_type): New function.
3761 (resolve_dynamic_type): New function.
3762 (resolve_dynamic_bounds): New function.
3763 (get_type_length): New function.
3764 (check_typedef): Use get_type_length to compute type length.
3765 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3766 (TYPE_LOW_BOUND_KIND): New macro.
3767 (is_dynamic_type): New function prototype.
3768 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3769 to resolve dynamic properties of the type. Update comment.
3770 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3771
3772 2014-04-14 Richard Henderson <rth@redhat.com>
3773
3774 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3775
3776 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3777 Doug Evans <xdje42@gmail.com>
3778
3779 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3780 dereference TYPE_CODE_REF values.
3781
3782 2014-04-11 Joel Brobecker <brobecker@adacore.com>
3783
3784 Revert the following changes due to regressions:
3785
3786 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3787 (dwarf2_evaluate_property): New function.
3788 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3789 * dwarf2read.c (attr_to_dynamic_prop): New function.
3790 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3791 attribute.
3792 * gdbtypes.c: Include dwarf2loc.h.
3793 (is_dynamic_type): New function.
3794 (resolve_dynamic_type): New function.
3795 (resolve_dynamic_bounds): New function.
3796 (get_type_length): New function.
3797 (check_typedef): Use get_type_length to compute type length.
3798 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3799 (TYPE_LOW_BOUND_KIND): New macro.
3800 (is_dynamic_type): New function prototype.
3801 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3802 to resolve dynamic properties of the type. Update comment.
3803 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3804
3805 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3806 passed to sizeof is dynamic evaluate the argument to compute the length.
3807
3808 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3809 value and retrieve the dynamic type size.
3810
3811 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3812 (ada_template_to_fixed_record_type_1): Likewise.
3813 (ada_to_fixed_type_1): Likewise.
3814 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3815 (cp_print_value): Likewise.
3816 * d-valprint.c (dynamic_array_type): Likewise.
3817 * eval.c (evaluate_subexp_with_coercion): Likewise.
3818 * findvar.c (address_of_variable): Likewise.
3819 * jv-valprint.c (java_value_print): Likewise.
3820 * valops.c (value_ind): Likewise.
3821 * value.c (coerce_ref): Likewise.
3822
3823 * c-typeprint.c (c_type_print_varspec_suffix): Added
3824 check for not yet resolved high bound. If unresolved, print
3825 "variable length" string to the console instead of random
3826 length.
3827
3828 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3829 property and store it as the high bound and flag the range accordingly.
3830 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3831 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3832 * gdbtypes.h (enum range_flags): New enum.
3833 (struct range_bounds): Add flags member.
3834
3835 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3836 points to a constant blob.
3837
3838 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3839 (evaluate_subexp_standard): Pass noside argument.
3840 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3841 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3842 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3843 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3844 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3845
3846 2014-04-11 Keith Seitz <keiths@redhat.com>
3847
3848 PR c++/16675
3849 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3850 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3851 reference types.
3852
3853 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3854
3855 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3856 (evaluate_subexp_standard): Pass noside argument.
3857 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3858 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3859 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3860 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3861 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3862
3863 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3864
3865 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3866 points to a constant blob.
3867
3868 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3869
3870 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3871 property and store it as the high bound and flag the range accordingly.
3872 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3873 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3874 * gdbtypes.h (enum range_flags): New enum.
3875 (struct range_bounds): Add flags member.
3876
3877 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3878
3879 * c-typeprint.c (c_type_print_varspec_suffix): Added
3880 check for not yet resolved high bound. If unresolved, print
3881 "variable length" string to the console instead of random
3882 length.
3883
3884 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3885
3886 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3887 (ada_template_to_fixed_record_type_1): Likewise.
3888 (ada_to_fixed_type_1): Likewise.
3889 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3890 (cp_print_value): Likewise.
3891 * d-valprint.c (dynamic_array_type): Likewise.
3892 * eval.c (evaluate_subexp_with_coercion): Likewise.
3893 * findvar.c (address_of_variable): Likewise.
3894 * jv-valprint.c (java_value_print): Likewise.
3895 * valops.c (value_ind): Likewise.
3896 * value.c (coerce_ref): Likewise.
3897
3898 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3899
3900 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3901 value and retrieve the dynamic type size.
3902
3903 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3904
3905 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3906 passed to sizeof is dynamic evaluate the argument to compute the length.
3907
3908 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3909
3910 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3911 (dwarf2_evaluate_property): New function.
3912 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3913 * dwarf2read.c (attr_to_dynamic_prop): New function.
3914 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3915 attribute.
3916 * gdbtypes.c: Include dwarf2loc.h.
3917 (is_dynamic_type): New function.
3918 (resolve_dynamic_type): New function.
3919 (resolve_dynamic_bounds): New function.
3920 (get_type_length): New function.
3921 (check_typedef): Use get_type_length to compute type length.
3922 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3923 (TYPE_LOW_BOUND_KIND): New macro.
3924 (is_dynamic_type): New function prototype.
3925 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3926 to resolve dynamic properties of the type. Update comment.
3927 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3928
3929 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3930
3931 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3932 declaring high/low bounds and change uses accordingly. Call
3933 create_range_type instead of create_static_range_type.
3934 * gdbtypes.c (create_range_type): New function.
3935 (create_range_type): Convert bounds into struct bound_prop and pass
3936 them to create_range_type.
3937 * gdbtypes.h (struct bound_prop): New struct.
3938 (create_range_type): New function prototype.
3939 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3940 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3941 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3942 part of the bound.
3943 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3944
3945 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3946
3947 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3948 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3949 * ada-lang.c: All uses of create_range_type updated.
3950 * coffread.c: All uses of create_range_type updated.
3951 * dwarf2read.c: All uses of create_range_type updated.
3952 * f-exp.y: All uses of create_range_type updated.
3953 * m2-valprint.c: All uses of create_range_type updated.
3954 * mdebugread.c: All uses of create_range_type updated.
3955 * stabsread.c: All uses of create_range_type updated.
3956 * valops.c: All uses of create_range_type updated.
3957 * valprint.c: All uses of create_range_type updated.
3958
3959 2014-04-10 Pedro Alves <palves@redhat.com>
3960
3961 * breakpoint.c (single_step_breakpoints)
3962 (single_step_gdbarch): Move up in the file.
3963 (one_breakpoint_xfer_memory): New function, factored out from ...
3964 (breakpoint_xfer_memory): ... here. Also process single-step
3965 breakpoints.
3966
3967 2014-04-09 Tristan Gingold <gingold@adacore.com>
3968
3969 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3970 comments.
3971 (darwin_decode_exception_message): Free port only after use.
3972
3973 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3974
3975 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3976 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3977 when setting the size of call_length.
3978
3979 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3980
3981 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3982 dereference TYPE_CODE_REF values.
3983
3984 2014-04-07 Joel Brobecker <brobecker@adacore.com>
3985
3986 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3987 end of warning message.
3988
3989 2014-04-03 Doug Evans <dje@google.com>
3990
3991 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3992 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3993
3994 2014-04-02 Alan Modra <amodra@gmail.com>
3995
3996 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3997 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3998 (struct symbol_file_add_from_memory_args): Add size field.
3999 (find_vdso_size): New function.
4000 (add_vsyscall_page): Attempt to find vdso size.
4001
4002 2014-04-01 Doug Evans <dje@google.com>
4003
4004 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
4005
4006 2014-04-01 Tristan Gingold <gingold@adacore.com>
4007
4008 * darwin-nat.c (darwin_encode_reply): Add prototype.
4009 (darwin_decode_exception_message): Reply to unknown inferiors.
4010 (darwin_decode_message): Handle message by id. Ignore message
4011 to unknown inferior.
4012 (darwin_wait): Discard unknown messages, add debug trace.
4013
4014 2014-03-31 Doug Evans <dje@google.com>
4015
4016 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
4017 comp_dir_string.
4018
4019 2014-03-31 Doug Evans <dje@google.com>
4020
4021 New option "set print symbol-loading".
4022 * NEWS: Mention it.
4023 * solib.c (solib_read_symbols): Only print symbol loading messages
4024 if requested.
4025 (solib_add): If symbol loading is in "brief" mode, notify user
4026 symbols are being loaded.
4027 (reload_shared_libraries_1): Ditto.
4028 * symfile.c (print_symbol_loading_off): New static global.
4029 (print_symbol_loading_brief): New static global.
4030 (print_symbol_loading_full): New static global.
4031 (print_symbol_loading_enums): New static global.
4032 (print_symbol_loading): New static global.
4033 (print_symbol_loading_p): New function.
4034 (symbol_file_add_with_addrs): Only print symbol loading messages
4035 if requested.
4036 (_initialize_symfile): Register "print symbol-loading" set/show
4037 command.
4038 * symfile.h (print_symbol_loading_p): Declare.
4039
4040 2014-03-30 Doug Evans <xdje42@gmail.com>
4041
4042 * infrun.c (set_last_target_status): New function.
4043 (handle_inferior_event): Call it.
4044
4045 2014-03-30 Doug Evans <xdje42@gmail.com>
4046
4047 * inferior.h (enum stop_kind): Improve comment.
4048
4049 2014-03-28 Joel Brobecker <brobecker@adacore.com>
4050
4051 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4052 a reference, strip the reference layer before calling
4053 the lang_ops value_has_mutated callback.
4054
4055 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4056
4057 Remove some globals from our parser.
4058 * language.c (unk_lang_parser): Add "struct parser_state"
4059 argument.
4060 * language.h (struct language_defn) <la_parser>: Likewise.
4061 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4062 (initialize_expout): Add "struct parser_state" argument.
4063 Rewrite function to use the parser state.
4064 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4065 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4066 write_exp_elt_longcst, write_exp_elt_dblcst,
4067 write_exp_elt_decfloatcst, write_exp_elt_type,
4068 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4069 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4070 write_dollar_variable): Likewise.
4071 (parse_exp_in_context_1): Use parser state.
4072 (insert_type_address_space): Add "struct parser_state" argument.
4073 Use parser state.
4074 (increase_expout_size): New function.
4075 * parser-defs.h: Forward declare "struct language_defn" and
4076 "struct parser_state".
4077 (expout, expout_size, expout_ptr): Remove extern declarations.
4078 (parse_gdbarch, parse_language): Rewrite macro declarations to
4079 accept the parser state.
4080 (struct parser_state): New struct.
4081 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4082 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4083 write_exp_elt_decfloatcst, write_exp_elt_type,
4084 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4085 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4086 write_exp_msymbol, write_dollar_variable,
4087 mark_struct_expression, insert_type_address_space): Add "struct
4088 parser_state" argument.
4089 (increase_expout_size): New function.
4090 * utils.c (do_clear_parser_state): New function.
4091 (make_cleanup_clear_parser_state): Likewise.
4092 * utils.h (make_cleanup_clear_parser_state): New function
4093 prototype.
4094 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4095 Update calls to write_exp* in order to pass the parser state.
4096 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4097 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4098 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4099 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4100 * stap-probe.c (stap_parse_register_operand): Likewise.
4101 (stap_parse_single_operand): Likewise.
4102 (stap_parse_argument_1): Likewise.
4103 (stap_parse_argument): Use parser state.
4104 * stap-probe.h: Include "parser-defs.h".
4105 (struct stap_parse_info) <pstate>: New field.
4106 * c-exp.y (parse_type): Rewrite to use parser state.
4107 (yyparse): Redefine to c_parse_internal.
4108 (pstate): New global variable.
4109 (parse_number): Add "struct parser_state" argument.
4110 (write_destructor_name): Likewise.
4111 (type_exp): Update calls to write_exp* and similars in order to
4112 use parser state.
4113 (exp1, exp, variable, qualified_name, space_identifier,
4114 typename, typebase): Likewise.
4115 (write_destructor_name, parse_number, lex_one_token,
4116 classify_name, classify_inner_name, c_parse): Add "struct
4117 parser_state" argument. Update function to use parser state.
4118 * c-lang.h: Forward declare "struct parser_state".
4119 (c_parse): Add "struct parser_state" argument.
4120 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4121 (yyparse): Redefine macro to ada_parse_internal.
4122 (pstate): New variable.
4123 (write_int, write_object_renaming, write_var_or_type,
4124 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4125 type_int, type_long, type_long_long, type_float, type_double,
4126 type_long_double, type_char, type_boolean, type_system_address):
4127 Add "struct parser_state" argument.
4128 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4129 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4130 var_or_type, aggregate, aggregate_component_list,
4131 positional_list, others, component_group,
4132 component_associations): Update calls to write_exp* and similar
4133 functions in order to use parser state.
4134 (ada_parse, write_var_from_sym, write_int,
4135 write_exp_op_with_string, write_object_renaming,
4136 find_primitive_type, write_selectors, write_ambiguous_var,
4137 write_var_or_type, write_name_assoc, type_int, type_long,
4138 type_long_long, type_float, type_double, type_long_double,
4139 type_char, type_boolean, type_system_address): Add "struct
4140 parser_state" argument. Adjust function to use parser state.
4141 * ada-lang.c (parse): Likewise.
4142 * ada-lang.h: Forward declare "struct parser_state".
4143 (ada_parse): Add "struct parser_state" argument.
4144 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4145 calls to both functions.
4146 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4147 parser state.
4148 (yyparse): Redefine macro to f_parse_internal.
4149 (pstate): New variable.
4150 (parse_number): Add "struct parser_state" argument.
4151 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4152 and similars in order to use parser state.
4153 (parse_number): Adjust code to use parser state.
4154 (yylex): Likewise.
4155 (f_parse): New function.
4156 * f-lang.h: Forward declare "struct parser_state".
4157 (f_parse): Add "struct parser_state" argument.
4158 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4159 parser state.
4160 (yyparse): Redefine macro for java_parse_internal.
4161 (pstate): New variable.
4162 (push_expression_name, push_expression_name, insert_exp): Add
4163 "struct parser_state" argument.
4164 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4165 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4166 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4167 PostIncrementExpression, PostDecrementExpression,
4168 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4169 UnaryExpressionNotPlusMinus, CastExpression,
4170 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4171 RelationalExpression, EqualityExpression, AndExpression,
4172 ExclusiveOrExpression, InclusiveOrExpression,
4173 ConditionalAndExpression, ConditionalOrExpression,
4174 ConditionalExpression, Assignment, LeftHandSide): Update
4175 calls to write_exp* and similars in order to use parser state.
4176 (parse_number): Ajust code to use parser state.
4177 (yylex): Likewise.
4178 (java_parse): New function.
4179 (push_variable): Add "struct parser_state" argument. Adjust
4180 code to user parser state.
4181 (push_fieldnames, push_qualified_expression_name,
4182 push_expression_name, insert_exp): Likewise.
4183 * jv-lang.h: Forward declare "struct parser_state".
4184 (java_parse): Add "struct parser_state" argument.
4185 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4186 parser state.
4187 (yyparse): Redefine macro to m2_parse_internal.
4188 (pstate): New variable.
4189 (type_exp, exp, fblock, variable, type): Update calls to
4190 write_exp* and similars to use parser state.
4191 (yylex): Likewise.
4192 (m2_parse): New function.
4193 * m2-lang.h: Forward declare "struct parser_state".
4194 (m2_parse): Add "struct parser_state" argument.
4195 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4196 * objc-lang.h: Forward declare "struct parser_state".
4197 (end_msglist): Add "struct parser_state" argument.
4198 * p-exp.y (parse_type): Rewrite macro to use parser state.
4199 (yyparse): Redefine macro to pascal_parse_internal.
4200 (pstate): New variable.
4201 (parse_number): Add "struct parser_state" argument.
4202 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4203 write_exp* and similars in order to use parser state.
4204 (parse_number, yylex): Adjust code to use parser state.
4205 (pascal_parse): New function.
4206 * p-lang.h: Forward declare "struct parser_state".
4207 (pascal_parse): Add "struct parser_state" argument.
4208 * go-exp.y (parse_type): Rewrite macro to use parser state.
4209 (yyparse): Redefine macro to go_parse_internal.
4210 (pstate): New variable.
4211 (parse_number): Add "struct parser_state" argument.
4212 (type_exp, exp1, exp, variable, type): Update calls to
4213 write_exp* and similars in order to use parser state.
4214 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4215 to use parser state.
4216 (go_parse): Likewise.
4217 * go-lang.h: Forward declare "struct parser_state".
4218 (go_parse): Add "struct parser_state" argument.
4219
4220 2014-03-27 Doug Evans <dje@google.com>
4221
4222 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4223
4224 2014-03-27 Doug Evans <dje@google.com>
4225
4226 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4227 Remove argument abbrev_section. All callers updated.
4228
4229 2014-03-27 Doug Evans <dje@google.com>
4230
4231 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4232 addr_base, ranges_base.
4233
4234 2014-03-26 Keith Seitz <keiths@redhat.com>
4235
4236 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4237 types, not VAR_DOMAIN.
4238
4239 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4240
4241 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4242 "ra" registers.
4243 * features/nios2-linux.c: Regenerated.
4244 * features/nios2.c: Regenerated.
4245
4246 2014-03-25 Pedro Alves <palves@redhat.com>
4247
4248 * cli/cli-script.c (script_from_file): Force the interpreter to
4249 sync mode.
4250
4251 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4252
4253 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4254 small stack allocation.
4255
4256 2014-03-24 Tristan Gingold <gingold@adacore.com>
4257
4258 * darwin-nat.c (exc_server): Remove unused prototype.
4259 (darwin_dump_message): Correctly display data on x86_64.
4260 (darwin_encode_reply): Fix style.
4261 Add comments and fix indentation.
4262
4263 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4264
4265 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4266
4267 2014-03-22 Doug Evans <xdje42@gmail.com>
4268
4269 * infcmd.c: Whitespace fixes.
4270 (interrupt_command): Merge two function comments into one.
4271
4272 2014-03-22 Doug Evans <xdje42@gmail.com>
4273
4274 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4275 All uses updated.
4276
4277 2014-03-22 Yao Qi <yao@codesourcery.com>
4278
4279 * remote.c (target_read_live_memory): Remove.
4280 (memory_xfer_live_readonly_partial): Rename it to
4281 remote_xfer_live_readonly_partial. Remove argument 'object'.
4282 All callers updated. Call remote_read_bytes_1
4283 instead of target_read_live_memory.
4284 * tracepoint.c (set_traceframe_number): Remove.
4285 (make_cleanup_restore_traceframe_number): Likewise .
4286 * tracepoint.h (set_traceframe_number): Remove declaration.
4287 (make_cleanup_restore_traceframe_number): Likewise.
4288
4289 2014-03-22 Yao Qi <yao@codesourcery.com>
4290
4291 * remote.c (remote_read_bytes): Move code on reading from the
4292 remote stub to ...
4293 (remote_read_bytes_1): ... here. New function.
4294
4295 2014-03-22 Yao Qi <yao@codesourcery.com>
4296
4297 * ctf.c (ctf_xfer_partial): Check the return value of
4298 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4299 return TARGET_XFER_UNAVAILABLE.
4300 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4301 * target.c (target_read_live_memory): Move it to remote.c.
4302 (memory_xfer_live_readonly_partial): Likewise.
4303 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4304 * remote.c (target_read_live_memory): Moved from target.c.
4305 (memory_xfer_live_readonly_partial): Likewise.
4306 (remote_read_bytes): Factored out from
4307 memory_xfer_partial_1.
4308
4309 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4310
4311 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4312 NULL pointer.
4313
4314 2014-03-21 Pedro Alves <palves@redhat.com>
4315
4316 * infrun.c (normal_stop): Extend comment.
4317
4318 2014-03-21 Hui Zhu <hui@codesourcery.com>
4319 Pedro Alves <palves@redhat.com>
4320
4321 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4322 static buffer.
4323 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4324 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4325 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4326
4327 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4328
4329 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4330 `z' formatted output modifier.
4331
4332 2014-03-20 Tom Tromey <tromey@redhat.com>
4333 Sergio Durigan Junior <sergiodj@redhat.com>
4334
4335 * probe.c (parse_probes): Turn assert into an ordinary error.
4336 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4337 exceptions when parsing probes. Rearrange the code for clarity.
4338
4339 2014-03-20 Tom Tromey <tromey@redhat.com>
4340
4341 PR gdb/14135
4342 * top.c (execute_command): Only dispatch events if the command
4343 started the target.
4344
4345 2014-03-20 Tom Tromey <tromey@redhat.com>
4346
4347 PR cli/15718
4348 * infcall.c: Include event-top.h.
4349 (run_inferior_call): Call async_disable_stdin if needed.
4350
4351 2014-03-20 Pedro Alves <palves@redhat.com>
4352
4353 * infrun.c (prepare_to_proceed): Delete.
4354 (thread_still_needs_step_over): New function.
4355 (find_thread_needs_step_over): New function.
4356 (proceed): If the current thread needs a step-over, set its
4357 steping_over_breakpoint flag. Adjust to use
4358 find_thread_needs_step_over instead of prepare_to_proceed.
4359 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4360 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4361 breakpoint.
4362 (switch_back_to_stepped_thread): Step over breakpoints of all
4363 threads not the stepping thread, before switching back to the
4364 stepping thread.
4365
4366 2014-03-20 Pedro Alves <palves@redhat.com>
4367
4368 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4369 extern.
4370 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4371 * infrun.c (saved_singlestep_ptid)
4372 (stepping_past_singlestep_breakpoint): Delete.
4373 (resume): Remove stepping_past_singlestep_breakpoint handling.
4374 (proceed): Store the prev_pc of the stepping thread too.
4375 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4376 singlestep_pc.
4377 (enum infwait_states): Delete infwait_thread_hop_state.
4378 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4379 field.
4380 (handle_inferior_event): Adjust.
4381 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4382 handling and the thread-hop code. Before removing single-step
4383 breakpoints, check whether the thread hit a single-step breakpoint
4384 of another thread. If it did, the trap is not a random signal.
4385 (switch_back_to_stepped_thread): If the event thread hit a
4386 single-step breakpoint, unblock it before switching to the
4387 stepping thread. Handle the case of the stepped thread having
4388 advanced already.
4389 (keep_going): Handle the case of the current thread moving past a
4390 single-step breakpoint.
4391
4392 2014-03-20 Pedro Alves <palves@redhat.com>
4393
4394 PR breakpoints/7143
4395 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4396 are being stepped over.
4397 (breakpoint_address_match): Make extern.
4398 * breakpoint.h (breakpoint_address_match): New declaration.
4399 * inferior.h (stepping_past_instruction_at): New declaration.
4400 * infrun.c (struct step_over_info): New type.
4401 (step_over_info): New global.
4402 (set_step_over_info, clear_step_over_info)
4403 (stepping_past_instruction_at): New functions.
4404 (handle_inferior_event): Clear the step-over info when
4405 trap_expected is cleared.
4406 (resume): Remove now stale comment.
4407 (clear_proceed_status): Clear step-over info.
4408 (proceed): Adjust step-over handling to set or clear the step-over
4409 info instead of removing all breakpoints.
4410 (handle_signal_stop): When setting up a thread-hop, don't remove
4411 breakpoints here.
4412 (stop_stepping): Clear step-over info.
4413 (keep_going): Adjust step-over handling to set or clear step-over
4414 info and then always inserting breakpoints, instead of removing
4415 all breakpoints when stepping over one.
4416
4417 2014-03-20 Pedro Alves <palves@redhat.com>
4418
4419 * infrun.c (previous_inferior_ptid): Adjust comment.
4420 (deferred_step_ptid): Delete.
4421 (infrun_thread_ptid_changed, prepare_to_proceed)
4422 (init_wait_for_inferior): Adjust.
4423 (handle_signal_stop): Delete deferred_step_ptid handling.
4424
4425 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4426
4427 PR gdb/15358
4428 * defs.h (sync_quit_force_run): New declaration.
4429 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4430 * event-top.c (async_sigterm_handler): New declaration.
4431 (async_sigterm_token): New variable.
4432 (async_init_signals): Create also async_sigterm_token.
4433 (async_sigterm_handler): New function.
4434 (sync_quit_force_run): New variable.
4435 (handle_sigterm): Replace quit_force call by other calls.
4436 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4437
4438 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4439
4440 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4441 offset into SPE pseudo registers.
4442
4443 2014-03-18 Pedro Alves <palves@redhat.com>
4444
4445 PR gdb/13860
4446 * inferior.h (print_stop_event): Declare.
4447 * infrun.c (print_stop_event): New, factored out from ...
4448 (normal_stop): ... this.
4449 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4450 of bpstat_print/print_stack_frame.
4451
4452 2014-03-17 Tom Tromey <tromey@redhat.com>
4453
4454 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4455
4456 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4457
4458 * ada-lang.c (decode_constrained_packed_array): Perform a
4459 minimal coercion for reference with coerce_ref instead of
4460 ada_coerce_ref.
4461
4462 2014-03-17 Tristan Gingold <gingold@adacore.com>
4463
4464 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4465 (darwin_solib_create_inferior_hook): Emit a warning if version
4466 is unhandled.
4467
4468 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
4469
4470 * python/py-value.c (get_field_flag): Cast flag_name argument to
4471 PyObject_GetAttrString to support Python 2.4.
4472
4473 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4474
4475 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4476 (Global Maintainers): Remove Jan Kratochvil.
4477
4478 2014-03-14 Pedro Alves <palves@redhat.com>
4479
4480 * inferior.h (terminal_ours_for_output): Rename to ...
4481 (child_terminal_ours_for_output): ... this.
4482 (terminal_save_ours): Rename to ...
4483 (child_terminal_save_ours): ... this.
4484 (terminal_ours): Rename to ...
4485 (child_terminal_ours): ... this.
4486 (terminal_inferior): Rename to ...
4487 (child_terminal_inferior): ... this.
4488 (terminal_init_inferior): Rename to ...
4489 (child_terminal_init_inferior): ... this.
4490 (terminal_init_inferior_with_pgrp): Rename to ...
4491 (child_terminal_init_inferior_with_pgrp): ... this.
4492 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4493 (child_terminal_init_with_pgrp): ... this.
4494 (terminal_save_ours): Rename to ...
4495 (child_terminal_save_ours): ... this.
4496 (terminal_init_inferior): Rename to ...
4497 (child_terminal_init): ... this. Adjust.
4498 (terminal_inferior): Rename to ...
4499 (child_terminal_inferior): ... this.
4500 (terminal_ours_for_output): Rename to ...
4501 (child_terminal_ours_for_output): ... this. Adjust.
4502 (terminal_ours): Rename to ...
4503 (child_terminal_ours): ... this.
4504 (terminal_ours_1): Rename to ...
4505 (child_terminal_ours_1): ... this. Adjust.
4506 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4507 * windows-nat.c (do_initial_windows_stuff): Adjust.
4508 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4509 (gnu_terminal_init): ... this. Adjust.
4510 (gnu_target): Adjust.
4511 * inf-child.c (inf_child_target): Adjust.
4512
4513 2014-03-13 Doug Evans <xdje42@gmail.com>
4514
4515 PR guile/16612
4516 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4517 new eq?-hashtab.
4518
4519 2014-03-13 Doug Evans <xdje42@gmail.com>
4520
4521 * value.c (record_latest_value): Call release_value_or_incref
4522 instead of release_value.
4523
4524 2014-03-13 Pedro Alves <palves@redhat.com>
4525
4526 * procfs.c (procfs_target): Don't override to_shortname,
4527 to_longname or to_doc.
4528
4529 2014-03-13 Pedro Alves <palves@redhat.com>
4530
4531 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4532 Unix in user visible strings.
4533
4534 2014-03-12 Stan Shebs <stan@codesourcery.com>
4535
4536 * gdbtypes.h: Annotate comments for Doxygen, add a page
4537 block comment with some general info.
4538
4539 2014-03-12 Pedro Alves <palves@redhat.com>
4540
4541 * infcmd.c (prepare_execution_command): New function, factored out
4542 from several execution commands.
4543 (run_command_1, continue_command, step_1, jump_command)
4544 (signal_command, until_command, advance_command, finish_command)
4545 (attach_command): Use prepare_execution_command.
4546
4547 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4548
4549 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4550 (MAX_BPTS): Define.
4551 (MAX_WPTS): Define.
4552 (struct arm_linux_thread_points): Removed.
4553 (struct arm_linux_process_info): New.
4554 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4555 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4556 (arm_linux_find_breakpoints_by_tid): Removed.
4557 (struct arch_lwp_info): New.
4558 (arm_linux_find_process_pid): New functions.
4559 (arm_linux_add_process): New functions.
4560 (arm_linux_process_info_get): New functions.
4561 (arm_linux_forget_process): New function.
4562 (arm_linux_get_debug_reg_state): New function.
4563 (struct update_registers_data): New.
4564 (update_registers_callback): New function.
4565 (arm_linux_insert_hw_breakpoint1): Updated.
4566 (arm_linux_remove_hw_breakpoint1): Updated.
4567 (arm_linux_insert_hw_breakpoint): Updated.
4568 (arm_linux_remove_hw_breakpoint): Updated.
4569 (arm_linux_insert_watchpoint): Updated.
4570 (arm_linux_remove_watchpoint): Updated.
4571 (arm_linux_new_thread): Updated.
4572 (arm_linux_prepare_to_resume): New function.
4573 (arm_linux_new_fork): New function.
4574 (_initialize_arm_linux_nat): Updated.
4575
4576 2014-03-12 Pedro Alves <palves@redhat.com>
4577
4578 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4579
4580 2014-03-12 Tom Tromey <tromey@redhat.com>
4581
4582 * inf-child.c (return_zero): New function.
4583 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4584 * aix-thread.c (aix_thread_inferior_created): New function.
4585 (aix_thread_attach): Remove.
4586 (init_aix_thread_ops): Don't set to_attach.
4587 (_initialize_aix_thread): Register inferior_created observer.
4588 * corelow.c (init_core_ops): Don't set to_attach or
4589 to_create_inferior.
4590 * exec.c (init_exec_ops): Don't set to_attach or
4591 to_create_inferior.
4592 * infcmd.c (run_command_1): Use find_run_target. Make direct
4593 target calls.
4594 (attach_command): Use find_attach_target. Make direct target
4595 calls.
4596 * record-btrace.c (init_record_btrace_ops): Don't set
4597 to_create_inferior.
4598 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4599 Remove.
4600 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4601 set to_create_inferior.
4602 * target.c (complete_target_initialization): Add assertion.
4603 (target_create_inferior): Remove.
4604 (find_default_attach, find_default_create_inferior): Remove.
4605 (find_attach_target, find_run_target): New functions.
4606 (find_default_is_async_p, find_default_can_async_p)
4607 (target_supports_non_stop, target_attach): Remove.
4608 (init_dummy_target): Don't set to_create_inferior or
4609 to_supports_non_stop.
4610 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4611 TARGET_DEFAULT_FUNC.
4612 <to_create_inferior>: Add comment.
4613 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4614 TARGET_DEFAULT_RETURN.
4615 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4616 (find_attach_target, find_run_target): Declare.
4617 (target_create_inferior): Remove.
4618 (target_has_execution_1): Update comment.
4619 (target_supports_non_stop): Remove.
4620 * target-delegates.c: Rebuild.
4621
4622 2014-03-12 Pedro Alves <palves@redhat.com>
4623
4624 * inf-child.h: Update comment to not mention Unix.
4625
4626 2014-03-12 Pedro Alves <palves@redhat.com>
4627
4628 * inf-child.c: Update top comment to not mention Unix. Add
4629 generic comment describing how this target is meant to be used.
4630 (inf_child_post_attach, inf_child_post_startup_inferior)
4631 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4632 Unix in comment.
4633
4634 2014-03-12 Pedro Alves <palves@redhat.com>
4635
4636 * nto-procfs.c: Include inf-child.h.
4637 (procfs_ops): Delete global.
4638 (procfs_can_run): Delete method.
4639 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4640 target pointer instead of referencing procfs_ops.
4641 (procfs_prepare_to_store): Delete.
4642 (init_procfs_ops): Delete function.
4643 (procfs_target): New function, based on init_procfs_ops, but
4644 inherit inf_child_target.
4645 (_initialize_procfs): Use procfs_target.
4646
4647 2014-03-12 Pedro Alves <palves@redhat.com>
4648
4649 * windows-nat.c: Include inf-child.h.
4650 (windows_ops): Delete global.
4651 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4652 methods.
4653 (init_windows_ops): Delete function.
4654 (windows_target): New function, based on init_windows_ops, but
4655 inherit inf_child_target.
4656 (_initialize_windows_nat): Use windows_target. Install x86
4657 specific target methods here.
4658
4659 2014-03-10 Doug Evans <xdje42@gmail.com>
4660
4661 * guile/guile.c (call_initialize_gdb_module): New function.
4662 (initialize_guile): Replace call to scm_init_guile with call to
4663 scm_with_guile.
4664
4665 2014-03-10 Joel Brobecker <brobecker@adacore.com>
4666
4667 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4668 in call to TYPE_CODE macro.
4669
4670 2014-03-10 Jerome Guitton <guitton@adacore.com>
4671
4672 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4673 Resolve tagged types to full view.
4674
4675 2014-03-10 Hui Zhu <hui@codesourcery.com>
4676
4677 * target.h (target_insert_breakpoint): Remove "hardware" from its
4678 comments.
4679
4680 2014-03-07 Doug Evans <dje@google.com>
4681
4682 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4683
4684 2014-03-07 Doug Evans <dje@google.com>
4685
4686 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4687 Remove unused local comp_dir_attr. Assert exactly one of
4688 stub_comp_unit_die, stub_comp_dir is non-NULL.
4689
4690 2014-03-07 Joel Brobecker <brobecker@adacore.com>
4691
4692 * target.h (complete_target_initialization, add_target):
4693 Add comment.
4694
4695 2014-03-07 Pedro Alves <palves@redhat.com>
4696
4697 * go32-nat.c: Include inf-child.h.
4698 (go32_ops): Delete global.
4699 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4700 Delete methods.
4701 (go32_create_inferior): Push the passed in target pointer instead
4702 of referencing go32_ops.
4703 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4704 (go32_target): New function, based on init_go32_ops, but inherit
4705 inf_child_target.
4706 (_initialize_go32_nat): Use go32_target. Move parts of
4707 init_go32_ops here.
4708
4709 2014-03-06 Joel Brobecker <brobecker@adacore.com>
4710
4711 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4712 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4713 SYMBOL_VALUE_ADDRESS.
4714 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4715
4716 2014-03-06 Yao Qi <yao@codesourcery.com>
4717
4718 * breakpoint.c (get_tracepoint_by_number): Remove argument
4719 optional_p. All callers updated. Adjust comments. Update
4720 output message.
4721 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4722
4723 2014-03-06 Yao Qi <yao@codesourcery.com>
4724
4725 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4726 early if get_number returns zero. Use 'p' instead of 'args'.
4727
4728 2014-03-06 Yao Qi <yao@codesourcery.com>
4729
4730 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4731 message.
4732
4733 2014-03-06 Yao Qi <yao@codesourcery.com>
4734
4735 PR breakpoints/16508
4736 * tracepoint.c (check_trace_running): New function.
4737 (trace_find_command): Move code to check_trace_running and
4738 call check_trace_running.
4739 (trace_find_pc_command): Likewise.
4740 (trace_find_tracepoint_command): Likewise.
4741 (trace_find_line_command): Likewise.
4742 (trace_find_range_command): Likewise.
4743 * tracepoint.h (check_trace_running): Likewise.
4744 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4745
4746 2014-03-06 Yao Qi <yao@codesourcery.com>
4747
4748 * target.h (struct target_ops) <to_traceframe_info>: Use
4749 TARGET_DEFAULT_NORETURN (tcomplain ()).
4750 * target-delegates.c: Regenerated.
4751
4752 2014-03-05 Pedro Alves <palves@redhat.com>
4753
4754 PR gdb/16575
4755 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4756 void. Update comment.
4757 (dcache_xfer_memory): Delete.
4758 (dcache_read_memory_partial): New, based on the read bits of
4759 dcache_xfer_memory.
4760 (dcache_update): Add status parameter. Use ULONGEST for len, and
4761 adjust. Discard cache lines if the reason for the update was
4762 error.
4763 * dcache.h (dcache_xfer_memory): Delete declaration.
4764 (dcache_read_memory_partial): New declaration.
4765 (dcache_update): Update prototype.
4766 * target.c (raw_memory_xfer_partial): Update the dcache here.
4767 (memory_xfer_partial_1): Don't handle dcache writes here.
4768
4769 2014-03-05 Mike Frysinger <vapier@gentoo.org>
4770
4771 * remote-sim.c (gdbsim_load): Add const to prog.
4772
4773 2014-03-03 Tom Tromey <tromey@redhat.com>
4774
4775 * elfread.c (probe_key): Change to bfd_data.
4776 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4777 now per-BFD, not per-objfile.
4778 * stap-probe.c (stap_probe_destroy): Update comment.
4779 (handle_stap_probe): Allocate on the per-BFD obstack.
4780
4781 2014-03-03 Tom Tromey <tromey@redhat.com>
4782
4783 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4784 * breakpoint.c (create_longjmp_master_breakpoint): Use
4785 get_probe_address.
4786 (add_location_to_breakpoint, bkpt_probe_insert_location)
4787 (bkpt_probe_remove_location): Update.
4788 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4789 * elfread.c (elf_symfile_relocate_probe): Remove.
4790 (elf_probe_fns): Update.
4791 (insert_exception_resume_breakpoint): Change type of "probe"
4792 parameter to bound_probe.
4793 (check_exception_resume): Update.
4794 * objfiles.c (objfile_relocate1): Don't relocate probes.
4795 * probe.c (bound_probe_s): New typedef.
4796 (parse_probes): Use get_probe_address. Set sal's objfile.
4797 (find_probe_by_pc): Return a bound_probe.
4798 (collect_probes): Return a VEC(bound_probe_s).
4799 (compare_probes): Update.
4800 (gen_ui_out_table_header_info): Change type of "probes"
4801 parameter. Update.
4802 (info_probes_for_ops): Update.
4803 (get_probe_address): New function.
4804 (probe_safe_evaluate_at_pc): Update.
4805 * probe.h (struct probe_ops) <get_probe_address>: New field.
4806 <set_semaphore, clear_semaphore>: Add objfile parameter.
4807 (struct probe) <objfile>: Remove field.
4808 <arch>: New field.
4809 <address>: Update comment.
4810 (struct bound_probe): New.
4811 (find_probe_by_pc): Return a bound_probe.
4812 (get_probe_address): Declare.
4813 * solib-svr4.c (struct probe_and_action) <address>: New field.
4814 (hash_probe_and_action, equal_probe_and_action): Update.
4815 (register_solib_event_probe): Add address parameter.
4816 (solib_event_probe_at): Update.
4817 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4818 get_probe_address.
4819 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4820 (stap_get_probe_address): New function.
4821 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4822 (compile_probe_arg): Update.
4823 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4824 address.
4825 (handle_stap_probe): Don't relocate the probe.
4826 (stap_relocate): Remove.
4827 (stap_gen_info_probes_table_values): Update.
4828 (stap_probe_ops): Remove stap_relocate.
4829 * symfile-debug.c (debug_sym_relocate_probe): Remove.
4830 (debug_sym_probe_fns): Update.
4831 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
4832 * symtab.c (init_sal): Use memset.
4833 * symtab.h (struct symtab_and_line) <objfile>: New field.
4834 * tracepoint.c (start_tracing, stop_tracing): Update.
4835
4836 2014-03-03 Tom Tromey <tromey@redhat.com>
4837
4838 * probe.h (parse_probes, find_probe_by_pc)
4839 (find_probes_in_objfile): Fix comments.
4840
4841 2014-03-02 Doug Evans <xdje42@gmail.com>
4842
4843 * infrun.c (handle_signal_stop): Replace test for
4844 TARGET_WAITKIND_STOPPED with an assert.
4845
4846 2014-03-02 Doug Evans <xdje42@gmail.com>
4847
4848 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4849
4850 2014-03-02 Doug Evans <xdje42@gmail.com>
4851
4852 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4853
4854 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4855
4856 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4857
4858 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4859
4860 * i386obsd-nat.c: Include "obsd-nat.h".
4861 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4862 add_target.
4863 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4864
4865 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4866
4867 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4868
4869 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4870
4871 * mips64obsd-nat.c: Include "obsd-nath".
4872 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4873 add_target
4874 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4875
4876 2014-03-01 Mark Kettenis <kettenis@gnu.org>
4877
4878 * amd64obsd-nat.c: Include "obsd-nat,h.
4879 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4880 add_target.
4881 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4882
4883 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4884
4885 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4886 (find_overload_match): Update call to find_oload_champ.
4887 (find_oload_champ_namespace_loop): Likewise
4888
4889 2014-02-28 Mark Kettenis <kettenis@gnu.org>
4890
4891 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4892
4893 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4894 * config/sparc/obsd64.mh: New file.
4895 * sparc64obsd-nat.c: New file.
4896
4897 * obsd-nat.h: New file.
4898 * obsd-nat.c: New file.
4899 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4900 (ALLDEPFILES): Add obsd-nat.c.
4901
4902 2014-02-28 Tom Tromey <tromey@redhat.com>
4903
4904 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4905 * cli-out.h (cli_ui_out_impl): Now const.
4906 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4907 * ui-out.c (struct ui_out) <impl>: Now const.
4908 (default_ui_out_impl): Now const.
4909 (ui_out_new): Make 'impl' parameter const.
4910 * ui-out.h (ui_out_new): Update.
4911
4912 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4913
4914 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4915
4916 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4917
4918 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4919
4920 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4921
4922 Additional PR 8882 fix.
4923 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4924
4925 2014-02-27 Pedro Alves <palves@redhat.com>
4926
4927 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4928 isn't set.
4929
4930 2014-02-27 Pedro Alves <palves@redhat.com>
4931
4932 PR 12702
4933 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4934 * nat/linux-waitpid.c: Include string.h.
4935 (status_to_str): Moved here and made extern.
4936 * nat/linux-waitpid.h (status_to_str): New declaration.
4937
4938 2014-02-27 Hui Zhu <hui@codesourcery.com>
4939
4940 PR 12702
4941 * infrun.c (ptid_match): Move ...
4942 * common/ptid.c (ptid_match): ... here.
4943 * inferior.h (ptid_match): Move ...
4944 * common/ptid.h (ptid_match): ... here.
4945
4946 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4947
4948 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4949 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4950 gdb_target_obs.
4951
4952 2014-02-27 Mark Kettenis <kettenis@gnu.org>
4953
4954 * obsd-tdep.c (obsd_auxv_parse): New function.
4955 (obsd_init_abi): Set auxv_parse.
4956
4957 * gdbarch.sh (auxv_parse): New.
4958 * gdbarch.h: Regenerated.
4959 * gdbarch.c: Regenerated.
4960 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4961
4962 2014-02-26 Ludovic Courtès <ludo@gnu.org>
4963
4964 * guile/scm-value.c (gdbscm_history_append_x): New function.
4965 (value_functions): Add it.
4966
4967 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4968
4969 * dwarf2read.c (attr_value_as_address): New function.
4970 (dwarf2_find_base_address, read_call_site_scope): Use
4971 attr_value_as_address in place of DW_ADDR.
4972 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4973 the low and high addresses. Slight rework of the handling
4974 of the high pc being a constant form, and limit it to
4975 DWARF verson 4 or higher.
4976 (dwarf2_record_block_ranges): Likewise.
4977 (read_partial_die): Likewise.
4978 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4979
4980 2014-02-26 Tom Tromey <tromey@redhat.com>
4981
4982 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4983
4984 2014-02-26 Tom Tromey <tromey@redhat.com>
4985
4986 * elfread.c (elf_read_minimal_symbols): Return early if
4987 minimal symbols have already been read. Add "ei" parameter.
4988 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4989 * minsyms.c (prim_record_minimal_symbol_full): Update.
4990 * objfiles.h (struct objstats) <n_minsyms>: Move...
4991 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4992 * symmisc.c (print_objfile_statistics): Update.
4993
4994 2014-02-26 Tom Tromey <tromey@redhat.com>
4995
4996 * elfread.c (elf_read_minimal_symbols): New function, from
4997 elf_symfile_read.
4998 (elf_symfile_read): Call it.
4999
5000 2014-02-26 Tom Tromey <tromey@redhat.com>
5001
5002 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
5003 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5004 (lookup_minimal_symbol_solib_trampoline)
5005 (lookup_minimal_symbol_by_pc_section_1)
5006 (lookup_minimal_symbol_and_objfile): Update.
5007 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
5008 Don't allocate a minimal symbol if minsyms have already been read.
5009 (build_minimal_symbol_hash_tables): Update.
5010 (install_minimal_symbols): Do nothing if minsyms already read.
5011 Use the per-BFD obstack.
5012 (terminate_minimal_symbol_table): Use the per-BFD obstack.
5013 * objfiles.c (allocate_objfile): Call
5014 terminate_minimal_symbol_table later.
5015 (have_minimal_symbols): Update.
5016 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
5017 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
5018 Move from struct objfile.
5019 <minsyms_read>: New field.
5020 (struct objfile) <msymbols, minimal_symbol_count,
5021 msymbol_hash, msymbol_demangled_hash>: Move.
5022 (ALL_OBJFILE_MSYMBOLS): Update.
5023 * symfile.c (read_symbols): Set minsyms_read.
5024 (reread_symbols): Update.
5025 * symmisc.c (dump_objfile, dump_msymbols): Update.
5026
5027 2014-02-26 Tom Tromey <tromey@redhat.com>
5028
5029 * minsyms.c (msymbols_sort): Remove.
5030 * minsyms.h (msymbols_sort): Remove.
5031 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
5032 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
5033 * elfread.c (elf_symtab_read): Don't add section offsets.
5034 * xcoffread.c (record_minimal_symbol): Don't add section offset
5035 to minimal symbol address.
5036 * somread.c (text_offset, data_offset): Remove.
5037 (som_symtab_read): Don't add section offsets to minimal symbol
5038 addresses.
5039 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5040 Don't add section offsets to minimal symbols.
5041 * coffread.c (coff_symtab_read): Don't add section offsets
5042 to minimal symbol addresses.
5043 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5044 to minimal symbol addresses.
5045 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5046 section offset to minimal symbol addresses.
5047 * mdebugread.c (parse_partial_symbols): Don't add section
5048 offset to minimal symbol addresses.
5049 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5050 offset to minimal symbol addresses.
5051
5052 2014-02-26 Tom Tromey <tromey@redhat.com>
5053
5054 * ada-lang.c (ada_main_name): Update.
5055 (ada_add_standard_exceptions): Update.
5056 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5057 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5058 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5059 * auxv.c (ld_so_xfer_auxv): Update.
5060 * avr-tdep.c (avr_scan_prologue): Update.
5061 * ax-gdb.c (gen_var_ref): Update.
5062 * blockframe.c (get_pc_function_start)
5063 (find_pc_partial_function_gnu_ifunc): Update.
5064 * breakpoint.c (create_overlay_event_breakpoint)
5065 (create_longjmp_master_breakpoint)
5066 (create_std_terminate_master_breakpoint)
5067 (create_exception_master_breakpoint): Update.
5068 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5069 * c-valprint.c (c_val_print): Update.
5070 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5071 * common/agent.c (agent_look_up_symbols): Update.
5072 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5073 * dwarf2loc.c (call_site_to_target_addr): Update.
5074 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5075 * elfread.c (elf_gnu_ifunc_record_cache)
5076 (elf_gnu_ifunc_resolve_by_got): Update.
5077 * findvar.c (default_read_var_value): Update.
5078 * frame.c (inside_main_func): Update.
5079 * frv-tdep.c (frv_frame_this_id): Update.
5080 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5081 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5082 Update.
5083 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5084 (hppa_hpux_find_dummy_bpaddr): Update.
5085 * hppa-tdep.c (hppa_symbol_address): Update.
5086 * infcmd.c (until_next_command): Update.
5087 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5088 Update.
5089 * linespec.c (minsym_found, add_minsym): Update.
5090 * linux-nat.c (get_signo): Update.
5091 * linux-thread-db.c (inferior_has_bug): Update.
5092 * m32c-tdep.c (m32c_return_value)
5093 (m32c_m16c_address_to_pointer): Update.
5094 * m32r-tdep.c (m32r_frame_this_id): Update.
5095 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5096 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5097 * maint.c (maintenance_translate_address): Update.
5098 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5099 (frob_address): New function.
5100 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5101 frob_address. Rename parameter to "pc_in".
5102 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5103 addresses.
5104 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5105 Update.
5106 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5107 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5108 * objc-lang.c (find_objc_msgsend): Update.
5109 * objfiles.c (objfile_relocate1): Update.
5110 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5111 * p-valprint.c (pascal_val_print): Update.
5112 * parse.c (write_exp_msymbol): Update.
5113 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5114 (ppc_elfv2_skip_entrypoint): Update.
5115 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5116 * printcmd.c (build_address_symbolic, msym_info)
5117 (address_info): Update.
5118 * proc-service.c (ps_pglobal_lookup): Update.
5119 * psymtab.c (find_pc_sect_psymtab_closer)
5120 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5121 Change msymbol parameter to bound_minimal_symbol.
5122 * ravenscar-thread.c (get_running_thread_id): Update.
5123 * remote.c (remote_check_symbols): Update.
5124 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5125 address.
5126 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5127 * solib-dsbt.c (lm_base): Update.
5128 * solib-frv.c (lm_base, main_got): Update.
5129 * solib-irix.c (locate_base): Update.
5130 * solib-som.c (som_solib_create_inferior_hook)
5131 (link_map_start): Update.
5132 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5133 * solib-svr4.c (elf_locate_base, enable_break): Update.
5134 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5135 (flush_ea_cache): Update.
5136 * stabsread.c (define_symbol, scan_file_globals): Update.
5137 * stack.c (find_frame_funname): Update.
5138 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5139 (debug_qf_find_pc_sect_symtab): Update.
5140 * symfile.c (simple_read_overlay_table)
5141 (simple_overlay_update): Update.
5142 * symfile.h (struct quick_symbol_functions)
5143 <find_pc_sect_symtab>: Change type of msymbol to
5144 bound_minimal_symbol.
5145 * symmisc.c (dump_msymbols): Update.
5146 * symtab.c (find_pc_sect_symtab_via_partial)
5147 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5148 (search_symbols, print_msymbol_info): Update.
5149 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5150 (MSYMBOL_VALUE_ADDRESS): Redefine.
5151 (BMSYMBOL_VALUE_ADDRESS): New macro.
5152 * tracepoint.c (scope_info): Update.
5153 * tui/tui-disasm.c (tui_find_disassembly_address)
5154 (tui_get_begin_asm_address): Update.
5155 * valops.c (find_function_in_inferior): Update.
5156 * value.c (value_static_field, value_fn_field): Update.
5157
5158 2014-02-26 Tom Tromey <tromey@redhat.com>
5159
5160 * ada-lang.c (ada_update_initial_language): Update.
5161 (ada_main_name, ada_has_this_exception_support): Update.
5162 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5163 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5164 * arm-tdep.c (arm_skip_stub): Update.
5165 * auxv.c (ld_so_xfer_auxv): Update.
5166 * avr-tdep.c (avr_scan_prologue): Update.
5167 * ax-gdb.c (gen_var_ref): Update.
5168 * breakpoint.c (struct breakpoint_objfile_data)
5169 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5170 type to bound_minimal_symbol.
5171 (create_overlay_event_breakpoint)
5172 (create_longjmp_master_breakpoint)
5173 (create_std_terminate_master_breakpoint)
5174 (create_exception_master_breakpoint): Update.
5175 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5176 * c-exp.y (classify_name): Update.
5177 * coffread.c (coff_symfile_read): Update.
5178 * common/agent.c (agent_look_up_symbols): Update.
5179 * d-lang.c (d_main_name): Update.
5180 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5181 * dec-thread.c (enable_dec_thread): Update.
5182 * dwarf2loc.c (call_site_to_target_addr): Update.
5183 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5184 * eval.c (evaluate_subexp_standard): Update.
5185 * findvar.c (struct minsym_lookup_data) <result>: Change type
5186 to bound_minimal_symbol.
5187 <objfile>: Remove.
5188 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5189 * frame.c (inside_main_func): Update.
5190 * frv-tdep.c (frv_frame_this_id): Update.
5191 * gcore.c (call_target_sbrk): Update.
5192 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5193 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5194 Update.
5195 * go-lang.c (go_main_name): Update.
5196 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5197 (hppa_hpux_find_import_stub_for_addr): Update.
5198 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5199 Update. Change return type.
5200 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5201 type.
5202 * jit.c (jit_breakpoint_re_set_internal): Update.
5203 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5204 Update.
5205 * linux-nat.c (get_signo): Update.
5206 * linux-thread-db.c (inferior_has_bug): Update
5207 * m32c-tdep.c (m32c_return_value)
5208 (m32c_m16c_address_to_pointer): Update.
5209 * m32r-tdep.c (m32r_frame_this_id): Update.
5210 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5211 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5212 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5213 lookup_minimal_symbol. Change return type.
5214 (lookup_minimal_symbol): Remove.
5215 (lookup_bound_minimal_symbol): Update.
5216 (lookup_minimal_symbol_text): Change return type.
5217 (lookup_minimal_symbol_solib_trampoline): Change return type.
5218 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5219 (lookup_minimal_symbol_solib_trampoline): Change return type.
5220 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5221 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5222 (value_nsstring, find_imps): Update.
5223 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5224 * p-lang.c (pascal_main_name): Update.
5225 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5226 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5227 * proc-service.c (ps_pglobal_lookup): Update.
5228 * ravenscar-thread.c (get_running_thread_msymbol): Change
5229 return type.
5230 (has_ravenscar_runtime, get_running_thread_id): Update.
5231 * remote.c (remote_check_symbols): Update.
5232 * sol-thread.c (ps_pglobal_lookup): Update.
5233 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5234 * solib-dsbt.c (lm_base): Update.
5235 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5236 Update.
5237 * solib-irix.c (locate_base): Update.
5238 * solib-som.c (som_solib_create_inferior_hook)
5239 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5240 Update.
5241 * solib-spu.c (spu_enable_break): Update.
5242 * solib-svr4.c (elf_locate_base, enable_break): Update.
5243 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5244 (flush_ea_cache): Update.
5245 * stabsread.c (define_symbol): Update.
5246 * symfile.c (simple_read_overlay_table): Update.
5247 * symtab.c (find_pc_sect_line): Update.
5248 * tracepoint.c (scope_info): Update.
5249 * tui-disasm.c (tui_get_begin_asm_address): Update.
5250 * value.c (value_static_field): Update.
5251
5252 2014-02-26 Tom Tromey <tromey@redhat.com>
5253
5254 * minsyms.c (prim_record_minimal_symbol_full): Use
5255 SET_MSYMBOL_VALUE_ADDRESS.
5256 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5257 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5258 SET_MSYMBOL_VALUE_ADDRESS.
5259 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5260 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5261
5262 2014-02-26 Tom Tromey <tromey@redhat.com>
5263
5264 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5265 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5266 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5267 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5268 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5269 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5270 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5271 * ada-lang.c (ada_main_name): Update.
5272 (ada_lookup_simple_minsym): Update.
5273 (ada_make_symbol_completion_list): Update.
5274 (ada_add_standard_exceptions): Update.
5275 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5276 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5277 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5278 * arm-tdep.c (skip_prologue_function): Update.
5279 (arm_skip_stack_protector, arm_skip_stub): Update.
5280 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5281 (arm_wince_skip_main_prologue): Update.
5282 * auxv.c (ld_so_xfer_auxv): Update.
5283 * avr-tdep.c (avr_scan_prologue): Update.
5284 * ax-gdb.c (gen_var_ref): Update.
5285 * block.c (call_site_for_pc): Update.
5286 * blockframe.c (get_pc_function_start): Update.
5287 (find_pc_partial_function_gnu_ifunc): Update.
5288 * breakpoint.c (create_overlay_event_breakpoint): Update.
5289 (create_longjmp_master_breakpoint): Update.
5290 (create_std_terminate_master_breakpoint): Update.
5291 (create_exception_master_breakpoint): Update.
5292 (resolve_sal_pc): Update.
5293 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5294 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5295 Update.
5296 * c-valprint.c (c_val_print): Update.
5297 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5298 * coffread.c (coff_symfile_read): Update.
5299 * common/agent.c (agent_look_up_symbols): Update.
5300 * dbxread.c (find_stab_function_addr): Update.
5301 (end_psymtab): Update.
5302 * dwarf2loc.c (call_site_to_target_addr): Update.
5303 (func_verify_no_selftailcall): Update.
5304 (tailcall_dump): Update.
5305 (call_site_find_chain_1): Update.
5306 (dwarf_expr_reg_to_entry_parameter): Update.
5307 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5308 (elf_gnu_ifunc_resolve_by_got): Update.
5309 * f-valprint.c (info_common_command): Update.
5310 * findvar.c (read_var_value): Update.
5311 * frame.c (get_prev_frame_1): Update.
5312 (inside_main_func): Update.
5313 * frv-tdep.c (frv_skip_main_prologue): Update.
5314 (frv_frame_this_id): Update.
5315 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5316 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5317 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5318 (gnuv3_skip_trampoline): Update.
5319 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5320 (hppa64_hpux_in_solib_call_trampoline): Update.
5321 (hppa_hpux_skip_trampoline_code): Update.
5322 (hppa64_hpux_search_dummy_call_sequence): Update.
5323 (hppa_hpux_find_import_stub_for_addr): Update.
5324 (hppa_hpux_find_dummy_bpaddr): Update.
5325 * hppa-tdep.c (hppa_symbol_address)
5326 (hppa_lookup_stub_minimal_symbol): Update.
5327 * i386-tdep.c (i386_skip_main_prologue): Update.
5328 (i386_pe_skip_trampoline_code): Update.
5329 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5330 * infcall.c (get_function_name): Update.
5331 * infcmd.c (until_next_command): Update.
5332 * jit.c (jit_breakpoint_re_set_internal): Update.
5333 (jit_inferior_init): Update.
5334 * linespec.c (minsym_found): Update.
5335 (add_minsym): Update.
5336 * linux-fork.c (info_checkpoints_command): Update.
5337 * linux-nat.c (get_signo): Update.
5338 * linux-thread-db.c (inferior_has_bug): Update.
5339 * m32c-tdep.c (m32c_return_value): Update.
5340 (m32c_m16c_address_to_pointer): Update.
5341 (m32c_m16c_pointer_to_address): Update.
5342 * m32r-tdep.c (m32r_frame_this_id): Update.
5343 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5344 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5345 * maint.c (maintenance_translate_address): Update.
5346 * minsyms.c (add_minsym_to_hash_table): Update.
5347 (add_minsym_to_demangled_hash_table): Update.
5348 (msymbol_objfile): Update.
5349 (lookup_minimal_symbol): Update.
5350 (iterate_over_minimal_symbols): Update.
5351 (lookup_minimal_symbol_text): Update.
5352 (lookup_minimal_symbol_by_pc_name): Update.
5353 (lookup_minimal_symbol_solib_trampoline): Update.
5354 (lookup_minimal_symbol_by_pc_section_1): Update.
5355 (lookup_minimal_symbol_and_objfile): Update.
5356 (prim_record_minimal_symbol_full): Update.
5357 (compare_minimal_symbols): Update.
5358 (compact_minimal_symbols): Update.
5359 (build_minimal_symbol_hash_tables): Update.
5360 (install_minimal_symbols): Update.
5361 (terminate_minimal_symbol_table): Update.
5362 (find_solib_trampoline_target): Update.
5363 (minimal_symbol_upper_bound): Update.
5364 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5365 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5366 (mips_skip_pic_trampoline_code): Update.
5367 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5368 * objc-lang.c (selectors_info): Update.
5369 (classes_info): Update.
5370 (find_methods): Update.
5371 (find_imps): Update.
5372 (find_objc_msgsend): Update.
5373 * objfiles.c (objfile_relocate1): Update.
5374 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5375 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5376 * p-valprint.c (pascal_val_print): Update.
5377 * parse.c (write_exp_msymbol): Update.
5378 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5379 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5380 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5381 * printcmd.c (build_address_symbolic): Update.
5382 (sym_info): Update.
5383 (address_info): Update.
5384 * proc-service.c (ps_pglobal_lookup): Update.
5385 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5386 (find_pc_sect_psymtab): Update.
5387 * python/py-framefilter.c (py_print_frame): Update.
5388 * ravenscar-thread.c (get_running_thread_id): Update.
5389 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5390 Update.
5391 * remote.c (remote_check_symbols): Update.
5392 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5393 (rs6000_skip_trampoline_code): Update.
5394 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5395 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5396 * solib-dsbt.c (lm_base): Update.
5397 * solib-frv.c (lm_base): Update.
5398 (main_got): Update.
5399 * solib-irix.c (locate_base): Update.
5400 * solib-som.c (som_solib_create_inferior_hook): Update.
5401 (som_solib_desire_dynamic_linker_symbols): Update.
5402 (link_map_start): Update.
5403 * solib-spu.c (spu_enable_break): Update.
5404 (ocl_enable_break): Update.
5405 * solib-svr4.c (elf_locate_base): Update.
5406 (enable_break): Update.
5407 * spu-tdep.c (spu_get_overlay_table): Update.
5408 (spu_catch_start): Update.
5409 (flush_ea_cache): Update.
5410 * stabsread.c (define_symbol): Update.
5411 (scan_file_globals): Update.
5412 * stack.c (find_frame_funname): Update.
5413 (frame_info): Update.
5414 * symfile.c (simple_read_overlay_table): Update.
5415 (simple_overlay_update): Update.
5416 * symmisc.c (dump_msymbols): Update.
5417 * symtab.c (fixup_section): Update.
5418 (find_pc_sect_line): Update.
5419 (skip_prologue_sal): Update.
5420 (search_symbols): Update.
5421 (print_msymbol_info): Update.
5422 (rbreak_command): Update.
5423 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5424 (completion_list_objc_symbol): Update.
5425 (default_make_symbol_completion_list_break_on): Update.
5426 * tracepoint.c (scope_info): Update.
5427 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5428 (tui_get_begin_asm_address): Update.
5429 * valops.c (find_function_in_inferior): Update.
5430 * value.c (value_static_field): Update.
5431 (value_fn_field): Update.
5432
5433 2014-02-26 Tom Tromey <tromey@redhat.com>
5434
5435 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5436 bound minimal symbols. Move code that knows about minsym
5437 table layout...
5438 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5439 function.
5440 * minsyms.h (minimal_symbol_upper_bound): Declare.
5441 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5442 minimal_symbol_upper_bound.
5443
5444 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5445
5446 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5447 Use the type's name if its basic type does not have a tag.
5448
5449 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5450
5451 * dwarf2read.c (read_subrange_type): Add comment.
5452
5453 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5454
5455 * dwarf2read.c (update_enumeration_type_from_children): New
5456 function, mostly extracted from process_structure_scope.
5457 (read_enumeration_type): Call update_enumeration_type_from_children.
5458 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5459 and flag_flag_enum fields.
5460
5461 2014-02-26 Pedro Alves <palves@redhat.com>
5462
5463 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5464 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5465 to_xfer_partial method.
5466
5467 2014-02-26 Pedro Alves <palves@redhat.com>
5468
5469 * target.c (complete_target_initialization): Don't install
5470 default_xfer_partial as to_xfer_partial hook.
5471 (nomemory): Delete.
5472 (update_current_target): Don't INHERIT nor de_fault
5473 deprecated_xfer_memory. Delete de_fault macro.
5474 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5475 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5476 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5477 field.
5478
5479 2014-02-26 Pedro Alves <palves@redhat.com>
5480
5481 * go32-nat.c (my_write_child): New function.
5482 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5483 (go32_xfer_partial): New function.
5484 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5485 Instead install a to_xfer_partial hook.
5486
5487 2014-02-26 Pedro Alves <palves@redhat.com>
5488
5489 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5490 to_xfer_partial helper. Rewrite.
5491 (procfs_xfer_partial): New function.
5492 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5493 Install a to_xfer_partial hook.
5494
5495 2014-02-26 Pedro Alves <palves@redhat.com>
5496
5497 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5498 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5499 (m32r_xfer_partial): New function.
5500 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5501 Install a to_xfer_partial hook.
5502
5503 2014-02-26 Pedro Alves <palves@redhat.com>
5504
5505 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5506 helper.
5507 (mips_xfer_partial): New function.
5508 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5509 hook. Install a to_xfer_partial hook.
5510
5511 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5512
5513 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5514 * gdbtypes.c (create_array_type_with_stride): New function,
5515 renaming create_array_type, but with an added parameter
5516 called "bit_stride".
5517 (create_array_type): Re-implement using
5518 create_array_type_with_stride.
5519 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5520 and DW_AT_bit_stride attributes.
5521
5522 2014-02-26 Pedro Alves <palves@redhat.com>
5523
5524 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5525 task-specific breakpoints.
5526
5527 2014-02-25 Pedro Alves <palves@redhat.com>
5528
5529 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5530 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5531
5532 2014-02-25 Stan Shebs <stan@codesourcery.com>
5533
5534 * defs.h: Annotate comments for Doxygen.
5535
5536 2014-02-25 Tom Tromey <tromey@redhat.com>
5537
5538 * target.h (target_ignore): Don't declare.
5539 * target.c (target_ignore): Remove.
5540
5541 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5542
5543 PR gdb/16626
5544 * auto-load.c (auto_load_objfile_script_1): Change filename to
5545 debugfile.
5546
5547 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5548
5549 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5550 documentation. Adjust prototype to match the target_ops
5551 to_xfer_partial method. Adjust implementation accordingly.
5552
5553 2014-02-25 Hui Zhu <hui@codesourcery.com>
5554
5555 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5556 to_traceframe_info.
5557
5558 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5559
5560 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5561 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5562 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5563 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5564 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5565 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5566 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5567 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5568 New constants.
5569 (rl78_register_type): Use a data pointer type for SP and
5570 new pseudo registers mentioned above. Use a 16 bit integer
5571 type for all other register pairs.
5572 (rl78_register_name, rl78_g10_register_name): Update for
5573 new pseudo registers.
5574 (rl78_pseudo_register_read): Likewise.
5575 (rl78_pseudo_register_write): Likewise.
5576 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5577 to the newly added pseudo registers.
5578
5579 2014-02-24 Doug Evans <dje@google.com>
5580
5581 * value.c (record_latest_value): Fix comment.
5582 * printcmd.c (print_command_1): Remove code to handle -1 return from
5583 record_latest_value.
5584
5585 2014-02-24 Pedro Alves <palves@redhat.com>
5586
5587 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5588 deprecated_xfer_memory hook.
5589 (procfs_xfer_partial): Call procfs_xfer_memory instead
5590 of the deprecated_xfer_memory target hook.
5591 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5592 helper.
5593
5594 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5595
5596 * windows-nat.c (windows_xfer_shared_libraries): Return
5597 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5598 requested object is TARGET_OBJECT_LIBRARIES.
5599
5600 2014-02-24 Yao Qi <yao@codesourcery.com>
5601
5602 * target.h (enum target_xfer_status)
5603 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5604 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5605 explicitly. New.
5606 * corefile.c (memory_error_message): User updated.
5607 * exec.c (section_table_read_available_memory): Likewise.
5608 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5609 * target.c (target_xfer_status_to_string): Likewise.
5610 (raw_memory_xfer_partial): Likewise.
5611 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5612 * valops.c (read_value_memory): Likewise.
5613 * exec.h: Update comments.
5614
5615 2014-02-24 Yao Qi <yao@codesourcery.com>
5616
5617 * target.c (target_xfer_status_to_string): Rename argument err
5618 to status.
5619 * target.h (target_xfer_status_to_string): Update declaration.
5620 Replace target_xfer_error_to_string with
5621 target_xfer_status_to_string in comment.
5622
5623 2014-02-24 Yao Qi <yao@codesourcery.com>
5624
5625 * mips-linux-nat.c (super_close): Update its type.
5626 (mips_linux_close): Pass 'self' to super_close.
5627
5628 2014-02-24 Yao Qi <yao@codesourcery.com>
5629
5630 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5631 * corefile.c (read_memory): Adjusted.
5632 * target.c (target_write_with_progress): Adjusted.
5633
5634 2014-02-23 Yao Qi <yao@codesourcery.com>
5635
5636 Revert two patches:
5637
5638 2013-10-25 Yao Qi <yao@codesourcery.com>
5639
5640 * remote.c (remote_traceframe_info): Return early if
5641 traceframe is not selected.
5642
5643 2013-07-19 Yao Qi <yao@codesourcery.com>
5644
5645 * target.c (update_current_target): Change the default action
5646 of 'to_traceframe_info' from tcomplain to return_zero.
5647 * target.h (struct target_ops) <to_traceframe_info>: Add more
5648 comments.
5649
5650 2014-02-23 Yao Qi <yao@codesourcery.com>
5651
5652 * valops.c (read_value_memory): Rewrite it. Call
5653 target_xfer_partial in a loop.
5654 * exec.h (section_table_available_memory): Remove declaration.
5655 Move comments to ...
5656 * exec.c (section_table_available_memory): ... here. Make it
5657 static.
5658
5659 2014-02-23 Yao Qi <yao@codesourcery.com>
5660
5661 * exec.c (section_table_read_available_memory): New function.
5662 * exec.h (section_table_read_available_memory): Declare.
5663 * ctf.c (ctf_xfer_partial): Call
5664 section_table_read_available_memory.
5665 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5666
5667 2014-02-23 Yao Qi <yao@codesourcery.com>
5668
5669 * ctf.c (ctf_xfer_partial): Move code to ...
5670 * exec.c (exec_read_partial_read_only): ... it. New function.
5671 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5672 * tracefile.c: Include "exec.h".
5673 * exec.h (exec_read_partial_read_only): Declare.
5674
5675 2014-02-23 Yao Qi <yao@codesourcery.com>
5676
5677 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5678 (tfile_has_memory): Remove.
5679 (init_tfile_ops): Don't set fields to_has_all_memory and
5680 to_has_memory of tfile_ops.
5681 * tracefile.c (tracefile_has_all_memory): New function.
5682 (tracefile_has_memory): New function.
5683 (init_tracefile_ops): Initialize fields to_has_all_memory and
5684 to_has_memory of 'ops'.
5685
5686 2014-02-23 Yao Qi <yao@codesourcery.com>
5687
5688 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5689 (ctf_thread_alive, ctf_get_trace_status): Remove.
5690 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5691 init_tracefile_ops.
5692 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5693 (tfile_has_stack, tfile_has_registers): Remove.
5694 (tfile_thread_alive): Remove.
5695 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5696 init_tracefile_ops.
5697 * tracefile.c (tracefile_has_stack): New function.
5698 (tracefile_has_registers): New function.
5699 (tracefile_thread_alive): New function.
5700 (tracefile_get_trace_status): New function.
5701 (init_tracefile_ops): New function.
5702 * tracefile.h (init_tracefile_ops): Declare.
5703
5704 2014-02-23 Yao Qi <yao@codesourcery.com>
5705
5706 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5707 (O_LARGEFILE): Likewise.
5708 (tfile_ops): Likewise.
5709 (TRACE_HEADER_SIZE): Likewise.
5710 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5711 (cur_data_size): Likewise.
5712 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5713 (tfile_close, tfile_files_info): Likewise.
5714 (tfile_get_trace_status): Likewise.
5715 (tfile_get_tracepoint_status): Likewise.
5716 (tfile_get_traceframe_address): Likewise.
5717 (tfile_trace_find, match_blocktype): Likewise.
5718 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5719 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5720 (tfile_get_trace_state_variable_value): Likewise.
5721 (tfile_has_all_memory, tfile_has_memory): Likewise.
5722 (tfile_has_stack, tfile_has_registers): Likewise.
5723 (tfile_thread_alive, build_traceframe_info): Likewise.
5724 (tfile_traceframe_info, init_tfile_ops): Likewise.
5725 (_initialize_tracepoint): Don't call init_tfile_ops
5726 and add_target_with_completer.
5727 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5728 exec.h, completer.h and filenames.h.
5729 (_initialize_tracefile_tfile): New function.
5730
5731 2014-02-23 Yao Qi <yao@codesourcery.com>
5732
5733 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5734 tracefile-tfile.o.
5735 (HFILES_NO_SRCDIR): Add tracefile.h.
5736 * ctf.c: Include "tracefile.h".
5737 * tracefile.h: New file.
5738 * tracefile.c: New file
5739 * tracefile-tfile.c: New file.
5740 * tracepoint.c: Include "tracefile.h".
5741 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5742 (stop_reason_names): Add const.
5743 (trace_file_writer_xfree): Move it to tracefile.c.
5744 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5745 (trace_save_ctf): Likewise.
5746 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5747 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5748 (tfile_write_header, tfile_write_regblock_type): Likewise.
5749 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5750 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5751 (tfile_write_raw_data, tfile_end): Likewise.
5752 (tfile_trace_file_writer_new): Likewise.
5753 (free_uploaded_tp): Make it extern.
5754 (free_uploaded_tsv): Make it extern.
5755 (_initialize_tracepoint): Move code to register command 'tsave'
5756 to tracefile.c.
5757 * tracepoint.h (stop_reason_names): Declare.
5758 (struct trace_frame_write_ops): Move it to tracefile.h.
5759 (struct trace_file_write_ops): Likewise.
5760 (struct trace_file_writer): Likewise.
5761 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5762
5763 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5764
5765 PR gdb/16594
5766 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5767 process name.
5768 (get_cores_used_by_process): New parameter num_cores, use it.
5769 (linux_xfer_osdata_processes): Pass num_cores to it.
5770 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5771 process name.
5772
5773 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5774
5775 * target.c (memory_xfer_partial): Fix length arg in call to
5776 breakpoint_xfer_memory.
5777
5778 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5779
5780 PR tdep/16397
5781 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5782 number comes after the + or - signs. Adjust length of register
5783 name to be extracted.
5784
5785 2014-02-20 Tom Tromey <tromey@redhat.com>
5786
5787 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5788 (ada_varobj_ops): Mark "extern".
5789
5790 2014-02-20 Tom Tromey <tromey@redhat.com>
5791
5792 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5793
5794 2014-02-20 Doug Evans <xdje42@gmail.com>
5795
5796 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5797 All callers updated.
5798 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5799 All callers updated.
5800 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5801 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5802
5803 2014-02-20 lin zuojian <manjian2006@gmail.com>
5804 Joel Brobecker <brobecker@adacore.com>
5805 Doug Evans <xdje42@gmail.com>
5806
5807 PR symtab/16581
5808 * dwarf2read.c (struct die_info): New member in_process.
5809 (reset_die_in_process): New function.
5810 (process_die): Set it at the start, reset when returning.
5811 (inherit_abstract_dies): Only call process_die if origin_child_die
5812 not already being processed.
5813
5814 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5815
5816 * windows-nat.c (handle_unload_dll): Add function documentation.
5817 (do_initial_windows_stuff): Add comment explaining why we wait
5818 until after inferior initialization has finished before
5819 processing all DLLs.
5820
5821 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5822
5823 * windows-nat.c (get_module_name): Delete.
5824 (windows_get_exec_module_filename): New function, mostly
5825 inspired from get_module_name.
5826 (windows_pid_to_exec_file): Replace call to get_module_name
5827 by call to windows_get_exec_module_filename.
5828
5829 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5830
5831 * windows-nat.c (handle_load_dll): Rewrite this function's
5832 introductory comment. Remove code using get_module_name
5833 to get the DLL's name.
5834
5835 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5836
5837 * windows-nat.c (get_windows_debug_event): Ignore
5838 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5839 if windows_initialization_done == 0.
5840 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5841 Adjust implementation to always load all DLLs.
5842 (do_initial_windows_stuff): Replace call to
5843 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5844
5845 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5846
5847 * windows-nat.c (_initialize_windows_nat): Deprecate the
5848 "dll-symbols" command. Turn the "add-shared-symbol-files"
5849 and "assf" aliases into commands, and deprecate them as well.
5850 * NEWS: Add entry explaining that "dll-symbols" and its two
5851 aliases are now deprecated.
5852
5853 2014-02-20 Joel Brobecker <brobecker@adacore.com>
5854
5855 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5856 new-line in debug string. Remove trailing spaces.
5857
5858 2014-02-19 Stan Shebs <stan@codesourcery.com>
5859
5860 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5861
5862 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5863
5864 * NEWS: Add entry for the new feature
5865 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5866 and class values.
5867
5868 2014-02-19 Stan Shebs <stan@codesourcery.com>
5869
5870 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5871
5872 2014-02-19 Pedro Alves <palves@redhat.com>
5873
5874 * common/ptid.h (struct ptid): Mention that process_stratum
5875 targets should prefer ptid.lwp.
5876
5877 2014-02-19 Pedro Alves <palves@redhat.com>
5878
5879 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5880 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5881 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5882 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5883 store remote thread ids rather than ptid.tid.
5884 (_initialize_remote): Adjust.
5885
5886 2014-02-19 Tom Tromey <tromey@redhat.com>
5887
5888 * target.c (target_get_unwinder): Rewrite.
5889 (target_get_tailcall_unwinder): Rewrite.
5890 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5891 (record_btrace_to_get_tailcall_unwinder): New function.
5892 (init_record_btrace_ops): Update.
5893 * target.h (struct target_ops) <to_get_unwinder,
5894 to_get_tailcall_unwinder>: Now function pointers. Use
5895 TARGET_DEFAULT_RETURN.
5896
5897 2014-02-19 Tom Tromey <tromey@redhat.com>
5898
5899 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5900 argument.
5901 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5902
5903 2014-02-19 Tom Tromey <tromey@redhat.com>
5904
5905 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5906 directly.
5907 * target-delegates.c: Rebuild.
5908 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5909 TARGET_DEFAULT_FUNC.
5910 * target.c (default_target_decr_pc_after_break): Rename from
5911 forward_target_decr_pc_after_break. Simplify.
5912 (target_decr_pc_after_break): Rely on delegation.
5913
5914 2014-02-19 Tom Tromey <tromey@redhat.com>
5915
5916 * target.c (update_current_target): Do not INHERIT to_doc or
5917 to_magic. Do not de_fault to_open or to_close.
5918
5919 2014-02-19 Tom Tromey <tromey@redhat.com>
5920
5921 * gcore.h (objfile_find_memory_regions): Declare.
5922 * gcore.c (objfile_find_memory_regions): No longer static. Add
5923 "self" argument.
5924 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5925 * exec.c: Include gcore.h.
5926 (exec_set_find_memory_regions): Remove.
5927 (exec_find_memory_regions): Remove.
5928 (exec_do_find_memory_regions): Remove.
5929 (init_exec_ops): Update.
5930 * defs.h (exec_set_find_memory_regions): Remove.
5931
5932 2014-02-19 Tom Tromey <tromey@redhat.com>
5933
5934 * target-delegates.c: Rebuild.
5935 * target.h (struct target_ops) <to_extra_thread_info,
5936 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5937 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5938 not 0, in TARGET_DEFAULT_RETURN.
5939
5940 2014-02-19 Tom Tromey <tromey@redhat.com>
5941
5942 * target.c (complete_target_initialization): Remove casts. Use
5943 return_zero_has_execution.
5944 (return_zero): Add "ignore" argument.
5945 (return_zero_has_execution): New function.
5946 (init_dummy_target): Remove casts. Use
5947 return_zero_has_execution.
5948
5949 2014-02-19 Tom Tromey <tromey@redhat.com>
5950
5951 * target.c (update_current_target): Update comments. Do not
5952 INHERIT to_stratum.
5953
5954 2014-02-19 Tom Tromey <tromey@redhat.com>
5955
5956 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5957 needed.
5958 * corelow.c (core_read_description): Delegate when needed.
5959 * remote.c (remote_read_description): Delegate when needed.
5960 * target-delegates.c: Rebuild.
5961 * target.c (target_read_description): Rewrite.
5962 * target.h (struct target_ops) <to_read_description>: Update
5963 comment. Use TARGET_DEFAULT_RETURN.
5964
5965 2014-02-19 Tom Tromey <tromey@redhat.com>
5966
5967 * target-delegates.c: Rebuild.
5968 * target.c (update_current_target): Don't inherit or default
5969 to_can_run.
5970 (find_default_run_target): Check against delegate_can_run.
5971 * target.h (struct target_ops) <to_can_run>: Use
5972 TARGET_DEFAULT_RETURN.
5973
5974 2014-02-19 Tom Tromey <tromey@redhat.com>
5975
5976 * target-delegates.c: Rebuild.
5977 * target.c (target_disconnect): Unconditionally delegate.
5978 * target.h (struct target_ops) <to_disconnect>: Use
5979 TARGET_DEFAULT_NORETURN.
5980
5981 2014-02-19 Tom Tromey <tromey@redhat.com>
5982
5983 * record.c (record_stop): Unconditionally delegate.
5984 * target-delegates.c: Rebuild.
5985 * target.c (target_stop_recording): Unconditionally delegate.
5986 * target.h (struct target_ops) <to_stop_recording>: Use
5987 TARGET_DEFAULT_IGNORE.
5988
5989 2014-02-19 Tom Tromey <tromey@redhat.com>
5990
5991 * target-delegates.c: Rebuild.
5992 * target.c (target_enable_btrace): Unconditionally delegate.
5993 * target.h (struct target_ops) <to_enable_btrace>: Use
5994 TARGET_DEFAULT_NORETURN.
5995
5996 2014-02-19 Tom Tromey <tromey@redhat.com>
5997
5998 * target-delegates.c: Rebuild.
5999 * target.c (target_read_btrace): Unconditionally delegate.
6000 * target.h (struct target_ops) <to_read_btrace>: Use
6001 TARGET_DEFAULT_NORETURN.
6002
6003 2014-02-19 Tom Tromey <tromey@redhat.com>
6004
6005 * target-delegates.c: Rebuild.
6006 * target.c (target_teardown_btrace): Unconditionally delegate.
6007 * target.h (struct target_ops) <to_teardown_btrace>: Use
6008 TARGET_DEFAULT_NORETURN.
6009
6010 2014-02-19 Tom Tromey <tromey@redhat.com>
6011
6012 * target-delegates.c: Rebuild.
6013 * target.c (target_disable_btrace): Unconditionally delegate.
6014 * target.h (struct target_ops) <to_disable_btrace>: Use
6015 TARGET_DEFAULT_NORETURN.
6016
6017 2014-02-19 Tom Tromey <tromey@redhat.com>
6018
6019 * target-delegates.c: Rebuild.
6020 * target.c (default_search_memory): New function.
6021 (simple_search_memory): Update comment.
6022 (target_search_memory): Unconditionally delegate.
6023 * target.h (struct target_ops) <to_search_memory>: Use
6024 TARGET_DEFAULT_FUNC.
6025
6026 2014-02-19 Tom Tromey <tromey@redhat.com>
6027
6028 * auxv.c (default_auxv_parse): No longer static.
6029 (target_auxv_parse): Unconditionally delegate.
6030 * auxv.h (default_auxv_parse): Declare.
6031 * target-delegates.c: Rebuild.
6032 * target.c: Include auxv.h.
6033 * target.h (struct target_ops) <to_auxv_parse>: Use
6034 TARGET_DEFAULT_FUNC.
6035
6036 2014-02-19 Tom Tromey <tromey@redhat.com>
6037
6038 * target-delegates.c: Rebuild.
6039 * target.c (target_memory_map): Unconditionally delegate.
6040 * target.h (struct target_ops) <to_memory_map>: Use
6041 TARGET_DEFAULT_RETURN.
6042
6043 2014-02-19 Tom Tromey <tromey@redhat.com>
6044
6045 * target-delegates.c: Rebuild.
6046 * target.c (target_thread_alive): Unconditionally delegate.
6047 * target.h (struct target_ops) <to_thread_alive>: Use
6048 TARGET_DEFAULT_RETURN.
6049
6050 2014-02-19 Tom Tromey <tromey@redhat.com>
6051
6052 * target-delegates.c: Rebuild.
6053 * target.c (target_save_record): Unconditionally delegate.
6054 * target.h (struct target_ops) <to_save_record>: Use
6055 TARGET_DEFAULT_NORETURN.
6056
6057 2014-02-19 Tom Tromey <tromey@redhat.com>
6058
6059 * target-delegates.c: Rebuild.
6060 * target.c (target_delete_record): Unconditionally delegate.
6061 * target.h (struct target_ops) <to_delete_record>: Use
6062 TARGET_DEFAULT_NORETURN.
6063
6064 2014-02-19 Tom Tromey <tromey@redhat.com>
6065
6066 * target-delegates.c: Rebuild.
6067 * target.c (target_record_is_replaying): Unconditionally
6068 delegate.
6069 * target.h (struct target_ops) <to_record_is_replaying>: Use
6070 TARGET_DEFAULT_RETURN.
6071
6072 2014-02-19 Tom Tromey <tromey@redhat.com>
6073
6074 * target-delegates.c: Rebuild.
6075 * target.c (target_goto_record_begin): Unconditionally delegate.
6076 * target.h (struct target_ops) <to_goto_record_begin>: Use
6077 TARGET_DEFAULT_NORETURN.
6078
6079 2014-02-19 Tom Tromey <tromey@redhat.com>
6080
6081 * target-delegates.c: Rebuild.
6082 * target.c (target_goto_record_end): Unconditionally delegate.
6083 * target.h (struct target_ops) <to_goto_record_end>: Use
6084 TARGET_DEFAULT_NORETURN.
6085
6086 2014-02-19 Tom Tromey <tromey@redhat.com>
6087
6088 * target-delegates.c: Rebuild.
6089 * target.c (target_goto_record): Unconditionally delegate.
6090 * target.h (struct target_ops) <to_goto_record>: Use
6091 TARGET_DEFAULT_NORETURN.
6092
6093 2014-02-19 Tom Tromey <tromey@redhat.com>
6094
6095 * target-delegates.c: Rebuild.
6096 * target.c (target_insn_history): Unconditionally delegate.
6097 * target.h (struct target_ops) <to_insn_history>: Use
6098 TARGET_DEFAULT_NORETURN.
6099
6100 2014-02-19 Tom Tromey <tromey@redhat.com>
6101
6102 * target-delegates.c: Rebuild.
6103 * target.c (target_insn_history_from): Unconditionally delegate.
6104 * target.h (struct target_ops) <to_insn_history_from>: Use
6105 TARGET_DEFAULT_NORETURN.
6106
6107 2014-02-19 Tom Tromey <tromey@redhat.com>
6108
6109 * target-delegates.c: Rebuild.
6110 * target.c (target_insn_history_range): Unconditionally delegate.
6111 * target.h (struct target_ops) <to_insn_history_range>: Use
6112 TARGET_DEFAULT_NORETURN.
6113
6114 2014-02-19 Tom Tromey <tromey@redhat.com>
6115
6116 * target-delegates.c: Rebuild.
6117 * target.c (target_call_history): Unconditionally delegate.
6118 * target.h (struct target_ops) <to_call_history>: Use
6119 TARGET_DEFAULT_NORETURN.
6120
6121 2014-02-19 Tom Tromey <tromey@redhat.com>
6122
6123 * target-delegates.c: Rebuild.
6124 * target.c (target_call_history_from): Unconditionally delegate.
6125 * target.h (struct target_ops) <to_call_history_from>: Use
6126 TARGET_DEFAULT_NORETURN.
6127
6128 2014-02-19 Tom Tromey <tromey@redhat.com>
6129
6130 * target-delegates.c: Rebuild.
6131 * target.c (target_call_history_range): Unconditionally delegate.
6132 * target.h (struct target_ops) <to_call_history_range>: Use
6133 TARGET_DEFAULT_NORETURN.
6134
6135 2014-02-19 Tom Tromey <tromey@redhat.com>
6136
6137 * target-delegates.c: Rebuild.
6138 * target.c (target_verify_memory): Unconditionally delegate.
6139 * target.h (struct target_ops) <to_verify_memory>: Use
6140 TARGET_DEFAULT_NORETURN.
6141
6142 2014-02-19 Tom Tromey <tromey@redhat.com>
6143
6144 * target-delegates.c: Rebuild.
6145 * target.c (target_core_of_thread): Unconditionally delegate.
6146 * target.h (struct target_ops) <to_core_of_thread>: Use
6147 TARGET_DEFAULT_RETURN.
6148
6149 2014-02-19 Tom Tromey <tromey@redhat.com>
6150
6151 * target-delegates.c: Rebuild.
6152 * target.c (target_flash_done): Unconditionally delegate.
6153 * target.h (struct target_ops) <to_flash_done>: Use
6154 TARGET_DEFAULT_NORETURN.
6155
6156 2014-02-19 Tom Tromey <tromey@redhat.com>
6157
6158 * target-delegates.c: Rebuild.
6159 * target.c (target_flash_erase): Unconditionally delegate.
6160 * target.h (struct target_ops) <to_flash_erase>: Use
6161 TARGET_DEFAULT_NORETURN.
6162
6163 2014-02-19 Tom Tromey <tromey@redhat.com>
6164
6165 * target-delegates.c: Rebuild.
6166 * target.c (target_get_section_table): Unconditionally delegate.
6167 * target.h (struct target_ops) <to_get_section_table>: Use
6168 TARGET_DEFAULT_RETURN.
6169
6170 2014-02-19 Tom Tromey <tromey@redhat.com>
6171
6172 * target-delegates.c: Rebuild.
6173 * target.c (target_pid_to_str): Unconditionally delegate.
6174 (init_dummy_target): Don't initialize to_pid_to_str.
6175 (default_pid_to_str): Rename from dummy_pid_to_str.
6176 * target.h (struct target_ops) <to_pid_to_str>: Use
6177 TARGET_DEFAULT_FUNC.
6178
6179 2014-02-19 Tom Tromey <tromey@redhat.com>
6180
6181 * target-delegates.c: Rebuild.
6182 * target.c (target_find_new_threads): Unconditionally delegate.
6183 * target.h (struct target_ops) <to_find_new_threads>: Use
6184 TARGET_DEFAULT_RETURN.
6185
6186 2014-02-19 Tom Tromey <tromey@redhat.com>
6187
6188 * target-delegates.c: Rebuild.
6189 * target.c (target_program_signals): Unconditionally delegate.
6190 * target.h (struct target_ops) <to_program_signals>: Use
6191 TARGET_DEFAULT_IGNORE.
6192
6193 2014-02-19 Tom Tromey <tromey@redhat.com>
6194
6195 * target-delegates.c: Rebuild.
6196 * target.c (target_pass_signals): Unconditionally delegate.
6197 * target.h (struct target_ops) <to_pass_signals>: Use
6198 TARGET_DEFAULT_IGNORE.
6199
6200 2014-02-19 Tom Tromey <tromey@redhat.com>
6201
6202 * target-delegates.c: Rebuild.
6203 * target.c (default_mourn_inferior): New function.
6204 (target_mourn_inferior): Unconditionally delegate.
6205 * target.h (struct target_ops) <to_mourn_inferior>: Use
6206 TARGET_DEFAULT_FUNC.
6207
6208 2014-02-19 Tom Tromey <tromey@redhat.com>
6209
6210 * target-delegates.c: Rebuild.
6211 * target.c (default_follow_fork): New function.
6212 (target_follow_fork): Unconditionally delegate.
6213 * target.h (struct target_ops) <to_follow_fork>: Use
6214 TARGET_DEFAULT_FUNC.
6215
6216 2014-02-19 Tom Tromey <tromey@redhat.com>
6217
6218 * target-delegates.c: Rebuild.
6219 * target.c (target_kill): Unconditionally delegate.
6220 * target.h (struct target_ops) <to_kill>: Use
6221 TARGET_DEFAULT_NORETURN.
6222
6223 2014-02-19 Tom Tromey <tromey@redhat.com>
6224
6225 * target-delegates.c: Rebuild.
6226 * target.c (target_masked_watch_num_registers): Unconditionally
6227 delegate.
6228 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6229 Use TARGET_DEFAULT_RETURN.
6230
6231 2014-02-19 Tom Tromey <tromey@redhat.com>
6232
6233 * target-delegates.c: Rebuild.
6234 * target.c (target_remove_mask_watchpoint): Unconditionally
6235 delegate.
6236 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6237 TARGET_DEFAULT_RETURN.
6238
6239 2014-02-19 Tom Tromey <tromey@redhat.com>
6240
6241 * target-delegates.c: Rebuild.
6242 * target.c (target_insert_mask_watchpoint): Unconditionally
6243 delegate.
6244 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6245 TARGET_DEFAULT_RETURN.
6246
6247 2014-02-19 Tom Tromey <tromey@redhat.com>
6248
6249 * target-delegates.c: Rebuild.
6250 * target.c (target_ranged_break_num_registers): Unconditionally
6251 delegate.
6252 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6253 Use TARGET_DEFAULT_RETURN.
6254
6255 2014-02-19 Tom Tromey <tromey@redhat.com>
6256
6257 * target-delegates.c: Rebuild.
6258 * target.c (target_fetch_registers): Unconditionally delegate.
6259 * target.h (struct target_ops) <to_fetch_registers>: Use
6260 TARGET_DEFAULT_NORETURN.
6261
6262 2014-02-19 Tom Tromey <tromey@redhat.com>
6263
6264 * target-delegates.c: Rebuild.
6265 * target.c (update_current_target): Don't inherit or default
6266 to_stop.
6267 * target.h (struct target_ops) <to_stop>: Use
6268 TARGET_DEFAULT_IGNORE.
6269
6270 2014-02-19 Tom Tromey <tromey@redhat.com>
6271
6272 * target-delegates.c: Rebuild.
6273 * target.c (update_current_target): Don't inherit or default
6274 to_can_run_breakpoint_commands.
6275 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6276 Use TARGET_DEFAULT_RETURN.
6277
6278 2014-02-19 Tom Tromey <tromey@redhat.com>
6279
6280 * target-delegates.c: Rebuild.
6281 * target.c (update_current_target): Don't inherit or default
6282 to_supports_evaluation_of_breakpoint_conditions.
6283 * target.h (struct target_ops)
6284 <to_supports_evaluation_of_breakpoint_conditions>: Use
6285 TARGET_DEFAULT_RETURN.
6286
6287 2014-02-19 Tom Tromey <tromey@redhat.com>
6288
6289 * target-delegates.c: Rebuild.
6290 * target.c (update_current_target): Don't inherit or default
6291 to_augmented_libraries_svr4_read.
6292 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6293 Use TARGET_DEFAULT_RETURN.
6294
6295 2014-02-19 Tom Tromey <tromey@redhat.com>
6296
6297 * target-delegates.c: Rebuild.
6298 * target.c (update_current_target): Don't inherit or default
6299 to_can_use_agent.
6300 * target.h (struct target_ops) <to_can_use_agent>: Use
6301 TARGET_DEFAULT_RETURN.
6302
6303 2014-02-19 Tom Tromey <tromey@redhat.com>
6304
6305 * target-delegates.c: Rebuild.
6306 * target.c (update_current_target): Don't inherit or default
6307 to_use_agent.
6308 * target.h (struct target_ops) <to_use_agent>: Use
6309 TARGET_DEFAULT_NORETURN.
6310
6311 2014-02-19 Tom Tromey <tromey@redhat.com>
6312
6313 * target-delegates.c: Rebuild.
6314 * target.c (update_current_target): Don't inherit or default
6315 to_traceframe_info.
6316 (return_null): Remove.
6317 * target.h (struct target_ops) <to_traceframe_info>: Use
6318 TARGET_DEFAULT_RETURN.
6319
6320 2014-02-19 Tom Tromey <tromey@redhat.com>
6321
6322 * target-delegates.c: Rebuild.
6323 * target.c (update_current_target): Don't inherit or default
6324 to_static_tracepoint_markers_by_strid.
6325 * target.h (struct target_ops)
6326 <to_static_tracepoint_markers_by_strid>: Use
6327 TARGET_DEFAULT_NORETURN.
6328
6329 2014-02-19 Tom Tromey <tromey@redhat.com>
6330
6331 * target-delegates.c: Rebuild.
6332 * target.c (update_current_target): Don't inherit or default
6333 to_static_tracepoint_marker_at.
6334 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6335 Use TARGET_DEFAULT_RETURN.
6336
6337 2014-02-19 Tom Tromey <tromey@redhat.com>
6338
6339 * target-delegates.c: Rebuild.
6340 * target.c (update_current_target): Don't inherit or default
6341 to_set_permissions.
6342 * target.h (struct target_ops) <to_set_permissions>: Use
6343 TARGET_DEFAULT_IGNORE.
6344
6345 2014-02-19 Tom Tromey <tromey@redhat.com>
6346
6347 * target-delegates.c: Rebuild.
6348 * target.c (update_current_target): Don't inherit or default
6349 to_get_tib_address.
6350 * target.h (struct target_ops) <to_get_tib_address>: Use
6351 TARGET_DEFAULT_NORETURN.
6352
6353 2014-02-19 Tom Tromey <tromey@redhat.com>
6354
6355 * target-delegates.c: Rebuild.
6356 * target.c (update_current_target): Don't inherit or default
6357 to_set_trace_notes.
6358 * target.h (struct target_ops) <to_set_trace_notes>: Use
6359 TARGET_DEFAULT_RETURN.
6360
6361 2014-02-19 Tom Tromey <tromey@redhat.com>
6362
6363 * target-delegates.c: Rebuild.
6364 * target.c (update_current_target): Don't initialize
6365 to_set_trace_buffer_size.
6366 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6367 TARGET_DEFAULT_IGNORE.
6368
6369 2014-02-19 Tom Tromey <tromey@redhat.com>
6370
6371 * target-delegates.c: Rebuild.
6372 * target.c (update_current_target): Don't inherit or default
6373 to_set_circular_trace_buffer.
6374 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6375 TARGET_DEFAULT_IGNORE.
6376
6377 2014-02-19 Tom Tromey <tromey@redhat.com>
6378
6379 * target-delegates.c: Rebuild.
6380 * target.c (update_current_target): Don't inherit or default
6381 to_set_disconnected_tracing.
6382 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6383 TARGET_DEFAULT_IGNORE.
6384
6385 2014-02-19 Tom Tromey <tromey@redhat.com>
6386
6387 * target-delegates.c: Rebuild.
6388 * target.c (update_current_target): Don't inherit or default
6389 to_get_min_fast_tracepoint_insn_len.
6390 (return_minus_one): Remove.
6391 * target.h (struct target_ops)
6392 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6393
6394 2014-02-19 Tom Tromey <tromey@redhat.com>
6395
6396 * target-delegates.c: Rebuild.
6397 * target.c (update_current_target): Don't inherit or default
6398 to_get_raw_trace_data.
6399 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6400 TARGET_DEFAULT_NORETURN.
6401
6402 2014-02-19 Tom Tromey <tromey@redhat.com>
6403
6404 * target-delegates.c: Rebuild.
6405 * target.c (update_current_target): Don't inherit or default
6406 to_upload_trace_state_variables.
6407 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6408 Use TARGET_DEFAULT_RETURN.
6409
6410 2014-02-19 Tom Tromey <tromey@redhat.com>
6411
6412 * target-delegates.c: Rebuild.
6413 * target.c (update_current_target): Don't inherit or default
6414 to_upload_tracepoints.
6415 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6416 TARGET_DEFAULT_RETURN.
6417
6418 2014-02-19 Tom Tromey <tromey@redhat.com>
6419
6420 * target-delegates.c: Rebuild.
6421 * target.c (update_current_target): Don't inherit or default
6422 to_save_trace_data.
6423 * target.h (struct target_ops) <to_save_trace_data>: Use
6424 TARGET_DEFAULT_NORETURN.
6425
6426 2014-02-19 Tom Tromey <tromey@redhat.com>
6427
6428 * target-delegates.c: Rebuild.
6429 * target.c (update_current_target): Don't inherit or default
6430 to_get_trace_state_variable_value.
6431 * target.h (struct target_ops)
6432 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6433
6434 2014-02-19 Tom Tromey <tromey@redhat.com>
6435
6436 * target-delegates.c: Rebuild.
6437 * target.c (update_current_target): Don't inherit or default
6438 to_trace_find.
6439 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6440
6441 2014-02-19 Tom Tromey <tromey@redhat.com>
6442
6443 * target-delegates.c: Rebuild.
6444 * target.c (update_current_target): Don't inherit or default
6445 to_trace_stop.
6446 * target.h (struct target_ops) <to_trace_stop>: Use
6447 TARGET_DEFAULT_NORETURN.
6448
6449 2014-02-19 Tom Tromey <tromey@redhat.com>
6450
6451 * target-delegates.c: Rebuild.
6452 * target.c (update_current_target): Don't inherit or default
6453 to_get_tracepoint_status.
6454 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6455 TARGET_DEFAULT_NORETURN.
6456
6457 2014-02-19 Tom Tromey <tromey@redhat.com>
6458
6459 * target-delegates.c: Rebuild.
6460 * target.c (update_current_target): Don't inherit or default
6461 to_get_trace_status.
6462 * target.h (struct target_ops) <to_get_trace_status>: Use
6463 TARGET_DEFAULT_RETURN.
6464
6465 2014-02-19 Tom Tromey <tromey@redhat.com>
6466
6467 * target-delegates.c: Rebuild.
6468 * target.c (update_current_target): Don't inherit or default
6469 to_trace_start.
6470 * target.h (struct target_ops) <to_trace_start>: Use
6471 TARGET_DEFAULT_NORETURN.
6472
6473 2014-02-19 Tom Tromey <tromey@redhat.com>
6474
6475 * target-delegates.c: Rebuild.
6476 * target.c (update_current_target): Don't inherit or default
6477 to_trace_set_readonly_regions.
6478 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6479 Use TARGET_DEFAULT_NORETURN.
6480
6481 2014-02-19 Tom Tromey <tromey@redhat.com>
6482
6483 * target-delegates.c: Rebuild.
6484 * target.c (update_current_target): Don't inherit or default
6485 to_disable_tracepoint.
6486 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6487 TARGET_DEFAULT_NORETURN.
6488
6489 2014-02-19 Tom Tromey <tromey@redhat.com>
6490
6491 * target-delegates.c: Rebuild.
6492 * target.c (update_current_target): Don't inherit or default
6493 to_enable_tracepoint.
6494 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6495 TARGET_DEFAULT_NORETURN.
6496
6497 2014-02-19 Tom Tromey <tromey@redhat.com>
6498
6499 * target-delegates.c: Rebuild.
6500 * target.c (update_current_target): Don't inherit or default
6501 to_download_trace_state_variable.
6502 * target.h (struct target_ops) <to_download_trace_state_variable>:
6503 Use TARGET_DEFAULT_NORETURN.
6504
6505 2014-02-19 Tom Tromey <tromey@redhat.com>
6506
6507 * target-delegates.c: Rebuild.
6508 * target.c (update_current_target): Don't inherit or default
6509 to_can_download_tracepoint.
6510 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6511 TARGET_DEFAULT_RETURN.
6512
6513 2014-02-19 Tom Tromey <tromey@redhat.com>
6514
6515 * target-delegates.c: Rebuild.
6516 * target.c (update_current_target): Don't inherit or default
6517 to_download_tracepoint.
6518 * target.h (struct target_ops) <to_download_tracepoint>: Use
6519 TARGET_DEFAULT_NORETURN.
6520
6521 2014-02-19 Tom Tromey <tromey@redhat.com>
6522
6523 * target-delegates.c: Rebuild.
6524 * target.c (update_current_target): Don't inherit or default
6525 to_trace_init.
6526 * target.h (struct target_ops) <to_trace_init>: Use
6527 TARGET_DEFAULT_RETURN.
6528
6529 2014-02-19 Tom Tromey <tromey@redhat.com>
6530
6531 * target-delegates.c: Rebuild.
6532 * target.c (update_current_target): Don't inherit or default
6533 to_supports_string_tracing.
6534 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6535 TARGET_DEFAULT_RETURN.
6536
6537 2014-02-19 Tom Tromey <tromey@redhat.com>
6538
6539 * target-delegates.c: Rebuild.
6540 * target.c (update_current_target): Don't inherit or default
6541 to_supports_enable_disable_tracepoint.
6542 * target.h (struct target_ops)
6543 <to_supports_enable_disable_tracepoint>: Use
6544 TARGET_DEFAULT_RETURN.
6545
6546 2014-02-19 Tom Tromey <tromey@redhat.com>
6547
6548 * target-delegates.c: Rebuild.
6549 * target.c (update_current_target): Don't inherit or default
6550 to_supports_multi_process.
6551 * target.h (struct target_ops) <to_supports_multi_process>: Use
6552 TARGET_DEFAULT_RETURN.
6553
6554 2014-02-19 Tom Tromey <tromey@redhat.com>
6555
6556 * target-delegates.c: Rebuild.
6557 * target.c (update_current_target): Don't inherit or default
6558 to_get_ada_task_ptid.
6559 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6560 TARGET_DEFAULT_FUNC.
6561
6562 2014-02-19 Tom Tromey <tromey@redhat.com>
6563
6564 * target-delegates.c: Rebuild.
6565 * target.c (update_current_target): Don't inherit or default
6566 to_thread_architecture.
6567 * target.h (struct target_ops) <to_thread_architecture>: Use
6568 TARGET_DEFAULT_FUNC.
6569
6570 2014-02-19 Tom Tromey <tromey@redhat.com>
6571
6572 * target-delegates.c: Rebuild.
6573 * target.c (update_current_target): Don't inherit or default
6574 to_execution_direction.
6575 * target.h (struct target_ops) <to_execution_direction>: Use
6576 TARGET_DEFAULT_FUNC.
6577
6578 2014-02-19 Tom Tromey <tromey@redhat.com>
6579
6580 * target-delegates.c: Rebuild.
6581 * target.c (update_current_target): Don't inherit or default
6582 to_can_execute_reverse.
6583 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6584 TARGET_DEFAULT_RETURN.
6585 (target_can_execute_reverse): Unconditionally delegate.
6586
6587 2014-02-19 Tom Tromey <tromey@redhat.com>
6588
6589 * target-delegates.c: Rebuild.
6590 * target.c (update_current_target): Don't inherit or default
6591 to_goto_bookmark.
6592 (dummy_goto_bookmark): Remove.
6593 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6594 * target.h (struct target_ops) <to_goto_bookmark>: Use
6595 TARGET_DEFAULT_NORETURN.
6596
6597 2014-02-19 Tom Tromey <tromey@redhat.com>
6598
6599 * target-delegates.c: Rebuild.
6600 * target.c (update_current_target): Don't inherit or default
6601 to_get_bookmark.
6602 (dummy_get_bookmark): Remove.
6603 (init_dummy_target): Don't inherit or default to_get_bookmark.
6604 * target.h (struct target_ops) <to_get_bookmark>: Use
6605 TARGET_DEFAULT_NORETURN
6606
6607 2014-02-19 Tom Tromey <tromey@redhat.com>
6608
6609 * target-delegates.c: Rebuild.
6610 * target.c (update_current_target): Don't inherit or default
6611 to_make_corefile_notes.
6612 (init_dummy_target): Don't initialize to_make_corefile_notes.
6613 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6614 TARGET_DEFAULT_FUNC.
6615
6616 2014-02-19 Tom Tromey <tromey@redhat.com>
6617
6618 * target-delegates.c: Rebuild.
6619 * target.c (update_current_target): Don't inherit or default
6620 to_find_memory_regions.
6621 (init_dummy_target): Don't initialize to_find_memory_regions.
6622 * target.h (struct target_ops) <to_find_memory_regions>: Use
6623 TARGET_DEFAULT_FUNC.
6624
6625 2014-02-19 Tom Tromey <tromey@redhat.com>
6626
6627 * target-delegates.c: Rebuild.
6628 * target.c (update_current_target): Don't inherit or default
6629 to_log_command.
6630 * target.h (struct target_ops) <to_log_command>: Use
6631 TARGET_DEFAULT_IGNORE.
6632 (target_log_command): Unconditionally delegate.
6633
6634 2014-02-19 Tom Tromey <tromey@redhat.com>
6635
6636 * target-delegates.c: Rebuild.
6637 * target.c (update_current_target): Don't inherit or default
6638 to_pid_to_exec_file.
6639 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6640 TARGET_DEFAULT_RETURN.
6641
6642 2014-02-19 Tom Tromey <tromey@redhat.com>
6643
6644 * target-delegates.c: Rebuild.
6645 * target.c (update_current_target): Don't inherit or default
6646 to_thread_name.
6647 (target_thread_name): Unconditionally delegate.
6648 * target.h (struct target_ops) <to_thread_name>: Use
6649 TARGET_DEFAULT_RETURN.
6650
6651 2014-02-19 Tom Tromey <tromey@redhat.com>
6652
6653 * target-delegates.c: Rebuild.
6654 * target.c (update_current_target): Don't inherit or default
6655 to_extra_thread_info.
6656 * target.h (struct target_ops) <to_extra_thread_info>: Use
6657 TARGET_DEFAULT_RETURN.
6658
6659 2014-02-19 Tom Tromey <tromey@redhat.com>
6660
6661 * target-delegates.c: Rebuild.
6662 * target.c (update_current_target): Don't inherit or default
6663 to_has_exited.
6664 * target.h (struct target_ops) <to_has_exited>: Use
6665 TARGET_DEFAULT_RETURN..
6666
6667 2014-02-19 Tom Tromey <tromey@redhat.com>
6668
6669 * target-delegates.c: Rebuild.
6670 * target.c (update_current_target): Don't inherit or default
6671 to_set_syscall_catchpoint.
6672 (return_one): Remove.
6673 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6674 TARGET_DEFAULT_RETURN.
6675
6676 2014-02-19 Tom Tromey <tromey@redhat.com>
6677
6678 * target-delegates.c: Rebuild.
6679 * target.c (update_current_target): Don't inherit or default
6680 to_insert_exec_catchpoint.
6681 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6682 TARGET_DEFAULT_RETURN.
6683
6684 2014-01-08 Tom Tromey <tromey@redhat.com>
6685
6686 * target-delegates.c: Rebuild.
6687 * target.c (update_current_target): Don't inherit or default
6688 to_insert_exec_catchpoint.
6689 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6690 TARGET_DEFAULT_RETURN.
6691
6692 2014-02-19 Tom Tromey <tromey@redhat.com>
6693
6694 * target-delegates.c: Rebuild.
6695 * target.c (update_current_target): Don't inherit or default
6696 to_remove_vfork_catchpoint.
6697 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6698 TARGET_DEFAULT_RETURN.
6699
6700 2014-02-19 Tom Tromey <tromey@redhat.com>
6701
6702 * target-delegates.c: Rebuild.
6703 * target.c (update_current_target): Don't inherit or default
6704 to_insert_vfork_catchpoint.
6705 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6706 TARGET_DEFAULT_RETURN.
6707
6708 2014-02-19 Tom Tromey <tromey@redhat.com>
6709
6710 * target-delegates.c: Rebuild.
6711 * target.c (update_current_target): Don't inherit or default
6712 to_remove_fork_catchpoint.
6713 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6714 TARGET_DEFAULT_RETURN.
6715
6716 2014-02-19 Tom Tromey <tromey@redhat.com>
6717
6718 * target-delegates.c: Rebuild.
6719 * target.c (update_current_target): Don't inherit or default
6720 to_insert_fork_catchpoint.
6721 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6722 TARGET_DEFAULT_RETURN.
6723
6724 2014-02-19 Tom Tromey <tromey@redhat.com>
6725
6726 * target-delegates.c: Rebuild.
6727 * target.c (update_current_target): Don't inherit or default
6728 to_post_startup_inferior.
6729 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6730 TARGET_DEFAULT_IGNORE.
6731
6732 2014-02-19 Tom Tromey <tromey@redhat.com>
6733
6734 * target-delegates.c: Rebuild.
6735 * target.c (update_current_target): Don't inherit or default
6736 to_load.
6737 * target.h (struct target_ops) <to_load>: Use
6738 TARGET_DEFAULT_NORETURN.
6739
6740 2014-02-19 Tom Tromey <tromey@redhat.com>
6741
6742 * target-delegates.c: Rebuild.
6743 * target.c (update_current_target): Don't inherit or default
6744 to_terminal_info.
6745 * target.h (struct target_ops) <to_terminal_info>: Use
6746 TARGET_DEFAULT_FUNC.
6747
6748 2014-02-19 Tom Tromey <tromey@redhat.com>
6749
6750 * target-delegates.c: Rebuild.
6751 * target.c (update_current_target): Don't inherit or default
6752 to_terminal_save_ours.
6753 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6754 TARGET_DEFAULT_IGNORE.
6755
6756 2014-02-19 Tom Tromey <tromey@redhat.com>
6757
6758 * target-delegates.c: Rebuild.
6759 * target.c (update_current_target): Don't inherit or default
6760 to_terminal_ours.
6761 * target.h (struct target_ops) <to_terminal_ours>: Use
6762 TARGET_DEFAULT_IGNORE.
6763
6764 2014-02-19 Tom Tromey <tromey@redhat.com>
6765
6766 * target-delegates.c: Rebuild.
6767 * target.c (update_current_target): Don't inherit or default
6768 to_terminal_ours_for_output.
6769 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6770 TARGET_DEFAULT_IGNORE.
6771
6772 2014-02-19 Tom Tromey <tromey@redhat.com>
6773
6774 * target-delegates.c: Rebuild.
6775 * target.c (update_current_target): Don't inherit or default
6776 to_terminal_inferior.
6777 * target.h (struct target_ops) <to_terminal_inferior>: Use
6778 TARGET_DEFAULT_IGNORE.
6779
6780 2014-02-19 Tom Tromey <tromey@redhat.com>
6781
6782 * target-delegates.c: Rebuild.
6783 * target.c (update_current_target): Don't inherit or default
6784 to_terminal_init.
6785 * target.h (struct target_ops) <to_terminal_init>: Use
6786 TARGET_DEFAULT_IGNORE.
6787
6788 2014-02-19 Tom Tromey <tromey@redhat.com>
6789
6790 * target-delegates.c: Rebuild.
6791 * target.c (update_current_target): Don't inherit or default
6792 to_can_accel_watchpoint_condition.
6793 * target.h (struct target_ops)
6794 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
6795
6796 2014-02-19 Tom Tromey <tromey@redhat.com>
6797
6798 * target-delegates.c: Rebuild.
6799 * target.c (update_current_target): Don't inherit or default
6800 to_region_ok_for_hw_watchpoint.
6801 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6802 Use TARGET_DEFAULT_FUNC.
6803
6804 2014-02-19 Tom Tromey <tromey@redhat.com>
6805
6806 * target-delegates.c: Rebuild.
6807 * target.c (update_current_target): Don't inherit or default
6808 to_watchpoint_addr_within_range.
6809 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6810 Use TARGET_DEFAULT_FUNC.
6811
6812 2014-02-19 Tom Tromey <tromey@redhat.com>
6813
6814 * target-delegates.c: Rebuild.
6815 * target.c (update_current_target): Don't inherit or default
6816 to_remove_watchpoint.
6817 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6818 TARGET_DEFAULT_NORETURN.
6819
6820 2014-02-19 Tom Tromey <tromey@redhat.com>
6821
6822 * target-delegates.c: Rebuild.
6823 * target.c (update_current_target): Don't inherit or default
6824 to_insert_watchpoint.
6825 * target.h (struct target_ops) <to_insert_watchpoint>: Use
6826 TARGET_DEFAULT_RETURN.
6827
6828 2014-02-19 Tom Tromey <tromey@redhat.com>
6829
6830 * target-delegates.c: Rebuild.
6831 * target.c (update_current_target): Don't inherit or default
6832 to_remove_hw_breakpoint.
6833 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
6834 TARGET_DEFAULT_RETURN.
6835
6836 2014-02-19 Tom Tromey <tromey@redhat.com>
6837
6838 * target-delegates.c: Rebuild.
6839 * target.c (update_current_target): Don't inherit or default
6840 to_insert_hw_breakpoint.
6841 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6842 TARGET_DEFAULT_RETURN.
6843
6844 2014-02-19 Tom Tromey <tromey@redhat.com>
6845
6846 * target-delegates.c: Rebuild.
6847 * target.c (update_current_target): Don't inherit or default
6848 to_can_use_hw_breakpoint.
6849 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
6850 TARGET_DEFAULT_RETURN.
6851
6852 2014-02-19 Tom Tromey <tromey@redhat.com>
6853
6854 * target-delegates.c: Rebuild.
6855 * target.c (update_current_target): Don't inherit or default
6856 to_files_info.
6857 * target.h (struct target_ops) <to_files_info>: Use
6858 TARGET_DEFAULT_IGNORE.
6859
6860 2014-02-19 Tom Tromey <tromey@redhat.com>
6861
6862 * target-delegates.c: Rebuild.
6863 * target.c (update_current_target): Don't inherit or default
6864 to_store.
6865 * target.h (struct target_ops) <to_store>: Use
6866 TARGET_DEFAULT_NORETURN.
6867
6868 2014-02-19 Tom Tromey <tromey@redhat.com>
6869
6870 * target-delegates.c: Rebuild.
6871 * target.c (update_current_target): Don't inherit or default
6872 to_post_attach.
6873 * target.h (struct target_ops) <to_post_attach>: Use
6874 TARGET_DEFAULT_IGNORE.
6875
6876 2014-02-19 Tom Tromey <tromey@redhat.com>
6877
6878 * target-delegates.c: Rebuild.
6879 * target.c (update_current_target): Don't inherit or default
6880 to_rcmd.
6881 (default_rcmd): New function.
6882 (do_monitor_command): Unconditionally delegate.
6883 * target.h (struct target_ops) <to_rmcd>: Use
6884 TARGET_DEFAULT_FUNC.
6885
6886 2014-02-19 Tom Tromey <tromey@redhat.com>
6887
6888 * target-delegates.c: Rebuild.
6889 * target.c (init_dummy_target): Don't initialize to_attach.
6890 (target_attach): Unconditionally delegate.
6891 * target.h (struct target_ops) <to_attach>: Use
6892 TARGET_DEFAULT_FUNC.
6893
6894 2014-02-19 Tom Tromey <tromey@redhat.com>
6895
6896 * target-delegates.c: Rebuild.
6897 * target.c (target_detach): Unconditionally delegate.
6898 (init_dummy_target): Don't initialize to_detach.
6899 * target.h (struct target_ops) <to_detach>: Use
6900 TARGET_DEFAULT_IGNORE.
6901
6902 2014-02-19 Tom Tromey <tromey@redhat.com>
6903
6904 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6905 Add argument.
6906 (target_augmented_libraries_svr4_read): Add argument.
6907 * target.c (update_current_target): Update.
6908 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6909 argument.
6910
6911 2014-02-19 Tom Tromey <tromey@redhat.com>
6912
6913 * target.h (struct target_ops) <to_call_history_range>: Add
6914 argument.
6915 * target.c (target_call_history_range): Add argument.
6916 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6917 argument.
6918 (record_btrace_call_history_from): Update.
6919
6920 2014-02-19 Tom Tromey <tromey@redhat.com>
6921
6922 * target.h (struct target_ops) <to_call_history_from>: Add
6923 argument.
6924 * target.c (target_call_history_from): Add argument.
6925 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6926 argument.
6927
6928 2014-02-19 Tom Tromey <tromey@redhat.com>
6929
6930 * target.h (struct target_ops) <to_call_history>: Add argument.
6931 * target.c (target_call_history): Add argument.
6932 * record-btrace.c (record_btrace_call_history): Add 'self'
6933 argument.
6934
6935 2014-02-19 Tom Tromey <tromey@redhat.com>
6936
6937 * target.h (struct target_ops) <to_insn_history_range>: Add
6938 argument.
6939 * target.c (target_insn_history_range): Add argument.
6940 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6941 argument.
6942 (record_btrace_insn_history_from): Update.
6943
6944 2014-02-19 Tom Tromey <tromey@redhat.com>
6945
6946 * target.h (struct target_ops) <to_insn_history_from>: Add
6947 argument.
6948 * target.c (target_insn_history_from): Add argument.
6949 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6950 argument.
6951
6952 2014-02-19 Tom Tromey <tromey@redhat.com>
6953
6954 * target.h (struct target_ops) <to_insn_history>: Add argument.
6955 * target.c (target_insn_history): Add argument.
6956 * record-btrace.c (record_btrace_insn_history): Add 'self'
6957 argument.
6958
6959 2014-02-19 Tom Tromey <tromey@redhat.com>
6960
6961 * target.h (struct target_ops) <to_goto_record>: Add argument.
6962 * target.c (target_goto_record): Add argument.
6963 * record-full.c (record_full_goto): Add 'self' argument.
6964 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6965
6966 2014-02-19 Tom Tromey <tromey@redhat.com>
6967
6968 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6969 * target.c (target_goto_record_end): Add argument.
6970 * record-full.c (record_full_goto_end): Add 'self' argument.
6971 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6972
6973 2014-02-19 Tom Tromey <tromey@redhat.com>
6974
6975 * target.h (struct target_ops) <to_goto_record_begin>: Add
6976 argument.
6977 * target.c (target_goto_record_begin): Add argument.
6978 * record-full.c (record_full_goto_begin): Add 'self' argument.
6979 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6980 argument.
6981
6982 2014-02-19 Tom Tromey <tromey@redhat.com>
6983
6984 * target.h (struct target_ops) <to_record_is_replaying>: Add
6985 argument.
6986 * target.c (target_record_is_replaying): Add argument.
6987 * record-full.c (record_full_is_replaying): Add 'self' argument.
6988 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6989 argument.
6990 (record_btrace_xfer_partial, record_btrace_store_registers)
6991 (record_btrace_prepare_to_store, record_btrace_resume)
6992 (record_btrace_wait, record_btrace_decr_pc_after_break)
6993 (record_btrace_find_new_threads, record_btrace_thread_alive):
6994 Update.
6995
6996 2014-02-19 Tom Tromey <tromey@redhat.com>
6997
6998 * target.h (struct target_ops) <to_delete_record>: Add argument.
6999 * target.c (target_delete_record): Add argument.
7000 * record-full.c (record_full_delete): Add 'self' argument.
7001
7002 2014-02-19 Tom Tromey <tromey@redhat.com>
7003
7004 * target.h (struct target_ops) <to_save_record>: Add argument.
7005 * target.c (target_save_record): Add argument.
7006 * record-full.c (record_full_save): Add 'self' argument.
7007 (record_full_save): Add 'self' argument.
7008
7009 2014-02-19 Tom Tromey <tromey@redhat.com>
7010
7011 * target.h (struct target_ops) <to_info_record>: Add argument.
7012 * target.c (target_info_record): Add argument.
7013 * record.c (info_record_command): Add argument.
7014 * record-full.c (record_full_info): Add 'self' argument.
7015 * record-btrace.c (record_btrace_info): Add 'self' argument.
7016
7017 2014-02-19 Tom Tromey <tromey@redhat.com>
7018
7019 * target.h (struct target_ops) <to_stop_recording>: Add argument.
7020 * target.c (target_stop_recording): Add argument.
7021 * record.c (record_stop): Add argument.
7022 * record-btrace.c (record_btrace_stop_recording): Add 'self'
7023 argument.
7024
7025 2014-02-19 Tom Tromey <tromey@redhat.com>
7026
7027 * target.h (struct target_ops) <to_read_btrace>: Add argument.
7028 * target.c (struct target_ops) <to_read_btrace>: Add argument.
7029 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
7030 argument.
7031 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
7032 (_initialize_amd64_linux_nat): Use it.
7033 * i386-linux-nat.c (i386_linux_read_btrace): New function.
7034 (_initialize_i386_linux_nat): Use it.
7035
7036 2014-02-19 Tom Tromey <tromey@redhat.com>
7037
7038 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
7039 * target.c (target_teardown_btrace): Add argument.
7040 * remote.c (remote_teardown_btrace): Add 'self' argument.
7041 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7042 argument.
7043 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7044 argument.
7045
7046 2014-02-19 Tom Tromey <tromey@redhat.com>
7047
7048 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7049 * target.c (target_disable_btrace): Add argument.
7050 * remote.c (remote_disable_btrace): Add 'self' argument.
7051 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7052 argument.
7053 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7054 argument.
7055
7056 2014-02-19 Tom Tromey <tromey@redhat.com>
7057
7058 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7059 * target.c (target_enable_btrace): Add argument.
7060 * remote.c (remote_enable_btrace): Add 'self' argument.
7061 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7062 argument.
7063 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7064 argument.
7065
7066 2014-02-19 Tom Tromey <tromey@redhat.com>
7067
7068 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7069 (target_can_use_agent): Add argument.
7070 * target.c (update_current_target): Update.
7071 * remote.c (remote_can_use_agent): Add 'self' argument.
7072 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7073
7074 2014-02-19 Tom Tromey <tromey@redhat.com>
7075
7076 * target.h (struct target_ops) <to_use_agent>: Add argument.
7077 (target_use_agent): Add argument.
7078 * target.c (update_current_target): Update.
7079 * remote.c (remote_use_agent): Add 'self' argument.
7080 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7081
7082 2014-02-19 Tom Tromey <tromey@redhat.com>
7083
7084 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7085 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7086 (target_traceframe_info): Add argument.
7087 * target.c (update_current_target): Update.
7088 * remote.c (remote_traceframe_info): Add 'self' argument.
7089 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7090
7091 2014-02-19 Tom Tromey <tromey@redhat.com>
7092
7093 * target.h (target_static_tracepoint_markers_by_strid): Add
7094 argument.
7095 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7096 'self' argument.
7097 * target.c (update_current_target): Update.
7098 * remote.c (struct target_ops)
7099 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7100 * linux-nat.c (struct target_ops)
7101 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7102
7103 2014-02-19 Tom Tromey <tromey@redhat.com>
7104
7105 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7106 Add argument.
7107 (target_static_tracepoint_marker_at): Add argument.
7108 * target.c (update_current_target): Update.
7109 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7110 argument.
7111
7112 2014-02-19 Tom Tromey <tromey@redhat.com>
7113
7114 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7115 (target_set_permissions): Add argument.
7116 * target.c (update_current_target): Update.
7117 * remote.c (remote_set_permissions): Add 'self' argument.
7118 (remote_start_remote): Update.
7119
7120 2014-02-19 Tom Tromey <tromey@redhat.com>
7121
7122 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7123 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7124 (target_get_tib_address): Add argument.
7125 * target.c (update_current_target): Update.
7126 * remote.c (remote_get_tib_address): Add 'self' argument.
7127
7128 2014-02-19 Tom Tromey <tromey@redhat.com>
7129
7130 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7131 (target_set_trace_notes): Add argument.
7132 * target.c (update_current_target): Update.
7133 * remote.c (remote_set_trace_notes): Add 'self' argument.
7134
7135 2014-02-19 Tom Tromey <tromey@redhat.com>
7136
7137 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7138 argument.
7139 (target_set_trace_buffer_size): Add argument.
7140 * target.c (update_current_target): Update.
7141 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7142
7143 2014-02-19 Tom Tromey <tromey@redhat.com>
7144
7145 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7146 argument.
7147 (target_set_circular_trace_buffer): Add argument.
7148 * target.c (update_current_target): Update.
7149 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7150 argument.
7151
7152 2014-02-19 Tom Tromey <tromey@redhat.com>
7153
7154 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7155 argument.
7156 (target_set_disconnected_tracing): Add argument.
7157 * target.c (update_current_target): Update.
7158 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7159
7160 2014-02-19 Tom Tromey <tromey@redhat.com>
7161
7162 * target.h (struct target_ops)
7163 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7164 (target_get_min_fast_tracepoint_insn_len): Add argument.
7165 * target.c (update_current_target): Update.
7166 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7167 argument.
7168
7169 2014-02-19 Tom Tromey <tromey@redhat.com>
7170
7171 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7172 argument.
7173 (target_get_raw_trace_data): Add argument.
7174 * target.c (update_current_target): Update.
7175 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7176
7177 2014-02-19 Tom Tromey <tromey@redhat.com>
7178
7179 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7180 Add argument.
7181 (target_upload_trace_state_variables): Add argument.
7182 * target.c (update_current_target): Update.
7183 * remote.c (remote_upload_trace_state_variables): Add 'self'
7184 argument.
7185 (remote_start_remote): Update.
7186
7187 2014-02-19 Tom Tromey <tromey@redhat.com>
7188
7189 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7190 argument.
7191 (target_upload_tracepoints): Add argument.
7192 * target.c (update_current_target): Update.
7193 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7194 (remote_start_remote): Update.
7195
7196 2014-02-19 Tom Tromey <tromey@redhat.com>
7197
7198 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7199 (target_save_trace_data): Add argument.
7200 * target.c (update_current_target): Update.
7201 * remote.c (remote_save_trace_data): Add 'self' argument.
7202
7203 2014-02-19 Tom Tromey <tromey@redhat.com>
7204
7205 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7206 argument.
7207 * target.h (struct target_ops)
7208 <to_get_trace_state_variable_value>: Add argument.
7209 (target_get_trace_state_variable_value): Add argument.
7210 * target.c (update_current_target): Update.
7211 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7212 argument.
7213 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7214
7215 2014-02-19 Tom Tromey <tromey@redhat.com>
7216
7217 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7218 * target.h (struct target_ops) <to_trace_find>: Add argument.
7219 (target_trace_find): Add argument.
7220 * target.c (update_current_target): Update.
7221 * remote.c (remote_trace_find): Add 'self' argument.
7222 * ctf.c (ctf_trace_find): Add 'self' argument.
7223
7224 2014-02-19 Tom Tromey <tromey@redhat.com>
7225
7226 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7227 (target_trace_stop): Add argument.
7228 * target.c (update_current_target): Update.
7229 * remote.c (remote_trace_stop): Add 'self' argument.
7230
7231 2014-02-19 Tom Tromey <tromey@redhat.com>
7232
7233 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7234 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7235 argument.
7236 (target_get_tracepoint_status): Add argument.
7237 * target.c (update_current_target): Update.
7238 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7239
7240 2014-02-19 Tom Tromey <tromey@redhat.com>
7241
7242 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7243 * target.h (struct target_ops) <to_get_trace_status>: Add
7244 argument.
7245 (target_get_trace_status): Add argument.
7246 * target.c (update_current_target): Update.
7247 * remote.c (remote_get_trace_status): Add 'self' argument.
7248 (remote_start_remote, remote_can_download_tracepoint): Update.
7249 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7250
7251 2014-02-19 Tom Tromey <tromey@redhat.com>
7252
7253 * target.h (struct target_ops) <to_trace_start>: Add argument.
7254 (target_trace_start): Add argument.
7255 * target.c (update_current_target): Update.
7256 * remote.c (remote_trace_start): Add 'self' argument.
7257
7258 2014-02-19 Tom Tromey <tromey@redhat.com>
7259
7260 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7261 Add argument.
7262 (target_trace_set_readonly_regions): Add argument.
7263 * target.c (update_current_target): Update.
7264 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7265 argument.
7266
7267 2014-02-19 Tom Tromey <tromey@redhat.com>
7268
7269 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7270 argument.
7271 (target_disable_tracepoint): Add argument.
7272 * target.c (update_current_target): Update.
7273 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7274
7275 2014-02-19 Tom Tromey <tromey@redhat.com>
7276
7277 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7278 argument.
7279 (target_enable_tracepoint): Add argument.
7280 * target.c (update_current_target): Update.
7281 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7282
7283 2014-02-19 Tom Tromey <tromey@redhat.com>
7284
7285 * target.h (struct target_ops) <to_download_trace_state_variable>:
7286 Add argument.
7287 (target_download_trace_state_variable): Add argument.
7288 * target.c (update_current_target): Update.
7289 * remote.c (remote_download_trace_state_variable): Add 'self'
7290 argument.
7291
7292 2014-02-19 Tom Tromey <tromey@redhat.com>
7293
7294 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7295 argument.
7296 (target_can_download_tracepoint): Add argument.
7297 * target.c (update_current_target): Update.
7298 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7299
7300 2014-02-19 Tom Tromey <tromey@redhat.com>
7301
7302 * target.h (struct target_ops) <to_download_tracepoint>: Add
7303 argument.
7304 (target_download_tracepoint): Add argument.
7305 * target.c (update_current_target): Update.
7306 * remote.c (remote_download_tracepoint): Add 'self' argument.
7307
7308 2014-02-19 Tom Tromey <tromey@redhat.com>
7309
7310 * target.h (struct target_ops) <to_trace_init>: Add argument.
7311 (target_trace_init): Add argument.
7312 * target.c (update_current_target): Update.
7313 * remote.c (remote_trace_init): Add 'self' argument.
7314
7315 2014-02-19 Tom Tromey <tromey@redhat.com>
7316
7317 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7318 * target.c (target_fileio_readlink): Add argument.
7319 * remote.c (remote_hostio_readlink): Add 'self' argument.
7320 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7321
7322 2014-02-19 Tom Tromey <tromey@redhat.com>
7323
7324 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7325 * target.c (target_fileio_unlink): Add argument.
7326 * remote.c (remote_hostio_unlink): Add 'self' argument.
7327 (remote_file_delete): Update.
7328 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7329
7330 2014-02-19 Tom Tromey <tromey@redhat.com>
7331
7332 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7333 * target.c (target_fileio_close): Add argument.
7334 * remote.c (remote_hostio_close): Add 'self' argument.
7335 (remote_hostio_close_cleanup): Update.
7336 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7337 Update.
7338 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7339
7340 2014-02-19 Tom Tromey <tromey@redhat.com>
7341
7342 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7343 * target.c (target_fileio_pread): Add argument.
7344 * remote.c (remote_hostio_pread): Add 'self' argument.
7345 (remote_bfd_iovec_pread, remote_file_get): Update.
7346 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7347
7348 2014-02-19 Tom Tromey <tromey@redhat.com>
7349
7350 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7351 * target.c (target_fileio_pwrite): Add argument.
7352 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7353 (remote_file_put): Update.
7354 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7355
7356 2014-02-19 Tom Tromey <tromey@redhat.com>
7357
7358 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7359 * target.c (target_fileio_open): Add argument.
7360 * remote.c (remote_hostio_open): Add 'self' argument.
7361 (remote_bfd_iovec_open): Add 'self' argument.
7362 (remote_file_put): Add 'self' argument.
7363 (remote_file_get): Add 'self' argument.
7364 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7365
7366 2014-02-19 Tom Tromey <tromey@redhat.com>
7367
7368 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7369 Add argument.
7370 (target_can_run_breakpoint_commands): Add argument.
7371 * target.c (update_current_target): Update.
7372 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7373 argument.
7374 (remote_insert_breakpoint): Add 'self' argument.
7375 (remote_insert_hw_breakpoint): Add 'self' argument.
7376 (remote_can_run_breakpoint_commands): Add 'self' argument.
7377
7378 2014-02-19 Tom Tromey <tromey@redhat.com>
7379
7380 * target.h (struct target_ops)
7381 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7382 (target_supports_evaluation_of_breakpoint_conditions): Add
7383 argument.
7384 * target.c (update_current_target): Update.
7385 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7386 argument.
7387 (remote_insert_breakpoint): Add 'self' argument.
7388 (remote_insert_hw_breakpoint): Add 'self' argument.
7389 (remote_supports_cond_breakpoints): Add 'self' argument.
7390
7391 2014-02-19 Tom Tromey <tromey@redhat.com>
7392
7393 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7394 argument.
7395 (target_supports_string_tracing): Add argument.
7396 * target.c (update_current_target): Update.
7397 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7398
7399 2014-02-19 Tom Tromey <tromey@redhat.com>
7400
7401 * target.h (struct target_ops)
7402 <to_supports_disable_randomization>: Add argument.
7403 * target.c (find_default_supports_disable_randomization): Add
7404 argument.
7405 (target_supports_disable_randomization): Add argument.
7406 (find_default_supports_disable_randomization): Add 'self'
7407 argument.
7408 * remote.c (extended_remote_supports_disable_randomization): Add
7409 'self' argument.
7410 (remote_supports_disable_randomization): Add 'self' argument.
7411 (extended_remote_create_inferior): Update.
7412 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7413 'self' argument.
7414
7415 2014-02-19 Tom Tromey <tromey@redhat.com>
7416
7417 * target.h (struct target_ops)
7418 <to_supports_enable_disable_tracepoint>: Add argument.
7419 (target_supports_enable_disable_tracepoint): Add argument.
7420 * target.c (update_current_target): Update.
7421 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7422 argument.
7423
7424 2014-02-19 Tom Tromey <tromey@redhat.com>
7425
7426 * target.h (struct target_ops) <to_supports_multi_process>: Add
7427 argument.
7428 (target_supports_multi_process): Add argument.
7429 * target.c (update_current_target): Update.
7430 * remote.c (remote_supports_multi_process): Add 'self' argument.
7431 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7432 argument.
7433 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7434 argument.
7435
7436 2014-02-19 Tom Tromey <tromey@redhat.com>
7437
7438 * target.h (struct target_ops) <to_execution_direction>: Add
7439 argument.
7440 (target_execution_direction): Add argument.
7441 * target.c (default_execution_direction): Add 'self' argument.
7442 * record-full.c (record_full_execution_direction): Add 'self'
7443 argument.
7444
7445 2014-02-19 Tom Tromey <tromey@redhat.com>
7446
7447 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7448 argument.
7449 (target_can_execute_reverse): Add argument.
7450 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7451 * record-full.c (record_full_can_execute_reverse): Add 'self'
7452 argument.
7453 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7454 argument.
7455
7456 2014-02-19 Tom Tromey <tromey@redhat.com>
7457
7458 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7459 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7460 argument.
7461 (target_get_ada_task_ptid): Add argument.
7462 * target.c (update_current_target): Update.
7463 (default_get_ada_task_ptid): Add 'self' argument.
7464 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7465 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7466 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7467 argument.
7468 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7469 argument.
7470 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7471 argument.
7472 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7473 argument.
7474 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7475 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7476 argument.
7477
7478 2014-02-19 Tom Tromey <tromey@redhat.com>
7479
7480 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7481 (target_goto_bookmark): Add argument.
7482 * target.c (dummy_goto_bookmark): Add 'self' argument.
7483 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7484
7485 2014-02-19 Tom Tromey <tromey@redhat.com>
7486
7487 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7488 (target_get_bookmark): Add argument.
7489 * target.c (dummy_get_bookmark): Add 'self' argument.
7490 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7491
7492 2014-02-19 Tom Tromey <tromey@redhat.com>
7493
7494 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7495 argument.
7496 (target_make_corefile_notes): Add argument.
7497 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7498 * procfs.c (procfs_make_note_section): Add 'self' argument.
7499 (procfs_make_note_section): Add 'self' argument.
7500 (procfs_make_note_section): Add 'self' argument.
7501 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7502 argument.
7503 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7504 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7505 * exec.c (exec_make_note_section): Add 'self' argument.
7506 (exec_make_note_section): Add 'self' argument.
7507
7508 2014-02-19 Tom Tromey <tromey@redhat.com>
7509
7510 * target.h (struct target_ops) <to_find_memory_regions>: Add
7511 argument.
7512 (target_find_memory_regions): Add argument.
7513 * target.c (dummy_find_memory_regions): Add 'self' argument.
7514 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7515 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7516 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7517 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7518 * exec. (exec_do_find_memory_regions): New global.
7519 (exec_set_find_memory_regions): Rewrite.
7520 (exec_find_memory_regions): New function.
7521 (init_exec_ops): Use exec_find_memory_regions.
7522
7523 2014-02-19 Tom Tromey <tromey@redhat.com>
7524
7525 * target.h (struct target_ops) <to_supports_non_stop>: Add
7526 argument.
7527 * target.c (find_default_supports_non_stop): Add argument.
7528 (target_supports_non_stop): Add argument.
7529 (find_default_supports_non_stop): Add 'self' argument.
7530 * remote.c (remote_supports_non_stop): Add 'self' argument.
7531 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7532
7533 2014-02-19 Tom Tromey <tromey@redhat.com>
7534
7535 * target.h (struct target_ops) <to_log_command>: Add argument.
7536 (target_log_command): Add argument.
7537 * serial.h (serial_log_command): Add 'self' argument.
7538 * serial.c (serial_log_command): Add 'self' argument.
7539
7540 2014-02-19 Tom Tromey <tromey@redhat.com>
7541
7542 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7543 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7544 argument.
7545 (target_pid_to_exec_file): Add argument.
7546 * target.c (debug_to_pid_to_exec_file): Add argument.
7547 (update_current_target): Update.
7548 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7549 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7550 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7551 (linux_handle_extended_wait): Update.
7552 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7553 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7554 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7555 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7556
7557 2014-02-19 Tom Tromey <tromey@redhat.com>
7558
7559 * target.h (struct target_ops) <to_rcmd>: Add argument.
7560 (target_rcmd): Add argument.
7561 * target.c (debug_to_rcmd): Add argument.
7562 (update_current_target, do_monitor_command): Update.
7563 * remote.c (remote_rcmd): Add 'self' argument.
7564 * monitor.c (monitor_rcmd): Add 'self' argument.
7565
7566 2014-02-19 Tom Tromey <tromey@redhat.com>
7567
7568 * windows-nat.c (windows_stop): Add 'self' argument.
7569 * target.h (struct target_ops) <to_stop>: Add argument.
7570 * target.c (target_stop): Add argument.
7571 (debug_to_stop): Add argument.
7572 (update_current_target): Update.
7573 * remote.c (remote_stop): Add 'self' argument.
7574 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7575 (gdbsim_cntrl_c): Update.
7576 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7577 * procfs.c (procfs_stop): Add 'self' argument.
7578 * nto-procfs.c (procfs_stop): Add 'self' argument.
7579 * monitor.c (monitor_stop): Add 'self' argument.
7580 (monitor_open): Update.
7581 * linux-nat.c (linux_nat_stop): Add argument.
7582 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7583 * gnu-nat.c (gnu_stop): Add 'self' argument.
7584 * darwin-nat.c (darwin_stop): Add 'self' argument.
7585
7586 2014-02-19 Tom Tromey <tromey@redhat.com>
7587
7588 * target.h (struct target_ops) <to_thread_name>: Add argument.
7589 * target.c (target_thread_name): Add argument.
7590 (update_current_target): Update.
7591 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7592
7593 2014-02-19 Tom Tromey <tromey@redhat.com>
7594
7595 * target.h (struct target_ops) <to_extra_thread_info>: Add
7596 argument.
7597 (target_extra_thread_info): Add argument.
7598 * target.c (update_current_target): Update.
7599 * remote.c (remote_threads_extra_info): Add 'self' argument.
7600 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7601 argument.
7602 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7603 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7604 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7605 argument.
7606 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7607 argument.
7608 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7609 argument.
7610 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7611 argument.
7612
7613 2014-02-19 Tom Tromey <tromey@redhat.com>
7614
7615 * target.h (struct target_ops) <to_program_signals>: Add argument.
7616 * target.c (target_program_signals): Add argument.
7617 * remote.c (remote_program_signals): Add 'self' argument.
7618
7619 2014-02-19 Tom Tromey <tromey@redhat.com>
7620
7621 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7622 * target.c (target_pass_signals): Add argument.
7623 * remote.c (remote_pass_signals): Add 'self' argument.
7624 (remote_start_remote): Update.
7625 * procfs.c (procfs_pass_signals): Add 'self' argument.
7626 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7627 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7628 (linux_nat_create_inferior, linux_nat_attach): Update.
7629
7630 2014-02-19 Tom Tromey <tromey@redhat.com>
7631
7632 * windows-nat.c (windows_can_run): Add 'self' argument.
7633 * target.h (struct target_ops) <to_can_run>: Add argument.
7634 (target_can_run): Add argument.
7635 * target.c (debug_to_can_run): Add argument.
7636 (update_current_target): Update.
7637 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7638 * inf-child.c (inf_child_can_run): Add 'self' argument.
7639 * go32-nat.c (go32_can_run): Add 'self' argument.
7640
7641 2014-02-19 Tom Tromey <tromey@redhat.com>
7642
7643 * target.h (struct target_ops) <to_has_exited>: Add argument.
7644 (target_has_exited): Add argument.
7645 * target.c (debug_to_has_exited): Add argument.
7646 (update_current_target): Update.
7647
7648 2014-02-19 Tom Tromey <tromey@redhat.com>
7649
7650 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7651 argument.
7652 (target_set_syscall_catchpoint): Add argument.
7653 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7654 argument.
7655 * target.c (update_current_target): Update.
7656
7657 2014-02-19 Tom Tromey <tromey@redhat.com>
7658
7659 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7660 argument.
7661 (target_remove_exec_catchpoint): Add argument.
7662 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7663 (update_current_target): Update.
7664 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7665 argument.
7666
7667 2014-02-19 Tom Tromey <tromey@redhat.com>
7668
7669 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7670 argument.
7671 (target_insert_exec_catchpoint): Add argument.
7672 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7673 (update_current_target): Update.
7674 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7675 argument.
7676
7677 2014-02-19 Tom Tromey <tromey@redhat.com>
7678
7679 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7680 argument.
7681 (target_remove_vfork_catchpoint): Add argument.
7682 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7683 (update_current_target): Update.
7684 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7685 argument.
7686
7687 2014-02-19 Tom Tromey <tromey@redhat.com>
7688
7689 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7690 argument.
7691 (target_insert_vfork_catchpoint): Add argument.
7692 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7693 (update_current_target): Update.
7694 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7695 argument.
7696
7697 2014-02-19 Tom Tromey <tromey@redhat.com>
7698
7699 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7700 argument.
7701 (target_remove_fork_catchpoint): Add argument.
7702 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7703 (update_current_target): Update.
7704 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7705 argument.
7706
7707 2014-02-19 Tom Tromey <tromey@redhat.com>
7708
7709 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7710 argument.
7711 (target_insert_fork_catchpoint): Add argument.
7712 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7713 (update_current_target): Update.
7714 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7715 argument.
7716
7717 2014-02-19 Tom Tromey <tromey@redhat.com>
7718
7719 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7720 argument.
7721 (target_post_startup_inferior): Add argument.
7722 * target.c (debug_to_post_startup_inferior): Add argument.
7723 (update_current_target): Update.
7724 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7725 argument.
7726 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7727 argument.
7728 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7729 argument.
7730 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7731 argument.
7732 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7733 'self' argument.
7734 (super_post_startup_inferior): Likewise.
7735 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7736 'self' argument.
7737 (super_post_startup_inferior): Likewise.
7738 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7739 Add 'self' argument.
7740 (super_post_startup_inferior): Likewise.
7741
7742 2014-02-19 Tom Tromey <tromey@redhat.com>
7743
7744 * target.h (struct target_ops) <to_load>: Add argument.
7745 * target.c (target_load): Add argument.
7746 (debug_to_load): Add argument.
7747 (update_current_target): Update.
7748 * remote.c (remote_load): Add 'self' argument.
7749 * remote-sim.c (gdbsim_load): Add 'self' argument.
7750 * remote-mips.c (mips_load): Add 'self' argument.
7751 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7752 * monitor.c (monitor_load): Add 'self' argument.
7753 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7754
7755 2014-02-19 Tom Tromey <tromey@redhat.com>
7756
7757 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7758 (target_terminal_info): Add argument.
7759 * target.c (debug_to_terminal_info): Add argument.
7760 (default_terminal_info): Likewise.
7761 * inflow.c (child_terminal_info): Add 'self' argument.
7762 * inferior.h (child_terminal_info): Add 'self' argument.
7763 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7764
7765 2014-02-19 Tom Tromey <tromey@redhat.com>
7766
7767 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7768 argument.
7769 (target_terminal_save_ours): Add argument.
7770 * target.c (debug_to_terminal_save_ours): Add argument.
7771 (update_current_target): Update.
7772 * inflow.c (terminal_save_ours): Add 'self' argument.
7773 * inferior.h (terminal_save_ours): Add 'self' argument.
7774
7775 2014-02-19 Tom Tromey <tromey@redhat.com>
7776
7777 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7778 (target_terminal_ours): Add argument.
7779 * target.c (debug_to_terminal_ours): Add argument.
7780 (update_current_target): Update.
7781 * remote.c (remote_terminal_ours): Add 'self' argument.
7782 (remote_close): Update.
7783 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7784 * inflow.c (terminal_ours): Add 'self' argument.
7785 * inferior.h (terminal_ours): Add 'self' argument.
7786 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7787
7788 2014-02-19 Pedro Alves <palves@redhat.com>
7789 Tom Tromey <tromey@redhat.com>
7790
7791 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7792 argument.
7793 (target_terminal_ours_for_output): Add argument.
7794 * target.c (debug_to_terminal_ours_for_output): Add argument.
7795 (update_current_target): Update.
7796 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7797 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7798 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7799
7800 2014-02-19 Tom Tromey <tromey@redhat.com>
7801
7802 * target.h (struct target_ops) <to_terminal_inferior>: Add
7803 argument.
7804 * target.c (target_terminal_inferior): Add argument.
7805 (update_current_target): Update.
7806 * remote.c (remote_terminal_inferior): Add 'self' argument.
7807 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7808 * inflow.c (terminal_inferior): Add 'self' argument.
7809 * inferior.h (terminal_inferior): Add 'self' argument.
7810 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7811 (go32_terminal_inferior): Add 'self' argument.
7812
7813 2014-02-19 Tom Tromey <tromey@redhat.com>
7814
7815 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7816 (target_terminal_init): Add argument.
7817 * target.c (debug_to_terminal_init): Add argument.
7818 (update_current_target): Update.
7819 * inflow.c (terminal_init_inferior): Add 'self' argument.
7820 * inferior.h (terminal_init_inferior): Add 'self' argument.
7821 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7822 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7823
7824 2014-02-19 Tom Tromey <tromey@redhat.com>
7825
7826 * target.h (struct target_ops)
7827 <to_can_accel_watchpoint_condition>: Add argument.
7828 (target_can_accel_watchpoint_condition): Add argument.
7829 * target.c (debug_to_can_accel_watchpoint_condition): Add
7830 argument.
7831 (update_current_target): Update.
7832 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
7833 'self' argument.
7834
7835 2014-02-19 Tom Tromey <tromey@redhat.com>
7836
7837 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7838 Add argument.
7839 (target_region_ok_for_hw_watchpoint): Add argument.
7840 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7841 (default_region_ok_for_hw_watchpoint): Add argument.
7842 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7843 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7844 argument.
7845 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7846 argument.
7847 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7848 argument.
7849 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7850 'self' argument.
7851 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7852 'self' argument.
7853 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7854 'self' argument.
7855 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7856 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7857 'self' argument.
7858 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7859 Add 'self' argument.
7860
7861 2014-02-19 Tom Tromey <tromey@redhat.com>
7862
7863 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7864 argument.
7865 (target_insert_watchpoint): Add argument.
7866 * target.c (debug_to_insert_watchpoint): Add argument.
7867 (update_current_target): Update.
7868 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7869 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7870 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7871 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7872 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7873 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7874 argument.
7875 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7876 (procfs_insert_hw_watchpoint): Add 'self' argument.
7877 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7878 argument.
7879 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7880 argument.
7881 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7882 argument.
7883 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7884 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7885 argument.
7886 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7887 'self' argument.
7888
7889 2014-02-19 Tom Tromey <tromey@redhat.com>
7890
7891 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7892 argument.
7893 (target_remove_watchpoint): Add argument.
7894 * target.c (debug_to_remove_watchpoint): Add argument.
7895 (update_current_target): Update.
7896 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7897 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7898 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7899 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7900 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7901 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7902 argument.
7903 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7904 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7905 argument.
7906 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7907 argument.
7908 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7909 argument.
7910 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7911 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7912 argument.
7913 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7914 'self' argument.
7915
7916 2014-02-19 Tom Tromey <tromey@redhat.com>
7917
7918 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7919 argument.
7920 (target_remove_hw_breakpoint): Add argument.
7921 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7922 (update_current_target): Update.
7923 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7924 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7925 argument.
7926 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7927 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7928 argument.
7929 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7930 'self' argument.
7931
7932 2014-02-19 Tom Tromey <tromey@redhat.com>
7933
7934 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7935 argument.
7936 (target_insert_hw_breakpoint): Add argument.
7937 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7938 (update_current_target): Update.
7939 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7940 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7941 argument.
7942 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7943 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7944 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7945 argument.
7946 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7947 'self' argument.
7948
7949 2014-02-19 Tom Tromey <tromey@redhat.com>
7950
7951 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7952 argument.
7953 (target_can_use_hardware_watchpoint): Add argument.
7954 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7955 (update_current_target): Update.
7956 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7957 argument.
7958 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7959 argument.
7960 * remote.c (remote_check_watch_resources): Add 'self' argument.
7961 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7962 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7963 argument.
7964 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7965 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7966 argument.
7967 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7968 argument.
7969 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7970 argument.
7971 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7972 argument.
7973 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7974 argument.
7975 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7976 argument.
7977 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7978 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7979 argument.
7980 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7981 'self' argument.
7982
7983 2014-02-19 Tom Tromey <tromey@redhat.com>
7984
7985 * target.h (struct target_ops) <to_post_attach>: Add argument.
7986 (target_post_attach): Add argument.
7987 * target.c (debug_to_post_attach): Add argument.
7988 (update_current_target): Update.
7989 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7990 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7991 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7992 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7993 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7994
7995 2014-02-19 Tom Tromey <tromey@redhat.com>
7996
7997 * windows-nat.c (windows_close): Add 'self' argument.
7998 * tracepoint.c (tfile_close): Add 'self' argument.
7999 * target.h (struct target_ops) <to_close>: Add argument.
8000 * target.c (target_close): Add argument.
8001 (update_current_target): Update.
8002 * remote.c (remote_close): Add 'self' argument.
8003 * remote-sim.c (gdbsim_close): Add 'self' argument.
8004 * remote-mips.c (mips_close): Add 'self' argument.
8005 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
8006 * record-full.c (record_full_close): Add 'self' argument.
8007 * record-btrace.c (record_btrace_close): Add 'self' argument.
8008 * monitor.h (monitor_close): Add 'self' argument.
8009 * monitor.c (monitor_close): Add 'self' argument.
8010 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
8011 * linux-nat.c (linux_nat_close): Add argument.
8012 * go32-nat.c (go32_close): Add 'self' argument.
8013 * exec.c (exec_close_1): Add 'self' argument.
8014 * ctf.c (ctf_close): Add 'self' argument.
8015 * corelow.c (core_close): Add 'self' argument.
8016 (core_close_cleanup): Update.
8017 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
8018 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
8019
8020 2014-02-19 Tom Tromey <tromey@redhat.com>
8021
8022 * remote.c (remote_load): New function.
8023 (init_remote_ops): Use it.
8024
8025 2014-02-19 Tom Tromey <tromey@redhat.com>
8026
8027 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
8028 argument.
8029 * common/linux-btrace.h (linux_supports_btrace): Update.
8030 * remote.c (remote_supports_btrace): Add "self" argument.
8031 * target-delegates.c: Rebuild.
8032 * target.c (target_supports_btrace): Remove.
8033 * target.h (struct target_ops) <to_supports_btrace>: Add
8034 target_ops argument.
8035 (target_supports_btrace): New define.
8036
8037 2014-02-19 Tom Tromey <tromey@redhat.com>
8038
8039 * record-full.c (record_full_beneath_to_resume_ops)
8040 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8041 (record_full_beneath_to_wait)
8042 (record_full_beneath_to_store_registers_ops)
8043 (record_full_beneath_to_store_registers)
8044 (record_full_beneath_to_xfer_partial_ops)
8045 (record_full_beneath_to_xfer_partial)
8046 (record_full_beneath_to_insert_breakpoint_ops)
8047 (record_full_beneath_to_insert_breakpoint)
8048 (record_full_beneath_to_remove_breakpoint_ops)
8049 (record_full_beneath_to_remove_breakpoint)
8050 (record_full_beneath_to_stopped_by_watchpoint)
8051 (record_full_beneath_to_stopped_data_address)
8052 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8053 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8054 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8055 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8056 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8057 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8058 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8059 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8060 (record_full_resume, record_full_wait_1)
8061 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8062 (record_full_store_registers, record_full_xfer_partial)
8063 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8064 (record_full_async, record_full_core_xfer_partial): Use target
8065 delegation.
8066 * target-delegates.c: Rebuild.
8067 * target.c (current_xfer_partial): Remove.
8068 (update_current_target): Do not INHERIT or de_fault
8069 to_insert_breakpoint, to_remove_breakpoint,
8070 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8071 to_is_async_p, to_async. Do not set to_xfer_partial field.
8072 (default_xfer_partial): Simplify.
8073 (current_xfer_partial): Remove.
8074 (target_wait, target_resume): Simplify.
8075 (find_default_can_async_p, find_default_is_async_p): Update.
8076 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8077 to_xfer_partial, to_stopped_by_watchpoint,
8078 to_stopped_data_address.
8079 (target_store_registers): Simplify.
8080 (forward_target_remove_breakpoint)
8081 (forward_target_insert_breakpoint): Remove.
8082 (target_remove_breakpoint, target_insert_breakpoint)
8083 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8084 * target.h (struct target_ops) <to_resume, to_wait,
8085 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8086 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8087 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8088 markup.
8089 (forward_target_remove_breakpoint)
8090 (forward_target_insert_breakpoint): Remove.
8091 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8092 directly.
8093 (record_btrace_insert_breakpoint): Delegate directly.
8094
8095 2014-02-19 Tom Tromey <tromey@redhat.com>
8096
8097 PR build/7701:
8098 * target-delegates.c: New file.
8099 * target.c: Include target-delegates.c.
8100 (init_dummy_target): Call install_dummy_methods.
8101 (complete_target_initialization): Call install_delegators.
8102 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8103 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8104 * make-target-delegates: New file.
8105
8106 2014-02-19 Tom Tromey <tromey@redhat.com>
8107
8108 * record.c (find_record_target): Use find_target_at.
8109 * target.c (find_target_at): New function.
8110 * target.h (find_target_at): Declare.
8111
8112 2014-02-19 Tom Tromey <tromey@redhat.com>
8113
8114 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8115 Add 'ops' argument.
8116 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8117 'ops' argument.
8118 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8119 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8120 'ops' argument.
8121 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8122 argument.
8123 * linux-nat.c (save_sigtrap): Update.
8124 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8125 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8126 (linux_nat_close): Update.
8127 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8128 argument.
8129 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8130 argument.
8131 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8132 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8133 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8134 (tmp_to_async): Add 'ops' argument.
8135 (record_full_stopped_by_watchpoint, record_full_async)
8136 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8137 argument.
8138 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8139 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8140 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8141 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8142 (remote_is_async_p, remote_async): Add 'ops' argument.
8143 (remote_stopped_data_address): Update.
8144 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8145 * target.c (update_current_target)
8146 (find_default_can_async_p, find_default_is_async_p): Update.
8147 (init_dummy_target): Update.
8148 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8149 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8150 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8151 (target_can_async_p, target_is_async_p, target_async)
8152 (target_stopped_by_watchpoint): Update.
8153
8154 2014-02-19 Yao Qi <yao@codesourcery.com>
8155
8156 PR gdb/16220
8157 * gdbarch.sh: Remove startup_gdbarch.
8158 * gdbarch.c: Regenerated.
8159 * gdbarch.h: Likewise.
8160
8161 2014-02-17 Kevin Buettner <kevinb@redhat.com>
8162
8163 * rl78-tdep.c (rl78_g10_register_name): New function.
8164 (rl78_return_value): Add g10 support.
8165 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8166 g10.
8167
8168 2014-02-17 Doug Evans <xdje42@gmail.com>
8169
8170 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8171 (SUBDIR_GUILE_SRCS): Ditto.
8172 (scm-gsmob.o): Ditto.
8173
8174 2014-02-17 Yao Qi <yao@codesourcery.com>
8175
8176 * gnu-nat.c (ILL_RPC): Declare defined function.
8177
8178 2014-02-17 Yao Qi <yao@codesourcery.com>
8179
8180 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8181 mach_msg_type_number_t.
8182 (gnu_write_inferior): Likewise.
8183
8184 2014-02-17 Yao Qi <yao@codesourcery.com>
8185
8186 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8187 in format string.
8188 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8189 (inf_validate_procs, inf_signal): Likewise.
8190 (S_exception_raise_request): Likewise.
8191 (do_mach_notify_dead_name): Likewise.
8192 (steal_exc_port): Likewise.
8193 (gnu_read_inferior): Change 'copy_count''s type to
8194 mach_msg_type_number_t.
8195 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8196 format string.
8197
8198 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8199
8200 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8201 flag. Adjust all users; in particular...
8202 (gnu_wait): ..., don't decrement its value in here...
8203 (gnu_create_inferior): ..., and instead set the flag in here,
8204 around the startup_inferior call, and call that one with
8205 START_INFERIOR_TRAPS_EXPECTED.
8206
8207 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8208 (ILL_RPC): ... new macro.
8209 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8210 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8211 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8212 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8213 functions with ILL_RPC macro.
8214 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8215 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8216 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8217 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8218 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8219 (S_proc_getlogin_reply, S_proc_getsid_reply)
8220 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8221 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8222 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8223 (S_proc_getnports_reply, S_proc_is_important_reply)
8224 (S_proc_get_code_reply): New stub functions, generated with
8225 ILL_RPC macro.
8226
8227 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8228 collected the type check structures.
8229
8230 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8231
8232 2014-02-14 Doug Evans <dje@google.com>
8233
8234 * target.c (target_write_partial): Fix result type.
8235
8236 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8237
8238 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8239 the proper offsets to access fpregset_t.
8240
8241 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8242
8243 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8244 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8245 * h8300-tdep.c (setmachinelist): Remove global.
8246 * hppa-tdep.c (hppa_sigtramp): Remove global.
8247 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8248 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8249 * ravenscar-thread.c (update_target_observer): Remove global.
8250 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8251
8252 2014-02-12 Tom Tromey <tromey@redhat.com>
8253
8254 * common/rsp-low.c: Update comments.
8255 * common/rsp-low.h: Update comments.
8256
8257 2014-02-12 Tom Tromey <tromey@redhat.com>
8258
8259 * common/rsp-low.c (convert_ascii_to_int): Remove.
8260 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8261
8262 2014-02-12 Tom Tromey <tromey@redhat.com>
8263
8264 * common/rsp-low.h (unhexify): Don't declare.
8265 * common/rsp-low.c (unhexify): Remove.
8266
8267 2014-02-12 Tom Tromey <tromey@redhat.com>
8268
8269 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8270 * common/rsp-low.c (convert_int_to_ascii): Remove.
8271
8272 2014-02-12 Tom Tromey <tromey@redhat.com>
8273
8274 * common/rsp-low.h (hexify): Don't declare.
8275 * common/rsp-low.c (hexify): Remove.
8276
8277 2014-02-12 Tom Tromey <tromey@redhat.com>
8278
8279 * common/rsp-low.c (hexify): Never take strlen of argument.
8280
8281 2014-02-12 Tom Tromey <tromey@redhat.com>
8282
8283 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8284 * remote.c (extended_remote_run, remote_rcmd)
8285 (remote_download_trace_state_variable, remote_save_trace_data)
8286 (remote_set_trace_notes): Update.
8287 * tracepoint.c (encode_source_string, tfile_write_status)
8288 (tfile_write_uploaded_tsv): Update.
8289
8290 2014-02-12 Tom Tromey <tromey@redhat.com>
8291
8292 * tracepoint.c: Include rsp-low.h.
8293 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8294 * remote.c: Include rsp-low.h.
8295 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8296 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8297 (remote_unescape_input): Move to common/rsp-low.c.
8298 * common/rsp-low.h: New file.
8299 * common/rsp-low.c: New file.
8300 * Makefile.in (SFILES): Add common/rsp-low.c.
8301 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8302 (COMMON_OBS): Add rsp-low.o.
8303 (rsp-low.o): New target.
8304
8305 2014-02-12 Tom Tromey <tromey@redhat.com>
8306
8307 * utils.h: Include print-utils.h.
8308 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8309 (int_string, core_addr_to_string, core_addr_to_string_nz)
8310 (hex_string, hex_string_custom): Don't declare.
8311 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8312 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8313 (hex_string_custom, int_string, core_addr_to_string)
8314 (core_addr_to_string_nz, host_address_to_string): Move to
8315 common/print-utils.c.
8316 * common/print-utils.h: New file.
8317 * common/print-utils.c: New file
8318 * Makefile.in (SFILES): Add common/print-utils.c.
8319 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8320 (COMMON_OBS): Add print-utils.o.
8321 (print-utils.o): New target.
8322
8323 2014-02-12 Tom Tromey <tromey@redhat.com>
8324
8325 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8326
8327 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8328
8329 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8330
8331 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8332
8333 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8334 if a PT_IO ptrace request returns sucessfully but indicates that 0
8335 bytes were transferred.
8336
8337 2014-02-12 Pedro Alves <palves@redhat.com>
8338 Kevin Buettner <kevinb@redhat.com>
8339
8340 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8341 TYPE_INSTANCE_FLAG_CODE_SPACE.
8342
8343 2014-02-12 Pedro Alves <palves@redhat.com>
8344
8345 * h8300-tdep.c (pseudo_from_raw_register)
8346 (raw_from_pseudo_register): New functions.
8347 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8348 them.
8349
8350 2014-02-12 Pedro Alves <palves@redhat.com>
8351
8352 * h8300-tdep.c (h8300_register_sim_regno): New function.
8353 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8354 gdbarch_register_sim_regno hook.
8355
8356 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8357
8358 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8359
8360 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8361
8362 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8363
8364 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8365
8366 * obsd-tdep.h (obsd_init_abi): New prototype.
8367 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8368 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8369 (obsd_init_abi): New functions.
8370 * i386obsd-tdep.c: Include "obsd-tdep.h".
8371 (i386obsd_init_abi): Call obsd_init_abi.
8372 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8373 (amd64obsd_init_abi): Call obsd_init_abi.
8374 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8375 obsd-tdep.c to gdb_target_obs.
8376
8377 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8378
8379 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8380 double float arguments to 16-byte in the argument slots.
8381
8382 2014-02-11 Doug Evans <xdje42@gmail.com>
8383
8384 * configure.ac: Don't crash if pkg-config is not found and guile
8385 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8386 in guile checks.
8387 * configure: Regenerate.
8388
8389 2014-02-11 Yao Qi <yao@codesourcery.com>
8390
8391 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8392 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8393 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8394 * gnu-nat.c (gnu_xfer_memory): Likewise.
8395 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8396 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8397 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8398 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8399
8400 2014-02-11 Yao Qi <yao@codesourcery.com>
8401
8402 * target.h (enum target_xfer_error): Rename to ...
8403 (enum target_xfer_status): ... it. New. All users updated.
8404 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8405 New.
8406 (TARGET_XFER_STATUS_ERROR_P): New macro.
8407 (target_xfer_error_to_string): Remove declaration.
8408 (target_xfer_status_to_string): Declare.
8409 (target_xfer_partial_ftype): Adjust it.
8410 (struct target_ops) <to_xfer_partial>: Return
8411 target_xfer_status. Add argument xfered_len. Update
8412 comments.
8413 * target.c (target_xfer_error_to_string): Rename to ...
8414 (target_xfer_status_to_string): ... it. New. All callers
8415 updated.
8416 (target_read_live_memory): Likewise. Call target_xfer_partial
8417 instead of target_read.
8418 (memory_xfer_live_readonly_partial): Return
8419 target_xfer_status. Add argument xfered_len.
8420 (raw_memory_xfer_partial): Likewise.
8421 (memory_xfer_partial_1): Likewise.
8422 (memory_xfer_partial): Likewise.
8423 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8424 properly. Update debug message.
8425 (default_xfer_partial, current_xfer_partial): Likewise.
8426 (target_write_partial): Likewise.
8427 (target_read_partial): Likewise. All callers updated.
8428 (read_whatever_is_readable): Likewise.
8429 (target_write_with_progress): Likewise.
8430 (target_read_alloc_1): Likewise.
8431
8432 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8433 * auxv.c (procfs_xfer_auxv): Likewise.
8434 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8435 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8436 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8437 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8438 * corefile.c (read_memory): Adjust.
8439 * corelow.c (core_xfer_partial): Likewise.
8440 * ctf.c (ctf_xfer_partial): Likewise.
8441 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8442 updated.
8443 (darwin_xfer_partial): Likewise.
8444 * exec.c (section_table_xfer_memory_partial): Likewise. All
8445 callers updated.
8446 (exec_xfer_partial): Likewise.
8447 * exec.h (section_table_xfer_memory_partial): Update
8448 declaration.
8449 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8450 negative.
8451 (gnu_xfer_partial): Likewise.
8452 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8453 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8454 (ia64_hpux_xfer_solib_got): Likewise.
8455 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8456 type of 'partial_len' to ULONGEST.
8457 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8458 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8459 (linux_nat_xfer_partial): Likewise.
8460 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8461 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8462 * monitor.c (monitor_xfer_memory): Likewise.
8463 (monitor_xfer_partial): Likewise.
8464 * procfs.c (procfs_xfer_partial): Likewise.
8465 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8466 * record-full.c (record_full_xfer_partial): Likewise.
8467 (record_full_core_xfer_partial): Likewise.
8468 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8469 (gdbsim_xfer_partial): Likewise.
8470 * remote.c (remote_write_bytes_aux): Likewise. All callers
8471 updated.
8472 (remote_write_bytes, remote_read_bytes): Likewise. All
8473 callers updated.
8474 (remote_flash_erase): Likewise. All callers updated.
8475 (remote_write_qxfer): Likewise. All callers updated.
8476 (remote_read_qxfer): Likewise. All callers updated.
8477 (remote_xfer_partial): Likewise.
8478 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8479 (rs6000_xfer_shared_libraries): Likewise.
8480 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8481 (sol_thread_xfer_partial): Likewise.
8482 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8483 (sparc_xfer_partial): Likewise.
8484 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8485 updated.
8486 (spu_xfer_partial): Likewise.
8487 * spu-multiarch.c (spu_xfer_partial): Likewise.
8488 * tracepoint.c (tfile_xfer_partial): Likewise.
8489 * windows-nat.c (windows_xfer_memory): Likewise.
8490 (windows_xfer_shared_libraries): Likewise.
8491 (windows_xfer_partial): Likewise.
8492 * valprint.c: Replace 'target_xfer_error' with
8493 'target_xfer_status' in comments.
8494
8495 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8496
8497 Checked in by Joel Brobecker <brobecker@adacore.com>.
8498 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8499
8500 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8501
8502 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8503 function parameters.
8504
8505 2014-02-10 Will Newton <will.newton@linaro.org>
8506
8507 * elfread.c (elf_rel_plt_read): Look for a .got section if
8508 looking up .got.plt fails.
8509 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8510 on address passed to elf_gnu_ifunc_record_cache.
8511 (elf_gnu_ifunc_resolve_addr): Likewise.
8512 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8513
8514 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8515
8516 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8517 (X_RETTURN): New macro.
8518 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8519
8520 * sparc64-tdep.c (sparc64_init_abi): Hook
8521 sparc_in_function_epilogue_p.
8522
8523 2014-02-10 Gary Benson <gbenson@redhat.com>
8524
8525 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8526 Rename name_matcher to symbol_matcher.
8527
8528 2014-02-10 Gary Benson <gbenson@redhat.com>
8529
8530 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8531 Use expand_symtabs_file_matcher_ftype and
8532 expand_symtabs_symbol_matcher_ftype.
8533
8534 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8535
8536 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8537 (struct ada_symbol_cache): New.
8538 (ada_free_symbol_cache): Forward declare.
8539 (struct ada_pspace_data): New.
8540 (ada_pspace_data_handle): New static global.
8541 (get_ada_pspace_data, ada_pspace_data_cleanup)
8542 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8543 (cache_space, cache): Delete, now folded inside struct
8544 ada_pspace_data.
8545 (ada_get_symbol_cache): New function.
8546 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8547 implementation.
8548 (_initialize_ada_language): Remove initialization of cache_space.
8549 Move call to observer_attach_inferior_exit up, grouping it
8550 with the other observer registrations inside this function.
8551 Rename command to be more general. Add call to
8552 register_program_space_data_with_cleanup.
8553
8554 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8555
8556 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8557 ada_new_objfile_observer.
8558 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8559 (_initialize_tasks): Update uses of ada_new_objfile_observer
8560 and ada_tasks_normal_stop_observer.
8561
8562 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8563
8564 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8565 returned by the 'Length attribute to integer.
8566
8567 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8568
8569 * ada-lang.c (_initialize_ada_language): Initialize
8570 cache_space obstack.
8571
8572 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8573
8574 * ada-lang.c (HASH_SIZE): New macro.
8575 (struct cache_entry): New type.
8576 (cache_space, cache): New static globals.
8577 (ada_clear_symbol_cache, find_entry): New functions.
8578 (lookup_cached_symbol, cache_symbol): Implement.
8579 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8580 (_initialize_ada_language): Attach ada_new_objfile_observer
8581 and ada_free_objfile_observer.
8582
8583 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8584
8585 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8586 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8587 struct block * parameter.
8588 (ada_lookup_symbol_list_worker): Constify local variable "block".
8589 Remove cast which is no longer necessary.
8590
8591 2014-02-10 Doug Evans <xdje42@gmail.com>
8592
8593 Add Guile as an extension language.
8594 * NEWS: Mention Guile scripting.
8595 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8596 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8597 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8598 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8599 (CLIBS): Add GUILE_LIBS.
8600 (install-guile): New rule.
8601 (guile.o): New rule.
8602 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8603 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8604 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8605 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8606 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8607 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8608 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8609 * configure.ac: New option --with-guile.
8610 * configure: Regenerate.
8611 * config.in: Regenerate.
8612 * auto-load.c: Remove #include "python/python.h". Add #include
8613 "gdb/section-scripts.h".
8614 (source_section_scripts): Handle Guile scripts.
8615 (_initialize_auto_load): Add name of Guile objfile script to
8616 scripts-directory help text.
8617 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8618 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8619 (struct breakpoint): New member scm_bp_object.
8620 * defs.h (enum command_control_type): New value guile_control.
8621 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8622 "extension.h".
8623 (show_user): Update comment.
8624 (_initialize_cli_cmds): Update help text for "show user". Update help
8625 text for max-user-call-depth.
8626 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8627 "extension.h".
8628 (multi_line_command_p): Add guile_control.
8629 (print_command_lines): Handle guile_control.
8630 (execute_control_command, recurse_read_control_structure): Ditto.
8631 (process_next_line): Recognize "guile" commands.
8632 * disasm.c (gdb_disassemble_info): Make non-static.
8633 * disasm.h: #include "dis-asm.h".
8634 (struct gdbarch): Add forward decl.
8635 (gdb_disassemble_info): Declare.
8636 * extension.c: #include "guile/guile.h".
8637 (extension_languages): Add guile.
8638 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8639 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8640 * gdbtypes.c (get_unsigned_type_max): New function.
8641 (get_signed_type_minmax): New function.
8642 * gdbtypes.h (get_unsigned_type_max): Declare.
8643 (get_signed_type_minmax): Declare.
8644 * guile/README: New file.
8645 * guile/guile-internal.h: New file.
8646 * guile/guile.c: New file.
8647 * guile/guile.h: New file.
8648 * guile/scm-arch.c: New file.
8649 * guile/scm-auto-load.c: New file.
8650 * guile/scm-block.c: New file.
8651 * guile/scm-breakpoint.c: New file.
8652 * guile/scm-disasm.c: New file.
8653 * guile/scm-exception.c: New file.
8654 * guile/scm-frame.c: New file.
8655 * guile/scm-gsmob.c: New file.
8656 * guile/scm-iterator.c: New file.
8657 * guile/scm-lazy-string.c: New file.
8658 * guile/scm-math.c: New file.
8659 * guile/scm-objfile.c: New file.
8660 * guile/scm-ports.c: New file.
8661 * guile/scm-pretty-print.c: New file.
8662 * guile/scm-safe-call.c: New file.
8663 * guile/scm-string.c: New file.
8664 * guile/scm-symbol.c: New file.
8665 * guile/scm-symtab.c: New file.
8666 * guile/scm-type.c: New file.
8667 * guile/scm-utils.c: New file.
8668 * guile/scm-value.c: New file.
8669 * guile/lib/gdb.scm: New file.
8670 * guile/lib/gdb/boot.scm: New file.
8671 * guile/lib/gdb/experimental.scm: New file.
8672 * guile/lib/gdb/init.scm: New file.
8673 * guile/lib/gdb/iterator.scm: New file.
8674 * guile/lib/gdb/printing.scm: New file.
8675 * guile/lib/gdb/types.scm: New file.
8676 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8677 (VPATH): Add $(GUILE_SRCDIR).
8678 (GUILE_DIR): New variable.
8679 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8680 (all): Add stamp-guile dependency.
8681 (stamp-guile): New rule.
8682 (clean-guile, install-guile, uninstall-guile): New rules.
8683 (install-only): Add install-guile dependency.
8684 (uninstall): Add uninstall-guile dependency.
8685 (clean): Add clean-guile dependency.
8686
8687 2014-02-09 Doug Evans <xdje42@gmail.com>
8688
8689 Revert this patch (which I approved, mea culpa).
8690
8691 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8692
8693 * Makefile.in (all-lib): Remove.
8694 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8695
8696 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8697
8698 Fix Python stack corruption.
8699 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8700 gdb_py_longest.
8701
8702 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8703
8704 * Makefile.in (all-lib): Remove.
8705 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8706
8707 2014-02-07 Doug Evans <dje@google.com>
8708
8709 * extension-priv.h (extension_language_script_ops): Add comment.
8710 (extension_language_ops): Add comment.
8711 (active_ext_lang_state): Fix typo in comment.
8712
8713 2014-02-07 Pedro Alves <palves@redhat.com>
8714
8715 PR breakpoints/16292
8716 * infrun.c (handle_signal_stop) <signal arrives while stepping
8717 over a breakpoint>: Switch back to the stepping thread.
8718
8719 2014-02-07 Yao Qi <yao@codesourcery.com>
8720
8721 * target.c (target_xfer_partial): Return zero if LEN is zero.
8722
8723 2014-02-07 Yao Qi <yao@codesourcery.com>
8724
8725 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8726 (ld_so_xfer_auxv): Likewise.
8727 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8728 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8729 * corelow.c (core_xfer_partial): Likewise.
8730 * ctf.c (ctf_xfer_partial): Likewise.
8731 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8732 (darwin_xfer_partial): Likewise.
8733 * exec.c (exec_xfer_partial): Likewise.
8734 * gnu-nat.c (gnu_xfer_partial): Likewise.
8735 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8736 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8737 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8738 * linux-nat.c (linux_xfer_siginfo): Likewise.
8739 (linux_proc_xfer_spu): Likewise.
8740 * procfs.c (procfs_xfer_partial): Likewise.
8741 * record-full.c (record_full_xfer_partial): Likewise.
8742 (record_full_core_xfer_partial): Likewise.
8743 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8744 * remote.c (remote_write_qxfer): Likewise.
8745 (remote_write_qxfer, remote_read_qxfer): Likewise.
8746 (remote_xfer_partial): Likewise.
8747 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8748 (rs6000_xfer_shared_libraries): Likewise.
8749 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8750 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8751 (spu_xfer_partial): Likewise.
8752 * target.c (memory_xfer_partial_1): Likewise.
8753 * tracepoint.c (tfile_xfer_partial): Likewise.
8754 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8755 (windows_xfer_partial): Likewise.
8756
8757 2014-02-07 Yao Qi <yao@codesourcery.com>
8758
8759 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8760 comments.
8761 (core_xfer_shared_libraries_aix): Likewise.
8762 * gdbarch.c, gdbarch.h: Regenerated.
8763 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8764 ULONGEST. Change 'len_avail' type to ULONGEST.
8765 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8766 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8767 declaration.
8768 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8769
8770 2014-02-07 Yao Qi <yao@codesourcery.com>
8771
8772 * corefile.c (memory_error): Get 'exception' from ERR and pass
8773 'exception' to throw_error.
8774
8775 2014-02-06 Doug Evans <xdje42@gmail.com>
8776
8777 * configure.ac (libpython checking): Remove all but python.o from
8778 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8779 * configure: Regenerate.
8780
8781 * Makefile.in (SFILES): Add extension.c.
8782 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8783 (COMMON_OBS): Add extension.o.
8784 * extension.h: New file.
8785 * extension-priv.h: New file.
8786 * extension.c: New file.
8787
8788 * python/python-internal.h: #include "extension.h".
8789 (gdbpy_auto_load_enabled): Declare.
8790 (gdbpy_apply_val_pretty_printer): Declare.
8791 (gdbpy_apply_frame_filter): Declare.
8792 (gdbpy_preserve_values): Declare.
8793 (gdbpy_breakpoint_cond_says_stop): Declare.
8794 (gdbpy_breakpoint_has_cond): Declare.
8795 (void source_python_script_for_objfile): Delete.
8796 * python/python.c: #include "extension-priv.h".
8797 Delete inclusion of "observer.h".
8798 (extension_language_python): Moved here and renamed from
8799 script_language_python in py-auto-load.c.
8800 Redefined to be of type extension_language_defn.
8801 (python_extension_script_ops): New global.
8802 (python_extension_ops): New global.
8803 (struct python_env): New member previous_active.
8804 (restore_python_env): Call restore_active_ext_lang.
8805 (ensure_python_env): Call set_active_ext_lang.
8806 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8807 New arg extlang.
8808 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8809 New arg extlang.
8810 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8811 New arg extlang.
8812 (gdbpy_eval_from_control_command): Renamed from
8813 eval_python_from_control_command, made static. New arg extlang.
8814 (gdbpy_source_script) Renamed from source_python_script, made static.
8815 New arg extlang.
8816 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8817 result to int. New arg extlang.
8818 (gdbpy_source_objfile_script): Renamed from
8819 source_python_script_for_objfile, made static. New arg extlang.
8820 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8821 static. New args extlang, extlang_printers. Change result type to
8822 "void".
8823 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8824 static. New arg extlang. Rename arg printers to extlang_printers
8825 and change type to ext_lang_type_printers *.
8826 (gdbpy_free_type_printers): Renamed from free_type_printers, made
8827 static. Replace argument arg with extlang, extlang_printers.
8828 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
8829 (!HAVE_PYTHON, source_python_script): Delete.
8830 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
8831 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
8832 (!HAVE_PYTHON, start_type_printers): Delete.
8833 (!HAVE_PYTHON, apply_type_printers): Delete.
8834 (!HAVE_PYTHON, free_type_printers): Delete.
8835 (_initialize_python): Delete call to observer_attach_before_prompt.
8836 (finalize_python): Set/restore active extension language.
8837 (gdbpy_finish_initialization) Renamed from
8838 finish_python_initialization, made static. New arg extlang.
8839 (gdbpy_initialized): New function.
8840 * python/python.h: #include "extension.h". Delete #include
8841 "value.h", "mi/mi-cmds.h".
8842 (extension_language_python): Declare.
8843 (GDBPY_AUTO_FILE_NAME): Delete.
8844 (enum py_bt_status): Moved to extension.h and renamed to
8845 ext_lang_bt_status.
8846 (enum frame_filter_flags): Moved to extension.h.
8847 (enum py_frame_args): Moved to extension.h and renamed to
8848 ext_lang_frame_args.
8849 (finish_python_initialization): Delete.
8850 (eval_python_from_control_command): Delete.
8851 (source_python_script): Delete.
8852 (apply_val_pretty_printer): Delete.
8853 (apply_frame_filter): Delete.
8854 (preserve_python_values): Delete.
8855 (gdbpy_script_language_defn): Delete.
8856 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8857 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8858
8859 * auto-load.c: #include "extension.h".
8860 (GDB_AUTO_FILE_NAME): Delete.
8861 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8862 (script_language_gdb): Delete, moved to extension.c and renamed to
8863 extension_language_gdb.
8864 (source_gdb_script_for_objfile): Delete.
8865 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8866 (loaded_script): Change type of language member to
8867 struct extension_language_defn *.
8868 (init_loaded_scripts_info): Initialize
8869 unsupported_script_warning_printed.
8870 (maybe_add_script): Make static. Change type of language arg to
8871 struct extension_language_defn *.
8872 (clear_section_scripts): Reset unsupported_script_warning_printed.
8873 (auto_load_objfile_script_1): Rewrite to use extension language API.
8874 (auto_load_objfile_script): Make public. Remove support-compiled-in
8875 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8876 (source_section_scripts): Rewrite to use extension language API.
8877 (load_auto_scripts_for_objfile): Rewrite to use
8878 auto_load_scripts_for_objfile.
8879 (collect_matching_scripts_data): Change type of language member to
8880 struct extension_language_defn *.
8881 (auto_load_info_scripts): Change type of language arg to
8882 struct extension_language_defn *.
8883 (unsupported_script_warning_print): New function.
8884 (script_not_found_warning_print): Make static.
8885 (_initialize_auto_load): Rewrite construction of scripts-directory
8886 help.
8887 * auto-load.h (struct objfile): Add forward decl.
8888 (struct script_language): Delete.
8889 (struct auto_load_pspace_info): Add forward decl.
8890 (struct extension_language_defn): Add forward decl.
8891 (maybe_add_script): Delete.
8892 (auto_load_objfile_script): Declare.
8893 (script_not_found_warning_print): Delete.
8894 (auto_load_info_scripts): Update prototype.
8895 (auto_load_gdb_scripts_enabled): Declare.
8896 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8897 auto_load_python_scripts_enabled and made public.
8898 (script_language_python): Delete, moved to python.c.
8899 (gdbpy_script_language_defn): Delete.
8900 (info_auto_load_python_scripts): Update to use
8901 extension_language_python.
8902
8903 * breakpoint.c (condition_command): Replace call to
8904 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8905 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8906 with call to breakpoint_ext_lang_cond_says_stop.
8907 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8908 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8909 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8910 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8911 New arg slang.
8912 (local_setattro): Print name of extension language with existing
8913 stop condition.
8914
8915 * valprint.c (val_print, value_print): Update to call
8916 apply_ext_lang_val_pretty_printer.
8917 * cp-valprint.c (cp_print_value): Update call to
8918 apply_ext_lang_val_pretty_printer.
8919 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8920 (gdbpy_apply_val_pretty_printer): Renamed from
8921 apply_val_pretty_printer. New arg extlang.
8922 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8923
8924 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8925 extension language API.
8926 * cli/cli-script.c (execute_control_command): Update to call
8927 eval_ext_lang_from_control_command.
8928
8929 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8930 enum ext_lang_bt_status values. Update call to
8931 apply_ext_lang_frame_filter.
8932 (mi_cmd_stack_list_locals): Ditto.
8933 (mi_cmd_stack_list_args): Ditto.
8934 (mi_cmd_stack_list_variables): Ditto.
8935 * mi/mi-main.c: Delete #include "python/python-internal.h".
8936 Add #include "extension.h".
8937 (mi_cmd_list_features): Replace reference to python internal variable
8938 gdb_python_initialized with call to ext_lang_initialized_p.
8939
8940 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8941 Update to use enum ext_lang_frame_args. Update to call
8942 apply_ext_lang_frame_filter.
8943 * python/py-framefilter.c (extract_sym): Update to use enum
8944 ext_lang_bt_status.
8945 (extract_value, py_print_type, py_print_value): Ditto.
8946 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8947 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8948 (py_print_frame): Ditto.
8949 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8950 New arg extlang. Update to use enum ext_lang_bt_status.
8951
8952 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8953 finish_python_initialization. Replace with call to
8954 finish_ext_lang_initialization.
8955
8956 * typeprint.c (do_free_global_table): Update to call
8957 free_ext_lang_type_printers.
8958 (create_global_typedef_table): Update to call
8959 start_ext_lang_type_printers.
8960 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8961 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8962 (type_print_options): Change type of global_printers from "void *"
8963 to "struct ext_lang_type_printers *".
8964
8965 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8966 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8967 (gdbpy_preserve_values): Renamed from preserve_python_values.
8968 New arg extlang.
8969 (!HAVE_PYTHON, preserve_python_values): Delete.
8970
8971 * utils.c (quit_flag): Delete, moved to extension.c.
8972 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8973 extension.c.
8974
8975 * eval.c: Delete #include "python/python.h".
8976 * main.c: Delete #include "python/python.h".
8977
8978 * defs.h: Update comment.
8979
8980 2014-02-06 Joel Brobecker <brobecker@adacore.com>
8981
8982 GDB 7.7 released.
8983
8984 2014-02-05 Mark Kettenis <kettenis@gnu.org>
8985
8986 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8987 defined.
8988
8989 2014-02-05 Yao Qi <yao@codesourcery.com>
8990
8991 * remote.c (remote_pass_signals): Remove local 'buf' and use
8992 rs->buf.
8993 (remote_program_signals): Likewise.
8994
8995 2014-02-05 Yao Qi <yao@codesourcery.com>
8996
8997 * ctf.c: Include "inferior.h" and "gdbthread.h".
8998 (CTF_PID): A new macro.
8999 (ctf_open): Call inferior_appeared and add_thread_silent.
9000 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
9001 (ctf_thread_alive): New function.
9002 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
9003
9004 2014-02-05 Yao Qi <yao@codesourcery.com>
9005
9006 Revert this patch:
9007
9008 2013-05-24 Yao Qi <yao@codesourcery.com>
9009
9010 * tracepoint.c (TFILE_PID): Remove.
9011 (tfile_open): Don't add thread and inferior.
9012 (tfile_close): Don't set 'inferior_ptid'. Don't call
9013 exit_inferior_silent.
9014 (tfile_thread_alive): Remove.
9015 (init_tfile_ops): Don't set field 'to_thread_alive' of
9016 tfile_ops.
9017
9018 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
9019
9020 * remote.c (remote_start_remote): Call remote_check_symbols even
9021 if only symbol-file (not file) has been given.
9022
9023 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9024
9025 * gdbarch.sh (skip_entrypoint): New callback.
9026 * gdbarch.c, gdbarch.h: Regenerate.
9027 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
9028 * infrun.c (fill_in_stop_func): Likewise.
9029 * ppc-linux-tdep.c: Include "elf/ppc64.h".
9030 (ppc_elfv2_elf_make_msymbol_special): New function.
9031 (ppc_elfv2_skip_entrypoint): Likewise.
9032 (ppc_linux_init_abi): Install them for ELFv2.
9033
9034 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9035
9036 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
9037 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
9038 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
9039 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9040 structures returned in GPRs.
9041
9042 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9043
9044 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9045 offset to the stack parameter list for the ELFv2 ABI.
9046
9047 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9048
9049 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9050 set_gdbarch_convert_from_func_ptr_addr and
9051 set_gdbarch_elf_make_msymbol_special for ELFv1.
9052 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9053 function descriptors on ELFv1.
9054 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9055 set up r12 at function entry.
9056
9057 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9058
9059 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9060 (struct gdbarch_tdep): New member elf_abi.
9061
9062 * rs6000-tdep.c: Include "elf/ppc64.h".
9063 (rs6000_gdbarch_init): Detect ELF ABI version.
9064
9065 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9066
9067 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9068 within a register pair holding a DFP 128-bit value on little-endian.
9069 (ppc64_sysv_abi_return_value_base): Likewise.
9070 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9071 (dfp_pseudo_register_write): Likewise.
9072
9073 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9074
9075 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9076 offset on little-endian when passing _Decimal32.
9077 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9078
9079 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9080
9081 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9082 of the overlapped FP register within the VSX register on little-
9083 endian platforms.
9084 (efpr_pseudo_register_write): Likewise.
9085
9086 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9087
9088 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9089 offset on little-endian when passing small structures.
9090
9091 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9092
9093 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9094 (struct ppc64_sysv_argpos): New data structure.
9095 (ppc64_sysv_abi_push_float): Remove.
9096 (ppc64_sysv_abi_push_val): New function.
9097 (ppc64_sysv_abi_push_integer): Likewise.
9098 (ppc64_sysv_abi_push_freg): Likewise.
9099 (ppc64_sysv_abi_push_vreg): Likewise.
9100 (ppc64_sysv_abi_push_param): Likewise.
9101 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9102 (ppc64_sysv_abi_return_value_base): New function.
9103 (ppc64_sysv_abi_return_value): Refactor to use it.
9104
9105 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9106
9107 * NEWS: Document new target powerpc64le-*-linux*.
9108
9109 2014-02-04 Mark Kettenis <kettenis@gnu.org>
9110
9111 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9112 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9113 core dumps.
9114 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9115 register set used in ELF core dumps. Add floating-point register set.
9116
9117 2014-02-03 Kevin Buettner <kevinb@redhat.com>
9118
9119 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
9120 dwarf2_to_gdb[] table using symbolic constants. Adjust
9121 penultimate entry from number representing the PC register
9122 to symbolic constant representing the MDR register. Add
9123 constant for the PC register to the end of the table.
9124
9125 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9126
9127 * bsd-kvm.c: Include <sys/param.h>
9128
9129 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9130
9131 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9132
9133 2014-01-31 Joel Brobecker <brobecker@adacore.com>
9134
9135 * ada-lang.h (clear_ada_sym_cache): Delete.
9136
9137 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
9138
9139 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9140
9141 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9142
9143 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9144 the sigreturn register save area only if the syscall is
9145 sigreturn.
9146
9147 2014-01-29 Joel Brobecker <brobecker@adacore.com>
9148
9149 * valops.c (value_slice): Minor reformatting.
9150
9151 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
9152
9153 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9154
9155 2014-01-28 Joel Brobecker <brobecker@adacore.com>
9156
9157 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9158 New static globals.
9159 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9160 (ada_ignore_descriptive_types_p): New static global.
9161 (find_parallel_type_by_descriptive_type): Return immediately
9162 if ada_ignore_descriptive_types_p is set.
9163 (_initialize_ada_language): Register new commands "maintenance
9164 set ada", "maintenance show ada", "maintenance set ada
9165 ignore-descriptive-types" and "maintenance show ada
9166 ignore-descriptive-types".
9167 * NEWS: Add entry for new "maint ada set/show
9168 ignore-descriptive-types" commands.
9169
9170 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9171
9172 * record-btrace.c (record_btrace_close): Call btrace_teardown
9173 for all threads.
9174
9175 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9176
9177 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9178 "ui-out.h".
9179
9180 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9181
9182 * ada-typeprint (type_is_full_subrange_of_target_type):
9183 New function.
9184 (print_range): Add parameter bounds_prefered_p. If not set,
9185 try printing range types using the name of their base type.
9186 (print_range_type): Add parameter bounds_prefered_p.
9187 Use it in call to print_range.
9188 (print_array_type, ada_print_type): Update calls to print_range
9189 and print_range_type.
9190
9191 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9192
9193 * ada-typeprint.c (print_array_type, print_choices, print_range)
9194 (print_range_bound, print_dynamic_range_bound, print_range_type):
9195 Remove declaration.
9196
9197 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9198
9199 * ada-typeprint.c (print_range): Add missing empty line
9200 after local declaration.
9201
9202 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9203
9204 * ada-valprint.c (print_optional_low_bound): Get index_type's
9205 target type for as long as it is a TYPE_CODE_RANGE.
9206
9207 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9208
9209 * procfs.c (procfs_make_note_section): Remove assertion and
9210 associated comment.
9211
9212 2014-01-24 Yao Qi <yao@codesourcery.com>
9213
9214 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9215 * corelow.c (get_core_siginfo): Likewise.
9216
9217 2014-01-24 Yao Qi <yao@codesourcery.com>
9218
9219 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9220 ULONGEST. Don't check 'len' is negative.
9221 (remote_write_bytes): Change type of 'len' to ULONGEST.
9222
9223 2014-01-23 Tom Tromey <tromey@redhat.com>
9224
9225 PR python/16485:
9226 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9227 Handle exception from frame.block.
9228 (FrameVars.fetch_frame_locals): Likewise.
9229
9230 2014-01-23 Tom Tromey <tromey@redhat.com>
9231
9232 PR python/16487:
9233 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9234 on a NULL pointer. Move "goto error" to correct place.
9235
9236 2014-01-23 Tom Tromey <tromey@redhat.com>
9237
9238 PR python/16491:
9239 * python/py-framefilter.c (apply_frame_filter): Call
9240 ensure_python_env after computing gdbarch.
9241
9242 2014-01-23 Yao Qi <yao@codesourcery.com>
9243
9244 * target.c (raw_memory_xfer_partial): Change argument type
9245 from void * to gdb_byte *.
9246 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9247
9248 2014-01-22 Doug Evans <dje@google.com>
9249
9250 New gdbserver option --debug-format=timestamp.
9251 * NEWS: Mention it.
9252
9253 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9254
9255 * syscalls/s390x-linux.xml: New file.
9256 * syscalls/s390-linux.xml: New file.
9257 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9258 (XML_SYSCALL_FILENAME_S390X): Likewise.
9259 (op_svc): New enum value for SVC opcode.
9260 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9261 (s390_linux_get_syscall_number): New function.
9262 (s390_gdbarch_init): Register '*get_syscall_number' and the
9263 syscall xml file name.
9264 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9265 "s390-linux.xml" and "s390x-linux.xml".
9266 * NEWS: Announce new feature.
9267
9268 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9269
9270 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9271
9272 2014-01-22 Pedro Alves <palves@redhat.com>
9273
9274 * xtensa-config.c: Include defs.h.
9275
9276 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9277
9278 * common/common-utils.h: Add "ARI:" comment beside __func__
9279 reference.
9280
9281 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9282
9283 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9284 documentation a bit.
9285
9286 2014-01-21 Roland McGrath <mcgrathr@google.com>
9287
9288 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9289 * configure: Regenerate.
9290 * aclocal.m4: Regenerate.
9291 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9292 New substituted variables.
9293 (install-strip): New target.
9294 (INSTALL_SCRIPT): New substituted variable.
9295 (FLAGS_TO_PASS): Add it.
9296 (install-only): Use $(INSTALL_SCRIPT) rather than
9297 $(INSTALL_PROGRAM) for gcore.
9298
9299 2014-01-20 Tom Tromey <tromey@redhat.com>
9300
9301 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9302 together.
9303
9304 2014-01-20 Tom Tromey <tromey@redhat.com>
9305
9306 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9307 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9308 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9309 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9310 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9311 (struct cmd_list_element) <flags>: Remove.
9312 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9313 doc_allocated>: New fields.
9314 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9315 bitfields.
9316 * maint.c (maintenance_do_deprecate): Update.
9317 * top.c (execute_command): Update.
9318
9319 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9320
9321 * xtensa-linux-nat.c: Include asm/ptrace.h.
9322
9323 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9324
9325 * Makefile.in (SFILES): Add d-support.c.
9326 (COMMON_OBS): Add d-support.o.
9327 * d-lang.h (d_parse_symbol): Add comment, now defined in
9328 d-support.c.
9329 * d-lang.c (parse_call_convention)
9330 (parse_attributes, parse_function_types)
9331 (parse_function_args, parse_type, parse_identifier)
9332 (call_convention_p, d_parse_symbol): Move functions to ...
9333 * d-support.c: ... New file.
9334
9335 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9336
9337 * d-lang.h (d_parse_symbol): Add declaration.
9338 * d-lang.c (extract_identifiers)
9339 (extract_type_info): Remove functions.
9340 (parse_call_convention, parse_attributes)
9341 (parse_function_types, parse_function_args)
9342 (parse_type, parse_identifier, call_convention_p)
9343 (d_parse_symbol): New functions.
9344 (d_demangle): Use d_parse_symbol to demangle D symbols.
9345
9346 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9347
9348 * d-lang.h (struct builtin_d_type): New data type.
9349 (builtin_d_type): Add declaration.
9350 * d-lang.c (d_language_arch_info, build_d_types)
9351 (builtin_d_type): New functions.
9352 (enum d_primitive_types): New data type.
9353 (d_language_defn): Change c_language_arch_info to
9354 d_language_arch_info.
9355 (d_type_data): New static variable.
9356 (_initialize_d_language): Initialize d_type_data.
9357
9358 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9359
9360 * d-lang.h (d_main_name): Add declaration.
9361 * d-lang.c (d_main_name): New function.
9362 * symtab.c (find_main_name): Add call to d_main_name.
9363
9364 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9365
9366 * d-lang.c (d_language_defn): Change macro_expansion_c to
9367 macro_expansion_no.
9368
9369 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9370
9371 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9372
9373 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9374
9375 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9376 gdb_exception" declaration.
9377 * remote.c (getpkt_or_notif_sane): Likewise.
9378
9379 2014-01-17 Doug Evans <dje@google.com>
9380
9381 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9382 function, contents of dirnames_to_char_ptr_vec_append moved here.
9383 (delim_string_to_char_ptr_vec): New function.
9384 (dirnames_to_char_ptr_vec_append): Rewrite.
9385 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9386
9387 2014-01-17 Doug Evans <dje@google.com>
9388
9389 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9390 and moved here ...
9391 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9392 #include "common-utils.h".
9393 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9394 * common/vec.h (VEC_ASSERT_PASS): Update.
9395 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9396 (MACH_CHECK_ERROR): Update.
9397
9398 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9399
9400 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9401 comments.
9402 * gdbarch.h: Regenerate.
9403
9404 2014-01-16 Tom Tromey <tromey@redhat.com>
9405
9406 * value.c (struct value) <regnum>: Move earlier.
9407
9408 2014-01-16 Tom Tromey <tromey@redhat.com>
9409
9410 * remote.c (extended_remote_create_inferior): Rename from
9411 extended_remote_create_inferior_1. Add "ops" argument. Remove
9412 old implementation.
9413
9414 2014-01-16 Pedro Alves <palves@redhat.com>
9415
9416 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9417 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9418 the backchain.
9419
9420 2014-01-16 Doug Evans <dje@google.com>
9421
9422 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9423
9424 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9425
9426 * btrace.h (btrace_thread_flag): New.
9427 (struct btrace_thread_info) <flags>: New.
9428 * record-btrace.c (record_btrace_resume_thread)
9429 (record_btrace_find_thread_to_move, btrace_step_no_history)
9430 (btrace_step_stopped, record_btrace_start_replaying)
9431 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9432 (record_btrace_find_resume_thread): New.
9433 (record_btrace_resume, record_btrace_wait): Extend.
9434 (record_btrace_can_execute_reverse): New.
9435 (record_btrace_open): Fail in non-stop mode.
9436 (record_btrace_set_replay): Split into this, ...
9437 (record_btrace_stop_replaying): ... this, ...
9438 (record_btrace_clear_histories): ... and this.
9439 (init_record_btrace_ops): Init to_can_execute_reverse.
9440 * NEWS: Announce it.
9441
9442 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9443
9444 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9445 (forward_target_decr_pc_after_break)
9446 (target_decr_pc_after_break): New.
9447 * target.c (forward_target_decr_pc_after_break)
9448 (target_decr_pc_after_break): New.
9449 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9450 instead of gdbarch_decr_pc_after_break.
9451 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9452 instead of gdbarch_decr_pc_after_break.
9453 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9454 instead of gdbarch_decr_pc_after_break.
9455 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9456 instead of gdbarch_decr_pc_after_break.
9457 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9458 instead of gdbarch_decr_pc_after_break.
9459 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9460 instead of gdbarch_decr_pc_after_break.
9461
9462 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9463
9464 * btrace.c: Include regcache.h.
9465 (btrace_add_pc): New.
9466 (btrace_enable): Call btrace_add_pc.
9467 (btrace_is_empty): New.
9468 * btrace.h (btrace_is_empty): New.
9469 * record-btrace.c (require_btrace, record_btrace_info): Call
9470 btrace_is_empty.
9471
9472 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9473
9474 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9475 Support delta reads.
9476 (linux_disable_btrace): Change return type.
9477 * common/linux-btrace.h (linux_read_btrace): Change parameters
9478 and return type to allow error reporting. Update users.
9479 (linux_disable_btrace): Change return type. Update users.
9480 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9481 New.
9482 (btrace_error): New.
9483 (btrace_block) <begin>: Comment on BEGIN == 0.
9484 * btrace.c (btrace_compute_ftrace): Start from the end of
9485 the current trace.
9486 (btrace_stitch_trace, btrace_clear_history): New.
9487 (btrace_fetch): Read delta trace, return if replaying.
9488 (btrace_clear): Move clear history code to btrace_clear_history.
9489 (parse_xml_btrace): Throw an error if parsing failed.
9490 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9491 and return type to allow error reporting.
9492 (target_read_btrace): Change parameters and return type to allow
9493 error reporting.
9494 * target.c (target_read_btrace): Update.
9495 * remote.c (remote_read_btrace): Support delta reads. Pass
9496 errors on.
9497 * NEWS: Announce it.
9498
9499 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9500
9501 * record.h (record_btrace_frame_unwind)
9502 (record_btrace_tailcall_frame_unwind): New declarations.
9503 * dwarf2-frame: Include record.h
9504 (dwarf2_frame_cfa): Throw an error for btrace frames.
9505 * record-btrace.c: Include hashtab.h.
9506 (btrace_get_bfun_name): New.
9507 (btrace_call_history): Call btrace_get_bfun_name.
9508 (struct btrace_frame_cache): New.
9509 (bfcache): New.
9510 (bfcache_hash, bfcache_eq, bfcache_new): New.
9511 (btrace_get_frame_function): New.
9512 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9513 (record_btrace_frame_this_id): Compute own id.
9514 (record_btrace_frame_prev_register): Provide PC, throw_error
9515 for all other registers.
9516 (record_btrace_frame_sniffer): Detect btrace frames.
9517 (record_btrace_tailcall_frame_sniffer): New.
9518 (record_btrace_frame_dealloc_cache): New.
9519 (record_btrace_frame_unwind): Add new functions.
9520 (record_btrace_tailcall_frame_unwind): New.
9521 (_initialize_record_btrace): Allocate cache.
9522 * btrace.c (btrace_clear): Call reinit_frame_cache.
9523 * NEWS: Announce it.
9524
9525 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9526
9527 * record-btrace.c (record_btrace_set_replay)
9528 (record_btrace_goto_begin, record_btrace_goto_end)
9529 (record_btrace_goto): New.
9530 (init_record_btrace_ops): Initialize them.
9531 * NEWS: Announce it.
9532
9533 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9534
9535 * record-btrace.c (record_btrace_find_new_threads)
9536 (record_btrace_thread_alive): New.
9537 (init_record_btrace_ops): Initialize to_find_new_threads and
9538 to_thread_alive.
9539
9540 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9541
9542 * record-btrace.c (record_btrace_resume): New.
9543 (record_btrace_wait): New.
9544 (init_record_btrace_ops): Initialize to_wait and to_resume.
9545
9546 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9547
9548 * record-btrace.c (record_btrace_xfer_partial)
9549 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9550 (record_btrace_allow_memory_access): New.
9551 (init_record_btrace_ops): Initialize new methods.
9552 * target.c (raw_memory_xfer_partial): Bail out if target reports
9553 that this memory is not available.
9554
9555 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9556
9557 * target.h (target_ops) <to_insert_breakpoint>
9558 <to_remove_breakpoint>: Add target_ops parameter.
9559 (forward_target_insert_breakpoint): New.
9560 (forward_target_remove_breakpoint): New.
9561 (memory_remove_breakpoint, memory_insert_breakpoint):
9562 Add target_ops parameter.
9563 * target.c (target_insert_breakpoint): Split into this and ...
9564 (forward_target_insert_breakpoint): ... this.
9565 (target_remove_breakpoint): Split into this and ...
9566 (forward_target_remove_breakpoint): ... this.
9567 (debug_to_insert_breakpoint): Add target_ops parameter.
9568 Call forward_target_insert_breakpoint.
9569 (debug_to_remove_breakpoint): Add target_ops parameter.
9570 Call forward_target_remove_breakpoint.
9571 (update_current_target): Do not inherit or default to_insert_breakpoint
9572 and to_remove_breakpoint.
9573 * corelow.c (ignore): Add target_ops parameter.
9574 * exec.c (ignore): Add target_ops parameter.
9575 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9576 Add target_ops parameter.
9577 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9578 Add target_ops parameter.
9579 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9580 Add target_ops parameter.
9581 * record-full.c (record_full_beneath_to_insert_breakpoint)
9582 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9583 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9584 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9585 (record_full_core_remove_breakpoint): Add target_ops parameter.
9586 Update users.
9587 (record_full_beneath_to_insert_breakpoint_ops)
9588 (record_full_beneath_to_remove_breakpoint_ops)
9589 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9590 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9591 tmp_to_remove_breakpoint_ops,
9592 record_full_beneath_to_insert_breakpoint_ops, and
9593 record_full_beneath_to_remove_breakpoint_ops.
9594 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9595 (m32r_remove_breakpoint): Add target_ops parameter.
9596 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9597 Add target_ops parameter.
9598 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9599 Add target_ops parameter.
9600
9601 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9602 Markus Metzger <markus.t.metzger@intel.com>
9603
9604 * record-btrace.c: Include frame-unwind.h.
9605 (record_btrace_frame_unwind_stop_reason)
9606 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9607 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9608 New.
9609 (init_record_btrace_ops): Install it.
9610
9611 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9612
9613 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9614 get_prev_frame_1.
9615
9616 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9617
9618 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9619 earlier.
9620
9621 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9622
9623 * frame-unwind.c: Include target.h.
9624 (frame_unwind_try_unwinder): New function with code from ...
9625 (frame_unwind_find_by_frame): ... here. New variable
9626 unwinder_from_target, call also target_get_unwinder)
9627 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9628 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9629 * target.h (struct target_ops): New fields to_get_unwinder and
9630 to_get_tailcall_unwinder.
9631 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9632
9633 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9634
9635 * record-btrace.c (record_btrace_fetch_registers)
9636 (record_btrace_store_registers)
9637 (record_btrace_to_prepare_to_store): New.
9638 (init_record_btrace_ops): Add the above.
9639
9640 2014-01-16 Tom Tromey <tromey@redhat.com>
9641
9642 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9643 * target.h (struct target_ops) <to_prepare_to_store>: Add
9644 argument.
9645 (target_prepare_to_store): Add argument.
9646 * target.c (debug_to_prepare_to_store): Add argument.
9647 (update_current_target): Update.
9648 * remote.c (remote_prepare_to_store): Add 'self' argument.
9649 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9650 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9651 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9652 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9653 argument.
9654 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9655 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9656 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9657 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9658 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9659
9660 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9661
9662 * btrace.h (replay) <replay>: New.
9663 (btrace_is_replaying): New.
9664 * btrace.c (btrace_clear): Free replay iterator.
9665 (btrace_is_replaying): New.
9666 * record-btrace.c (record_btrace_is_replaying): New.
9667 (record_btrace_info): Print insn number if replaying.
9668 (record_btrace_insn_history): Start at replay position.
9669 (record_btrace_call_history): Start at replay position.
9670 (init_record_btrace_ops): Init to_record_is_replaying.
9671
9672 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9673
9674 * record-btrace.c (record_btrace_insn_history_range): Include
9675 end.
9676 (record_btrace_insn_history_from): Adjust range.
9677 (record_btrace_call_history_range): Include
9678 end.
9679 (record_btrace_call_history_from): Adjust range.
9680 * NEWS: Announce changes.
9681
9682 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9683
9684 * record.h (enum record_print_flag)
9685 <record_print_indent_calls>: New.
9686 * record.c (get_call_history_modifiers): Recognize /c modifier.
9687 (_initialize_record): Document /c modifier.
9688 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9689 Reorder fields. Optionally indent the function name. Update
9690 all users.
9691 * NEWS: Announce changes.
9692
9693 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9694
9695 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9696
9697 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9698
9699 * btrace.c (ftrace_new_function): Start counting at one.
9700 * record-btrace.c (record_btrace_info): Adjust number of calls
9701 and insns.
9702 * NEWS: Announce it.
9703
9704 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9705
9706 * record-btrace.c (btrace_call_history_insn_range): Print
9707 insn range as [begin, end].
9708
9709 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9710
9711 * btrace.h (struct btrace_func_link): New.
9712 (enum btrace_function_flag): New.
9713 (struct btrace_inst): Rename to ...
9714 (struct btrace_insn): ...this. Update all users.
9715 (struct btrace_func) <ibegin, iend>: Remove.
9716 (struct btrace_func_link): New.
9717 (struct btrace_func): Rename to ...
9718 (struct btrace_function): ...this. Update all users.
9719 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9720 (number, level, flags>: New.
9721 (struct btrace_insn_iterator): Rename to ...
9722 (struct btrace_insn_history): ...this.
9723 Update all users.
9724 (struct btrace_insn_iterator, btrace_call_iterator): New.
9725 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9726 (struct btrace_target_info) <begin, end, level>
9727 <insn_history, call_history>: New.
9728 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9729 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9730 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9731 (btrace_call_number, btrace_call_begin, btrace_call_end)
9732 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9733 (btrace_find_function_by_number, btrace_set_insn_history)
9734 (btrace_set_call_history): New.
9735 * btrace.c (btrace_init_insn_iterator)
9736 (btrace_init_func_iterator, compute_itrace): Remove.
9737 (ftrace_print_function_name, ftrace_print_filename)
9738 (ftrace_skip_file): Change
9739 parameter to const.
9740 (ftrace_init_func): Remove.
9741 (ftrace_debug): Use new btrace_function fields.
9742 (ftrace_function_switched): Also consider gaining and
9743 losing symbol information).
9744 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9745 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9746 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9747 New.
9748 (ftrace_new_function): Move. Remove debug print.
9749 (ftrace_update_lines, ftrace_update_insns): New.
9750 (ftrace_update_function): Check for call, ret, and jump.
9751 (compute_ftrace): Renamed to ...
9752 (btrace_compute_ftrace): ...this. Rewritten to compute call
9753 stack.
9754 (btrace_fetch, btrace_clear): Updated.
9755 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9756 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9757 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9758 (btrace_call_number, btrace_call_begin, btrace_call_end)
9759 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9760 (btrace_find_function_by_number, btrace_set_insn_history)
9761 (btrace_set_call_history): New.
9762 * record-btrace.c (require_btrace): Use new btrace thread
9763 info fields.
9764 (record_btrace_info, btrace_insn_history)
9765 (record_btrace_insn_history, record_btrace_insn_history_range):
9766 Use new btrace thread info fields and new iterator.
9767 (btrace_func_history_src_line): Rename to ...
9768 (btrace_call_history_src_line): ...this. Use new btrace
9769 thread info fields.
9770 (btrace_func_history): Rename to ...
9771 (btrace_call_history): ...this. Use new btrace thread info
9772 fields and new iterator.
9773 (record_btrace_call_history, record_btrace_call_history_range):
9774 Use new btrace thread info fields and new iterator.
9775
9776 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9777
9778 * frame.h (frame_id_build_unavailable_stack_special): New.
9779 * frame.c (frame_id_build_unavailable_stack_special): New.
9780
9781 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9782
9783 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9784 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9785 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9786 to gdbarch.
9787 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9788 (i386_insn_is_jump, i386_jmp_p): New.
9789 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9790 insn_is_jump to gdbarch.
9791 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9792 * gdbarch.h: Regenerated.
9793 * gdbarch.c: Regenerated.
9794 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9795 (default_insn_is_jump): New.
9796 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9797 (default_insn_is_jump): New.
9798
9799 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9800
9801 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9802 Change to ...
9803 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9804 (btrace_read_type) <btrace_read_new>: Change to ...
9805 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9806
9807 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9808
9809 * common/linux-btrace.c (linux_read_btrace): Free trace from
9810 previous iteration.
9811
9812 2014-01-15 Doug Evans <dje@google.com>
9813
9814 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9815 uint32_t.
9816
9817 2014-01-15 Tom Tromey <tromey@redhat.com>
9818
9819 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9820 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9821 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9822 (set_objfile_main_name): New function.
9823 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9824 language_of_main>: New fields.
9825 (set_objfile_main_name): Declare.
9826 * symtab.c (find_main_name): Loop over objfiles to find the main
9827 name and language.
9828 (set_main_name): Now static.
9829 (get_main_info): Add comment.
9830 * symtab.h (set_main_name): Don't declare.
9831
9832 2014-01-15 Tom Tromey <tromey@redhat.com>
9833
9834 * symtab.c (main_progspace_key): New global.
9835 (struct main_info): New.
9836 (name_of_main, language_of_main): Remove.
9837 (get_main_info, main_info_cleanup): New function.
9838 (set_main_name, main_name, main_language): Use get_main_info.
9839 (_initialize_symtab): Initialize main_progspace_key.
9840
9841 2014-01-15 Tom Tromey <tromey@redhat.com>
9842
9843 * dbxread.c (process_one_symbol): Update.
9844 * dwarf2read.c (read_partial_die): Update.
9845 * symfile.c (set_initial_language): Call main_language.
9846 * symtab.c (language_of_main): Now static.
9847 (set_main_name): Add 'lang' parameter.
9848 (find_main_name): Update.
9849 (main_language): New function.
9850 (symtab_observer_executable_changed): Update.
9851 * symtab.h (set_main_name): Update.
9852 (language_of_main): Remove.
9853 (main_language): Declare.
9854
9855 2014-01-15 Tom Tromey <tromey@redhat.com>
9856
9857 * symfile.c (init_entry_point_info): Use new "initialized" field.
9858 Update.
9859 * objfiles.h (struct entry_point) <initialized>: New field.
9860 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9861 (struct objfile) <ei>: ...here. Remove.
9862 * objfiles.c (entry_point_address_query): Update.
9863
9864 2014-01-15 Tom Tromey <tromey@redhat.com>
9865
9866 * objfiles.c (entry_point_address_query): Relocate entry point
9867 address.
9868 (objfile_relocate1): Do not relocate entry point address.
9869 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9870 <the_bfd_section_index>: New field.
9871 * symfile.c (init_entry_point_info): Find the entry point's
9872 section.
9873
9874 2014-01-15 Tom Tromey <tromey@redhat.com>
9875
9876 * solib-frv.c (enable_break): Use entry_point_address_query.
9877
9878 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9879
9880 * NEWS: Add note on improved process record-replay on
9881 arm*-linux* targets.
9882
9883 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9884
9885 * arm-tdep.c (enum arm_record_result): New enum.
9886 (arm_record_unsupported_insn): New function.
9887 (arm_record_coproc_data_proc): Removed.
9888 (thumb2_record_ld_st_multiple): New function.
9889 (thumb2_record_ld_st_dual_ex_tbb): New function.
9890 (thumb2_record_data_proc_sreg_mimm): New function.
9891 (thumb2_record_ps_dest_generic): New function.
9892 (thumb2_record_branch_misc_cntrl): New function.
9893 (thumb2_record_str_single_data): New function.
9894 (thumb2_record_ld_mem_hints): New function.
9895 (thumb2_record_ld_word): New function.
9896 (thumb2_record_lmul_lmla_div): New function.
9897 (thumb2_record_decode_insn_handler): New function.
9898 (decode_insn): Add thumb32 instruction handlers.
9899
9900 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9901
9902 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9903 (struct arm_linux_record_tdep): Declare.
9904 (arm_canonicalize_syscall): New function.
9905 (arm_all_but_pc_registers_record): New function.
9906 (arm_linux_syscall_record): New function.
9907 (arm_linux_init_abi): Add syscall recording constructs.
9908 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9909 decoding. (arm_record_coproc_data_proc): Update arm syscall
9910 decoding.
9911 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9912 <arm_syscall_record>: New field.
9913 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9914 gdb_target_obs.
9915
9916 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9917
9918 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9919 register for push instruction recording.
9920
9921 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9922
9923 * arm-tdep.c (thumb_record_misc): Update to correct logical
9924 error while recording ldm, ldmia and pop instructions.
9925
9926 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
9927
9928 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9929
9930 2014-01-15 Pedro Alves <palves@redhat.com>
9931
9932 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9933 (go32_resume, go32_fetch_registers, store_register)
9934 (go32_store_registers, go32_prepare_to_store)
9935 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9936 (go32_create_inferior, go32_can_run, go32_terminal_init)
9937 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9938 declarations.
9939
9940 2014-01-15 Tom Tromey <tromey@redhat.com>
9941
9942 * target.h (async_callback_ftype): New typedef.
9943 (struct target_ops) <to_async>: Use it.
9944
9945 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9946
9947 * python/py-value.c (get_field_type): Remove unnecessary curly
9948 braces for single-statement if block.
9949
9950 2014-01-15 Joel Brobecker <brobecker@adacore.com>
9951
9952 * python/py-type.c (convert_field): Add missing empty line
9953 after declarations.
9954
9955 2014-01-14 Doug Evans <dje@google.com>
9956
9957 * symfile.h (expand_symtabs_matching): Renamed from
9958 expand_partial_symbol_names. Update prototype.
9959 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9960 * symfile.c (expand_symtabs_matching): Renamed from
9961 expand_partial_symbol_names. New args file_matcher, kind.
9962 Rename arg fun to symbol_matcher.
9963 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9964 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9965 ada_expand_partial_symbol_name.
9966 (ada_make_symbol_completion_list): Update to call
9967 expand_symtabs_matching.
9968 (ada_add_global_exceptions): Call expand_symtabs_matching.
9969 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9970 call map_symbol_filenames.
9971 * symtab.c (sources_info): Update to call map_symbol_filenames.
9972 (search_symbols): Call expand_symtabs_matching.
9973 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9974 (default_make_symbol_completion_list_break_on): Update to call
9975 expand_symtabs_matching.
9976 (make_source_files_completion_list): Update to call
9977 map_symbol_filenames.
9978
9979 2014-01-14 Doug Evans <dje@google.com>
9980
9981 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9982 (expand_symtabs_symbol_matcher_ftype): New typedef.
9983 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9984 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9985 * symfile.c (expand_partial_symbol_names): Update to use
9986 expand_symtabs_symbol_matcher_ftype.
9987 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9988 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9989 Arg name_matcher renamed to symbol_matcher.
9990 * psymtab.c (recursively_search_psymtabs): Update to use
9991 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9992 sym_matcher.
9993 (expand_symtabs_matching_via_partial): Update to use
9994 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9995 Arg name_matcher renamed to symbol_matcher.
9996
9997 2014-01-14 Doug Evans <dje@google.com>
9998
9999 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
10000 (map_partial_symbol_filenames): Ditto.
10001 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
10002 (map_partial_symbol_filenames): Ditto.
10003 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
10004 (map_partial_symbol_filenames): Ditto.
10005 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
10006 (map_partial_symbol_filenames): Ditto.
10007 * symtab.c: Delete #include "psymtab.h".
10008
10009 2014-01-14 Pedro Alves <palves@redhat.com>
10010 Tom Tromey <tromey@redhat.com>
10011
10012 * infrun.c (use_displaced_stepping): Use find_record_target
10013 instead of RECORD_IS_USED.
10014 (adjust_pc_after_break): Use record_full_is_used instead of
10015 RECORD_IS_USED.
10016 * record-btrace.c (record_btrace_open): Call record_preopen
10017 instead of checking RECORD_IS_USED.
10018 * record-full.c (record_full_shortname)
10019 (record_full_core_shortname): New globals.
10020 (record_full_is_used): New function.
10021 (find_full_open): Call record_preopen instead of checking
10022 RECORD_IS_USED.
10023 (init_record_full_ops): Set the target's shortname to
10024 record_full_shortname.
10025 (init_record_full_core_ops): Set the target's shortname to
10026 record_full_core_shortname.
10027 * record-full.h (record_full_is_used): Declare.
10028 * record.c (find_record_target): Make extern.
10029 (record_preopen): New function.
10030 * record.h (RECORD_IS_USED): Delete macro.
10031 (find_record_target, record_preopen): Declare functions.
10032
10033 2014-01-14 Yao Qi <yao@codesourcery.com>
10034
10035 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
10036 'len''s type to ULONGEST.
10037 (core_xfer_shared_libraries_aix): Likewise.
10038 * gdbarch.c, gdbarch.h: Regenerated.
10039 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10040 Change type of 'len' to ULONGEST.
10041 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10042 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10043
10044 2014-01-14 Yao Qi <yao@codesourcery.com>
10045
10046 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10047 type of 'len' to ULONGEST.
10048 (linux_xfer_osdata_processgroups): Likewise.
10049 (linux_xfer_osdata_threads): Likewise.
10050 (linux_xfer_osdata_fds): Likewise.
10051 (linux_xfer_osdata_isockets): Likewise.
10052 (linux_xfer_osdata_shm): Likewise.
10053 (linux_xfer_osdata_sem): Likewise.
10054 (linux_xfer_osdata_msg): Likewise.
10055 (linux_common_xfer_osdata): Likewise.
10056 (struct osdata_type) <getter>: Likewise.
10057 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10058 the declaration.
10059
10060 2014-01-14 Yao Qi <yao@codesourcery.com>
10061
10062 * target.h (target_xfer_partial_ftype): Update.
10063 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10064 ULONGEST.
10065 * aix-thread.c (aix_thread_xfer_partial): Change type of
10066 argument 'len' to ULONGEST.
10067 * auxv.c (procfs_xfer_auxv): Likewise.
10068 (ld_so_xfer_auxv): Likewise.
10069 (memory_xfer_auxv): Likewise.
10070 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10071 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10072 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10073 * corelow.c (core_xfer_partial): Likewise.
10074 * ctf.c (ctf_xfer_partial): Likewise.
10075 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10076 '%u'.
10077 (darwin_read_dyld_info): Likewise.
10078 (darwin_xfer_partial): Likewise.
10079 * exec.c (section_table_xfer_memory_partial): Likewise.
10080 (exec_xfer_partial): Likewise.
10081 * exec.h (section_table_xfer_memory_partial): Update
10082 declaration.
10083 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10084 instead of plongest.
10085 (gnu_xfer_partial): Likewise.
10086 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10087 (ia64_hpux_xfer_solib_got): Likewise.
10088 (ia64_hpux_xfer_partial): Likewise.
10089 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10090 * inf-ptrace.c (inf_ptrace_xfer_partial):
10091 * inf-ttrace.c (inf_ttrace_xfer_partial):
10092 * linux-nat.c (linux_xfer_siginfo): Likewise.
10093 (linux_nat_xfer_partial): Likewise.
10094 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10095 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10096 * monitor.c (monitor_xfer_memory): Likewise.
10097 (monitor_xfer_partial): Likewise.
10098 * procfs.c (procfs_xfer_partial): Likewise.
10099 * record-full.c (record_full_xfer_partial): Likewise.
10100 (record_full_core_xfer_partial): Likewise.
10101 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10102 instead of plongest.
10103 (gdbsim_xfer_partial): Likewise.
10104 * remote.c (remote_xfer_partial): Likewise.
10105 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10106 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10107 declaration.
10108 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10109 (rs6000_xfer_shared_libraries): Likewise.
10110 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10111 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10112 (sparc_xfer_partial): Likewise.
10113 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10114 (spu_xfer_partial): Likewise.
10115 * spu-multiarch.c (spu_xfer_partial): Likewise.
10116 * target.c (target_read_live_memory): Likewise.
10117 (memory_xfer_live_readonly_partial): Likewise.
10118 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10119 (target_xfer_partial, default_xfer_partial): Likewise.
10120 (current_xfer_partial): Likewise.
10121 * tracepoint.c (tfile_xfer_partial): Likewise.
10122 * windows-nat.c (windows_xfer_memory): Likewise. Call
10123 pulongest instead of plongest.
10124 (windows_xfer_partial): Likewise.
10125 (windows_xfer_shared_libraries): Likewise.
10126
10127 2014-01-14 Yao Qi <yao@codesourcery.com>
10128
10129 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10130 target_xfer_partial_ftype.
10131
10132 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10133
10134 PR python/15464
10135 PR python/16113
10136 * valops.c (value_struct_elt_bitpos): New function
10137 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10138 object to 'None' if the field name is an empty string ("").
10139 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10140 attribute to look for a field when 'name' is 'None'.
10141 (get_field_type): New function
10142
10143 2014-01-13 Doug Evans <dje@google.com>
10144
10145 PR symtab/16426
10146 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10147 (try_open_dwop_file): Ditto.
10148 * gdb_bfd.c: #include "vec.h".
10149 (bfdp): New typedef.
10150 (struct gdb_bfd_data): New member included_bfds.
10151 (gdb_bfd_unref): Unref all included bfds.
10152 (gdb_bfd_record_inclusion): New function.
10153 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10154
10155 2014-01-13 Tom Tromey <tromey@redhat.com>
10156
10157 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10158
10159 2014-01-13 Tom Tromey <tromey@redhat.com>
10160
10161 * defs.h (use_windows): Remove.
10162 * gdb.c (main): Update.
10163 * main.c (captured_main, gdb_main): Update.
10164 * main.h (struct captured_main_args) <use_windows>: Remove.
10165 * top.c (use_windows): Remove.
10166
10167 2014-01-13 Tom Tromey <tromey@redhat.com>
10168
10169 * defs.h (deprecated_flush_hook): Remove.
10170
10171 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10172
10173 PR threads/16216
10174 * linux-thread-db.c (try_thread_db_load): Add parameter
10175 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10176 (try_thread_db_load_from_pdir_1): Move it there from here.
10177 (try_thread_db_load_from_sdir): Update caller.
10178 (try_thread_db_load_from_dir): Move it there from here.
10179
10180 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10181
10182 * regformats/regdat.sh: Always rewrite the register file.
10183
10184 2014-01-13 Pedro Alves <palves@redhat.com>
10185
10186 * Makefile.in (CHECK_HEADERS): New variable.
10187 (check-headers:): New rule.
10188
10189 2014-01-13 Tom Tromey <tromey@redhat.com>
10190
10191 * cli/cli-setshow.c (do_set_command): Update.
10192 * defs.h (deprecated_set_hook): Remove.
10193 * top.c (deprecated_set_hook): Remove.
10194
10195 2014-01-13 Pedro Alves <palves@redhat.com>
10196
10197 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10198 the tracepoint if the PC is a pseudo-register.
10199
10200 2014-01-13 Tom Tromey <tromey@redhat.com>
10201
10202 * defs.h (XCALLOC): Remove.
10203 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10204 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10205 * dwarf2loc.c (allocate_piece_closure): Likewise.
10206 * elfread.c (elf_symfile_segments): Likewise.
10207 (elf_symfile_segments): Likewise.
10208 * gdbtypes.c (copy_type_recursive): Likewise.
10209 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10210 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10211 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10212 XCALLOC.
10213 * mt-tdep.c (mt_gdbarch_init): Likewise.
10214 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10215 XCALLOC.
10216 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10217 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10218 * registry.c (registry_alloc_data): Likewise.
10219 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10220 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10221 * serial.c (serial_fdopen_ops): Likewise.
10222 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10223 XCALLOC.
10224 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10225 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10226 not XCALLOC.
10227
10228 2014-01-13 Tom Tromey <tromey@redhat.com>
10229
10230 * defs.h (XMALLOC): Remove.
10231 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10232 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10233 * cli-out.c (struct ui_out *): Likewise.
10234 * cli/cli-dump.c (add_dump_command): Likewise.
10235 (add_dump_command): Likewise.
10236 * complaints.c (get_complaints): Likewise.
10237 (find_complaint): Likewise.
10238 * dwarf2-frame.c (execute_cfa_program): Likewise.
10239 * dwarf2read.c (abbrev_table_read_table): Likewise.
10240 * gdbarch.sh: Likewise.
10241 * gdbarch.c: Rebuild.
10242 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10243 * interps.c (interp_new): Likewise.
10244 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10245 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10246 * mi/mi-console.c (mi_console_file_new): Likewise.
10247 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10248 * mi/mi-out.c (mi_out_new): Likewise.
10249 * mi/mi-parse.c (mi_parse): Likewise.
10250 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10251 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10252 * observer.c (xalloc_observer_list_node): Likewise.
10253 * regcache.c (regcache_xmalloc_1): Likewise.
10254 * reggroups.c (reggroup_new): Likewise.
10255 (_initialize_reggroup): Likewise.
10256 * registry.c (register_data_with_cleanup): Likewise.
10257 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10258 * ser-base.c (serial_ttystate): Likewise.
10259 * ser-mingw.c (make_pipe_state): Likewise.
10260 * ser-pipe.c (pipe_open): Likewise.
10261 * serial.c (serial_open): Likewise.
10262 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10263 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10264 (tui_alloc_win_info): Likewise.
10265 (tui_add_content_elements): Likewise.
10266 * tui/tui-file.c (tui_file_new): Likewise.
10267 * tui/tui-out.c (tui_out_new): Likewise.
10268 * ui-file.c (mem_file_new): Likewise.
10269 * ui-out.c (push_level): Likewise.
10270 (make_cleanup_ui_out_end): Likewise.
10271 (append_header_to_list): Likewise.
10272 (ui_out_new): Likewise.
10273 * user-regs.c (user_reg_add_builtin): Likewise.
10274
10275 2014-01-13 Tom Tromey <tromey@redhat.com>
10276
10277 * defs.h (XZALLOC): Remove.
10278 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10279 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10280 (get_ada_tasks_inferior_data): Likewise.
10281 * auto-load.c (get_auto_load_pspace_data): Likewise.
10282 * auxv.c (get_auxv_inferior_data): Likewise.
10283 * bfd-target.c (target_bfd_reopen): Likewise.
10284 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10285 (deprecated_insert_raw_breakpoint): Likewise.
10286 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10287 * corelow.c (core_open): Likewise.
10288 * darwin-nat.c (darwin_check_new_threads): Likewise.
10289 (darwin_attach_pid): Likewise.
10290 * dummy-frame.c (dummy_frame_push): Likewise.
10291 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10292 * dwarf2loc.c (allocate_piece_closure): Likewise.
10293 * elfread.c (elf_symfile_segments): Likewise.
10294 * eval.c (ptrmath_type_p): Likewise.
10295 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10296 * gdbtypes.c (alloc_type_arch): Likewise.
10297 (alloc_type_instance): Likewise.
10298 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10299 * inf-child.c (inf_child_can_use_agent): Likewise.
10300 * inflow.c (get_inflow_inferior_data): Likewise.
10301 * infrun.c (save_infcall_suspend_state): Likewise.
10302 * jit.c (jit_reader_load): Likewise.
10303 (get_jit_objfile_data): Likewise.
10304 (get_jit_program_space_data): Likewise.
10305 (jit_object_open_impl): Likewise.
10306 (jit_symtab_open_impl): Likewise.
10307 (jit_block_open_impl): Likewise.
10308 (jit_frame_sniffer): Likewise.
10309 * linux-fork.c (add_fork): Likewise.
10310 * maint.c (make_command_stats_cleanup): Likewise.
10311 * objfiles.c (get_objfile_pspace_data): Likewise.
10312 * opencl-lang.c (struct lval_closure): Likewise.
10313 * osdata.c (osdata_start_osdata): Likewise.
10314 * progspace.c (new_address_space): Likewise.
10315 (add_program_space): Likewise.
10316 * remote-sim.c (get_sim_inferior_data): Likewise.
10317 * sh-tdep.c (sh_gdbarch_init): Likewise.
10318 * skip.c (Ignore): Likewise.
10319 (skip_delete_command): Likewise.
10320 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10321 (library_list_start_library): Likewise.
10322 (solib_aix_current_sos): Likewise.
10323 * solib-darwin.c (get_darwin_info): Likewise.
10324 (darwin_current_sos): Likewise.
10325 * solib-dsbt.c (get_dsbt_info): Likewise.
10326 * solib-ia64-hpux.c (new_so_list): Likewise.
10327 (ia64_hpux_get_solib_linkage_addr): Likewise.
10328 * solib-spu.c (append_ocl_sos): Likewise.
10329 (spu_current_sos): Likewise.
10330 * solib-svr4.c (get_svr4_info): Likewise.
10331 (svr4_keep_data_in_core): Likewise.
10332 (library_list_start_library): Likewise.
10333 (svr4_default_sos): Likewise.
10334 (svr4_read_so_list): Likewise.
10335 * solib-target.c (library_list_start_library): Likewise.
10336 (solib_target_current_sos): Likewise.
10337 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10338 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10339 * symfile.c (default_symfile_segments): Likewise.
10340 * target-descriptions.c (tdesc_data_init): Likewise.
10341 (tdesc_create_reg): Likewise.
10342 (struct tdesc_type *): Likewise.
10343 (tdesc_create_vector): Likewise.
10344 (tdesc_set_struct_size): Likewise.
10345 (struct tdesc_type *): Likewise.
10346 (tdesc_free_feature): Likewise.
10347 (tdesc_create_feature): Likewise.
10348 * windows-nat.c (windows_add_thread): Likewise.
10349 (windows_make_so): Likewise.
10350 * xml-support.c (gdb_xml_body_text): Likewise.
10351 (gdb_xml_create_parser_and_cleanup): Likewise.
10352 (xml_process_xincludes): Likewise.
10353 * xml-syscall.c (allocate_syscalls_info): Likewise.
10354 (syscall_create_syscall_desc): Likewise.
10355
10356 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10357
10358 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10359 function, with code from i386_stap_parse_special_token.
10360 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10361 (i386_stap_parse_special_token): Move code to the two functions
10362 above; simplify it.
10363
10364 2014-01-09 Pedro Alves <palves@redhat.com>
10365 Hui Zhu <hui@codesourcery.com>
10366
10367 PR gdb/16101
10368 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10369 bp_err_string. Don't mark the location shlib_disabled if the
10370 error thrown wasn't a generic or memory error. Catch errors
10371 thrown while inserting breakpoints in overlayed code. Output
10372 error message of software breakpoints.
10373 * remote.c (remote_insert_breakpoint): If this breakpoint has
10374 target-side commands but this stub doesn't support Z0 packets,
10375 throw NOT_SUPPORTED_ERROR error.
10376 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10377 * target.h (target_insert_breakpoint): Extend comment.
10378 (target_insert_hw_breakpoint): Add comment.
10379
10380 2014-01-08 Pedro Alves <palves@redhat.com>
10381
10382 * remote.c (remote_add_thread): Add threads silently if starting
10383 up.
10384 (remote_notice_new_inferior): If in all-stop, and starting up,
10385 don't call notice_new_inferior.
10386 (get_current_thread): New function, factored out from ...
10387 (add_current_inferior_and_thread): ... this. Adjust.
10388 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10389 found any thread, then select the remote's current thread as GDB's
10390 current thread too.
10391
10392 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10393
10394 * NEWS: Create a new section for the next release branch.
10395 Rename the section of the current branch, now that it has
10396 been cut.
10397
10398 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10399
10400 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10401 * version.in: Bump version to 7.7.50.DATE-cvs.
10402
10403 2014-01-08 Yao Qi <yao@codesourcery.com>
10404
10405 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10406 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10407 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10408
10409 2014-01-08 Yao Qi <yao@codesourcery.com>
10410
10411 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10412 return value of bfd_get_filename to symbol_file_add_from_bfd.
10413
10414 2014-01-08 Pierre Muller <muller@sourceware.org>
10415
10416 Fix PR16201.
10417 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10418 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10419 to prim_record_mininal_symbol_and_info.
10420 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10421 in call to prim_record_minimal_symbol_and_info.
10422 (read_pe_exported_syms): Set index field of section_data.
10423
10424 2014-01-07 Andrew Pinski <apinski@cavium.com>
10425
10426 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10427 * features/aarch64.c: Regenerate.
10428
10429 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10430
10431 * target.c (return_null): Define.
10432 (update_current_target): Use it instead of return_zero for
10433 functions that return a pointer.
10434
10435 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10436
10437 * source.c (add_path): Fix check for duplicated paths in the previously
10438 included paths.
10439
10440 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10441
10442 * ada-lang.c: Remove duplicated include statements.
10443 * alphabsd-nat.c: Ditto.
10444 * amd64-darwin-tdep.c: Ditto.
10445 * amd64fbsd-nat.c: Ditto.
10446 * auto-load.c: Ditto.
10447 * ax-gdb.c: Ditto.
10448 * breakpoint.c: Ditto.
10449 * dbxread.c: Ditto.
10450 * fork-child.c: Ditto.
10451 * gdb_usleep.c: Ditto.
10452 * i386-darwin-tdep.c: Ditto.
10453 * i386fbsd-nat.c: Ditto.
10454 * infcmd.c: Ditto.
10455 * inferior.c: Ditto.
10456 * jv-lang.c: Ditto.
10457 * linux-nat.c: Ditto.
10458 * linux-tdep.c: Ditto.
10459 * m68kbsd-nat.c: Ditto.
10460 * m68klinux-nat.c: Ditto.
10461 * microblaze-tdep.c: Ditto.
10462 * mips-linux-tdep.c: Ditto.
10463 * mn10300-tdep.c: Ditto.
10464 * nto-tdep.c: Ditto.
10465 * opencl-lang.c: Ditto.
10466 * osdata.c: Ditto.
10467 * printcmd.c: Ditto.
10468 * regcache.c: Ditto.
10469 * remote-m32r-sdi.c: Ditto.
10470 * remote.c: Ditto.
10471 * symfile.c: Ditto.
10472 * symtab.c: Ditto.
10473 * tilegx-linux-nat.c: Ditto.
10474 * tilegx-tdep.c: Ditto.
10475 * tracepoint.c: Ditto.
10476 * valops.c: Ditto.
10477 * vaxbsd-nat.c: Ditto.
10478 * windows-nat.c: Ditto.
10479 * xtensa-tdep.c: Ditto.
10480
10481 2014-01-07 Yao Qi <yao@codesourcery.com>
10482
10483 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10484
10485 2014-01-07 Yao Qi <yao@codesourcery.com>
10486 Joel Brobecker <brobecker@adacore.com>
10487
10488 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10489 (pdc_write_regs): Likewise.
10490 (fetch_regs_kernel_thread): Likewise.
10491 (store_regs_kernel_thread): Likewise.
10492
10493 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10494
10495 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10496 tagged type objects to their actual type.
10497
10498 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10499
10500 * ada-valprint.c (print_field_values): Add "language" parameter.
10501 Update calls to print_field_values and print_variant_part.
10502 Pass new parameter "language" in call to val_print instead
10503 of "current_language". Replace call to ada_val_print by call
10504 to val_print.
10505 (print_variant_part): Add "language" parameter.
10506 (ada_val_print_struct_union): Update call to print_field_values.
10507
10508 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10509
10510 * ada-valprint.c (ui_memcpy): Delete.
10511 (ada_print_floating): Update documentation. Add empty line
10512 between between function documentation and implementation.
10513 Delete variable "buffer". Use ui_file_xstrdup in place of
10514 ui_file_put. Minor adjustments following this change.
10515
10516 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10517
10518 * ada-valprint.c (ada_val_print_string): New function,
10519 extracted from ada_val_print_array.
10520 (ada_val_print_array): Replace extracted code by call
10521 to ada_val_print_string followed by a return. Move
10522 "else" branch to the function's top block.
10523
10524 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10525
10526 * ada-valprint.c (ada_val_print_array): Move implementation
10527 down. Rename parameter "offset" and "val" into "offset_aligned"
10528 and "original_value" respectively. Add parameter "offset".
10529
10530 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10531
10532 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10533 re-organizing the code. Change the "???" message printed
10534 when target type is a TYPE_CODE_UNDEF into
10535 "<ref to undefined type>".
10536
10537 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10538
10539 * ada-valprint.c (print_record): Delete, implementation inlined...
10540 (ada_val_print_struct_union): ... here. Remove call to
10541 ada_check_typedef in inlined implementation.
10542
10543 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10544
10545 * ada-valprint.c (ada_val_print_gnat_array): New function,
10546 extracted from ada_val_print_1;
10547 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10548 (ada_val_print_flt, ada_val_print_struct_union)
10549 (ada_val_print_ref): Likewise.
10550 (ada_val_print_1): Delete variables i and elttype.
10551 Replace extracted-out code by call to corresponding
10552 new functions.
10553
10554 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10555
10556 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10557
10558 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10559
10560 * ada-valprint.c (ada_val_print_1): Replace calls to
10561 ada_val_print_1 by calls to val_print.
10562
10563 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10564
10565 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10566 Update calls to self accordingly. Replace calls to c_val_print
10567 by calls to val_print.
10568
10569 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10570
10571 * ada-valprint.c (print_record): Delete declaration.
10572 (adjust_type_signedness, ada_val_print_1): Likewise.
10573 (ada_val_print): Move function implementation down.
10574 (print_variant_part, print_field_values, print_record):
10575 Move function implementation up.
10576
10577 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10578
10579 * python/py-type.c (typy_get_name): New function.
10580 (type_object_getset): Add entry for attribute "name".
10581 * NEWS: Add entry mentioning this new attribute.
10582
10583 2014-01-07 Yao Qi <yao@codesourcery.com>
10584
10585 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10586 statement.
10587
10588 2014-01-07 Yao Qi <yao@codesourcery.com>
10589
10590 * gnu-nat.c (info_port_rights): Add qualifier const to
10591 argument args.
10592
10593 2014-01-07 Yao Qi <yao@codesourcery.com>
10594
10595 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10596
10597 2014-01-07 Yao Qi <yao@codesourcery.com>
10598
10599 * gnu-nat.c (make_inf) Update declaration.
10600 (make_inf): Make it static.
10601 (inf_set_traced): Likewise.
10602 (inf_port_to_thread, inf_task_died_status): Likewise.
10603
10604 2014-01-07 Yao Qi <yao@codesourcery.com>
10605
10606 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10607
10608 2014-01-07 Yao Qi <yao@codesourcery.com>
10609
10610 * gnu-nat.c (_initialize_gnu_nat): Declare.
10611
10612 2014-01-07 Yao Qi <yao@codesourcery.com>
10613
10614 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10615 'enum bfd_endian'.
10616 (struct gdbarch_info) <byte_order>: Change type to
10617 'enum bfd_endian'.
10618 <byte_order_for_code>: Likewise.
10619 * gdbarch.c, gdbarch.h: Regenerated.
10620
10621 2014-01-06 Sasha Smundak <asmundak@google.com>
10622
10623 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10624
10625 2014-01-06 Tom Tromey <tromey@redhat.com>
10626
10627 * doublest.c (convert_doublest_to_floatformat): Use const, not
10628 CONST.
10629 * somread.c (som_symtab_read): Likewise.
10630
10631 2014-01-07 Hui Zhu <hui@codesourcery.com>
10632
10633 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10634 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10635 (gdb_bfd_fopen): Ditto.
10636 (gdb_bfd_openr): Ditto.
10637 (gdb_bfd_openw): Ditto.
10638 (gdb_bfd_openr_iovec): Ditto.
10639 (gdb_bfd_fdopenr): Ditto.
10640 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10641 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10642 with xstrdup.
10643 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10644 with xstrdup.
10645 * symfile-mem.c (symbol_file_add_from_memory): Removed
10646 gdb_bfd_stash_filename.
10647
10648 2014-01-03 Doug Evans <dje@google.com>
10649
10650 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10651 output.
10652
10653 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10654
10655 Update year range in copyright notice of all files.
10656
10657 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10658
10659 * top.c (print_gdb_version): Set copyright year to 2014.
10660
10661 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10662
10663 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10664
10665 For older changes see ChangeLog-2013.
10666 \f
10667 Local Variables:
10668 mode: change-log
10669 left-margin: 8
10670 fill-column: 74
10671 version-control: never
10672 coding: utf-8
10673 End: