1 2014-11-06 Doug Evans <xdje42@gmail.com>
3 * symtab.c (lookup_static_symbol): Renamed from
4 lookup_static_symbol_aux. All callers updated.
5 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
8 2014-11-06 Doug Evans <xdje42@gmail.com>
10 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
11 * block.c (block_lookup_symbol): Use it.
12 * cp-support.c (make_symbol_overload_list_block): Use it.
13 * symtab.c (iterate_over_symbols): Use it.
15 2014-11-06 Doug Evans <xdje42@gmail.com>
17 * symtab.c (lookup_block_symbol): Moved to ...
18 * block.c (block_lookup_symbol): ... here and renamed.
20 * block.h (block_lookup_symbol): Declare.
21 * symtab.h (lookup_block_symbol): Delete.
23 2014-11-06 Doug Evans <xdje42@gmail.com>
25 * ada-lang.c (ada_make_symbol_completion_list): Use
26 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
27 * symtab.c (lookup_objfile_from_block): Ditto.
29 2014-11-06 Doug Evans <xdje42@gmail.com>
31 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
34 2014-11-06 Doug Evans <xdje42@gmail.com>
36 * objfiles.c (get_objfile_arch): Constify.
37 * objfiles.h (get_objfile_arch): Update prototype.
38 * solib.c (solib_global_lookup): Fetch arch from objfile,
41 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
43 * nios2-tdep.c (wild_insn): Delete.
44 (profiler_insn, irqentry_insn): Delete.
45 (nios2_match_sequence): Delete.
46 (nios2_analyze_prologue): Update comments. Remove matching
47 of obsolete profiler_insn and irqentry_insn sequences.
49 2014-11-05 Alan Modra <amodra@gmail.com>
51 * charset.c (convert_between_encodings): Shrink obstack using
53 * minsyms.c (install_minimal_symbols): Likewise.
54 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
55 to char* before doing pointer arithmetic.
57 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
59 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
61 2014-11-04 Pedro Alves <palves@redhat.com>
63 * breakpoint.c (breakpoint_thread_match): Delete function.
64 * breakpoint.h (breakpoint_thread_match): Delete declaration.
66 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
69 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
70 the method args also under EVAL_SKIP when evaluating method
71 calls under EVAL_SKIP.
73 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
75 * dwarf2loc.c (read_pieced_value): Do big endian
76 processing only if gdb_regnum is not -1.
77 (write_pieced_value): Ditto.
79 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
81 * arm-linux-tdep.c (arm_linux_init_abi): Use
82 info.byte_order_for_code to choose endianity of breakpoint
83 instructions snippets.
85 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
87 * arm-tdep.c (extract_arm_insn): Use
88 gdbarch_byte_order_for_code to read arm instruction.
90 2014-11-02 Doug Evans <xdje42@gmail.com>
92 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
94 2014-11-02 Doug Evans <xdje42@gmail.com>
96 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
97 main_subfile before returning.
99 2014-10-31 Doug Evans <xdje42@gmail.com>
101 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
102 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
104 2014-10-31 Doug Evans <xdje42@gmail.com>
106 * valops.c (value_cast_pointers): Fix whitespace.
107 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
110 2014-10-30 Doug Evans <dje@google.com>
112 * NEWS: Mention ability add attributes to gdb.Objfile and
113 gdb.Progspace objects.
114 * python/py-objfile.c (objfile_object): New member dict.
115 (objfpy_dealloc): Py_XDECREF dict.
116 (objfpy_initialize): Initialize dict.
117 (objfile_getset): Add __dict__.
118 (objfile_object_type): Set tp_dictoffset member.
119 * python/py-progspace.c (progspace_object): New member dict.
120 (pspy_dealloc): Py_XDECREF dict.
121 (pspy_initialize): Initialize dict.
122 (pspace_getset): Add __dict__.
123 (pspace_object_type): Set tp_dictoffset member.
125 2014-10-30 Yao Qi <yao@codesourcery.com>
127 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
128 replace '\\' with '\\\\'.
130 2014-10-29 Joel Brobecker <brobecker@adacore.com>
134 2014-10-29 Pedro Alves <palves@redhat.com>
137 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
138 instead of assuming a thread with a stepping range is always
141 2014-10-29 Pedro Alves <palves@redhat.com>
144 * event-top.c (change_line_handler): Call
145 gdb_rl_callback_handler_remove instead of
146 rl_callback_handler_remove.
147 (callback_handler_installed): New global.
148 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
149 (gdb_rl_callback_handler_reinstall): New functions.
150 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
151 gdb_rl_callback_handler_install instead of
152 rl_callback_handler_remove and rl_callback_handler_install.
153 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
154 instead of rl_callback_handler_remove.
155 * event-top.h (gdb_rl_callback_handler_remove)
156 (gdb_rl_callback_handler_install)
157 (gdb_rl_callback_handler_reinstall): New declarations.
158 * infrun.c (reinstall_readline_callback_handler_cleanup): New
160 (fetch_inferior_event): Install it.
161 * top.c (gdb_readline_wrapper_line) Call
162 gdb_rl_callback_handler_remove instead of
163 rl_callback_handler_remove.
164 (gdb_readline_wrapper_cleanup): Don't call
165 rl_callback_handler_install.
167 2014-10-29 Pedro Alves <palves@redhat.com>
169 * event-top.c (command_line_handler): Clear the first byte of
170 linebuffer, when it is first allocated.
172 2014-10-29 Pedro Alves <palves@redhat.com>
174 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
177 2014-10-29 Pedro Alves <palves@redhat.com>
181 * tui/tui-interp.c (tui_is_toplevel): Delete global.
182 (tui_allowed_p): Delete function.
183 * tui/tui.c: Include "interps.h".
184 (tui_enable): Don't use tui_allowed_p. Error out here with
185 detailed error messages if the TUI is the top level interpreter,
186 or if output is not a terminal. Use newterm instead of initscr,
187 and error out if initializing the terminal fails. Also error out if
188 the terminal doesn't support cursor addressing.
189 * tui/tui.h (tui_allowed_p): Delete declaration.
191 2014-10-29 Joel Brobecker <brobecker@adacore.com>
193 * arm-tdep.c (arm_skip_stack_protector): Return early if
194 address loaded by first "ldr" instruction does not have
195 a corresponding minimal symbol. Update comment.
197 2014-10-29 Yao Qi <yao@codesourcery.com>
199 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
200 loaded address correctly of ldr instruction.
202 2014-10-28 Pedro Alves <palves@redhat.com>
205 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
207 * infrun.c (resume) <stepping breakpoint instruction>: Set the
208 thread's stepped_breakpoint field. Skip if reverse debugging.
210 (init_thread_stepping_state, handle_signal_stop): Clear the
211 thread's stepped_breakpoint field.
213 2014-10-27 Pedro Alves <palves@redhat.com>
215 * remote.c (remote_thread_alive): New, factored out from ...
216 (remote_thread_alive): ... this.
217 (remote_update_thread_list): Bail out before deleting threads if
218 the target returned an empty list, and, the current thread has a
221 2014-10-27 Pedro Alves <palves@redhat.com>
223 * infrun.c (handle_signal_stop): Also skip handlers when a random
224 signal arrives while handling a "stepi" or a "nexti". Set the
225 thread's 'step_after_step_resume_breakpoint' flag.
227 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
229 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
230 (arm_record_ld_st_imm_offset): Reimplement to cover all
231 load/store cases for ARM opcode 010.
232 (arm_record_ld_st_multiple): Reimplement to cover all
233 load/store cases for ARM opcode 100.
235 2014-10-26 Doug Evans <xdje42@gmail.com>
237 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
239 2014-10-26 Doug Evans <xdje42@gmail.com>
241 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
242 parameter "kind" to "block_index".
243 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
245 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
247 2014-10-26 Doug Evans <xdje42@gmail.com>
249 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
251 2014-10-26 Doug Evans <xdje42@gmail.com>
253 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
256 2014-10-26 Doug Evans <xdje42@gmail.com>
258 * parser-defs.h (block_found): Move decl from here ...
259 * symtab.h (block_found): ... to here.
261 2014-10-26 Doug Evans <xdje42@gmail.com>
263 * symtab.h (struct field_of_this_result): Fix typo in comment.
264 (lookup_symbol_in_language): Move function comment here.
265 (lookup_symbol): Improve function comment.
266 (basic_lookup_symbol_nonlocal): Ditto.
267 (lookup_symbol_static, lookup_symbol_global): Ditto.
268 (lookup_symbol_aux_block): Ditto.
269 (lookup_language_this): Add function comment.
270 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
272 (lookup_block_symbol): Improve function comment.
273 (lookup_struct): Fix capitalization in function comment.
274 (lookup_transparent_type): Add function comment.
275 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
276 Improve function comment.
277 (lookup_objfile_from_block): Add function comment.
278 * symtab.c (lookup_symbol_in_language): Update function comment.
279 (lookup_symbol, lookup_language_this): Ditto.
280 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
281 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
282 (basic_lookup_symbol_nonlocal): Ditto.
283 (lookup_symbol_static, lookup_symbol_global): Ditto.
284 (lookup_transparent_type, lookup_block_symbol): Ditto.
286 2014-10-25 Doug Evans <xdje42@gmail.com>
288 * symtab.c (types_info): Delete forward decl.
289 (functions_info, variables_info, sources_info): Ditto.
290 (_initialize_symtab): Rewrite forward decl to use
291 initialize_file_ftype.
293 2014-10-25 Doug Evans <xdje42@gmail.com>
295 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
297 2014-10-25 Doug Evans <xdje42@gmail.com>
299 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
300 of local var child_die.
302 2014-10-24 Don Breazeal <donb@codesourcery.com>
304 * infrun.c (follow_fork_inferior): Update fork message printing
305 to use target_terminal_ours_for_output instead of
306 target_terminal_ours, to use _() for all format strings, to print
307 "vfork" instead of "fork" for vforks, and to add a detach message.
308 (handle_vfork_child_exec_or_exit): Update message printing to use
309 target_terminal_ours_for_output instead of target_terminal_ours, to
310 use _() for all format strings, and to fix some formatting.
312 2014-10-24 Pedro Alves <palves@redhat.com>
314 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
315 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
316 * config/vax/vax.mh: Delete.
317 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
318 obsolete configurations section.
319 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
320 * vax-nat.c: Delete file.
322 2014-10-24 Pedro Alves <palves@redhat.com>
324 * NEWS (Removed targets): Add OS/arch column.
326 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
328 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
329 on the arg type of a constructor only if it is of reference type.
331 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
333 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
334 accessors and constants from nios2 opcodes update.
335 (nios2_get_next_pc): Likewise.
337 2014-10-19 Doug Evans <xdje42@gmail.com>
339 * gdbthread.h (set_running): Fix comment.
340 (set_executing, finish_thread_state): Fix comment.
342 2014-10-18 Doug Evans <xdje42@gmail.com>
344 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
346 2014-10-17 Doug Evans <dje@google.com>
348 * NEWS: Mention new event gdb.clear_objfiles.
349 * python/py-event.h (emit_clear_objfiles_event): Clear
350 * python/py-events.h (events_object): New member clear_objfiles.
351 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
353 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
354 emit clear_objfiles event.
355 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
357 (emit_clear_objfiles_event): New function.
358 (clear_objfiles): New event.
359 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
361 * python/python.c (_initialize_python): Call
362 gdbpy_initialize_clear_objfiles_event.
364 2014-10-17 Doug Evans <dje@google.com>
366 * NEWS: Mention new gdb.Objfile.progspace attribute.
367 * python/py-objfile.c (objfpy_get_progspace): New function.
368 (objfile_getset): New entry for "progspace".
370 2014-10-17 Pedro Alves <palves@redhat.com>
373 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
374 returns a copy of the input.
375 (run_command_1, continue_command, step_1, jump_command)
376 (signal_command, until_command, advance_command, finish_command)
377 (attach_command): Adjust and install a cleanup to free the
380 2014-10-17 Pedro Alves <palves@redhat.com>
383 * infcmd.c (continue_1): If continuing all threads in the
384 foreground, make sure the inferior's terminal settings are put in
387 2014-10-17 Pedro Alves <palves@redhat.com>
390 * annotate.c (annotate_breakpoints_invalid): Use
391 target_terminal_our_for_output instead of target_terminal_ours.
392 Give back the terminal to the target.
393 (annotate_frames_invalid): Likewise.
395 2014-10-17 Pedro Alves <palves@redhat.com>
397 * target.c (enum terminal_state): New enum.
398 (terminal_state): New global.
399 (target_terminal_init): New function.
400 (target_terminal_inferior): Skip if inferior already owns the
402 (target_terminal_ours, target_terminal_ours_for_output): New
404 * target.h (target_terminal_init): Convert to function prototype.
405 (target_terminal_ours_for_output): Convert to function prototype
407 (target_terminal_ours): Convert to function prototype and tweak
409 * windows-nat.c (do_initial_windows_stuff): Call
410 target_terminal_init instead of child_terminal_init_with_pgrp.
412 2014-10-17 Pedro Alves <palves@redhat.com>
414 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
415 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
416 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
418 * NEWS: Mention that support for alpha*-*-osf* has been removed.
419 * ada-lang.h [__alpha__ && __osf__]
420 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
421 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
422 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
424 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
426 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
427 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
428 * configure: Regenerate.
429 * configure.ac: Remove references to osf.
430 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
431 section. Remove all other references to osf.
432 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
433 Remove all other references to osf.
434 * dec-thread.c: Delete file.
435 * defs.h (GDB_OSABI_OSF1): Delete.
436 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
438 * osabi.c (gdb_osabi_names): Delete "OSF/1".
439 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
441 (unconditionally_kill_inferior)
442 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
443 * solib-osf.c: Delete file.
445 2014-10-17 Pedro Alves <palves@redhat.com>
447 * remote.c (clear_threads_listing_context): Move higher up, out of
448 the HAVE_LIBEXPAT guard.
450 2014-10-16 Tristan Gingold <gingold@adacore.com>
452 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
453 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
456 2014-10-15 Pedro Alves <palves@redhat.com>
458 * dec-thread.c (dec_thread_count_gdb_threads)
459 (dec_thread_add_gdb_thread): Delete.
460 (dec_thread_update_thread_list): Delete.
461 (dec_thread_find_new_threads): Rename to ...
462 (dec_thread_update_thread_list): ... this. Delete GDB-size
463 threads that are no longer found in dec_thread_list.
464 (resync_thread_list): Delete.
465 (dec_thread_wait): Call dec_thread_update_thread_list instead of
468 2014-10-15 Pedro Alves <palves@redhat.com>
470 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
471 * remote.c (remote_update_thread_list): Skip calling prune_threads
472 if any thread listing method is supported, and instead walk over
473 the set of remote threads listed, deleting those that are not
474 found in GDB's thread list.
476 2014-10-15 Pedro Alves <palves@redhat.com>
478 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
479 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
480 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
481 (bsd_uthread_target): Adjust.
482 * corelow.c (core_open): Adjust.
483 * dec-thread.c (dec_thread_find_new_threads): Update comment.
484 (dec_thread_update_thread_list): New function.
485 (init_dec_thread_ops): Adjust.
486 * gdbthread.h (prune_threads): New declaration.
487 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
488 (thread_db_update_thread_list): ... this. Call prune_threads.
489 (init_thread_db_ops): Adjust.
490 * nto-procfs.c (procfs_find_new_threads): Rename to ...
491 (procfs_update_thread_list): ... this. Call prune_threads.
492 (procfs_attach, procfs_create_inferior, init_procfs_targets):
494 * obsd-nat.c (obsd_find_new_threads): Rename to ...
495 (obsd_update_thread_list): ... this. Call prune_threads.
496 (obsd_add_target): Adjust.
497 * procfs.c (procfs_target): Adjust.
498 (procfs_notice_thread): Update comment.
499 (procfs_find_new_threads): Rename to ...
500 (procfs_update_thread_list): ... this. Call prune_threads.
501 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
503 (ravenscar_wait): Adjust.
504 (ravenscar_find_new_threads): Rename to ...
505 (ravenscar_update_thread_list): ... this. Call prune_threads.
506 (init_ravenscar_thread_ops): Adjust.
507 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
508 (record_btrace_update_thread_list): ... this. Adjust comment.
509 (init_record_btrace_ops): Adjust.
510 * remote.c (remote_threads_info): Rename to ...
511 (remote_update_thread_list): ... this. Call prune_threads.
512 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
514 * sol-thread.c (check_for_thread_db): Adjust.
515 (sol_find_new_threads_callback): Rename to ...
516 (sol_update_thread_list_callback): ... this.
517 (sol_find_new_threads): Rename to ...
518 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
519 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
520 * target-delegates.c: Regenerate.
521 * target.c (target_find_new_threads): Rename to ...
522 (target_update_thread_list): ... this.
523 * target.h (struct target_ops): Rename to_find_new_threads field
524 to to_update_thread_list.
525 (target_find_new_threads): Rename to ...
526 (target_update_thread_list): ... this.
527 * thread.c (prune_threads): Make extern.
528 (update_thread_list): Adjust.
530 2014-10-15 Pedro Alves <palves@redhat.com>
532 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
533 Add describing comment. Return -1 if the qL packet is not
535 (struct thread_item, thread_item_t): Move higher up in
536 the file. Add comments.
537 (struct threads_parsing_context): Move higher up in
538 the file, add comments, and remote to ...
539 (struct threads_listing_context): ... this.
540 (remote_newthread_step): Don't add the thread to GDB's thread
541 database here. Instead push it to the thread_listing_context
543 (remote_find_new_threads): Rename to ...
544 (remote_get_threads_with_ql): ... this. Add target_ops and
545 targets_listing_context parameters. Pass down context.
546 (start_thread): Adjust.
547 (clear_threads_parsing_context): Rename to ...
548 (clear_threads_listing_context): ... this.
549 (remote_get_threads_with_qxfer): New, with parts salvaged from old
551 (remote_get_threads_with_qthreadinfo): Ditto.
552 (remote_threads_info): Reimplement.
554 2014-10-15 Pedro Alves <palves@redhat.com>
556 * infrun.c (resume): Don't force displaced-stepping for all
557 single-steps on software single-stepping archs.
559 2014-10-15 Pedro Alves <palves@redhat.com>
561 * breakpoint.c (single_step_breakpoints): Delete global.
562 (insert_single_step_breakpoint): Adjust to store the breakpoint
563 pointer in the current thread.
564 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
565 (cancel_single_step_breakpoints): Delete functions.
566 (breakpoint_has_location_inserted_here): Make extern.
567 (single_step_breakpoint_inserted_here_p): Adjust to walk the
569 * breakpoint.h (breakpoint_has_location_inserted_here): New
571 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
572 (cancel_single_step_breakpoints): Remove declarations.
573 * gdbthread.h (struct thread_control_state)
574 <single_step_breakpoints>: New field.
575 (delete_single_step_breakpoints)
576 (thread_has_single_step_breakpoints_set)
577 (thread_has_single_step_breakpoint_here): New declarations.
578 * infrun.c (follow_exec): Also clear the single-step breakpoints.
579 (singlestep_breakpoints_inserted_p, singlestep_ptid)
580 (singlestep_pc): Delete globals.
581 (infrun_thread_ptid_changed): Remove references to removed
583 (resume_cleanups): Delete the current thread's single-step
585 (maybe_software_singlestep): Remove references to removed globals.
586 (resume): Adjust to use thread_has_single_step_breakpoints_set and
587 delete_single_step_breakpoints.
588 (init_wait_for_inferior): Remove references to removed globals.
589 (delete_thread_infrun_breakpoints): Delete the thread's
590 single-step breakpoints too.
591 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
592 single-step breakpoints here.
593 (delete_stopped_threads_single_step_breakpoints): New function.
594 (adjust_pc_after_break): Adjust to use
595 thread_has_single_step_breakpoints_set.
596 (handle_inferior_event): Remove references to removed globals.
597 Use delete_stopped_threads_single_step_breakpoints.
598 (handle_signal_stop): Adjust to per-thread single-step
599 breakpoints. Swap test order to do cheaper tests first.
600 (switch_back_to_stepped_thread): Extend debug output. Remove
601 references to removed globals.
602 * record-full.c (record_full_wait_1): Adjust to per-thread
603 single-step breakpoints.
604 * thread.c (delete_single_step_breakpoints)
605 (thread_has_single_step_breakpoints_set)
606 (thread_has_single_step_breakpoint_here): New functions.
607 (clear_thread_inferior_resources): Also delete the thread's
608 single-step breakpoints.
610 2014-10-15 Pedro Alves <palves@redhat.com>
612 * thread.c (delete_thread_breakpoint): New function.
613 (delete_step_resume_breakpoint)
614 (delete_exception_resume_breakpoint): Use it.
615 (delete_at_next_stop): New function.
616 (clear_thread_inferior_resources): Use delete_at_next_stop.
618 2014-10-15 Pedro Alves <palves@redhat.com>
620 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
621 (breakpoint_inserted_here_p): ... here. Remove special case for
622 software single-step breakpoints.
623 (find_non_raw_software_breakpoint_inserted_here): Inline ...
624 (software_breakpoint_inserted_here_p): ... here. Remove special
625 case for software single-step breakpoints.
626 (bp_target_info_copy_insertion_state)
627 (deprecated_insert_raw_breakpoint)
628 (deprecated_remove_raw_breakpoint): Delete functions.
629 * breakpoint.h (deprecated_insert_raw_breakpoint)
630 (deprecated_remove_raw_breakpoint): Remove declarations.
632 2014-10-15 Pedro Alves <palves@redhat.com>
635 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
636 Delete array globals.
637 (single_step_breakpoints): New global.
638 (breakpoint_xfer_memory): Remove special handling for single-step
640 (update_breakpoints_after_exec): Delete bp_single_step
642 (detach_breakpoints): Remove special handling for single-step
644 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
645 (bpstat_stop_status): Add comment.
646 (bpstat_what, bptype_string, print_one_breakpoint_location)
647 (adjust_breakpoint_address, init_bp_location): Handle
649 (new_single_step_breakpoint): New function.
650 (set_momentary_breakpoint, bkpt_remove_location): Remove special
651 handling for single-step breakpoints.
652 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
653 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
655 (detach_single_step_breakpoints, find_single_step_breakpoint):
657 (breakpoint_has_location_inserted_here): New function.
658 (single_step_breakpoint_inserted_here_p): Rewrite.
659 * breakpoint.h: Remove FIXME.
660 (enum bptype) <bp_single_step>: New enum value.
661 (insert_single_step_breakpoint): Update comment.
662 * infrun.c (resume_cleanups)
663 (delete_step_thread_step_resume_breakpoint): Remove single-step
665 (fetch_inferior_event): Install a cleanup that removes infrun
667 (switch_back_to_stepped_thread) <expect thread advanced also>:
668 Clear step-over info.
670 2014-10-15 Pedro Alves <palves@redhat.com>
672 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
673 (delete_thread_infrun_breakpoints): New function, with parts
674 salvaged from delete_step_resume_breakpoint_callback.
675 (delete_step_thread_step_resume_breakpoint): Delete.
676 (for_each_just_stopped_thread_callback_func): New typedef.
677 (for_each_just_stopped_thread): New function.
678 (delete_just_stopped_threads_infrun_breakpoints): New function.
679 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
680 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
682 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
684 2014-10-15 Pedro Alves <palves@redhat.com>
686 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
687 trying to step past a non-steppable watchpoint.
688 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
690 * infrun.c (struct step_over_info): Add new field
691 'nonsteppable_watchpoint_p' and adjust comments.
692 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
694 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
695 (stepping_past_nonsteppable_watchpoint): New function.
696 (step_over_info_valid_p): Also return true if stepping past a
697 nonsteppable watchpoint.
698 (proceed): Adjust call to set_step_over_info. Remove reference to
700 (init_wait_for_inferior): Remove reference to init_infwait_state.
701 (waiton_ptid): Delete global.
702 (struct execution_control_state)
703 <stepped_after_stopped_by_watchpoint>: Delete field.
704 (wait_for_inferior, fetch_inferior_event): Always pass
705 minus_one_ptid to target_wait.
706 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
708 (init_infwait_state): Delete function.
709 (handle_inferior_event): Remove infwait_state handling.
710 (handle_signal_stop) <watchpoints handling>: Adjust after
711 stepped_after_stopped_by_watchpoint removal. Don't remove
712 breakpoints here nor set infwait_state. Set the thread's
713 stepping_over_watchpoint flag, and call keep_going instead.
714 (keep_going): Handle stepping_over_watchpoint. Adjust
715 set_step_over_info calls.
716 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
719 2014-10-15 Pedro Alves <palves@redhat.com>
721 * infrun.c (step_over_info_valid_p): New function.
722 (resume): Use step_over_info_valid_p instead of checking the
723 threads's trap_expected flag.
725 2014-10-15 Doug Evans <dje@google.com>
726 Walfred Tedeschi <walfred.tedeschi@intel.com>
729 * python/lib/gdb/__init__.py (packages): Add "printer".
730 * python/lib/gdb/command/bound_registers.py: Moved to ...
731 * python/lib/gdb/printer/bound_registers.py: ... here.
732 Add printer to global set of builtin printers. Rename printer from
733 "bound" to "mpx_bound128".
734 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
735 registered as global "builtin" printer.
736 (add_builtin_pretty_printer): New function.
737 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
738 gdb/printer/__init__.py.
740 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
742 * Makefile.in (SFILES): Remove d-support.c.
743 (COMMON_OBS): Remove d-support.o.
744 * d-lang.h (d_parse_symbol): Remove declaration.
745 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
746 * d-support.c: Remove file.
748 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
750 * gdb/infrun.c (process_event_stop_test): Apply
751 gdbarch_addr_bits_remove to longjmp resume address.
753 2014-10-15 Pedro Alves <palves@redhat.com>
755 * regformats/microblaze.dat: Delete file.
757 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
759 * features/Makefile (microblaze-expedite): Replace pc with rpc.
760 * regformats/microblaze-with-stack-protect.dat: Regenerate.
762 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
764 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
767 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
771 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
774 2014-10-14 Joel Brobecker <brobecker@adacore.com>
776 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
777 of the case where the second operand is a pointer.
778 <BINOP_SUB>: Likewise.
780 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
782 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
783 only if it is not NULL.
784 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
785 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
786 (struct probe_ops) <clear_semaphore>: Likewise.
787 * tracepoint.c (start_tracing): Call set_semaphore only if it is
789 (stop_tracing): Likewise, for clear_semaphore.
791 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
793 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
794 using language_c, instead of current_language.
796 2014-10-13 Doug Evans <dje@google.com>
798 * python/py-objfile.c (objfpy_initialize): New function.
799 (objfpy_new, objfile_to_objfile_object): Call it.
800 * python/py-progspace.c (pspy_initialize): New function.
801 (pspy_new, pspace_to_pspace_object): Call it.
803 2014-10-13 Miroslav Franc <mfranc@redhat.com>
804 Jan Kratochvil <jan.kratochvil@redhat.com>
806 Fix "save breakpoints" for "catch" command.
807 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
810 2014-10-12 Miroslav Franc <mfranc@redhat.com>
812 Fix "save breakpoints" for "disable $bpnum" command.
813 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
815 2014-10-10 Pedro Alves <palves@redhat.com>
817 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
818 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
819 (HFILES_NO_SRCDIR): Remove solib-irix.h.
820 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
822 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
823 * configure.ac: Remove references to IRIX.
824 * configure.host: Add *-*-irix* to the obsolete hosts section.
825 Remove all other references to irix.
826 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
829 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
831 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
832 isn't valid, release the tdesc arch data and return NULL.
834 2014-10-10 Pedro Alves <palves@redhat.com>
836 * linux-tdep.c: Include observer.h.
837 (linux_inferior_data): New global.
838 (struct linux_info): New structure.
839 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
840 (get_linux_inferior_data): New functions.
841 (linux_vsyscall_range): Rename to ...
842 (linux_vsyscall_range_raw): ... this.
843 (linux_vsyscall_range): New function; handles caching.
844 (_initialize_linux_tdep): Register linux_inferior_data. Install
845 inferior_exit and inferior_appeared observers.
847 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
848 Pedro Alves <palves@redhat.com>
851 * solib-svr4.c (svr4_read_so_list): Rename to ...
852 (svr4_current_sos_1): ... this and change the function comment.
853 (svr4_current_sos): New function.
855 2014-10-10 Pedro Alves <palves@redhat.com>
857 * arch-utils.c (default_vsyscall_range): New function.
858 * arch-utils.h (default_vsyscall_range): New declaration.
859 * gdbarch.sh (vsyscall_range): New hook.
860 * gdbarch.h, gdbarch.c: Regenerate.
861 * linux-tdep.c (linux_vsyscall_range): New function.
862 (linux_init_abi): Install linux_vsyscall_range as
863 vsyscall_range gdbarch hook.
864 * memrange.c (address_in_mem_range): New function.
865 * memrange.h (address_in_mem_range): New declaration.
866 * symfile-mem.c (find_vdso_size): Delete function.
867 (add_vsyscall_page): Use gdbarch_vsyscall_range.
869 2014-10-10 Pedro Alves <palves@redhat.com>
871 * infrun.c (normal_stop): Fix typo in comment.
873 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
876 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
877 typo when using logical AND to determine instruction type.
879 2014-10-09 Yao Qi <yao@codesourcery.com>
881 * infrun.c (handle_signal_stop): Remove local variable
884 2014-10-08 Stan Shebs <stan@codesourcery.com>
886 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
888 2014-10-08 Gary Benson <gbenson@redhat.com>
890 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
892 2014-10-08 Gary Benson <gbenson@redhat.com>
894 * common/common-defs.h: Include common-exceptions.h.
895 * exceptions.h: Do not include common-exceptions.h.
897 2014-10-08 Gary Benson <gbenson@redhat.com>
899 * common/common-defs.h: Include cleanups.h.
900 * common/common-exceptions.c: Do not include cleanups.h.
903 2014-10-08 Gary Benson <gbenson@redhat.com>
905 * ada-lang.c: Do not include exceptions.h.
906 * ada-valprint.c: Likewise.
907 * amd64-tdep.c: Likewise.
908 * auto-load.c: Likewise.
910 * break-catch-throw.c: Likewise.
911 * breakpoint.c: Likewise.
912 * btrace.c: Likewise.
913 * c-lang.c: Likewise.
914 * cli/cli-cmds.c: Likewise.
915 * cli/cli-interp.c: Likewise.
916 * cli/cli-script.c: Likewise.
917 * completer.c: Likewise.
918 * corefile.c: Likewise.
919 * corelow.c: Likewise.
920 * cp-abi.c: Likewise.
921 * cp-support.c: Likewise.
922 * cp-valprint.c: Likewise.
923 * darwin-nat.c: Likewise.
924 * dwarf2-frame-tailcall.c: Likewise.
925 * dwarf2-frame.c: Likewise.
926 * dwarf2loc.c: Likewise.
927 * dwarf2read.c: Likewise.
929 * event-loop.c: Likewise.
930 * event-top.c: Likewise.
931 * f-valprint.c: Likewise.
932 * frame-unwind.c: Likewise.
934 * gdbtypes.c: Likewise.
935 * gnu-v2-abi.c: Likewise.
936 * gnu-v3-abi.c: Likewise.
937 * guile/scm-auto-load.c: Likewise.
938 * guile/scm-breakpoint.c: Likewise.
939 * guile/scm-cmd.c: Likewise.
940 * guile/scm-frame.c: Likewise.
941 * guile/scm-lazy-string.c: Likewise.
942 * guile/scm-param.c: Likewise.
943 * guile/scm-symbol.c: Likewise.
944 * guile/scm-type.c: Likewise.
945 * hppa-hpux-tdep.c: Likewise.
946 * i386-tdep.c: Likewise.
947 * inf-loop.c: Likewise.
948 * infcall.c: Likewise.
949 * infcmd.c: Likewise.
950 * infrun.c: Likewise.
951 * interps.c: Likewise.
952 * interps.h: Likewise.
954 * linespec.c: Likewise.
955 * linux-nat.c: Likewise.
956 * linux-thread-db.c: Likewise.
957 * m32r-rom.c: Likewise.
959 * memory-map.c: Likewise.
960 * mi/mi-cmd-break.c: Likewise.
961 * mi/mi-cmd-stack.c: Likewise.
962 * mi/mi-interp.c: Likewise.
963 * mi/mi-main.c: Likewise.
964 * monitor.c: Likewise.
965 * nto-procfs.c: Likewise.
966 * objc-lang.c: Likewise.
967 * p-valprint.c: Likewise.
969 * ppc-linux-tdep.c: Likewise.
970 * printcmd.c: Likewise.
972 * python/py-auto-load.c: Likewise.
973 * python/py-breakpoint.c: Likewise.
974 * python/py-cmd.c: Likewise.
975 * python/py-finishbreakpoint.c: Likewise.
976 * python/py-frame.c: Likewise.
977 * python/py-framefilter.c: Likewise.
978 * python/py-function.c: Likewise.
979 * python/py-gdb-readline.c: Likewise.
980 * python/py-inferior.c: Likewise.
981 * python/py-infthread.c: Likewise.
982 * python/py-lazy-string.c: Likewise.
983 * python/py-linetable.c: Likewise.
984 * python/py-param.c: Likewise.
985 * python/py-prettyprint.c: Likewise.
986 * python/py-symbol.c: Likewise.
987 * python/py-type.c: Likewise.
988 * python/py-value.c: Likewise.
989 * python/python-internal.h: Likewise.
990 * python/python.c: Likewise.
991 * record-btrace.c: Likewise.
992 * record-full.c: Likewise.
993 * regcache.c: Likewise.
994 * remote-fileio.c: Likewise.
995 * remote-mips.c: Likewise.
996 * remote.c: Likewise.
997 * rs6000-aix-tdep.c: Likewise.
998 * rs6000-nat.c: Likewise.
1000 * solib-darwin.c: Likewise.
1001 * solib-dsbt.c: Likewise.
1002 * solib-frv.c: Likewise.
1003 * solib-ia64-hpux.c: Likewise.
1004 * solib-spu.c: Likewise.
1005 * solib-svr4.c: Likewise.
1006 * solib.c: Likewise.
1007 * spu-tdep.c: Likewise.
1008 * stack.c: Likewise.
1009 * stap-probe.c: Likewise.
1010 * symfile-mem.c: Likewise.
1011 * symmisc.c: Likewise.
1012 * target.c: Likewise.
1013 * thread.c: Likewise.
1015 * tracepoint.c: Likewise.
1016 * tui/tui-interp.c: Likewise.
1017 * typeprint.c: Likewise.
1018 * utils.c: Likewise.
1019 * valarith.c: Likewise.
1020 * valops.c: Likewise.
1021 * valprint.c: Likewise.
1022 * value.c: Likewise.
1023 * varobj.c: Likewise.
1024 * windows-nat.c: Likewise.
1025 * xml-support.c: Likewise.
1027 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1029 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1031 (extended_mips16_next_pc): Update accordingly.
1033 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1035 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1037 (micromips_instruction_is_compact_branch): Likewise.
1038 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1039 or a compact jump, reaching a jump delay slot, or seeing a
1040 second non-prologue instruction.
1041 (micromips_scan_prologue): Also terminate scanning upon seeing a
1042 compact branch or jump, or reaching a branch or jump delay slot.
1043 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1044 or jump delay slot, or seeing a second non-prologue instruction.
1045 (mips32_instruction_has_delay_slot): Retain instruction
1046 examination code only, update arguments accordingly and move
1047 instruction fetch pieces to...
1048 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1049 (micromips_instruction_has_delay_slot): Likewise and to...
1050 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1051 (mips16_instruction_has_delay_slot): Likewise and to...
1052 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1053 (mips_single_step_through_delay): Update accordingly.
1054 (mips_adjust_breakpoint_address): Likewise.
1056 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1058 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1059 !mustbe32 also return 1 for 32-bit instructions.
1060 (mips16_instruction_has_delay_slot): Likewise. Add an
1061 explanatory comment.
1063 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1065 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1068 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1070 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1072 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1073 for the breakpoint's address. Don't preinitialize `placed_size'.
1074 (insert_bp_location): Set `reqstd_address' rather than
1076 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1077 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1079 (bkpt_remove_location): Likewise.
1080 (deprecated_insert_raw_breakpoint): Likewise.
1081 (deprecated_remove_raw_breakpoint): Likewise.
1082 (find_single_step_breakpoint): Likewise.
1083 * mem-break.c (default_memory_insert_breakpoint): Use
1084 `reqstd_address' for the breakpoint's address. Don't set
1085 `placed_address' or `placed_size' if breakpoint contents couldn't
1086 have been determined.
1087 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1088 the breakpoint's address.
1089 (remote_insert_hw_breakpoint): Likewise. Don't set
1090 `placed_address' or `placed_size' if breakpoint couldn't have been
1092 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1093 `reqstd_address' for the breakpoint's address.
1094 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1095 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1096 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1097 * microblaze-linux-tdep.c
1098 (microblaze_linux_memory_remove_breakpoint): Likewise.
1099 * monitor.c (monitor_insert_breakpoint): Likewise.
1100 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1101 (procfs_insert_hw_breakpoint): Likewise.
1102 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1103 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1104 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1105 * remote-mips.c (mips_insert_breakpoint): Likewise.
1106 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1108 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1110 * valops.c (value_assign): Check for bit field assignments
1111 before calling architecture-specific register value
1112 conversion functions.
1114 2014-10-03 Pierre Muller <muller@sourceware.org>
1116 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1118 2014-10-02 Pedro Alves <palves@redhat.com>
1120 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1121 threads_are_executing.
1122 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1124 * gdbthread.h (threads_are_executing): Declare.
1125 (handle_signal_stop) <random signals>: Don't print about the
1126 signal here if stopping.
1127 (end_stepping_range): Don't notify observers here.
1128 (normal_stop): Update the thread list. If stopped by a random
1129 signal or a stepping range ended, notify observers.
1130 * thread.c (threads_executing): New global.
1131 (init_thread_list): Clear 'threads_executing'.
1132 (set_executing): Set or clear 'threads_executing'.
1133 (threads_are_executing): New function.
1134 (update_threads_executing): New function.
1135 (update_thread_list): Use it.
1137 2014-10-02 Pedro Alves <palves@redhat.com>
1139 PR breakpoints/17431
1140 * breakpoint.c (update_breakpoints_after_exec): Don't create
1141 overlay, longjmp, std terminate nor exception breakpoints here.
1143 2014-10-02 Pedro Alves <palves@redhat.com>
1145 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1147 * inferior.c (find_inferior_for_program_space): Give preference to
1148 the current inferior.
1149 * inferior.h (find_inferior_for_program_space): Update comment.
1150 * progspace.c (switch_to_program_space_and_thread): Prefer the
1151 current inferior if it's bound to the program space requested. If
1152 the inferior found doesn't have a PID yet, don't bother looking up
1154 * progspace.h (switch_to_program_space_and_thread): Adjust
1156 * thread.c (any_thread_of_process, any_live_thread_of_process):
1157 Give preference to the current thread.
1159 2014-10-01 Pedro Alves <palves@redhat.com>
1161 * breakpoint.c (insert_bp_location): Error out if inserting a
1162 software breakpoint at a read-only address.
1163 * target.c (memory_xfer_check_region): New function, factored out
1165 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1167 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1168 against the memory region attributes.
1170 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1172 * NEWS: Announce new exit-code field in -list-thread-groups
1174 * inferior.c (exit_inferior_1): Don't clear exit code.
1175 (inferior_appeared): Clear exit code.
1176 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1179 2014-10-01 Pedro Alves <palves@redhat.com>
1181 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1182 GENERATED" along with emacs/vi read-only markers.
1183 * regformats/aarch64.dat: Regenerate.
1184 * regformats/arm-with-iwmmxt.dat: Regenerate.
1185 * regformats/arm-with-neon.dat: Regenerate.
1186 * regformats/arm-with-vfpv2.dat: Regenerate.
1187 * regformats/arm-with-vfpv3.dat: Regenerate.
1188 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1189 * regformats/i386/amd64-avx.dat: Regenerate.
1190 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1191 * regformats/i386/amd64-avx512.dat: Regenerate.
1192 * regformats/i386/amd64-linux.dat: Regenerate.
1193 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1194 * regformats/i386/amd64-mpx.dat: Regenerate.
1195 * regformats/i386/amd64.dat: Regenerate.
1196 * regformats/i386/i386-avx-linux.dat: Regenerate.
1197 * regformats/i386/i386-avx.dat: Regenerate.
1198 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1199 * regformats/i386/i386-avx512.dat: Regenerate.
1200 * regformats/i386/i386-linux.dat: Regenerate.
1201 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1202 * regformats/i386/i386-mmx.dat: Regenerate.
1203 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1204 * regformats/i386/i386-mpx.dat: Regenerate.
1205 * regformats/i386/i386.dat: Regenerate.
1206 * regformats/i386/x32-avx-linux.dat: Regenerate.
1207 * regformats/i386/x32-avx.dat: Regenerate.
1208 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1209 * regformats/i386/x32-avx512.dat: Regenerate.
1210 * regformats/i386/x32-linux.dat: Regenerate.
1211 * regformats/i386/x32.dat: Regenerate.
1212 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1213 * regformats/mips-dsp-linux.dat: Regenerate.
1214 * regformats/mips-linux.dat: Regenerate.
1215 * regformats/mips64-dsp-linux.dat: Regenerate.
1216 * regformats/mips64-linux.dat: Regenerate.
1217 * regformats/nios2-linux.dat: Regenerate.
1218 * regformats/rs6000/powerpc-32.dat: Regenerate.
1219 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1220 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1221 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1222 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1223 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1224 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1225 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1226 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1227 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1228 * regformats/s390-linux32.dat: Regenerate.
1229 * regformats/s390-linux32v1.dat: Regenerate.
1230 * regformats/s390-linux32v2.dat: Regenerate.
1231 * regformats/s390-linux64.dat: Regenerate.
1232 * regformats/s390-linux64v1.dat: Regenerate.
1233 * regformats/s390-linux64v2.dat: Regenerate.
1234 * regformats/s390-te-linux64.dat: Regenerate.
1235 * regformats/s390x-linux64.dat: Regenerate.
1236 * regformats/s390x-linux64v1.dat: Regenerate.
1237 * regformats/s390x-linux64v2.dat: Regenerate.
1238 * regformats/s390x-te-linux64.dat: Regenerate.
1239 * regformats/tic6x-c62x-linux.dat: Regenerate.
1240 * regformats/tic6x-c62x.dat: Regenerate.
1241 * regformats/tic6x-c64x-linux.dat: Regenerate.
1242 * regformats/tic6x-c64x.dat: Regenerate.
1243 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1244 * regformats/tic6x-c64xp.dat: Regenerate.
1246 2014-10-01 Pedro Alves <palves@redhat.com>
1248 * features/Makefile: Update comments.
1249 (XMLTOC): List all xml files we build C files from.
1250 (clean-cfiles): New rule.
1252 2014-10-01 Pedro Alves <palves@redhat.com>
1254 * features/i386/amd64-avx512-linux.c: Regenerate.
1255 * features/i386/amd64-avx512.c: Regenerate.
1256 * features/i386/x32-avx512-linux.c: Regenerate.
1257 * features/i386/x32-avx512.c: Regenerate.
1259 2014-10-01 Pedro Alves <palves@redhat.com>
1261 * features/Makefile (WHICH): Remove arm-with-m,
1262 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1264 2014-10-01 Pedro Alves <palves@redhat.com>
1266 * features/Makefile (clean): New rule.
1268 2014-10-01 Pedro Alves <palves@redhat.com>
1270 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1271 (zmm14h): Add missing end quotes.
1273 2014-10-01 Pedro Alves <palves@redhat.com>
1275 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1276 * features/aarch64.c: Regenerate.
1278 2014-09-30 Don Breazeal <donb@codesourcery.com>
1280 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1281 code so as to work with follow_fork_inferior.
1282 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1283 (inf_ttrace_create_inferior): Remove reference to
1284 inf_ttrace_vfork_ppid.
1285 (inf_ttrace_attach): Ditto.
1286 (inf_ttrace_detach): Ditto.
1287 (inf_ttrace_kill): Use current_inferior instead of
1288 inf_ttrace_vfork_ppid.
1289 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1290 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1291 inferior away from the parent.
1292 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1294 (follow_fork_inferior): New function.
1295 (follow_inferior_reset_breakpoints): Make function static.
1296 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1297 * linux-nat.c (linux_child_follow_fork): Move target-independent
1298 code to infrun.c:follow_fork_inferior.
1300 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1302 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1303 * gdbarch.c: Regenerate.
1304 * gdbarch.h: Likewise.
1305 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1306 gdbarch method 'regset_from_core_section'.
1307 (get_core_register_section): Remove handling for the case that
1308 regset == NULL and regset_from_core_section is defined.
1309 (get_core_registers): Drop check for deleted method.
1310 * procfs.c (procfs_do_thread_registers): Adjust comment.
1312 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1314 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1315 (linux_nat_make_corefile_notes): Remove.
1316 (linux_target_install_ops): Do not set target method
1317 'make_corefile_notes'.
1318 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1320 (linux_corefile_thread_callback): Instead of args->collect, call
1321 linux_collect_thread_registers.
1322 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1323 NULL unless there is a regset iterator.
1324 (linux_make_corefile_notes_1): Remove.
1325 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1326 by linux_make_corefile_notes.
1327 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1329 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1331 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1332 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1334 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1336 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1338 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1339 (xtensa_iterate_over_regset_sections): New.
1340 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1342 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1344 * vax-tdep.c (vax_regset_from_core_section): Remove.
1345 (vax_iterate_over_regset_sections): New.
1346 (vax_gdbarch_init): Adjust gdbarch initialization.
1348 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1350 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1351 (tilegx_regset_from_core_section): Remove.
1352 (tilegx_iterate_over_regset_sections): New.
1353 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1355 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1357 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1358 (sparc_iterate_over_regset_sections): New.
1359 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1360 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1362 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1363 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1364 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1365 target method 'make_corefile_notes'.
1367 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1369 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1370 'sizeof_gregset' and 'sizeof_fpregset'.
1371 * sh-tdep.c (sh_regset_from_core_section): Remove.
1372 (sh_iterate_over_regset_sections): New.
1373 (sh_gdbarch_init): Adjust gdbarch initialization.
1374 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1376 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1379 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1381 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1382 (score7_linux_iterate_over_regset_sections): New.
1383 (score_gdbarch_init): Adjust gdbarch initialization.
1385 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1387 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1389 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1390 method 'make_corefile_notes'.
1391 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1392 (ppcfbsd_regset_from_core_section): Remove.
1393 (ppcfbsd_iterate_over_regset_sections): New.
1394 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1396 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1397 (ppcnbsd_iterate_over_regset_sections): New.
1398 (ppcnbsd_init_abi): Adjust.
1399 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1400 (ppcobsd_iterate_over_regset_sections): New.
1401 (ppcobsd_init_abi): Adjust.
1402 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1403 (rs6000_aix_iterate_over_regset_sections): New.
1404 (rs6000_aix_init_osabi): Adjust.
1406 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1408 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1409 (nios2_regset_from_core_section): Remove.
1410 (nios2_iterate_over_regset_sections): New.
1411 (nios2_linux_init_abi): Adjust gdbarch initialization.
1413 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1415 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1416 (am33_iterate_over_regset_sections): New.
1417 (am33_linux_init_osabi): Adjust gdbarch initialization.
1419 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1421 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1422 (mips_linux_iterate_over_regset_sections): New.
1423 (mips_linux_init_abi): Adjust gdbarch initialization.
1424 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1425 (mips64obsd_iterate_over_regset_sections): New.
1426 (mips64obsd_init_abi): Adjust.
1427 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1428 (mipsnbsd_iterate_over_regset_sections): New.
1429 (mipsnbsd_init_abi): Adjust.
1431 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1433 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1434 (m88k_iterate_over_regset_sections): New.
1435 (m88k_gdbarch_init): Adjust gdbarch initialization.
1437 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1439 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1440 (ia64_linux_iterate_over_regset_sections): New.
1441 (ia64_linux_init_abi): Adjust gdbarch initialization.
1443 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1445 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1446 (m68kbsd_iterate_over_regset_sections): New.
1447 (m68kbsd_init_abi): Adjust gdbarch initialization.
1448 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1449 (m68k_linux_iterate_over_regset_sections): New.
1450 (m68k_linux_init_abi): Adjust gdbarch initialization.
1452 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1454 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1455 (m32r_linux_regset_from_core_section): Remove.
1456 (m32r_linux_iterate_over_regset_sections): New.
1457 (m32r_linux_init_abi): Adjust gdbarch initialization.
1459 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1461 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1462 (amd64obsd_iterate_over_regset_sections): New.
1463 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1464 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1466 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1467 regset_from_core_section initialization.
1468 * i386-tdep.c (i386_regset_from_core_section): Remove.
1469 (i386_iterate_over_regset_sections): New.
1470 (i386_gdbarch_init): Adjust gdbarch initialization.
1471 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1472 (i386_iterate_over_regset_sections): New prototype.
1473 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1475 (i386obsd_aout_iterate_over_regset_sections): New.
1476 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1477 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1479 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1480 (amd64fbsd_init_abi): Call fbsd_init_abi.
1481 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1482 (i386fbsd4_init_abi): Call fbsd_init_abi.
1483 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1484 target method 'make_corefile_notes'.
1485 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1487 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1489 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1490 (hppa_hpux_iterate_over_regset_sections): New.
1491 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1492 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1493 (hppa_linux_iterate_over_regset_sections): New.
1494 (hppa_linux_init_abi): Adjust.
1495 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1496 (hppanbsd_iterate_over_regset_sections): New.
1497 (hppanbsd_init_abi): Adjust.
1498 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1499 (hppaobsd_iterate_over_regset_sections): New.
1500 (hppaobsd_init_abi): Adjust.
1502 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1504 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1505 (frv_linux_iterate_over_regset_sections): New.
1506 (frv_linux_init_abi): Adjust gdbarch initialization.
1508 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1510 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1511 (armbsd_iterate_over_regset_sections): New prototype.
1512 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1513 (armbsd_iterate_over_regset_sections): New.
1514 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1517 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1519 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1520 (alpha_linux_iterate_over_regset_sections): New.
1521 (alpha_linux_init_abi): Adjust gdbarch initialization.
1522 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1524 (alphanbsd_iterate_over_regset_sections): New prototype.
1526 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1528 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1530 (aarch64_linux_iterate_over_regset_sections): New.
1531 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1533 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1535 * fbsd-tdep.c: New file.
1536 * fbsd-tdep.h: New file.
1537 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1538 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1539 (ALLDEPFILES): Add fbsd-tdep.c.
1541 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1543 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1545 * gdbarch.h: Regenerate.
1546 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1548 (get_core_register_section): Add parameter 'regset' and use it, if
1549 set. Add parameter 'min_size' and verify the bfd section size
1551 (get_core_registers_cb): Add parameter 'regset' and pass it to
1552 get_core_register section. For the "standard" register sections
1553 ".reg" and ".reg2", set an appropriate default for human_name.
1554 (get_core_registers): Don't abort when the gdbarch has an iterator
1555 but no regset_from_core_section. Add NULL/0 for parameters
1556 'regset'/'min_size' in calls to get_core_register_section.
1557 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1558 'regset' and use it instead of calling the
1559 regset_from_core_section gdbarch method.
1560 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1561 * i386-tdep.c (i386_supply_xstateregset)
1562 (i386_collect_xstateregset, i386_xstateregset): Moved to
1564 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1566 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1567 core file support only if the regset iterator hasn't been set.
1568 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1569 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1570 Moved from i386-tdep.c and renamed to *_linux*.
1571 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1572 each callback invocation. Allow any .reg-xstate size when reading
1574 * amd64-tdep.c (amd64_supply_xstateregset)
1575 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1577 (amd64_regset_from_core_section): Remove.
1578 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1579 install an amd64-specific regset_from_core_section gdbarch method.
1580 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1581 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1582 Moved from amd64-tdep.c and renamed to *_linux*.
1583 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1584 to each callback invocation. Allow any .reg-xstate size when
1585 reading from a core file.
1586 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1587 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1588 each callback invocation.
1589 (arm_linux_init_abi): No longer set the regset_from_core_section
1591 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1592 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1593 each callback invocation.
1594 (ppc_linux_init_abi): No longer set the regset_from_core_section
1596 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1597 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1598 (s390_regset_from_core_section): Remove.
1599 (s390_iterate_over_regset_sections): Add regset parameter to each
1600 callback invocation.
1601 (s390_gdbarch_init): No longer set the regset_from_core_section
1602 gdbarch method. Drop initialization of deleted tdep fields.
1604 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1606 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1607 (amd64_linux_iterate_over_regset_sections): New.
1608 (amd64_linux_init_abi_common): Don't install the regset section
1609 list, but the new iterator in gdbarch.
1610 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1611 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1612 (arm_linux_iterate_over_regset_sections): ...here. New function.
1613 (arm_linux_init_abi): Set iterator instead of section list.
1614 * corelow.c (get_core_registers_cb): New function, logic moved
1616 (get_core_registers): ...loop body here. Use new iterator method
1617 instead of walking through the regset section list.
1618 * gdbarch.sh: Remove 'core_regset_sections'. New method
1619 'iterate_over_regset_sections'. New typedef
1620 'iterate_over_regset_sections_cb'.
1621 * gdbarch.c: Regenerate.
1622 * gdbarch.h: Likewise.
1623 * i386-linux-tdep.c (i386_linux_regset_sections)
1624 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1626 (i386_linux_iterate_over_regset_sections): New.
1627 (i386_linux_init_abi): Don't choose a regset section list, but
1628 install new iterator in gdbarch.
1629 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1630 (linux_collect_regset_section_cb): New function, logic moved
1632 (linux_collect_thread_registers): ...loop body here. Use iterator
1633 method instead of walking through list.
1634 (linux_make_corefile_notes_1): Check for presence of iterator
1635 method instead of regset section list.
1636 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1637 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1638 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1639 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1640 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1641 (ppc_linux_init_abi): Don't choose from above regset section
1642 lists, but install new iterator in gdbarch.
1643 * regset.h (struct core_regset_section): Remove.
1644 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1645 have_linux_v1, have_linux_v2, and have_tdb.
1646 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1647 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1648 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1649 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1650 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1651 (s390_iterate_over_regset_sections): ...here. New function. Use
1653 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1654 regset section lists, but install new iterator.
1656 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1658 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1660 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1662 * progspace.c (print_program_space): Don't prune program spaces
1663 before printing them.
1665 2014-09-25 Pedro Alves <palves@redhat.com>
1667 * infrun.c (user_visible_resume_ptid): Don't check
1668 singlestep_breakpoints_inserted_p.
1670 2014-09-25 Pedro Alves <palves@redhat.com>
1672 * breakpoint.c (should_be_inserted): Add debug output.
1674 2014-09-25 Pedro Alves <palves@redhat.com>
1676 * infrun.c (stepping_past_instruction_at)
1677 (clear_exit_convenience_vars): Point at infrun.h instead of
1679 (handle_signal_stop): Fix typo.
1681 2014-09-24 Yao Qi <yao@codesourcery.com>
1683 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1686 2014-09-22 Gary Benson <gbenson@redhat.com>
1688 * target.c (target_stop): Updated comment.
1690 2014-09-22 Gary Benson <gbenson@redhat.com>
1692 * target/target.h (target_stop_ptid): Renamed as...
1693 (target_stop_and_wait): New function. Updated comment.
1695 (target_continue_ptid): Renamed as...
1696 (target_continue_no_signal): New function. Updated comment.
1699 2014-09-22 Pedro Alves <palves@redhat.com>
1701 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1703 * breakpoint.c (enum ugll_insert_mode): New enum.
1704 (always_inserted_mode): Now a plain boolean.
1705 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1706 (breakpoints_always_inserted_mode): Delete.
1707 (breakpoints_should_be_inserted_now): New function.
1708 (insert_breakpoints): Pass UGLL_INSERT to
1709 update_global_location_list instead of calling
1710 insert_breakpoint_locations manually.
1711 (create_solib_event_breakpoint_1): New, factored out from ...
1712 (create_solib_event_breakpoint): ... this.
1713 (create_and_insert_solib_event_breakpoint): Use
1714 create_solib_event_breakpoint_1 instead of calling
1715 insert_breakpoint_locations manually.
1716 (update_global_location_list): Change parameter type from boolean
1717 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1718 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1719 (update_global_location_list_nothrow): Change parameter type from
1720 boolean to enum ugll_insert_mode.
1721 (_initialize_breakpoint): "breakpoint always-inserted" option is
1722 now a boolean command. Update help text.
1723 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1724 (breakpoints_should_be_inserted_now): New declaration.
1725 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1726 Remove breakpoints_always_inserted_mode check.
1727 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1728 * remote.c (remote_start_remote): Likewise.
1730 2014-09-22 Pedro Alves <palves@redhat.com>
1732 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1733 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1734 Instead, pass UGLL_INSERT to update_global_location_list.
1735 (update_global_location_list): Change parameter type from boolean
1736 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1737 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1738 (create_solib_event_breakpoint_1): New, factored out from ...
1739 (create_solib_event_breakpoint): ... this.
1740 (create_and_insert_solib_event_breakpoint): Use
1741 create_solib_event_breakpoint_1 instead of calling
1742 insert_breakpoint_locations manually.
1743 (update_global_location_list): Handle UGLL_INSERT.
1745 2014-09-22 Pedro Alves <palves@redhat.com>
1747 * breakpoint.c (enum ugll_insert_mode): New enum.
1748 (update_global_location_list)
1749 (update_global_location_list_nothrow): Change parameter type from
1750 boolean to enum ugll_insert_mode. All callers adjusted.
1752 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1754 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1755 SystemTap support in GDB.
1757 2014-09-19 Don Breazeal <donb@codesourcery.com>
1759 * linux-nat.c (linux_handle_extended_wait): Call
1760 linux_ptrace_get_extended_event.
1761 (wait_lwp): Call linux_is_extended_waitstatus.
1762 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1763 and linux_is_extended_waitstatus.
1764 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1765 linux_ptrace_get_extended_event.
1766 (linux_ptrace_get_extended_event): New function.
1767 (linux_is_extended_waitstatus): New function.
1768 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1769 (linux_is_extended_waitstatus): New declarations.
1771 2014-09-19 Yao Qi <yao@codesourcery.com>
1773 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1774 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1775 comments. Callers update.
1776 (dwarf_decode_lines): Likewise.
1777 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1778 comments. Skip the line table if 'lowpc' is greater than
1779 'address'. Don't check
1780 dwarf2_per_objfile->has_section_at_zero.
1782 2014-09-18 Doug Evans <dje@google.com>
1784 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1785 * python/py-symtab.c (stpy_get_producer): New function.
1786 (symtab_object_getset): Add "producer" attribute.
1788 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1791 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1792 (do_captured_read_memory_integer): Remove.
1793 (safe_read_memory_integer): Use target_read_memory directly instead
1794 of catching errors in do_captured_read_memory_integer.
1796 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1798 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1801 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1803 * objc-lang.c (find_implementation_from_class): Remove dead code.
1805 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1808 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1809 "fprintf_unfiltered (gdb_stdlog...)".
1811 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1813 PR breakpoints/12526
1814 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1816 * breakpoint.c (watch_command_1): Use these fields to retain
1817 bitfield information.
1818 (extract_bitfield_from_watchpoint_value): New function.
1819 (watchpoint_check): Use it.
1820 (update_watchpoint): Use it. Optimize the address and length of a
1821 HW watchpoint pointing to a bitfield.
1822 * value.h (unpack_value_bitfield): New prototype.
1823 * value.c (unpack_value_bitfield): Make extern.
1825 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1827 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1829 * gnu-nat.c (inf_threads): New function.
1830 * gnu-nat.h (inf_threads_ftype): New typedef.
1831 (inf_threads): New declaration.
1832 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1833 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1834 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1835 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1836 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1837 (i386_gnu_dr_get_control): New functions.
1838 (reg_addr): New structure.
1839 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1840 i386 debugging register hooks.
1841 * NEWS: Mention this.
1843 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1845 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1846 vector data transfer instructions.
1847 (arm_record_coproc_data_proc): Updated.
1849 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1851 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1852 arm_record_exreg_ld_st_insn.
1853 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1856 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1858 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1859 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1860 processing instructions.
1862 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1864 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1865 for advance SIMD struct ld/st insn.
1866 (thumb2_record_decode_insn_handler): Replace stub handler with
1867 thumb2_record_asimd_struct_ld_st.
1869 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1871 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1872 for asimd, vfp and coprocessor insns.
1873 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1874 and coprocessor insns.
1875 (thumb2_record_coproc_insn): New function.
1876 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1878 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1881 2014-09-13 Doug Evans <xdje42@gmail.com>
1883 * NEWS: Mention new "queue-signal" command.
1884 * infcmd.c (queue_signal_command): New function.
1885 (_initialize_infcmd): Add new queue-signal command.
1887 2014-09-13 Doug Evans <xdje42@gmail.com>
1889 * linux-nat.c (wait_lwp): Add debugging printf.
1890 (linux_nat_wait_1): Ditto.
1892 2014-09-12 Pedro Alves <palves@redhat.com>
1894 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1895 (create_and_insert_solib_event_breakpoint): New functions.
1896 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1897 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1898 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1899 (remove_dbx_link_breakpoint): Delete function.
1900 (insert_dbx_link_bpt_in_file): Use
1901 create_and_insert_solib_event_breakpoint instead of
1902 deprecated_insert_raw_breakpoint.
1903 (procfs_wait): Don't check whether we hit __dbx_link here.
1904 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1906 * solib-irix.c (base_breakpoint): Delete global.
1907 (disable_break): Delete function.
1908 (enable_break): Use create_solib_event_breakpoint
1909 instead of deprecated_insert_raw_breakpoint.
1910 (irix_solib_handle_event): New function.
1911 (irix_solib_create_inferior_hook): Don't run the target or disable
1912 the mapping-complete breakpoint here.
1913 (_initialize_irix_solib): Install irix_solib_handle_event as
1914 so_ops->handle_event hook.
1916 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1917 Ulrich Weigand <uweigand@de.ibm.com>
1920 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1921 instead of read_memory_unsigned_integer.
1923 2014-09-12 Gary Benson <gbenson@redhat.com>
1925 * nat/linux-waitpid.c: Include common-defs.h.
1926 [GDBSERVER]: Add FIXME comment.
1927 [!GDBSERVER]: Don't include defs.h or signal.h.
1928 (linux_debug) [!GDBSERVER]: Remove empty block.
1930 2014-09-12 Gary Benson <gbenson@redhat.com>
1932 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1933 Don't include defs.h or server.h.
1935 2014-09-12 Gary Benson <gbenson@redhat.com>
1937 * nat/linux-btrace.c: Include common-defs.h.
1938 Don't include defs.h, server.h or gdbthread.h.
1939 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1941 2014-09-12 Gary Benson <gbenson@redhat.com>
1943 * common/agent.c: Include common-defs.h.
1944 Don't include defs.h or server.h.
1945 * common/buffer.c: Likewise.
1946 * common/common-debug.c: Likewise.
1947 * common/common-utils.c: Likewise.
1948 * common/errors.c: Likewise.
1949 * common/filestuff.c: Likewise.
1950 * common/format.c: Likewise.
1951 * common/gdb_vecs.c: Likewise.
1952 * common/print-utils.c: Likewise.
1953 * common/ptid.c: Likewise.
1954 * common/rsp-low.c: Likewise.
1955 * common/signals.c: Likewise.
1956 * common/vec.c: Likewise.
1957 * common/xml-utils.c: Likewise.
1958 * nat/linux-osdata.c: Likewise.
1959 * nat/linux-procfs.c: Likewise.
1960 * nat/linux-ptrace.c: Likewise.
1961 * nat/mips-linux-watch.c: Likewise.
1962 * target/waitstatus.c: Likewise.
1964 2014-09-12 Tom Tromey <tromey@redhat.com>
1965 Gary Benson <gbenson@redhat.com>
1967 * common/common-regcache.h: New file.
1968 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1969 * regcache.h: Include common-regcache.h.
1970 (regcache_read_pc): Don't declare.
1971 * regcache.c (get_thread_regcache_for_ptid): New function.
1972 * nat/linux-btrace.c: Don't include regcache.h.
1973 Include common-regcache.h.
1974 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1976 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1978 * regcache.h (struct regset): Declare.
1980 2014-09-11 Pedro Alves <palves@redhat.com>
1983 * main.c: Include "infrun.h".
1984 (catch_command_errors, catch_command_errors_const): Wait for the
1985 foreground command to complete.
1986 * top.c (maybe_wait_sync_command_done): New function, factored out
1988 (maybe_wait_sync_command_done): ... here.
1989 * top.h (maybe_wait_sync_command_done): New declaration.
1991 2014-09-11 Tom Tromey <tromey@redhat.com>
1992 Gary Benson <gbenson@redhat.com>
1994 * common/symbol.h: New file.
1995 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1996 * minsyms.c (find_minimal_symbol_address): New function.
1997 * common/agent.c: Include common/symbol.h.
1998 [!GDBSERVER]: Don't include objfiles.h.
1999 (agent_look_up_symbols): Use find_minimal_symbol_address.
2001 2014-09-11 Gary Benson <gbenson@redhat.com>
2003 * target/target.h (target_stop_ptid, target_continue_ptid):
2005 * target.c (target_stop_ptid, target_continue_ptid): New
2007 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2008 (agent_run_command): Always use target_stop_ptid and
2009 target_continue_ptid.
2011 2014-09-11 Tom Tromey <tromey@redhat.com>
2012 Gary Benson <gbenson@redhat.com>
2014 * target/target.h: New file.
2015 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2016 * target.h: Include target/target.h.
2017 (target_read_memory, target_write_memory): Don't declare.
2018 * target.c (target_read_uint32): New function.
2019 * common/agent.c: Include target/target.h.
2020 [!GDBSERVER]: Don't include target.h.
2021 (helper_thread_id): Type changed to uint32_t.
2022 (agent_get_helper_thread_id): Use target_read_uint32.
2023 (agent_run_command): Always use target_read_memory and
2024 target_write_memory.
2025 (agent_capability): Type changed to uint32_t.
2026 (agent_capability_check): Use target_read_uint32.
2028 2014-09-11 Gary Benson <gbenson@redhat.com>
2030 * common/common-debug.h (show_debug_regs): Declare.
2031 * common/common-debug.c (show_debug_regs): Define.
2032 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2033 all uses with show_debug_regs. Replace all uses that considered
2034 debug_hw_points as a multi-value integer with straight boolean
2036 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2037 with show_debug_regs.
2038 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2039 all uses with show_debug_regs.
2040 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2041 uses with show_debug_regs.
2043 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2045 * findvar.c (address_from_register): Handle targets requiring
2046 a special conversion routine even for plain pointer types.
2048 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2050 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2051 (store_register): Do not call exec_one_dummy_insn.
2053 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2055 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2056 dereference it first. Use value_enclosing_type instead of
2058 (ada_array_length): Likewise.
2060 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2062 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2063 Adjust function implementation and documentation accordingly.
2064 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2065 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2066 Update call to ada_value_ptr_subscript.
2068 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2070 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2071 instead of VAL's type.
2073 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2075 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2077 2014-09-09 Doug Evans <xdje42@gmail.com>
2080 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2081 last parameter to pkg-config, not first.
2082 * configure.ac: Pass --with-guile provided pkg-config path to
2083 GDB_GUILE_PROGRAM_NAMES.
2084 * configure: Regenerate.
2086 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2088 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2091 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2093 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2094 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2095 the list of sections determining GDB_OSABI_IRIX.
2097 2014-09-09 James Hogan <james.hogan@imgtec.com>
2099 * MAINTAINERS (Write After Approval): Add "James Hogan".
2101 2014-09-09 James Hogan <james.hogan@imgtec.com>
2103 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2105 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2107 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2109 2014-09-08 Doug Evans <xdje42@gmail.com>
2112 * guile.c: #include <signal.h>.
2113 (_initialize_guile): Block SIGCHLD while initializing Guile.
2115 Replaces the following, which is reverted.
2117 2014-07-26 Doug Evans <xdje42@gmail.com>
2120 * configure.ac: Add check for header gc/gc.h.
2121 Add check for function setenv.
2122 * configure: Regenerate.
2123 * config.in: Regenerate.
2124 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2126 2014-09-08 Doug Evans <xdje42@gmail.com>
2128 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2129 with named constant. Fix style of pointer comparison.
2130 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2132 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2135 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2136 decide whether we display the command on "show user".
2137 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2138 printing command name.
2139 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2140 * cli/cli-decode.c (cli_user_command_p): Create helper function
2141 to verify whether cmd_list_element is a user-defined command.
2143 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2146 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2147 Fix goto out of TRY_CATCH.
2149 2014-09-06 Doug Evans <xdje42@gmail.com>
2150 Tom Tromey <tromey@redhat.com>
2153 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2154 $_any_caller_matches.
2155 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2156 * python/lib/gdb/function/caller_is.py: New file.
2158 2014-09-06 Doug Evans <xdje42@gmail.com>
2160 * infcmd.c (program_info): Fix typo.
2162 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2165 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2166 'number'. New variable 'has_digit'. Rewrite code to deal with
2167 subexpressions on SDT probes.
2169 2014-09-04 Pedro Alves <palves@redhat.com>
2171 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2172 the input is only one character long.
2174 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2177 * f-valprint.c (f_val_print): Specify the correct print option to
2178 use when printing integer values.
2180 2014-09-04 Gary Benson <gbenson@redhat.com>
2182 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2183 Remove code to cope with LWPs wrapped as PIDs.
2184 Add assertions to ensure no wrapped LWPs are passed.
2186 2014-09-04 Pedro Alves <palves@redhat.com>
2188 * value.c (value_ranges_copy_adjusted): New function, factored out
2190 (value_contents_copy_raw): ... here.
2191 (unpack_value_bits_as_long_1): Rename back to ...
2192 (unpack_bits_as_long): ... this. Remove 'original_value' and
2193 'result' parameters. Change return type to LONGEST.
2194 (unpack_value_bits_as_long): Delete.
2195 (unpack_value_field_as_long_1): Delete.
2196 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2197 (unpack_value_bitfield): New function.
2198 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2199 (value_fetch_lazy): Use unpack_value_bitfield.
2200 * value.h (unpack_value_bits_as_long): Delete declaration.
2202 2014-09-03 Sasha Smundak <asmundak@google.com>
2204 * python/py-frame.c (frapy_read_register): New function.
2206 2014-09-03 James Hogan <james.hogan@imgtec.com>
2208 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2209 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2211 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2214 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2216 (add_cmd): Set "completer_handle_brkchars" to NULL.
2217 * cli/cli-decode.h (struct cmd_list_element)
2218 <completer_handle_brkchars>: New field.
2219 * command.h (completer_ftype_void): New typedef.
2220 (set_cmd_completer_handle_brkchars): New prototype.
2221 * completer.c (set_gdb_completion_word_break_characters): New
2223 (complete_line_internal): Call "completer_handle_brkchars"
2224 callback from command.
2225 * completer.h: Include "command.h".
2226 (set_gdb_completion_word_break_characters): New prototype.
2227 * python/py-cmd.c (cmdpy_completer_helper): New function.
2228 (cmdpy_completer_handle_brkchars): New function.
2229 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2230 (cmdpy_init): Set completer_handle_brkchars to
2231 cmdpy_completer_handle_brkchars.
2233 2014-09-03 Gary Benson <gbenson@redhat.com>
2235 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2236 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2237 Loop conditions changed to equivalent form.
2238 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2239 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2240 ALL_DEBUG_ADDRESS_REGISTERS.
2242 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2244 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2247 2014-09-02 Doug Evans <dje@google.com>
2249 * typeprint.c (find_global_typedef): Fix comment.
2251 2014-09-02 Gary Benson <gbenson@redhat.com>
2253 * i386-nat.h: Renamed as...
2254 * x86-nat.h: New file. All type, function and variable name
2255 prefixes changed from "i386_" to "x86_". All references updated.
2256 * i386-nat.c: Renamed as...
2257 * x86-nat.c: New file. All type, function and variable name
2258 prefixes changed from "i386_" to "x86_". All references updated.
2259 * common/i386-xstate.h: Renamed as...
2260 * common/x86-xstate.h: New file. All type, function and variable
2261 name prefixes changed from "i386_" to "x86_". All references
2263 * nat/i386-cpuid.h: Renamed as...
2264 * nat/x86-cpuid.h: New file. All type, function and variable name
2265 prefixes changed from "i386_" to "x86_". All references updated.
2266 * nat/i386-gcc-cpuid.h: Renamed as...
2267 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2268 name prefixes changed from "i386_" to "x86_". All references
2270 * nat/i386-dregs.h: Renamed as...
2271 * nat/x86-dregs.h: New file. All type, function and variable name
2272 prefixes changed from "i386_" to "x86_". All references updated.
2273 * nat/i386-dregs.c: Renamed as...
2274 * nat/x86-dregs.c: New file. All type, function and variable name
2275 prefixes changed from "i386_" to "x86_". All references updated.
2277 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2279 * varobj.c (_initialize_varobj): Move to the end of file.
2281 2014-08-29 Gary Benson <gbenson@redhat.com>
2283 * common/common-exceptions.h: New file.
2284 * common/common-exceptions.c: Likewise.
2285 * Makefile.in (SFILES): Add common/common-exceptions.c.
2286 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2287 (COMMON_OBS): Add common-exceptions.o.
2288 (common-exceptions.o): New rule.
2289 * exceptions.h (common-exceptions.h): Include.
2290 (gdb_setjmp.h): Do not include.
2291 (return_reason): Moved to common-exceptions.h.
2292 (enum return_reason): Likewise.
2293 (RETURN_MASK): Likewise.
2294 (typedef return_mask): Likewise.
2295 (enum errors): Likewise.
2296 (struct gdb_exception): Likewise.
2297 (exceptions_state_mc_init): Likewise.
2298 (exceptions_state_mc_action_iter): Likewise.
2299 (exceptions_state_mc_action_iter_1): Likewise.
2300 (TRY_CATCH): Likewise.
2301 (throw_exception): Likewise.
2302 (throw_verror): Likewise.
2303 (throw_vquit): Likewise.
2304 (throw_error): Likewise.
2305 (throw_quit): Likewise.
2306 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2307 (enum catcher_action): Likewise.
2308 (struct catcher): Likewise.
2309 (current_catcher): Likewise.
2310 (catcher_list_size): Likewise.
2311 (exceptions_state_mc_init): Likewise.
2312 (catcher_pop): Likewise.
2313 (exceptions_state_mc): Likewise.
2314 (exceptions_state_mc_action_iter): Likewise.
2315 (exceptions_state_mc_action_iter_1): Likewise.
2316 (throw_exception): Likewise.
2317 (exception_messages): Likewise.
2318 (exception_messages_size): Likewise.
2319 (throw_it): Likewise.
2320 (throw_verror): Likewise.
2321 (throw_vquit): Likewise.
2322 (throw_error): Likewise.
2323 (throw_quit): Likewise.
2324 (prepare_to_throw_exception): New function.
2326 2014-08-29 Gary Benson <gbenson@redhat.com>
2328 * common/gdb_setjmp.h: New file.
2329 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2330 * configure.ac: Move sigsetjmp check...
2331 * common/common.m4: ...here.
2332 * configure: Regenerate.
2333 * cp-support.c (SIGJMP_BUF): Delete.
2334 (SIGSETJMP): Likewise.
2335 (SIGLONGJMP): Likewise.
2336 * exceptions.h (gdb_setjmp.h): Include.
2337 (setjmp.h): Do not include.
2338 (EXCEPTIONS_SIGJMP_BUF): Delete.
2339 (EXCEPTIONS_SIGSETJMP): Likewise.
2340 (EXCEPTIONS_SIGLONGJMP): Likewise.
2341 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2343 * exceptions.c: Likewise.
2345 2014-08-29 Gary Benson <gbenson@redhat.com>
2347 * cleanups.h: Moved to...
2348 * common/cleanups.h: New file.
2349 * cleanups.c: Moved to...
2350 * common/cleanups.c: New file. Include common-defs.h and
2351 cleanups.h. Do not include defs.h.
2352 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2353 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2354 (cleanups.o): New rule.
2356 2014-08-29 Gary Benson <gbenson@redhat.com>
2358 * common/errors.h (internal_warning): New declaration.
2359 (internal_vwarning): Likewise.
2360 * common/errors.c (internal_warning): New function.
2361 * utils.h (internal_warning): Don't declare.
2362 (internal_vwarning): Likewise.
2363 * utils.c (internal_warning): Removed.
2365 2014-08-29 Gary Benson <gbenson@redhat.com>
2367 * main.c (captured_main): Use warning during startup.
2368 Prefix startup warning messages with command name.
2370 2014-08-29 Gary Benson <gbenson@redhat.com>
2372 * main.c (captured_main): Handle usage errors with error.
2374 2014-08-29 Gary Benson <gbenson@redhat.com>
2376 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2377 exit pair with a call to error. Wrap the message with _().
2379 2014-08-29 Gary Benson <gbenson@redhat.com>
2381 * main.c (captured_main): Replace a fprintf/exit
2382 pair with a call to error. Wrap the message with _().
2384 2014-08-29 Gary Benson <gbenson@redhat.com>
2386 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2387 pairs with calls to error. Wrap the message with _().
2389 2014-08-29 Gary Benson <gbenson@redhat.com>
2391 * utils.c (vwarning): Protect calls to target_terminal_ours
2394 2014-08-29 Gary Benson <gbenson@redhat.com>
2396 * exceptions.c (print_flush): Protect calls to
2397 target_terminal_ours and wrap_here.
2399 2014-08-29 Gary Benson <gbenson@redhat.com>
2401 * utils.h (filtered_printing_initialized): New declaration.
2402 * utils.c (abort_with_message): New function.
2403 (internal_vproblem): Use abort_with_message for first level
2404 recursive internal problems, and if gdb_stderr is not set up.
2405 Protect calls to target_terminal_ours, begin_line and query.
2407 2014-08-28 Doug Evans <dje@google.com>
2409 * symtab.c (in_prologue): Move definition to better spot.
2410 (skip_prologue_using_sal): Ditto.
2412 2014-08-28 Doug Evans <dje@google.com>
2414 * symtab.c (find_function_start_sal): Move definition to better spot.
2416 2014-08-28 Yao Qi <yao@codesourcery.com>
2418 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2419 found_stack_adjust in forward scan. Remove condition check
2420 on found_stack_adjust which is always true. Indent the code.
2422 2014-08-28 Yao Qi <yao@codesourcery.com>
2424 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2425 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2426 (dwarf_decode_lines): Remove argument
2427 want_line_info. Remove condition check on want_line_info.
2430 2014-08-27 Doug Evans <dje@google.com>
2432 * dwarf2read.c (dwarf_record_line): Fix typo.
2434 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2436 * target.h (struct target_ops::to_terminal_save_ours): Remove
2438 (target_terminal_save_ours): Remove macro.
2439 * target-delegates.c: Regenerate.
2440 * inf-child.c (inf_child_target): Don't set the nonexistent
2441 field to_terminal_save_ours.
2442 * inferior.h (child_terminal_save_ours): Remove declaration.
2443 * terminal.h (gdb_save_tty_state): New declaration.
2444 * inflow.c (child_terminal_save_ours): Rename to ...
2445 (gdb_save_tty_state): ... this.
2446 * tui/tui.c: Include terminal.h.
2447 (tui_enable): Use gdb_save_tty_state instead of
2448 target_terminal_save_ours.
2449 (tui_disable): Likewise.
2451 2014-08-25 Doug Evans <dje@google.com>
2453 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2454 Pass NULL instead of 0 for context pointer.
2456 2014-08-25 Yao Qi <yao@codesourcery.com>
2458 * dwarf2read.c: Fix grammatical error.
2460 2014-08-24 Yao Qi <yao@codesourcery.com>
2462 * dwarf2read.c (scan_partial_symbols): Update comments.
2463 Rename argument 'need_pc' with 'set_addrmap'.
2464 (add_partial_namespace): Rename argument 'need_pc' with
2466 (add_partial_module): Likewise.
2467 (add_partial_subprogram): Likewise. Update comments.
2468 (dwarf2_name): Fix typo.
2470 2014-08-22 Doug Evans <dje@google.com>
2473 * dwarf2read.c (dwarf_record_line_p): New function.
2474 (dwarf_decode_lines_1): Ignore subsequent line number entries
2475 for the same line if any entry had a non-zero discriminator.
2477 2014-08-22 Doug Evans <dje@google.com>
2479 * buildsym.h (record_line_ftype): New typedef.
2480 (record_line): Use it.
2481 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2482 (dwarf_decode_lines_1): Call them.
2484 2014-08-22 Yao Qi <yao@codesourcery.com>
2486 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2487 (ctf_end): Remove code.
2489 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2491 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2492 (linux_make_corefile_notes): call update_thread_list, protected against
2495 2014-08-21 Pedro Alves <palves@redhat.com>
2497 * infcmd.c (attach_command): Remove comment.
2499 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2501 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2502 unsigned LONGEST to ULONGEST.
2504 2014-08-20 Pedro Alves <palves@redhat.com>
2506 * Makefile.in (check-read1): New rule.
2508 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2510 * value.c (value_from_contents_and_address): Strip resolved_type's
2511 typedef layers before checking its TYPE_DATA_LOCATION.
2513 2014-08-20 Pedro Alves <palves@redhat.com>
2515 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2517 2014-08-20 Yao Qi <yao@codesourcery.com>
2519 * amd64-tdep.c (amd64_classify): Add a blank line after the
2520 example. Move "*/" to a new line.
2521 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2522 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2523 * dwarf2read.c (psymtab_include_file_name): Likewise.
2525 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2526 Pedro Alves <palves@redhat.com>
2530 * ada-lang.c (coerce_unspec_val_to_type): Use
2531 value_contents_copy_raw.
2532 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2533 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2534 * cp-valprint.c (cp_print_value_fields): Let the common printing
2535 code handle optimized out values.
2536 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2537 * d-valprint.c (dynamic_array_type): Use
2538 value_bits_any_optimized_out.
2539 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2540 check_any_valid fields.
2541 (check_pieced_value_bits): Delete and inline ...
2542 (check_pieced_synthetic_pointer): ... here.
2543 (check_pieced_value_validity): Delete.
2544 (check_pieced_value_invalid): Delete.
2545 (pieced_value_funcs): Remove check_validity and check_any_valid
2547 (read_pieced_value): Use mark_value_bits_optimized_out.
2548 (write_pieced_value): Switch to use
2549 mark_value_bytes_optimized_out.
2550 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2551 of assuming the whole value is optimized out.
2552 * findvar.c (read_frame_register_value): Remove special handling
2553 of optimized out registers.
2554 (value_from_register): Use mark_value_bytes_optimized_out.
2555 * frame-unwind.c (frame_unwind_got_optimized): Use
2556 mark_value_bytes_optimized_out.
2557 * jv-valprint.c (java_value_print): Adjust.
2558 (java_print_value_fields): Let the common printing code handle
2559 optimized out values.
2560 * mips-tdep.c (mips_print_register): Remove special handling of
2561 optimized out registers.
2562 * opencl-lang.c (lval_func_check_validity): Delete.
2563 (lval_func_check_any_valid): Delete.
2564 (opencl_value_funcs): Remove check_validity and check_any_valid
2566 * p-valprint.c (pascal_object_print_value_fields): Let the common
2567 printing code handle optimized out values.
2568 * stack.c (read_frame_arg): Remove special handling of optimized
2569 out values. Fetch both VAL and ENTRYVAL before comparing
2570 contents. Adjust to value_available_contents_eq rename.
2571 * valprint.c (valprint_check_validity)
2572 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2573 (val_print_array_elements): Adjust.
2574 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2575 (value_bits_any_optimized_out): New function.
2576 (value_entirely_covered_by_range_vector): New function, factored
2577 out from value_entirely_unavailable.
2578 (value_entirely_unavailable): Reimplement.
2579 (value_entirely_optimized_out): New function.
2580 (insert_into_bit_range_vector): New function, factored out from
2581 mark_value_bits_unavailable.
2582 (mark_value_bits_unavailable): Reimplement.
2583 (struct ranges_and_idx): New struct.
2584 (find_first_range_overlap_and_match): New function, factored out
2585 from value_available_contents_bits_eq.
2586 (value_available_contents_bits_eq): Rename to ...
2587 (value_contents_bits_eq): ... this. Check both unavailable
2588 contents and optimized out contents.
2589 (value_available_contents_eq): Rename to ...
2590 (value_contents_eq): ... this.
2591 (allocate_value_lazy): Remove reference to the old optimized_out
2593 (allocate_optimized_out_value): Use
2594 mark_value_bytes_optimized_out.
2595 (require_not_optimized_out): Adjust to check whether the
2596 optimized_out vec is empty.
2597 (ranges_copy_adjusted): New function, factored out from
2598 value_contents_copy_raw.
2599 (value_contents_copy_raw): Also copy the optimized out ranges.
2600 Assert the destination ranges aren't optimized out.
2601 (value_contents_copy): Update comment, remove call to
2602 require_not_optimized_out.
2603 (value_contents_equal): Adjust to check whether the optimized_out
2605 (set_value_optimized_out, value_optimized_out_const): Delete.
2606 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2608 (value_entirely_optimized_out, value_bits_valid): Delete.
2609 (value_copy): Take a VEC copy of the 'optimized_out' field.
2610 (value_primitive_field): Remove special handling of optimized out.
2611 (value_fetch_lazy): Assert that lazy values have no unavailable
2612 regions. Use value_bits_any_optimized_out. Remove some special
2613 handling for optimized out values.
2614 * value.h: Add intro comment about <optimized out> and
2616 (struct lval_funcs): Remove check_validity and check_any_valid
2618 (set_value_optimized_out, value_optimized_out_const): Remove.
2619 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2621 (value_bits_any_optimized_out): New declaration.
2622 (value_bits_valid): Delete declaration.
2623 (value_available_contents_eq): Rename to ...
2624 (value_contents_eq): ... this, and extend comments.
2626 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2628 Fix -fsanitize=address on unreadable inferior strings.
2629 * valprint.c (val_print_string): Fix access before BUFFER.
2631 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2633 * target.c (target_struct_size): Remove.
2634 (target_struct_allocsize): Remove.
2635 (DEFAULT_ALLOCSIZE): Remove.
2636 (target_ops_p): New typedef.
2637 (DEF_VEC_P (target_ops_p)): New vector type.
2638 (target_structs): Change type to VEC (target_ops_p).
2639 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2640 (find_default_run_target): Rewrite for loop following changes to
2643 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2645 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2646 Adjust code accordingly. Adjust function description comment.
2648 2014-08-19 Yao Qi <yao@codesourcery.com>
2650 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2653 2014-08-19 Alan Modra <amodra@gmail.com>
2655 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2656 * config.in: Regenerate.
2657 * configure: Regenerate.
2659 2014-08-19 Tom Tromey <tromey@redhat.com>
2660 Gary Benson <gbenson@redhat.com>
2662 * common/common-debug.h: New file.
2663 * common/common-debug.c: Likewise.
2664 * debug.c: Likewise.
2665 * Makefile.in (SFILES): Add common/common-debug.c.
2666 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2667 (COMMON_OBS): Add common-debug.o and debug.o.
2668 (common-debug.o): New rule.
2669 * common/common-defs.h: Include common-debug.h.
2670 * common/agent.c (debug_agent_printf): New function.
2671 (DEBUG_AGENT): Redefine.
2672 * nat/i386-dregs.c (debug_printf): Undefine.
2674 2014-08-19 Gary Benson <gbenson@redhat.com>
2676 * common/common-defs.h: Include print-utils.h.
2677 * utils.h: Do not include print-utils.h.
2679 2014-08-19 Tom Tromey <tromey@redhat.com>
2680 Gary Benson <gbenson@redhat.com>
2682 * common/common-types.h: New file.
2683 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2684 * common/common-defs.h: Include common-types.h.
2685 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2688 2014-08-19 Tom Tromey <tromey@redhat.com>
2689 Gary Benson <gbenson@redhat.com>
2691 * common/errors.h: New file.
2692 * common/errors.c: Likewise.
2693 * Makefile.in (SFILES): Add common/errors.c.
2694 (HFILES_NO_SRCDIR): Add common/errors.h.
2695 (COMMON_OBS): Add errors.o.
2696 (errors.o): New rule.
2697 * common/common-defs.h: Include errors.h.
2698 * utils.h (perror_with_name, error, verror, warning, vwarning):
2700 * common/common-utils.h: (malloc_failure, internal_error):
2703 2014-08-19 Gary Benson <gbenson@redhat.com>
2705 * utils.c (internal_vproblem): Always print the message.
2707 2014-08-18 Doug Evans <dje@google.com>
2709 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2711 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2713 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2714 Return 0 if TYPE is dynamic.
2715 (print_range): Add handling of dynamic ranges.
2717 2014-08-18 Keven Boell <keven.boell@intel.com>
2718 Joel Brobecker <brobecker@adacore.com>
2720 * gdbtypes.h (struct main_type): Add field "data_location".
2721 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2722 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2723 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2724 a dynamic data location.
2725 (resolve_dynamic_type): Add DW_AT_data_location handling.
2726 (copy_recursive, copy_type): Copy the data_location information
2728 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2729 * value.c (value_from_contents_and_address): Add
2730 DW_AT_data_location handling.
2732 2014-08-18 Keven Boell <keven.boell@intel.com>
2733 Joel Brobecker <brobecker@adacore.com>
2735 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2736 field "get_object_address".
2737 * dwarf2expr.c (execute_stack_op): Add handling for
2738 DW_OP_push_object_address.
2739 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2740 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2741 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2742 (dwarf_expr_get_obj_addr): New function.
2743 (dwarf_expr_ctx_funcs): Add get_object_address field.
2744 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2745 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2746 (dwarf2_evaluate_property): Add parameter "address". Use it.
2747 (needs_get_obj_addr): New function.
2748 (needs_frame_ctx_funcs): Add get_object_address field.
2749 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2750 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2751 (resolve_dynamic_array): Likewise.
2753 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2755 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2756 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2757 fixed value for records and unions for which some GNAT encodings
2760 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2762 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2763 rewrite to avoid "else if" and "else" constructs. Should be
2764 a no-op in practice.
2766 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2768 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2771 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2774 * eval.c: Update all calls to find_overload_match.
2775 * valarith.c: Likewise.
2776 (value_user_defined_cpp_op, value_user_defined_op): New
2777 argument NOSIDE. Update all callers.
2778 * valops.c (find_overload_match): New argument NOSIDE.
2779 * value.h (find_overload_match): Update signature.
2781 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2783 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2784 'items' methods instead of 'iteritems' method on dictionaries.
2786 2014-08-15 Doug Evans <dje@google.com>
2788 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2791 2014-08-15 Doug Evans <dje@google.com>
2793 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2795 2014-08-15 Doug Evans <dje@google.com>
2797 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2799 2014-08-15 Doug Evans <dje@google.com>
2801 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2804 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2806 * dcache.h: Include target.h, to avoid compile time warnings.
2808 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2810 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2811 frame_info" partial declaration.
2812 * gdbarch.h: Regenerate.
2814 2014-08-15 Yao Qi <yao@codesourcery.com>
2816 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2817 Add parameter 'decode_for_pst_p'. Callers update.
2819 2014-08-13 Yao Qi <yao@codesourcery.com>
2822 * configure.ac: Use local variable 'pos'.
2823 * configure: Regenerated.
2825 2014-08-11 Doug Evans <dje@google.com>
2827 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2828 message, it is redundant with "Reading symbols from ..." message.
2830 2014-08-10 Doug Evans <xdje42@gmail.com>
2832 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2834 2014-08-09 Yao Qi <yao@codesourcery.com>
2837 * remote.c (remote_xfer_partial): Remove dead code.
2839 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2841 * ia64-linux-tdep.c: Include "regset.h".
2842 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2843 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2844 (ia64_linux_supply_fpregset): New function.
2845 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2846 (ia64_linux_regset_from_core_section): New function.
2847 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2850 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2852 * m68klinux-tdep.c: Include "regset.h".
2853 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2854 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2855 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2856 (m68k_linux_regset_from_core_section): New function.
2857 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2860 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2862 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2863 function. Move logic to...
2864 (tilegx_linux_regmap): ... this new register map.
2865 (tilegx_linux_regset): Refer to register map, replace supply
2866 method by regcache_supply_regset, and add collect method.
2867 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2868 TILEGX_FIRST_EASY_REGNUM.
2870 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2872 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2873 that calls regcache_supply_regset and handles the EPC register
2874 separately. Move main logic to...
2875 (score7_linux_gregmap): ... this new register map.
2876 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2877 (score7_linux_gregset): Refer to register map. Add collect method.
2878 (score7_linux_regset_from_core_section): Replace
2879 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2880 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2881 (struct regset): Delete unused forward declaraction.
2882 (struct pt_regs): Delete structure definition.
2883 (elf_gregset_t): Delete typedef.
2885 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2887 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2888 (nios2_core_regset): Add collect method.
2890 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2892 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2893 platform-independent and don't write to read-only input buffer.
2894 (m32r_linux_collect_gregset): New function.
2895 (m32r_linux_gregset): Add collect method.
2897 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2899 * hppa-linux-tdep.c (greg_map): Rename to...
2900 (hppa_linux_gregmap): ... this. Also convert to
2901 regcache_map_entry format.
2902 (hppa_linux_supply_regset): Delete function.
2903 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2904 (hppa_linux_fpregmap): ... this new register map.
2905 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2906 register map, replace supply method by regcache_supply_regset, and
2907 add collect method regcache_collect_regset.
2909 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2911 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2912 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2913 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2914 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2915 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2916 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2917 (frv_linux_supply_gregset): Replace main logic by call to
2918 regcache_supply_regset, but keep clearing gr32-gr63.
2919 (frv_linux_supply_fpregset): Delete function.
2920 (frv_linux_gregset): Refer to appropriate register map and add
2921 regcache_collect_regset as the collect method.
2922 (frv_linux_fpregset): Likewise. Also exchange the supply method
2923 by regcache_supply_regset.
2925 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2927 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2928 by call to alpha_supply_int_regs.
2929 (alpha_linux_collect_gregset): New function.
2930 (alpha_linux_supply_fpregset): Replace logic by call to
2931 alpha_supply_fp_regs.
2932 (alpha_linux_collect_fpregset): New function.
2933 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2935 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2937 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2938 by call to regcache_collect_regset.
2939 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2940 instead of aarch64_linux_supply_gregset/_fpregset.
2941 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2942 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2943 header file instead.
2944 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2945 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2946 functions. Move logic to ...
2947 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2949 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2950 refer to new register maps, replace *_regset_from_core by
2951 regcache_supply_regset, and also use regcache_collect_regset.
2952 * aarch64-linux-tdep.h: Include "regset.h".
2953 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2955 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2956 macros, moved from C source file.
2957 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2958 variable declarations.
2960 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2962 * s390-linux-nat.c: Include "regset.h".
2963 (regmap_gregset): Delete macro.
2964 (s390_64_regmap_gregset): New register map for
2965 regcache_supply/_collect_regset.
2966 (s390_64_gregset): New regset.
2967 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2968 (regmap_fpregset): Delete macro.
2969 (s390_native_supply, s390_native_collect): Delete functions.
2970 (supply_gregset, fill_gregset): Replace s390-specific regmap
2971 handling by a call to regcache_supply/_collect_regset.
2972 (supply_fpregset, fill_fpregset): Call regcache_supply/
2973 _collect_regset instead of s390_native_supply/_collect.
2974 (fetch_regset, store_regset): Likewise. Also change the last
2975 parameter to a regset instead of a regmap.
2976 (s390_linux_fetch_inferior_registers)
2977 (390_linux_store_inferior_registers): Adjust last parameter in
2978 calls to fetch_regset and store_regset.
2979 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2980 (s390_gregmap): ... this. Also make static const and convert to
2981 regcache_map_entry format.
2982 (s390x_regmap_gregset): Delete.
2983 (s390_regmap_fpregset): Rename to...
2984 (s390_fpregmap): ... this. Make static const and convert to
2985 regcache_map_entry format.
2986 (s390_regmap_upper, s390_regmap_last_break)
2987 (s390x_regmap_last_break, s390_regmap_system_call)
2988 (s390_regmap_tdb): Likewise.
2989 (s390_supply_regset, s390_collect_regset): Remove functions.
2990 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2992 (s390_gregset, s390_fpregset, s390_upper_regset)
2993 (s390_last_break_regset, s390x_last_break_regset)
2994 (s390_system_call_regset, s390_tdb_regset): Make global and
2995 replace s390_supply/_collect_regset by regcache_supply/
2997 (s390x_gregset): Delete.
2998 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2999 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3000 (s390_regmap_fpregset, s390_regmap_last_break)
3001 (s390x_regmap_last_break, s390_regmap_system_call)
3002 (s390_regmap_tdb): Delete global variable declarations.
3003 (s390_gregset, s390_fpregset, s390_last_break_regset)
3004 (s390x_last_break_regset, s390_system_call_regset)
3005 (s390_tdb_regset): New global variable declarations.
3007 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3009 * regcache.c: Include "regset.h".
3010 (regcache_transfer_regset): New local function.
3011 (regcache_supply_regset, regcache_collect_regset): New functions.
3012 * regcache.h (struct regcache_map_entry): New structure.
3013 (REGCACHE_MAP_SKIP): New enum value.
3014 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3016 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3018 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3019 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3020 (ppc_linux_collect_gregset ): Likewise.
3021 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3022 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3023 (ppc_collect_vrregset): Likewise.
3024 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3027 2014-08-07 Yao Qi <yao@codesourcery.com>
3029 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3030 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3031 * remote.c (remote_read_bytes): Likewise.
3033 2014-08-07 Yao Qi <yao@codesourcery.com>
3035 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3037 2014-08-07 Yao Qi <yao@codesourcery.com>
3040 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3041 TARGET_XFER_OK instead of 0.
3043 2014-08-07 Gary Benson <gbenson@redhat.com>
3045 * common/common-defs.h: Include errno.h.
3046 * defs.h: Do not include errno.h.
3047 * ada-typeprint.c: Likewise.
3048 * c-typeprint.c: Likewise.
3049 * core-regset.c: Likewise.
3050 * corefile.c: Likewise.
3051 * corelow.c: Likewise.
3052 * event-loop.c: Likewise.
3053 * f-typeprint.c: Likewise.
3054 * gnu-nat.c: Likewise.
3055 * go32-nat.c: Likewise.
3056 * i386gnu-nat.c: Likewise.
3057 * m2-typeprint.c: Likewise.
3058 * nat/linux-btrace.c: Likewise.
3059 * p-typeprint.c: Likewise.
3060 * procfs.c: Likewise.
3061 * remote-sim.c: Likewise.
3062 * rs6000-nat.c: Likewise.
3063 * target.c: Likewise.
3064 * typeprint.c: Likewise.
3065 * ui-file.c: Likewise.
3066 * valops.c: Likewise.
3067 * valprint.c: Likewise.
3069 2014-08-07 Gary Benson <gbenson@redhat.com>
3071 * common/common-defs.h: Include string.h.
3072 * aarch64-tdep.c: Do not include string.h.
3073 * ada-exp.y: Likewise.
3074 * ada-lang.c: Likewise.
3075 * ada-lex.l: Likewise.
3076 * ada-typeprint.c: Likewise.
3077 * ada-valprint.c: Likewise.
3078 * aix-thread.c: Likewise.
3079 * alpha-linux-tdep.c: Likewise.
3080 * alpha-mdebug-tdep.c: Likewise.
3081 * alpha-nat.c: Likewise.
3082 * alpha-osf1-tdep.c: Likewise.
3083 * alpha-tdep.c: Likewise.
3084 * alphanbsd-tdep.c: Likewise.
3085 * amd64-dicos-tdep.c: Likewise.
3086 * amd64-linux-tdep.c: Likewise.
3087 * amd64-nat.c: Likewise.
3088 * amd64-sol2-tdep.c: Likewise.
3089 * amd64fbsd-tdep.c: Likewise.
3090 * amd64obsd-tdep.c: Likewise.
3091 * arch-utils.c: Likewise.
3092 * arm-linux-nat.c: Likewise.
3093 * arm-linux-tdep.c: Likewise.
3094 * arm-tdep.c: Likewise.
3095 * arm-wince-tdep.c: Likewise.
3096 * armbsd-tdep.c: Likewise.
3097 * armnbsd-nat.c: Likewise.
3098 * armnbsd-tdep.c: Likewise.
3099 * armobsd-tdep.c: Likewise.
3100 * avr-tdep.c: Likewise.
3101 * ax-gdb.c: Likewise.
3102 * ax-general.c: Likewise.
3103 * bcache.c: Likewise.
3104 * bfin-tdep.c: Likewise.
3105 * breakpoint.c: Likewise.
3106 * build-id.c: Likewise.
3107 * buildsym.c: Likewise.
3108 * c-exp.y: Likewise.
3109 * c-lang.c: Likewise.
3110 * c-typeprint.c: Likewise.
3111 * c-valprint.c: Likewise.
3112 * charset.c: Likewise.
3113 * cli-out.c: Likewise.
3114 * cli/cli-cmds.c: Likewise.
3115 * cli/cli-decode.c: Likewise.
3116 * cli/cli-dump.c: Likewise.
3117 * cli/cli-interp.c: Likewise.
3118 * cli/cli-logging.c: Likewise.
3119 * cli/cli-script.c: Likewise.
3120 * cli/cli-setshow.c: Likewise.
3121 * cli/cli-utils.c: Likewise.
3122 * coffread.c: Likewise.
3123 * common/agent.c: Likewise.
3124 * common/buffer.c: Likewise.
3125 * common/buffer.h: Likewise.
3126 * common/common-utils.c: Likewise.
3127 * common/filestuff.c: Likewise.
3128 * common/filestuff.c: Likewise.
3129 * common/format.c: Likewise.
3130 * common/print-utils.c: Likewise.
3131 * common/rsp-low.c: Likewise.
3132 * common/signals.c: Likewise.
3133 * common/vec.h: Likewise.
3134 * common/xml-utils.c: Likewise.
3135 * core-regset.c: Likewise.
3136 * corefile.c: Likewise.
3137 * corelow.c: Likewise.
3138 * cp-abi.c: Likewise.
3139 * cp-name-parser.y: Likewise.
3140 * cp-support.c: Likewise.
3141 * cp-valprint.c: Likewise.
3142 * cris-tdep.c: Likewise.
3143 * d-exp.y: Likewise.
3144 * darwin-nat.c: Likewise.
3145 * dbxread.c: Likewise.
3146 * dcache.c: Likewise.
3147 * demangle.c: Likewise.
3148 * dicos-tdep.c: Likewise.
3149 * disasm.c: Likewise.
3150 * doublest.c: Likewise.
3151 * dsrec.c: Likewise.
3152 * dummy-frame.c: Likewise.
3153 * dwarf2-frame.c: Likewise.
3154 * dwarf2loc.c: Likewise.
3155 * dwarf2read.c: Likewise.
3156 * elfread.c: Likewise.
3157 * environ.c: Likewise.
3159 * event-loop.c: Likewise.
3160 * exceptions.c: Likewise.
3162 * expprint.c: Likewise.
3163 * f-exp.y: Likewise.
3164 * f-lang.c: Likewise.
3165 * f-typeprint.c: Likewise.
3166 * f-valprint.c: Likewise.
3167 * fbsd-nat.c: Likewise.
3168 * findcmd.c: Likewise.
3169 * findvar.c: Likewise.
3170 * fork-child.c: Likewise.
3171 * frame.c: Likewise.
3172 * frv-linux-tdep.c: Likewise.
3173 * frv-tdep.c: Likewise.
3175 * gdb_bfd.c: Likewise.
3176 * gdbarch.c: Likewise.
3177 * gdbarch.sh: Likewise.
3178 * gdbtypes.c: Likewise.
3179 * gnu-nat.c: Likewise.
3180 * gnu-v2-abi.c: Likewise.
3181 * gnu-v3-abi.c: Likewise.
3182 * go-exp.y: Likewise.
3183 * go-lang.c: Likewise.
3184 * go32-nat.c: Likewise.
3185 * guile/guile.c: Likewise.
3186 * guile/scm-auto-load.c: Likewise.
3187 * hppa-hpux-tdep.c: Likewise.
3188 * hppa-linux-nat.c: Likewise.
3189 * hppanbsd-tdep.c: Likewise.
3190 * hppaobsd-tdep.c: Likewise.
3191 * i386-cygwin-tdep.c: Likewise.
3192 * i386-dicos-tdep.c: Likewise.
3193 * i386-linux-tdep.c: Likewise.
3194 * i386-nto-tdep.c: Likewise.
3195 * i386-sol2-tdep.c: Likewise.
3196 * i386-tdep.c: Likewise.
3197 * i386bsd-tdep.c: Likewise.
3198 * i386gnu-nat.c: Likewise.
3199 * i386nbsd-tdep.c: Likewise.
3200 * i386obsd-tdep.c: Likewise.
3201 * i387-tdep.c: Likewise.
3202 * ia64-libunwind-tdep.c: Likewise.
3203 * ia64-linux-nat.c: Likewise.
3204 * inf-child.c: Likewise.
3205 * inf-ptrace.c: Likewise.
3206 * inf-ttrace.c: Likewise.
3207 * infcall.c: Likewise.
3208 * infcmd.c: Likewise.
3209 * inflow.c: Likewise.
3210 * infrun.c: Likewise.
3211 * interps.c: Likewise.
3212 * iq2000-tdep.c: Likewise.
3213 * irix5-nat.c: Likewise.
3214 * jv-exp.y: Likewise.
3215 * jv-lang.c: Likewise.
3216 * jv-typeprint.c: Likewise.
3217 * jv-valprint.c: Likewise.
3218 * language.c: Likewise.
3219 * linux-fork.c: Likewise.
3220 * linux-nat.c: Likewise.
3221 * lm32-tdep.c: Likewise.
3222 * m2-exp.y: Likewise.
3223 * m2-typeprint.c: Likewise.
3224 * m32c-tdep.c: Likewise.
3225 * m32r-linux-nat.c: Likewise.
3226 * m32r-linux-tdep.c: Likewise.
3227 * m32r-rom.c: Likewise.
3228 * m32r-tdep.c: Likewise.
3229 * m68hc11-tdep.c: Likewise.
3230 * m68k-tdep.c: Likewise.
3231 * m68kbsd-tdep.c: Likewise.
3232 * m68klinux-nat.c: Likewise.
3233 * m68klinux-tdep.c: Likewise.
3234 * m88k-tdep.c: Likewise.
3235 * machoread.c: Likewise.
3236 * macrocmd.c: Likewise.
3238 * mdebugread.c: Likewise.
3239 * mem-break.c: Likewise.
3240 * memattr.c: Likewise.
3241 * memory-map.c: Likewise.
3242 * mep-tdep.c: Likewise.
3243 * mi/mi-cmd-break.c: Likewise.
3244 * mi/mi-cmd-disas.c: Likewise.
3245 * mi/mi-cmd-env.c: Likewise.
3246 * mi/mi-cmd-stack.c: Likewise.
3247 * mi/mi-cmd-var.c: Likewise.
3248 * mi/mi-cmds.c: Likewise.
3249 * mi/mi-console.c: Likewise.
3250 * mi/mi-getopt.c: Likewise.
3251 * mi/mi-interp.c: Likewise.
3252 * mi/mi-main.c: Likewise.
3253 * mi/mi-parse.c: Likewise.
3254 * microblaze-rom.c: Likewise.
3255 * microblaze-tdep.c: Likewise.
3256 * mingw-hdep.c: Likewise.
3257 * minidebug.c: Likewise.
3258 * minsyms.c: Likewise.
3259 * mips-irix-tdep.c: Likewise.
3260 * mips-linux-tdep.c: Likewise.
3261 * mips-tdep.c: Likewise.
3262 * mips64obsd-tdep.c: Likewise.
3263 * mipsnbsd-tdep.c: Likewise.
3264 * mipsread.c: Likewise.
3265 * mn10300-linux-tdep.c: Likewise.
3266 * mn10300-tdep.c: Likewise.
3267 * monitor.c: Likewise.
3268 * moxie-tdep.c: Likewise.
3269 * mt-tdep.c: Likewise.
3270 * nat/linux-btrace.c: Likewise.
3271 * nat/linux-osdata.c: Likewise.
3272 * nat/linux-procfs.c: Likewise.
3273 * nat/linux-ptrace.c: Likewise.
3274 * nat/linux-waitpid.c: Likewise.
3275 * nbsd-tdep.c: Likewise.
3276 * nios2-linux-tdep.c: Likewise.
3277 * nto-procfs.c: Likewise.
3278 * nto-tdep.c: Likewise.
3279 * objc-lang.c: Likewise.
3280 * objfiles.c: Likewise.
3281 * opencl-lang.c: Likewise.
3282 * osabi.c: Likewise.
3283 * osdata.c: Likewise.
3284 * p-exp.y: Likewise.
3285 * p-lang.c: Likewise.
3286 * p-typeprint.c: Likewise.
3287 * parse.c: Likewise.
3288 * posix-hdep.c: Likewise.
3289 * ppc-linux-nat.c: Likewise.
3290 * ppc-sysv-tdep.c: Likewise.
3291 * ppcfbsd-tdep.c: Likewise.
3292 * ppcnbsd-tdep.c: Likewise.
3293 * ppcobsd-tdep.c: Likewise.
3294 * printcmd.c: Likewise.
3295 * procfs.c: Likewise.
3296 * prologue-value.c: Likewise.
3297 * python/py-auto-load.c: Likewise.
3298 * python/py-gdb-readline.c: Likewise.
3299 * ravenscar-thread.c: Likewise.
3300 * regcache.c: Likewise.
3301 * registry.c: Likewise.
3302 * remote-fileio.c: Likewise.
3303 * remote-m32r-sdi.c: Likewise.
3304 * remote-mips.c: Likewise.
3305 * remote-notif.c: Likewise.
3306 * remote-sim.c: Likewise.
3307 * remote.c: Likewise.
3308 * reverse.c: Likewise.
3309 * rs6000-aix-tdep.c: Likewise.
3310 * ser-base.c: Likewise.
3311 * ser-go32.c: Likewise.
3312 * ser-mingw.c: Likewise.
3313 * ser-pipe.c: Likewise.
3314 * ser-tcp.c: Likewise.
3315 * ser-unix.c: Likewise.
3316 * serial.c: Likewise.
3317 * sh-tdep.c: Likewise.
3318 * sh64-tdep.c: Likewise.
3319 * shnbsd-tdep.c: Likewise.
3321 * sol-thread.c: Likewise.
3322 * solib-dsbt.c: Likewise.
3323 * solib-frv.c: Likewise.
3324 * solib-osf.c: Likewise.
3325 * solib-som.c: Likewise.
3326 * solib-spu.c: Likewise.
3327 * solib-target.c: Likewise.
3328 * solib.c: Likewise.
3329 * somread.c: Likewise.
3330 * source.c: Likewise.
3331 * sparc-nat.c: Likewise.
3332 * sparc-sol2-tdep.c: Likewise.
3333 * sparc-tdep.c: Likewise.
3334 * sparc64-tdep.c: Likewise.
3335 * sparc64fbsd-tdep.c: Likewise.
3336 * sparc64nbsd-tdep.c: Likewise.
3337 * sparcnbsd-tdep.c: Likewise.
3338 * spu-linux-nat.c: Likewise.
3339 * spu-multiarch.c: Likewise.
3340 * spu-tdep.c: Likewise.
3341 * stabsread.c: Likewise.
3342 * stack.c: Likewise.
3343 * std-regs.c: Likewise.
3344 * symfile.c: Likewise.
3345 * symmisc.c: Likewise.
3346 * symtab.c: Likewise.
3347 * target.c: Likewise.
3348 * thread.c: Likewise.
3349 * tilegx-linux-nat.c: Likewise.
3350 * tilegx-tdep.c: Likewise.
3352 * tracepoint.c: Likewise.
3353 * tui/tui-command.c: Likewise.
3354 * tui/tui-data.c: Likewise.
3355 * tui/tui-disasm.c: Likewise.
3356 * tui/tui-file.c: Likewise.
3357 * tui/tui-layout.c: Likewise.
3358 * tui/tui-out.c: Likewise.
3359 * tui/tui-regs.c: Likewise.
3360 * tui/tui-source.c: Likewise.
3361 * tui/tui-stack.c: Likewise.
3362 * tui/tui-win.c: Likewise.
3363 * tui/tui-windata.c: Likewise.
3364 * tui/tui-winsource.c: Likewise.
3365 * typeprint.c: Likewise.
3366 * ui-file.c: Likewise.
3367 * ui-out.c: Likewise.
3368 * user-regs.c: Likewise.
3369 * utils.c: Likewise.
3370 * v850-tdep.c: Likewise.
3371 * valarith.c: Likewise.
3372 * valops.c: Likewise.
3373 * valprint.c: Likewise.
3374 * value.c: Likewise.
3375 * varobj.c: Likewise.
3376 * vax-tdep.c: Likewise.
3377 * vaxnbsd-tdep.c: Likewise.
3378 * vaxobsd-tdep.c: Likewise.
3379 * windows-nat.c: Likewise.
3380 * xcoffread.c: Likewise.
3381 * xml-support.c: Likewise.
3382 * xstormy16-tdep.c: Likewise.
3383 * xtensa-linux-nat.c: Likewise.
3385 2014-08-07 Gary Benson <gbenson@redhat.com>
3387 * common/common-defs.h: Include gdb_assert.h.
3388 * aarch64-tdep.c: Do not include gdb_assert.h.
3389 * addrmap.c: Likewise.
3390 * aix-thread.c: Likewise.
3391 * alpha-linux-tdep.c: Likewise.
3392 * alpha-mdebug-tdep.c: Likewise.
3393 * alphanbsd-tdep.c: Likewise.
3394 * amd64-nat.c: Likewise.
3395 * amd64-tdep.c: Likewise.
3396 * amd64bsd-nat.c: Likewise.
3397 * amd64fbsd-nat.c: Likewise.
3398 * amd64fbsd-tdep.c: Likewise.
3399 * amd64nbsd-nat.c: Likewise.
3400 * amd64nbsd-tdep.c: Likewise.
3401 * amd64obsd-nat.c: Likewise.
3402 * amd64obsd-tdep.c: Likewise.
3403 * arch-utils.c: Likewise.
3404 * arm-tdep.c: Likewise.
3405 * armbsd-tdep.c: Likewise.
3407 * bcache.c: Likewise.
3408 * bfin-tdep.c: Likewise.
3409 * blockframe.c: Likewise.
3410 * breakpoint.c: Likewise.
3411 * bsd-kvm.c: Likewise.
3412 * bsd-uthread.c: Likewise.
3413 * buildsym.c: Likewise.
3414 * c-exp.y: Likewise.
3415 * c-lang.c: Likewise.
3416 * charset.c: Likewise.
3417 * cleanups.c: Likewise.
3418 * cli-out.c: Likewise.
3419 * cli/cli-decode.c: Likewise.
3420 * cli/cli-dump.c: Likewise.
3421 * cli/cli-logging.c: Likewise.
3422 * cli/cli-script.c: Likewise.
3423 * cli/cli-utils.c: Likewise.
3424 * coffread.c: Likewise.
3425 * common/common-utils.c: Likewise.
3426 * common/queue.h: Likewise.
3427 * common/signals.c: Likewise.
3428 * common/vec.h: Likewise.
3429 * complaints.c: Likewise.
3430 * completer.c: Likewise.
3431 * corelow.c: Likewise.
3432 * cp-abi.c: Likewise.
3433 * cp-name-parser.y: Likewise.
3434 * cp-namespace.c: Likewise.
3435 * cp-support.c: Likewise.
3436 * cris-tdep.c: Likewise.
3437 * dbxread.c: Likewise.
3438 * dictionary.c: Likewise.
3439 * doublest.c: Likewise.
3440 * dsrec.c: Likewise.
3441 * dummy-frame.c: Likewise.
3442 * dwarf2-frame-tailcall.c: Likewise.
3443 * dwarf2-frame.c: Likewise.
3444 * dwarf2expr.c: Likewise.
3445 * dwarf2loc.c: Likewise.
3446 * dwarf2read.c: Likewise.
3448 * event-loop.c: Likewise.
3449 * exceptions.c: Likewise.
3450 * expprint.c: Likewise.
3451 * f-valprint.c: Likewise.
3452 * fbsd-nat.c: Likewise.
3453 * findvar.c: Likewise.
3454 * frame-unwind.c: Likewise.
3455 * frame.c: Likewise.
3456 * frv-tdep.c: Likewise.
3457 * gcore.c: Likewise.
3458 * gdb-dlfcn.c: Likewise.
3459 * gdb_bfd.c: Likewise.
3460 * gdbarch.c: Likewise.
3461 * gdbarch.sh: Likewise.
3462 * gdbtypes.c: Likewise.
3463 * gnu-nat.c: Likewise.
3464 * gnu-v3-abi.c: Likewise.
3465 * go-lang.c: Likewise.
3466 * guile/scm-exception.c: Likewise.
3467 * guile/scm-gsmob.c: Likewise.
3468 * guile/scm-lazy-string.c: Likewise.
3469 * guile/scm-math.c: Likewise.
3470 * guile/scm-pretty-print.c: Likewise.
3471 * guile/scm-safe-call.c: Likewise.
3472 * guile/scm-utils.c: Likewise.
3473 * guile/scm-value.c: Likewise.
3474 * h8300-tdep.c: Likewise.
3475 * hppa-hpux-nat.c: Likewise.
3476 * hppa-tdep.c: Likewise.
3477 * hppanbsd-tdep.c: Likewise.
3478 * hppaobsd-tdep.c: Likewise.
3479 * i386-darwin-nat.c: Likewise.
3480 * i386-darwin-tdep.c: Likewise.
3481 * i386-nto-tdep.c: Likewise.
3482 * i386-tdep.c: Likewise.
3483 * i386bsd-nat.c: Likewise.
3484 * i386fbsd-tdep.c: Likewise.
3485 * i386gnu-nat.c: Likewise.
3486 * i386nbsd-tdep.c: Likewise.
3487 * i386obsd-tdep.c: Likewise.
3488 * i387-tdep.c: Likewise.
3489 * ia64-libunwind-tdep.c: Likewise.
3490 * ia64-tdep.c: Likewise.
3491 * inf-ptrace.c: Likewise.
3492 * inf-ttrace.c: Likewise.
3493 * infcall.c: Likewise.
3494 * infcmd.c: Likewise.
3495 * infrun.c: Likewise.
3496 * inline-frame.c: Likewise.
3497 * interps.c: Likewise.
3498 * jv-lang.c: Likewise.
3499 * jv-typeprint.c: Likewise.
3500 * linux-fork.c: Likewise.
3501 * linux-nat.c: Likewise.
3502 * linux-thread-db.c: Likewise.
3503 * m32c-tdep.c: Likewise.
3504 * m32r-linux-nat.c: Likewise.
3505 * m32r-tdep.c: Likewise.
3506 * m68k-tdep.c: Likewise.
3507 * m68kbsd-nat.c: Likewise.
3508 * m68kbsd-tdep.c: Likewise.
3509 * m88k-tdep.c: Likewise.
3510 * machoread.c: Likewise.
3511 * macroexp.c: Likewise.
3512 * macrotab.c: Likewise.
3513 * maint.c: Likewise.
3514 * mdebugread.c: Likewise.
3515 * memory-map.c: Likewise.
3516 * mep-tdep.c: Likewise.
3517 * mi/mi-common.c: Likewise.
3518 * microblaze-tdep.c: Likewise.
3519 * mingw-hdep.c: Likewise.
3520 * mips-linux-nat.c: Likewise.
3521 * mips-linux-tdep.c: Likewise.
3522 * mips-tdep.c: Likewise.
3523 * mips64obsd-tdep.c: Likewise.
3524 * mipsnbsd-tdep.c: Likewise.
3525 * mn10300-linux-tdep.c: Likewise.
3526 * mn10300-tdep.c: Likewise.
3527 * moxie-tdep.c: Likewise.
3528 * mt-tdep.c: Likewise.
3529 * nat/linux-btrace.c: Likewise.
3530 * nat/linux-osdata.c: Likewise.
3531 * nat/linux-ptrace.c: Likewise.
3532 * nat/mips-linux-watch.c: Likewise.
3533 * nios2-linux-tdep.c: Likewise.
3534 * nios2-tdep.c: Likewise.
3535 * objc-lang.c: Likewise.
3536 * objfiles.c: Likewise.
3537 * obsd-nat.c: Likewise.
3538 * opencl-lang.c: Likewise.
3539 * osabi.c: Likewise.
3540 * parse.c: Likewise.
3541 * ppc-linux-nat.c: Likewise.
3542 * ppc-sysv-tdep.c: Likewise.
3543 * ppcfbsd-nat.c: Likewise.
3544 * ppcfbsd-tdep.c: Likewise.
3545 * ppcnbsd-nat.c: Likewise.
3546 * ppcnbsd-tdep.c: Likewise.
3547 * ppcobsd-nat.c: Likewise.
3548 * ppcobsd-tdep.c: Likewise.
3549 * printcmd.c: Likewise.
3550 * procfs.c: Likewise.
3551 * prologue-value.c: Likewise.
3552 * psymtab.c: Likewise.
3553 * python/py-lazy-string.c: Likewise.
3554 * python/py-value.c: Likewise.
3555 * regcache.c: Likewise.
3556 * reggroups.c: Likewise.
3557 * registry.c: Likewise.
3558 * remote-sim.c: Likewise.
3559 * remote.c: Likewise.
3560 * rs6000-aix-tdep.c: Likewise.
3561 * rs6000-tdep.c: Likewise.
3562 * s390-linux-tdep.c: Likewise.
3563 * score-tdep.c: Likewise.
3564 * ser-base.c: Likewise.
3565 * ser-mingw.c: Likewise.
3566 * sh-tdep.c: Likewise.
3567 * sh64-tdep.c: Likewise.
3568 * solib-darwin.c: Likewise.
3569 * solib-spu.c: Likewise.
3570 * solib-svr4.c: Likewise.
3571 * source.c: Likewise.
3572 * sparc-nat.c: Likewise.
3573 * sparc-sol2-tdep.c: Likewise.
3574 * sparc-tdep.c: Likewise.
3575 * sparc64-sol2-tdep.c: Likewise.
3576 * sparc64-tdep.c: Likewise.
3577 * sparc64fbsd-tdep.c: Likewise.
3578 * sparc64nbsd-tdep.c: Likewise.
3579 * sparc64obsd-tdep.c: Likewise.
3580 * sparcnbsd-tdep.c: Likewise.
3581 * sparcobsd-tdep.c: Likewise.
3582 * spu-multiarch.c: Likewise.
3583 * spu-tdep.c: Likewise.
3584 * stabsread.c: Likewise.
3585 * stack.c: Likewise.
3586 * symfile.c: Likewise.
3587 * symtab.c: Likewise.
3588 * target-descriptions.c: Likewise.
3589 * target-memory.c: Likewise.
3590 * target.c: Likewise.
3591 * tic6x-linux-tdep.c: Likewise.
3592 * tic6x-tdep.c: Likewise.
3593 * tilegx-linux-nat.c: Likewise.
3594 * tilegx-tdep.c: Likewise.
3596 * tramp-frame.c: Likewise.
3597 * tui/tui-out.c: Likewise.
3598 * tui/tui-winsource.c: Likewise.
3599 * ui-out.c: Likewise.
3600 * user-regs.c: Likewise.
3601 * utils.c: Likewise.
3602 * v850-tdep.c: Likewise.
3603 * valops.c: Likewise.
3604 * value.c: Likewise.
3605 * varobj.c: Likewise.
3606 * vax-nat.c: Likewise.
3607 * xml-syscall.c: Likewise.
3608 * xml-tdesc.c: Likewise.
3609 * xstormy16-tdep.c: Likewise.
3610 * xtensa-linux-nat.c: Likewise.
3611 * xtensa-tdep.c: Likewise.
3613 2014-08-07 Gary Benson <gbenson@redhat.com>
3615 * common/common-defs.h: Include common-utils.h.
3616 * defs.h: Do not include common-utils.h.
3617 * common/gdb_assert.h: Likewise.
3618 * darwin-nat.h: Likewise.
3619 * nat/linux-btrace.c: Likewise.
3620 * target/waitstatus.h: Likewise.
3622 2014-08-07 Gary Benson <gbenson@redhat.com>
3624 * common/common-defs.h: Include ptid.h.
3625 * defs.h: Do not include ptid.h.
3626 * inferior.h: Likewise.
3627 * infrun.h: Likewise.
3628 * nat/linux-btrace.h: Likewise.
3629 * nat/linux-osdata.h: Likewise.
3630 * target/waitstatus.h: Likewise.
3632 2014-08-07 Gary Benson <gbenson@redhat.com>
3634 * common/common-defs.h: Include gdb_locale.h.
3635 * defs.h: Do not include gdb_locale.h.
3637 2014-08-07 Gary Benson <gbenson@redhat.com>
3639 * common/common-defs.h: Include gdb/signals.h.
3640 * defs.h: Do not include gdb/signals.h.
3642 2014-08-07 Gary Benson <gbenson@redhat.com>
3644 * common/common-defs.h: Include pathmax.h.
3645 * defs.h: Do not include pathmax.h.
3647 2014-08-07 Gary Benson <gbenson@redhat.com>
3649 * common/common-defs.h: Include libiberty.h.
3650 * defs.h: Do not include libiberty.h.
3651 * common/queue.h: Likewise.
3652 * cp-name-parser.y: Likewise.
3653 * mi/mi-cmd-catch.c: Likewise.
3654 * python/python.c: Likewise.
3656 2014-08-07 Gary Benson <gbenson@redhat.com>
3658 * common/common-defs.h: Include ansidecl.h.
3659 * defs.h: Do not include ansidecl.h.
3660 * common/buffer.h: Likewise.
3661 * common/common-utils.h: Likewise.
3663 2014-08-07 Gary Benson <gbenson@redhat.com>
3665 * common/common-defs.h: Include stddef.h.
3666 * defs.h: Do not include stddef.h.
3667 * common/common-utils.h: Likewise.
3668 * amd64fbsd-nat.c: Likewise.
3669 * bcache.c: Likewise.
3670 * charset.c: Likewise.
3671 * common/buffer.h: Likewise.
3672 * common/vec.h: Likewise.
3673 * i386bsd-nat.c: Likewise.
3674 * nat/linux-btrace.h: Likewise.
3675 * ppcfbsd-nat.c: Likewise.
3676 * ppcnbsd-tdep.h: Likewise.
3677 * ppcobsd-nat.c: Likewise.
3678 * ppcobsd-tdep.h: Likewise.
3679 * python/py-gdb-readline.c: Likewise.
3681 2014-08-07 Gary Benson <gbenson@redhat.com>
3683 * common/common-defs.h: Include stdarg.h.
3684 * defs.h: Do not include stdarg.h.
3685 * ada-lang.c: Likewise.
3686 * common/common-utils.h: Likewise.
3687 * guile/scm-string.c: Likewise.
3688 * guile/scm-utils.c: Likewise.
3689 * m32c-tdep.c: Likewise.
3691 2014-08-07 Gary Benson <gbenson@redhat.com>
3693 * common/common-defs.h: Include stdlib.h.
3694 * defs.h: Do not include stdlib.h.
3695 * addrmap.c: Likewise.
3696 * bcache.c: Likewise.
3697 * common/buffer.c: Likewise.
3698 * common/common-utils.c: Likewise.
3699 * cp-name-parser.y: Likewise.
3700 * go32-nat.c: Likewise.
3701 * mn10300-linux-tdep.c: Likewise.
3702 * nat/linux-osdata.c: Likewise.
3703 * tui/tui.c: Likewise.
3704 * windows-nat.c: Likewise.
3706 2014-08-07 Gary Benson <gbenson@redhat.com>
3708 * common/common-defs.h: Include stdio.h.
3709 * defs.h: Do not include stdio.h.
3710 * ada-lang.c: Likewise.
3711 * common/buffer.c: Likewise.
3712 * common/common-utils.c: Likewise.
3713 * cp-name-parser.y: Likewise.
3714 * gnu-nat.c: Likewise.
3715 * go32-nat.c: Likewise.
3716 * i386gnu-nat.c: Likewise.
3717 * proc-api.c: Likewise.
3718 * proc-events.c: Likewise.
3719 * proc-flags.c: Likewise.
3720 * proc-why.c: Likewise.
3721 * python/python-internal.h: Likewise.
3722 * target-memory.c: Likewise.
3723 * tui/tui-io.c: Likewise.
3724 * tui/tui.c: Likewise.
3726 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3728 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3729 (scan_dyntag_auxv): Same.
3731 2014-08-06 Yao Qi <yao@codesourcery.com>
3733 * amd64-linux-nat.c: Remove duplicated include
3735 * i386-linux-nat.c: Likewise.
3737 2014-08-06 Yao Qi <yao@codesourcery.com>
3739 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3740 operand" with "Special opcode" in comments.
3742 2014-08-05 Gary Benson <gbenson@redhat.com>
3744 * interps.c (initialize_interps): Remove prototype.
3745 (interpreter_initialized): Remove static global.
3746 (interp_add): Do not call initialize_interps.
3747 (initialize_interps): Remove function.
3749 2014-08-05 Gary Benson <gbenson@redhat.com>
3751 * utils.c (vwarning): Remove spurious va_end.
3753 2014-08-05 Alan Modra <amodra@gmail.com>
3755 * charset.c (convert_between_encodings): Cast result of obstack_base.
3756 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3757 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3758 (read_unwind_info): Use size_t for some locals.
3759 * jit.c (finalize_symtab): Likewise.
3760 * utils.c (hashtab_obstack_allocate): Likewise.
3761 * symmisc.c (print_objfile_statistics): Update format strings.
3763 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3765 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3766 (Changes in GDB 7.8): ... here.
3768 2014-08-04 Tom Tromey <tromey@redhat.com>
3770 * target.c (set_targetdebug): New function.
3771 (initialize_targets): Pass set_targetdebug when creating "set
3774 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3776 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3777 if detecting a variable-sized field that is not the last field.
3778 Fix struct type length computation.
3780 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3782 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3785 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3787 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3788 Remove "+ 8" offset in computation of CHAIN_VMA.
3790 2014-07-31 Doug Evans <dje@google.com>
3792 * inflow.c (child_terminal_inferior): Add comment.
3793 (child_terminal_ours_for_output): Add comment.
3794 (child_terminal_ours): Add comment.
3795 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3796 (linux_nat_terminal_ours): Add comment.
3798 2014-07-31 Gary Benson <gbenson@redhat.com>
3800 * common/btrace-common.h: Do not include defs.h or server.h.
3801 * nat/mips-linux-watch.h: Likewise.
3802 * gdb-dlfcn.h: Do not include defs.h.
3803 * tracefile.h: Likewise.
3805 2014-07-30 Roland McGrath <mcgrathr@google.com>
3807 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3809 2014-07-30 Tom Tromey <tromey@redhat.com>
3811 * bsd-kvm.c (bsd_kvm_open): Constify.
3812 * corelow.c (core_open): Constify.
3813 * ctf.c (ctf_open): Constify.
3814 * dbug-rom.c (dbug_open): Constify.
3815 * exec.c (exec_open): Constify.
3816 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3817 * microblaze-rom.c (picobug_open): Constify.
3818 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3820 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3821 * record-btrace.c (record_btrace_open): Constify.
3822 * record-full.c (record_full_core_open_1, record_full_open_1)
3823 (record_full_open): Constify.
3824 * remote-m32r-sdi.c (m32r_open): Constify.
3825 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3826 (rockhopper_open, lsi_open): Constify.
3827 * remote-sim.c (gdbsim_open): Constify.
3828 * remote.c (remote_open, extended_remote_open, remote_open_1):
3830 * target.h (struct target_ops) <to_open>: Make "arg" const.
3831 * tracefile-tfile.c (tfile_open): Constify.
3833 2014-07-30 Tom Tromey <tromey@redhat.com>
3835 * breakpoint.c (map_breakpoint_numbers): Update.
3836 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3837 (get_number_const): New function.
3838 (get_number): Rewrite using get_number_const.
3839 (init_number_or_range): Make "string" const.
3840 (number_is_in_list): Make "list" const.
3841 * cli/cli-utils.h (get_number_const): Declare.
3842 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3843 (init_number_or_range, number_is_in_list): Update.
3844 * printcmd.c (map_display_numbers): Update.
3845 * value.c (value_from_history_ref): Constify.
3846 * value.h (value_from_history_ref): Update.
3848 2014-07-30 Tom Tromey <tromey@redhat.com>
3850 * corefile.c (hook_type, call_extra_exec_file_hooks)
3851 (specify_exec_file_hook): Constify.
3852 * exec.c (exec_file_attach): Make "filename" const.
3853 * gdbcore.h (deprecated_exec_file_display_hook)
3854 (specify_exec_file_hook, exec_file_attach): Constify.
3855 * main.c (captured_main): Use catch_command_errors_const.
3857 2014-07-30 Tom Tromey <tromey@redhat.com>
3859 * target.c (open_target): New function.
3860 (add_target_with_completer, add_deprecated_target_alias): Use
3861 set_cmd_sfunc, set_cmd_context.
3862 (debug_to_open): Remove.
3863 (setup_target_debug): Update.
3865 2014-07-30 Yao Qi <yao@codesourcery.com>
3867 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3869 * parse.c (exp_iterate): Update comments.
3871 2014-07-30 Gary Benson <gbenson@redhat.com>
3873 * common/common-defs.h: New file.
3874 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3875 * defs.h: Include common-defs.h.
3876 Do not include config.h or build-gnulib/config.h.
3878 2014-07-30 Gary Benson <gbenson@redhat.com>
3880 * common/common-utils.h: Do not include config.h.
3881 * nat/linux-btrace.h: Likewise.
3883 2014-07-30 Gary Benson <gbenson@redhat.com>
3885 * btrace.c: Include defs.h.
3886 * common/ptid.c: Include defs.h or server.h as appropriate.
3887 * nat/mips-linux-watch.c: Likewise.
3889 2014-07-29 Tom Tromey <tromey@redhat.com>
3891 * target.c (target_is_pushed): Simplify.
3893 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3897 2014-07-29 Yao Qi <yao@codesourcery.com>
3900 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3902 2014-07-28 Doug Evans <xdje42@gmail.com>
3905 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3906 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3909 2014-07-28 Will Newton <will.newton@linaro.org>
3911 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3912 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3913 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3914 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3915 (THUMB2_EABI_SYSCALL): Likewise.
3916 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3918 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3919 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3921 2014-07-27 Doug Evans <xdje42@gmail.com>
3923 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3925 2014-07-27 Doug Evans <xdje42@gmail.com>
3927 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3929 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3930 Doug Evans <xdje42@gmail.com>
3933 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3934 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3935 * configure.ac: Try to use guild to compile an scm file, if it fails
3936 then disable guile support.
3937 * configure: Regenerate.
3938 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3940 (GUILE_COMPILED_FILES): New variable.
3941 (GUILE_FILES) Update.
3942 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3943 (stamp-guile): Compile scm files.
3944 * guile/guile.c (boot_guile_support): New function.
3945 (standard_throw_args_p): New function.
3946 (print_standard_throw_error, print_throw_error): New functions.
3947 (handle_boot_error): New function.
3948 (initialize_scheme_side): Rewrite to call boot_guile_support.
3949 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3950 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3952 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3953 Doug Evans <xdje42@gmail.com>
3956 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3957 * guile/lib/gdb/support.scm: New file.
3958 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3959 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3961 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3963 (%assert-type): Ditto, and renamed to assert-type.
3964 (%exception-print-style): Delete.
3966 2014-07-26 Doug Evans <xdje42@gmail.com>
3969 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3970 * configure: Regenerate.
3971 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3973 (PYTHON_FILES): New variable.
3974 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3975 (GUILE_FILES): New variable.
3976 (stamp-python, install-python, uninstall-python): Handle empty
3978 (stamp-guile, install-guile, uninstall-guile): Ditto.
3980 2014-07-26 Doug Evans <xdje42@gmail.com>
3983 * guile/lib/gdb.scm (pretty-printers): Export.
3984 (set-pretty-printers!): Export.
3985 * guile/lib/gdb/printing.scm (gdb module): Update.
3986 (prepend-pretty-printer!, append-pretty-printer!): Update.
3987 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3988 (pretty_printer_list_var): Delete.
3989 (pretty_printer_list): New static global.
3990 (gdbscm_pretty_printers): New function.
3991 (gdbscm_set_pretty_printers_x): New function.
3992 (ppscm_find_pretty_printer_from_gdb): Update.
3993 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3994 (gdbscm_initialize_pretty_printers): Update.
3996 2014-07-26 Doug Evans <xdje42@gmail.com>
3999 * configure.ac: Add check for header gc/gc.h.
4000 Add check for function setenv.
4001 * configure: Regenerate.
4002 * config.in: Regenerate.
4003 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4005 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4007 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4008 variation in gdbarch matching.
4010 2014-07-25 Tom Tromey <tromey@redhat.com>
4012 * exec.c (using_exec_ops): Remove.
4013 (exec_close_1): Update. Remove extraneous block, reindent.
4014 (add_target_sections): Use target_is_pushed.
4016 2014-07-25 Pedro Alves <palves@redhat.com>
4018 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4019 * monitor.c (monitor_create_inferior): Likewise.
4020 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4021 * remote-sim.c (gdbsim_create_inferior): Likewise.
4022 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4023 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4024 * windows-nat.c (do_initial_windows_stuff): Likewise.
4026 2014-07-25 Pedro Alves <palves@redhat.com>
4028 * NEWS: Mention signal passing and "signal" command changes.
4029 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4031 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4033 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4034 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4035 (jump_command): Adjust clear_proceed_status call.
4036 (signal_command): Warn if other thread that are resumed have
4037 signals that will be delivered. Adjust clear_proceed_status call.
4038 (until_next_command, finish_command)
4039 (proceed_after_attach_callback, attach_command_post_wait)
4040 (attach_command): Adjust clear_proceed_status call.
4041 * infrun.c (proceed_after_vfork_done): Likewise.
4042 (proceed_after_attach_callback): Adjust comment.
4043 (clear_proceed_status_thread): Clear stop_signal if not in pass
4045 (clear_proceed_status_callback): Delete.
4046 (clear_proceed_status): New 'step' parameter. Only clear the
4047 proceed status of threads the command being prepared is about to
4049 (proceed): If passed in an explicit signal, override stop_signal
4050 with it. Don't pass the last stop signal to the thread we're
4052 (init_wait_for_inferior): Adjust clear_proceed_status call.
4053 (switch_back_to_stepped_thread): Clear the signal if it should not
4055 * infrun.h (clear_proceed_status): New 'step' parameter.
4056 (user_visible_resume_ptid): Add comment.
4057 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4058 signal is in pass state.
4059 * remote.c (append_pending_thread_resumptions): Likewise.
4060 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4062 2014-07-25 Tom Tromey <tromey@redhat.com>
4064 * target.h (target_stopped_data_address)
4065 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4068 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4070 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4072 (avr_pointer_to_address): Likewise.
4074 2014-07-24 Tom Tromey <tromey@redhat.com>
4076 * monitor.c (compile_pattern): Update.
4077 * target.h (struct target_ops) <to_shortname, to_longname,
4080 2014-07-24 Tom Tromey <tromey@redhat.com>
4082 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4083 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4084 (add_info_alias, add_com): Make "doc" const.
4085 (print_doc_line): Make "str" const.
4086 (delete_cmd): Update.
4087 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4088 (print_doc_line): Update.
4089 * cli/cli-script.c (document_command): Update.
4090 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4091 (add_com, add_info, add_info_alias): Update.
4092 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4093 * python/py-cmd.c (cmdpy_destroyer): Update.
4095 2014-07-24 Tom Tromey <tromey@redhat.com>
4097 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4098 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4099 (help_cmd_list): Constify.
4100 (lookup_cmd): Update.
4101 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4103 (help_cmd_list, apropos_cmd): Update.
4104 * cli/cli-script.c (show_user): Update.
4105 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4106 * cli/cli-setshow.h (cmd_show_list): Update.
4107 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4108 (cmd_show_list): Update.
4109 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4110 * python/py-cmd.c (cmdpy_destroyer): Update.
4112 2014-07-24 Tom Tromey <tromey@redhat.com>
4114 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4115 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4117 * command.h (deprecate_cmd): Update.
4118 * maint.c (maintenance_do_deprecate): Add casts.
4120 2014-07-24 Tom Tromey <tromey@redhat.com>
4122 * cli/cli-decode.c (help_cmd): Make parameter "const".
4123 * cli/cli-decode.h (help_cmd): Update.
4125 2014-07-24 Tom Tromey <tromey@redhat.com>
4127 * stack.c (up_silently_base, down_silently_base): Make argument
4130 2014-07-24 Tom Tromey <tromey@redhat.com>
4132 * solib.c (solib_add): Make "pattern" const.
4133 * solib.h (solib_add): Update.
4135 2014-07-24 Tom Tromey <tromey@redhat.com>
4137 * remote.c (remote_serial_open, print_packet, putpkt)
4138 (putpkt_binary): Constify.
4139 * remote.h (putpkt): Update.
4141 2014-07-24 Tom Tromey <tromey@redhat.com>
4143 * monitor.c (monitor_open): Make "args" const.
4144 * monitor.h (monitor_open): Update.
4146 2014-07-24 Tom Tromey <tromey@redhat.com>
4148 * maint.c (match_bfd_flags): Make "string" const.
4149 (print_bfd_section_info): Remove casts.
4150 (print_objfile_section_info): Make "string" const.
4152 2014-07-24 Tom Tromey <tromey@redhat.com>
4154 * inf-child.c (inf_child_open_target): Make "arg" const.
4155 * inf-child.h (inf_child_open_target): Update.
4157 2014-07-24 Tom Tromey <tromey@redhat.com>
4159 * environ.c (unset_in_environ): Make "var" const.
4160 * environ.h (unset_in_environ): Update.
4162 2014-07-24 Tom Tromey <tromey@redhat.com>
4164 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4166 (scan_filename_with_cleanup): Likewise.
4167 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4168 Make arguments const.
4169 (restore_command): Update.
4171 2014-07-24 Pedro Alves <palves@redhat.com>
4173 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4175 2014-07-24 Tom Tromey <tromey@redhat.com>
4176 Gary Benson <gbenson@redhat.com>
4178 * nat/linux-ptrace.c (additional_flags): New global.
4179 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4180 additional_flags; don't check GDBSERVER.
4181 (linux_ptrace_set_additional_flags): New function.
4182 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4184 * linux-nat.c (_initialize_linux_nat): Call
4185 linux_ptrace_set_additional_flags.
4187 2014-07-24 Tom Tromey <tromey@redhat.com>
4189 * make-target-delegates (munge_type, write_debugmethod): New
4191 (debug_names): New global.
4192 ($TARGET_DEBUG_PRINTER): New global.
4193 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4195 Write debug methods. Generate init_debug_target.
4196 * target-debug.h: New file.
4197 * target-delegates.c: Rebuild.
4198 * target.c: Include target-debug.h.
4199 (debug_target): Hoist definition.
4200 (target_kill, target_get_section_table, target_memory_map)
4201 (target_flash_erase, target_flash_done, target_detach)
4202 (target_disconnect, target_wait, target_resume)
4203 (target_pass_signals, target_program_signals, target_follow_fork)
4204 (target_mourn_inferior, target_search_memory)
4205 (target_thread_address_space, target_close)
4206 (target_find_new_threads, target_core_of_thread)
4207 (target_verify_memory, target_insert_mask_watchpoint)
4208 (target_remove_mask_watchpoint): Remove targetdebug code.
4209 (debug_to_post_attach, debug_to_prepare_to_store)
4210 (debug_to_files_info, debug_to_insert_breakpoint)
4211 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4212 (debug_to_region_ok_for_hw_watchpoint)
4213 (debug_to_can_accel_watchpoint_condition)
4214 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4215 (debug_to_watchpoint_addr_within_range)
4216 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4217 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4218 (debug_to_terminal_init, debug_to_terminal_inferior)
4219 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4220 (debug_to_terminal_save_ours, debug_to_terminal_info)
4221 (debug_to_load, debug_to_post_startup_inferior)
4222 (debug_to_insert_fork_catchpoint)
4223 (debug_to_remove_fork_catchpoint)
4224 (debug_to_insert_vfork_catchpoint)
4225 (debug_to_remove_vfork_catchpoint)
4226 (debug_to_insert_exec_catchpoint)
4227 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4228 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4229 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4230 (setup_target_debug): Call init_debug_target.
4231 * target.h (TARGET_DEBUG_PRINTER): New macro.
4232 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4233 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4235 2014-07-24 Gary Benson <gbenson@redhat.com>
4237 * exceptions.h (throw_vfatal): Renamed to...
4238 (throw_vquit): New declaration.
4239 (throw_quit): Likewise.
4240 * exceptions.c (throw_vfatal): Renamed to...
4241 (throw_vquit): New function.
4242 (throw_quit): Likewise.
4243 (throw_error): Call throw_verror rather than throw_it.
4244 * utils.h (vfatal): Removed.
4246 * utils.c (vfatal): Removed.
4248 (internal_verror): Replaced call to fatal with call to throw_quit.
4249 (quit): Replaced calls to fatal with calls to throw_quit.
4251 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4253 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4256 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4258 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4259 less than zero in conditional expression.
4261 2014-07-23 Tom Tromey <tromey@redhat.com>
4263 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4264 ($INTRO_PART): Don't match whitespace.
4265 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4267 ($METHOD): Add $METHOD_TRAILER.
4269 (scan_target_h): New sub.
4270 Change main loop not to collect state.
4271 * target-delegates.c: Rebuild.
4273 2014-07-23 Gary Benson <gbenson@redhat.com>
4275 * cp-support.c (gdb_demangle): Fix build on systems without
4278 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4280 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4281 for reference entry value target data value.
4283 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4285 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4286 value_available_contents_eq.
4288 2014-07-22 Pedro Alves <palves@redhat.com>
4290 * value.c (allocate_optimized_out_value): Don't mark value as
4293 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4295 * MAINTAINERS (Write After Approval): Update my email address.
4297 2014-07-20 Doug Evans <dje@google.com>
4300 * remote.c (putpkt_binary): Add text to error message.
4302 2014-07-20 Yao Qi <yao@codesourcery.com>
4304 * eval.c: Remove "Chill" from comments.
4305 * gdbtypes.h: Likewise.
4306 * symtab.h: Likewise.
4308 2014-07-20 Yao Qi <yao@codesourcery.com>
4310 * std-operator.def: Update comments to TERNOP_SLICE.
4312 2014-07-20 Yao Qi <yao@codesourcery.com>
4314 * std-operator.def: Remove BINOP_RANGE.
4315 * breakpoint.c (watchpoint_exp_is_const): Update.
4316 * expprint.c (dump_subexp_body_standard): Likewise.
4317 * eval.c (init_array_element): Remove dead code.
4318 (evaluate_subexp_standard): Likewise.
4320 2014-07-20 Yao Qi <yao@codesourcery.com>
4322 * std-operator.def: Remove BINOP_IN.
4323 * breakpoint.c (watchpoint_exp_is_const): Update.
4324 * eval.c (evaluate_subexp_standard): Likewise.
4325 * expprint.c (dump_subexp_body_standard): Likewise.
4327 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4329 * microblaze-tdep.c (microblaze_register_names): Add
4330 the rshr and rslr register names.
4331 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4332 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4333 Use of tdesc_numbered_register. Use of
4334 microblaze_register_g_packet_guesses. Use of
4335 tdesc_use_registers. Use of set_gdbarch_register_type.
4336 (microblaze_register_g_packet_guesses): New.
4337 * microblaze-tdep.h (microblaze_reg_num): Add
4338 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4339 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4340 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4341 * features/microblaze-core.xml: New file.
4342 * features/microblaze-stack-protect.xml: New file.
4343 * features/microblaze-with-stack-protect.c: New file.
4344 * features/microblaze-with-stack-protect.xml: New file.
4345 * features/microblaze.xml: New file.
4346 * features/microblaze.c: New file.
4347 * features/Makefile (microblaze-with-stack-protect): Add
4348 microblaze-with-stack-protect microblaze and microblaze-expedite.
4349 * regformats/microblaze-with-stack-protect.dat: New file.
4350 * regformats/microblaze.dat: New file.
4351 * doc/gdb.texinfo (MicroBlaze Features): Added.
4353 2014-07-18 Tom Tromey <tromey@redhat.com>
4355 * exec.c (exec_ops): Now static.
4356 * exec.h (exec_ops): Don't declare.
4358 2014-07-18 Tom Tromey <tromey@redhat.com>
4360 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4361 to find_target_beneath.
4362 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4363 find_target_beneath.
4364 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4366 2014-07-18 Tom Tromey <tromey@redhat.com>
4369 * utils.c (quit): Use target_supports_terminal_ours.
4370 * target.h (target_supports_terminal_ours): Declare.
4371 * target.c (target_supports_delete_record): Don't check
4372 to_delete_record against NULL.
4373 (target_supports_terminal_ours): New function.
4375 2014-07-18 Tom Tromey <tromey@redhat.com>
4378 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4379 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4380 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4381 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4382 * windows-nat.c (windows_xfer_partial): Always delegate.
4383 * record-btrace.c (record_btrace_xfer_partial): Simplify
4385 (record_btrace_fetch_registers, record_btrace_store_registers)
4386 (record_btrace_prepare_to_store, record_btrace_resume)
4387 (record_btrace_wait, record_btrace_find_new_threads)
4388 (record_btrace_thread_alive): Likewise.
4389 * procfs.c (procfs_xfer_partial): Always delegate.
4390 * corelow.c (core_xfer_partial): Always delegate.
4391 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4393 2014-07-18 Tom Tromey <tromey@redhat.com>
4395 * exec.c (exec_make_note_section): Move earlier.
4397 2014-07-17 Doug Evans <dje@google.com>
4400 * maint.c (count_symtabs_and_blocks): Handle NULL
4401 current_program_space.
4402 (report_command_stats): Check global enabled flag in addition to
4403 recorded enabled flag.
4404 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4406 2014-07-16 Pedro Alves <palves@redhat.com>
4408 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4410 2014-07-16 Tom Tromey <tromey@redhat.com>
4412 * target.h (struct target_ops) <to_delete_record>: Reformat
4415 2014-07-16 Tom Tromey <tromey@redhat.com>
4417 * target-delegates.c: Rebuild.
4419 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4421 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4422 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4423 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4424 (avr_pointer_to_address): Likewise.
4425 (avr_address_class_type_flags): New function.
4426 (avr_address_class_type_flags_to_name): Likewise.
4427 (avr_address_class_name_to_type_flags): Likewise.
4428 (avr_gdbarch_init): Set address_class_type_flags,
4429 address_class_type_flags_to_name and
4430 address_class_name_to_type_flags.
4432 2014-07-15 Pedro Alves <palves@redhat.com>
4434 * linux-nat.c (kill_callback): Save errno and work with saved
4437 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4439 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4441 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4443 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4444 breakpoint support correctly.
4446 2014-07-14 Pedro Alves <palves@redhat.com>
4448 * utils.c (prompt_for_continue): Call target_terminal_ours.
4450 2014-07-14 Pedro Alves <palves@redhat.com>
4452 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4453 catch_errors. Don't re-enable stdin or notify observers where,
4455 (fetch_inferior_event_wrapper): Delete.
4457 2014-07-14 Pedro Alves <palves@redhat.com>
4460 * top.c: Include "inf-loop.h".
4461 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4463 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4465 (gdb_readline_wrapper): Store whether the target is async, and
4468 2014-07-14 Pedro Alves <palves@redhat.com>
4471 * top.c (gdb_readline_wrapper_line): Tweak comment.
4472 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4473 the input handler callback.
4475 2014-07-14 Pedro Alves <palves@redhat.com>
4478 * main.c: Include event-top.h.
4479 (handle_command_errors): New function.
4480 (catch_command_errors, catch_command_errors_const): Use it.
4482 2014-07-14 Pedro Alves <palves@redhat.com>
4484 * exceptions.c (catch_command_errors, catch_command_errors_const):
4486 * exceptions.h (catch_command_errors_ftype)
4487 (catch_command_errors_const_ftype): Moved to main.c.
4488 (catch_command_errors, catch_command_errors_const): Delete
4490 * main.c (catch_command_errors_ftype)
4491 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4492 (catch_command_errors, catch_command_errors_const)): Moved here
4493 from exceptions.c and make static.
4495 2014-07-14 Pedro Alves <palves@redhat.com>
4497 * exceptions.c (print_any_exception): Delete.
4498 (catch_exceptions_with_msg): Use exception_print instead of
4499 print_any_exception.
4500 (catch_errors): Use exception_fprintf instead of
4501 print_any_exception.
4502 (catch_command_errors, catch_command_errors_const): Use
4503 exception_print instead of print_any_exception.
4505 2014-07-14 Pedro Alves <palves@redhat.com>
4507 * infcall.c (run_inferior_call): Set 'sync_execution' while
4508 running the inferior call.
4510 2014-07-14 Pedro Alves <palves@redhat.com>
4512 * value.c (value_contents_equal): Delete function.
4513 * value.h (value_contents_equal): Delete declaration.
4515 2014-07-14 Tom Tromey <tromey@redhat.com>
4518 * gdbtypes.c (is_dynamic_type_internal): New function, from
4520 (is_dynamic_type): Rewrite.
4521 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4522 (resolve_dynamic_struct): Likewise.
4523 (resolve_dynamic_type_internal): New function, from
4524 resolve_dynamic_type.
4525 (resolve_dynamic_type): Rewrite.
4527 2014-07-14 Tom Tromey <tromey@redhat.com>
4529 * target.c (target_require_runnable): Also check record_stratum.
4532 2014-07-11 Yao Qi <yao@codesourcery.com>
4534 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4535 thumb_instruction_restores_sp return true.
4537 2014-07-11 Yao Qi <yao@codesourcery.com>
4539 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4540 (thumb_in_function_epilogue_p): Call
4541 thumb_instruction_restores_sp.
4543 2014-07-11 Yao Qi <yao@codesourcery.com>
4545 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4547 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4549 2014-07-11 Gary Benson <gbenson@redhat.com>
4551 * amd64-linux-nat.c (gdbcore.h): Remove include.
4552 (regset.h): Likewise.
4553 (nat/linux-btrace.h): Likewise.
4554 (btrace.h): Likewise.
4555 (gdb_assert.h): Likewise.
4556 (string.h): Likewise.
4557 (sys/uio.h): Likewise.
4558 (sys/debugreg.h): Likewise.
4559 (sys/syscall.h): Likewise.
4560 (sys/procfs.h): Likewise.
4561 (sys/user.h): Likewise.
4562 (asm/ptrace.h): Likewise.
4563 (i386-nat.h): Likewise.
4564 * i386-linux-nat.c (i386-nat.h): Likewise.
4565 (regset.h): Likewise.
4566 (target.h): Likewise.
4567 (linux-nat.h): Likewise.
4568 (nat/linux-btrace.h): Likewise.
4569 (btrace.h): Likewise.
4570 (gdb_assert.h): Likewise.
4571 (string.h): Likewise.
4572 (sys/uio.h): Likewise.
4573 (sys/user.h): Likewise.
4574 (sys/procfs.h): Likewise.
4575 (sys/reg.h): Likewise.
4576 (sys/debugreg.h): Likewise.
4577 (ORIG_EAX): Remove definition.
4579 2014-07-11 Gary Benson <gbenson@redhat.com>
4581 * i386-linux-nat.h: New file.
4582 * x86-linux-nat.h: Likewise.
4583 * x86-linux-nat.c: Likewise.
4584 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4585 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4586 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4587 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4588 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4589 (PTRACE_SETREGSET): Likewise.
4590 (arch_lwp_info): Now in x86-linux-nat.c.
4591 (have_ptrace_getregset): Now in x86-linux-nat.h.
4592 (x86_linux_dr_get): Now in x86-linux-nat.c.
4593 (x86_linux_dr_set): Likewise.
4594 (x86_linux_dr_get_addr): Likewise.
4595 (x86_linux_dr_get_control): Likewise.
4596 (x86_linux_dr_get_status): Likewise.
4597 (update_debug_registers_callback): Likewise.
4598 (x86_linux_dr_set_control): Likewise.
4599 (x86_linux_dr_set_addr): Likewise.
4600 (x86_linux_prepare_to_resume): Likewise.
4601 (x86_linux_new_thread): Likewise.
4602 (x86_linux_new_fork): Likewise.
4603 (x86_linux_get_thread_area): Likewise.
4604 (super_post_startup_inferior): Likewise.
4605 (x86_linux_child_post_startup_inferior): Likewise.
4606 (AMD64_LINUX_USER64_CS): Likewise.
4607 (AMD64_LINUX_X32_DS): Likewise.
4608 (x86_linux_read_description): Likewise.
4609 (x86_linux_enable_btrace): Likewise.
4610 (x86_linux_disable_btrace): Likewise.
4611 (x86_linux_teardown_btrace): Likewise.
4612 (x86_linux_read_btrace): Likewise.
4613 (x86_linux_create_target): Likewise.
4614 (x86_linux_add_target): Likewise.
4615 * i386-linux-nat.c (x86-linux-nat.h): New include.
4616 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4617 (PTRACE_SETREGSET): Likewise.
4618 (arch_lwp_info): Now in x86-linux-nat.c.
4619 (have_ptrace_getregset): Now in x86-linux-nat.h.
4620 (x86_linux_dr_get): Now in x86-linux-nat.c.
4621 (x86_linux_dr_set): Likewise.
4622 (x86_linux_dr_get_addr): Likewise.
4623 (x86_linux_dr_get_control): Likewise.
4624 (x86_linux_dr_get_status): Likewise.
4625 (update_debug_registers_callback): Likewise.
4626 (x86_linux_dr_set_control): Likewise.
4627 (x86_linux_dr_set_addr): Likewise.
4628 (x86_linux_prepare_to_resume): Likewise.
4629 (x86_linux_new_thread): Likewise.
4630 (x86_linux_new_fork): Likewise.
4631 (x86_linux_get_thread_area): Likewise.
4632 (super_post_startup_inferior): Likewise.
4633 (x86_linux_child_post_startup_inferior): Likewise.
4634 (AMD64_LINUX_USER64_CS): Likewise.
4635 (AMD64_LINUX_X32_DS): Likewise.
4636 (x86_linux_read_description): Likewise.
4637 (x86_linux_enable_btrace): Likewise.
4638 (x86_linux_disable_btrace): Likewise.
4639 (x86_linux_teardown_btrace): Likewise.
4640 (x86_linux_read_btrace): Likewise.
4641 (x86_linux_create_target): Likewise.
4642 (x86_linux_add_target): Likewise.
4644 2014-07-11 Gary Benson <gbenson@redhat.com>
4646 * amd64-linux-nat.c: Comment and whitespace changes.
4647 * i386-linux-nat.c: Comment and whitespace changes.
4649 2014-07-11 Gary Benson <gbenson@redhat.com>
4651 * amd64-linux-nat.c (x86_linux_create_target): New function.
4652 (x86_linux_add_target): Likewise.
4653 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4654 * i386-linux-nat.c (x86_linux_create_target): New function.
4655 (x86_linux_add_target): Likewise.
4656 (_initialize_i386_linux_nat): Delegate to the above new functions.
4658 2014-07-11 Gary Benson <gbenson@redhat.com>
4660 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4661 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4662 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4663 (ps_get_thread_area): Delegate to the above.
4665 2014-07-11 Gary Benson <gbenson@redhat.com>
4667 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4668 x86_linux_read_description. All uses updated. amd64-specific
4669 code conditionalized. Conditionalized i386-specific code added.
4670 Redundant cast removed.
4671 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4672 x86_linux_read_description. All uses updated. i386-specific
4673 code conditionalized. Conditionalized amd64-specific code added.
4674 One sizeof replaced with the actual type it is describing.
4676 2014-07-11 Gary Benson <gbenson@redhat.com>
4678 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4679 x86_linux_dr_get. All uses updated.
4680 (amd64_linux_dr_set): Renamed to
4681 x86_linux_dr_set. All uses updated.
4682 (amd64_linux_dr_get_addr): Renamed to
4683 x86_linux_dr_get_addr. All uses updated.
4684 (amd64_linux_dr_get_control): Renamed to
4685 x86_linux_dr_get_control. All uses updated.
4686 (amd64_linux_dr_get_status): Renamed to
4687 x86_linux_dr_get_status. All uses updated.
4688 (amd64_linux_dr_set_control): Renamed to
4689 x86_linux_dr_set_control. All uses updated.
4690 (amd64_linux_dr_set_addr): Renamed to
4691 x86_linux_dr_set_addr. All uses updated.
4692 (amd64_linux_prepare_to_resume): Renamed to
4693 x86_linux_prepare_to_resume. All uses updated.
4694 (amd64_linux_new_thread): Renamed to
4695 x86_linux_new_thread. All uses updated.
4696 (amd64_linux_new_fork): Renamed to
4697 x86_linux_new_fork. All uses updated.
4698 (amd64_linux_child_post_startup_inferior): Renamed to
4699 x86_linux_child_post_startup_inferior. All uses updated.
4700 (amd64_linux_enable_btrace): Renamed to
4701 x86_linux_enable_btrace. All uses updated.
4702 (amd64_linux_disable_btrace): Renamed to
4703 x86_linux_disable_btrace. All uses updated.
4704 (amd64_linux_teardown_btrace): Renamed to
4705 x86_linux_teardown_btrace. All uses updated.
4706 (amd64_linux_read_btrace): Renamed to
4707 x86_linux_read_btrace. All uses updated.
4708 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4709 x86_linux_dr_get. All uses updated.
4710 (i386_linux_dr_set): Renamed to
4711 x86_linux_dr_set. All uses updated.
4712 (i386_linux_dr_get_addr): Renamed to
4713 x86_linux_dr_get_addr. All uses updated.
4714 (i386_linux_dr_get_control): Renamed to
4715 x86_linux_dr_get_control. All uses updated.
4716 (i386_linux_dr_get_status): Renamed to
4717 x86_linux_dr_get_status. All uses updated.
4718 (i386_linux_dr_set_control): Renamed to
4719 x86_linux_dr_set_control. All uses updated.
4720 (i386_linux_dr_set_addr): Renamed to
4721 x86_linux_dr_set_addr. All uses updated.
4722 (i386_linux_prepare_to_resume): Renamed to
4723 x86_linux_prepare_to_resume. All uses updated.
4724 (i386_linux_new_thread): Renamed to
4725 x86_linux_new_thread. All uses updated.
4726 (i386_linux_new_fork): Renamed to
4727 x86_linux_new_fork. All uses updated.
4728 (i386_linux_child_post_startup_inferior): Renamed to
4729 x86_linux_child_post_startup_inferior. All uses updated.
4730 (i386_linux_enable_btrace): Renamed to
4731 x86_linux_enable_btrace. All uses updated.
4732 (i386_linux_disable_btrace): Renamed to
4733 x86_linux_disable_btrace. All uses updated.
4734 (i386_linux_teardown_btrace): Renamed to
4735 x86_linux_teardown_btrace. All uses updated.
4736 (i386_linux_read_btrace): Renamed to
4737 x86_linux_read_btrace. All uses updated.
4739 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4741 * remote.c (extended_remote_post_attach): New function.
4742 (init_extended_remote_ops): Install it as to_post_attach method.
4744 2014-07-09 Pedro Alves <palves@redhat.com>
4746 * infcmd.c (attach_command_post_wait): Don't call
4747 target_terminal_inferior here.
4748 (attach_command): Call it here instead.
4750 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4752 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4754 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4755 from varobj.c, with additional checks.
4756 (c_varobj_ops): Fill in is_path_expr_parent field.
4757 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4758 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4760 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4762 (varobj_default_is_path_expr_parent): New function.
4763 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4764 (varobj_default_is_path_expr_parent): Declare new function.
4766 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4768 * infcmd.c (finish_backward): Turn internal error into normal error.
4770 2014-07-07 Pedro Alves <palves@redhat.com>
4773 * remote.c (async_handle_remote_sigint)
4774 (async_handle_remote_sigint_twice): Call
4775 gdb_call_async_signal_handler instead of
4776 mark_async_signal_handler.
4778 2014-07-07 Tom Tromey <tromey@redhat.com>
4780 * target-delegates.c: Rebuild.
4781 * target.c (target_info_record): Remove.
4782 * record.c (info_record_command): Unconditionally call
4784 * target.h (struct target_ops) <to_info_record>: Use
4785 TARGET_DEFAULT_IGNORE.
4786 (target_info_record): Remove.
4788 2014-07-07 Tom Tromey <tromey@redhat.com>
4790 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4791 TARGET_DEFAULT_NORETURN.
4792 * target.c (generic_tls_error): New function.
4793 (target_translate_tls_address): Don't search target stack.
4794 * target-delegates.c: Rebuild.
4795 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4797 * linux-thread-db.c (thread_db_get_thread_local_address):
4798 Unconditionally call beneath target.
4800 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4802 * cli/cli-logging.c (pop_output_files): Assign targerr to
4805 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4807 * MAINTAINERS (Write After Approval): Update my email address.
4809 2014-07-02 Gary Benson <gbenson@redhat.com>
4811 * proc-service.c (ps_xfer_memory): Update comment.
4812 (ps_pstop): Remove unused function.
4813 (ps_pcontinue): Likewise.
4814 (ps_lstop): Likewise.
4815 (ps_lcontinue): Likewise.
4816 (ps_lgetxregsize): Likewise.
4817 (ps_lgetxregs): Likewise.
4818 (ps_lsetxregs): Likewise.
4819 (ps_plog): Likewise.
4820 (ps_ptread): Likewise.
4821 (ps_ptwrite): Likewise.
4823 2014-07-01 Mark Wielaard <mjw@redhat.com>
4825 * dwarf2read.c (add_array_cv_type): New function.
4826 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4827 (read_tag_volatile_type): Likewise.
4829 2014-07-01 Tom Tromey <tromey@redhat.com>
4831 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4832 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4833 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4834 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4835 * command.h (cmd_cfunc_ftype): Move earlier.
4836 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4837 (add_com, add_info): Use cmd_cfunc_ftype.
4839 2014-06-30 Tom Tromey <tromey@redhat.com>
4841 * symtab.c (operator_chars): Make parameters and return type
4843 (file_matches): Make "files" const.
4844 (struct search_symbols_data) <files>: Now const.
4845 (search_symbols): Make "regexp" and "files" parameters const.
4847 (symtab_symbol_info): Remove cast.
4848 (rbreak_command): Update.
4849 * symtab.h (search_symbols): Update.
4851 2014-06-27 Yao Qi <yao@codesourcery.com>
4853 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4854 Change parameter type to 'struct thread_info *'. Caller
4856 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4858 * dummy-frame.c (struct dummy_frame_id): New.
4859 (dummy_frame_id_eq): New function.
4860 (struct dummy_frame) <id>: Change its type to 'struct
4862 (dummy_frame_push): Add parameter ptid and save it in
4864 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4866 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4868 (lookup_dummy_frame): Change parameter type to 'struct
4869 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4870 instead of frame_id_eq.
4871 (dummy_frame_pop): Add parameter ptid. Callers updated.
4872 Update comments. Compose dummy_frame_id and pass it to
4874 (dummy_frame_discard): Add parameter ptid.
4875 (dummy_frame_sniffer): Compose dummy_frame_id and call
4876 dummy_frame_id_eq instead of frame_id_eq.
4877 (fprint_dummy_frames): Print ptid.
4878 * dummy-frame.h: Remove comments.
4879 (dummy_frame_push): Add ptid in declaration.
4880 (dummy_frame_pop, dummy_frame_discard): Likewise.
4882 2014-06-26 Tom Tromey <tromey@redhat.com>
4884 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4885 * command.h (error_no_arg): Update.
4887 2014-06-26 Tom Tromey <tromey@redhat.com>
4889 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4890 (do_show_command): Make "arg" const.
4891 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4893 2014-06-26 Tom Tromey <tromey@redhat.com>
4895 * record-full.c (record_full_get_bookmark): Make "args" const.
4896 (record_full_goto_bookmark): Make "raw_bookmark" const.
4897 * record.c (record_goto): New function.
4898 (cmd_record_goto): Use it. Now static.
4899 * record.h (record_goto): Declare.
4900 (cmd_record_goto): Remove declaration.
4901 * target-delegates.c: Rebuild.
4902 * target.h (struct target_ops) <to_get_bookmark,
4903 to_goto_bookmark>: Make parameter const.
4905 2014-06-26 Tom Tromey <tromey@redhat.com>
4907 * defs.h (generic_load): Update.
4908 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4909 * monitor.c (monitor_load): Make "args" const.
4910 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4911 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4913 (mips_load): Make "file" const.
4914 * remote-sim.c (gdbsim_load): Make "args" const.
4915 * remote.c (remote_load): Make "name" const.
4916 * symfile.c (generic_load): Make "args" const.
4917 * target-delegates.c: Rebuild.
4918 * target.c (target_load): Make "arg" const.
4919 (debug_to_load): Make "args" const.
4920 * target.h (struct target_ops) <to_load>: Make parameter const.
4921 (target_load): Update.
4923 2014-06-26 Tom Tromey <tromey@redhat.com>
4926 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4927 (dwarf2_physname, read_partial_die)
4928 (guess_partial_die_structure_name, fixup_partial_die)
4929 (guess_full_die_structure_name, anonymous_struct_prefix)
4930 (dwarf2_name): Use per-BFD obstack.
4932 2014-06-26 Yao Qi <yao@codesourcery.com>
4934 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4935 dummyframe and this_id into inner block below.
4937 2014-06-26 Yao Qi <yao@codesourcery.com>
4939 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4940 with "signal_pass[0]" in the initialization of signal_pass.
4942 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4944 * record-btrace.c (record_btrace_generating_corefile)
4945 (record_btrace_prepare_to_generate_core)
4946 (record_btrace_done_generating_core): New.
4947 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4948 (record_btrace_store_registers, record_btrace_prepare_to_store):
4949 Forward request when generating a core file.
4950 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4951 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4952 to_done_generating_core.
4954 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4956 * target.h (target_ops) <to_prepare_to_generate_core>
4957 <to_done_generating_core>: New.
4958 (target_prepare_to_generate_core, target_done_generating_core): New.
4959 * target.c (target_prepare_to_generate_core)
4960 (target_done_generating_core): New.
4961 * target-delegates.c: Regenerate.
4962 * gcore.c: (write_gcore_file): Rename to ...
4963 (write_gcore_file_1): ...this.
4964 (write_gcore_file): Call target_prepare_to_generate_core
4965 and target_done_generating_core.
4967 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4969 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4970 * gcore.c (write_gcore_file): Free memory returned from
4971 make_corefile_notes.
4972 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4973 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4975 2014-06-24 Yao Qi <yao@codesourcery.com>
4977 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4978 (arm_linux_init_abi): Set skip_trampoline_code with
4979 gdbarch_skip_trampoline_code instead of
4980 find_solib_trampoline_target.
4982 2014-06-24 Yao Qi <yao@codesourcery.com>
4984 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4985 arm_skip_bx_reg returns non-zero.
4987 2014-06-24 Yao Qi <yao@codesourcery.com>
4989 * arm-tdep.c (arm_skip_bx_reg): New function.
4990 (arm_skip_stub): Call arm_skip_bx_reg.
4992 2014-06-23 Don Breazeal <donb@codesourcery.com>
4994 * MAINTAINERS: Add myself as write-after-approval maintainer.
4996 2014-06-23 Pedro Alves <palves@redhat.com>
4998 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4999 DR_CONTROL before setting DR0..DR3.
5000 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5001 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5002 bits of DR_CONTROL related to the debug register slot being
5003 disabled. If all slots are vacant, clear local slowdown as well,
5004 and assert DR_CONTROL is 0.
5006 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5008 * python/lib/gdb/command/xmethods.py
5009 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5010 current progspace only if the string "progspace" matches LOCUS_RE.
5012 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5014 Fix --with-system-readline with readline-6.3 patch 5.
5015 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5016 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5019 2014-06-20 Tom Tromey <tromey@redhat.com>
5021 * dwarf2read.c (dw2_get_real_path): Use correct type in
5023 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5025 2014-06-20 Gary Benson <gbenson@redhat.com>
5027 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5028 * common/glibc_thread_db.h: Likewise.
5029 * common/i386-cpuid.h: Likewise.
5030 * common/i386-gcc-cpuid.h: Likewise.
5031 * common/linux-btrace.h: Likewise.
5032 * common/linux-osdata.h: Likewise.
5033 * common/linux-procfs.h: Likewise.
5034 * common/linux-ptrace.h: Likewise.
5035 * common/mips-linux-watch.h: Likewise.
5036 * common/linux-btrace.c: Moved to nat.
5037 * common/linux-osdata.c: Likewise.
5038 * common/linux-procfs.c: Likewise.
5039 * common/linux-ptrace.c: Likewise.
5040 * common/mips-linux-watch.c: Likewise.
5041 * nat/gdb_thread_db.h: Moved from common.
5042 * nat/glibc_thread_db.h: Likewise.
5043 * nat/i386-cpuid.h: Likewise.
5044 * nat/i386-gcc-cpuid.h: Likewise.
5045 * nat/linux-btrace.c: Likewise.
5046 * nat/linux-btrace.h: Likewise.
5047 * nat/linux-osdata.c: Likewise.
5048 * nat/linux-osdata.h: Likewise.
5049 * nat/linux-procfs.c: Likewise.
5050 * nat/linux-procfs.h: Likewise.
5051 * nat/linux-ptrace.c: Likewise.
5052 * nat/linux-ptrace.h: Likewise.
5053 * nat/mips-linux-watch.c: Likewise.
5054 * nat/mips-linux-watch.h: Likewise.
5055 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5056 (object file files): Reordered.
5057 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5058 of glibc_thread_db.h.
5060 2014-06-20 Gary Benson <gbenson@redhat.com>
5062 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5063 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5064 (i386_dr_low): Likewise.
5065 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5066 (i386_dr_low_set_addr): Likewise.
5067 (i386_dr_low_get_addr): Likewise.
5068 (i386_dr_low_can_set_control): Likewise.
5069 (i386_dr_low_set_control): Likewise.
5070 (i386_dr_low_get_control): Likewise.
5071 (i386_dr_low_get_status): Likewise.
5072 (i386_get_debug_register_length): Likewise.
5073 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5074 (i386_dr_low): Likewise.
5075 * nat/i386-dregs.c (i386-low.h): Remove include.
5076 (i386-nat.h): Likewise.
5077 (nat/i386-dregs.h): New include.
5078 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5079 (i386_dr_low_set_addr): Likewise.
5080 (i386_dr_low_get_addr): Likewise.
5081 (i386_dr_low_can_set_control): Likewise.
5082 (i386_dr_low_set_control): Likewise.
5083 (i386_dr_low_get_control): Likewise.
5084 (i386_dr_low_get_status): Likewise.
5085 (i386_get_debug_register_length): Likewise.
5086 (debug_hw_points): Likewise.
5088 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5090 * Makefile.in (SFILES): Add d-exp.y.
5091 (YYFILES): Add d-exp.c.
5092 (YYOBJ): Add d-exp.o.
5093 (local-maintainer-clean): Delete d-exp.c.
5094 * d-exp.y: New file.
5095 * d-lang.h (d_parse): New declaration.
5096 (d_error): New declaration.
5097 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5098 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5099 PREC_ORDER operators.
5100 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5102 2014-06-19 Yao Qi <yao@codesourcery.com>
5104 * gdbthread.h (any_running): Remove the declaration.
5105 * thread.c (any_running): Remove.
5107 2014-06-19 Yao Qi <yao@codesourcery.com>
5109 * gdbthread.h (struct thread_info) <state>: Change its type to
5110 'enum thread_state'. Update comments.
5112 2014-06-19 Pedro Alves <palves@redhat.com>
5114 * gdbthread.h (ALL_THREADS): Delete.
5115 (ALL_NON_EXITED_THREADS): New macro.
5116 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5117 instead of ALL_THREADS.
5118 * infrun.c (find_thread_needs_step_over)
5119 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5120 instead of ALL_THREADS.
5121 * record-btrace.c (record_btrace_open)
5122 (record_btrace_stop_recording, record_btrace_close)
5123 (record_btrace_is_replaying, record_btrace_resume)
5124 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5125 * remote.c (append_pending_thread_resumptions): Likewise.
5126 * thread.c (thread_apply_all_command): Likewise.
5128 2014-06-19 Gary Benson <gbenson@redhat.com>
5130 * i386-nat.c (i386_stopped_by_watchpoint):
5131 Use i386_dr_stopped_by_watchpoint.
5132 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5133 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5135 2014-06-19 Gary Benson <gbenson@redhat.com>
5137 * nat/i386-dregs.c: New file.
5138 * Makefile.in (i386-dregs.o): New rule.
5139 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5140 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5141 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5142 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5143 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5144 * config/i386/go32.mh (NATDEPFILES): Likewise.
5145 * config/i386/linux.mh (NATDEPFILES): Likewise.
5146 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5147 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5148 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5149 * i386-nat.h (debug_hw_points): New declaration.
5150 * i386-nat.c (breakpoint.h): Remove include.
5151 (command.h): Likewise.
5152 (target.h): Likewise.
5153 (gdb_assert.h): Likewise.
5154 (debug_hw_points): Made nonstatic.
5155 (debug_printf): Now in i386-dregs.c.
5156 (TARGET_HAS_DR_LEN_8): Likewise.
5157 (DR_CONTROL_SHIFT): Likewise.
5158 (DR_CONTROL_SIZE): Likewise.
5159 (DR_RW_EXECUTE): Likewise.
5160 (DR_RW_WRITE): Likewise.
5161 (DR_RW_READ): Likewise.
5162 (DR_RW_IORW): Likewise.
5163 (DR_LEN_1): Likewise.
5164 (DR_LEN_2): Likewise.
5165 (DR_LEN_4): Likewise.
5166 (DR_LEN_8): Likewise.
5167 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5168 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5169 (DR_ENABLE_SIZE): Likewise.
5170 (DR_LOCAL_SLOWDOWN): Likewise.
5171 (DR_GLOBAL_SLOWDOWN): Likewise.
5172 (DR_CONTROL_RESERVED): Likewise.
5173 (I386_DR_CONTROL_MASK): Likewise.
5174 (I386_DR_VACANT): Likewise.
5175 (I386_DR_LOCAL_ENABLE): Likewise.
5176 (I386_DR_GLOBAL_ENABLE): Likewise.
5177 (I386_DR_DISABLE): Likewise.
5178 (I386_DR_SET_RW_LEN): Likewise.
5179 (I386_DR_GET_RW_LEN): Likewise.
5180 (I386_DR_WATCH_HIT): Likewise.
5181 (i386_wp_op_t): Likewise.
5182 (i386_show_dr): Likewise.
5183 (i386_length_and_rw_bits): Likewise.
5184 (i386_insert_aligned_watchpoint): Likewise.
5185 (i386_remove_aligned_watchpoint): Likewise.
5186 (i386_handle_nonaligned_watchpoint): Likewise.
5187 (i386_update_inferior_debug_regs): Likewise.
5188 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5189 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5190 (i386_region_ok_for_watchpoint):
5191 Use i386_dr_region_ok_for_watchpoint.
5192 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5194 2014-06-19 Gary Benson <gbenson@redhat.com>
5196 * i386-nat.c (i386_insert_hw_breakpoint): Use
5197 i386_insert_watchpoint.
5198 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5200 2014-06-19 Gary Benson <gbenson@redhat.com>
5202 * i386-nat.c (i386_dr_show): Renamed to
5203 i386_show_dr and made static. All uses updated.
5204 (i386_dr_length_and_rw_bits): Renamed to
5205 i386_length_and_rw_bits and made static.
5207 (i386_dr_insert_aligned_watchpoint): Renamed to
5208 i386_insert_aligned_watchpoint and made static.
5210 (i386_dr_remove_aligned_watchpoint): Renamed to
5211 i386_remove_aligned_watchpoint and made static.
5213 (i386_dr_update_inferior_debug_regs): Renamed to
5214 i386_update_inferior_debug_regs and made static.
5216 * nat/i386-dregs.h (i386_dr_show): Removed.
5217 (i386_dr_length_and_rw_bits): Likewise.
5218 (i386_dr_insert_aligned_watchpoint): Likewise.
5219 (i386_dr_remove_aligned_watchpoint): Likewise.
5220 (i386_dr_update_inferior_debug_regs): Likewise.
5222 2014-06-19 Gary Benson <gbenson@redhat.com>
5224 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5225 * configure: Regenerate.
5226 * config.in: Likewise.
5227 * main.c (signal.h): New include.
5228 (setup_alternate_signal_stack): New function.
5229 (captured_main): Call the above.
5230 * cp-support.c (signal.h): New include.
5231 (catch_demangler_crashes): New flag.
5232 (SIGJMP_BUF): New define.
5233 (SIGSETJMP): Likewise.
5234 (SIGLONGJMP): Likewise.
5235 (gdb_demangle_jmp_buf): New static global.
5236 (gdb_demangle_attempt_core_dump): Likewise.
5237 (gdb_demangle_signal_handler): New function.
5238 (gdb_demangle): If catch_demangler_crashes is set, install the
5239 above signal handler before calling bfd_demangle, and restore
5240 the original signal handler afterwards. Display the offending
5241 symbol and call demangler_warning the first time a segmentation
5243 (_initialize_cp_support): New maint set/show command.
5245 2014-06-19 Gary Benson <gbenson@redhat.com>
5247 * utils.h (resource_limit_kind): New enum.
5248 (can_dump_core): New declaration.
5249 (warn_cant_dump_core): Likewise.
5250 (dump_core): Likewise.
5251 * utils.c (dump_core): Made nonstatic. Added new
5252 parameter "limit_kind".
5253 (can_dump_core): Made nonstatic. Moved printing code to...
5254 (warn_cant_dump_core): New function.
5255 (can_dump_core_warn): Likewise.
5256 (internal_vproblem): Replace calls to can_dump_core with
5257 calls to can_dump_core_warn. Supply new argument to each.
5259 2014-06-19 Gary Benson <gbenson@redhat.com>
5261 * utils.h (demangler_vwarning): New declaration.
5262 (demangler_warning): Likewise.
5263 * utils.c (struct internal_problem)
5264 <user_settable_should_quit>: New field.
5265 <user_settable_should_dump_core>: Likewise
5266 (internal_error_problem): Add values for above new fields.
5267 (internal_warning_problem): Likewise.
5268 (demangler_warning_problem): New static global.
5269 (demangler_vwarning): New function.
5270 (demangler_warning): Likewise.
5271 (add_internal_problem_command): Selectively add commands.
5272 (_initialize_utils): New internal problem command.
5273 * maint.c (maintenance_demangler_warning): New function.
5274 (_initialize_maint_cmds): New command.
5276 2014-06-18 Tom Tromey <tromey@redhat.com>
5278 * f-valprint.c (info_common_command_for_block): Update.
5279 * symtab.h (struct general_symbol_info) <common_block>: Now
5282 2014-06-18 Tom Tromey <tromey@redhat.com>
5284 * symtab.h (struct symtab) <blockvector>: Now const.
5285 * ada-lang.c (ada_add_global_exceptions): Update.
5286 * buildsym.c (augment_type_symtab): Update.
5287 * dwarf2read.c (dw2_lookup_symbol): Update.
5288 * jit.c (finalize_symtab): Update.
5289 * jv-lang.c (add_class_symtab_symbol): Update.
5290 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5292 * objfiles.c (objfile_relocate1): Update.
5293 * psymtab.c (lookup_symbol_aux_psymtabs)
5294 (maintenance_check_psymtabs): Update.
5295 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5297 * spu-tdep.c (spu_catch_start): Update.
5298 * symmisc.c (dump_symtab_1): Update.
5299 * symtab.c (lookup_global_symbol_from_objfile)
5300 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5301 (basic_lookup_transparent_type_quick)
5302 (basic_lookup_transparent_type, find_pc_sect_symtab)
5303 (find_pc_sect_line, search_symbols): Update.
5304 * block.c (find_block_in_blockvector): Make "bl" const.
5305 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5307 (blockvector_contains_pc): Make "bv" const.
5308 (block_for_pc_sect): Update.
5309 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5310 (blockvector_contains_pc): Update.
5311 * breakpoint.c (resolve_sal_pc): Update.
5312 * inline-frame.c (block_starting_point_at): Update.
5314 2014-06-18 Tom Tromey <tromey@redhat.com>
5316 * completer.c (complete_line): Make "line_buffer" const.
5317 * completer.h (complete_line): Update.
5319 2014-06-18 Tom Tromey <tromey@redhat.com>
5321 * symtab.c (add_macro_name): Remove unneeded cast.
5323 2014-06-18 Tom Tromey <tromey@redhat.com>
5325 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5326 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5328 2014-06-18 Tom Tromey <tromey@redhat.com>
5330 * probe.c (info_probes_for_ops): Make "arg" const.
5331 * probe.h (info_probes_for_ops): Update.
5333 2014-06-18 Tom Tromey <tromey@redhat.com>
5335 * varobj.c (varobj_create): Update.
5336 * valops.c (value_of_this): Update.
5337 * tracepoint.c (add_local_symbols, scope_info): Update.
5338 * symtab.h (struct general_symbol_info) <block>: Now const.
5339 * symtab.c (skip_prologue_sal)
5340 (default_make_symbol_completion_list_break_on)
5341 (skip_prologue_using_sal): Update.
5342 * stack.h (iterate_over_block_locals)
5343 (iterate_over_block_local_vars): Update.
5344 * stack.c (print_frame_args): Update.
5345 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5347 (get_selected_block): Make return type const.
5348 * python/py-frame.c (frapy_block): Update.
5349 * python/py-block.c (gdbpy_block_for_pc): Update.
5350 * p-exp.y (%union) <bval>: Now const.
5351 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5352 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5353 * m2-exp.y (%union) <bval>: Now const.
5354 * linespec.c (get_current_search_block): Make return type const.
5355 (create_sals_line_offset, find_label_symbols): Update.
5356 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5358 (block_starting_point_at): Make "block" const.
5359 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5360 (check_exception_resume): Update.
5361 * guile/scm-frame.c (gdbscm_frame_block): Update.
5362 * guile/scm-block.c (gdbscm_lookup_block): Update.
5363 * frame.h (get_frame_block): Update.
5364 (get_selected_block): Make return type const.
5365 * frame.c (frame_id_inner): Update.
5366 * f-valprint.c (info_common_command_for_block)
5367 (info_common_command): Update.
5368 * dwarf2loc.c (dwarf2_find_location_expression)
5369 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5370 (locexpr_describe_location_piece): Update.
5371 * c-exp.y (%union) <bval>: Now const.
5372 * breakpoint.c (resolve_sal_pc): Update.
5373 * blockframe.c (get_frame_block):Make return type const.
5374 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5375 (block_innermost_frame): Update.
5376 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5377 (block_for_pc, block_for_pc_sect): Update.
5378 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5380 (block_for_pc_sect, block_for_pc): Make return type const.
5381 * ax-gdb.c (gen_expr): Update.
5382 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5383 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5384 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5385 (ada_read_var_value): Update.
5386 * ada-exp.y (struct name_info) <block>: Now const.
5388 (block_lookup): Constify.
5390 2014-06-18 Gary Benson <gbenson@redhat.com>
5392 * nat/i386-dregs.h: New file.
5393 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5394 * i386-nat.h (i386-dregs.h): New include.
5395 (DR_FIRSTADDR): Now in i386-dregs.h.
5396 (DR_LASTADDR): Likewise.
5397 (DR_NADDR): Likewise.
5398 (DR_STATUS): Likewise.
5399 (DR_CONTROL): Likewise.
5400 (i386_debug_reg_state): Likewise.
5401 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5403 2014-06-18 Don Breazeal <donb@codesourcery.com>
5405 * breakpoint.c (set_longjmp_breakpoint): Call
5406 momentary_breakpoint_from_master with additional argument.
5407 (set_longjmp_breakpoint_for_call_dummy): Call
5408 momentary_breakpoint_from_master with additional argument.
5409 (set_std_terminate_breakpoint): Call
5410 momentary_breakpoint_from_master with additional argument.
5411 (momentary_breakpoint_from_master): Add argument to function
5412 definition and use it to initialize structure member flag.
5413 (clone_momentary_breakpoint): Call
5414 momentary_breakpoint_from_master with additional argument.
5415 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5416 member flags set in momentary_breakpoint_from_master.
5418 2014-06-18 Gary Benson <gbenson@redhat.com>
5420 * i386-nat.c (i386_show_dr): Renamed to
5421 i386_dr_show and made nonstatic. All uses updated.
5422 (i386_length_and_rw_bits): Renamed to
5423 i386_dr_length_and_rw_bits and made nonstatic.
5425 (i386_insert_aligned_watchpoint): Renamed to
5426 i386_dr_insert_aligned_watchpoint and made nonstatic.
5428 (i386_remove_aligned_watchpoint): Renamed to
5429 i386_dr_remove_aligned_watchpoint and made nonstatic.
5431 (i386_update_inferior_debug_regs): Renamed to
5432 i386_dr_update_inferior_debug_regs and made nonstatic.
5435 2014-06-18 Gary Benson <gbenson@redhat.com>
5437 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5438 (i386_dr_low_can_set_control): Likewise.
5439 (i386_dr_low_set_addr): Likewise.
5440 (i386_dr_low_set_control): Likewise.
5441 (i386_dr_low_get_addr): Likewise.
5442 (i386_dr_low_get_status): Likewise.
5443 (i386_dr_low_get_control): Likewise.
5444 (i386_insert_aligned_watchpoint): Use new macros.
5445 (i386_update_inferior_debug_regs): Likewise.
5446 (i386_stopped_data_address): Likewise.
5448 2014-06-18 Gary Benson <gbenson@redhat.com>
5450 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5451 New parameter. All uses updated.
5453 2014-06-18 Gary Benson <gbenson@redhat.com>
5455 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5458 2014-06-18 Gary Benson <gbenson@redhat.com>
5460 * i386-nat.c (debug_printf): New macro.
5461 (i386_get_debug_register_length): Likewise.
5462 (TARGET_HAS_DR_LEN_8): Use above macro.
5463 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5464 and printf_unfiltered. Use phex to format values.
5466 2014-06-18 Gary Benson <gbenson@redhat.com>
5468 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5471 2014-06-18 Gary Benson <gbenson@redhat.com>
5473 * i386-nat.c: Comment changes.
5475 2014-06-18 Gary Benson <gbenson@redhat.com>
5477 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5479 2014-06-18 Gary Benson <gbenson@redhat.com>
5481 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5482 (i386_insert_aligned_watchpoint): Likewise.
5483 (i386_remove_aligned_watchpoint): Likewise.
5484 (i386_handle_nonaligned_watchpoint): Likewise.
5486 2014-06-18 Gary Benson <gbenson@redhat.com>
5488 * i386-nat.c: Whitespace changes.
5490 2014-06-17 Samuel Bronson <naesten@gmail.com>
5492 * MAINTAINERS: Update Roland McGrath's email address.
5493 Thanks to Sergio Durigan Junior for pointing out that he left
5494 Red Hat a while ago, and giving me a current address.
5496 2014-06-17 Tom Tromey <tromey@redhat.com>
5498 * utils.h (savestring): Remove declaration.
5500 2014-06-17 Tom Tromey <tromey@redhat.com>
5502 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5504 2014-06-16 Keith Seitz <keiths@redhat.com>
5507 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5508 to update the varobj if inferior_ptid is null_ptid.
5510 2014-06-16 Tom Tromey <tromey@redhat.com>
5512 * target.h (struct target_ops) <to_info_proc>: Make parameter
5514 (target_info_proc): Update.
5515 * target.c (target_info_proc): Make "args" const.
5516 * procfs.c (procfs_info_proc): Update.
5517 * linux-tdep.c (linux_info_proc): Update.
5518 (linux_core_info_proc_mappings): Make "args" const.
5519 (linux_core_info_proc): Update.
5520 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5521 * gdbarch.c: Rebuild.
5522 * gdbarch.h: Rebuild.
5523 * corelow.c (core_info_proc): Update.
5525 2014-06-16 Tom Tromey <tromey@redhat.com>
5527 * target.h (struct target_ops) <to_disconnect>: Make parameter
5529 (target_disconnect): Update.
5530 * target.c (target_disconnect): Make "args" const.
5531 * target-delegates.c: Rebuild.
5532 * remote.c (remote_disconnect): Update.
5533 * record.h (record_disconnect): Update.
5534 * record.c (record_disconnect): Update.
5535 * inf-child.c (inf_child_disconnect): Update.
5537 2014-06-16 Tom Tromey <tromey@redhat.com>
5539 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5540 * target.c (debug_to_rcmd, default_rcmd): Update.
5541 * target-delegates.c: Rebuild.
5542 * remote.c (remote_rcmd): Update.
5543 * monitor.c (monitor_rcmd): Update.
5545 2014-06-16 Pedro Alves <palves@redhat.com>
5547 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5548 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5549 have OBJF_SHARED set.
5550 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5551 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5552 instead of OBJF_USERLOADED.
5553 * objfiles.h (OBJF_SHARED): Update comment.
5554 (userloaded_objfile_contains_address_p): Rename to ...
5555 (shared_objfile_contains_address_p): ... this, and update
5557 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5559 (remove_symbol_file_command): Skip objfiles that don't have
5562 2014-06-16 Tom Tromey <tromey@redhat.com>
5564 * minsyms.h (prim_record_minimal_symbol)
5565 (prim_record_minimal_symbol_and_info): Update comments.
5567 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5569 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5570 or --without-guile, according to how GDB was built.
5572 2014-06-13 Tom Tromey <tromey@redhat.com>
5574 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5576 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5578 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5580 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5581 help_list.Pass all_commands, not -1, to help_list.
5582 * cli/cli-dump.c (dump_command, append_command)
5583 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5584 (binary_dump_command, binary_append_command): Pass all_commands,
5585 not -1, to help_list.
5586 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5588 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5590 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5592 * top.c (set_history): Pass all_commands, not -1, to help_list.
5593 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5594 all_commands, not -1, to help_list.
5595 * symfile.c (overlay_command): Pass all_commands, not -1, to
5597 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5599 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5601 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5603 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5604 not -1, to help_list.
5605 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5606 not -1, to help_list.
5607 * maint.c (maintenance_command, maintenance_info_command)
5608 (maintenance_print_command, maintenance_set_cmd): Pass
5609 all_commands, not -1, to help_list.
5610 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5612 * language.c (set_check): Pass all_commands, not -1, to help_list.
5613 * infcmd.c (unset_command): Pass all_commands, not -1, to
5615 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5617 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5619 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5621 * breakpoint.c (save_command): Pass all_commands, not -1, to
5623 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5624 all_commands, not -1, to help_list.
5626 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5628 * regcache.c (struct register_to_invalidate): New structure.
5629 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5631 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5633 2014-06-12 Yao Qi <yao@codesourcery.com>
5635 * varobj.c (varobj_get_num_children): Call
5636 varobj_is_dynamic_p.
5637 (varobj_list_children): Likewise.
5638 (varobj_update): Likewise. Update comments.
5640 2014-06-12 Yao Qi <yao@codesourcery.com>
5642 * varobj.c (varobj_pretty_printed_p): Rename to ...
5643 (varobj_is_dynamic_p): ... this. New function.
5644 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5645 (varobj_is_dynamic_p): Declare.
5646 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5647 (mi_print_value_p, varobj_update_one): Likewise.
5649 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5650 Yao Qi <yao@codesourcery.com>
5652 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5653 (varobj_get_iterator): Wrap up code for pretty-printer by
5654 "#if HAVE_PYTHON" and "#endif".
5655 (update_dynamic_varobj_children): Likewise.
5657 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5658 Yao Qi <yao@codesourcery.com>
5660 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5661 gdb_python_initialized is false. Move some code from varobj.c.
5662 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5663 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5664 (struct varobj_item): Moved to varobj-iter.h".
5665 (varobj_clear_saved_item): New function.
5666 (update_dynamic_varobj_children): Move python-related code to
5668 (free_variable): Call varobj_clear_saved_item and
5671 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5672 Yao Qi <yao@codesourcery.com>
5674 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5675 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5676 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5677 (py-varobj.o): New rule.
5678 * python/py-varobj.c: New file.
5679 * python/python-internal.h (py_varobj_get_iterator): Declare.
5680 * varobj-iter.h: New file.
5681 * varobj.c: Include "varobj-iter.h"
5682 (struct varobj) <child_iter>: Change its type from "PyObject *"
5683 to "struct varobj_iter *".
5684 <saved_item>: Likewise.
5685 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5686 [HAVE_PYTHON] (varobj_get_iterator): New function.
5687 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5688 python-specific code to python/py-varobj.c.
5689 (install_visualizer): Call varobj_iter_delete instead of
5691 * varobj.h (varobj_ensure_python_env): Declare.
5693 2014-06-12 Yao Qi <yao@codesourcery.com>
5695 * varobj.c (struct varobj_item): New structure.
5696 (create_child_with_value): Update declaration.
5697 (varobj_add_child): Replace arguments 'name' and 'value' with
5698 'item'. All callers updated.
5699 (install_dynamic_child): Likewise.
5700 (update_dynamic_varobj_children): Likewise.
5701 (varobj_add_child): Likewise.
5702 (create_child_with_value): Likewise.
5704 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5706 * NEWS: Create a new section for the next release branch.
5707 Rename the section of the current branch, now that it has
5710 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5712 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5713 * version.in: Bump version to 7.8.50.DATE-cvs.
5715 2014-06-11 Pedro Alves <palves@redhat.com>
5718 * ser-mingw.c (net_windows_socket_check_pending): New function.
5719 (net_windows_select_thread): Ignore spurious wakeups. Use
5720 net_windows_socket_check_pending.
5721 (net_windows_wait_handle): Check for pending events with
5722 ioctlsocket, through net_windows_socket_check_pending, instead of
5723 checking the socket's event.
5725 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5727 * python/python-internal.h (gdb_PyObject_GetAttrString)
5728 (gdb_PyObject_HasAttrString): New inline function definitions.
5729 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5730 char * of the second argument to PyObject_GetAttrString.
5732 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5734 * serial.c (serial_write): Fix index of character to be printed
5735 in call to serial_logchar when serial debug traces are enabled.
5737 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5739 * gdbtypes (resolve_dynamic_range): Add function description.
5741 2014-06-09 Pedro Alves <palves@redhat.com>
5743 * linux-nat.c (linux_child_follow_fork): Initialize status with
5744 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5745 inner block. Only pass the signal to PTRACE_DETACH if in pass
5748 2014-06-09 Gary Benson <gbenson@redhat.com>
5750 * common/signals.c (gdb_signal_from_host): Reorder to separate
5751 the always-available ANSI-standard signals from the signals that
5753 (do_gdb_signal_to_host): Likewise.
5754 * proc-events.c (signal_table): Likewise.
5756 2014-06-08 Hui Zhu <hui@codesourcery.com>
5758 * common/linux-ptrace.c (linux_disable_event_reporting): New
5760 * common/linux-ptrace.h (linux_disable_event_reporting): New
5762 * linux-nat.c (linux_child_follow_fork): Do a single step before
5765 2014-06-07 Keith Seitz <keiths@redhat.com>
5769 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5770 from symbol_matches_domain in symtab.c. All local callers
5771 of symbol_matches_domain updated.
5772 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5773 search STRUCT_DOMAIN.
5774 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5775 independently. standard_lookup will do that automatically.
5776 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5777 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5778 (cp_lookup_symbol_in_namespace): Likewise.
5779 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5780 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5781 may return a STRUCT_DOMAIN match.
5782 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5783 * cp-support.c: Include language.h.
5784 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5786 * psymtab.c (match_partial_symbol): Compare the requested
5787 domain with the symbol's domain directly.
5788 (lookup_partial_symbol): Likewise.
5789 * symtab.c (lookup_symbol_in_language): Explain when/why
5790 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5791 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5792 appropriate languages.
5793 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5794 and moved to ada-lang.c
5795 (lookup_block_symbol): Explain that this function only returns
5796 symbol matching the requested DOMAIN.
5797 Compare the requested domain with the symbol's domain directly.
5798 (iterate_over_symbols): Compare the requested domain with the
5799 symbol's domain directly.
5800 * symtab.h (symbol_matches_domain): Remove.
5802 2014-06-06 Doug Evans <xdje42@gmail.com>
5804 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5805 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5806 (gdbscm_guile_version_is_at_least): Declare.
5807 (gdbscm_scm_string_to_int): Declare.
5808 * guile/guile.c (gdbscm_guile_major_version): New global.
5809 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5810 (guile_datadir): New static global.
5811 (gdbscm_guile_data_directory): New function.
5812 (initialize_scheme_side): Update.
5813 (misc_guile_functions): Add guile-data-directory.
5814 (initialize_gdb_module): Fetch guile version number.
5815 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5816 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5817 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5818 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5820 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5821 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5822 * guile/scm-value.c (gdbscm_value_to_string): Only call
5823 scm_port_conversion_strategy if Guile version >= 2.0.6.
5825 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5827 * main.c (print_gdb_help): Add -q and --silent.
5829 2014-06-06 Gary Benson <gbenson@redhat.com>
5831 * common/signals.c: Remove preprocessor conditionals for
5832 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5833 SIGSEGV and SIGTERM.
5834 * proc-events.c: Likewise.
5836 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5838 * symfile.c (symfile_free_objfile): Remove restriction to
5840 * symfile-mem.c (symbol_file_add_from_memory): Call
5841 add_target_sections_of_objfile.
5843 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5845 * guile/scm-value.c (gdbscm_history_append_x): Use
5846 'vlscm_get_value_smob_arg_unsafe' instead of
5847 'vlscm_scm_to_value'.
5849 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5852 * utils.c (printchar): Don't escape at all if quoter is NUL.
5853 Update function documentation to clarify effect of parameter
5855 * remote.c (escape_buffer): Pass '\\' as the quoter to
5856 fputstrn_unfiltered.
5857 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5858 generate the output.
5859 (mi_solib_unloaded): Same.
5861 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5863 * development.sh: Delete.
5864 * Makefile.in (config.status): Adjust dependency on development.sh.
5865 * configure.ac: Adjust development.sh source call.
5866 * configure: Regenerate.
5868 2014-06-04 Doug Evans <xdje42@gmail.com>
5870 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5871 is_scheme_bkpt, spec.
5872 (bpscm_make_breakpoint_smob): Initialize new members.
5873 (gdbscm_create_breakpoint_x): Split into two ...
5874 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5875 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5876 (scheme_function breakpoint_functions): Update.
5877 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5878 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5879 register-breakpoint!.
5881 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5884 * mem-break.c (z_type_supported): Return zero if
5885 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5887 2014-06-04 Tom Tromey <tromey@redhat.com>
5889 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5890 value_from_contents_and_address_unresolved.
5891 (ada_template_to_fixed_record_type_1): Likewise.
5892 (ada_which_variant_applies): Likewise.
5893 * value.h (value_from_contents_and_address_unresolved): Declare.
5894 * value.c (value_from_contents_and_address_unresolved): New
5896 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5897 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5898 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5900 2014-06-04 Tom Tromey <tromey@redhat.com>
5902 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5904 2014-06-04 Tom Tromey <tromey@redhat.com>
5906 * procfs.c (procfs_attach): Make "args" const.
5907 * windows-nat.c (windows_attach): Make "args" const.
5908 * nto-procfs.c (procfs_attach): Make "args" const.
5909 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5910 * go32-nat.c (go32_attach): Make "args" const.
5911 * gnu-nat.c (gnu_attach): Make "args" const.
5912 * darwin-nat.c (darwin_attach): Make "args" const.
5913 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5914 * linux-nat.c (linux_nat_attach): Make "args" const.
5915 * remote.c (extended_remote_attach_1, extended_remote_attach):
5917 * target.h (struct target_ops) <to_attach>: Make "args" const.
5918 (find_default_attach): Likewise.
5919 * utils.c (parse_pid_to_attach): Make "args" const.
5920 * utils.h (parse_pid_to_attach): Update.
5922 2014-06-04 Tom Tromey <tromey@redhat.com>
5924 * target-delegates.c: Rebuild.
5925 * target.c (default_thread_address_space): New function.
5926 (target_thread_address_space): Simplify.
5927 * target.h (struct target_ops) <to_thread_address_space>: Add
5928 TARGET_DEFAULT_FUNC.
5930 2014-06-04 Doug Evans <xdje42@gmail.com>
5932 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5934 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5936 * record-btrace.c: Include event-loop.h and inf-loop.h.
5937 (record_btrace_resume_exec_dir)
5938 (record_btrace_async_inferior_event_handler)
5939 (record_btrace_handle_async_inferior_event): New.
5940 (record_btrace_open): Create async event handler.
5941 (record_btrace_close): Delete async event handler.
5942 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5943 Mark async event handler.
5944 (record_btrace_execution_direction): New.
5945 (init_record_btrace_ops): Initialize to_execution_direction.
5947 2014-06-03 Doug Evans <xdje42@gmail.com>
5949 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5950 (gdbscm_make_parameter): Ditto.
5952 2014-06-03 Doug Evans <dje@google.com>
5954 * exec.c (exec_close_1): Call clear_section_table instead of
5955 resize_section_table.
5956 (clear_section_table): New function.
5957 (resize_section_table): Make static. Rename arg num_added to
5959 * exec.h (clear_section_table): Declare.
5960 (resize_section_table): Delete.
5961 * progspace.c (release_program_space): Call clear_section_table
5962 instead of resize_section_table.
5964 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5966 * NEWS (Python Scripting): Add entry about the new xmethods
5969 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5971 * python/py-xmethods.c: New file.
5972 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5973 (objfpy_dealloc): XDECREF on the new xmethods field.
5974 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5976 (objfpy_get_xmethods): New function.
5977 (objfile_getset): New entry 'xmethods'.
5978 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5979 (pspy_dealloc): XDECREF on the new xmethods field.
5980 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5982 (pspy_get_xmethods): New function.
5983 (pspace_getset): New entry 'xmethods'.
5984 * python/python-internal.h: Add declarations for new functions.
5985 * python/python.c (_initialize_python): Invoke
5986 gdbpy_initialize_xmethods.
5987 * python/lib/gdb/__init__.py (xmethods): New
5989 * python/lib/gdb/xmethod.py: New file.
5990 * python/lib/gdb/command/xmethods.py: New file.
5992 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5994 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5995 best match method returned by find_overload_match is an xmethod.
5996 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5997 the best matching operator returned by find_overload_match is an
5999 * valops.c: #include "extension.h".
6000 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6001 Return void. The list of matching source methods is returned in
6002 "fn_list" and a vector of matching debug method workers is
6003 returned in "xm_worker_vec". Update all callers.
6004 (value_find_oload_method_list): Likewise.
6005 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6006 non-NULL, then the index of the best matching method in this
6007 vector is returned. Update all callers.
6008 (find_overload_match): Include xmethods while performing overload
6011 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6013 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6014 * extension-priv.h (struct extension_language_ops): Add the
6016 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6017 get_matching_xmethod_workers, get_xmethod_argtypes,
6018 invoke_xmethod, free_xmethod_worker,
6019 free_xmethod_worker_vec): New functions.
6020 * extension.h: #include "common/vec.h".
6021 New function declarations.
6022 (struct xmethod_worker): New struct.
6023 (VEC (xmethod_worker_ptr)): New vector type.
6024 (xmethod_worker_ptr): New typedef.
6025 (xmethod_worker_vec): Likewise.
6026 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6028 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6029 (struct builtin_type): New field "xmethod".
6030 * valarith.c (value_ptradd): Assert that the value argument is not
6032 * valops.c (value_must_coerce_to_target): Return 0 for
6033 lval_xcallable values.
6034 * value.c (struct value): New field XM_WORKER in the field
6036 (value_address, value_raw_address): Return 0 for lval_xcallable
6038 (set_value_address): Assert that the value is not an
6040 (value_free): Free the associated xmethod worker when freeing
6041 lval_xcallable values.
6042 (set_value_component_location): Assert that the WHOLE value is not
6044 (value_of_xmethod, call_xmethod): New functions.
6045 * value.h: Declare "struct xmethod_worker".
6046 Declare new functions value_of_xmethod, call_xmethod.
6048 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6049 Pedro Alves <palves@redhat.com>
6051 PR breakpoints/17000
6052 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6053 New function, extracted from software_breakpoint_inserted_here_p.
6054 (software_breakpoint_inserted_here_p): Replace factored out code
6055 by call to find_non_raw_software_breakpoint_inserted_here.
6056 (bp_target_info_copy_insertion_state): New function.
6057 (bkpt_insert_location): Handle the case of a single-step
6058 breakpoint already inserted at the same address.
6059 (bkpt_remove_location): Handle the case of a single-step
6060 breakpoint still inserted at the same address.
6061 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6062 breakpoint already inserted at the same address.
6063 (deprecated_remove_raw_breakpoint): Handle the case of a
6064 non-raw breakpoint still inserted at the same address.
6065 (find_single_step_breakpoint): New function, extracted from
6066 single_step_breakpoint_inserted_here_p.
6067 (find_single_step_breakpoint): New function,
6068 factored out from single_step_breakpoint_inserted_here_p.
6069 (single_step_breakpoint_inserted_here_p): Reimplement.
6071 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6073 Pushed by Joel Brobecker <brobecker@adacore.com>
6074 * source.c (show_substitute_path_command): Fix display of matching
6077 2014-06-03 Gary Benson <gbenson@redhat.com>
6079 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6081 2014-06-02 Doug Evans <xdje42@gmail.com>
6083 Add parameter support for Guile.
6084 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6085 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6086 (scm-param.o): New rule.
6087 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6088 (gdbscm_misc_error): Declare.
6089 (gdbscm_canonicalize_command_name): Declare.
6090 (gdbscm_scm_to_host_string): Declare.
6091 (gdbscm_scm_from_host_string): Declare.
6092 (gdbscm_initialize_parameters): Declare.
6093 * guile/guile.c (initialize_gdb_module): Call
6094 gdbscm_initialize_parameters.
6095 * guile/lib/gdb.scm: Export parameter symbols.
6096 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6097 cmdscm_canonicalize_name and made public. All callers updated.
6098 * guile/scm-exception.c (gdbscm_misc_error): New function.
6099 * guile/scm-param.c: New file.
6100 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6101 (gdbscm_scm_to_host_string): New function.
6102 (gdbscm_scm_from_host_string): New function.
6103 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6105 2014-06-02 Doug Evans <xdje42@gmail.com>
6107 Add command support for Guile.
6108 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6109 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6110 (scm-cmd.o): New rule.
6111 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6112 (gdbscm_user_error_p): Declare.
6113 (gdbscm_parse_command_name): Declare.
6114 (gdbscm_valid_command_class_p): Declare.
6115 (gdbscm_initialize_commands): Declare.
6116 * guile/guile.c (initialize_gdb_module): Call
6117 gdbscm_initialize_commands.
6118 * guile/lib/gdb.scm: Export command symbols.
6119 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6120 (throw-user-error): New function.
6121 * guile/scm-cmd.c: New file.
6122 * guile/scm-exception.c (user_error_symbol): New static global.
6123 (gdbscm_user_error_p): New function.
6124 (gdbscm_initialize_exceptions): Set user_error_symbol.
6125 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6127 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6129 * top.c (command_loop): Handle comments here...
6130 (command_line_input): ... not here.
6132 2014-06-02 Doug Evans <xdje42@gmail.com>
6134 Add progspace support for Guile.
6135 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6136 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6137 (scm-progspace.o): New rule.
6138 * guile/guile-internal.h (pspace_smob): New typedef.
6139 (psscm_pspace_smob_pretty_printers): Declare.
6140 (psscm_pspace_smob_from_pspace): Declare.
6141 (psscm_scm_from_pspace): Declare.
6142 * guile/guile.c (initialize_gdb_module): Call
6143 gdbscm_initialize_pspaces.
6144 * guile/lib/gdb.scm: Export progspace symbols.
6145 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6147 (append-pretty-printer!): Ditto.
6148 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6150 * guile/scm-progspace.c: New file.
6152 2014-06-03 Alan Modra <amodra@gmail.com>
6154 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6155 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6157 2014-06-02 Doug Evans <dje@google.com>
6159 Add support for skeletonless type units.
6160 * dwarf2read.c (struct dwarf2_per_objfile): New member
6161 n_allocated_type_units.
6162 (struct dwarf2_per_objfile) <tu_stats>: New member
6163 nr_all_type_units_reallocs.
6164 (create_signatured_type_table_from_index): Initialize
6165 n_allocated_type_units
6166 (create_all_type_units): Ditto.
6167 (add_type_unit): Move up in file. New arg slot.
6168 All callers updated. Increase space for all_type_units more
6170 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6171 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6172 (lookup_dwp_signatured_type): Ditto.
6173 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6174 All callers updated.
6175 (build_type_psymtabs_1): Leave type_unit_groups as
6176 NULL if no TUs present.
6177 (print_tu_stats): New function.
6178 (process_skeletonless_type_unit): New function.
6179 (process_dwo_file_for_skeletonless_type_units): New
6181 (process_skeletonless_type_units): New function.
6182 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6183 Call print tu_stats if debugging enabled.
6185 2014-06-02 Pedro Alves <palves@redhat.com>
6187 * breakpoint.c (build_target_command_list): Don't build a command
6188 list if we have any duplicate location that isn't a dprintf.
6190 2014-06-02 Pedro Alves <palves@redhat.com>
6192 * breakpoint.c (dprintf_breakpoint_hit): New function.
6193 (initialize_breakpoint_ops): Install it as dprintf's
6194 breakpoint_hit method.
6196 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6198 * source.c (substitute_path_rule_matches): Simplify using
6199 filename_ncmp instead of FILENAME_CMP.
6201 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6203 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6205 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6207 * configure.ac: When Guile is available, check for the
6208 availability of 'scm_new_smob'.
6209 * configure, config.h.in: Regenerate.
6210 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6213 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6215 * frame.c (struct frame_info): Add stop_string field.
6216 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6217 (get_prev_frame_always): Old content moved into
6218 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6219 TRY_CATCH, handle MEMORY_ERROR exceptions.
6220 (frame_stop_reason_string): New function definition.
6221 * frame.h (unwind_stop_reason_to_string): Extend comment to
6222 mention frame_stop_reason_string.
6223 (frame_stop_reason_string): New function declaration.
6224 * stack.c (frame_info): Switch to frame_stop_reason_string.
6225 (backtrace_command_1): Switch to frame_stop_reason_string.
6226 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6227 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6228 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6230 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6232 * frame.c (frame_stop_reason_string): Rename to ...
6233 (unwind_stop_reason_to_string): this.
6234 * frame.h (frame_stop_reason_string): Rename to ...
6235 (unwind_stop_reason_to_string): this.
6236 * stack.c (frame_info): Update call to frame_stop_reason_string.
6237 (backtrace_command_1): Likewise.
6238 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6239 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6241 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6243 * frame.c (remove_prev_frame): New function.
6244 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6247 2014-05-29 Pedro Alves <palves@redhat.com>
6249 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6250 and make it const. When a single-step decays to a continue,
6251 clear 'step', not 'hw_step'. Pass whether the caller wanted
6252 to step to user_visible_resume_ptid, not what we ask the
6255 2014-05-29 Pedro Alves <palves@redhat.com>
6257 * infrun.c (process_event_stop_test, handle_step_into_function)
6258 (handle_step_into_function_backward): Adjust.
6259 Don't set the even thread's stop_step and call stop_waiting before
6260 calling end_stepping_range. Instead do that ...
6261 (end_stepping_range): ... here. Take an ecs pointer parameter.
6263 2014-05-29 Pedro Alves <palves@redhat.com>
6265 * infrun.c (stop_stepping): Rename to ...
6266 (stop_waiting): ... this.
6267 (proceed): Update comment.
6268 (process_event_stop_test, handle_inferior_event)
6269 (handle_signal_stop, handle_step_into_function)
6270 (handle_step_into_function_backward): Update.
6272 2014-05-29 Pedro Alves <palves@redhat.com>
6274 * infcall.c (run_inferior_call): Don't check whether the current
6275 thread is running after the proceed call.
6277 2014-05-29 Pedro Alves <palves@redhat.com>
6278 Tom Tromey <tromey@redhat.com>
6280 * NEWS: Mention "maint set target-async", "set mi-async", and that
6281 background execution commands are now always available.
6282 * target.h (target_async_permitted): Update comment.
6283 * target.c (target_async_permitted, target_async_permitted_1):
6285 (set_target_async_command): Rename to ...
6286 (maint_set_target_async_command): ... this.
6287 (show_target_async_command): Rename to ...
6288 (maint_show_target_async_command): ... this.
6289 (_initialize_target): Adjust.
6290 * infcmd.c (prepare_execution_command): Make extern.
6291 * inferior.h (prepare_execution_command): Declare.
6292 * infrun.c (set_observer_mode): Leave target async alone.
6293 * mi/mi-interp.c (mi_interpreter_init): Install
6294 mi_on_sync_execution_done as sync_execution_done observer.
6295 (mi_on_sync_execution_done): New function.
6296 (mi_execute_command_input_handler): Don't print the prompt if we
6297 just started a synchronous command with an async target.
6298 (mi_on_resume): Check sync_execution before printing prompt.
6299 * mi/mi-main.h (mi_async_p): Declare.
6300 * mi/mi-main.c: Include gdbcmd.h.
6301 (mi_async_p): New function.
6302 (mi_async, mi_async_1): New globals.
6303 (set_mi_async_command, show_mi_async_command, mi_async): New
6305 (exec_continue): Call prepare_execution_command.
6306 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6307 (mi_execute_async_cli_command): Use mi_async_p.
6308 (_initialize_mi_main): Install "set mi-async". Make
6309 "target-async" a deprecated alias.
6311 2014-05-29 Pedro Alves <palves@redhat.com>
6313 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6314 (_initialize_cli_interp): Adjust.
6315 * event-loop.c: Include "observer.h".
6316 (start_event_loop): Notify 'command_error' observers instead of
6317 calling display_gdb_prompt. Remove FIXME comment.
6318 * event-top.c (display_gdb_prompt): Remove call into the
6320 * inf-loop.c: Include "observer.h".
6321 (inferior_event_handler): Notify 'command_error' observers instead
6322 of calling display_gdb_prompt.
6323 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6324 observers instead of calling display_gdb_prompt.
6325 * interps.c (interp_set): Don't call display_gdb_prompt.
6326 (current_interp_display_prompt_p): Delete.
6327 * interps.h (interp_prompt_p): Delete declaration.
6328 (interp_prompt_p_ftype): Delete.
6329 (struct interp_procs) <prompt_proc_p>: Delete field.
6330 (current_interp_display_prompt_p): Delete declaration.
6331 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6332 (_initialize_mi_interp): Adjust.
6333 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6334 'command_error' observers.
6335 (tui_on_sync_execution_done, tui_on_command_error): New
6337 (tui_display_prompt_p): Delete.
6338 (_initialize_tui_interp): Adjust.
6340 2014-05-29 Pedro Alves <palves@redhat.com>
6343 * cli/cli-interp.c: Include infrun.h and observer.h.
6344 (cli_uiout, cli_interp): New globals.
6345 (cli_on_signal_received, cli_on_end_stepping_range)
6346 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6348 (cli_interpreter_init): Install them as 'end_stepping_range',
6349 'signal_received' 'signal_exited', 'exited' and 'no_history'
6351 (_initialize_cli_interp): Remove cli_interp local.
6352 * infrun.c (handle_inferior_event): Call the several stop reason
6353 observers instead of printing the stop reason directly.
6354 (end_stepping_range): New function.
6355 (print_end_stepping_range_reason, print_signal_exited_reason)
6356 (print_exited_reason, print_signal_received_reason)
6357 (print_no_history_reason): Make static, and add an uiout
6358 parameter. Print to that instead of to CURRENT_UIOUT.
6359 * infrun.h (print_end_stepping_range_reason)
6360 (print_signal_exited_reason, print_exited_reason)
6361 (print_signal_received_reason print_no_history_reason): New
6363 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6365 <cli_uiout>: New field.
6366 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6367 uiout for CLI output. Install 'signal_received',
6368 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6370 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6371 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6372 (mi_on_no_history): New functions.
6373 (ui_out_free_cleanup): Delete function.
6374 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6375 instead use the one already stored in the MI interpreter data.
6376 (mi_ui_out): Adjust.
6377 * tui/tui-interp.c: Include infrun.h and observer.h.
6378 (tui_interp): New global.
6379 (tui_on_signal_received, tui_on_end_stepping_range)
6380 (tui_on_signal_exited, tui_on_exited)
6381 (tui_on_no_history): New functions.
6382 (tui_init): Install them as 'end_stepping_range',
6383 'signal_received' 'signal_exited', 'exited' and 'no_history'
6385 (_initialize_tui_interp): Delete tui_interp local.
6387 2014-05-29 Pedro Alves <palves@redhat.com>
6390 * linux-nat.c (linux_nat_resume_callback): Rename the second
6391 parameter to 'except'. Skip LP if it points to EXCEPT.
6392 (linux_nat_resume): Don't mark the event lwp as not stopped
6393 before resuming sibling lwps. Instead ask
6394 linux_nat_resume_callback to skip the event lwp. Mark it as not
6395 stopped after actually resuming it.
6396 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6398 (wait_lwp): Mark the lwp as stopped here.
6399 (stop_wait_callback): Mark the lwp as not stopped right after
6400 resuming it. Don't mark lwps as stopped here.
6401 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6402 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6404 2014-05-29 Pedro Alves <palves@redhat.com>
6407 * infrun.c (resume): Determine how much to resume depending on
6408 whether the caller wanted a step, not whether we can hardware step
6409 the target. Mark all threads that we intend to run as running,
6410 unless we're calling an inferior function.
6411 (normal_stop): If the thread is running an infcall, don't finish
6413 * target.c (target_resume): Don't mark threads as running here.
6415 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6417 * serial.c (_initialize_serial): Remove support for
6418 the "set remotebaud" and "show remotebaud" commands.
6419 * NEWS: Add entry documenting the removal of that command.
6421 2014-05-28 Yao Qi <yao@codesourcery.com>
6423 * charset.c: Fix typo in comments.
6425 2014-05-27 Gary Benson <gbenson@redhat.com>
6427 * utils.c (internal_vproblem): Prompt for a bug report.
6429 2014-05-26 Andy Wingo <wingo@igalia.com>
6431 * guile/scm-arch.c (arscm_mark_arch_smob):
6432 * guile/scm-block.c (bkscm_mark_block_smob)
6433 (bkscm_mark_block_syms_progress_smob):
6434 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6435 * guile/scm-exception.c (exscm_mark_exception_smob):
6436 * guile/scm-frame.c (frscm_mark_frame_smob):
6437 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6438 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6439 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6440 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6441 (ppscm_mark_pretty_printer_worker_smob):
6442 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6443 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6444 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6445 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6447 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6450 2014-05-26 Andy Wingo <wingo@igalia.com>
6451 Doug Evans <xdje42@gmail.com>
6453 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6454 empty_base_class. All uses updated.
6455 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6456 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6458 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6459 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6460 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6461 (gdbscm_gsmob_has_property_p, add_property_name)
6462 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6463 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6464 (gdb-object-has-property?, gdb-object-properties): Remove.
6465 (gdb-object-kind): Renamed from gsmob-kind.
6467 2014-05-26 Andy Wingo <wingo@igalia.com>
6469 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6470 * configure: Regenerate.
6472 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6474 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6476 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6478 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6479 (replay_memory_access_read_only, replay_memory_access_read_write)
6480 (replay_memory_access_types, replay_memory_access)
6481 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6482 (cmd_set_record_btrace, cmd_show_record_btrace)
6483 (cmd_show_replay_memory_access): New.
6484 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6485 (record_btrace_remove_breakpoint): Replace
6486 record_btrace_allow_memory_access with replay_memory_access.
6487 (_initialize_record_btrace): Add commands.
6488 * NEWS: Announce it.
6490 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6492 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6494 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6496 * MAINTAINERS (Write After Approval): Move self back from
6499 2014-05-22 Pedro Alves <palves@redhat.com>
6501 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6502 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6503 (disable_randomization, enum exec_direction_kind)
6504 (execution_direction, stop_registers, start_remote)
6505 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6506 (wait_for_inferior, normal_stop, get_last_target_status)
6507 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6508 (insert_step_resume_breakpoint_at_sal)
6509 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6510 (set_step_info, print_stop_event, signal_stop_state)
6511 (signal_print_state, signal_pass_state, signal_stop_update)
6512 (signal_print_update, signal_pass_update)
6513 (update_signals_program_target, clear_exit_convenience_vars)
6514 (displaced_step_dump_bytes, update_observer_mode)
6515 (signal_catch_update, gdb_signal_from_command): Move
6517 * infrun.h: ... to this new file.
6518 * amd64-tdep.c: Include infrun.h.
6519 * annotate.c: Include infrun.h.
6520 * arch-utils.c: Include infrun.h.
6521 * arm-linux-tdep.c: Include infrun.h.
6522 * arm-tdep.c: Include infrun.h.
6523 * break-catch-sig.c: Include infrun.h.
6524 * breakpoint.c: Include infrun.h.
6525 * common/agent.c: Include infrun.h instead of inferior.h.
6526 * corelow.c: Include infrun.h.
6527 * event-top.c: Include infrun.h.
6528 * go32-nat.c: Include infrun.h.
6529 * i386-tdep.c: Include infrun.h.
6530 * inf-loop.c: Include infrun.h.
6531 * infcall.c: Include infrun.h.
6532 * infcmd.c: Include infrun.h.
6533 * infrun.c: Include infrun.h.
6534 * linux-fork.c: Include infrun.h.
6535 * linux-nat.c: Include infrun.h.
6536 * linux-thread-db.c: Include infrun.h.
6537 * monitor.c: Include infrun.h.
6538 * nto-tdep.c: Include infrun.h.
6539 * procfs.c: Include infrun.h.
6540 * record-btrace.c: Include infrun.h.
6541 * record-full.c: Include infrun.h.
6542 * remote-m32r-sdi.c: Include infrun.h.
6543 * remote-mips.c: Include infrun.h.
6544 * remote-notif.c: Include infrun.h.
6545 * remote-sim.c: Include infrun.h.
6546 * remote.c: Include infrun.h.
6547 * reverse.c: Include infrun.h.
6548 * rs6000-tdep.c: Include infrun.h.
6549 * s390-linux-tdep.c: Include infrun.h.
6550 * solib-irix.c: Include infrun.h.
6551 * solib-osf.c: Include infrun.h.
6552 * solib-svr4.c: Include infrun.h.
6553 * target.c: Include infrun.h.
6554 * top.c: Include infrun.h.
6555 * windows-nat.c: Include infrun.h.
6556 * mi/mi-interp.c: Include infrun.h.
6557 * mi/mi-main.c: Include infrun.h.
6558 * python/py-threadevent.c: Include infrun.h.
6560 2014-05-22 Pedro Alves <palves@redhat.com>
6562 * infrun.c (handle_inferior_event): Store the exit code for
6563 --return-child-result here, instead of ...
6564 (print_exited_reason): ... here.
6566 2014-05-21 Pedro Alves <palves@redhat.com>
6569 * gdbthread.h (struct thread_control_state): New field
6571 * infrun.c (follow_fork): Copy the new thread control field to the
6573 (clear_proceed_status_thread): Clear the new thread control field.
6574 (proceed): Set the new thread control field.
6575 * interps.h (command_interp): Declare.
6576 * interps.c (command_interpreter): New global.
6577 (command_interp): New function.
6578 (interp_exec): Set `command_interpreter' while here.
6579 * cli-out.c (cli_uiout_dtor): New function.
6580 (cli_ui_out_impl): Install it.
6581 * mi/mi-interp.c: Include cli-out.h.
6582 (mi_cmd_interpreter_exec): Add comment.
6583 (restore_current_uiout_cleanup): New function.
6584 (ui_out_free_cleanup): New function.
6585 (mi_on_normal_stop): If finishing an execution command started by
6586 a CLI command, or any kind of breakpoint-like event triggered,
6587 print the stop event to the output (CLI) stream.
6588 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6590 2014-05-21 Pedro Alves <palves@redhat.com>
6592 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6593 current source line having changed.
6594 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6595 * infrun.c (normal_stop): Adjust call to
6596 set_current_sal_from_frame.
6597 * source.c (clear_lines_listed_range): New function.
6598 (set_current_source_symtab_and_line, identify_source_line): Clear
6599 the lines listed range.
6600 (line_info): Handle the first "info line" after the current source
6601 line having changed.
6602 * stack.c (print_stack_frame): Remove center handling.
6603 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6606 2014-05-21 Pedro Alves <palves@redhat.com>
6608 * inf-child.c (inf_child_mourn_inferior): New function.
6609 * inf-child.h (inf_child_mourn_inferior): New declaration.
6610 * darwin-nat.c (darwin_mourn_inferior): Use
6611 inf_child_mourn_inferior.
6612 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6613 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6614 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6615 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6616 * windows-nat.c (windows_mourn_inferior): Likewise.
6618 2014-05-21 Doug Evans <xdje42@gmail.com>
6620 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6622 2014-05-21 Doug Evans <xdje42@gmail.com>
6624 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6625 (gdbscm_out_of_range_error): Ditto.
6626 (gdbscm_memory_error): Ditto.
6627 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6628 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6629 (gdbscm_out_of_range_error): Update.
6630 (gdbscm_memory_error): Update.
6631 (gdbscm_scm_to_target_string_unsafe): Delete.
6633 2014-05-21 Pedro Alves <palves@redhat.com>
6635 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6637 (inf_child_open_target): New function.
6638 (inf_child_open): Use inf_child_open_target to push the target
6639 instead of erroring out.
6640 (inf_child_disconnect, inf_child_close)
6641 (inf_child_maybe_unpush_target): New functions.
6642 (inf_child_target): Install inf_child_disconnect and
6643 inf_child_close. Store a pointer to the returned object.
6644 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6646 * target.c (auto_connect_native_target): New global.
6647 (show_default_run_target): New function.
6648 (find_default_run_target): Return NULL if automatically connecting
6649 to the native target is disabled.
6650 (_initialize_target): Install set/show auto-connect-native-target.
6651 * NEWS: Mention "set auto-connect-native-target", and "target
6653 * linux-nat.c (super_close): New global.
6654 (linux_nat_close): Call super_close.
6655 (linux_nat_add_target): Store a pointer to the base class's
6657 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6658 inf_child_maybe_unpush.
6659 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6661 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6662 the inferior. Use inf_child_maybe_unpush_target.
6663 (inf_ttrace_attach): Don't push the target if it is already
6665 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6666 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6667 after mourning the inferior. Use inf_child_maybe_unpush_target.
6668 (darwin_attach_pid): Don't push the target if it is already
6670 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6671 mourning the inferior. Use inf_child_maybe_unpush_target.
6672 (gnu_detach): Use inf_child_maybe_unpush_target.
6673 * go32-nat.c (go32_create_inferior): Don't push the target if it
6675 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6676 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6677 (procfs_open): Rename to ...
6678 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6679 comments. Can target_preopen before changing node. Call
6680 inf_child_open_target to push the target explicitly.
6681 (procfs_attach): Don't push the target if it is already pushed.
6682 (procfs_detach): Use inf_child_maybe_unpush_target.
6683 (procfs_create_inferior): Don't push the target if it is already
6685 (nto_native_ops): New global.
6686 (procfs_open): Reimplement.
6687 (procfs_native_open): New function.
6688 (init_procfs_targets): Install procfs_native_open as to_open of
6689 "target native". Store a pointer to the "native" target in
6691 * procfs.c (procfs_attach): Don't push the target if it is already
6693 (procfs_detach): Use inf_child_maybe_unpush_target.
6694 (procfs_mourn_inferior): Only unpush the target after mourning the
6695 inferior. Use inf_child_maybe_unpush_target.
6696 (procfs_init_inferior): Don't push the target if it is already
6698 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6699 if it is already pushed.
6701 2014-05-21 Pedro Alves <palves@redhat.com>
6703 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6704 and "procfs" targets are now called "native" instead.
6706 2014-05-21 Pedro Alves <palves@redhat.com>
6708 * go32-nat.c (go32_open): Delete.
6709 (go32_target): Don't override the to_open method.
6711 2014-05-21 Pedro Alves <palves@redhat.com>
6713 * nto-procfs.c (procfs_can_run): New function.
6714 (nto_procfs_ops): New global.
6715 (init_procfs_targets): New, based on procfs_target. Install
6716 "target native" in addition to "target procfs".
6717 (_initialize_procfs): Call init_procfs_targets instead of adding
6720 2014-05-21 Pedro Alves <palves@redhat.com>
6722 * windows-nat.c (windows_target): Don't override to_shortname,
6723 to_longname or to_doc.
6725 2014-05-21 Pedro Alves <palves@redhat.com>
6727 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6730 2014-05-21 Pedro Alves <palves@redhat.com>
6732 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6733 to_shortname, to_longname or to_doc.
6735 2014-05-21 Pedro Alves <palves@redhat.com>
6737 * go32-nat.c (go32_target): Don't override to_shortname,
6738 to_longname or to_doc.
6740 2014-05-21 Pedro Alves <palves@redhat.com>
6742 * inf-child.c (inf_child_open): Remove mention of "child".
6743 (inf_child_target): Rename target to "native" instead of "child".
6745 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6747 * Makefile.in (SFILES): Delete "regset.c".
6748 (COMMON_OBS): Delete "regset.o".
6750 * regset.h (regset_alloc): Delete prototype.
6752 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6754 * sparc-linux-tdep.c (sparc32_linux_gregset)
6755 (sparc32_linux_fpregset): New static regset structures.
6756 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6757 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6759 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6760 (sparc64_linux_fpregset): New static regset structures.
6761 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6762 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6763 New static regset structures.
6764 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6765 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6766 New static regset structures.
6767 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6768 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6769 New static regset structures.
6770 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6771 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6772 New static regset structures.
6773 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6775 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6777 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6778 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6779 register maps ("regmaps") from "*regset" to "*regmap". Do this
6780 for all regmap types and variables.
6781 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6782 (sparc32_linux_supply_core_gregset)
6783 (sparc32_linux_collect_core_gregset)
6784 (sparc32_linux_supply_core_fpregset)
6785 (sparc32_linux_collect_core_fpregset): Likewise.
6786 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6787 (sparc_gregmap, sparc_fpregmap): ... these.
6788 (sparc_supply_gregset, sparc_collect_gregset)
6789 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6790 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6791 (_initialize_sparc_nat): Rename regmaps.
6792 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6793 (sparc_gregmap, sparc_fpregmap): ... these.
6794 (sparc_supply_gregset, sparc_collect_gregset)
6795 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6796 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6798 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6799 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6801 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6803 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6804 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6805 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6807 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6808 (sparc32_bsd_fpregset): Rename to...
6809 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6810 (sparc32_bsd_fpregmap): ... these.
6811 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6812 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6813 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6814 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6815 (struct sparc_gregmap, struct sparc_fpregmap)
6816 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6817 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6818 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6819 (sparc32_supply_regset, sparc32_collect_gregset)
6820 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6822 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6823 (sparc64_linux_ptrace_gregmap): ... this.
6824 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6825 (_initialize_sparc64_linux_nat): Rename regmaps.
6826 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6827 (sparc64_linux_core_gregmap): ... this.
6828 (sparc64_linux_supply_core_gregset)
6829 (sparc64_linux_collect_core_gregset)
6830 (sparc64_linux_supply_core_fpregset)
6831 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6832 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6833 (sparc64_sol2_fpregset): Rename to...
6834 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6835 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6836 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6838 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6839 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6840 (sparc64_bsd_fpregset): Rename to...
6841 (struct sparc_gregmap, sparc64_sol2_gregmap)
6842 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6843 (sparc64_bsd_fpregmap): ... these.
6844 (sparc64_supply_gregset, sparc64_collect_gregset)
6845 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6847 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6848 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6849 (sparc64fbsd_gregmap): ... this.
6850 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6851 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6853 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6854 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6855 (sparc64nbsd_collect_fpregset): Likewise.
6856 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6857 (sparc64nbsd_gregmap): ... this.
6858 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6860 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6861 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6862 (sparc64obsd_gregmap): ... this.
6863 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6865 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6866 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6867 (sparc32nbsd_gregmap): ... this.
6868 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6871 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6873 * score-tdep.c (score7_linux_gregset): New static regset
6875 (score7_linux_regset_from_core_section): Remove dynamic regset
6877 (score_gdbarch_init): Drop allocation of tdep structure.
6878 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6880 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6882 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6884 (am33_regset_from_core_section): Remove dynamic regset
6887 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6889 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6890 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6892 (mips_linux_regset_from_core_section): Remove dynamic regset
6894 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6895 'gregset64', 'fpregset', and 'fpregset64'.
6896 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6897 deleted tdep fields.
6899 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6901 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6903 (amd64_regset_from_core_section): Remove dynamic regset
6905 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6907 (amd64obsd_regset_from_core_section): Remove dynamic regset
6909 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6911 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6912 x86-common regset supply function.
6913 * i386-tdep.c (i386_collect_gregset): Make static.
6914 (i386_gregset): New global regset structure.
6915 (i386_fpregset, i386_xstateregset): New static regset structures.
6916 (i386_regset_from_core_section): Remove dynamic regset
6918 (i386_gdbarch_init): Remove initialization of tdep fields
6919 'gregset', 'fpregset', and 'xstateregset'.
6920 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6921 'fpregset', and 'xstateregset'.
6922 (i386_collect_gregset): Remove prototype.
6923 (i386_gregset): New declaration.
6924 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6926 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6929 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6931 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6932 (arm_linux_vfpregset): New static regset structures.
6933 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6935 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6936 and 'vfpregset' fields.
6938 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6940 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6941 (aarch64_linux_fpregset): New static regset structures.
6942 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6943 of regset structures.
6944 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6947 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6949 * regset.h (struct regset): Remove gdbarch field.
6950 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6951 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6952 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6954 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6955 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6956 (ppc32_linux_vsxregset): Likewise.
6957 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6958 via the regcache instead of the regset.
6959 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6960 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6961 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6962 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6965 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6967 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6968 Constify structures.
6969 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6970 (alphanbsd_aout_gregset): Likewise.
6971 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6972 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6974 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6975 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6977 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6978 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6979 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6980 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6981 * m88k-tdep.c (m88k_gregset): Likewise.
6982 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6983 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6984 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6985 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6986 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6987 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6988 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6989 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6990 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6992 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6993 * sh-tdep.h (sh_corefile_gregset): Likewise.
6994 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6995 * vax-tdep.c (vax_gregset): Likewise.
6997 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6999 Fix TLS access for -static -pthread.
7000 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7001 (try_thread_db_load_1): Initialize it.
7002 (thread_db_get_thread_local_address): Call it if LM is zero.
7003 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7004 * target.h (struct target_ops) (to_get_thread_local_address): Add
7005 load_module_addr comment.
7007 2014-05-21 Pedro Alves <palves@redhat.com>
7009 * dcache.c (dcache_read_memory_partial): If reading the cache line
7010 fails, fallback to reading just the memory the caller wanted.
7012 2014-05-20 Doug Evans <dje@google.com>
7014 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7015 instead of get_current_arch.
7017 2014-05-20 Pedro Alves <palves@redhat.com>
7019 * NEWS: Mention that compare-sections now works with all targets.
7021 * remote.c (PACKET_qCRC): New enum value.
7022 (remote_verify_memory): Don't send qCRC if the target has no
7023 execution. Use packet_support/packet_ok. If the target doesn't
7024 support the qCRC packet, fallback to a deep memory copy.
7025 (compare_sections_command): Say "target image" instead of "remote
7027 (_initialize_remote): Add PACKET_qCRC to the list of config
7028 packets that have no associated command. Extend comment.
7029 * target.c (simple_verify_memory, default_verify_memory): New
7031 * target.h (struct target_ops) <to_verify_memory>: Default to
7032 default_verify_memory.
7033 (simple_verify_memory): New declaration.
7034 * target-delegates.c: Regenerate.
7036 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7038 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7040 2014-05-20 Hui Zhu <hui@codesourcery.com>
7041 Yao Qi <yao@codesourcery.com>
7044 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7045 and change address of sp and pc.
7047 2014-05-19 Tom Tromey <tromey@redhat.com>
7049 * gdbtypes.c (rank_function): Use XNEWVEC.
7050 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7052 2014-05-19 Doug Evans <dje@google.com>
7054 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7055 build_type_unit_groups and moved closer to only caller. Remove
7056 arguments. All references updated. Remove outdated .gdb_index
7058 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7059 build_type_psymtabs_1.
7061 2014-05-19 Doug Evans <dje@google.com>
7063 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7064 n_type_unit_groups, all_type_unit_groups. All uses removed.
7065 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7066 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7067 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7068 (add_type_unit_group_to_table): Delete.
7070 2014-05-19 Doug Evans <dje@google.com>
7072 * eval.c (evaluate_subexp_standard): Add some comments.
7074 2014-05-17 Doug Evans <xdje42@gmail.com>
7076 * progspace.c (remove_program_space): Delete, unused.
7077 * progspace.h (remove_program_space): Ditto.
7079 2014-05-17 Doug Evans <xdje42@gmail.com>
7081 * inferior.c (prune_inferiors): Fix comment.
7082 (remove_inferior_command): Call prune_program_spaces.
7084 2014-05-16 Doug Evans <dje@google.com>
7086 New command line option -D.
7088 * main.c (set_gdb_data_directory): New function.
7089 (captured_main): Recognize -D. Flag error for --data-directory "".
7090 Call set_gdb_data_directory.
7091 (print_gdb_help): Print --data-directory, -D.
7092 * main.h (set_gdb_data_directory): Declare.
7093 * top.c (staged_gdb_datadir): New static global.
7094 (set_gdb_datadir): Call set_gdb_data_directory
7095 (show_gdb_datadir): New function.
7096 (init_main): Update init of data-directory parameter.
7098 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7100 Import the "dirfd" gnulib module.
7101 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7102 * gnulib/aclocal.m4: Update.
7103 * gnulib/config.in: Update.
7104 * gnulib/configure: Update.
7105 * gnulib/import/Makefile.am: Update.
7106 * gnulib/import/Makefile.in: Update.
7107 * gnulib/import/dirfd.c: New.
7108 * gnulib/import/m4/dirfd.m4: New.
7109 * gnulib/import/m4/gnulib-cache.m4: Update.
7110 * gnulib/import/m4/gnulib-comp.m4: Update.
7112 2014-05-16 Pierre Muller <muller@sourceware.org>
7113 Yao Qi <yao@codesourcery.com>
7115 * valprint.c (print_wchar): Move the code on checking whether
7116 W is a printable wide char to the default branch of switch
7117 statement below. Call wchar_printable instead of gdb_iswprint.
7119 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7121 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7122 ldr.w and ldrd instructions.
7124 2014-05-15 Doug Evans <dje@google.com>
7126 * dwarf2read.c (read_structure_type): Delete outdated comments.
7128 2014-05-14 Tom Tromey <tromey@redhat.com>
7130 * macrocmd.c (print_macro_definition): Reindent.
7132 2014-05-13 Doug Evans <xdje42@gmail.com>
7134 * python/py-cmd.c (cmdpy_completer): Add comment.
7135 (completers): Make const.
7137 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7139 * infrun.c (resume): Remove should_resume (unused). Move up
7140 declaration of resume_ptid.
7142 2014-05-13 Tom Tromey <tromey@redhat.com>
7144 * language.h (unop_type_check): Remove.
7145 (binop_type_check): Don't declare.
7147 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7149 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7150 call to regcache_raw_collect.
7152 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7154 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7155 mi_console->quote as the quoting character.
7157 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7159 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7161 2014-04-29 Tom Tromey <tromey@redhat.com>
7163 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7164 "show debug varobj".
7166 2014-05-07 Kyle McMartin <kyle@redhat.com>
7168 Pushed by Joel Brobecker <brobecker@adacore.com>.
7169 * aarch64-tdep.c (aarch64_software_single_step): New function.
7170 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7171 with aarch64_software_single_step.
7173 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7177 2014-05-05 Keith Seitz <keiths@redhat.com>
7179 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7180 variable or history value is successfully parsed.
7182 2014-05-05 Yao Qi <yao@codesourcery.com>
7183 Pedro Alves <palves@redhat.com>
7185 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7186 address of blocks that intersects the requested range. Trim
7187 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7189 * ctf.c (ctf_xfer_partial): Likewise.
7191 2014-05-05 Yao Qi <yao@codesourcery.com>
7193 * printcmd.c (display_command): Remove the check to
7194 target_has_execution.
7196 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7198 * ppcobsd-nat.c: Include "obsd-nat.h".
7199 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7201 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7203 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7205 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7206 and 16-bit signed and unsigned arguments. Update comment.
7207 (stap_parse_probe_arguments): Extend code to handle such
7208 arguments. Use warning instead of complaint to notify about
7209 unrecognized bitness.
7211 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7213 PR breakpoints/16889
7214 * stap-probe.c (stap_parse_probe_arguments): Simplify
7215 check for non-prefixed probes (i.e., probes whose
7216 arguments do not start with "N@"). Always set the
7217 argument type to a sane value.
7219 2014-05-01 David Taylor <dtaylor@emc.com>
7221 * remote.c (compare_sections_command): Add -r option to compare
7222 all loadable read-only sections.
7224 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7226 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7227 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7229 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7230 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7231 Remove unused CORE_ADDR argument. Update all callers.
7233 2014-04-29 Pedro Alves <palves@redhat.com>
7235 * remote.c (struct packet_config) <detect>: Extend comment.
7236 (add_packet_config_cmd): Don't set the config's detect or support
7238 (init_all_packet_configs): Also initialize the config's 'detect'
7240 (reset_all_packet_configs_support): New function.
7241 (remote_open_1): Call reset_all_packet_configs_support instead of
7242 init_all_packet_configs.
7243 (_initialize_remote): Initialize all packet configs. Assert that
7244 all packets have an associated command, except a few known
7247 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7249 * dwarf2read.c (read_subrange_type): Handle dynamic
7250 DW_AT_lower_bound attributes.
7252 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7254 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7255 dynamic bounds before computing its upper bound.
7256 (ada_discrete_type_low_bound): Same as above with the lower bound.
7258 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7260 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7261 range types. Adjust the array handling implementation to
7262 take advantage of this change.
7263 (resolve_dynamic_range): New function, mostly extracted from
7264 resolve_dynamic_bounds.
7265 (resolve_dynamic_array): New function, mostly extracted from
7266 resolve_dynamic_bounds.
7267 (resolve_dynamic_bounds): Delete.
7268 (resolve_dynamic_type): Reimplement. Add handling of
7269 TYPE_CODE_RANGE types.
7271 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7273 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7274 handling of parallel ___XA types.
7276 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7278 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7279 unnecessary second call to static_unwrap_type.
7281 2014-04-27 Hui Zhu <hui@codesourcery.com>
7283 * stack.c (print_frame_info): Call do_gdb_disassembly with
7284 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7286 2014-04-26 Doug Evans <xdje42@gmail.com>
7288 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7290 2014-04-25 Pedro Alves <palves@redhat.com>
7293 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7294 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7295 and newline from built string.
7296 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7297 (linux_ptrace_attach_fail_reason): ... this.
7298 * linux-nat.c (linux_nat_attach): Adjust to use
7299 linux_ptrace_attach_fail_reason.
7301 2014-04-25 Pedro Alves <palves@redhat.com>
7303 * remote.c (struct remote_state): Remove multi_process_aware,
7304 non_stop_aware, cond_tracepoints, cond_breakpoints,
7305 breakpoint_commands, fast_tracepoints, static_tracepoints,
7306 install_in_trace, disconnected_tracing,
7307 enable_disable_tracepoints, string_tracing, and
7308 augmented_libraries_svr4_read fields.
7309 (remote_multi_process_p): Move further below in the file.
7310 (struct packet_config): Add comments.
7311 (update_packet_config): Delete function.
7312 (show_packet_config_cmd): Use packet_config_support.
7313 (add_packet_config_cmd): Use NULL as set callback.
7314 (packet_ok): "set remote foo-packet"-style commands no longer
7315 change config->supported -- adjust.
7316 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7317 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7318 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7319 (PACKET_QNonStop, PACKET_multiprocess_feature)
7320 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7321 (PACKET_DisconnectedTracing_feature)
7322 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7323 (set_remote_protocol_packet_cmd): Delete function.
7324 (packet_config_support, packet_support): New functions.
7325 (set_remote_protocol_Z_packet_cmd): Don't call
7326 update_packet_config.
7327 (remote_query_attached, remote_pass_signals)
7328 (remote_program_signals, remote_threads_info)
7329 (remote_threads_extra_info, remote_start_remote): Use
7331 (remote_start_remote): Use packet_config_support and
7333 (init_all_packet_configs): Set all packets to unknown support,
7334 instead of calling update_packet_config.
7335 (remote_check_symbols): Use packet_support.
7336 (remote_supported_packet): Unconditionally set the packet config's
7338 (remote_multi_process_feature, remote_non_stop_feature)
7339 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7340 (remote_breakpoint_commands_feature)
7341 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7342 (remote_install_in_trace_feature)
7343 (remote_disconnected_tracing_feature)
7344 (remote_enable_disable_tracepoint_feature)
7345 (remote_string_tracing_feature)
7346 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7347 (remote_protocol_features): Adjust to use remote_supported_packet
7348 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7349 "ConditionalTracepoints", "ConditionalBreakpoints",
7350 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7351 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7352 "EnableDisableTracepoints", and "tracenz".
7353 (remote_query_supported): Use packet_support.
7354 (remote_open_1): Adjust.
7355 (extended_remote_attach_1): Use packet_support. Switch on the
7356 result of packet_ok instead of checking whether the packet ended
7358 (remote_vcont_resume): Use packet_support.
7359 (remote_resume, remote_stop_ns, fetch_register_using_p)
7360 (remote_prepare_to_store, store_register_using_P)
7361 (check_binary_download, remote_write_bytes): Use packet_support.
7362 (remote_vkill): Use packet_support. Switch on the result of
7363 packet_ok instead of checking whether the packet ended up
7365 (extended_remote_supports_disable_randomization): Use
7367 (extended_remote_run): Switch on the result of packet_ok instead
7368 of checking whether the packet ended up disabled.
7369 (remote_insert_breakpoint, remote_remove_breakpoint)
7370 (remote_insert_watchpoint, remote_remove_watchpoint)
7371 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7373 (remote_search_memory): Use packet_config_support.
7374 (remote_get_thread_local_address, remote_get_tib_address)
7375 (remote_hostio_send_command, remote_can_execute_reverse): Use
7377 (remote_supports_cond_tracepoints)
7378 (remote_supports_cond_breakpoints)
7379 (remote_supports_fast_tracepoints)
7380 (remote_supports_static_tracepoints)
7381 (remote_supports_install_in_trace)
7382 (remote_supports_enable_disable_tracepoint)
7383 (remote_supports_string_tracing)
7384 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7385 the packet config says the feature is enabled or disabled.
7386 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7387 (remote_get_trace_status): Use packet_support.
7388 (remote_set_disconnected_tracing): Adjust to check whether the
7389 feature is enabled with packet_support.
7390 (remote_set_trace_buffer_size, remote_use_agent)
7391 (remote_can_use_agent, remote_supports_btrace): Use
7393 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7394 Use packet_config_support.
7395 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7396 the packet config says the feature is enabled or disabled.
7397 (set_range_stepping): Use packet_support.
7399 2014-04-25 Tom Tromey <tromey@redhat.com>
7401 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7404 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7406 * NEWS: Mention support for C99 variable length arrays.
7408 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7410 * ada-lang.c (standard_exc): Expand introductory comment.
7412 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7413 Walfred Tedeschi <walfred.tedeschi@intel.com>
7415 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7417 (amd64_linux_read_description): Add code to handle AVX512 xstate
7418 mask and return respective tdesc.
7419 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7420 and features/i386/x32-avx512-linux.c.
7421 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7422 (amd64_linux_core_read_description): Add code to handle AVX512
7423 xstate mask and return respective tdesc.
7424 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7425 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7427 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7428 (tdesc_amd64_avx512_linux): New prototype.
7429 (tdesc_x32_avx512_linux): Likewise.
7430 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7431 features/i386/x32-avx512.c.
7432 (amd64_ymm_avx512_names): New register names for pseudo
7434 (amd64_ymmh_avx512_names): New register names for raw registers
7436 (amd64_k_names): New register names for K registers.
7437 (amd64_zmmh_names): New register names for ZMM raw registers.
7438 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7439 (amd64_xmm_avx512_names): New register names for XMM16-31
7441 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7443 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7444 if feature is present.
7445 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7446 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7447 (AMD64_NUM_REGS): Adjust to new number of registers.
7448 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7449 registers supplied via XSTATE by AVX512 registers.
7450 (i386_linux_read_description): Add case for AVX512.
7451 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7452 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7453 (i386_linux_core_read_description): Add case for AVX512.
7454 (i386_linux_init_abi): Install supported register note section
7456 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7458 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7459 registers to be number of zmm7h + 1.
7460 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7461 * i386-tdep.c: Include features/i386/i386-avx512.c.
7462 (i386_zmm_names): Add ZMM pseudo register names array.
7463 (i386_zmmh_names): Add ZMM raw register names array.
7464 (i386_k_names): Add K raw register names array.
7465 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7466 registers. AVX512 has 16 more ZMM registers than there are YMM
7468 (i386_zmmh_regnum_p): Add function to look up register number of
7470 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7471 (i386_k_regnum_p): Likewise for K raw registers.
7472 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7473 registers added by AVX512.
7474 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7475 registers added by AVX512.
7476 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7478 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7479 (i386_pseudo_register_name): Add ZMM pseudo registers.
7480 (i386_zmm_type): Construct and return vector registers type for ZMM
7482 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7483 ZMM0-31 pseudo registers and K registers.
7484 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7485 and YMM16-31 registers from register cache.
7486 (i386_pseudo_register_write): Add code to write K, ZMM and
7488 (i386_register_reggroup_p): Add code to include/exclude AVX512
7489 registers in/from respective register groups.
7490 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7491 registers if feature is present in xcr0.
7492 (i386_gdbarch_init): Add code to initialize AVX512 feature
7493 variables in tdep structure, wire in pseudo registers and call
7494 initialize_tdesc_i386_avx512.
7495 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7497 (i386_regnum): Add AVX512 registers.
7498 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7499 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7500 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7501 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7503 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7504 (i386_ymm_avx512_regnum_p): Likewise.
7505 (i386_k_regnum_p): Likewise.
7506 (i386_zmm_regnum_p): Likewise.
7507 (i386_zmmh_regnum_p): Likewise.
7508 * i387-tdep.c : Update year in copyright notice.
7509 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7511 (XSAVE_YMM_AVX512_ADDR): New macro.
7512 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7514 (XSAVE_XMM_AVX512_ADDR): New macro.
7515 (xsave_avx512_k_offset): New table for K register offsets in
7517 (XSAVE_AVX512_K_ADDR): New macro.
7518 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7520 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7521 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7523 (i387_collect_xsave): Add code to collect AVX512 registers from
7525 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7526 of XMM16-31 registers.
7527 (I387_NUM_K_REGS): New define for number of K registers.
7528 (I387_K0_REGNUM): New define for K0 register number.
7529 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7530 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7531 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7533 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7534 (I387_XMM16_REGNUM): New define for XMM16 register number.
7535 (I387_YMM0_REGNUM): New define for YMM0 register number.
7536 (I387_KEND_REGNUM): New define for last K register number.
7537 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7538 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7540 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7542 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7544 * features/Makefile: Add AVX512 related files.
7545 * features/i386/32bit-avx512.xml: New file.
7546 * features/i386/64bit-avx512.xml: Likewise.
7547 * features/i386/amd64-avx512-linux.c: Likewise.
7548 * features/i386/amd64-avx512-linux.xml: Likewise.
7549 * features/i386/amd64-avx512.c: Likewise.
7550 * features/i386/amd64-avx512.xml: Likewise.
7551 * features/i386/i386-avx512-linux.c: Likewise.
7552 * features/i386/i386-avx512-linux.xml: Likewise.
7553 * features/i386/i386-avx512.c: Likewise.
7554 * features/i386/i386-avx512.xml: Likewise.
7555 * features/i386/x32-avx512-linux.c: Likewise.
7556 * features/i386/x32-avx512-linux.xml: Likewise.
7557 * features/i386/x32-avx512.c: Likewise.
7558 * features/i386/x32-avx512.xml: Likewise.
7559 * regformats/i386/amd64-avx512-linux.dat: New file.
7560 * regformats/i386/amd64-avx512.dat: Likewise.
7561 * regformats/i386/i386-avx512-linux.dat: Likewise.
7562 * regformats/i386/i386-avx512.dat: Likewise.
7563 * regformats/i386/x32-avx512-linux.dat: Likewise.
7564 * regformats/i386/x32-avx512.dat: Likewise.
7565 * NEWS: Add note about new support for AVX512.
7568 2014-04-23 Pedro Alves <palves@redhat.com>
7570 * breakpoint.c (insert_bp_location): Tolerate errors if the
7571 breakpoint is set in a user-loaded objfile.
7572 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7573 location is marked shlib_disabled. If the breakpoint is set in a
7574 user-loaded objfile is a GDB-side memory breakpoint, validate it
7575 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7576 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7578 * mem-break.c (memory_validate_breakpoint): New function.
7579 * objfiles.c (userloaded_objfile_contains_address_p): New
7581 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7582 * target.h (memory_validate_breakpoint): New declaration.
7584 2014-04-23 Pedro Alves <palves@redhat.com>
7586 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7587 the breakpoint is set in a shared library, only suppress
7588 errors for software breakpoints, not hardware breakpoints.
7590 2014-04-22 Pedro Alves <palves@redhat.com>
7592 * infrun.c (schedlock_applies): New function, factored out from
7593 find_thread_needs_step_over.
7594 (find_thread_needs_step_over): Use it.
7595 (switch_back_to_stepped_thread): Always clear trap_expected if the
7596 step over is finished. Return early if scheduler locking applies.
7597 Look for the stepping thread and a potential step-over thread with
7599 (currently_stepping_or_nexting_callback): Delete.
7601 2014-04-22 Nick Clifton <nickc@redhat.com>
7603 * NEWS: Mention that ARM sim now supports tracing.
7605 2014-04-22 Yao Qi <yao@codesourcery.com>
7607 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7609 * tracefile.c (tracefile_fetch_registers): ... it. New
7611 * tracefile.h (tracefile_fetch_registers): Declare.
7612 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7613 tracefile_fetch_registers.
7615 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7618 * windows-nat.c (thread_rec): Don't display a warning when
7619 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7620 fails for any reason, set th->suspended to -1, so that we don't
7621 try to resume such a thread. Also, don't return NULL in these
7622 cases, to avoid completely ruin the session due to "PC register is
7623 not available" error.
7624 (do_windows_fetch_inferior_registers): Check errors in
7625 GetThreadContext call.
7626 (windows_continue): Accept an additional argument KILLED; if not
7627 zero, ignore errors in the SetThreadContext call, since the
7628 inferior was killed and is shutting down.
7629 (windows_resume, get_windows_debug_event)
7630 (windows_create_inferior, windows_mourn_inferior)
7631 (windows_kill_inferior): All callers of windows_continue changed
7632 to adjust to its new calling sequence.
7634 2014-04-19 Yao Qi <yao@codesourcery.com>
7636 * ctf.c (ctf_open): Call post_create_inferior.
7638 2014-04-19 Yao Qi <yao@codesourcery.com>
7640 * ctf.c (handle_id): New static variable.
7641 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7642 value. Get the declaration of event "register" and get length
7643 of field "contents".
7645 2014-04-19 Yao Qi <yao@codesourcery.com>
7647 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7649 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7651 * valops.c (oload_method_static): Remove unnecessary argument
7652 METHOD. Update all callers.
7654 2014-04-18 Pedro alves <palves@redhat.com>
7655 Tom Tromey <tromey@redhat.com>
7658 * frame.c (get_prev_frame_1): Rename to ...
7659 (get_prev_frame_always): ... this, and make extern. Adjust.
7660 (skip_artificial_frames): Use get_prev_frame_always.
7661 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7662 (get_frame_unwind_stop_reason): Adjust to rename.
7663 * frame.h (get_prev_frame_always): Declare.
7664 * inline-frame.c: Include frame.h.
7665 (inline_frame_this_id): Use get_prev_frame_always.
7667 2014-04-18 Tristan Gingold <gingold@adacore.com>
7669 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7670 code by using bfd_mach_o_get_base_address.
7672 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7674 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7675 (spu_ax_pseudo_register_collect): New function.
7676 (spu_ax_pseudo_register_push_stack): Likewise.
7677 (spu_dwarf_reg_to_regnum): Likewise.
7678 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7680 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7682 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7683 Replace FRAME argument with FRAME_ID.
7684 * gdbarch.c, gdbarch.h: Regenerate.
7685 * findvar.c (default_value_from_register): Add GDBARCH argument;
7686 replace FRAME by FRAME_ID. No longer call get_frame_id.
7687 (value_from_register): Update call to gdbarch_value_from_register.
7688 * value.h (default_value_from_register): Update prototype.
7689 * s390-linux-tdep.c (s390_value_from_register): Update interface
7690 and call to default_value_from_register.
7691 * spu-tdep.c (spu_value_from_register): Likewise.
7693 * findvar.c (address_from_register): Remove TYPE argument.
7694 Do not call value_from_register; use gdbarch_value_from_register
7695 with null_frame_id instead.
7696 * value.h (address_from_register): Update prototype.
7697 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7698 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7699 address_from_register interface change.
7701 2014-04-17 Yao Qi <yao@codesourcery.com>
7703 * gdbtypes.h: Update comments to link to types and macros'
7706 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7708 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7710 2014-04-16 Keith Seitz <keiths@redhat.com>
7713 * dwarf2read.c (skip_one_die): Check that all relative-offset
7714 sibling DIEs fall within range of the current reader's buffer.
7715 (read_partial_die): Likewise.
7717 2014-04-16 Keith Seitz <keiths@redhat.com>
7720 * cp-namespace.c (lookup_symbol_file): If the type name of
7721 `this' is NULL, return immediately.
7723 2014-04-14 Keith Seitz <keiths@redhat.com>
7726 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7727 from symbol_matches_domain in symtab.c. All local callers
7728 of symbol_matches_domain updated.
7729 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7730 search STRUCT_DOMAIN.
7731 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7732 independently. standard_lookup will do that automatically.
7733 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7734 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7735 (cp_lookup_symbol_in_namespace): Likewise.
7736 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7737 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7738 may return a STRUCT_DOMAIN match.
7739 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7740 * cp-support.c: Include language.h.
7741 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7743 * psymtab.c (match_partial_symbol): Compare the requested
7744 domain with the symbol's domain directly.
7745 (lookup_partial_symbol): Likewise.
7746 * symtab.c (lookup_symbol_in_language): Explain when/why
7747 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7748 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7749 appropriate languages.
7750 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7751 and moved to ada-lang.c
7752 (lookup_block_symbol): Explain that this function only returns
7753 symbol matching the requested DOMAIN.
7754 Compare the requested domain with the symbol's domain directly.
7755 (iterate_over_symbols): Compare the requested domain with the
7756 symbol's domain directly.
7757 * symtab.h (symbol_matches_domain): Remove.
7759 2014-04-14 Tom Tromey <tromey@redhat.com>
7762 * c-exp.y (type_aggregate_p): New function.
7763 (qualified_name, classify_inner_name): Use it.
7764 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7765 and TYPE_TARGET_TYPE of an enum type.
7766 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7768 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7769 handle TYPE_DECLARED_CLASS.
7770 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7772 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7773 * valops.c (enum_constant_from_type): New function.
7774 (value_aggregate_elt): Use it.
7775 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7778 2014-04-14 Tom Tromey <tromey@redhat.com>
7780 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7781 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7783 * value.h (value_aggregate_elt): Update.
7785 2014-04-14 Tom Tromey <tromey@redhat.com>
7787 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7789 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7791 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7792 (evaluate_subexp_standard): Pass noside argument.
7793 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7794 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7795 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7796 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7797 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7799 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7801 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7802 points to a constant blob.
7804 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7806 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7807 property and store it as the high bound and flag the range accordingly.
7808 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7809 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7810 * gdbtypes.h (enum range_flags): New enum.
7811 (struct range_bounds): Add flags member.
7813 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7815 * c-typeprint.c (c_type_print_varspec_suffix): Added
7816 check for not yet resolved high bound. If unresolved, print
7817 "variable length" string to the console instead of random
7820 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7822 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7824 (ada_template_to_fixed_record_type_1): Likewise.
7825 (ada_to_fixed_type_1): Likewise.
7826 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7827 (cp_print_value): Likewise.
7828 * d-valprint.c (dynamic_array_type): Likewise.
7829 * findvar.c (address_of_variable): Likewise.
7830 * jv-valprint.c (java_value_print): Likewise.
7831 * valops.c (value_ind): Likewise.
7832 * value.c (coerce_ref): Likewise.
7834 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7836 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7837 value and retrieve the dynamic type size.
7839 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7841 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7842 passed to sizeof is dynamic evaluate the argument to compute the length.
7844 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7845 Joel Brobecker <brobecker@adacore.com>
7847 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7848 (dwarf2_evaluate_property): New function.
7849 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7850 * dwarf2read.c (attr_to_dynamic_prop): New function.
7851 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7853 * gdbtypes.c: Include dwarf2loc.h.
7854 (is_dynamic_type): New function.
7855 (resolve_dynamic_type): New function.
7856 (resolve_dynamic_bounds): New function.
7857 (get_type_length): New function.
7858 (check_typedef): Use get_type_length to compute type length.
7859 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7860 (TYPE_LOW_BOUND_KIND): New macro.
7861 (is_dynamic_type): New function prototype.
7862 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7863 to resolve dynamic properties of the type. Update comment.
7864 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7866 2014-04-14 Richard Henderson <rth@redhat.com>
7868 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7870 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7871 Doug Evans <xdje42@gmail.com>
7873 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7874 dereference TYPE_CODE_REF values.
7876 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7878 Revert the following changes due to regressions:
7880 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7881 (dwarf2_evaluate_property): New function.
7882 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7883 * dwarf2read.c (attr_to_dynamic_prop): New function.
7884 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7886 * gdbtypes.c: Include dwarf2loc.h.
7887 (is_dynamic_type): New function.
7888 (resolve_dynamic_type): New function.
7889 (resolve_dynamic_bounds): New function.
7890 (get_type_length): New function.
7891 (check_typedef): Use get_type_length to compute type length.
7892 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7893 (TYPE_LOW_BOUND_KIND): New macro.
7894 (is_dynamic_type): New function prototype.
7895 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7896 to resolve dynamic properties of the type. Update comment.
7897 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7899 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7900 passed to sizeof is dynamic evaluate the argument to compute the length.
7902 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7903 value and retrieve the dynamic type size.
7905 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7906 (ada_template_to_fixed_record_type_1): Likewise.
7907 (ada_to_fixed_type_1): Likewise.
7908 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7909 (cp_print_value): Likewise.
7910 * d-valprint.c (dynamic_array_type): Likewise.
7911 * eval.c (evaluate_subexp_with_coercion): Likewise.
7912 * findvar.c (address_of_variable): Likewise.
7913 * jv-valprint.c (java_value_print): Likewise.
7914 * valops.c (value_ind): Likewise.
7915 * value.c (coerce_ref): Likewise.
7917 * c-typeprint.c (c_type_print_varspec_suffix): Added
7918 check for not yet resolved high bound. If unresolved, print
7919 "variable length" string to the console instead of random
7922 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7923 property and store it as the high bound and flag the range accordingly.
7924 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7925 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7926 * gdbtypes.h (enum range_flags): New enum.
7927 (struct range_bounds): Add flags member.
7929 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7930 points to a constant blob.
7932 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7933 (evaluate_subexp_standard): Pass noside argument.
7934 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7935 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7936 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7937 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7938 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7940 2014-04-11 Keith Seitz <keiths@redhat.com>
7943 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7944 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7947 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7949 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7950 (evaluate_subexp_standard): Pass noside argument.
7951 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7952 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7953 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7954 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7955 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7957 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7959 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7960 points to a constant blob.
7962 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7964 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7965 property and store it as the high bound and flag the range accordingly.
7966 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7967 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7968 * gdbtypes.h (enum range_flags): New enum.
7969 (struct range_bounds): Add flags member.
7971 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7973 * c-typeprint.c (c_type_print_varspec_suffix): Added
7974 check for not yet resolved high bound. If unresolved, print
7975 "variable length" string to the console instead of random
7978 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7980 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7981 (ada_template_to_fixed_record_type_1): Likewise.
7982 (ada_to_fixed_type_1): Likewise.
7983 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7984 (cp_print_value): Likewise.
7985 * d-valprint.c (dynamic_array_type): Likewise.
7986 * eval.c (evaluate_subexp_with_coercion): Likewise.
7987 * findvar.c (address_of_variable): Likewise.
7988 * jv-valprint.c (java_value_print): Likewise.
7989 * valops.c (value_ind): Likewise.
7990 * value.c (coerce_ref): Likewise.
7992 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7994 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7995 value and retrieve the dynamic type size.
7997 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7999 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8000 passed to sizeof is dynamic evaluate the argument to compute the length.
8002 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8004 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8005 (dwarf2_evaluate_property): New function.
8006 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8007 * dwarf2read.c (attr_to_dynamic_prop): New function.
8008 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8010 * gdbtypes.c: Include dwarf2loc.h.
8011 (is_dynamic_type): New function.
8012 (resolve_dynamic_type): New function.
8013 (resolve_dynamic_bounds): New function.
8014 (get_type_length): New function.
8015 (check_typedef): Use get_type_length to compute type length.
8016 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8017 (TYPE_LOW_BOUND_KIND): New macro.
8018 (is_dynamic_type): New function prototype.
8019 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8020 to resolve dynamic properties of the type. Update comment.
8021 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8023 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8025 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8026 declaring high/low bounds and change uses accordingly. Call
8027 create_range_type instead of create_static_range_type.
8028 * gdbtypes.c (create_range_type): New function.
8029 (create_range_type): Convert bounds into struct bound_prop and pass
8030 them to create_range_type.
8031 * gdbtypes.h (struct bound_prop): New struct.
8032 (create_range_type): New function prototype.
8033 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8034 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8035 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8037 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8039 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8041 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8042 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8043 * ada-lang.c: All uses of create_range_type updated.
8044 * coffread.c: All uses of create_range_type updated.
8045 * dwarf2read.c: All uses of create_range_type updated.
8046 * f-exp.y: All uses of create_range_type updated.
8047 * m2-valprint.c: All uses of create_range_type updated.
8048 * mdebugread.c: All uses of create_range_type updated.
8049 * stabsread.c: All uses of create_range_type updated.
8050 * valops.c: All uses of create_range_type updated.
8051 * valprint.c: All uses of create_range_type updated.
8053 2014-04-10 Pedro Alves <palves@redhat.com>
8055 * breakpoint.c (single_step_breakpoints)
8056 (single_step_gdbarch): Move up in the file.
8057 (one_breakpoint_xfer_memory): New function, factored out from ...
8058 (breakpoint_xfer_memory): ... here. Also process single-step
8061 2014-04-09 Tristan Gingold <gingold@adacore.com>
8063 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8065 (darwin_decode_exception_message): Free port only after use.
8067 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8069 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8070 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8071 when setting the size of call_length.
8073 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8075 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8076 dereference TYPE_CODE_REF values.
8078 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8080 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8081 end of warning message.
8083 2014-04-03 Doug Evans <dje@google.com>
8085 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8086 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8088 2014-04-02 Alan Modra <amodra@gmail.com>
8090 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8091 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8092 (struct symbol_file_add_from_memory_args): Add size field.
8093 (find_vdso_size): New function.
8094 (add_vsyscall_page): Attempt to find vdso size.
8096 2014-04-01 Doug Evans <dje@google.com>
8098 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8100 2014-04-01 Tristan Gingold <gingold@adacore.com>
8102 * darwin-nat.c (darwin_encode_reply): Add prototype.
8103 (darwin_decode_exception_message): Reply to unknown inferiors.
8104 (darwin_decode_message): Handle message by id. Ignore message
8105 to unknown inferior.
8106 (darwin_wait): Discard unknown messages, add debug trace.
8108 2014-03-31 Doug Evans <dje@google.com>
8110 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8113 2014-03-31 Doug Evans <dje@google.com>
8115 New option "set print symbol-loading".
8117 * solib.c (solib_read_symbols): Only print symbol loading messages
8119 (solib_add): If symbol loading is in "brief" mode, notify user
8120 symbols are being loaded.
8121 (reload_shared_libraries_1): Ditto.
8122 * symfile.c (print_symbol_loading_off): New static global.
8123 (print_symbol_loading_brief): New static global.
8124 (print_symbol_loading_full): New static global.
8125 (print_symbol_loading_enums): New static global.
8126 (print_symbol_loading): New static global.
8127 (print_symbol_loading_p): New function.
8128 (symbol_file_add_with_addrs): Only print symbol loading messages
8130 (_initialize_symfile): Register "print symbol-loading" set/show
8132 * symfile.h (print_symbol_loading_p): Declare.
8134 2014-03-30 Doug Evans <xdje42@gmail.com>
8136 * infrun.c (set_last_target_status): New function.
8137 (handle_inferior_event): Call it.
8139 2014-03-30 Doug Evans <xdje42@gmail.com>
8141 * inferior.h (enum stop_kind): Improve comment.
8143 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8145 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8146 a reference, strip the reference layer before calling
8147 the lang_ops value_has_mutated callback.
8149 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8151 Remove some globals from our parser.
8152 * language.c (unk_lang_parser): Add "struct parser_state"
8154 * language.h (struct language_defn) <la_parser>: Likewise.
8155 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8156 (initialize_expout): Add "struct parser_state" argument.
8157 Rewrite function to use the parser state.
8158 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8159 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8160 write_exp_elt_longcst, write_exp_elt_dblcst,
8161 write_exp_elt_decfloatcst, write_exp_elt_type,
8162 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8163 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8164 write_dollar_variable): Likewise.
8165 (parse_exp_in_context_1): Use parser state.
8166 (insert_type_address_space): Add "struct parser_state" argument.
8168 (increase_expout_size): New function.
8169 * parser-defs.h: Forward declare "struct language_defn" and
8170 "struct parser_state".
8171 (expout, expout_size, expout_ptr): Remove extern declarations.
8172 (parse_gdbarch, parse_language): Rewrite macro declarations to
8173 accept the parser state.
8174 (struct parser_state): New struct.
8175 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8176 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8177 write_exp_elt_decfloatcst, write_exp_elt_type,
8178 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8179 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8180 write_exp_msymbol, write_dollar_variable,
8181 mark_struct_expression, insert_type_address_space): Add "struct
8182 parser_state" argument.
8183 (increase_expout_size): New function.
8184 * utils.c (do_clear_parser_state): New function.
8185 (make_cleanup_clear_parser_state): Likewise.
8186 * utils.h (make_cleanup_clear_parser_state): New function
8188 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8189 Update calls to write_exp* in order to pass the parser state.
8190 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8191 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8192 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8193 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8194 * stap-probe.c (stap_parse_register_operand): Likewise.
8195 (stap_parse_single_operand): Likewise.
8196 (stap_parse_argument_1): Likewise.
8197 (stap_parse_argument): Use parser state.
8198 * stap-probe.h: Include "parser-defs.h".
8199 (struct stap_parse_info) <pstate>: New field.
8200 * c-exp.y (parse_type): Rewrite to use parser state.
8201 (yyparse): Redefine to c_parse_internal.
8202 (pstate): New global variable.
8203 (parse_number): Add "struct parser_state" argument.
8204 (write_destructor_name): Likewise.
8205 (type_exp): Update calls to write_exp* and similars in order to
8207 (exp1, exp, variable, qualified_name, space_identifier,
8208 typename, typebase): Likewise.
8209 (write_destructor_name, parse_number, lex_one_token,
8210 classify_name, classify_inner_name, c_parse): Add "struct
8211 parser_state" argument. Update function to use parser state.
8212 * c-lang.h: Forward declare "struct parser_state".
8213 (c_parse): Add "struct parser_state" argument.
8214 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8215 (yyparse): Redefine macro to ada_parse_internal.
8216 (pstate): New variable.
8217 (write_int, write_object_renaming, write_var_or_type,
8218 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8219 type_int, type_long, type_long_long, type_float, type_double,
8220 type_long_double, type_char, type_boolean, type_system_address):
8221 Add "struct parser_state" argument.
8222 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8223 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8224 var_or_type, aggregate, aggregate_component_list,
8225 positional_list, others, component_group,
8226 component_associations): Update calls to write_exp* and similar
8227 functions in order to use parser state.
8228 (ada_parse, write_var_from_sym, write_int,
8229 write_exp_op_with_string, write_object_renaming,
8230 find_primitive_type, write_selectors, write_ambiguous_var,
8231 write_var_or_type, write_name_assoc, type_int, type_long,
8232 type_long_long, type_float, type_double, type_long_double,
8233 type_char, type_boolean, type_system_address): Add "struct
8234 parser_state" argument. Adjust function to use parser state.
8235 * ada-lang.c (parse): Likewise.
8236 * ada-lang.h: Forward declare "struct parser_state".
8237 (ada_parse): Add "struct parser_state" argument.
8238 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8239 calls to both functions.
8240 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8242 (yyparse): Redefine macro to f_parse_internal.
8243 (pstate): New variable.
8244 (parse_number): Add "struct parser_state" argument.
8245 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8246 and similars in order to use parser state.
8247 (parse_number): Adjust code to use parser state.
8249 (f_parse): New function.
8250 * f-lang.h: Forward declare "struct parser_state".
8251 (f_parse): Add "struct parser_state" argument.
8252 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8254 (yyparse): Redefine macro for java_parse_internal.
8255 (pstate): New variable.
8256 (push_expression_name, push_expression_name, insert_exp): Add
8257 "struct parser_state" argument.
8258 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8259 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8260 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8261 PostIncrementExpression, PostDecrementExpression,
8262 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8263 UnaryExpressionNotPlusMinus, CastExpression,
8264 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8265 RelationalExpression, EqualityExpression, AndExpression,
8266 ExclusiveOrExpression, InclusiveOrExpression,
8267 ConditionalAndExpression, ConditionalOrExpression,
8268 ConditionalExpression, Assignment, LeftHandSide): Update
8269 calls to write_exp* and similars in order to use parser state.
8270 (parse_number): Ajust code to use parser state.
8272 (java_parse): New function.
8273 (push_variable): Add "struct parser_state" argument. Adjust
8274 code to user parser state.
8275 (push_fieldnames, push_qualified_expression_name,
8276 push_expression_name, insert_exp): Likewise.
8277 * jv-lang.h: Forward declare "struct parser_state".
8278 (java_parse): Add "struct parser_state" argument.
8279 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8281 (yyparse): Redefine macro to m2_parse_internal.
8282 (pstate): New variable.
8283 (type_exp, exp, fblock, variable, type): Update calls to
8284 write_exp* and similars to use parser state.
8286 (m2_parse): New function.
8287 * m2-lang.h: Forward declare "struct parser_state".
8288 (m2_parse): Add "struct parser_state" argument.
8289 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8290 * objc-lang.h: Forward declare "struct parser_state".
8291 (end_msglist): Add "struct parser_state" argument.
8292 * p-exp.y (parse_type): Rewrite macro to use parser state.
8293 (yyparse): Redefine macro to pascal_parse_internal.
8294 (pstate): New variable.
8295 (parse_number): Add "struct parser_state" argument.
8296 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8297 write_exp* and similars in order to use parser state.
8298 (parse_number, yylex): Adjust code to use parser state.
8299 (pascal_parse): New function.
8300 * p-lang.h: Forward declare "struct parser_state".
8301 (pascal_parse): Add "struct parser_state" argument.
8302 * go-exp.y (parse_type): Rewrite macro to use parser state.
8303 (yyparse): Redefine macro to go_parse_internal.
8304 (pstate): New variable.
8305 (parse_number): Add "struct parser_state" argument.
8306 (type_exp, exp1, exp, variable, type): Update calls to
8307 write_exp* and similars in order to use parser state.
8308 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8309 to use parser state.
8310 (go_parse): Likewise.
8311 * go-lang.h: Forward declare "struct parser_state".
8312 (go_parse): Add "struct parser_state" argument.
8314 2014-03-27 Doug Evans <dje@google.com>
8316 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8318 2014-03-27 Doug Evans <dje@google.com>
8320 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8321 Remove argument abbrev_section. All callers updated.
8323 2014-03-27 Doug Evans <dje@google.com>
8325 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8326 addr_base, ranges_base.
8328 2014-03-26 Keith Seitz <keiths@redhat.com>
8330 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8331 types, not VAR_DOMAIN.
8333 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8335 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8337 * features/nios2-linux.c: Regenerated.
8338 * features/nios2.c: Regenerated.
8340 2014-03-25 Pedro Alves <palves@redhat.com>
8342 * cli/cli-script.c (script_from_file): Force the interpreter to
8345 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8347 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8348 small stack allocation.
8350 2014-03-24 Tristan Gingold <gingold@adacore.com>
8352 * darwin-nat.c (exc_server): Remove unused prototype.
8353 (darwin_dump_message): Correctly display data on x86_64.
8354 (darwin_encode_reply): Fix style.
8355 Add comments and fix indentation.
8357 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8359 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8361 2014-03-22 Doug Evans <xdje42@gmail.com>
8363 * infcmd.c: Whitespace fixes.
8364 (interrupt_command): Merge two function comments into one.
8366 2014-03-22 Doug Evans <xdje42@gmail.com>
8368 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8371 2014-03-22 Yao Qi <yao@codesourcery.com>
8373 * remote.c (target_read_live_memory): Remove.
8374 (memory_xfer_live_readonly_partial): Rename it to
8375 remote_xfer_live_readonly_partial. Remove argument 'object'.
8376 All callers updated. Call remote_read_bytes_1
8377 instead of target_read_live_memory.
8378 * tracepoint.c (set_traceframe_number): Remove.
8379 (make_cleanup_restore_traceframe_number): Likewise .
8380 * tracepoint.h (set_traceframe_number): Remove declaration.
8381 (make_cleanup_restore_traceframe_number): Likewise.
8383 2014-03-22 Yao Qi <yao@codesourcery.com>
8385 * remote.c (remote_read_bytes): Move code on reading from the
8387 (remote_read_bytes_1): ... here. New function.
8389 2014-03-22 Yao Qi <yao@codesourcery.com>
8391 * ctf.c (ctf_xfer_partial): Check the return value of
8392 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8393 return TARGET_XFER_UNAVAILABLE.
8394 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8395 * target.c (target_read_live_memory): Move it to remote.c.
8396 (memory_xfer_live_readonly_partial): Likewise.
8397 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8398 * remote.c (target_read_live_memory): Moved from target.c.
8399 (memory_xfer_live_readonly_partial): Likewise.
8400 (remote_read_bytes): Factored out from
8401 memory_xfer_partial_1.
8403 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8405 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8408 2014-03-21 Pedro Alves <palves@redhat.com>
8410 * infrun.c (normal_stop): Extend comment.
8412 2014-03-21 Hui Zhu <hui@codesourcery.com>
8413 Pedro Alves <palves@redhat.com>
8415 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8417 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8418 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8419 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8421 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8423 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8424 `z' formatted output modifier.
8426 2014-03-20 Tom Tromey <tromey@redhat.com>
8427 Sergio Durigan Junior <sergiodj@redhat.com>
8429 * probe.c (parse_probes): Turn assert into an ordinary error.
8430 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8431 exceptions when parsing probes. Rearrange the code for clarity.
8433 2014-03-20 Tom Tromey <tromey@redhat.com>
8436 * top.c (execute_command): Only dispatch events if the command
8439 2014-03-20 Tom Tromey <tromey@redhat.com>
8442 * infcall.c: Include event-top.h.
8443 (run_inferior_call): Call async_disable_stdin if needed.
8445 2014-03-20 Pedro Alves <palves@redhat.com>
8447 * infrun.c (prepare_to_proceed): Delete.
8448 (thread_still_needs_step_over): New function.
8449 (find_thread_needs_step_over): New function.
8450 (proceed): If the current thread needs a step-over, set its
8451 steping_over_breakpoint flag. Adjust to use
8452 find_thread_needs_step_over instead of prepare_to_proceed.
8453 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8454 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8456 (switch_back_to_stepped_thread): Step over breakpoints of all
8457 threads not the stepping thread, before switching back to the
8460 2014-03-20 Pedro Alves <palves@redhat.com>
8462 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8464 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8465 * infrun.c (saved_singlestep_ptid)
8466 (stepping_past_singlestep_breakpoint): Delete.
8467 (resume): Remove stepping_past_singlestep_breakpoint handling.
8468 (proceed): Store the prev_pc of the stepping thread too.
8469 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8471 (enum infwait_states): Delete infwait_thread_hop_state.
8472 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8474 (handle_inferior_event): Adjust.
8475 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8476 handling and the thread-hop code. Before removing single-step
8477 breakpoints, check whether the thread hit a single-step breakpoint
8478 of another thread. If it did, the trap is not a random signal.
8479 (switch_back_to_stepped_thread): If the event thread hit a
8480 single-step breakpoint, unblock it before switching to the
8481 stepping thread. Handle the case of the stepped thread having
8483 (keep_going): Handle the case of the current thread moving past a
8484 single-step breakpoint.
8486 2014-03-20 Pedro Alves <palves@redhat.com>
8489 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8490 are being stepped over.
8491 (breakpoint_address_match): Make extern.
8492 * breakpoint.h (breakpoint_address_match): New declaration.
8493 * inferior.h (stepping_past_instruction_at): New declaration.
8494 * infrun.c (struct step_over_info): New type.
8495 (step_over_info): New global.
8496 (set_step_over_info, clear_step_over_info)
8497 (stepping_past_instruction_at): New functions.
8498 (handle_inferior_event): Clear the step-over info when
8499 trap_expected is cleared.
8500 (resume): Remove now stale comment.
8501 (clear_proceed_status): Clear step-over info.
8502 (proceed): Adjust step-over handling to set or clear the step-over
8503 info instead of removing all breakpoints.
8504 (handle_signal_stop): When setting up a thread-hop, don't remove
8506 (stop_stepping): Clear step-over info.
8507 (keep_going): Adjust step-over handling to set or clear step-over
8508 info and then always inserting breakpoints, instead of removing
8509 all breakpoints when stepping over one.
8511 2014-03-20 Pedro Alves <palves@redhat.com>
8513 * infrun.c (previous_inferior_ptid): Adjust comment.
8514 (deferred_step_ptid): Delete.
8515 (infrun_thread_ptid_changed, prepare_to_proceed)
8516 (init_wait_for_inferior): Adjust.
8517 (handle_signal_stop): Delete deferred_step_ptid handling.
8519 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8522 * defs.h (sync_quit_force_run): New declaration.
8523 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8524 * event-top.c (async_sigterm_handler): New declaration.
8525 (async_sigterm_token): New variable.
8526 (async_init_signals): Create also async_sigterm_token.
8527 (async_sigterm_handler): New function.
8528 (sync_quit_force_run): New variable.
8529 (handle_sigterm): Replace quit_force call by other calls.
8530 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8532 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8534 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8535 offset into SPE pseudo registers.
8537 2014-03-18 Pedro Alves <palves@redhat.com>
8540 * inferior.h (print_stop_event): Declare.
8541 * infrun.c (print_stop_event): New, factored out from ...
8542 (normal_stop): ... this.
8543 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8544 of bpstat_print/print_stack_frame.
8546 2014-03-17 Tom Tromey <tromey@redhat.com>
8548 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8550 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8552 * ada-lang.c (decode_constrained_packed_array): Perform a
8553 minimal coercion for reference with coerce_ref instead of
8556 2014-03-17 Tristan Gingold <gingold@adacore.com>
8558 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8559 (darwin_solib_create_inferior_hook): Emit a warning if version
8562 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8564 * python/py-value.c (get_field_flag): Cast flag_name argument to
8565 PyObject_GetAttrString to support Python 2.4.
8567 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8569 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8570 (Global Maintainers): Remove Jan Kratochvil.
8572 2014-03-14 Pedro Alves <palves@redhat.com>
8574 * inferior.h (terminal_ours_for_output): Rename to ...
8575 (child_terminal_ours_for_output): ... this.
8576 (terminal_save_ours): Rename to ...
8577 (child_terminal_save_ours): ... this.
8578 (terminal_ours): Rename to ...
8579 (child_terminal_ours): ... this.
8580 (terminal_inferior): Rename to ...
8581 (child_terminal_inferior): ... this.
8582 (terminal_init_inferior): Rename to ...
8583 (child_terminal_init_inferior): ... this.
8584 (terminal_init_inferior_with_pgrp): Rename to ...
8585 (child_terminal_init_inferior_with_pgrp): ... this.
8586 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8587 (child_terminal_init_with_pgrp): ... this.
8588 (terminal_save_ours): Rename to ...
8589 (child_terminal_save_ours): ... this.
8590 (terminal_init_inferior): Rename to ...
8591 (child_terminal_init): ... this. Adjust.
8592 (terminal_inferior): Rename to ...
8593 (child_terminal_inferior): ... this.
8594 (terminal_ours_for_output): Rename to ...
8595 (child_terminal_ours_for_output): ... this. Adjust.
8596 (terminal_ours): Rename to ...
8597 (child_terminal_ours): ... this.
8598 (terminal_ours_1): Rename to ...
8599 (child_terminal_ours_1): ... this. Adjust.
8600 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8601 * windows-nat.c (do_initial_windows_stuff): Adjust.
8602 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8603 (gnu_terminal_init): ... this. Adjust.
8604 (gnu_target): Adjust.
8605 * inf-child.c (inf_child_target): Adjust.
8607 2014-03-13 Doug Evans <xdje42@gmail.com>
8610 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8613 2014-03-13 Doug Evans <xdje42@gmail.com>
8615 * value.c (record_latest_value): Call release_value_or_incref
8616 instead of release_value.
8618 2014-03-13 Pedro Alves <palves@redhat.com>
8620 * procfs.c (procfs_target): Don't override to_shortname,
8621 to_longname or to_doc.
8623 2014-03-13 Pedro Alves <palves@redhat.com>
8625 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8626 Unix in user visible strings.
8628 2014-03-12 Stan Shebs <stan@codesourcery.com>
8630 * gdbtypes.h: Annotate comments for Doxygen, add a page
8631 block comment with some general info.
8633 2014-03-12 Pedro Alves <palves@redhat.com>
8635 * infcmd.c (prepare_execution_command): New function, factored out
8636 from several execution commands.
8637 (run_command_1, continue_command, step_1, jump_command)
8638 (signal_command, until_command, advance_command, finish_command)
8639 (attach_command): Use prepare_execution_command.
8641 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8643 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8646 (struct arm_linux_thread_points): Removed.
8647 (struct arm_linux_process_info): New.
8648 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8649 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8650 (arm_linux_find_breakpoints_by_tid): Removed.
8651 (struct arch_lwp_info): New.
8652 (arm_linux_find_process_pid): New functions.
8653 (arm_linux_add_process): New functions.
8654 (arm_linux_process_info_get): New functions.
8655 (arm_linux_forget_process): New function.
8656 (arm_linux_get_debug_reg_state): New function.
8657 (struct update_registers_data): New.
8658 (update_registers_callback): New function.
8659 (arm_linux_insert_hw_breakpoint1): Updated.
8660 (arm_linux_remove_hw_breakpoint1): Updated.
8661 (arm_linux_insert_hw_breakpoint): Updated.
8662 (arm_linux_remove_hw_breakpoint): Updated.
8663 (arm_linux_insert_watchpoint): Updated.
8664 (arm_linux_remove_watchpoint): Updated.
8665 (arm_linux_new_thread): Updated.
8666 (arm_linux_prepare_to_resume): New function.
8667 (arm_linux_new_fork): New function.
8668 (_initialize_arm_linux_nat): Updated.
8670 2014-03-12 Pedro Alves <palves@redhat.com>
8672 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8674 2014-03-12 Tom Tromey <tromey@redhat.com>
8676 * inf-child.c (return_zero): New function.
8677 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8678 * aix-thread.c (aix_thread_inferior_created): New function.
8679 (aix_thread_attach): Remove.
8680 (init_aix_thread_ops): Don't set to_attach.
8681 (_initialize_aix_thread): Register inferior_created observer.
8682 * corelow.c (init_core_ops): Don't set to_attach or
8684 * exec.c (init_exec_ops): Don't set to_attach or
8686 * infcmd.c (run_command_1): Use find_run_target. Make direct
8688 (attach_command): Use find_attach_target. Make direct target
8690 * record-btrace.c (init_record_btrace_ops): Don't set
8692 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8694 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8695 set to_create_inferior.
8696 * target.c (complete_target_initialization): Add assertion.
8697 (target_create_inferior): Remove.
8698 (find_default_attach, find_default_create_inferior): Remove.
8699 (find_attach_target, find_run_target): New functions.
8700 (find_default_is_async_p, find_default_can_async_p)
8701 (target_supports_non_stop, target_attach): Remove.
8702 (init_dummy_target): Don't set to_create_inferior or
8703 to_supports_non_stop.
8704 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8705 TARGET_DEFAULT_FUNC.
8706 <to_create_inferior>: Add comment.
8707 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8708 TARGET_DEFAULT_RETURN.
8709 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8710 (find_attach_target, find_run_target): Declare.
8711 (target_create_inferior): Remove.
8712 (target_has_execution_1): Update comment.
8713 (target_supports_non_stop): Remove.
8714 * target-delegates.c: Rebuild.
8716 2014-03-12 Pedro Alves <palves@redhat.com>
8718 * inf-child.h: Update comment to not mention Unix.
8720 2014-03-12 Pedro Alves <palves@redhat.com>
8722 * inf-child.c: Update top comment to not mention Unix. Add
8723 generic comment describing how this target is meant to be used.
8724 (inf_child_post_attach, inf_child_post_startup_inferior)
8725 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8728 2014-03-12 Pedro Alves <palves@redhat.com>
8730 * nto-procfs.c: Include inf-child.h.
8731 (procfs_ops): Delete global.
8732 (procfs_can_run): Delete method.
8733 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8734 target pointer instead of referencing procfs_ops.
8735 (procfs_prepare_to_store): Delete.
8736 (init_procfs_ops): Delete function.
8737 (procfs_target): New function, based on init_procfs_ops, but
8738 inherit inf_child_target.
8739 (_initialize_procfs): Use procfs_target.
8741 2014-03-12 Pedro Alves <palves@redhat.com>
8743 * windows-nat.c: Include inf-child.h.
8744 (windows_ops): Delete global.
8745 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8747 (init_windows_ops): Delete function.
8748 (windows_target): New function, based on init_windows_ops, but
8749 inherit inf_child_target.
8750 (_initialize_windows_nat): Use windows_target. Install x86
8751 specific target methods here.
8753 2014-03-10 Doug Evans <xdje42@gmail.com>
8755 * guile/guile.c (call_initialize_gdb_module): New function.
8756 (initialize_guile): Replace call to scm_init_guile with call to
8759 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8761 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8762 in call to TYPE_CODE macro.
8764 2014-03-10 Jerome Guitton <guitton@adacore.com>
8766 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8767 Resolve tagged types to full view.
8769 2014-03-10 Hui Zhu <hui@codesourcery.com>
8771 * target.h (target_insert_breakpoint): Remove "hardware" from its
8774 2014-03-07 Doug Evans <dje@google.com>
8776 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8778 2014-03-07 Doug Evans <dje@google.com>
8780 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8781 Remove unused local comp_dir_attr. Assert exactly one of
8782 stub_comp_unit_die, stub_comp_dir is non-NULL.
8784 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8786 * target.h (complete_target_initialization, add_target):
8789 2014-03-07 Pedro Alves <palves@redhat.com>
8791 * go32-nat.c: Include inf-child.h.
8792 (go32_ops): Delete global.
8793 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8795 (go32_create_inferior): Push the passed in target pointer instead
8796 of referencing go32_ops.
8797 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8798 (go32_target): New function, based on init_go32_ops, but inherit
8800 (_initialize_go32_nat): Use go32_target. Move parts of
8803 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8805 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8806 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8807 SYMBOL_VALUE_ADDRESS.
8808 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8810 2014-03-06 Yao Qi <yao@codesourcery.com>
8812 * breakpoint.c (get_tracepoint_by_number): Remove argument
8813 optional_p. All callers updated. Adjust comments. Update
8815 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8817 2014-03-06 Yao Qi <yao@codesourcery.com>
8819 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8820 early if get_number returns zero. Use 'p' instead of 'args'.
8822 2014-03-06 Yao Qi <yao@codesourcery.com>
8824 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8827 2014-03-06 Yao Qi <yao@codesourcery.com>
8829 PR breakpoints/16508
8830 * tracepoint.c (check_trace_running): New function.
8831 (trace_find_command): Move code to check_trace_running and
8832 call check_trace_running.
8833 (trace_find_pc_command): Likewise.
8834 (trace_find_tracepoint_command): Likewise.
8835 (trace_find_line_command): Likewise.
8836 (trace_find_range_command): Likewise.
8837 * tracepoint.h (check_trace_running): Likewise.
8838 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8840 2014-03-06 Yao Qi <yao@codesourcery.com>
8842 * target.h (struct target_ops) <to_traceframe_info>: Use
8843 TARGET_DEFAULT_NORETURN (tcomplain ()).
8844 * target-delegates.c: Regenerated.
8846 2014-03-05 Pedro Alves <palves@redhat.com>
8849 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8850 void. Update comment.
8851 (dcache_xfer_memory): Delete.
8852 (dcache_read_memory_partial): New, based on the read bits of
8854 (dcache_update): Add status parameter. Use ULONGEST for len, and
8855 adjust. Discard cache lines if the reason for the update was
8857 * dcache.h (dcache_xfer_memory): Delete declaration.
8858 (dcache_read_memory_partial): New declaration.
8859 (dcache_update): Update prototype.
8860 * target.c (raw_memory_xfer_partial): Update the dcache here.
8861 (memory_xfer_partial_1): Don't handle dcache writes here.
8863 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8865 * remote-sim.c (gdbsim_load): Add const to prog.
8867 2014-03-03 Tom Tromey <tromey@redhat.com>
8869 * elfread.c (probe_key): Change to bfd_data.
8870 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8871 now per-BFD, not per-objfile.
8872 * stap-probe.c (stap_probe_destroy): Update comment.
8873 (handle_stap_probe): Allocate on the per-BFD obstack.
8875 2014-03-03 Tom Tromey <tromey@redhat.com>
8877 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8878 * breakpoint.c (create_longjmp_master_breakpoint): Use
8880 (add_location_to_breakpoint, bkpt_probe_insert_location)
8881 (bkpt_probe_remove_location): Update.
8882 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8883 * elfread.c (elf_symfile_relocate_probe): Remove.
8884 (elf_probe_fns): Update.
8885 (insert_exception_resume_breakpoint): Change type of "probe"
8886 parameter to bound_probe.
8887 (check_exception_resume): Update.
8888 * objfiles.c (objfile_relocate1): Don't relocate probes.
8889 * probe.c (bound_probe_s): New typedef.
8890 (parse_probes): Use get_probe_address. Set sal's objfile.
8891 (find_probe_by_pc): Return a bound_probe.
8892 (collect_probes): Return a VEC(bound_probe_s).
8893 (compare_probes): Update.
8894 (gen_ui_out_table_header_info): Change type of "probes"
8896 (info_probes_for_ops): Update.
8897 (get_probe_address): New function.
8898 (probe_safe_evaluate_at_pc): Update.
8899 * probe.h (struct probe_ops) <get_probe_address>: New field.
8900 <set_semaphore, clear_semaphore>: Add objfile parameter.
8901 (struct probe) <objfile>: Remove field.
8903 <address>: Update comment.
8904 (struct bound_probe): New.
8905 (find_probe_by_pc): Return a bound_probe.
8906 (get_probe_address): Declare.
8907 * solib-svr4.c (struct probe_and_action) <address>: New field.
8908 (hash_probe_and_action, equal_probe_and_action): Update.
8909 (register_solib_event_probe): Add address parameter.
8910 (solib_event_probe_at): Update.
8911 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8913 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8914 (stap_get_probe_address): New function.
8915 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8916 (compile_probe_arg): Update.
8917 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8919 (handle_stap_probe): Don't relocate the probe.
8920 (stap_relocate): Remove.
8921 (stap_gen_info_probes_table_values): Update.
8922 (stap_probe_ops): Remove stap_relocate.
8923 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8924 (debug_sym_probe_fns): Update.
8925 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8926 * symtab.c (init_sal): Use memset.
8927 * symtab.h (struct symtab_and_line) <objfile>: New field.
8928 * tracepoint.c (start_tracing, stop_tracing): Update.
8930 2014-03-03 Tom Tromey <tromey@redhat.com>
8932 * probe.h (parse_probes, find_probe_by_pc)
8933 (find_probes_in_objfile): Fix comments.
8935 2014-03-02 Doug Evans <xdje42@gmail.com>
8937 * infrun.c (handle_signal_stop): Replace test for
8938 TARGET_WAITKIND_STOPPED with an assert.
8940 2014-03-02 Doug Evans <xdje42@gmail.com>
8942 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8944 2014-03-02 Doug Evans <xdje42@gmail.com>
8946 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8948 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8950 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8952 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8954 * i386obsd-nat.c: Include "obsd-nat.h".
8955 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8957 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8959 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8961 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8963 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8965 * mips64obsd-nat.c: Include "obsd-nath".
8966 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8968 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8970 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8972 * amd64obsd-nat.c: Include "obsd-nat,h.
8973 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8975 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8977 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8979 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8980 (find_overload_match): Update call to find_oload_champ.
8981 (find_oload_champ_namespace_loop): Likewise
8983 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8985 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8987 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8988 * config/sparc/obsd64.mh: New file.
8989 * sparc64obsd-nat.c: New file.
8991 * obsd-nat.h: New file.
8992 * obsd-nat.c: New file.
8993 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8994 (ALLDEPFILES): Add obsd-nat.c.
8996 2014-02-28 Tom Tromey <tromey@redhat.com>
8998 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8999 * cli-out.h (cli_ui_out_impl): Now const.
9000 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9001 * ui-out.c (struct ui_out) <impl>: Now const.
9002 (default_ui_out_impl): Now const.
9003 (ui_out_new): Make 'impl' parameter const.
9004 * ui-out.h (ui_out_new): Update.
9006 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9008 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9010 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9012 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9014 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9016 Additional PR 8882 fix.
9017 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9019 2014-02-27 Pedro Alves <palves@redhat.com>
9021 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9024 2014-02-27 Pedro Alves <palves@redhat.com>
9027 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9028 * nat/linux-waitpid.c: Include string.h.
9029 (status_to_str): Moved here and made extern.
9030 * nat/linux-waitpid.h (status_to_str): New declaration.
9032 2014-02-27 Hui Zhu <hui@codesourcery.com>
9035 * infrun.c (ptid_match): Move ...
9036 * common/ptid.c (ptid_match): ... here.
9037 * inferior.h (ptid_match): Move ...
9038 * common/ptid.h (ptid_match): ... here.
9040 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9042 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9043 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9046 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9048 * obsd-tdep.c (obsd_auxv_parse): New function.
9049 (obsd_init_abi): Set auxv_parse.
9051 * gdbarch.sh (auxv_parse): New.
9052 * gdbarch.h: Regenerated.
9053 * gdbarch.c: Regenerated.
9054 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9056 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9058 * guile/scm-value.c (gdbscm_history_append_x): New function.
9059 (value_functions): Add it.
9061 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9063 * dwarf2read.c (attr_value_as_address): New function.
9064 (dwarf2_find_base_address, read_call_site_scope): Use
9065 attr_value_as_address in place of DW_ADDR.
9066 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9067 the low and high addresses. Slight rework of the handling
9068 of the high pc being a constant form, and limit it to
9069 DWARF verson 4 or higher.
9070 (dwarf2_record_block_ranges): Likewise.
9071 (read_partial_die): Likewise.
9072 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9074 2014-02-26 Tom Tromey <tromey@redhat.com>
9076 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9078 2014-02-26 Tom Tromey <tromey@redhat.com>
9080 * elfread.c (elf_read_minimal_symbols): Return early if
9081 minimal symbols have already been read. Add "ei" parameter.
9082 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9083 * minsyms.c (prim_record_minimal_symbol_full): Update.
9084 * objfiles.h (struct objstats) <n_minsyms>: Move...
9085 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9086 * symmisc.c (print_objfile_statistics): Update.
9088 2014-02-26 Tom Tromey <tromey@redhat.com>
9090 * elfread.c (elf_read_minimal_symbols): New function, from
9092 (elf_symfile_read): Call it.
9094 2014-02-26 Tom Tromey <tromey@redhat.com>
9096 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9097 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9098 (lookup_minimal_symbol_solib_trampoline)
9099 (lookup_minimal_symbol_by_pc_section_1)
9100 (lookup_minimal_symbol_and_objfile): Update.
9101 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9102 Don't allocate a minimal symbol if minsyms have already been read.
9103 (build_minimal_symbol_hash_tables): Update.
9104 (install_minimal_symbols): Do nothing if minsyms already read.
9105 Use the per-BFD obstack.
9106 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9107 * objfiles.c (allocate_objfile): Call
9108 terminate_minimal_symbol_table later.
9109 (have_minimal_symbols): Update.
9110 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9111 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9112 Move from struct objfile.
9113 <minsyms_read>: New field.
9114 (struct objfile) <msymbols, minimal_symbol_count,
9115 msymbol_hash, msymbol_demangled_hash>: Move.
9116 (ALL_OBJFILE_MSYMBOLS): Update.
9117 * symfile.c (read_symbols): Set minsyms_read.
9118 (reread_symbols): Update.
9119 * symmisc.c (dump_objfile, dump_msymbols): Update.
9121 2014-02-26 Tom Tromey <tromey@redhat.com>
9123 * minsyms.c (msymbols_sort): Remove.
9124 * minsyms.h (msymbols_sort): Remove.
9125 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9126 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9127 * elfread.c (elf_symtab_read): Don't add section offsets.
9128 * xcoffread.c (record_minimal_symbol): Don't add section offset
9129 to minimal symbol address.
9130 * somread.c (text_offset, data_offset): Remove.
9131 (som_symtab_read): Don't add section offsets to minimal symbol
9133 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9134 Don't add section offsets to minimal symbols.
9135 * coffread.c (coff_symtab_read): Don't add section offsets
9136 to minimal symbol addresses.
9137 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9138 to minimal symbol addresses.
9139 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9140 section offset to minimal symbol addresses.
9141 * mdebugread.c (parse_partial_symbols): Don't add section
9142 offset to minimal symbol addresses.
9143 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9144 offset to minimal symbol addresses.
9146 2014-02-26 Tom Tromey <tromey@redhat.com>
9148 * ada-lang.c (ada_main_name): Update.
9149 (ada_add_standard_exceptions): Update.
9150 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9151 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9152 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9153 * auxv.c (ld_so_xfer_auxv): Update.
9154 * avr-tdep.c (avr_scan_prologue): Update.
9155 * ax-gdb.c (gen_var_ref): Update.
9156 * blockframe.c (get_pc_function_start)
9157 (find_pc_partial_function_gnu_ifunc): Update.
9158 * breakpoint.c (create_overlay_event_breakpoint)
9159 (create_longjmp_master_breakpoint)
9160 (create_std_terminate_master_breakpoint)
9161 (create_exception_master_breakpoint): Update.
9162 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9163 * c-valprint.c (c_val_print): Update.
9164 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9165 * common/agent.c (agent_look_up_symbols): Update.
9166 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9167 * dwarf2loc.c (call_site_to_target_addr): Update.
9168 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9169 * elfread.c (elf_gnu_ifunc_record_cache)
9170 (elf_gnu_ifunc_resolve_by_got): Update.
9171 * findvar.c (default_read_var_value): Update.
9172 * frame.c (inside_main_func): Update.
9173 * frv-tdep.c (frv_frame_this_id): Update.
9174 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9175 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9177 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9178 (hppa_hpux_find_dummy_bpaddr): Update.
9179 * hppa-tdep.c (hppa_symbol_address): Update.
9180 * infcmd.c (until_next_command): Update.
9181 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9183 * linespec.c (minsym_found, add_minsym): Update.
9184 * linux-nat.c (get_signo): Update.
9185 * linux-thread-db.c (inferior_has_bug): Update.
9186 * m32c-tdep.c (m32c_return_value)
9187 (m32c_m16c_address_to_pointer): Update.
9188 * m32r-tdep.c (m32r_frame_this_id): Update.
9189 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9190 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9191 * maint.c (maintenance_translate_address): Update.
9192 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9193 (frob_address): New function.
9194 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9195 frob_address. Rename parameter to "pc_in".
9196 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9198 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9200 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9201 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9202 * objc-lang.c (find_objc_msgsend): Update.
9203 * objfiles.c (objfile_relocate1): Update.
9204 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9205 * p-valprint.c (pascal_val_print): Update.
9206 * parse.c (write_exp_msymbol): Update.
9207 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9208 (ppc_elfv2_skip_entrypoint): Update.
9209 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9210 * printcmd.c (build_address_symbolic, msym_info)
9211 (address_info): Update.
9212 * proc-service.c (ps_pglobal_lookup): Update.
9213 * psymtab.c (find_pc_sect_psymtab_closer)
9214 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9215 Change msymbol parameter to bound_minimal_symbol.
9216 * ravenscar-thread.c (get_running_thread_id): Update.
9217 * remote.c (remote_check_symbols): Update.
9218 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9220 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9221 * solib-dsbt.c (lm_base): Update.
9222 * solib-frv.c (lm_base, main_got): Update.
9223 * solib-irix.c (locate_base): Update.
9224 * solib-som.c (som_solib_create_inferior_hook)
9225 (link_map_start): Update.
9226 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9227 * solib-svr4.c (elf_locate_base, enable_break): Update.
9228 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9229 (flush_ea_cache): Update.
9230 * stabsread.c (define_symbol, scan_file_globals): Update.
9231 * stack.c (find_frame_funname): Update.
9232 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9233 (debug_qf_find_pc_sect_symtab): Update.
9234 * symfile.c (simple_read_overlay_table)
9235 (simple_overlay_update): Update.
9236 * symfile.h (struct quick_symbol_functions)
9237 <find_pc_sect_symtab>: Change type of msymbol to
9238 bound_minimal_symbol.
9239 * symmisc.c (dump_msymbols): Update.
9240 * symtab.c (find_pc_sect_symtab_via_partial)
9241 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9242 (search_symbols, print_msymbol_info): Update.
9243 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9244 (MSYMBOL_VALUE_ADDRESS): Redefine.
9245 (BMSYMBOL_VALUE_ADDRESS): New macro.
9246 * tracepoint.c (scope_info): Update.
9247 * tui/tui-disasm.c (tui_find_disassembly_address)
9248 (tui_get_begin_asm_address): Update.
9249 * valops.c (find_function_in_inferior): Update.
9250 * value.c (value_static_field, value_fn_field): Update.
9252 2014-02-26 Tom Tromey <tromey@redhat.com>
9254 * ada-lang.c (ada_update_initial_language): Update.
9255 (ada_main_name, ada_has_this_exception_support): Update.
9256 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9257 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9258 * arm-tdep.c (arm_skip_stub): Update.
9259 * auxv.c (ld_so_xfer_auxv): Update.
9260 * avr-tdep.c (avr_scan_prologue): Update.
9261 * ax-gdb.c (gen_var_ref): Update.
9262 * breakpoint.c (struct breakpoint_objfile_data)
9263 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9264 type to bound_minimal_symbol.
9265 (create_overlay_event_breakpoint)
9266 (create_longjmp_master_breakpoint)
9267 (create_std_terminate_master_breakpoint)
9268 (create_exception_master_breakpoint): Update.
9269 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9270 * c-exp.y (classify_name): Update.
9271 * coffread.c (coff_symfile_read): Update.
9272 * common/agent.c (agent_look_up_symbols): Update.
9273 * d-lang.c (d_main_name): Update.
9274 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9275 * dec-thread.c (enable_dec_thread): Update.
9276 * dwarf2loc.c (call_site_to_target_addr): Update.
9277 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9278 * eval.c (evaluate_subexp_standard): Update.
9279 * findvar.c (struct minsym_lookup_data) <result>: Change type
9280 to bound_minimal_symbol.
9282 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9283 * frame.c (inside_main_func): Update.
9284 * frv-tdep.c (frv_frame_this_id): Update.
9285 * gcore.c (call_target_sbrk): Update.
9286 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9287 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9289 * go-lang.c (go_main_name): Update.
9290 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9291 (hppa_hpux_find_import_stub_for_addr): Update.
9292 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9293 Update. Change return type.
9294 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9296 * jit.c (jit_breakpoint_re_set_internal): Update.
9297 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9299 * linux-nat.c (get_signo): Update.
9300 * linux-thread-db.c (inferior_has_bug): Update
9301 * m32c-tdep.c (m32c_return_value)
9302 (m32c_m16c_address_to_pointer): Update.
9303 * m32r-tdep.c (m32r_frame_this_id): Update.
9304 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9305 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9306 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9307 lookup_minimal_symbol. Change return type.
9308 (lookup_minimal_symbol): Remove.
9309 (lookup_bound_minimal_symbol): Update.
9310 (lookup_minimal_symbol_text): Change return type.
9311 (lookup_minimal_symbol_solib_trampoline): Change return type.
9312 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9313 (lookup_minimal_symbol_solib_trampoline): Change return type.
9314 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9315 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9316 (value_nsstring, find_imps): Update.
9317 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9318 * p-lang.c (pascal_main_name): Update.
9319 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9320 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9321 * proc-service.c (ps_pglobal_lookup): Update.
9322 * ravenscar-thread.c (get_running_thread_msymbol): Change
9324 (has_ravenscar_runtime, get_running_thread_id): Update.
9325 * remote.c (remote_check_symbols): Update.
9326 * sol-thread.c (ps_pglobal_lookup): Update.
9327 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9328 * solib-dsbt.c (lm_base): Update.
9329 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9331 * solib-irix.c (locate_base): Update.
9332 * solib-som.c (som_solib_create_inferior_hook)
9333 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9335 * solib-spu.c (spu_enable_break): Update.
9336 * solib-svr4.c (elf_locate_base, enable_break): Update.
9337 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9338 (flush_ea_cache): Update.
9339 * stabsread.c (define_symbol): Update.
9340 * symfile.c (simple_read_overlay_table): Update.
9341 * symtab.c (find_pc_sect_line): Update.
9342 * tracepoint.c (scope_info): Update.
9343 * tui-disasm.c (tui_get_begin_asm_address): Update.
9344 * value.c (value_static_field): Update.
9346 2014-02-26 Tom Tromey <tromey@redhat.com>
9348 * minsyms.c (prim_record_minimal_symbol_full): Use
9349 SET_MSYMBOL_VALUE_ADDRESS.
9350 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9351 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9352 SET_MSYMBOL_VALUE_ADDRESS.
9353 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9354 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9356 2014-02-26 Tom Tromey <tromey@redhat.com>
9358 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9359 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9360 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9361 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9362 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9363 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9364 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9365 * ada-lang.c (ada_main_name): Update.
9366 (ada_lookup_simple_minsym): Update.
9367 (ada_make_symbol_completion_list): Update.
9368 (ada_add_standard_exceptions): Update.
9369 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9370 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9371 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9372 * arm-tdep.c (skip_prologue_function): Update.
9373 (arm_skip_stack_protector, arm_skip_stub): Update.
9374 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9375 (arm_wince_skip_main_prologue): Update.
9376 * auxv.c (ld_so_xfer_auxv): Update.
9377 * avr-tdep.c (avr_scan_prologue): Update.
9378 * ax-gdb.c (gen_var_ref): Update.
9379 * block.c (call_site_for_pc): Update.
9380 * blockframe.c (get_pc_function_start): Update.
9381 (find_pc_partial_function_gnu_ifunc): Update.
9382 * breakpoint.c (create_overlay_event_breakpoint): Update.
9383 (create_longjmp_master_breakpoint): Update.
9384 (create_std_terminate_master_breakpoint): Update.
9385 (create_exception_master_breakpoint): Update.
9386 (resolve_sal_pc): Update.
9387 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9388 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9390 * c-valprint.c (c_val_print): Update.
9391 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9392 * coffread.c (coff_symfile_read): Update.
9393 * common/agent.c (agent_look_up_symbols): Update.
9394 * dbxread.c (find_stab_function_addr): Update.
9395 (end_psymtab): Update.
9396 * dwarf2loc.c (call_site_to_target_addr): Update.
9397 (func_verify_no_selftailcall): Update.
9398 (tailcall_dump): Update.
9399 (call_site_find_chain_1): Update.
9400 (dwarf_expr_reg_to_entry_parameter): Update.
9401 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9402 (elf_gnu_ifunc_resolve_by_got): Update.
9403 * f-valprint.c (info_common_command): Update.
9404 * findvar.c (read_var_value): Update.
9405 * frame.c (get_prev_frame_1): Update.
9406 (inside_main_func): Update.
9407 * frv-tdep.c (frv_skip_main_prologue): Update.
9408 (frv_frame_this_id): Update.
9409 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9410 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9411 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9412 (gnuv3_skip_trampoline): Update.
9413 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9414 (hppa64_hpux_in_solib_call_trampoline): Update.
9415 (hppa_hpux_skip_trampoline_code): Update.
9416 (hppa64_hpux_search_dummy_call_sequence): Update.
9417 (hppa_hpux_find_import_stub_for_addr): Update.
9418 (hppa_hpux_find_dummy_bpaddr): Update.
9419 * hppa-tdep.c (hppa_symbol_address)
9420 (hppa_lookup_stub_minimal_symbol): Update.
9421 * i386-tdep.c (i386_skip_main_prologue): Update.
9422 (i386_pe_skip_trampoline_code): Update.
9423 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9424 * infcall.c (get_function_name): Update.
9425 * infcmd.c (until_next_command): Update.
9426 * jit.c (jit_breakpoint_re_set_internal): Update.
9427 (jit_inferior_init): Update.
9428 * linespec.c (minsym_found): Update.
9429 (add_minsym): Update.
9430 * linux-fork.c (info_checkpoints_command): Update.
9431 * linux-nat.c (get_signo): Update.
9432 * linux-thread-db.c (inferior_has_bug): Update.
9433 * m32c-tdep.c (m32c_return_value): Update.
9434 (m32c_m16c_address_to_pointer): Update.
9435 (m32c_m16c_pointer_to_address): Update.
9436 * m32r-tdep.c (m32r_frame_this_id): Update.
9437 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9438 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9439 * maint.c (maintenance_translate_address): Update.
9440 * minsyms.c (add_minsym_to_hash_table): Update.
9441 (add_minsym_to_demangled_hash_table): Update.
9442 (msymbol_objfile): Update.
9443 (lookup_minimal_symbol): Update.
9444 (iterate_over_minimal_symbols): Update.
9445 (lookup_minimal_symbol_text): Update.
9446 (lookup_minimal_symbol_by_pc_name): Update.
9447 (lookup_minimal_symbol_solib_trampoline): Update.
9448 (lookup_minimal_symbol_by_pc_section_1): Update.
9449 (lookup_minimal_symbol_and_objfile): Update.
9450 (prim_record_minimal_symbol_full): Update.
9451 (compare_minimal_symbols): Update.
9452 (compact_minimal_symbols): Update.
9453 (build_minimal_symbol_hash_tables): Update.
9454 (install_minimal_symbols): Update.
9455 (terminate_minimal_symbol_table): Update.
9456 (find_solib_trampoline_target): Update.
9457 (minimal_symbol_upper_bound): Update.
9458 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9459 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9460 (mips_skip_pic_trampoline_code): Update.
9461 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9462 * objc-lang.c (selectors_info): Update.
9463 (classes_info): Update.
9464 (find_methods): Update.
9465 (find_imps): Update.
9466 (find_objc_msgsend): Update.
9467 * objfiles.c (objfile_relocate1): Update.
9468 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9469 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9470 * p-valprint.c (pascal_val_print): Update.
9471 * parse.c (write_exp_msymbol): Update.
9472 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9473 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9474 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9475 * printcmd.c (build_address_symbolic): Update.
9477 (address_info): Update.
9478 * proc-service.c (ps_pglobal_lookup): Update.
9479 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9480 (find_pc_sect_psymtab): Update.
9481 * python/py-framefilter.c (py_print_frame): Update.
9482 * ravenscar-thread.c (get_running_thread_id): Update.
9483 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9485 * remote.c (remote_check_symbols): Update.
9486 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9487 (rs6000_skip_trampoline_code): Update.
9488 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9489 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9490 * solib-dsbt.c (lm_base): Update.
9491 * solib-frv.c (lm_base): Update.
9493 * solib-irix.c (locate_base): Update.
9494 * solib-som.c (som_solib_create_inferior_hook): Update.
9495 (som_solib_desire_dynamic_linker_symbols): Update.
9496 (link_map_start): Update.
9497 * solib-spu.c (spu_enable_break): Update.
9498 (ocl_enable_break): Update.
9499 * solib-svr4.c (elf_locate_base): Update.
9500 (enable_break): Update.
9501 * spu-tdep.c (spu_get_overlay_table): Update.
9502 (spu_catch_start): Update.
9503 (flush_ea_cache): Update.
9504 * stabsread.c (define_symbol): Update.
9505 (scan_file_globals): Update.
9506 * stack.c (find_frame_funname): Update.
9507 (frame_info): Update.
9508 * symfile.c (simple_read_overlay_table): Update.
9509 (simple_overlay_update): Update.
9510 * symmisc.c (dump_msymbols): Update.
9511 * symtab.c (fixup_section): Update.
9512 (find_pc_sect_line): Update.
9513 (skip_prologue_sal): Update.
9514 (search_symbols): Update.
9515 (print_msymbol_info): Update.
9516 (rbreak_command): Update.
9517 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9518 (completion_list_objc_symbol): Update.
9519 (default_make_symbol_completion_list_break_on): Update.
9520 * tracepoint.c (scope_info): Update.
9521 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9522 (tui_get_begin_asm_address): Update.
9523 * valops.c (find_function_in_inferior): Update.
9524 * value.c (value_static_field): Update.
9525 (value_fn_field): Update.
9527 2014-02-26 Tom Tromey <tromey@redhat.com>
9529 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9530 bound minimal symbols. Move code that knows about minsym
9532 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9534 * minsyms.h (minimal_symbol_upper_bound): Declare.
9535 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9536 minimal_symbol_upper_bound.
9538 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9540 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9541 Use the type's name if its basic type does not have a tag.
9543 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9545 * dwarf2read.c (read_subrange_type): Add comment.
9547 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9549 * dwarf2read.c (update_enumeration_type_from_children): New
9550 function, mostly extracted from process_structure_scope.
9551 (read_enumeration_type): Call update_enumeration_type_from_children.
9552 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9553 and flag_flag_enum fields.
9555 2014-02-26 Pedro Alves <palves@redhat.com>
9557 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9558 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9559 to_xfer_partial method.
9561 2014-02-26 Pedro Alves <palves@redhat.com>
9563 * target.c (complete_target_initialization): Don't install
9564 default_xfer_partial as to_xfer_partial hook.
9566 (update_current_target): Don't INHERIT nor de_fault
9567 deprecated_xfer_memory. Delete de_fault macro.
9568 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9569 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9570 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9573 2014-02-26 Pedro Alves <palves@redhat.com>
9575 * go32-nat.c (my_write_child): New function.
9576 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9577 (go32_xfer_partial): New function.
9578 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9579 Instead install a to_xfer_partial hook.
9581 2014-02-26 Pedro Alves <palves@redhat.com>
9583 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9584 to_xfer_partial helper. Rewrite.
9585 (procfs_xfer_partial): New function.
9586 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9587 Install a to_xfer_partial hook.
9589 2014-02-26 Pedro Alves <palves@redhat.com>
9591 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9592 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9593 (m32r_xfer_partial): New function.
9594 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9595 Install a to_xfer_partial hook.
9597 2014-02-26 Pedro Alves <palves@redhat.com>
9599 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9601 (mips_xfer_partial): New function.
9602 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9603 hook. Install a to_xfer_partial hook.
9605 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9607 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9608 * gdbtypes.c (create_array_type_with_stride): New function,
9609 renaming create_array_type, but with an added parameter
9610 called "bit_stride".
9611 (create_array_type): Re-implement using
9612 create_array_type_with_stride.
9613 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9614 and DW_AT_bit_stride attributes.
9616 2014-02-26 Pedro Alves <palves@redhat.com>
9618 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9619 task-specific breakpoints.
9621 2014-02-25 Pedro Alves <palves@redhat.com>
9623 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9624 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9626 2014-02-25 Stan Shebs <stan@codesourcery.com>
9628 * defs.h: Annotate comments for Doxygen.
9630 2014-02-25 Tom Tromey <tromey@redhat.com>
9632 * target.h (target_ignore): Don't declare.
9633 * target.c (target_ignore): Remove.
9635 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9638 * auto-load.c (auto_load_objfile_script_1): Change filename to
9641 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9643 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9644 documentation. Adjust prototype to match the target_ops
9645 to_xfer_partial method. Adjust implementation accordingly.
9647 2014-02-25 Hui Zhu <hui@codesourcery.com>
9649 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9652 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9654 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9655 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9656 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9657 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9658 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9659 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9660 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9661 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9663 (rl78_register_type): Use a data pointer type for SP and
9664 new pseudo registers mentioned above. Use a 16 bit integer
9665 type for all other register pairs.
9666 (rl78_register_name, rl78_g10_register_name): Update for
9667 new pseudo registers.
9668 (rl78_pseudo_register_read): Likewise.
9669 (rl78_pseudo_register_write): Likewise.
9670 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9671 to the newly added pseudo registers.
9673 2014-02-24 Doug Evans <dje@google.com>
9675 * value.c (record_latest_value): Fix comment.
9676 * printcmd.c (print_command_1): Remove code to handle -1 return from
9677 record_latest_value.
9679 2014-02-24 Pedro Alves <palves@redhat.com>
9681 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9682 deprecated_xfer_memory hook.
9683 (procfs_xfer_partial): Call procfs_xfer_memory instead
9684 of the deprecated_xfer_memory target hook.
9685 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9688 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9690 * windows-nat.c (windows_xfer_shared_libraries): Return
9691 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9692 requested object is TARGET_OBJECT_LIBRARIES.
9694 2014-02-24 Yao Qi <yao@codesourcery.com>
9696 * target.h (enum target_xfer_status)
9697 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9698 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9700 * corefile.c (memory_error_message): User updated.
9701 * exec.c (section_table_read_available_memory): Likewise.
9702 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9703 * target.c (target_xfer_status_to_string): Likewise.
9704 (raw_memory_xfer_partial): Likewise.
9705 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9706 * valops.c (read_value_memory): Likewise.
9707 * exec.h: Update comments.
9709 2014-02-24 Yao Qi <yao@codesourcery.com>
9711 * target.c (target_xfer_status_to_string): Rename argument err
9713 * target.h (target_xfer_status_to_string): Update declaration.
9714 Replace target_xfer_error_to_string with
9715 target_xfer_status_to_string in comment.
9717 2014-02-24 Yao Qi <yao@codesourcery.com>
9719 * mips-linux-nat.c (super_close): Update its type.
9720 (mips_linux_close): Pass 'self' to super_close.
9722 2014-02-24 Yao Qi <yao@codesourcery.com>
9724 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9725 * corefile.c (read_memory): Adjusted.
9726 * target.c (target_write_with_progress): Adjusted.
9728 2014-02-23 Yao Qi <yao@codesourcery.com>
9732 2013-10-25 Yao Qi <yao@codesourcery.com>
9734 * remote.c (remote_traceframe_info): Return early if
9735 traceframe is not selected.
9737 2013-07-19 Yao Qi <yao@codesourcery.com>
9739 * target.c (update_current_target): Change the default action
9740 of 'to_traceframe_info' from tcomplain to return_zero.
9741 * target.h (struct target_ops) <to_traceframe_info>: Add more
9744 2014-02-23 Yao Qi <yao@codesourcery.com>
9746 * valops.c (read_value_memory): Rewrite it. Call
9747 target_xfer_partial in a loop.
9748 * exec.h (section_table_available_memory): Remove declaration.
9749 Move comments to ...
9750 * exec.c (section_table_available_memory): ... here. Make it
9753 2014-02-23 Yao Qi <yao@codesourcery.com>
9755 * exec.c (section_table_read_available_memory): New function.
9756 * exec.h (section_table_read_available_memory): Declare.
9757 * ctf.c (ctf_xfer_partial): Call
9758 section_table_read_available_memory.
9759 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9761 2014-02-23 Yao Qi <yao@codesourcery.com>
9763 * ctf.c (ctf_xfer_partial): Move code to ...
9764 * exec.c (exec_read_partial_read_only): ... it. New function.
9765 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9766 * tracefile.c: Include "exec.h".
9767 * exec.h (exec_read_partial_read_only): Declare.
9769 2014-02-23 Yao Qi <yao@codesourcery.com>
9771 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9772 (tfile_has_memory): Remove.
9773 (init_tfile_ops): Don't set fields to_has_all_memory and
9774 to_has_memory of tfile_ops.
9775 * tracefile.c (tracefile_has_all_memory): New function.
9776 (tracefile_has_memory): New function.
9777 (init_tracefile_ops): Initialize fields to_has_all_memory and
9778 to_has_memory of 'ops'.
9780 2014-02-23 Yao Qi <yao@codesourcery.com>
9782 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9783 (ctf_thread_alive, ctf_get_trace_status): Remove.
9784 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9786 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9787 (tfile_has_stack, tfile_has_registers): Remove.
9788 (tfile_thread_alive): Remove.
9789 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9791 * tracefile.c (tracefile_has_stack): New function.
9792 (tracefile_has_registers): New function.
9793 (tracefile_thread_alive): New function.
9794 (tracefile_get_trace_status): New function.
9795 (init_tracefile_ops): New function.
9796 * tracefile.h (init_tracefile_ops): Declare.
9798 2014-02-23 Yao Qi <yao@codesourcery.com>
9800 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9801 (O_LARGEFILE): Likewise.
9802 (tfile_ops): Likewise.
9803 (TRACE_HEADER_SIZE): Likewise.
9804 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9805 (cur_data_size): Likewise.
9806 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9807 (tfile_close, tfile_files_info): Likewise.
9808 (tfile_get_trace_status): Likewise.
9809 (tfile_get_tracepoint_status): Likewise.
9810 (tfile_get_traceframe_address): Likewise.
9811 (tfile_trace_find, match_blocktype): Likewise.
9812 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9813 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9814 (tfile_get_trace_state_variable_value): Likewise.
9815 (tfile_has_all_memory, tfile_has_memory): Likewise.
9816 (tfile_has_stack, tfile_has_registers): Likewise.
9817 (tfile_thread_alive, build_traceframe_info): Likewise.
9818 (tfile_traceframe_info, init_tfile_ops): Likewise.
9819 (_initialize_tracepoint): Don't call init_tfile_ops
9820 and add_target_with_completer.
9821 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9822 exec.h, completer.h and filenames.h.
9823 (_initialize_tracefile_tfile): New function.
9825 2014-02-23 Yao Qi <yao@codesourcery.com>
9827 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9829 (HFILES_NO_SRCDIR): Add tracefile.h.
9830 * ctf.c: Include "tracefile.h".
9831 * tracefile.h: New file.
9832 * tracefile.c: New file
9833 * tracefile-tfile.c: New file.
9834 * tracepoint.c: Include "tracefile.h".
9835 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9836 (stop_reason_names): Add const.
9837 (trace_file_writer_xfree): Move it to tracefile.c.
9838 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9839 (trace_save_ctf): Likewise.
9840 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9841 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9842 (tfile_write_header, tfile_write_regblock_type): Likewise.
9843 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9844 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9845 (tfile_write_raw_data, tfile_end): Likewise.
9846 (tfile_trace_file_writer_new): Likewise.
9847 (free_uploaded_tp): Make it extern.
9848 (free_uploaded_tsv): Make it extern.
9849 (_initialize_tracepoint): Move code to register command 'tsave'
9851 * tracepoint.h (stop_reason_names): Declare.
9852 (struct trace_frame_write_ops): Move it to tracefile.h.
9853 (struct trace_file_write_ops): Likewise.
9854 (struct trace_file_writer): Likewise.
9855 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9857 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9860 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9862 (get_cores_used_by_process): New parameter num_cores, use it.
9863 (linux_xfer_osdata_processes): Pass num_cores to it.
9864 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9867 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9869 * target.c (memory_xfer_partial): Fix length arg in call to
9870 breakpoint_xfer_memory.
9872 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9875 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9876 number comes after the + or - signs. Adjust length of register
9877 name to be extracted.
9879 2014-02-20 Tom Tromey <tromey@redhat.com>
9881 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9882 (ada_varobj_ops): Mark "extern".
9884 2014-02-20 Tom Tromey <tromey@redhat.com>
9886 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9888 2014-02-20 Doug Evans <xdje42@gmail.com>
9890 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9891 All callers updated.
9892 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9893 All callers updated.
9894 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9895 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9897 2014-02-20 lin zuojian <manjian2006@gmail.com>
9898 Joel Brobecker <brobecker@adacore.com>
9899 Doug Evans <xdje42@gmail.com>
9902 * dwarf2read.c (struct die_info): New member in_process.
9903 (reset_die_in_process): New function.
9904 (process_die): Set it at the start, reset when returning.
9905 (inherit_abstract_dies): Only call process_die if origin_child_die
9906 not already being processed.
9908 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9910 * windows-nat.c (handle_unload_dll): Add function documentation.
9911 (do_initial_windows_stuff): Add comment explaining why we wait
9912 until after inferior initialization has finished before
9913 processing all DLLs.
9915 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9917 * windows-nat.c (get_module_name): Delete.
9918 (windows_get_exec_module_filename): New function, mostly
9919 inspired from get_module_name.
9920 (windows_pid_to_exec_file): Replace call to get_module_name
9921 by call to windows_get_exec_module_filename.
9923 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9925 * windows-nat.c (handle_load_dll): Rewrite this function's
9926 introductory comment. Remove code using get_module_name
9927 to get the DLL's name.
9929 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9931 * windows-nat.c (get_windows_debug_event): Ignore
9932 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9933 if windows_initialization_done == 0.
9934 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9935 Adjust implementation to always load all DLLs.
9936 (do_initial_windows_stuff): Replace call to
9937 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9939 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9941 * windows-nat.c (_initialize_windows_nat): Deprecate the
9942 "dll-symbols" command. Turn the "add-shared-symbol-files"
9943 and "assf" aliases into commands, and deprecate them as well.
9944 * NEWS: Add entry explaining that "dll-symbols" and its two
9945 aliases are now deprecated.
9947 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9949 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9950 new-line in debug string. Remove trailing spaces.
9952 2014-02-19 Stan Shebs <stan@codesourcery.com>
9954 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9956 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9958 * NEWS: Add entry for the new feature
9959 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9962 2014-02-19 Stan Shebs <stan@codesourcery.com>
9964 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9966 2014-02-19 Pedro Alves <palves@redhat.com>
9968 * common/ptid.h (struct ptid): Mention that process_stratum
9969 targets should prefer ptid.lwp.
9971 2014-02-19 Pedro Alves <palves@redhat.com>
9973 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9974 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9975 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9976 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9977 store remote thread ids rather than ptid.tid.
9978 (_initialize_remote): Adjust.
9980 2014-02-19 Tom Tromey <tromey@redhat.com>
9982 * target.c (target_get_unwinder): Rewrite.
9983 (target_get_tailcall_unwinder): Rewrite.
9984 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9985 (record_btrace_to_get_tailcall_unwinder): New function.
9986 (init_record_btrace_ops): Update.
9987 * target.h (struct target_ops) <to_get_unwinder,
9988 to_get_tailcall_unwinder>: Now function pointers. Use
9989 TARGET_DEFAULT_RETURN.
9991 2014-02-19 Tom Tromey <tromey@redhat.com>
9993 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9995 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9997 2014-02-19 Tom Tromey <tromey@redhat.com>
9999 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10001 * target-delegates.c: Rebuild.
10002 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10003 TARGET_DEFAULT_FUNC.
10004 * target.c (default_target_decr_pc_after_break): Rename from
10005 forward_target_decr_pc_after_break. Simplify.
10006 (target_decr_pc_after_break): Rely on delegation.
10008 2014-02-19 Tom Tromey <tromey@redhat.com>
10010 * target.c (update_current_target): Do not INHERIT to_doc or
10011 to_magic. Do not de_fault to_open or to_close.
10013 2014-02-19 Tom Tromey <tromey@redhat.com>
10015 * gcore.h (objfile_find_memory_regions): Declare.
10016 * gcore.c (objfile_find_memory_regions): No longer static. Add
10018 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10019 * exec.c: Include gcore.h.
10020 (exec_set_find_memory_regions): Remove.
10021 (exec_find_memory_regions): Remove.
10022 (exec_do_find_memory_regions): Remove.
10023 (init_exec_ops): Update.
10024 * defs.h (exec_set_find_memory_regions): Remove.
10026 2014-02-19 Tom Tromey <tromey@redhat.com>
10028 * target-delegates.c: Rebuild.
10029 * target.h (struct target_ops) <to_extra_thread_info,
10030 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10031 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10032 not 0, in TARGET_DEFAULT_RETURN.
10034 2014-02-19 Tom Tromey <tromey@redhat.com>
10036 * target.c (complete_target_initialization): Remove casts. Use
10037 return_zero_has_execution.
10038 (return_zero): Add "ignore" argument.
10039 (return_zero_has_execution): New function.
10040 (init_dummy_target): Remove casts. Use
10041 return_zero_has_execution.
10043 2014-02-19 Tom Tromey <tromey@redhat.com>
10045 * target.c (update_current_target): Update comments. Do not
10046 INHERIT to_stratum.
10048 2014-02-19 Tom Tromey <tromey@redhat.com>
10050 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10052 * corelow.c (core_read_description): Delegate when needed.
10053 * remote.c (remote_read_description): Delegate when needed.
10054 * target-delegates.c: Rebuild.
10055 * target.c (target_read_description): Rewrite.
10056 * target.h (struct target_ops) <to_read_description>: Update
10057 comment. Use TARGET_DEFAULT_RETURN.
10059 2014-02-19 Tom Tromey <tromey@redhat.com>
10061 * target-delegates.c: Rebuild.
10062 * target.c (update_current_target): Don't inherit or default
10064 (find_default_run_target): Check against delegate_can_run.
10065 * target.h (struct target_ops) <to_can_run>: Use
10066 TARGET_DEFAULT_RETURN.
10068 2014-02-19 Tom Tromey <tromey@redhat.com>
10070 * target-delegates.c: Rebuild.
10071 * target.c (target_disconnect): Unconditionally delegate.
10072 * target.h (struct target_ops) <to_disconnect>: Use
10073 TARGET_DEFAULT_NORETURN.
10075 2014-02-19 Tom Tromey <tromey@redhat.com>
10077 * record.c (record_stop): Unconditionally delegate.
10078 * target-delegates.c: Rebuild.
10079 * target.c (target_stop_recording): Unconditionally delegate.
10080 * target.h (struct target_ops) <to_stop_recording>: Use
10081 TARGET_DEFAULT_IGNORE.
10083 2014-02-19 Tom Tromey <tromey@redhat.com>
10085 * target-delegates.c: Rebuild.
10086 * target.c (target_enable_btrace): Unconditionally delegate.
10087 * target.h (struct target_ops) <to_enable_btrace>: Use
10088 TARGET_DEFAULT_NORETURN.
10090 2014-02-19 Tom Tromey <tromey@redhat.com>
10092 * target-delegates.c: Rebuild.
10093 * target.c (target_read_btrace): Unconditionally delegate.
10094 * target.h (struct target_ops) <to_read_btrace>: Use
10095 TARGET_DEFAULT_NORETURN.
10097 2014-02-19 Tom Tromey <tromey@redhat.com>
10099 * target-delegates.c: Rebuild.
10100 * target.c (target_teardown_btrace): Unconditionally delegate.
10101 * target.h (struct target_ops) <to_teardown_btrace>: Use
10102 TARGET_DEFAULT_NORETURN.
10104 2014-02-19 Tom Tromey <tromey@redhat.com>
10106 * target-delegates.c: Rebuild.
10107 * target.c (target_disable_btrace): Unconditionally delegate.
10108 * target.h (struct target_ops) <to_disable_btrace>: Use
10109 TARGET_DEFAULT_NORETURN.
10111 2014-02-19 Tom Tromey <tromey@redhat.com>
10113 * target-delegates.c: Rebuild.
10114 * target.c (default_search_memory): New function.
10115 (simple_search_memory): Update comment.
10116 (target_search_memory): Unconditionally delegate.
10117 * target.h (struct target_ops) <to_search_memory>: Use
10118 TARGET_DEFAULT_FUNC.
10120 2014-02-19 Tom Tromey <tromey@redhat.com>
10122 * auxv.c (default_auxv_parse): No longer static.
10123 (target_auxv_parse): Unconditionally delegate.
10124 * auxv.h (default_auxv_parse): Declare.
10125 * target-delegates.c: Rebuild.
10126 * target.c: Include auxv.h.
10127 * target.h (struct target_ops) <to_auxv_parse>: Use
10128 TARGET_DEFAULT_FUNC.
10130 2014-02-19 Tom Tromey <tromey@redhat.com>
10132 * target-delegates.c: Rebuild.
10133 * target.c (target_memory_map): Unconditionally delegate.
10134 * target.h (struct target_ops) <to_memory_map>: Use
10135 TARGET_DEFAULT_RETURN.
10137 2014-02-19 Tom Tromey <tromey@redhat.com>
10139 * target-delegates.c: Rebuild.
10140 * target.c (target_thread_alive): Unconditionally delegate.
10141 * target.h (struct target_ops) <to_thread_alive>: Use
10142 TARGET_DEFAULT_RETURN.
10144 2014-02-19 Tom Tromey <tromey@redhat.com>
10146 * target-delegates.c: Rebuild.
10147 * target.c (target_save_record): Unconditionally delegate.
10148 * target.h (struct target_ops) <to_save_record>: Use
10149 TARGET_DEFAULT_NORETURN.
10151 2014-02-19 Tom Tromey <tromey@redhat.com>
10153 * target-delegates.c: Rebuild.
10154 * target.c (target_delete_record): Unconditionally delegate.
10155 * target.h (struct target_ops) <to_delete_record>: Use
10156 TARGET_DEFAULT_NORETURN.
10158 2014-02-19 Tom Tromey <tromey@redhat.com>
10160 * target-delegates.c: Rebuild.
10161 * target.c (target_record_is_replaying): Unconditionally
10163 * target.h (struct target_ops) <to_record_is_replaying>: Use
10164 TARGET_DEFAULT_RETURN.
10166 2014-02-19 Tom Tromey <tromey@redhat.com>
10168 * target-delegates.c: Rebuild.
10169 * target.c (target_goto_record_begin): Unconditionally delegate.
10170 * target.h (struct target_ops) <to_goto_record_begin>: Use
10171 TARGET_DEFAULT_NORETURN.
10173 2014-02-19 Tom Tromey <tromey@redhat.com>
10175 * target-delegates.c: Rebuild.
10176 * target.c (target_goto_record_end): Unconditionally delegate.
10177 * target.h (struct target_ops) <to_goto_record_end>: Use
10178 TARGET_DEFAULT_NORETURN.
10180 2014-02-19 Tom Tromey <tromey@redhat.com>
10182 * target-delegates.c: Rebuild.
10183 * target.c (target_goto_record): Unconditionally delegate.
10184 * target.h (struct target_ops) <to_goto_record>: Use
10185 TARGET_DEFAULT_NORETURN.
10187 2014-02-19 Tom Tromey <tromey@redhat.com>
10189 * target-delegates.c: Rebuild.
10190 * target.c (target_insn_history): Unconditionally delegate.
10191 * target.h (struct target_ops) <to_insn_history>: Use
10192 TARGET_DEFAULT_NORETURN.
10194 2014-02-19 Tom Tromey <tromey@redhat.com>
10196 * target-delegates.c: Rebuild.
10197 * target.c (target_insn_history_from): Unconditionally delegate.
10198 * target.h (struct target_ops) <to_insn_history_from>: Use
10199 TARGET_DEFAULT_NORETURN.
10201 2014-02-19 Tom Tromey <tromey@redhat.com>
10203 * target-delegates.c: Rebuild.
10204 * target.c (target_insn_history_range): Unconditionally delegate.
10205 * target.h (struct target_ops) <to_insn_history_range>: Use
10206 TARGET_DEFAULT_NORETURN.
10208 2014-02-19 Tom Tromey <tromey@redhat.com>
10210 * target-delegates.c: Rebuild.
10211 * target.c (target_call_history): Unconditionally delegate.
10212 * target.h (struct target_ops) <to_call_history>: Use
10213 TARGET_DEFAULT_NORETURN.
10215 2014-02-19 Tom Tromey <tromey@redhat.com>
10217 * target-delegates.c: Rebuild.
10218 * target.c (target_call_history_from): Unconditionally delegate.
10219 * target.h (struct target_ops) <to_call_history_from>: Use
10220 TARGET_DEFAULT_NORETURN.
10222 2014-02-19 Tom Tromey <tromey@redhat.com>
10224 * target-delegates.c: Rebuild.
10225 * target.c (target_call_history_range): Unconditionally delegate.
10226 * target.h (struct target_ops) <to_call_history_range>: Use
10227 TARGET_DEFAULT_NORETURN.
10229 2014-02-19 Tom Tromey <tromey@redhat.com>
10231 * target-delegates.c: Rebuild.
10232 * target.c (target_verify_memory): Unconditionally delegate.
10233 * target.h (struct target_ops) <to_verify_memory>: Use
10234 TARGET_DEFAULT_NORETURN.
10236 2014-02-19 Tom Tromey <tromey@redhat.com>
10238 * target-delegates.c: Rebuild.
10239 * target.c (target_core_of_thread): Unconditionally delegate.
10240 * target.h (struct target_ops) <to_core_of_thread>: Use
10241 TARGET_DEFAULT_RETURN.
10243 2014-02-19 Tom Tromey <tromey@redhat.com>
10245 * target-delegates.c: Rebuild.
10246 * target.c (target_flash_done): Unconditionally delegate.
10247 * target.h (struct target_ops) <to_flash_done>: Use
10248 TARGET_DEFAULT_NORETURN.
10250 2014-02-19 Tom Tromey <tromey@redhat.com>
10252 * target-delegates.c: Rebuild.
10253 * target.c (target_flash_erase): Unconditionally delegate.
10254 * target.h (struct target_ops) <to_flash_erase>: Use
10255 TARGET_DEFAULT_NORETURN.
10257 2014-02-19 Tom Tromey <tromey@redhat.com>
10259 * target-delegates.c: Rebuild.
10260 * target.c (target_get_section_table): Unconditionally delegate.
10261 * target.h (struct target_ops) <to_get_section_table>: Use
10262 TARGET_DEFAULT_RETURN.
10264 2014-02-19 Tom Tromey <tromey@redhat.com>
10266 * target-delegates.c: Rebuild.
10267 * target.c (target_pid_to_str): Unconditionally delegate.
10268 (init_dummy_target): Don't initialize to_pid_to_str.
10269 (default_pid_to_str): Rename from dummy_pid_to_str.
10270 * target.h (struct target_ops) <to_pid_to_str>: Use
10271 TARGET_DEFAULT_FUNC.
10273 2014-02-19 Tom Tromey <tromey@redhat.com>
10275 * target-delegates.c: Rebuild.
10276 * target.c (target_find_new_threads): Unconditionally delegate.
10277 * target.h (struct target_ops) <to_find_new_threads>: Use
10278 TARGET_DEFAULT_RETURN.
10280 2014-02-19 Tom Tromey <tromey@redhat.com>
10282 * target-delegates.c: Rebuild.
10283 * target.c (target_program_signals): Unconditionally delegate.
10284 * target.h (struct target_ops) <to_program_signals>: Use
10285 TARGET_DEFAULT_IGNORE.
10287 2014-02-19 Tom Tromey <tromey@redhat.com>
10289 * target-delegates.c: Rebuild.
10290 * target.c (target_pass_signals): Unconditionally delegate.
10291 * target.h (struct target_ops) <to_pass_signals>: Use
10292 TARGET_DEFAULT_IGNORE.
10294 2014-02-19 Tom Tromey <tromey@redhat.com>
10296 * target-delegates.c: Rebuild.
10297 * target.c (default_mourn_inferior): New function.
10298 (target_mourn_inferior): Unconditionally delegate.
10299 * target.h (struct target_ops) <to_mourn_inferior>: Use
10300 TARGET_DEFAULT_FUNC.
10302 2014-02-19 Tom Tromey <tromey@redhat.com>
10304 * target-delegates.c: Rebuild.
10305 * target.c (default_follow_fork): New function.
10306 (target_follow_fork): Unconditionally delegate.
10307 * target.h (struct target_ops) <to_follow_fork>: Use
10308 TARGET_DEFAULT_FUNC.
10310 2014-02-19 Tom Tromey <tromey@redhat.com>
10312 * target-delegates.c: Rebuild.
10313 * target.c (target_kill): Unconditionally delegate.
10314 * target.h (struct target_ops) <to_kill>: Use
10315 TARGET_DEFAULT_NORETURN.
10317 2014-02-19 Tom Tromey <tromey@redhat.com>
10319 * target-delegates.c: Rebuild.
10320 * target.c (target_masked_watch_num_registers): Unconditionally
10322 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10323 Use TARGET_DEFAULT_RETURN.
10325 2014-02-19 Tom Tromey <tromey@redhat.com>
10327 * target-delegates.c: Rebuild.
10328 * target.c (target_remove_mask_watchpoint): Unconditionally
10330 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10331 TARGET_DEFAULT_RETURN.
10333 2014-02-19 Tom Tromey <tromey@redhat.com>
10335 * target-delegates.c: Rebuild.
10336 * target.c (target_insert_mask_watchpoint): Unconditionally
10338 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10339 TARGET_DEFAULT_RETURN.
10341 2014-02-19 Tom Tromey <tromey@redhat.com>
10343 * target-delegates.c: Rebuild.
10344 * target.c (target_ranged_break_num_registers): Unconditionally
10346 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10347 Use TARGET_DEFAULT_RETURN.
10349 2014-02-19 Tom Tromey <tromey@redhat.com>
10351 * target-delegates.c: Rebuild.
10352 * target.c (target_fetch_registers): Unconditionally delegate.
10353 * target.h (struct target_ops) <to_fetch_registers>: Use
10354 TARGET_DEFAULT_NORETURN.
10356 2014-02-19 Tom Tromey <tromey@redhat.com>
10358 * target-delegates.c: Rebuild.
10359 * target.c (update_current_target): Don't inherit or default
10361 * target.h (struct target_ops) <to_stop>: Use
10362 TARGET_DEFAULT_IGNORE.
10364 2014-02-19 Tom Tromey <tromey@redhat.com>
10366 * target-delegates.c: Rebuild.
10367 * target.c (update_current_target): Don't inherit or default
10368 to_can_run_breakpoint_commands.
10369 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10370 Use TARGET_DEFAULT_RETURN.
10372 2014-02-19 Tom Tromey <tromey@redhat.com>
10374 * target-delegates.c: Rebuild.
10375 * target.c (update_current_target): Don't inherit or default
10376 to_supports_evaluation_of_breakpoint_conditions.
10377 * target.h (struct target_ops)
10378 <to_supports_evaluation_of_breakpoint_conditions>: Use
10379 TARGET_DEFAULT_RETURN.
10381 2014-02-19 Tom Tromey <tromey@redhat.com>
10383 * target-delegates.c: Rebuild.
10384 * target.c (update_current_target): Don't inherit or default
10385 to_augmented_libraries_svr4_read.
10386 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10387 Use TARGET_DEFAULT_RETURN.
10389 2014-02-19 Tom Tromey <tromey@redhat.com>
10391 * target-delegates.c: Rebuild.
10392 * target.c (update_current_target): Don't inherit or default
10394 * target.h (struct target_ops) <to_can_use_agent>: Use
10395 TARGET_DEFAULT_RETURN.
10397 2014-02-19 Tom Tromey <tromey@redhat.com>
10399 * target-delegates.c: Rebuild.
10400 * target.c (update_current_target): Don't inherit or default
10402 * target.h (struct target_ops) <to_use_agent>: Use
10403 TARGET_DEFAULT_NORETURN.
10405 2014-02-19 Tom Tromey <tromey@redhat.com>
10407 * target-delegates.c: Rebuild.
10408 * target.c (update_current_target): Don't inherit or default
10409 to_traceframe_info.
10410 (return_null): Remove.
10411 * target.h (struct target_ops) <to_traceframe_info>: Use
10412 TARGET_DEFAULT_RETURN.
10414 2014-02-19 Tom Tromey <tromey@redhat.com>
10416 * target-delegates.c: Rebuild.
10417 * target.c (update_current_target): Don't inherit or default
10418 to_static_tracepoint_markers_by_strid.
10419 * target.h (struct target_ops)
10420 <to_static_tracepoint_markers_by_strid>: Use
10421 TARGET_DEFAULT_NORETURN.
10423 2014-02-19 Tom Tromey <tromey@redhat.com>
10425 * target-delegates.c: Rebuild.
10426 * target.c (update_current_target): Don't inherit or default
10427 to_static_tracepoint_marker_at.
10428 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10429 Use TARGET_DEFAULT_RETURN.
10431 2014-02-19 Tom Tromey <tromey@redhat.com>
10433 * target-delegates.c: Rebuild.
10434 * target.c (update_current_target): Don't inherit or default
10435 to_set_permissions.
10436 * target.h (struct target_ops) <to_set_permissions>: Use
10437 TARGET_DEFAULT_IGNORE.
10439 2014-02-19 Tom Tromey <tromey@redhat.com>
10441 * target-delegates.c: Rebuild.
10442 * target.c (update_current_target): Don't inherit or default
10443 to_get_tib_address.
10444 * target.h (struct target_ops) <to_get_tib_address>: Use
10445 TARGET_DEFAULT_NORETURN.
10447 2014-02-19 Tom Tromey <tromey@redhat.com>
10449 * target-delegates.c: Rebuild.
10450 * target.c (update_current_target): Don't inherit or default
10451 to_set_trace_notes.
10452 * target.h (struct target_ops) <to_set_trace_notes>: Use
10453 TARGET_DEFAULT_RETURN.
10455 2014-02-19 Tom Tromey <tromey@redhat.com>
10457 * target-delegates.c: Rebuild.
10458 * target.c (update_current_target): Don't initialize
10459 to_set_trace_buffer_size.
10460 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10461 TARGET_DEFAULT_IGNORE.
10463 2014-02-19 Tom Tromey <tromey@redhat.com>
10465 * target-delegates.c: Rebuild.
10466 * target.c (update_current_target): Don't inherit or default
10467 to_set_circular_trace_buffer.
10468 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10469 TARGET_DEFAULT_IGNORE.
10471 2014-02-19 Tom Tromey <tromey@redhat.com>
10473 * target-delegates.c: Rebuild.
10474 * target.c (update_current_target): Don't inherit or default
10475 to_set_disconnected_tracing.
10476 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10477 TARGET_DEFAULT_IGNORE.
10479 2014-02-19 Tom Tromey <tromey@redhat.com>
10481 * target-delegates.c: Rebuild.
10482 * target.c (update_current_target): Don't inherit or default
10483 to_get_min_fast_tracepoint_insn_len.
10484 (return_minus_one): Remove.
10485 * target.h (struct target_ops)
10486 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10488 2014-02-19 Tom Tromey <tromey@redhat.com>
10490 * target-delegates.c: Rebuild.
10491 * target.c (update_current_target): Don't inherit or default
10492 to_get_raw_trace_data.
10493 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10494 TARGET_DEFAULT_NORETURN.
10496 2014-02-19 Tom Tromey <tromey@redhat.com>
10498 * target-delegates.c: Rebuild.
10499 * target.c (update_current_target): Don't inherit or default
10500 to_upload_trace_state_variables.
10501 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10502 Use TARGET_DEFAULT_RETURN.
10504 2014-02-19 Tom Tromey <tromey@redhat.com>
10506 * target-delegates.c: Rebuild.
10507 * target.c (update_current_target): Don't inherit or default
10508 to_upload_tracepoints.
10509 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10510 TARGET_DEFAULT_RETURN.
10512 2014-02-19 Tom Tromey <tromey@redhat.com>
10514 * target-delegates.c: Rebuild.
10515 * target.c (update_current_target): Don't inherit or default
10516 to_save_trace_data.
10517 * target.h (struct target_ops) <to_save_trace_data>: Use
10518 TARGET_DEFAULT_NORETURN.
10520 2014-02-19 Tom Tromey <tromey@redhat.com>
10522 * target-delegates.c: Rebuild.
10523 * target.c (update_current_target): Don't inherit or default
10524 to_get_trace_state_variable_value.
10525 * target.h (struct target_ops)
10526 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10528 2014-02-19 Tom Tromey <tromey@redhat.com>
10530 * target-delegates.c: Rebuild.
10531 * target.c (update_current_target): Don't inherit or default
10533 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10535 2014-02-19 Tom Tromey <tromey@redhat.com>
10537 * target-delegates.c: Rebuild.
10538 * target.c (update_current_target): Don't inherit or default
10540 * target.h (struct target_ops) <to_trace_stop>: Use
10541 TARGET_DEFAULT_NORETURN.
10543 2014-02-19 Tom Tromey <tromey@redhat.com>
10545 * target-delegates.c: Rebuild.
10546 * target.c (update_current_target): Don't inherit or default
10547 to_get_tracepoint_status.
10548 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10549 TARGET_DEFAULT_NORETURN.
10551 2014-02-19 Tom Tromey <tromey@redhat.com>
10553 * target-delegates.c: Rebuild.
10554 * target.c (update_current_target): Don't inherit or default
10555 to_get_trace_status.
10556 * target.h (struct target_ops) <to_get_trace_status>: Use
10557 TARGET_DEFAULT_RETURN.
10559 2014-02-19 Tom Tromey <tromey@redhat.com>
10561 * target-delegates.c: Rebuild.
10562 * target.c (update_current_target): Don't inherit or default
10564 * target.h (struct target_ops) <to_trace_start>: Use
10565 TARGET_DEFAULT_NORETURN.
10567 2014-02-19 Tom Tromey <tromey@redhat.com>
10569 * target-delegates.c: Rebuild.
10570 * target.c (update_current_target): Don't inherit or default
10571 to_trace_set_readonly_regions.
10572 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10573 Use TARGET_DEFAULT_NORETURN.
10575 2014-02-19 Tom Tromey <tromey@redhat.com>
10577 * target-delegates.c: Rebuild.
10578 * target.c (update_current_target): Don't inherit or default
10579 to_disable_tracepoint.
10580 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10581 TARGET_DEFAULT_NORETURN.
10583 2014-02-19 Tom Tromey <tromey@redhat.com>
10585 * target-delegates.c: Rebuild.
10586 * target.c (update_current_target): Don't inherit or default
10587 to_enable_tracepoint.
10588 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10589 TARGET_DEFAULT_NORETURN.
10591 2014-02-19 Tom Tromey <tromey@redhat.com>
10593 * target-delegates.c: Rebuild.
10594 * target.c (update_current_target): Don't inherit or default
10595 to_download_trace_state_variable.
10596 * target.h (struct target_ops) <to_download_trace_state_variable>:
10597 Use TARGET_DEFAULT_NORETURN.
10599 2014-02-19 Tom Tromey <tromey@redhat.com>
10601 * target-delegates.c: Rebuild.
10602 * target.c (update_current_target): Don't inherit or default
10603 to_can_download_tracepoint.
10604 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10605 TARGET_DEFAULT_RETURN.
10607 2014-02-19 Tom Tromey <tromey@redhat.com>
10609 * target-delegates.c: Rebuild.
10610 * target.c (update_current_target): Don't inherit or default
10611 to_download_tracepoint.
10612 * target.h (struct target_ops) <to_download_tracepoint>: Use
10613 TARGET_DEFAULT_NORETURN.
10615 2014-02-19 Tom Tromey <tromey@redhat.com>
10617 * target-delegates.c: Rebuild.
10618 * target.c (update_current_target): Don't inherit or default
10620 * target.h (struct target_ops) <to_trace_init>: Use
10621 TARGET_DEFAULT_RETURN.
10623 2014-02-19 Tom Tromey <tromey@redhat.com>
10625 * target-delegates.c: Rebuild.
10626 * target.c (update_current_target): Don't inherit or default
10627 to_supports_string_tracing.
10628 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10629 TARGET_DEFAULT_RETURN.
10631 2014-02-19 Tom Tromey <tromey@redhat.com>
10633 * target-delegates.c: Rebuild.
10634 * target.c (update_current_target): Don't inherit or default
10635 to_supports_enable_disable_tracepoint.
10636 * target.h (struct target_ops)
10637 <to_supports_enable_disable_tracepoint>: Use
10638 TARGET_DEFAULT_RETURN.
10640 2014-02-19 Tom Tromey <tromey@redhat.com>
10642 * target-delegates.c: Rebuild.
10643 * target.c (update_current_target): Don't inherit or default
10644 to_supports_multi_process.
10645 * target.h (struct target_ops) <to_supports_multi_process>: Use
10646 TARGET_DEFAULT_RETURN.
10648 2014-02-19 Tom Tromey <tromey@redhat.com>
10650 * target-delegates.c: Rebuild.
10651 * target.c (update_current_target): Don't inherit or default
10652 to_get_ada_task_ptid.
10653 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10654 TARGET_DEFAULT_FUNC.
10656 2014-02-19 Tom Tromey <tromey@redhat.com>
10658 * target-delegates.c: Rebuild.
10659 * target.c (update_current_target): Don't inherit or default
10660 to_thread_architecture.
10661 * target.h (struct target_ops) <to_thread_architecture>: Use
10662 TARGET_DEFAULT_FUNC.
10664 2014-02-19 Tom Tromey <tromey@redhat.com>
10666 * target-delegates.c: Rebuild.
10667 * target.c (update_current_target): Don't inherit or default
10668 to_execution_direction.
10669 * target.h (struct target_ops) <to_execution_direction>: Use
10670 TARGET_DEFAULT_FUNC.
10672 2014-02-19 Tom Tromey <tromey@redhat.com>
10674 * target-delegates.c: Rebuild.
10675 * target.c (update_current_target): Don't inherit or default
10676 to_can_execute_reverse.
10677 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10678 TARGET_DEFAULT_RETURN.
10679 (target_can_execute_reverse): Unconditionally delegate.
10681 2014-02-19 Tom Tromey <tromey@redhat.com>
10683 * target-delegates.c: Rebuild.
10684 * target.c (update_current_target): Don't inherit or default
10686 (dummy_goto_bookmark): Remove.
10687 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10688 * target.h (struct target_ops) <to_goto_bookmark>: Use
10689 TARGET_DEFAULT_NORETURN.
10691 2014-02-19 Tom Tromey <tromey@redhat.com>
10693 * target-delegates.c: Rebuild.
10694 * target.c (update_current_target): Don't inherit or default
10696 (dummy_get_bookmark): Remove.
10697 (init_dummy_target): Don't inherit or default to_get_bookmark.
10698 * target.h (struct target_ops) <to_get_bookmark>: Use
10699 TARGET_DEFAULT_NORETURN
10701 2014-02-19 Tom Tromey <tromey@redhat.com>
10703 * target-delegates.c: Rebuild.
10704 * target.c (update_current_target): Don't inherit or default
10705 to_make_corefile_notes.
10706 (init_dummy_target): Don't initialize to_make_corefile_notes.
10707 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10708 TARGET_DEFAULT_FUNC.
10710 2014-02-19 Tom Tromey <tromey@redhat.com>
10712 * target-delegates.c: Rebuild.
10713 * target.c (update_current_target): Don't inherit or default
10714 to_find_memory_regions.
10715 (init_dummy_target): Don't initialize to_find_memory_regions.
10716 * target.h (struct target_ops) <to_find_memory_regions>: Use
10717 TARGET_DEFAULT_FUNC.
10719 2014-02-19 Tom Tromey <tromey@redhat.com>
10721 * target-delegates.c: Rebuild.
10722 * target.c (update_current_target): Don't inherit or default
10724 * target.h (struct target_ops) <to_log_command>: Use
10725 TARGET_DEFAULT_IGNORE.
10726 (target_log_command): Unconditionally delegate.
10728 2014-02-19 Tom Tromey <tromey@redhat.com>
10730 * target-delegates.c: Rebuild.
10731 * target.c (update_current_target): Don't inherit or default
10732 to_pid_to_exec_file.
10733 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10734 TARGET_DEFAULT_RETURN.
10736 2014-02-19 Tom Tromey <tromey@redhat.com>
10738 * target-delegates.c: Rebuild.
10739 * target.c (update_current_target): Don't inherit or default
10741 (target_thread_name): Unconditionally delegate.
10742 * target.h (struct target_ops) <to_thread_name>: Use
10743 TARGET_DEFAULT_RETURN.
10745 2014-02-19 Tom Tromey <tromey@redhat.com>
10747 * target-delegates.c: Rebuild.
10748 * target.c (update_current_target): Don't inherit or default
10749 to_extra_thread_info.
10750 * target.h (struct target_ops) <to_extra_thread_info>: Use
10751 TARGET_DEFAULT_RETURN.
10753 2014-02-19 Tom Tromey <tromey@redhat.com>
10755 * target-delegates.c: Rebuild.
10756 * target.c (update_current_target): Don't inherit or default
10758 * target.h (struct target_ops) <to_has_exited>: Use
10759 TARGET_DEFAULT_RETURN..
10761 2014-02-19 Tom Tromey <tromey@redhat.com>
10763 * target-delegates.c: Rebuild.
10764 * target.c (update_current_target): Don't inherit or default
10765 to_set_syscall_catchpoint.
10766 (return_one): Remove.
10767 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10768 TARGET_DEFAULT_RETURN.
10770 2014-02-19 Tom Tromey <tromey@redhat.com>
10772 * target-delegates.c: Rebuild.
10773 * target.c (update_current_target): Don't inherit or default
10774 to_insert_exec_catchpoint.
10775 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10776 TARGET_DEFAULT_RETURN.
10778 2014-01-08 Tom Tromey <tromey@redhat.com>
10780 * target-delegates.c: Rebuild.
10781 * target.c (update_current_target): Don't inherit or default
10782 to_insert_exec_catchpoint.
10783 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10784 TARGET_DEFAULT_RETURN.
10786 2014-02-19 Tom Tromey <tromey@redhat.com>
10788 * target-delegates.c: Rebuild.
10789 * target.c (update_current_target): Don't inherit or default
10790 to_remove_vfork_catchpoint.
10791 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10792 TARGET_DEFAULT_RETURN.
10794 2014-02-19 Tom Tromey <tromey@redhat.com>
10796 * target-delegates.c: Rebuild.
10797 * target.c (update_current_target): Don't inherit or default
10798 to_insert_vfork_catchpoint.
10799 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10800 TARGET_DEFAULT_RETURN.
10802 2014-02-19 Tom Tromey <tromey@redhat.com>
10804 * target-delegates.c: Rebuild.
10805 * target.c (update_current_target): Don't inherit or default
10806 to_remove_fork_catchpoint.
10807 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10808 TARGET_DEFAULT_RETURN.
10810 2014-02-19 Tom Tromey <tromey@redhat.com>
10812 * target-delegates.c: Rebuild.
10813 * target.c (update_current_target): Don't inherit or default
10814 to_insert_fork_catchpoint.
10815 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10816 TARGET_DEFAULT_RETURN.
10818 2014-02-19 Tom Tromey <tromey@redhat.com>
10820 * target-delegates.c: Rebuild.
10821 * target.c (update_current_target): Don't inherit or default
10822 to_post_startup_inferior.
10823 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10824 TARGET_DEFAULT_IGNORE.
10826 2014-02-19 Tom Tromey <tromey@redhat.com>
10828 * target-delegates.c: Rebuild.
10829 * target.c (update_current_target): Don't inherit or default
10831 * target.h (struct target_ops) <to_load>: Use
10832 TARGET_DEFAULT_NORETURN.
10834 2014-02-19 Tom Tromey <tromey@redhat.com>
10836 * target-delegates.c: Rebuild.
10837 * target.c (update_current_target): Don't inherit or default
10839 * target.h (struct target_ops) <to_terminal_info>: Use
10840 TARGET_DEFAULT_FUNC.
10842 2014-02-19 Tom Tromey <tromey@redhat.com>
10844 * target-delegates.c: Rebuild.
10845 * target.c (update_current_target): Don't inherit or default
10846 to_terminal_save_ours.
10847 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10848 TARGET_DEFAULT_IGNORE.
10850 2014-02-19 Tom Tromey <tromey@redhat.com>
10852 * target-delegates.c: Rebuild.
10853 * target.c (update_current_target): Don't inherit or default
10855 * target.h (struct target_ops) <to_terminal_ours>: Use
10856 TARGET_DEFAULT_IGNORE.
10858 2014-02-19 Tom Tromey <tromey@redhat.com>
10860 * target-delegates.c: Rebuild.
10861 * target.c (update_current_target): Don't inherit or default
10862 to_terminal_ours_for_output.
10863 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10864 TARGET_DEFAULT_IGNORE.
10866 2014-02-19 Tom Tromey <tromey@redhat.com>
10868 * target-delegates.c: Rebuild.
10869 * target.c (update_current_target): Don't inherit or default
10870 to_terminal_inferior.
10871 * target.h (struct target_ops) <to_terminal_inferior>: Use
10872 TARGET_DEFAULT_IGNORE.
10874 2014-02-19 Tom Tromey <tromey@redhat.com>
10876 * target-delegates.c: Rebuild.
10877 * target.c (update_current_target): Don't inherit or default
10879 * target.h (struct target_ops) <to_terminal_init>: Use
10880 TARGET_DEFAULT_IGNORE.
10882 2014-02-19 Tom Tromey <tromey@redhat.com>
10884 * target-delegates.c: Rebuild.
10885 * target.c (update_current_target): Don't inherit or default
10886 to_can_accel_watchpoint_condition.
10887 * target.h (struct target_ops)
10888 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10890 2014-02-19 Tom Tromey <tromey@redhat.com>
10892 * target-delegates.c: Rebuild.
10893 * target.c (update_current_target): Don't inherit or default
10894 to_region_ok_for_hw_watchpoint.
10895 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10896 Use TARGET_DEFAULT_FUNC.
10898 2014-02-19 Tom Tromey <tromey@redhat.com>
10900 * target-delegates.c: Rebuild.
10901 * target.c (update_current_target): Don't inherit or default
10902 to_watchpoint_addr_within_range.
10903 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10904 Use TARGET_DEFAULT_FUNC.
10906 2014-02-19 Tom Tromey <tromey@redhat.com>
10908 * target-delegates.c: Rebuild.
10909 * target.c (update_current_target): Don't inherit or default
10910 to_remove_watchpoint.
10911 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10912 TARGET_DEFAULT_NORETURN.
10914 2014-02-19 Tom Tromey <tromey@redhat.com>
10916 * target-delegates.c: Rebuild.
10917 * target.c (update_current_target): Don't inherit or default
10918 to_insert_watchpoint.
10919 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10920 TARGET_DEFAULT_RETURN.
10922 2014-02-19 Tom Tromey <tromey@redhat.com>
10924 * target-delegates.c: Rebuild.
10925 * target.c (update_current_target): Don't inherit or default
10926 to_remove_hw_breakpoint.
10927 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10928 TARGET_DEFAULT_RETURN.
10930 2014-02-19 Tom Tromey <tromey@redhat.com>
10932 * target-delegates.c: Rebuild.
10933 * target.c (update_current_target): Don't inherit or default
10934 to_insert_hw_breakpoint.
10935 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10936 TARGET_DEFAULT_RETURN.
10938 2014-02-19 Tom Tromey <tromey@redhat.com>
10940 * target-delegates.c: Rebuild.
10941 * target.c (update_current_target): Don't inherit or default
10942 to_can_use_hw_breakpoint.
10943 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10944 TARGET_DEFAULT_RETURN.
10946 2014-02-19 Tom Tromey <tromey@redhat.com>
10948 * target-delegates.c: Rebuild.
10949 * target.c (update_current_target): Don't inherit or default
10951 * target.h (struct target_ops) <to_files_info>: Use
10952 TARGET_DEFAULT_IGNORE.
10954 2014-02-19 Tom Tromey <tromey@redhat.com>
10956 * target-delegates.c: Rebuild.
10957 * target.c (update_current_target): Don't inherit or default
10959 * target.h (struct target_ops) <to_store>: Use
10960 TARGET_DEFAULT_NORETURN.
10962 2014-02-19 Tom Tromey <tromey@redhat.com>
10964 * target-delegates.c: Rebuild.
10965 * target.c (update_current_target): Don't inherit or default
10967 * target.h (struct target_ops) <to_post_attach>: Use
10968 TARGET_DEFAULT_IGNORE.
10970 2014-02-19 Tom Tromey <tromey@redhat.com>
10972 * target-delegates.c: Rebuild.
10973 * target.c (update_current_target): Don't inherit or default
10975 (default_rcmd): New function.
10976 (do_monitor_command): Unconditionally delegate.
10977 * target.h (struct target_ops) <to_rmcd>: Use
10978 TARGET_DEFAULT_FUNC.
10980 2014-02-19 Tom Tromey <tromey@redhat.com>
10982 * target-delegates.c: Rebuild.
10983 * target.c (init_dummy_target): Don't initialize to_attach.
10984 (target_attach): Unconditionally delegate.
10985 * target.h (struct target_ops) <to_attach>: Use
10986 TARGET_DEFAULT_FUNC.
10988 2014-02-19 Tom Tromey <tromey@redhat.com>
10990 * target-delegates.c: Rebuild.
10991 * target.c (target_detach): Unconditionally delegate.
10992 (init_dummy_target): Don't initialize to_detach.
10993 * target.h (struct target_ops) <to_detach>: Use
10994 TARGET_DEFAULT_IGNORE.
10996 2014-02-19 Tom Tromey <tromey@redhat.com>
10998 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11000 (target_augmented_libraries_svr4_read): Add argument.
11001 * target.c (update_current_target): Update.
11002 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11005 2014-02-19 Tom Tromey <tromey@redhat.com>
11007 * target.h (struct target_ops) <to_call_history_range>: Add
11009 * target.c (target_call_history_range): Add argument.
11010 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11012 (record_btrace_call_history_from): Update.
11014 2014-02-19 Tom Tromey <tromey@redhat.com>
11016 * target.h (struct target_ops) <to_call_history_from>: Add
11018 * target.c (target_call_history_from): Add argument.
11019 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11022 2014-02-19 Tom Tromey <tromey@redhat.com>
11024 * target.h (struct target_ops) <to_call_history>: Add argument.
11025 * target.c (target_call_history): Add argument.
11026 * record-btrace.c (record_btrace_call_history): Add 'self'
11029 2014-02-19 Tom Tromey <tromey@redhat.com>
11031 * target.h (struct target_ops) <to_insn_history_range>: Add
11033 * target.c (target_insn_history_range): Add argument.
11034 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11036 (record_btrace_insn_history_from): Update.
11038 2014-02-19 Tom Tromey <tromey@redhat.com>
11040 * target.h (struct target_ops) <to_insn_history_from>: Add
11042 * target.c (target_insn_history_from): Add argument.
11043 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11046 2014-02-19 Tom Tromey <tromey@redhat.com>
11048 * target.h (struct target_ops) <to_insn_history>: Add argument.
11049 * target.c (target_insn_history): Add argument.
11050 * record-btrace.c (record_btrace_insn_history): Add 'self'
11053 2014-02-19 Tom Tromey <tromey@redhat.com>
11055 * target.h (struct target_ops) <to_goto_record>: Add argument.
11056 * target.c (target_goto_record): Add argument.
11057 * record-full.c (record_full_goto): Add 'self' argument.
11058 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11060 2014-02-19 Tom Tromey <tromey@redhat.com>
11062 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11063 * target.c (target_goto_record_end): Add argument.
11064 * record-full.c (record_full_goto_end): Add 'self' argument.
11065 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11067 2014-02-19 Tom Tromey <tromey@redhat.com>
11069 * target.h (struct target_ops) <to_goto_record_begin>: Add
11071 * target.c (target_goto_record_begin): Add argument.
11072 * record-full.c (record_full_goto_begin): Add 'self' argument.
11073 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11076 2014-02-19 Tom Tromey <tromey@redhat.com>
11078 * target.h (struct target_ops) <to_record_is_replaying>: Add
11080 * target.c (target_record_is_replaying): Add argument.
11081 * record-full.c (record_full_is_replaying): Add 'self' argument.
11082 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11084 (record_btrace_xfer_partial, record_btrace_store_registers)
11085 (record_btrace_prepare_to_store, record_btrace_resume)
11086 (record_btrace_wait, record_btrace_decr_pc_after_break)
11087 (record_btrace_find_new_threads, record_btrace_thread_alive):
11090 2014-02-19 Tom Tromey <tromey@redhat.com>
11092 * target.h (struct target_ops) <to_delete_record>: Add argument.
11093 * target.c (target_delete_record): Add argument.
11094 * record-full.c (record_full_delete): Add 'self' argument.
11096 2014-02-19 Tom Tromey <tromey@redhat.com>
11098 * target.h (struct target_ops) <to_save_record>: Add argument.
11099 * target.c (target_save_record): Add argument.
11100 * record-full.c (record_full_save): Add 'self' argument.
11101 (record_full_save): Add 'self' argument.
11103 2014-02-19 Tom Tromey <tromey@redhat.com>
11105 * target.h (struct target_ops) <to_info_record>: Add argument.
11106 * target.c (target_info_record): Add argument.
11107 * record.c (info_record_command): Add argument.
11108 * record-full.c (record_full_info): Add 'self' argument.
11109 * record-btrace.c (record_btrace_info): Add 'self' argument.
11111 2014-02-19 Tom Tromey <tromey@redhat.com>
11113 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11114 * target.c (target_stop_recording): Add argument.
11115 * record.c (record_stop): Add argument.
11116 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11119 2014-02-19 Tom Tromey <tromey@redhat.com>
11121 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11122 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11123 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11125 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11126 (_initialize_amd64_linux_nat): Use it.
11127 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11128 (_initialize_i386_linux_nat): Use it.
11130 2014-02-19 Tom Tromey <tromey@redhat.com>
11132 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11133 * target.c (target_teardown_btrace): Add argument.
11134 * remote.c (remote_teardown_btrace): Add 'self' argument.
11135 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11137 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11140 2014-02-19 Tom Tromey <tromey@redhat.com>
11142 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11143 * target.c (target_disable_btrace): Add argument.
11144 * remote.c (remote_disable_btrace): Add 'self' argument.
11145 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11147 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11150 2014-02-19 Tom Tromey <tromey@redhat.com>
11152 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11153 * target.c (target_enable_btrace): Add argument.
11154 * remote.c (remote_enable_btrace): Add 'self' argument.
11155 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11157 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11160 2014-02-19 Tom Tromey <tromey@redhat.com>
11162 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11163 (target_can_use_agent): Add argument.
11164 * target.c (update_current_target): Update.
11165 * remote.c (remote_can_use_agent): Add 'self' argument.
11166 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11168 2014-02-19 Tom Tromey <tromey@redhat.com>
11170 * target.h (struct target_ops) <to_use_agent>: Add argument.
11171 (target_use_agent): Add argument.
11172 * target.c (update_current_target): Update.
11173 * remote.c (remote_use_agent): Add 'self' argument.
11174 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11176 2014-02-19 Tom Tromey <tromey@redhat.com>
11178 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11179 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11180 (target_traceframe_info): Add argument.
11181 * target.c (update_current_target): Update.
11182 * remote.c (remote_traceframe_info): Add 'self' argument.
11183 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11185 2014-02-19 Tom Tromey <tromey@redhat.com>
11187 * target.h (target_static_tracepoint_markers_by_strid): Add
11189 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11191 * target.c (update_current_target): Update.
11192 * remote.c (struct target_ops)
11193 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11194 * linux-nat.c (struct target_ops)
11195 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11197 2014-02-19 Tom Tromey <tromey@redhat.com>
11199 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11201 (target_static_tracepoint_marker_at): Add argument.
11202 * target.c (update_current_target): Update.
11203 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11206 2014-02-19 Tom Tromey <tromey@redhat.com>
11208 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11209 (target_set_permissions): Add argument.
11210 * target.c (update_current_target): Update.
11211 * remote.c (remote_set_permissions): Add 'self' argument.
11212 (remote_start_remote): Update.
11214 2014-02-19 Tom Tromey <tromey@redhat.com>
11216 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11217 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11218 (target_get_tib_address): Add argument.
11219 * target.c (update_current_target): Update.
11220 * remote.c (remote_get_tib_address): Add 'self' argument.
11222 2014-02-19 Tom Tromey <tromey@redhat.com>
11224 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11225 (target_set_trace_notes): Add argument.
11226 * target.c (update_current_target): Update.
11227 * remote.c (remote_set_trace_notes): Add 'self' argument.
11229 2014-02-19 Tom Tromey <tromey@redhat.com>
11231 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11233 (target_set_trace_buffer_size): Add argument.
11234 * target.c (update_current_target): Update.
11235 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11237 2014-02-19 Tom Tromey <tromey@redhat.com>
11239 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11241 (target_set_circular_trace_buffer): Add argument.
11242 * target.c (update_current_target): Update.
11243 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11246 2014-02-19 Tom Tromey <tromey@redhat.com>
11248 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11250 (target_set_disconnected_tracing): Add argument.
11251 * target.c (update_current_target): Update.
11252 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11254 2014-02-19 Tom Tromey <tromey@redhat.com>
11256 * target.h (struct target_ops)
11257 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11258 (target_get_min_fast_tracepoint_insn_len): Add argument.
11259 * target.c (update_current_target): Update.
11260 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11263 2014-02-19 Tom Tromey <tromey@redhat.com>
11265 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11267 (target_get_raw_trace_data): Add argument.
11268 * target.c (update_current_target): Update.
11269 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11271 2014-02-19 Tom Tromey <tromey@redhat.com>
11273 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11275 (target_upload_trace_state_variables): Add argument.
11276 * target.c (update_current_target): Update.
11277 * remote.c (remote_upload_trace_state_variables): Add 'self'
11279 (remote_start_remote): Update.
11281 2014-02-19 Tom Tromey <tromey@redhat.com>
11283 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11285 (target_upload_tracepoints): Add argument.
11286 * target.c (update_current_target): Update.
11287 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11288 (remote_start_remote): Update.
11290 2014-02-19 Tom Tromey <tromey@redhat.com>
11292 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11293 (target_save_trace_data): Add argument.
11294 * target.c (update_current_target): Update.
11295 * remote.c (remote_save_trace_data): Add 'self' argument.
11297 2014-02-19 Tom Tromey <tromey@redhat.com>
11299 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11301 * target.h (struct target_ops)
11302 <to_get_trace_state_variable_value>: Add argument.
11303 (target_get_trace_state_variable_value): Add argument.
11304 * target.c (update_current_target): Update.
11305 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11307 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11309 2014-02-19 Tom Tromey <tromey@redhat.com>
11311 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11312 * target.h (struct target_ops) <to_trace_find>: Add argument.
11313 (target_trace_find): Add argument.
11314 * target.c (update_current_target): Update.
11315 * remote.c (remote_trace_find): Add 'self' argument.
11316 * ctf.c (ctf_trace_find): Add 'self' argument.
11318 2014-02-19 Tom Tromey <tromey@redhat.com>
11320 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11321 (target_trace_stop): Add argument.
11322 * target.c (update_current_target): Update.
11323 * remote.c (remote_trace_stop): Add 'self' argument.
11325 2014-02-19 Tom Tromey <tromey@redhat.com>
11327 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11328 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11330 (target_get_tracepoint_status): Add argument.
11331 * target.c (update_current_target): Update.
11332 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11334 2014-02-19 Tom Tromey <tromey@redhat.com>
11336 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11337 * target.h (struct target_ops) <to_get_trace_status>: Add
11339 (target_get_trace_status): Add argument.
11340 * target.c (update_current_target): Update.
11341 * remote.c (remote_get_trace_status): Add 'self' argument.
11342 (remote_start_remote, remote_can_download_tracepoint): Update.
11343 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11345 2014-02-19 Tom Tromey <tromey@redhat.com>
11347 * target.h (struct target_ops) <to_trace_start>: Add argument.
11348 (target_trace_start): Add argument.
11349 * target.c (update_current_target): Update.
11350 * remote.c (remote_trace_start): Add 'self' argument.
11352 2014-02-19 Tom Tromey <tromey@redhat.com>
11354 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11356 (target_trace_set_readonly_regions): Add argument.
11357 * target.c (update_current_target): Update.
11358 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11361 2014-02-19 Tom Tromey <tromey@redhat.com>
11363 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11365 (target_disable_tracepoint): Add argument.
11366 * target.c (update_current_target): Update.
11367 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11369 2014-02-19 Tom Tromey <tromey@redhat.com>
11371 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11373 (target_enable_tracepoint): Add argument.
11374 * target.c (update_current_target): Update.
11375 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11377 2014-02-19 Tom Tromey <tromey@redhat.com>
11379 * target.h (struct target_ops) <to_download_trace_state_variable>:
11381 (target_download_trace_state_variable): Add argument.
11382 * target.c (update_current_target): Update.
11383 * remote.c (remote_download_trace_state_variable): Add 'self'
11386 2014-02-19 Tom Tromey <tromey@redhat.com>
11388 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11390 (target_can_download_tracepoint): Add argument.
11391 * target.c (update_current_target): Update.
11392 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11394 2014-02-19 Tom Tromey <tromey@redhat.com>
11396 * target.h (struct target_ops) <to_download_tracepoint>: Add
11398 (target_download_tracepoint): Add argument.
11399 * target.c (update_current_target): Update.
11400 * remote.c (remote_download_tracepoint): Add 'self' argument.
11402 2014-02-19 Tom Tromey <tromey@redhat.com>
11404 * target.h (struct target_ops) <to_trace_init>: Add argument.
11405 (target_trace_init): Add argument.
11406 * target.c (update_current_target): Update.
11407 * remote.c (remote_trace_init): Add 'self' argument.
11409 2014-02-19 Tom Tromey <tromey@redhat.com>
11411 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11412 * target.c (target_fileio_readlink): Add argument.
11413 * remote.c (remote_hostio_readlink): Add 'self' argument.
11414 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11416 2014-02-19 Tom Tromey <tromey@redhat.com>
11418 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11419 * target.c (target_fileio_unlink): Add argument.
11420 * remote.c (remote_hostio_unlink): Add 'self' argument.
11421 (remote_file_delete): Update.
11422 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11424 2014-02-19 Tom Tromey <tromey@redhat.com>
11426 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11427 * target.c (target_fileio_close): Add argument.
11428 * remote.c (remote_hostio_close): Add 'self' argument.
11429 (remote_hostio_close_cleanup): Update.
11430 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11432 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11434 2014-02-19 Tom Tromey <tromey@redhat.com>
11436 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11437 * target.c (target_fileio_pread): Add argument.
11438 * remote.c (remote_hostio_pread): Add 'self' argument.
11439 (remote_bfd_iovec_pread, remote_file_get): Update.
11440 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11442 2014-02-19 Tom Tromey <tromey@redhat.com>
11444 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11445 * target.c (target_fileio_pwrite): Add argument.
11446 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11447 (remote_file_put): Update.
11448 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11450 2014-02-19 Tom Tromey <tromey@redhat.com>
11452 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11453 * target.c (target_fileio_open): Add argument.
11454 * remote.c (remote_hostio_open): Add 'self' argument.
11455 (remote_bfd_iovec_open): Add 'self' argument.
11456 (remote_file_put): Add 'self' argument.
11457 (remote_file_get): Add 'self' argument.
11458 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11460 2014-02-19 Tom Tromey <tromey@redhat.com>
11462 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11464 (target_can_run_breakpoint_commands): Add argument.
11465 * target.c (update_current_target): Update.
11466 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11468 (remote_insert_breakpoint): Add 'self' argument.
11469 (remote_insert_hw_breakpoint): Add 'self' argument.
11470 (remote_can_run_breakpoint_commands): Add 'self' argument.
11472 2014-02-19 Tom Tromey <tromey@redhat.com>
11474 * target.h (struct target_ops)
11475 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11476 (target_supports_evaluation_of_breakpoint_conditions): Add
11478 * target.c (update_current_target): Update.
11479 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11481 (remote_insert_breakpoint): Add 'self' argument.
11482 (remote_insert_hw_breakpoint): Add 'self' argument.
11483 (remote_supports_cond_breakpoints): Add 'self' argument.
11485 2014-02-19 Tom Tromey <tromey@redhat.com>
11487 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11489 (target_supports_string_tracing): Add argument.
11490 * target.c (update_current_target): Update.
11491 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11493 2014-02-19 Tom Tromey <tromey@redhat.com>
11495 * target.h (struct target_ops)
11496 <to_supports_disable_randomization>: Add argument.
11497 * target.c (find_default_supports_disable_randomization): Add
11499 (target_supports_disable_randomization): Add argument.
11500 (find_default_supports_disable_randomization): Add 'self'
11502 * remote.c (extended_remote_supports_disable_randomization): Add
11504 (remote_supports_disable_randomization): Add 'self' argument.
11505 (extended_remote_create_inferior): Update.
11506 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11509 2014-02-19 Tom Tromey <tromey@redhat.com>
11511 * target.h (struct target_ops)
11512 <to_supports_enable_disable_tracepoint>: Add argument.
11513 (target_supports_enable_disable_tracepoint): Add argument.
11514 * target.c (update_current_target): Update.
11515 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11518 2014-02-19 Tom Tromey <tromey@redhat.com>
11520 * target.h (struct target_ops) <to_supports_multi_process>: Add
11522 (target_supports_multi_process): Add argument.
11523 * target.c (update_current_target): Update.
11524 * remote.c (remote_supports_multi_process): Add 'self' argument.
11525 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11527 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11530 2014-02-19 Tom Tromey <tromey@redhat.com>
11532 * target.h (struct target_ops) <to_execution_direction>: Add
11534 (target_execution_direction): Add argument.
11535 * target.c (default_execution_direction): Add 'self' argument.
11536 * record-full.c (record_full_execution_direction): Add 'self'
11539 2014-02-19 Tom Tromey <tromey@redhat.com>
11541 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11543 (target_can_execute_reverse): Add argument.
11544 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11545 * record-full.c (record_full_can_execute_reverse): Add 'self'
11547 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11550 2014-02-19 Tom Tromey <tromey@redhat.com>
11552 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11553 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11555 (target_get_ada_task_ptid): Add argument.
11556 * target.c (update_current_target): Update.
11557 (default_get_ada_task_ptid): Add 'self' argument.
11558 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11559 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11560 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11562 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11564 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11566 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11568 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11569 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11572 2014-02-19 Tom Tromey <tromey@redhat.com>
11574 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11575 (target_goto_bookmark): Add argument.
11576 * target.c (dummy_goto_bookmark): Add 'self' argument.
11577 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11579 2014-02-19 Tom Tromey <tromey@redhat.com>
11581 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11582 (target_get_bookmark): Add argument.
11583 * target.c (dummy_get_bookmark): Add 'self' argument.
11584 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11586 2014-02-19 Tom Tromey <tromey@redhat.com>
11588 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11590 (target_make_corefile_notes): Add argument.
11591 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11592 * procfs.c (procfs_make_note_section): Add 'self' argument.
11593 (procfs_make_note_section): Add 'self' argument.
11594 (procfs_make_note_section): Add 'self' argument.
11595 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11597 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11598 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11599 * exec.c (exec_make_note_section): Add 'self' argument.
11600 (exec_make_note_section): Add 'self' argument.
11602 2014-02-19 Tom Tromey <tromey@redhat.com>
11604 * target.h (struct target_ops) <to_find_memory_regions>: Add
11606 (target_find_memory_regions): Add argument.
11607 * target.c (dummy_find_memory_regions): Add 'self' argument.
11608 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11609 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11610 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11611 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11612 * exec. (exec_do_find_memory_regions): New global.
11613 (exec_set_find_memory_regions): Rewrite.
11614 (exec_find_memory_regions): New function.
11615 (init_exec_ops): Use exec_find_memory_regions.
11617 2014-02-19 Tom Tromey <tromey@redhat.com>
11619 * target.h (struct target_ops) <to_supports_non_stop>: Add
11621 * target.c (find_default_supports_non_stop): Add argument.
11622 (target_supports_non_stop): Add argument.
11623 (find_default_supports_non_stop): Add 'self' argument.
11624 * remote.c (remote_supports_non_stop): Add 'self' argument.
11625 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11627 2014-02-19 Tom Tromey <tromey@redhat.com>
11629 * target.h (struct target_ops) <to_log_command>: Add argument.
11630 (target_log_command): Add argument.
11631 * serial.h (serial_log_command): Add 'self' argument.
11632 * serial.c (serial_log_command): Add 'self' argument.
11634 2014-02-19 Tom Tromey <tromey@redhat.com>
11636 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11637 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11639 (target_pid_to_exec_file): Add argument.
11640 * target.c (debug_to_pid_to_exec_file): Add argument.
11641 (update_current_target): Update.
11642 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11643 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11644 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11645 (linux_handle_extended_wait): Update.
11646 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11647 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11648 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11649 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11651 2014-02-19 Tom Tromey <tromey@redhat.com>
11653 * target.h (struct target_ops) <to_rcmd>: Add argument.
11654 (target_rcmd): Add argument.
11655 * target.c (debug_to_rcmd): Add argument.
11656 (update_current_target, do_monitor_command): Update.
11657 * remote.c (remote_rcmd): Add 'self' argument.
11658 * monitor.c (monitor_rcmd): Add 'self' argument.
11660 2014-02-19 Tom Tromey <tromey@redhat.com>
11662 * windows-nat.c (windows_stop): Add 'self' argument.
11663 * target.h (struct target_ops) <to_stop>: Add argument.
11664 * target.c (target_stop): Add argument.
11665 (debug_to_stop): Add argument.
11666 (update_current_target): Update.
11667 * remote.c (remote_stop): Add 'self' argument.
11668 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11669 (gdbsim_cntrl_c): Update.
11670 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11671 * procfs.c (procfs_stop): Add 'self' argument.
11672 * nto-procfs.c (procfs_stop): Add 'self' argument.
11673 * monitor.c (monitor_stop): Add 'self' argument.
11674 (monitor_open): Update.
11675 * linux-nat.c (linux_nat_stop): Add argument.
11676 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11677 * gnu-nat.c (gnu_stop): Add 'self' argument.
11678 * darwin-nat.c (darwin_stop): Add 'self' argument.
11680 2014-02-19 Tom Tromey <tromey@redhat.com>
11682 * target.h (struct target_ops) <to_thread_name>: Add argument.
11683 * target.c (target_thread_name): Add argument.
11684 (update_current_target): Update.
11685 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11687 2014-02-19 Tom Tromey <tromey@redhat.com>
11689 * target.h (struct target_ops) <to_extra_thread_info>: Add
11691 (target_extra_thread_info): Add argument.
11692 * target.c (update_current_target): Update.
11693 * remote.c (remote_threads_extra_info): Add 'self' argument.
11694 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11696 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11697 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11698 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11700 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11702 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11704 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11707 2014-02-19 Tom Tromey <tromey@redhat.com>
11709 * target.h (struct target_ops) <to_program_signals>: Add argument.
11710 * target.c (target_program_signals): Add argument.
11711 * remote.c (remote_program_signals): Add 'self' argument.
11713 2014-02-19 Tom Tromey <tromey@redhat.com>
11715 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11716 * target.c (target_pass_signals): Add argument.
11717 * remote.c (remote_pass_signals): Add 'self' argument.
11718 (remote_start_remote): Update.
11719 * procfs.c (procfs_pass_signals): Add 'self' argument.
11720 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11721 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11722 (linux_nat_create_inferior, linux_nat_attach): Update.
11724 2014-02-19 Tom Tromey <tromey@redhat.com>
11726 * windows-nat.c (windows_can_run): Add 'self' argument.
11727 * target.h (struct target_ops) <to_can_run>: Add argument.
11728 (target_can_run): Add argument.
11729 * target.c (debug_to_can_run): Add argument.
11730 (update_current_target): Update.
11731 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11732 * inf-child.c (inf_child_can_run): Add 'self' argument.
11733 * go32-nat.c (go32_can_run): Add 'self' argument.
11735 2014-02-19 Tom Tromey <tromey@redhat.com>
11737 * target.h (struct target_ops) <to_has_exited>: Add argument.
11738 (target_has_exited): Add argument.
11739 * target.c (debug_to_has_exited): Add argument.
11740 (update_current_target): Update.
11742 2014-02-19 Tom Tromey <tromey@redhat.com>
11744 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11746 (target_set_syscall_catchpoint): Add argument.
11747 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11749 * target.c (update_current_target): Update.
11751 2014-02-19 Tom Tromey <tromey@redhat.com>
11753 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11755 (target_remove_exec_catchpoint): Add argument.
11756 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11757 (update_current_target): Update.
11758 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11761 2014-02-19 Tom Tromey <tromey@redhat.com>
11763 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11765 (target_insert_exec_catchpoint): Add argument.
11766 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11767 (update_current_target): Update.
11768 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11771 2014-02-19 Tom Tromey <tromey@redhat.com>
11773 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11775 (target_remove_vfork_catchpoint): Add argument.
11776 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11777 (update_current_target): Update.
11778 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11781 2014-02-19 Tom Tromey <tromey@redhat.com>
11783 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11785 (target_insert_vfork_catchpoint): Add argument.
11786 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11787 (update_current_target): Update.
11788 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11791 2014-02-19 Tom Tromey <tromey@redhat.com>
11793 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11795 (target_remove_fork_catchpoint): Add argument.
11796 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11797 (update_current_target): Update.
11798 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11801 2014-02-19 Tom Tromey <tromey@redhat.com>
11803 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11805 (target_insert_fork_catchpoint): Add argument.
11806 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11807 (update_current_target): Update.
11808 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11811 2014-02-19 Tom Tromey <tromey@redhat.com>
11813 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11815 (target_post_startup_inferior): Add argument.
11816 * target.c (debug_to_post_startup_inferior): Add argument.
11817 (update_current_target): Update.
11818 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11820 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11822 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11824 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11826 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11828 (super_post_startup_inferior): Likewise.
11829 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11831 (super_post_startup_inferior): Likewise.
11832 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11833 Add 'self' argument.
11834 (super_post_startup_inferior): Likewise.
11836 2014-02-19 Tom Tromey <tromey@redhat.com>
11838 * target.h (struct target_ops) <to_load>: Add argument.
11839 * target.c (target_load): Add argument.
11840 (debug_to_load): Add argument.
11841 (update_current_target): Update.
11842 * remote.c (remote_load): Add 'self' argument.
11843 * remote-sim.c (gdbsim_load): Add 'self' argument.
11844 * remote-mips.c (mips_load): Add 'self' argument.
11845 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11846 * monitor.c (monitor_load): Add 'self' argument.
11847 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11849 2014-02-19 Tom Tromey <tromey@redhat.com>
11851 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11852 (target_terminal_info): Add argument.
11853 * target.c (debug_to_terminal_info): Add argument.
11854 (default_terminal_info): Likewise.
11855 * inflow.c (child_terminal_info): Add 'self' argument.
11856 * inferior.h (child_terminal_info): Add 'self' argument.
11857 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11859 2014-02-19 Tom Tromey <tromey@redhat.com>
11861 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11863 (target_terminal_save_ours): Add argument.
11864 * target.c (debug_to_terminal_save_ours): Add argument.
11865 (update_current_target): Update.
11866 * inflow.c (terminal_save_ours): Add 'self' argument.
11867 * inferior.h (terminal_save_ours): Add 'self' argument.
11869 2014-02-19 Tom Tromey <tromey@redhat.com>
11871 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11872 (target_terminal_ours): Add argument.
11873 * target.c (debug_to_terminal_ours): Add argument.
11874 (update_current_target): Update.
11875 * remote.c (remote_terminal_ours): Add 'self' argument.
11876 (remote_close): Update.
11877 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11878 * inflow.c (terminal_ours): Add 'self' argument.
11879 * inferior.h (terminal_ours): Add 'self' argument.
11880 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11882 2014-02-19 Pedro Alves <palves@redhat.com>
11883 Tom Tromey <tromey@redhat.com>
11885 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11887 (target_terminal_ours_for_output): Add argument.
11888 * target.c (debug_to_terminal_ours_for_output): Add argument.
11889 (update_current_target): Update.
11890 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11891 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11892 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11894 2014-02-19 Tom Tromey <tromey@redhat.com>
11896 * target.h (struct target_ops) <to_terminal_inferior>: Add
11898 * target.c (target_terminal_inferior): Add argument.
11899 (update_current_target): Update.
11900 * remote.c (remote_terminal_inferior): Add 'self' argument.
11901 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11902 * inflow.c (terminal_inferior): Add 'self' argument.
11903 * inferior.h (terminal_inferior): Add 'self' argument.
11904 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11905 (go32_terminal_inferior): Add 'self' argument.
11907 2014-02-19 Tom Tromey <tromey@redhat.com>
11909 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11910 (target_terminal_init): Add argument.
11911 * target.c (debug_to_terminal_init): Add argument.
11912 (update_current_target): Update.
11913 * inflow.c (terminal_init_inferior): Add 'self' argument.
11914 * inferior.h (terminal_init_inferior): Add 'self' argument.
11915 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11916 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11918 2014-02-19 Tom Tromey <tromey@redhat.com>
11920 * target.h (struct target_ops)
11921 <to_can_accel_watchpoint_condition>: Add argument.
11922 (target_can_accel_watchpoint_condition): Add argument.
11923 * target.c (debug_to_can_accel_watchpoint_condition): Add
11925 (update_current_target): Update.
11926 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11929 2014-02-19 Tom Tromey <tromey@redhat.com>
11931 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11933 (target_region_ok_for_hw_watchpoint): Add argument.
11934 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11935 (default_region_ok_for_hw_watchpoint): Add argument.
11936 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11937 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11939 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11941 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11943 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11945 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11947 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11949 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11950 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11952 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11953 Add 'self' argument.
11955 2014-02-19 Tom Tromey <tromey@redhat.com>
11957 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11959 (target_insert_watchpoint): Add argument.
11960 * target.c (debug_to_insert_watchpoint): Add argument.
11961 (update_current_target): Update.
11962 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11963 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11964 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11965 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11966 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11967 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11969 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11970 (procfs_insert_hw_watchpoint): Add 'self' argument.
11971 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11973 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11975 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11977 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11978 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11980 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11983 2014-02-19 Tom Tromey <tromey@redhat.com>
11985 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11987 (target_remove_watchpoint): Add argument.
11988 * target.c (debug_to_remove_watchpoint): Add argument.
11989 (update_current_target): Update.
11990 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11991 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11992 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11993 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11994 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11995 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11997 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11998 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12000 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12002 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12004 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12005 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12007 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12010 2014-02-19 Tom Tromey <tromey@redhat.com>
12012 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12014 (target_remove_hw_breakpoint): Add argument.
12015 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12016 (update_current_target): Update.
12017 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12018 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12020 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12021 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12023 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12026 2014-02-19 Tom Tromey <tromey@redhat.com>
12028 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12030 (target_insert_hw_breakpoint): Add argument.
12031 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12032 (update_current_target): Update.
12033 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12034 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12036 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12037 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12038 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12040 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12043 2014-02-19 Tom Tromey <tromey@redhat.com>
12045 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12047 (target_can_use_hardware_watchpoint): Add argument.
12048 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12049 (update_current_target): Update.
12050 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12052 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12054 * remote.c (remote_check_watch_resources): Add 'self' argument.
12055 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12056 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12058 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12059 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12061 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12063 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12065 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12067 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12069 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12071 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12072 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12074 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12077 2014-02-19 Tom Tromey <tromey@redhat.com>
12079 * target.h (struct target_ops) <to_post_attach>: Add argument.
12080 (target_post_attach): Add argument.
12081 * target.c (debug_to_post_attach): Add argument.
12082 (update_current_target): Update.
12083 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12084 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12085 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12086 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12087 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12089 2014-02-19 Tom Tromey <tromey@redhat.com>
12091 * windows-nat.c (windows_close): Add 'self' argument.
12092 * tracepoint.c (tfile_close): Add 'self' argument.
12093 * target.h (struct target_ops) <to_close>: Add argument.
12094 * target.c (target_close): Add argument.
12095 (update_current_target): Update.
12096 * remote.c (remote_close): Add 'self' argument.
12097 * remote-sim.c (gdbsim_close): Add 'self' argument.
12098 * remote-mips.c (mips_close): Add 'self' argument.
12099 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12100 * record-full.c (record_full_close): Add 'self' argument.
12101 * record-btrace.c (record_btrace_close): Add 'self' argument.
12102 * monitor.h (monitor_close): Add 'self' argument.
12103 * monitor.c (monitor_close): Add 'self' argument.
12104 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12105 * linux-nat.c (linux_nat_close): Add argument.
12106 * go32-nat.c (go32_close): Add 'self' argument.
12107 * exec.c (exec_close_1): Add 'self' argument.
12108 * ctf.c (ctf_close): Add 'self' argument.
12109 * corelow.c (core_close): Add 'self' argument.
12110 (core_close_cleanup): Update.
12111 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12112 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12114 2014-02-19 Tom Tromey <tromey@redhat.com>
12116 * remote.c (remote_load): New function.
12117 (init_remote_ops): Use it.
12119 2014-02-19 Tom Tromey <tromey@redhat.com>
12121 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12123 * common/linux-btrace.h (linux_supports_btrace): Update.
12124 * remote.c (remote_supports_btrace): Add "self" argument.
12125 * target-delegates.c: Rebuild.
12126 * target.c (target_supports_btrace): Remove.
12127 * target.h (struct target_ops) <to_supports_btrace>: Add
12128 target_ops argument.
12129 (target_supports_btrace): New define.
12131 2014-02-19 Tom Tromey <tromey@redhat.com>
12133 * record-full.c (record_full_beneath_to_resume_ops)
12134 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12135 (record_full_beneath_to_wait)
12136 (record_full_beneath_to_store_registers_ops)
12137 (record_full_beneath_to_store_registers)
12138 (record_full_beneath_to_xfer_partial_ops)
12139 (record_full_beneath_to_xfer_partial)
12140 (record_full_beneath_to_insert_breakpoint_ops)
12141 (record_full_beneath_to_insert_breakpoint)
12142 (record_full_beneath_to_remove_breakpoint_ops)
12143 (record_full_beneath_to_remove_breakpoint)
12144 (record_full_beneath_to_stopped_by_watchpoint)
12145 (record_full_beneath_to_stopped_data_address)
12146 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12147 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12148 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12149 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12150 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12151 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12152 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12153 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12154 (record_full_resume, record_full_wait_1)
12155 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12156 (record_full_store_registers, record_full_xfer_partial)
12157 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12158 (record_full_async, record_full_core_xfer_partial): Use target
12160 * target-delegates.c: Rebuild.
12161 * target.c (current_xfer_partial): Remove.
12162 (update_current_target): Do not INHERIT or de_fault
12163 to_insert_breakpoint, to_remove_breakpoint,
12164 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12165 to_is_async_p, to_async. Do not set to_xfer_partial field.
12166 (default_xfer_partial): Simplify.
12167 (current_xfer_partial): Remove.
12168 (target_wait, target_resume): Simplify.
12169 (find_default_can_async_p, find_default_is_async_p): Update.
12170 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12171 to_xfer_partial, to_stopped_by_watchpoint,
12172 to_stopped_data_address.
12173 (target_store_registers): Simplify.
12174 (forward_target_remove_breakpoint)
12175 (forward_target_insert_breakpoint): Remove.
12176 (target_remove_breakpoint, target_insert_breakpoint)
12177 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12178 * target.h (struct target_ops) <to_resume, to_wait,
12179 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12180 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12181 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12183 (forward_target_remove_breakpoint)
12184 (forward_target_insert_breakpoint): Remove.
12185 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12187 (record_btrace_insert_breakpoint): Delegate directly.
12189 2014-02-19 Tom Tromey <tromey@redhat.com>
12192 * target-delegates.c: New file.
12193 * target.c: Include target-delegates.c.
12194 (init_dummy_target): Call install_dummy_methods.
12195 (complete_target_initialization): Call install_delegators.
12196 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12197 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12198 * make-target-delegates: New file.
12200 2014-02-19 Tom Tromey <tromey@redhat.com>
12202 * record.c (find_record_target): Use find_target_at.
12203 * target.c (find_target_at): New function.
12204 * target.h (find_target_at): Declare.
12206 2014-02-19 Tom Tromey <tromey@redhat.com>
12208 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12209 Add 'ops' argument.
12210 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12212 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12213 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12215 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12217 * linux-nat.c (save_sigtrap): Update.
12218 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12219 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12220 (linux_nat_close): Update.
12221 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12223 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12225 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12226 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12227 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12228 (tmp_to_async): Add 'ops' argument.
12229 (record_full_stopped_by_watchpoint, record_full_async)
12230 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12232 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12233 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12234 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12235 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12236 (remote_is_async_p, remote_async): Add 'ops' argument.
12237 (remote_stopped_data_address): Update.
12238 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12239 * target.c (update_current_target)
12240 (find_default_can_async_p, find_default_is_async_p): Update.
12241 (init_dummy_target): Update.
12242 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12243 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12244 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12245 (target_can_async_p, target_is_async_p, target_async)
12246 (target_stopped_by_watchpoint): Update.
12248 2014-02-19 Yao Qi <yao@codesourcery.com>
12251 * gdbarch.sh: Remove startup_gdbarch.
12252 * gdbarch.c: Regenerated.
12253 * gdbarch.h: Likewise.
12255 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12257 * rl78-tdep.c (rl78_g10_register_name): New function.
12258 (rl78_return_value): Add g10 support.
12259 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12262 2014-02-17 Doug Evans <xdje42@gmail.com>
12264 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12265 (SUBDIR_GUILE_SRCS): Ditto.
12266 (scm-gsmob.o): Ditto.
12268 2014-02-17 Yao Qi <yao@codesourcery.com>
12270 * gnu-nat.c (ILL_RPC): Declare defined function.
12272 2014-02-17 Yao Qi <yao@codesourcery.com>
12274 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12275 mach_msg_type_number_t.
12276 (gnu_write_inferior): Likewise.
12278 2014-02-17 Yao Qi <yao@codesourcery.com>
12280 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12282 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12283 (inf_validate_procs, inf_signal): Likewise.
12284 (S_exception_raise_request): Likewise.
12285 (do_mach_notify_dead_name): Likewise.
12286 (steal_exc_port): Likewise.
12287 (gnu_read_inferior): Change 'copy_count''s type to
12288 mach_msg_type_number_t.
12289 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12292 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12294 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12295 flag. Adjust all users; in particular...
12296 (gnu_wait): ..., don't decrement its value in here...
12297 (gnu_create_inferior): ..., and instead set the flag in here,
12298 around the startup_inferior call, and call that one with
12299 START_INFERIOR_TRAPS_EXPECTED.
12301 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12302 (ILL_RPC): ... new macro.
12303 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12304 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12305 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12306 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12307 functions with ILL_RPC macro.
12308 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12309 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12310 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12311 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12312 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12313 (S_proc_getlogin_reply, S_proc_getsid_reply)
12314 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12315 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12316 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12317 (S_proc_getnports_reply, S_proc_is_important_reply)
12318 (S_proc_get_code_reply): New stub functions, generated with
12321 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12322 collected the type check structures.
12324 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12326 2014-02-14 Doug Evans <dje@google.com>
12328 * target.c (target_write_partial): Fix result type.
12330 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12332 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12333 the proper offsets to access fpregset_t.
12335 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12337 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12338 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12339 * h8300-tdep.c (setmachinelist): Remove global.
12340 * hppa-tdep.c (hppa_sigtramp): Remove global.
12341 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12342 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12343 * ravenscar-thread.c (update_target_observer): Remove global.
12344 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12346 2014-02-12 Tom Tromey <tromey@redhat.com>
12348 * common/rsp-low.c: Update comments.
12349 * common/rsp-low.h: Update comments.
12351 2014-02-12 Tom Tromey <tromey@redhat.com>
12353 * common/rsp-low.c (convert_ascii_to_int): Remove.
12354 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12356 2014-02-12 Tom Tromey <tromey@redhat.com>
12358 * common/rsp-low.h (unhexify): Don't declare.
12359 * common/rsp-low.c (unhexify): Remove.
12361 2014-02-12 Tom Tromey <tromey@redhat.com>
12363 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12364 * common/rsp-low.c (convert_int_to_ascii): Remove.
12366 2014-02-12 Tom Tromey <tromey@redhat.com>
12368 * common/rsp-low.h (hexify): Don't declare.
12369 * common/rsp-low.c (hexify): Remove.
12371 2014-02-12 Tom Tromey <tromey@redhat.com>
12373 * common/rsp-low.c (hexify): Never take strlen of argument.
12375 2014-02-12 Tom Tromey <tromey@redhat.com>
12377 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12378 * remote.c (extended_remote_run, remote_rcmd)
12379 (remote_download_trace_state_variable, remote_save_trace_data)
12380 (remote_set_trace_notes): Update.
12381 * tracepoint.c (encode_source_string, tfile_write_status)
12382 (tfile_write_uploaded_tsv): Update.
12384 2014-02-12 Tom Tromey <tromey@redhat.com>
12386 * tracepoint.c: Include rsp-low.h.
12387 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12388 * remote.c: Include rsp-low.h.
12389 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12390 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12391 (remote_unescape_input): Move to common/rsp-low.c.
12392 * common/rsp-low.h: New file.
12393 * common/rsp-low.c: New file.
12394 * Makefile.in (SFILES): Add common/rsp-low.c.
12395 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12396 (COMMON_OBS): Add rsp-low.o.
12397 (rsp-low.o): New target.
12399 2014-02-12 Tom Tromey <tromey@redhat.com>
12401 * utils.h: Include print-utils.h.
12402 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12403 (int_string, core_addr_to_string, core_addr_to_string_nz)
12404 (hex_string, hex_string_custom): Don't declare.
12405 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12406 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12407 (hex_string_custom, int_string, core_addr_to_string)
12408 (core_addr_to_string_nz, host_address_to_string): Move to
12409 common/print-utils.c.
12410 * common/print-utils.h: New file.
12411 * common/print-utils.c: New file
12412 * Makefile.in (SFILES): Add common/print-utils.c.
12413 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12414 (COMMON_OBS): Add print-utils.o.
12415 (print-utils.o): New target.
12417 2014-02-12 Tom Tromey <tromey@redhat.com>
12419 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12421 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12423 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12425 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12427 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12428 if a PT_IO ptrace request returns sucessfully but indicates that 0
12429 bytes were transferred.
12431 2014-02-12 Pedro Alves <palves@redhat.com>
12432 Kevin Buettner <kevinb@redhat.com>
12434 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12435 TYPE_INSTANCE_FLAG_CODE_SPACE.
12437 2014-02-12 Pedro Alves <palves@redhat.com>
12439 * h8300-tdep.c (pseudo_from_raw_register)
12440 (raw_from_pseudo_register): New functions.
12441 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12444 2014-02-12 Pedro Alves <palves@redhat.com>
12446 * h8300-tdep.c (h8300_register_sim_regno): New function.
12447 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12448 gdbarch_register_sim_regno hook.
12450 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12452 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12454 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12456 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12458 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12460 * obsd-tdep.h (obsd_init_abi): New prototype.
12461 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12462 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12463 (obsd_init_abi): New functions.
12464 * i386obsd-tdep.c: Include "obsd-tdep.h".
12465 (i386obsd_init_abi): Call obsd_init_abi.
12466 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12467 (amd64obsd_init_abi): Call obsd_init_abi.
12468 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12469 obsd-tdep.c to gdb_target_obs.
12471 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12473 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12474 double float arguments to 16-byte in the argument slots.
12476 2014-02-11 Doug Evans <xdje42@gmail.com>
12478 * configure.ac: Don't crash if pkg-config is not found and guile
12479 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12481 * configure: Regenerate.
12483 2014-02-11 Yao Qi <yao@codesourcery.com>
12485 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12486 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12487 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12488 * gnu-nat.c (gnu_xfer_memory): Likewise.
12489 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12490 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12491 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12492 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12494 2014-02-11 Yao Qi <yao@codesourcery.com>
12496 * target.h (enum target_xfer_error): Rename to ...
12497 (enum target_xfer_status): ... it. New. All users updated.
12498 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12500 (TARGET_XFER_STATUS_ERROR_P): New macro.
12501 (target_xfer_error_to_string): Remove declaration.
12502 (target_xfer_status_to_string): Declare.
12503 (target_xfer_partial_ftype): Adjust it.
12504 (struct target_ops) <to_xfer_partial>: Return
12505 target_xfer_status. Add argument xfered_len. Update
12507 * target.c (target_xfer_error_to_string): Rename to ...
12508 (target_xfer_status_to_string): ... it. New. All callers
12510 (target_read_live_memory): Likewise. Call target_xfer_partial
12511 instead of target_read.
12512 (memory_xfer_live_readonly_partial): Return
12513 target_xfer_status. Add argument xfered_len.
12514 (raw_memory_xfer_partial): Likewise.
12515 (memory_xfer_partial_1): Likewise.
12516 (memory_xfer_partial): Likewise.
12517 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12518 properly. Update debug message.
12519 (default_xfer_partial, current_xfer_partial): Likewise.
12520 (target_write_partial): Likewise.
12521 (target_read_partial): Likewise. All callers updated.
12522 (read_whatever_is_readable): Likewise.
12523 (target_write_with_progress): Likewise.
12524 (target_read_alloc_1): Likewise.
12526 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12527 * auxv.c (procfs_xfer_auxv): Likewise.
12528 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12529 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12530 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12531 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12532 * corefile.c (read_memory): Adjust.
12533 * corelow.c (core_xfer_partial): Likewise.
12534 * ctf.c (ctf_xfer_partial): Likewise.
12535 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12537 (darwin_xfer_partial): Likewise.
12538 * exec.c (section_table_xfer_memory_partial): Likewise. All
12540 (exec_xfer_partial): Likewise.
12541 * exec.h (section_table_xfer_memory_partial): Update
12543 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12545 (gnu_xfer_partial): Likewise.
12546 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12547 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12548 (ia64_hpux_xfer_solib_got): Likewise.
12549 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12550 type of 'partial_len' to ULONGEST.
12551 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12552 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12553 (linux_nat_xfer_partial): Likewise.
12554 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12555 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12556 * monitor.c (monitor_xfer_memory): Likewise.
12557 (monitor_xfer_partial): Likewise.
12558 * procfs.c (procfs_xfer_partial): Likewise.
12559 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12560 * record-full.c (record_full_xfer_partial): Likewise.
12561 (record_full_core_xfer_partial): Likewise.
12562 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12563 (gdbsim_xfer_partial): Likewise.
12564 * remote.c (remote_write_bytes_aux): Likewise. All callers
12566 (remote_write_bytes, remote_read_bytes): Likewise. All
12568 (remote_flash_erase): Likewise. All callers updated.
12569 (remote_write_qxfer): Likewise. All callers updated.
12570 (remote_read_qxfer): Likewise. All callers updated.
12571 (remote_xfer_partial): Likewise.
12572 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12573 (rs6000_xfer_shared_libraries): Likewise.
12574 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12575 (sol_thread_xfer_partial): Likewise.
12576 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12577 (sparc_xfer_partial): Likewise.
12578 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12580 (spu_xfer_partial): Likewise.
12581 * spu-multiarch.c (spu_xfer_partial): Likewise.
12582 * tracepoint.c (tfile_xfer_partial): Likewise.
12583 * windows-nat.c (windows_xfer_memory): Likewise.
12584 (windows_xfer_shared_libraries): Likewise.
12585 (windows_xfer_partial): Likewise.
12586 * valprint.c: Replace 'target_xfer_error' with
12587 'target_xfer_status' in comments.
12589 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12591 Checked in by Joel Brobecker <brobecker@adacore.com>.
12592 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12594 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12596 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12597 function parameters.
12599 2014-02-10 Will Newton <will.newton@linaro.org>
12601 * elfread.c (elf_rel_plt_read): Look for a .got section if
12602 looking up .got.plt fails.
12603 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12604 on address passed to elf_gnu_ifunc_record_cache.
12605 (elf_gnu_ifunc_resolve_addr): Likewise.
12606 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12608 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12610 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12611 (X_RETTURN): New macro.
12612 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12614 * sparc64-tdep.c (sparc64_init_abi): Hook
12615 sparc_in_function_epilogue_p.
12617 2014-02-10 Gary Benson <gbenson@redhat.com>
12619 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12620 Rename name_matcher to symbol_matcher.
12622 2014-02-10 Gary Benson <gbenson@redhat.com>
12624 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12625 Use expand_symtabs_file_matcher_ftype and
12626 expand_symtabs_symbol_matcher_ftype.
12628 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12630 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12631 (struct ada_symbol_cache): New.
12632 (ada_free_symbol_cache): Forward declare.
12633 (struct ada_pspace_data): New.
12634 (ada_pspace_data_handle): New static global.
12635 (get_ada_pspace_data, ada_pspace_data_cleanup)
12636 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12637 (cache_space, cache): Delete, now folded inside struct
12639 (ada_get_symbol_cache): New function.
12640 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12642 (_initialize_ada_language): Remove initialization of cache_space.
12643 Move call to observer_attach_inferior_exit up, grouping it
12644 with the other observer registrations inside this function.
12645 Rename command to be more general. Add call to
12646 register_program_space_data_with_cleanup.
12648 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12650 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12651 ada_new_objfile_observer.
12652 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12653 (_initialize_tasks): Update uses of ada_new_objfile_observer
12654 and ada_tasks_normal_stop_observer.
12656 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12658 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12659 returned by the 'Length attribute to integer.
12661 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12663 * ada-lang.c (_initialize_ada_language): Initialize
12664 cache_space obstack.
12666 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12668 * ada-lang.c (HASH_SIZE): New macro.
12669 (struct cache_entry): New type.
12670 (cache_space, cache): New static globals.
12671 (ada_clear_symbol_cache, find_entry): New functions.
12672 (lookup_cached_symbol, cache_symbol): Implement.
12673 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12674 (_initialize_ada_language): Attach ada_new_objfile_observer
12675 and ada_free_objfile_observer.
12677 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12679 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12680 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12681 struct block * parameter.
12682 (ada_lookup_symbol_list_worker): Constify local variable "block".
12683 Remove cast which is no longer necessary.
12685 2014-02-10 Doug Evans <xdje42@gmail.com>
12687 Add Guile as an extension language.
12688 * NEWS: Mention Guile scripting.
12689 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12690 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12691 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12692 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12693 (CLIBS): Add GUILE_LIBS.
12694 (install-guile): New rule.
12695 (guile.o): New rule.
12696 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12697 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12698 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12699 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12700 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12701 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12702 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12703 * configure.ac: New option --with-guile.
12704 * configure: Regenerate.
12705 * config.in: Regenerate.
12706 * auto-load.c: Remove #include "python/python.h". Add #include
12707 "gdb/section-scripts.h".
12708 (source_section_scripts): Handle Guile scripts.
12709 (_initialize_auto_load): Add name of Guile objfile script to
12710 scripts-directory help text.
12711 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12712 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12713 (struct breakpoint): New member scm_bp_object.
12714 * defs.h (enum command_control_type): New value guile_control.
12715 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12717 (show_user): Update comment.
12718 (_initialize_cli_cmds): Update help text for "show user". Update help
12719 text for max-user-call-depth.
12720 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12722 (multi_line_command_p): Add guile_control.
12723 (print_command_lines): Handle guile_control.
12724 (execute_control_command, recurse_read_control_structure): Ditto.
12725 (process_next_line): Recognize "guile" commands.
12726 * disasm.c (gdb_disassemble_info): Make non-static.
12727 * disasm.h: #include "dis-asm.h".
12728 (struct gdbarch): Add forward decl.
12729 (gdb_disassemble_info): Declare.
12730 * extension.c: #include "guile/guile.h".
12731 (extension_languages): Add guile.
12732 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12733 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12734 * gdbtypes.c (get_unsigned_type_max): New function.
12735 (get_signed_type_minmax): New function.
12736 * gdbtypes.h (get_unsigned_type_max): Declare.
12737 (get_signed_type_minmax): Declare.
12738 * guile/README: New file.
12739 * guile/guile-internal.h: New file.
12740 * guile/guile.c: New file.
12741 * guile/guile.h: New file.
12742 * guile/scm-arch.c: New file.
12743 * guile/scm-auto-load.c: New file.
12744 * guile/scm-block.c: New file.
12745 * guile/scm-breakpoint.c: New file.
12746 * guile/scm-disasm.c: New file.
12747 * guile/scm-exception.c: New file.
12748 * guile/scm-frame.c: New file.
12749 * guile/scm-gsmob.c: New file.
12750 * guile/scm-iterator.c: New file.
12751 * guile/scm-lazy-string.c: New file.
12752 * guile/scm-math.c: New file.
12753 * guile/scm-objfile.c: New file.
12754 * guile/scm-ports.c: New file.
12755 * guile/scm-pretty-print.c: New file.
12756 * guile/scm-safe-call.c: New file.
12757 * guile/scm-string.c: New file.
12758 * guile/scm-symbol.c: New file.
12759 * guile/scm-symtab.c: New file.
12760 * guile/scm-type.c: New file.
12761 * guile/scm-utils.c: New file.
12762 * guile/scm-value.c: New file.
12763 * guile/lib/gdb.scm: New file.
12764 * guile/lib/gdb/boot.scm: New file.
12765 * guile/lib/gdb/experimental.scm: New file.
12766 * guile/lib/gdb/init.scm: New file.
12767 * guile/lib/gdb/iterator.scm: New file.
12768 * guile/lib/gdb/printing.scm: New file.
12769 * guile/lib/gdb/types.scm: New file.
12770 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12771 (VPATH): Add $(GUILE_SRCDIR).
12772 (GUILE_DIR): New variable.
12773 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12774 (all): Add stamp-guile dependency.
12775 (stamp-guile): New rule.
12776 (clean-guile, install-guile, uninstall-guile): New rules.
12777 (install-only): Add install-guile dependency.
12778 (uninstall): Add uninstall-guile dependency.
12779 (clean): Add clean-guile dependency.
12781 2014-02-09 Doug Evans <xdje42@gmail.com>
12783 Revert this patch (which I approved, mea culpa).
12785 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12787 * Makefile.in (all-lib): Remove.
12788 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12790 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12792 Fix Python stack corruption.
12793 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12796 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12798 * Makefile.in (all-lib): Remove.
12799 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12801 2014-02-07 Doug Evans <dje@google.com>
12803 * extension-priv.h (extension_language_script_ops): Add comment.
12804 (extension_language_ops): Add comment.
12805 (active_ext_lang_state): Fix typo in comment.
12807 2014-02-07 Pedro Alves <palves@redhat.com>
12809 PR breakpoints/16292
12810 * infrun.c (handle_signal_stop) <signal arrives while stepping
12811 over a breakpoint>: Switch back to the stepping thread.
12813 2014-02-07 Yao Qi <yao@codesourcery.com>
12815 * target.c (target_xfer_partial): Return zero if LEN is zero.
12817 2014-02-07 Yao Qi <yao@codesourcery.com>
12819 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12820 (ld_so_xfer_auxv): Likewise.
12821 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12822 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12823 * corelow.c (core_xfer_partial): Likewise.
12824 * ctf.c (ctf_xfer_partial): Likewise.
12825 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12826 (darwin_xfer_partial): Likewise.
12827 * exec.c (exec_xfer_partial): Likewise.
12828 * gnu-nat.c (gnu_xfer_partial): Likewise.
12829 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12830 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12831 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12832 * linux-nat.c (linux_xfer_siginfo): Likewise.
12833 (linux_proc_xfer_spu): Likewise.
12834 * procfs.c (procfs_xfer_partial): Likewise.
12835 * record-full.c (record_full_xfer_partial): Likewise.
12836 (record_full_core_xfer_partial): Likewise.
12837 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12838 * remote.c (remote_write_qxfer): Likewise.
12839 (remote_write_qxfer, remote_read_qxfer): Likewise.
12840 (remote_xfer_partial): Likewise.
12841 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12842 (rs6000_xfer_shared_libraries): Likewise.
12843 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12844 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12845 (spu_xfer_partial): Likewise.
12846 * target.c (memory_xfer_partial_1): Likewise.
12847 * tracepoint.c (tfile_xfer_partial): Likewise.
12848 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12849 (windows_xfer_partial): Likewise.
12851 2014-02-07 Yao Qi <yao@codesourcery.com>
12853 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12855 (core_xfer_shared_libraries_aix): Likewise.
12856 * gdbarch.c, gdbarch.h: Regenerated.
12857 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12858 ULONGEST. Change 'len_avail' type to ULONGEST.
12859 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12860 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12862 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12864 2014-02-07 Yao Qi <yao@codesourcery.com>
12866 * corefile.c (memory_error): Get 'exception' from ERR and pass
12867 'exception' to throw_error.
12869 2014-02-06 Doug Evans <xdje42@gmail.com>
12871 * configure.ac (libpython checking): Remove all but python.o from
12872 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12873 * configure: Regenerate.
12875 * Makefile.in (SFILES): Add extension.c.
12876 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12877 (COMMON_OBS): Add extension.o.
12878 * extension.h: New file.
12879 * extension-priv.h: New file.
12880 * extension.c: New file.
12882 * python/python-internal.h: #include "extension.h".
12883 (gdbpy_auto_load_enabled): Declare.
12884 (gdbpy_apply_val_pretty_printer): Declare.
12885 (gdbpy_apply_frame_filter): Declare.
12886 (gdbpy_preserve_values): Declare.
12887 (gdbpy_breakpoint_cond_says_stop): Declare.
12888 (gdbpy_breakpoint_has_cond): Declare.
12889 (void source_python_script_for_objfile): Delete.
12890 * python/python.c: #include "extension-priv.h".
12891 Delete inclusion of "observer.h".
12892 (extension_language_python): Moved here and renamed from
12893 script_language_python in py-auto-load.c.
12894 Redefined to be of type extension_language_defn.
12895 (python_extension_script_ops): New global.
12896 (python_extension_ops): New global.
12897 (struct python_env): New member previous_active.
12898 (restore_python_env): Call restore_active_ext_lang.
12899 (ensure_python_env): Call set_active_ext_lang.
12900 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12902 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12904 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12906 (gdbpy_eval_from_control_command): Renamed from
12907 eval_python_from_control_command, made static. New arg extlang.
12908 (gdbpy_source_script) Renamed from source_python_script, made static.
12910 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12911 result to int. New arg extlang.
12912 (gdbpy_source_objfile_script): Renamed from
12913 source_python_script_for_objfile, made static. New arg extlang.
12914 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12915 static. New args extlang, extlang_printers. Change result type to
12917 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12918 static. New arg extlang. Rename arg printers to extlang_printers
12919 and change type to ext_lang_type_printers *.
12920 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12921 static. Replace argument arg with extlang, extlang_printers.
12922 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12923 (!HAVE_PYTHON, source_python_script): Delete.
12924 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12925 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12926 (!HAVE_PYTHON, start_type_printers): Delete.
12927 (!HAVE_PYTHON, apply_type_printers): Delete.
12928 (!HAVE_PYTHON, free_type_printers): Delete.
12929 (_initialize_python): Delete call to observer_attach_before_prompt.
12930 (finalize_python): Set/restore active extension language.
12931 (gdbpy_finish_initialization) Renamed from
12932 finish_python_initialization, made static. New arg extlang.
12933 (gdbpy_initialized): New function.
12934 * python/python.h: #include "extension.h". Delete #include
12935 "value.h", "mi/mi-cmds.h".
12936 (extension_language_python): Declare.
12937 (GDBPY_AUTO_FILE_NAME): Delete.
12938 (enum py_bt_status): Moved to extension.h and renamed to
12939 ext_lang_bt_status.
12940 (enum frame_filter_flags): Moved to extension.h.
12941 (enum py_frame_args): Moved to extension.h and renamed to
12942 ext_lang_frame_args.
12943 (finish_python_initialization): Delete.
12944 (eval_python_from_control_command): Delete.
12945 (source_python_script): Delete.
12946 (apply_val_pretty_printer): Delete.
12947 (apply_frame_filter): Delete.
12948 (preserve_python_values): Delete.
12949 (gdbpy_script_language_defn): Delete.
12950 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12951 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12953 * auto-load.c: #include "extension.h".
12954 (GDB_AUTO_FILE_NAME): Delete.
12955 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12956 (script_language_gdb): Delete, moved to extension.c and renamed to
12957 extension_language_gdb.
12958 (source_gdb_script_for_objfile): Delete.
12959 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12960 (loaded_script): Change type of language member to
12961 struct extension_language_defn *.
12962 (init_loaded_scripts_info): Initialize
12963 unsupported_script_warning_printed.
12964 (maybe_add_script): Make static. Change type of language arg to
12965 struct extension_language_defn *.
12966 (clear_section_scripts): Reset unsupported_script_warning_printed.
12967 (auto_load_objfile_script_1): Rewrite to use extension language API.
12968 (auto_load_objfile_script): Make public. Remove support-compiled-in
12969 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12970 (source_section_scripts): Rewrite to use extension language API.
12971 (load_auto_scripts_for_objfile): Rewrite to use
12972 auto_load_scripts_for_objfile.
12973 (collect_matching_scripts_data): Change type of language member to
12974 struct extension_language_defn *.
12975 (auto_load_info_scripts): Change type of language arg to
12976 struct extension_language_defn *.
12977 (unsupported_script_warning_print): New function.
12978 (script_not_found_warning_print): Make static.
12979 (_initialize_auto_load): Rewrite construction of scripts-directory
12981 * auto-load.h (struct objfile): Add forward decl.
12982 (struct script_language): Delete.
12983 (struct auto_load_pspace_info): Add forward decl.
12984 (struct extension_language_defn): Add forward decl.
12985 (maybe_add_script): Delete.
12986 (auto_load_objfile_script): Declare.
12987 (script_not_found_warning_print): Delete.
12988 (auto_load_info_scripts): Update prototype.
12989 (auto_load_gdb_scripts_enabled): Declare.
12990 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12991 auto_load_python_scripts_enabled and made public.
12992 (script_language_python): Delete, moved to python.c.
12993 (gdbpy_script_language_defn): Delete.
12994 (info_auto_load_python_scripts): Update to use
12995 extension_language_python.
12997 * breakpoint.c (condition_command): Replace call to
12998 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12999 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13000 with call to breakpoint_ext_lang_cond_says_stop.
13001 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13002 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13003 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13004 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13006 (local_setattro): Print name of extension language with existing
13009 * valprint.c (val_print, value_print): Update to call
13010 apply_ext_lang_val_pretty_printer.
13011 * cp-valprint.c (cp_print_value): Update call to
13012 apply_ext_lang_val_pretty_printer.
13013 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13014 (gdbpy_apply_val_pretty_printer): Renamed from
13015 apply_val_pretty_printer. New arg extlang.
13016 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13018 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13019 extension language API.
13020 * cli/cli-script.c (execute_control_command): Update to call
13021 eval_ext_lang_from_control_command.
13023 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13024 enum ext_lang_bt_status values. Update call to
13025 apply_ext_lang_frame_filter.
13026 (mi_cmd_stack_list_locals): Ditto.
13027 (mi_cmd_stack_list_args): Ditto.
13028 (mi_cmd_stack_list_variables): Ditto.
13029 * mi/mi-main.c: Delete #include "python/python-internal.h".
13030 Add #include "extension.h".
13031 (mi_cmd_list_features): Replace reference to python internal variable
13032 gdb_python_initialized with call to ext_lang_initialized_p.
13034 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13035 Update to use enum ext_lang_frame_args. Update to call
13036 apply_ext_lang_frame_filter.
13037 * python/py-framefilter.c (extract_sym): Update to use enum
13038 ext_lang_bt_status.
13039 (extract_value, py_print_type, py_print_value): Ditto.
13040 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13041 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13042 (py_print_frame): Ditto.
13043 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13044 New arg extlang. Update to use enum ext_lang_bt_status.
13046 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13047 finish_python_initialization. Replace with call to
13048 finish_ext_lang_initialization.
13050 * typeprint.c (do_free_global_table): Update to call
13051 free_ext_lang_type_printers.
13052 (create_global_typedef_table): Update to call
13053 start_ext_lang_type_printers.
13054 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13055 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13056 (type_print_options): Change type of global_printers from "void *"
13057 to "struct ext_lang_type_printers *".
13059 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13060 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13061 (gdbpy_preserve_values): Renamed from preserve_python_values.
13063 (!HAVE_PYTHON, preserve_python_values): Delete.
13065 * utils.c (quit_flag): Delete, moved to extension.c.
13066 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13069 * eval.c: Delete #include "python/python.h".
13070 * main.c: Delete #include "python/python.h".
13072 * defs.h: Update comment.
13074 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13078 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13080 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13083 2014-02-05 Yao Qi <yao@codesourcery.com>
13085 * remote.c (remote_pass_signals): Remove local 'buf' and use
13087 (remote_program_signals): Likewise.
13089 2014-02-05 Yao Qi <yao@codesourcery.com>
13091 * ctf.c: Include "inferior.h" and "gdbthread.h".
13092 (CTF_PID): A new macro.
13093 (ctf_open): Call inferior_appeared and add_thread_silent.
13094 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13095 (ctf_thread_alive): New function.
13096 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13098 2014-02-05 Yao Qi <yao@codesourcery.com>
13102 2013-05-24 Yao Qi <yao@codesourcery.com>
13104 * tracepoint.c (TFILE_PID): Remove.
13105 (tfile_open): Don't add thread and inferior.
13106 (tfile_close): Don't set 'inferior_ptid'. Don't call
13107 exit_inferior_silent.
13108 (tfile_thread_alive): Remove.
13109 (init_tfile_ops): Don't set field 'to_thread_alive' of
13112 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13114 * remote.c (remote_start_remote): Call remote_check_symbols even
13115 if only symbol-file (not file) has been given.
13117 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13119 * gdbarch.sh (skip_entrypoint): New callback.
13120 * gdbarch.c, gdbarch.h: Regenerate.
13121 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13122 * infrun.c (fill_in_stop_func): Likewise.
13123 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13124 (ppc_elfv2_elf_make_msymbol_special): New function.
13125 (ppc_elfv2_skip_entrypoint): Likewise.
13126 (ppc_linux_init_abi): Install them for ELFv2.
13128 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13130 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13131 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13132 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13133 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13134 structures returned in GPRs.
13136 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13138 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13139 offset to the stack parameter list for the ELFv2 ABI.
13141 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13143 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13144 set_gdbarch_convert_from_func_ptr_addr and
13145 set_gdbarch_elf_make_msymbol_special for ELFv1.
13146 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13147 function descriptors on ELFv1.
13148 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13149 set up r12 at function entry.
13151 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13153 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13154 (struct gdbarch_tdep): New member elf_abi.
13156 * rs6000-tdep.c: Include "elf/ppc64.h".
13157 (rs6000_gdbarch_init): Detect ELF ABI version.
13159 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13161 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13162 within a register pair holding a DFP 128-bit value on little-endian.
13163 (ppc64_sysv_abi_return_value_base): Likewise.
13164 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13165 (dfp_pseudo_register_write): Likewise.
13167 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13169 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13170 offset on little-endian when passing _Decimal32.
13171 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13173 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13175 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13176 of the overlapped FP register within the VSX register on little-
13178 (efpr_pseudo_register_write): Likewise.
13180 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13182 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13183 offset on little-endian when passing small structures.
13185 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13187 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13188 (struct ppc64_sysv_argpos): New data structure.
13189 (ppc64_sysv_abi_push_float): Remove.
13190 (ppc64_sysv_abi_push_val): New function.
13191 (ppc64_sysv_abi_push_integer): Likewise.
13192 (ppc64_sysv_abi_push_freg): Likewise.
13193 (ppc64_sysv_abi_push_vreg): Likewise.
13194 (ppc64_sysv_abi_push_param): Likewise.
13195 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13196 (ppc64_sysv_abi_return_value_base): New function.
13197 (ppc64_sysv_abi_return_value): Refactor to use it.
13199 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13201 * NEWS: Document new target powerpc64le-*-linux*.
13203 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13205 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13206 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13208 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13209 register set used in ELF core dumps. Add floating-point register set.
13211 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13213 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13214 dwarf2_to_gdb[] table using symbolic constants. Adjust
13215 penultimate entry from number representing the PC register
13216 to symbolic constant representing the MDR register. Add
13217 constant for the PC register to the end of the table.
13219 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13221 * bsd-kvm.c: Include <sys/param.h>
13223 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13225 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13227 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13229 * ada-lang.h (clear_ada_sym_cache): Delete.
13231 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13233 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13235 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13237 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13238 the sigreturn register save area only if the syscall is
13241 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13243 * valops.c (value_slice): Minor reformatting.
13245 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13247 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13249 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13251 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13252 New static globals.
13253 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13254 (ada_ignore_descriptive_types_p): New static global.
13255 (find_parallel_type_by_descriptive_type): Return immediately
13256 if ada_ignore_descriptive_types_p is set.
13257 (_initialize_ada_language): Register new commands "maintenance
13258 set ada", "maintenance show ada", "maintenance set ada
13259 ignore-descriptive-types" and "maintenance show ada
13260 ignore-descriptive-types".
13261 * NEWS: Add entry for new "maint ada set/show
13262 ignore-descriptive-types" commands.
13264 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13266 * record-btrace.c (record_btrace_close): Call btrace_teardown
13269 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13271 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13274 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13276 * ada-typeprint (type_is_full_subrange_of_target_type):
13278 (print_range): Add parameter bounds_prefered_p. If not set,
13279 try printing range types using the name of their base type.
13280 (print_range_type): Add parameter bounds_prefered_p.
13281 Use it in call to print_range.
13282 (print_array_type, ada_print_type): Update calls to print_range
13283 and print_range_type.
13285 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13287 * ada-typeprint.c (print_array_type, print_choices, print_range)
13288 (print_range_bound, print_dynamic_range_bound, print_range_type):
13289 Remove declaration.
13291 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13293 * ada-typeprint.c (print_range): Add missing empty line
13294 after local declaration.
13296 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13298 * ada-valprint.c (print_optional_low_bound): Get index_type's
13299 target type for as long as it is a TYPE_CODE_RANGE.
13301 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13303 * procfs.c (procfs_make_note_section): Remove assertion and
13304 associated comment.
13306 2014-01-24 Yao Qi <yao@codesourcery.com>
13308 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13309 * corelow.c (get_core_siginfo): Likewise.
13311 2014-01-24 Yao Qi <yao@codesourcery.com>
13313 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13314 ULONGEST. Don't check 'len' is negative.
13315 (remote_write_bytes): Change type of 'len' to ULONGEST.
13317 2014-01-23 Tom Tromey <tromey@redhat.com>
13320 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13321 Handle exception from frame.block.
13322 (FrameVars.fetch_frame_locals): Likewise.
13324 2014-01-23 Tom Tromey <tromey@redhat.com>
13327 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13328 on a NULL pointer. Move "goto error" to correct place.
13330 2014-01-23 Tom Tromey <tromey@redhat.com>
13333 * python/py-framefilter.c (apply_frame_filter): Call
13334 ensure_python_env after computing gdbarch.
13336 2014-01-23 Yao Qi <yao@codesourcery.com>
13338 * target.c (raw_memory_xfer_partial): Change argument type
13339 from void * to gdb_byte *.
13340 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13342 2014-01-22 Doug Evans <dje@google.com>
13344 New gdbserver option --debug-format=timestamp.
13345 * NEWS: Mention it.
13347 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13349 * syscalls/s390x-linux.xml: New file.
13350 * syscalls/s390-linux.xml: New file.
13351 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13352 (XML_SYSCALL_FILENAME_S390X): Likewise.
13353 (op_svc): New enum value for SVC opcode.
13354 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13355 (s390_linux_get_syscall_number): New function.
13356 (s390_gdbarch_init): Register '*get_syscall_number' and the
13357 syscall xml file name.
13358 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13359 "s390-linux.xml" and "s390x-linux.xml".
13360 * NEWS: Announce new feature.
13362 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13364 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13366 2014-01-22 Pedro Alves <palves@redhat.com>
13368 * xtensa-config.c: Include defs.h.
13370 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13372 * common/common-utils.h: Add "ARI:" comment beside __func__
13375 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13377 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13378 documentation a bit.
13380 2014-01-21 Roland McGrath <mcgrathr@google.com>
13382 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13383 * configure: Regenerate.
13384 * aclocal.m4: Regenerate.
13385 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13386 New substituted variables.
13387 (install-strip): New target.
13388 (INSTALL_SCRIPT): New substituted variable.
13389 (FLAGS_TO_PASS): Add it.
13390 (install-only): Use $(INSTALL_SCRIPT) rather than
13391 $(INSTALL_PROGRAM) for gcore.
13393 2014-01-20 Tom Tromey <tromey@redhat.com>
13395 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13398 2014-01-20 Tom Tromey <tromey@redhat.com>
13400 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13401 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13402 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13403 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13404 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13405 (struct cmd_list_element) <flags>: Remove.
13406 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13407 doc_allocated>: New fields.
13408 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13410 * maint.c (maintenance_do_deprecate): Update.
13411 * top.c (execute_command): Update.
13413 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13415 * xtensa-linux-nat.c: Include asm/ptrace.h.
13417 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13419 * Makefile.in (SFILES): Add d-support.c.
13420 (COMMON_OBS): Add d-support.o.
13421 * d-lang.h (d_parse_symbol): Add comment, now defined in
13423 * d-lang.c (parse_call_convention)
13424 (parse_attributes, parse_function_types)
13425 (parse_function_args, parse_type, parse_identifier)
13426 (call_convention_p, d_parse_symbol): Move functions to ...
13427 * d-support.c: ... New file.
13429 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13431 * d-lang.h (d_parse_symbol): Add declaration.
13432 * d-lang.c (extract_identifiers)
13433 (extract_type_info): Remove functions.
13434 (parse_call_convention, parse_attributes)
13435 (parse_function_types, parse_function_args)
13436 (parse_type, parse_identifier, call_convention_p)
13437 (d_parse_symbol): New functions.
13438 (d_demangle): Use d_parse_symbol to demangle D symbols.
13440 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13442 * d-lang.h (struct builtin_d_type): New data type.
13443 (builtin_d_type): Add declaration.
13444 * d-lang.c (d_language_arch_info, build_d_types)
13445 (builtin_d_type): New functions.
13446 (enum d_primitive_types): New data type.
13447 (d_language_defn): Change c_language_arch_info to
13448 d_language_arch_info.
13449 (d_type_data): New static variable.
13450 (_initialize_d_language): Initialize d_type_data.
13452 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13454 * d-lang.h (d_main_name): Add declaration.
13455 * d-lang.c (d_main_name): New function.
13456 * symtab.c (find_main_name): Add call to d_main_name.
13458 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13460 * d-lang.c (d_language_defn): Change macro_expansion_c to
13461 macro_expansion_no.
13463 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13465 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13467 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13469 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13470 gdb_exception" declaration.
13471 * remote.c (getpkt_or_notif_sane): Likewise.
13473 2014-01-17 Doug Evans <dje@google.com>
13475 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13476 function, contents of dirnames_to_char_ptr_vec_append moved here.
13477 (delim_string_to_char_ptr_vec): New function.
13478 (dirnames_to_char_ptr_vec_append): Rewrite.
13479 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13481 2014-01-17 Doug Evans <dje@google.com>
13483 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13485 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13486 #include "common-utils.h".
13487 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13488 * common/vec.h (VEC_ASSERT_PASS): Update.
13489 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13490 (MACH_CHECK_ERROR): Update.
13492 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13494 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13496 * gdbarch.h: Regenerate.
13498 2014-01-16 Tom Tromey <tromey@redhat.com>
13500 * value.c (struct value) <regnum>: Move earlier.
13502 2014-01-16 Tom Tromey <tromey@redhat.com>
13504 * remote.c (extended_remote_create_inferior): Rename from
13505 extended_remote_create_inferior_1. Add "ops" argument. Remove
13506 old implementation.
13508 2014-01-16 Pedro Alves <palves@redhat.com>
13510 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13511 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13514 2014-01-16 Doug Evans <dje@google.com>
13516 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13518 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13520 * btrace.h (btrace_thread_flag): New.
13521 (struct btrace_thread_info) <flags>: New.
13522 * record-btrace.c (record_btrace_resume_thread)
13523 (record_btrace_find_thread_to_move, btrace_step_no_history)
13524 (btrace_step_stopped, record_btrace_start_replaying)
13525 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13526 (record_btrace_find_resume_thread): New.
13527 (record_btrace_resume, record_btrace_wait): Extend.
13528 (record_btrace_can_execute_reverse): New.
13529 (record_btrace_open): Fail in non-stop mode.
13530 (record_btrace_set_replay): Split into this, ...
13531 (record_btrace_stop_replaying): ... this, ...
13532 (record_btrace_clear_histories): ... and this.
13533 (init_record_btrace_ops): Init to_can_execute_reverse.
13534 * NEWS: Announce it.
13536 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13538 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13539 (forward_target_decr_pc_after_break)
13540 (target_decr_pc_after_break): New.
13541 * target.c (forward_target_decr_pc_after_break)
13542 (target_decr_pc_after_break): New.
13543 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13544 instead of gdbarch_decr_pc_after_break.
13545 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13546 instead of gdbarch_decr_pc_after_break.
13547 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13548 instead of gdbarch_decr_pc_after_break.
13549 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13550 instead of gdbarch_decr_pc_after_break.
13551 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13552 instead of gdbarch_decr_pc_after_break.
13553 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13554 instead of gdbarch_decr_pc_after_break.
13556 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13558 * btrace.c: Include regcache.h.
13559 (btrace_add_pc): New.
13560 (btrace_enable): Call btrace_add_pc.
13561 (btrace_is_empty): New.
13562 * btrace.h (btrace_is_empty): New.
13563 * record-btrace.c (require_btrace, record_btrace_info): Call
13566 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13568 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13569 Support delta reads.
13570 (linux_disable_btrace): Change return type.
13571 * common/linux-btrace.h (linux_read_btrace): Change parameters
13572 and return type to allow error reporting. Update users.
13573 (linux_disable_btrace): Change return type. Update users.
13574 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13576 (btrace_error): New.
13577 (btrace_block) <begin>: Comment on BEGIN == 0.
13578 * btrace.c (btrace_compute_ftrace): Start from the end of
13580 (btrace_stitch_trace, btrace_clear_history): New.
13581 (btrace_fetch): Read delta trace, return if replaying.
13582 (btrace_clear): Move clear history code to btrace_clear_history.
13583 (parse_xml_btrace): Throw an error if parsing failed.
13584 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13585 and return type to allow error reporting.
13586 (target_read_btrace): Change parameters and return type to allow
13588 * target.c (target_read_btrace): Update.
13589 * remote.c (remote_read_btrace): Support delta reads. Pass
13591 * NEWS: Announce it.
13593 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13595 * record.h (record_btrace_frame_unwind)
13596 (record_btrace_tailcall_frame_unwind): New declarations.
13597 * dwarf2-frame: Include record.h
13598 (dwarf2_frame_cfa): Throw an error for btrace frames.
13599 * record-btrace.c: Include hashtab.h.
13600 (btrace_get_bfun_name): New.
13601 (btrace_call_history): Call btrace_get_bfun_name.
13602 (struct btrace_frame_cache): New.
13604 (bfcache_hash, bfcache_eq, bfcache_new): New.
13605 (btrace_get_frame_function): New.
13606 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13607 (record_btrace_frame_this_id): Compute own id.
13608 (record_btrace_frame_prev_register): Provide PC, throw_error
13609 for all other registers.
13610 (record_btrace_frame_sniffer): Detect btrace frames.
13611 (record_btrace_tailcall_frame_sniffer): New.
13612 (record_btrace_frame_dealloc_cache): New.
13613 (record_btrace_frame_unwind): Add new functions.
13614 (record_btrace_tailcall_frame_unwind): New.
13615 (_initialize_record_btrace): Allocate cache.
13616 * btrace.c (btrace_clear): Call reinit_frame_cache.
13617 * NEWS: Announce it.
13619 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13621 * record-btrace.c (record_btrace_set_replay)
13622 (record_btrace_goto_begin, record_btrace_goto_end)
13623 (record_btrace_goto): New.
13624 (init_record_btrace_ops): Initialize them.
13625 * NEWS: Announce it.
13627 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13629 * record-btrace.c (record_btrace_find_new_threads)
13630 (record_btrace_thread_alive): New.
13631 (init_record_btrace_ops): Initialize to_find_new_threads and
13634 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13636 * record-btrace.c (record_btrace_resume): New.
13637 (record_btrace_wait): New.
13638 (init_record_btrace_ops): Initialize to_wait and to_resume.
13640 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13642 * record-btrace.c (record_btrace_xfer_partial)
13643 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13644 (record_btrace_allow_memory_access): New.
13645 (init_record_btrace_ops): Initialize new methods.
13646 * target.c (raw_memory_xfer_partial): Bail out if target reports
13647 that this memory is not available.
13649 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13651 * target.h (target_ops) <to_insert_breakpoint>
13652 <to_remove_breakpoint>: Add target_ops parameter.
13653 (forward_target_insert_breakpoint): New.
13654 (forward_target_remove_breakpoint): New.
13655 (memory_remove_breakpoint, memory_insert_breakpoint):
13656 Add target_ops parameter.
13657 * target.c (target_insert_breakpoint): Split into this and ...
13658 (forward_target_insert_breakpoint): ... this.
13659 (target_remove_breakpoint): Split into this and ...
13660 (forward_target_remove_breakpoint): ... this.
13661 (debug_to_insert_breakpoint): Add target_ops parameter.
13662 Call forward_target_insert_breakpoint.
13663 (debug_to_remove_breakpoint): Add target_ops parameter.
13664 Call forward_target_remove_breakpoint.
13665 (update_current_target): Do not inherit or default to_insert_breakpoint
13666 and to_remove_breakpoint.
13667 * corelow.c (ignore): Add target_ops parameter.
13668 * exec.c (ignore): Add target_ops parameter.
13669 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13670 Add target_ops parameter.
13671 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13672 Add target_ops parameter.
13673 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13674 Add target_ops parameter.
13675 * record-full.c (record_full_beneath_to_insert_breakpoint)
13676 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13677 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13678 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13679 (record_full_core_remove_breakpoint): Add target_ops parameter.
13681 (record_full_beneath_to_insert_breakpoint_ops)
13682 (record_full_beneath_to_remove_breakpoint_ops)
13683 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13684 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13685 tmp_to_remove_breakpoint_ops,
13686 record_full_beneath_to_insert_breakpoint_ops, and
13687 record_full_beneath_to_remove_breakpoint_ops.
13688 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13689 (m32r_remove_breakpoint): Add target_ops parameter.
13690 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13691 Add target_ops parameter.
13692 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13693 Add target_ops parameter.
13695 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13696 Markus Metzger <markus.t.metzger@intel.com>
13698 * record-btrace.c: Include frame-unwind.h.
13699 (record_btrace_frame_unwind_stop_reason)
13700 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13701 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13703 (init_record_btrace_ops): Install it.
13705 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13707 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13710 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13712 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13715 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13717 * frame-unwind.c: Include target.h.
13718 (frame_unwind_try_unwinder): New function with code from ...
13719 (frame_unwind_find_by_frame): ... here. New variable
13720 unwinder_from_target, call also target_get_unwinder)
13721 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13722 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13723 * target.h (struct target_ops): New fields to_get_unwinder and
13724 to_get_tailcall_unwinder.
13725 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13727 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13729 * record-btrace.c (record_btrace_fetch_registers)
13730 (record_btrace_store_registers)
13731 (record_btrace_to_prepare_to_store): New.
13732 (init_record_btrace_ops): Add the above.
13734 2014-01-16 Tom Tromey <tromey@redhat.com>
13736 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13737 * target.h (struct target_ops) <to_prepare_to_store>: Add
13739 (target_prepare_to_store): Add argument.
13740 * target.c (debug_to_prepare_to_store): Add argument.
13741 (update_current_target): Update.
13742 * remote.c (remote_prepare_to_store): Add 'self' argument.
13743 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13744 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13745 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13746 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13748 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13749 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13750 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13751 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13752 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13754 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13756 * btrace.h (replay) <replay>: New.
13757 (btrace_is_replaying): New.
13758 * btrace.c (btrace_clear): Free replay iterator.
13759 (btrace_is_replaying): New.
13760 * record-btrace.c (record_btrace_is_replaying): New.
13761 (record_btrace_info): Print insn number if replaying.
13762 (record_btrace_insn_history): Start at replay position.
13763 (record_btrace_call_history): Start at replay position.
13764 (init_record_btrace_ops): Init to_record_is_replaying.
13766 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13768 * record-btrace.c (record_btrace_insn_history_range): Include
13770 (record_btrace_insn_history_from): Adjust range.
13771 (record_btrace_call_history_range): Include
13773 (record_btrace_call_history_from): Adjust range.
13774 * NEWS: Announce changes.
13776 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13778 * record.h (enum record_print_flag)
13779 <record_print_indent_calls>: New.
13780 * record.c (get_call_history_modifiers): Recognize /c modifier.
13781 (_initialize_record): Document /c modifier.
13782 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13783 Reorder fields. Optionally indent the function name. Update
13785 * NEWS: Announce changes.
13787 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13789 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13791 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13793 * btrace.c (ftrace_new_function): Start counting at one.
13794 * record-btrace.c (record_btrace_info): Adjust number of calls
13796 * NEWS: Announce it.
13798 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13800 * record-btrace.c (btrace_call_history_insn_range): Print
13801 insn range as [begin, end].
13803 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13805 * btrace.h (struct btrace_func_link): New.
13806 (enum btrace_function_flag): New.
13807 (struct btrace_inst): Rename to ...
13808 (struct btrace_insn): ...this. Update all users.
13809 (struct btrace_func) <ibegin, iend>: Remove.
13810 (struct btrace_func_link): New.
13811 (struct btrace_func): Rename to ...
13812 (struct btrace_function): ...this. Update all users.
13813 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13814 (number, level, flags>: New.
13815 (struct btrace_insn_iterator): Rename to ...
13816 (struct btrace_insn_history): ...this.
13818 (struct btrace_insn_iterator, btrace_call_iterator): New.
13819 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13820 (struct btrace_target_info) <begin, end, level>
13821 <insn_history, call_history>: New.
13822 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13823 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13824 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13825 (btrace_call_number, btrace_call_begin, btrace_call_end)
13826 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13827 (btrace_find_function_by_number, btrace_set_insn_history)
13828 (btrace_set_call_history): New.
13829 * btrace.c (btrace_init_insn_iterator)
13830 (btrace_init_func_iterator, compute_itrace): Remove.
13831 (ftrace_print_function_name, ftrace_print_filename)
13832 (ftrace_skip_file): Change
13833 parameter to const.
13834 (ftrace_init_func): Remove.
13835 (ftrace_debug): Use new btrace_function fields.
13836 (ftrace_function_switched): Also consider gaining and
13837 losing symbol information).
13838 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13839 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13840 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13842 (ftrace_new_function): Move. Remove debug print.
13843 (ftrace_update_lines, ftrace_update_insns): New.
13844 (ftrace_update_function): Check for call, ret, and jump.
13845 (compute_ftrace): Renamed to ...
13846 (btrace_compute_ftrace): ...this. Rewritten to compute call
13848 (btrace_fetch, btrace_clear): Updated.
13849 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13850 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13851 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13852 (btrace_call_number, btrace_call_begin, btrace_call_end)
13853 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13854 (btrace_find_function_by_number, btrace_set_insn_history)
13855 (btrace_set_call_history): New.
13856 * record-btrace.c (require_btrace): Use new btrace thread
13858 (record_btrace_info, btrace_insn_history)
13859 (record_btrace_insn_history, record_btrace_insn_history_range):
13860 Use new btrace thread info fields and new iterator.
13861 (btrace_func_history_src_line): Rename to ...
13862 (btrace_call_history_src_line): ...this. Use new btrace
13863 thread info fields.
13864 (btrace_func_history): Rename to ...
13865 (btrace_call_history): ...this. Use new btrace thread info
13866 fields and new iterator.
13867 (record_btrace_call_history, record_btrace_call_history_range):
13868 Use new btrace thread info fields and new iterator.
13870 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13872 * frame.h (frame_id_build_unavailable_stack_special): New.
13873 * frame.c (frame_id_build_unavailable_stack_special): New.
13875 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13877 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13878 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13879 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13881 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13882 (i386_insn_is_jump, i386_jmp_p): New.
13883 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13884 insn_is_jump to gdbarch.
13885 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13886 * gdbarch.h: Regenerated.
13887 * gdbarch.c: Regenerated.
13888 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13889 (default_insn_is_jump): New.
13890 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13891 (default_insn_is_jump): New.
13893 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13895 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13897 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13898 (btrace_read_type) <btrace_read_new>: Change to ...
13899 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13901 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13903 * common/linux-btrace.c (linux_read_btrace): Free trace from
13904 previous iteration.
13906 2014-01-15 Doug Evans <dje@google.com>
13908 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13911 2014-01-15 Tom Tromey <tromey@redhat.com>
13913 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13914 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13915 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13916 (set_objfile_main_name): New function.
13917 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13918 language_of_main>: New fields.
13919 (set_objfile_main_name): Declare.
13920 * symtab.c (find_main_name): Loop over objfiles to find the main
13922 (set_main_name): Now static.
13923 (get_main_info): Add comment.
13924 * symtab.h (set_main_name): Don't declare.
13926 2014-01-15 Tom Tromey <tromey@redhat.com>
13928 * symtab.c (main_progspace_key): New global.
13929 (struct main_info): New.
13930 (name_of_main, language_of_main): Remove.
13931 (get_main_info, main_info_cleanup): New function.
13932 (set_main_name, main_name, main_language): Use get_main_info.
13933 (_initialize_symtab): Initialize main_progspace_key.
13935 2014-01-15 Tom Tromey <tromey@redhat.com>
13937 * dbxread.c (process_one_symbol): Update.
13938 * dwarf2read.c (read_partial_die): Update.
13939 * symfile.c (set_initial_language): Call main_language.
13940 * symtab.c (language_of_main): Now static.
13941 (set_main_name): Add 'lang' parameter.
13942 (find_main_name): Update.
13943 (main_language): New function.
13944 (symtab_observer_executable_changed): Update.
13945 * symtab.h (set_main_name): Update.
13946 (language_of_main): Remove.
13947 (main_language): Declare.
13949 2014-01-15 Tom Tromey <tromey@redhat.com>
13951 * symfile.c (init_entry_point_info): Use new "initialized" field.
13953 * objfiles.h (struct entry_point) <initialized>: New field.
13954 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13955 (struct objfile) <ei>: ...here. Remove.
13956 * objfiles.c (entry_point_address_query): Update.
13958 2014-01-15 Tom Tromey <tromey@redhat.com>
13960 * objfiles.c (entry_point_address_query): Relocate entry point
13962 (objfile_relocate1): Do not relocate entry point address.
13963 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13964 <the_bfd_section_index>: New field.
13965 * symfile.c (init_entry_point_info): Find the entry point's
13968 2014-01-15 Tom Tromey <tromey@redhat.com>
13970 * solib-frv.c (enable_break): Use entry_point_address_query.
13972 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13974 * NEWS: Add note on improved process record-replay on
13975 arm*-linux* targets.
13977 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13979 * arm-tdep.c (enum arm_record_result): New enum.
13980 (arm_record_unsupported_insn): New function.
13981 (arm_record_coproc_data_proc): Removed.
13982 (thumb2_record_ld_st_multiple): New function.
13983 (thumb2_record_ld_st_dual_ex_tbb): New function.
13984 (thumb2_record_data_proc_sreg_mimm): New function.
13985 (thumb2_record_ps_dest_generic): New function.
13986 (thumb2_record_branch_misc_cntrl): New function.
13987 (thumb2_record_str_single_data): New function.
13988 (thumb2_record_ld_mem_hints): New function.
13989 (thumb2_record_ld_word): New function.
13990 (thumb2_record_lmul_lmla_div): New function.
13991 (thumb2_record_decode_insn_handler): New function.
13992 (decode_insn): Add thumb32 instruction handlers.
13994 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13996 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13997 (struct arm_linux_record_tdep): Declare.
13998 (arm_canonicalize_syscall): New function.
13999 (arm_all_but_pc_registers_record): New function.
14000 (arm_linux_syscall_record): New function.
14001 (arm_linux_init_abi): Add syscall recording constructs.
14002 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14003 decoding. (arm_record_coproc_data_proc): Update arm syscall
14005 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14006 <arm_syscall_record>: New field.
14007 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14010 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14012 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14013 register for push instruction recording.
14015 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14017 * arm-tdep.c (thumb_record_misc): Update to correct logical
14018 error while recording ldm, ldmia and pop instructions.
14020 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14022 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14024 2014-01-15 Pedro Alves <palves@redhat.com>
14026 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14027 (go32_resume, go32_fetch_registers, store_register)
14028 (go32_store_registers, go32_prepare_to_store)
14029 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14030 (go32_create_inferior, go32_can_run, go32_terminal_init)
14031 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14034 2014-01-15 Tom Tromey <tromey@redhat.com>
14036 * target.h (async_callback_ftype): New typedef.
14037 (struct target_ops) <to_async>: Use it.
14039 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14041 * python/py-value.c (get_field_type): Remove unnecessary curly
14042 braces for single-statement if block.
14044 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14046 * python/py-type.c (convert_field): Add missing empty line
14047 after declarations.
14049 2014-01-14 Doug Evans <dje@google.com>
14051 * symfile.h (expand_symtabs_matching): Renamed from
14052 expand_partial_symbol_names. Update prototype.
14053 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14054 * symfile.c (expand_symtabs_matching): Renamed from
14055 expand_partial_symbol_names. New args file_matcher, kind.
14056 Rename arg fun to symbol_matcher.
14057 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14058 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14059 ada_expand_partial_symbol_name.
14060 (ada_make_symbol_completion_list): Update to call
14061 expand_symtabs_matching.
14062 (ada_add_global_exceptions): Call expand_symtabs_matching.
14063 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14064 call map_symbol_filenames.
14065 * symtab.c (sources_info): Update to call map_symbol_filenames.
14066 (search_symbols): Call expand_symtabs_matching.
14067 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14068 (default_make_symbol_completion_list_break_on): Update to call
14069 expand_symtabs_matching.
14070 (make_source_files_completion_list): Update to call
14071 map_symbol_filenames.
14073 2014-01-14 Doug Evans <dje@google.com>
14075 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14076 (expand_symtabs_symbol_matcher_ftype): New typedef.
14077 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14078 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14079 * symfile.c (expand_partial_symbol_names): Update to use
14080 expand_symtabs_symbol_matcher_ftype.
14081 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14082 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14083 Arg name_matcher renamed to symbol_matcher.
14084 * psymtab.c (recursively_search_psymtabs): Update to use
14085 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14087 (expand_symtabs_matching_via_partial): Update to use
14088 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14089 Arg name_matcher renamed to symbol_matcher.
14091 2014-01-14 Doug Evans <dje@google.com>
14093 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14094 (map_partial_symbol_filenames): Ditto.
14095 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14096 (map_partial_symbol_filenames): Ditto.
14097 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14098 (map_partial_symbol_filenames): Ditto.
14099 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14100 (map_partial_symbol_filenames): Ditto.
14101 * symtab.c: Delete #include "psymtab.h".
14103 2014-01-14 Pedro Alves <palves@redhat.com>
14104 Tom Tromey <tromey@redhat.com>
14106 * infrun.c (use_displaced_stepping): Use find_record_target
14107 instead of RECORD_IS_USED.
14108 (adjust_pc_after_break): Use record_full_is_used instead of
14110 * record-btrace.c (record_btrace_open): Call record_preopen
14111 instead of checking RECORD_IS_USED.
14112 * record-full.c (record_full_shortname)
14113 (record_full_core_shortname): New globals.
14114 (record_full_is_used): New function.
14115 (find_full_open): Call record_preopen instead of checking
14117 (init_record_full_ops): Set the target's shortname to
14118 record_full_shortname.
14119 (init_record_full_core_ops): Set the target's shortname to
14120 record_full_core_shortname.
14121 * record-full.h (record_full_is_used): Declare.
14122 * record.c (find_record_target): Make extern.
14123 (record_preopen): New function.
14124 * record.h (RECORD_IS_USED): Delete macro.
14125 (find_record_target, record_preopen): Declare functions.
14127 2014-01-14 Yao Qi <yao@codesourcery.com>
14129 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14130 'len''s type to ULONGEST.
14131 (core_xfer_shared_libraries_aix): Likewise.
14132 * gdbarch.c, gdbarch.h: Regenerated.
14133 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14134 Change type of 'len' to ULONGEST.
14135 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14136 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14138 2014-01-14 Yao Qi <yao@codesourcery.com>
14140 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14141 type of 'len' to ULONGEST.
14142 (linux_xfer_osdata_processgroups): Likewise.
14143 (linux_xfer_osdata_threads): Likewise.
14144 (linux_xfer_osdata_fds): Likewise.
14145 (linux_xfer_osdata_isockets): Likewise.
14146 (linux_xfer_osdata_shm): Likewise.
14147 (linux_xfer_osdata_sem): Likewise.
14148 (linux_xfer_osdata_msg): Likewise.
14149 (linux_common_xfer_osdata): Likewise.
14150 (struct osdata_type) <getter>: Likewise.
14151 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14154 2014-01-14 Yao Qi <yao@codesourcery.com>
14156 * target.h (target_xfer_partial_ftype): Update.
14157 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14159 * aix-thread.c (aix_thread_xfer_partial): Change type of
14160 argument 'len' to ULONGEST.
14161 * auxv.c (procfs_xfer_auxv): Likewise.
14162 (ld_so_xfer_auxv): Likewise.
14163 (memory_xfer_auxv): Likewise.
14164 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14165 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14166 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14167 * corelow.c (core_xfer_partial): Likewise.
14168 * ctf.c (ctf_xfer_partial): Likewise.
14169 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14171 (darwin_read_dyld_info): Likewise.
14172 (darwin_xfer_partial): Likewise.
14173 * exec.c (section_table_xfer_memory_partial): Likewise.
14174 (exec_xfer_partial): Likewise.
14175 * exec.h (section_table_xfer_memory_partial): Update
14177 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14178 instead of plongest.
14179 (gnu_xfer_partial): Likewise.
14180 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14181 (ia64_hpux_xfer_solib_got): Likewise.
14182 (ia64_hpux_xfer_partial): Likewise.
14183 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14184 * inf-ptrace.c (inf_ptrace_xfer_partial):
14185 * inf-ttrace.c (inf_ttrace_xfer_partial):
14186 * linux-nat.c (linux_xfer_siginfo): Likewise.
14187 (linux_nat_xfer_partial): Likewise.
14188 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14189 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14190 * monitor.c (monitor_xfer_memory): Likewise.
14191 (monitor_xfer_partial): Likewise.
14192 * procfs.c (procfs_xfer_partial): Likewise.
14193 * record-full.c (record_full_xfer_partial): Likewise.
14194 (record_full_core_xfer_partial): Likewise.
14195 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14196 instead of plongest.
14197 (gdbsim_xfer_partial): Likewise.
14198 * remote.c (remote_xfer_partial): Likewise.
14199 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14200 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14202 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14203 (rs6000_xfer_shared_libraries): Likewise.
14204 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14205 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14206 (sparc_xfer_partial): Likewise.
14207 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14208 (spu_xfer_partial): Likewise.
14209 * spu-multiarch.c (spu_xfer_partial): Likewise.
14210 * target.c (target_read_live_memory): Likewise.
14211 (memory_xfer_live_readonly_partial): Likewise.
14212 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14213 (target_xfer_partial, default_xfer_partial): Likewise.
14214 (current_xfer_partial): Likewise.
14215 * tracepoint.c (tfile_xfer_partial): Likewise.
14216 * windows-nat.c (windows_xfer_memory): Likewise. Call
14217 pulongest instead of plongest.
14218 (windows_xfer_partial): Likewise.
14219 (windows_xfer_shared_libraries): Likewise.
14221 2014-01-14 Yao Qi <yao@codesourcery.com>
14223 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14224 target_xfer_partial_ftype.
14226 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14230 * valops.c (value_struct_elt_bitpos): New function
14231 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14232 object to 'None' if the field name is an empty string ("").
14233 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14234 attribute to look for a field when 'name' is 'None'.
14235 (get_field_type): New function
14237 2014-01-13 Doug Evans <dje@google.com>
14240 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14241 (try_open_dwop_file): Ditto.
14242 * gdb_bfd.c: #include "vec.h".
14243 (bfdp): New typedef.
14244 (struct gdb_bfd_data): New member included_bfds.
14245 (gdb_bfd_unref): Unref all included bfds.
14246 (gdb_bfd_record_inclusion): New function.
14247 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14249 2014-01-13 Tom Tromey <tromey@redhat.com>
14251 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14253 2014-01-13 Tom Tromey <tromey@redhat.com>
14255 * defs.h (use_windows): Remove.
14256 * gdb.c (main): Update.
14257 * main.c (captured_main, gdb_main): Update.
14258 * main.h (struct captured_main_args) <use_windows>: Remove.
14259 * top.c (use_windows): Remove.
14261 2014-01-13 Tom Tromey <tromey@redhat.com>
14263 * defs.h (deprecated_flush_hook): Remove.
14265 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14268 * linux-thread-db.c (try_thread_db_load): Add parameter
14269 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14270 (try_thread_db_load_from_pdir_1): Move it there from here.
14271 (try_thread_db_load_from_sdir): Update caller.
14272 (try_thread_db_load_from_dir): Move it there from here.
14274 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14276 * regformats/regdat.sh: Always rewrite the register file.
14278 2014-01-13 Pedro Alves <palves@redhat.com>
14280 * Makefile.in (CHECK_HEADERS): New variable.
14281 (check-headers:): New rule.
14283 2014-01-13 Tom Tromey <tromey@redhat.com>
14285 * cli/cli-setshow.c (do_set_command): Update.
14286 * defs.h (deprecated_set_hook): Remove.
14287 * top.c (deprecated_set_hook): Remove.
14289 2014-01-13 Pedro Alves <palves@redhat.com>
14291 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14292 the tracepoint if the PC is a pseudo-register.
14294 2014-01-13 Tom Tromey <tromey@redhat.com>
14296 * defs.h (XCALLOC): Remove.
14297 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14298 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14299 * dwarf2loc.c (allocate_piece_closure): Likewise.
14300 * elfread.c (elf_symfile_segments): Likewise.
14301 (elf_symfile_segments): Likewise.
14302 * gdbtypes.c (copy_type_recursive): Likewise.
14303 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14304 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14305 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14307 * mt-tdep.c (mt_gdbarch_init): Likewise.
14308 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14310 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14311 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14312 * registry.c (registry_alloc_data): Likewise.
14313 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14314 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14315 * serial.c (serial_fdopen_ops): Likewise.
14316 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14318 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14319 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14322 2014-01-13 Tom Tromey <tromey@redhat.com>
14324 * defs.h (XMALLOC): Remove.
14325 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14326 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14327 * cli-out.c (struct ui_out *): Likewise.
14328 * cli/cli-dump.c (add_dump_command): Likewise.
14329 (add_dump_command): Likewise.
14330 * complaints.c (get_complaints): Likewise.
14331 (find_complaint): Likewise.
14332 * dwarf2-frame.c (execute_cfa_program): Likewise.
14333 * dwarf2read.c (abbrev_table_read_table): Likewise.
14334 * gdbarch.sh: Likewise.
14335 * gdbarch.c: Rebuild.
14336 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14337 * interps.c (interp_new): Likewise.
14338 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14339 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14340 * mi/mi-console.c (mi_console_file_new): Likewise.
14341 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14342 * mi/mi-out.c (mi_out_new): Likewise.
14343 * mi/mi-parse.c (mi_parse): Likewise.
14344 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14345 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14346 * observer.c (xalloc_observer_list_node): Likewise.
14347 * regcache.c (regcache_xmalloc_1): Likewise.
14348 * reggroups.c (reggroup_new): Likewise.
14349 (_initialize_reggroup): Likewise.
14350 * registry.c (register_data_with_cleanup): Likewise.
14351 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14352 * ser-base.c (serial_ttystate): Likewise.
14353 * ser-mingw.c (make_pipe_state): Likewise.
14354 * ser-pipe.c (pipe_open): Likewise.
14355 * serial.c (serial_open): Likewise.
14356 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14357 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14358 (tui_alloc_win_info): Likewise.
14359 (tui_add_content_elements): Likewise.
14360 * tui/tui-file.c (tui_file_new): Likewise.
14361 * tui/tui-out.c (tui_out_new): Likewise.
14362 * ui-file.c (mem_file_new): Likewise.
14363 * ui-out.c (push_level): Likewise.
14364 (make_cleanup_ui_out_end): Likewise.
14365 (append_header_to_list): Likewise.
14366 (ui_out_new): Likewise.
14367 * user-regs.c (user_reg_add_builtin): Likewise.
14369 2014-01-13 Tom Tromey <tromey@redhat.com>
14371 * defs.h (XZALLOC): Remove.
14372 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14373 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14374 (get_ada_tasks_inferior_data): Likewise.
14375 * auto-load.c (get_auto_load_pspace_data): Likewise.
14376 * auxv.c (get_auxv_inferior_data): Likewise.
14377 * bfd-target.c (target_bfd_reopen): Likewise.
14378 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14379 (deprecated_insert_raw_breakpoint): Likewise.
14380 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14381 * corelow.c (core_open): Likewise.
14382 * darwin-nat.c (darwin_check_new_threads): Likewise.
14383 (darwin_attach_pid): Likewise.
14384 * dummy-frame.c (dummy_frame_push): Likewise.
14385 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14386 * dwarf2loc.c (allocate_piece_closure): Likewise.
14387 * elfread.c (elf_symfile_segments): Likewise.
14388 * eval.c (ptrmath_type_p): Likewise.
14389 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14390 * gdbtypes.c (alloc_type_arch): Likewise.
14391 (alloc_type_instance): Likewise.
14392 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14393 * inf-child.c (inf_child_can_use_agent): Likewise.
14394 * inflow.c (get_inflow_inferior_data): Likewise.
14395 * infrun.c (save_infcall_suspend_state): Likewise.
14396 * jit.c (jit_reader_load): Likewise.
14397 (get_jit_objfile_data): Likewise.
14398 (get_jit_program_space_data): Likewise.
14399 (jit_object_open_impl): Likewise.
14400 (jit_symtab_open_impl): Likewise.
14401 (jit_block_open_impl): Likewise.
14402 (jit_frame_sniffer): Likewise.
14403 * linux-fork.c (add_fork): Likewise.
14404 * maint.c (make_command_stats_cleanup): Likewise.
14405 * objfiles.c (get_objfile_pspace_data): Likewise.
14406 * opencl-lang.c (struct lval_closure): Likewise.
14407 * osdata.c (osdata_start_osdata): Likewise.
14408 * progspace.c (new_address_space): Likewise.
14409 (add_program_space): Likewise.
14410 * remote-sim.c (get_sim_inferior_data): Likewise.
14411 * sh-tdep.c (sh_gdbarch_init): Likewise.
14412 * skip.c (Ignore): Likewise.
14413 (skip_delete_command): Likewise.
14414 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14415 (library_list_start_library): Likewise.
14416 (solib_aix_current_sos): Likewise.
14417 * solib-darwin.c (get_darwin_info): Likewise.
14418 (darwin_current_sos): Likewise.
14419 * solib-dsbt.c (get_dsbt_info): Likewise.
14420 * solib-ia64-hpux.c (new_so_list): Likewise.
14421 (ia64_hpux_get_solib_linkage_addr): Likewise.
14422 * solib-spu.c (append_ocl_sos): Likewise.
14423 (spu_current_sos): Likewise.
14424 * solib-svr4.c (get_svr4_info): Likewise.
14425 (svr4_keep_data_in_core): Likewise.
14426 (library_list_start_library): Likewise.
14427 (svr4_default_sos): Likewise.
14428 (svr4_read_so_list): Likewise.
14429 * solib-target.c (library_list_start_library): Likewise.
14430 (solib_target_current_sos): Likewise.
14431 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14432 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14433 * symfile.c (default_symfile_segments): Likewise.
14434 * target-descriptions.c (tdesc_data_init): Likewise.
14435 (tdesc_create_reg): Likewise.
14436 (struct tdesc_type *): Likewise.
14437 (tdesc_create_vector): Likewise.
14438 (tdesc_set_struct_size): Likewise.
14439 (struct tdesc_type *): Likewise.
14440 (tdesc_free_feature): Likewise.
14441 (tdesc_create_feature): Likewise.
14442 * windows-nat.c (windows_add_thread): Likewise.
14443 (windows_make_so): Likewise.
14444 * xml-support.c (gdb_xml_body_text): Likewise.
14445 (gdb_xml_create_parser_and_cleanup): Likewise.
14446 (xml_process_xincludes): Likewise.
14447 * xml-syscall.c (allocate_syscalls_info): Likewise.
14448 (syscall_create_syscall_desc): Likewise.
14450 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14452 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14453 function, with code from i386_stap_parse_special_token.
14454 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14455 (i386_stap_parse_special_token): Move code to the two functions
14456 above; simplify it.
14458 2014-01-09 Pedro Alves <palves@redhat.com>
14459 Hui Zhu <hui@codesourcery.com>
14462 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14463 bp_err_string. Don't mark the location shlib_disabled if the
14464 error thrown wasn't a generic or memory error. Catch errors
14465 thrown while inserting breakpoints in overlayed code. Output
14466 error message of software breakpoints.
14467 * remote.c (remote_insert_breakpoint): If this breakpoint has
14468 target-side commands but this stub doesn't support Z0 packets,
14469 throw NOT_SUPPORTED_ERROR error.
14470 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14471 * target.h (target_insert_breakpoint): Extend comment.
14472 (target_insert_hw_breakpoint): Add comment.
14474 2014-01-08 Pedro Alves <palves@redhat.com>
14476 * remote.c (remote_add_thread): Add threads silently if starting
14478 (remote_notice_new_inferior): If in all-stop, and starting up,
14479 don't call notice_new_inferior.
14480 (get_current_thread): New function, factored out from ...
14481 (add_current_inferior_and_thread): ... this. Adjust.
14482 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14483 found any thread, then select the remote's current thread as GDB's
14484 current thread too.
14486 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14488 * NEWS: Create a new section for the next release branch.
14489 Rename the section of the current branch, now that it has
14492 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14494 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14495 * version.in: Bump version to 7.7.50.DATE-cvs.
14497 2014-01-08 Yao Qi <yao@codesourcery.com>
14499 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14500 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14501 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14503 2014-01-08 Yao Qi <yao@codesourcery.com>
14505 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14506 return value of bfd_get_filename to symbol_file_add_from_bfd.
14508 2014-01-08 Pierre Muller <muller@sourceware.org>
14511 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14512 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14513 to prim_record_mininal_symbol_and_info.
14514 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14515 in call to prim_record_minimal_symbol_and_info.
14516 (read_pe_exported_syms): Set index field of section_data.
14518 2014-01-07 Andrew Pinski <apinski@cavium.com>
14520 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14521 * features/aarch64.c: Regenerate.
14523 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14525 * target.c (return_null): Define.
14526 (update_current_target): Use it instead of return_zero for
14527 functions that return a pointer.
14529 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14531 * source.c (add_path): Fix check for duplicated paths in the previously
14534 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14536 * ada-lang.c: Remove duplicated include statements.
14537 * alphabsd-nat.c: Ditto.
14538 * amd64-darwin-tdep.c: Ditto.
14539 * amd64fbsd-nat.c: Ditto.
14540 * auto-load.c: Ditto.
14542 * breakpoint.c: Ditto.
14543 * dbxread.c: Ditto.
14544 * fork-child.c: Ditto.
14545 * gdb_usleep.c: Ditto.
14546 * i386-darwin-tdep.c: Ditto.
14547 * i386fbsd-nat.c: Ditto.
14549 * inferior.c: Ditto.
14550 * jv-lang.c: Ditto.
14551 * linux-nat.c: Ditto.
14552 * linux-tdep.c: Ditto.
14553 * m68kbsd-nat.c: Ditto.
14554 * m68klinux-nat.c: Ditto.
14555 * microblaze-tdep.c: Ditto.
14556 * mips-linux-tdep.c: Ditto.
14557 * mn10300-tdep.c: Ditto.
14558 * nto-tdep.c: Ditto.
14559 * opencl-lang.c: Ditto.
14561 * printcmd.c: Ditto.
14562 * regcache.c: Ditto.
14563 * remote-m32r-sdi.c: Ditto.
14565 * symfile.c: Ditto.
14567 * tilegx-linux-nat.c: Ditto.
14568 * tilegx-tdep.c: Ditto.
14569 * tracepoint.c: Ditto.
14571 * vaxbsd-nat.c: Ditto.
14572 * windows-nat.c: Ditto.
14573 * xtensa-tdep.c: Ditto.
14575 2014-01-07 Yao Qi <yao@codesourcery.com>
14577 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14579 2014-01-07 Yao Qi <yao@codesourcery.com>
14580 Joel Brobecker <brobecker@adacore.com>
14582 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14583 (pdc_write_regs): Likewise.
14584 (fetch_regs_kernel_thread): Likewise.
14585 (store_regs_kernel_thread): Likewise.
14587 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14589 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14590 tagged type objects to their actual type.
14592 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14594 * ada-valprint.c (print_field_values): Add "language" parameter.
14595 Update calls to print_field_values and print_variant_part.
14596 Pass new parameter "language" in call to val_print instead
14597 of "current_language". Replace call to ada_val_print by call
14599 (print_variant_part): Add "language" parameter.
14600 (ada_val_print_struct_union): Update call to print_field_values.
14602 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14604 * ada-valprint.c (ui_memcpy): Delete.
14605 (ada_print_floating): Update documentation. Add empty line
14606 between between function documentation and implementation.
14607 Delete variable "buffer". Use ui_file_xstrdup in place of
14608 ui_file_put. Minor adjustments following this change.
14610 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14612 * ada-valprint.c (ada_val_print_string): New function,
14613 extracted from ada_val_print_array.
14614 (ada_val_print_array): Replace extracted code by call
14615 to ada_val_print_string followed by a return. Move
14616 "else" branch to the function's top block.
14618 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14620 * ada-valprint.c (ada_val_print_array): Move implementation
14621 down. Rename parameter "offset" and "val" into "offset_aligned"
14622 and "original_value" respectively. Add parameter "offset".
14624 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14626 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14627 re-organizing the code. Change the "???" message printed
14628 when target type is a TYPE_CODE_UNDEF into
14629 "<ref to undefined type>".
14631 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14633 * ada-valprint.c (print_record): Delete, implementation inlined...
14634 (ada_val_print_struct_union): ... here. Remove call to
14635 ada_check_typedef in inlined implementation.
14637 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14639 * ada-valprint.c (ada_val_print_gnat_array): New function,
14640 extracted from ada_val_print_1;
14641 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14642 (ada_val_print_flt, ada_val_print_struct_union)
14643 (ada_val_print_ref): Likewise.
14644 (ada_val_print_1): Delete variables i and elttype.
14645 Replace extracted-out code by call to corresponding
14648 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14650 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14652 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14654 * ada-valprint.c (ada_val_print_1): Replace calls to
14655 ada_val_print_1 by calls to val_print.
14657 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14659 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14660 Update calls to self accordingly. Replace calls to c_val_print
14661 by calls to val_print.
14663 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14665 * ada-valprint.c (print_record): Delete declaration.
14666 (adjust_type_signedness, ada_val_print_1): Likewise.
14667 (ada_val_print): Move function implementation down.
14668 (print_variant_part, print_field_values, print_record):
14669 Move function implementation up.
14671 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14673 * python/py-type.c (typy_get_name): New function.
14674 (type_object_getset): Add entry for attribute "name".
14675 * NEWS: Add entry mentioning this new attribute.
14677 2014-01-07 Yao Qi <yao@codesourcery.com>
14679 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14682 2014-01-07 Yao Qi <yao@codesourcery.com>
14684 * gnu-nat.c (info_port_rights): Add qualifier const to
14687 2014-01-07 Yao Qi <yao@codesourcery.com>
14689 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14691 2014-01-07 Yao Qi <yao@codesourcery.com>
14693 * gnu-nat.c (make_inf) Update declaration.
14694 (make_inf): Make it static.
14695 (inf_set_traced): Likewise.
14696 (inf_port_to_thread, inf_task_died_status): Likewise.
14698 2014-01-07 Yao Qi <yao@codesourcery.com>
14700 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14702 2014-01-07 Yao Qi <yao@codesourcery.com>
14704 * gnu-nat.c (_initialize_gnu_nat): Declare.
14706 2014-01-07 Yao Qi <yao@codesourcery.com>
14708 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14710 (struct gdbarch_info) <byte_order>: Change type to
14712 <byte_order_for_code>: Likewise.
14713 * gdbarch.c, gdbarch.h: Regenerated.
14715 2014-01-06 Sasha Smundak <asmundak@google.com>
14717 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14719 2014-01-06 Tom Tromey <tromey@redhat.com>
14721 * doublest.c (convert_doublest_to_floatformat): Use const, not
14723 * somread.c (som_symtab_read): Likewise.
14725 2014-01-07 Hui Zhu <hui@codesourcery.com>
14727 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14728 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14729 (gdb_bfd_fopen): Ditto.
14730 (gdb_bfd_openr): Ditto.
14731 (gdb_bfd_openw): Ditto.
14732 (gdb_bfd_openr_iovec): Ditto.
14733 (gdb_bfd_fdopenr): Ditto.
14734 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14735 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14737 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14739 * symfile-mem.c (symbol_file_add_from_memory): Removed
14740 gdb_bfd_stash_filename.
14742 2014-01-03 Doug Evans <dje@google.com>
14744 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14747 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14749 Update year range in copyright notice of all files.
14751 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14753 * top.c (print_gdb_version): Set copyright year to 2014.
14755 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14757 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14759 For older changes see ChangeLog-2013.
14765 version-control: never