Forgotten ChangeLog entry for previous commit.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-11-06 Doug Evans <xdje42@gmail.com>
2
3 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
4 TYPE_CODE_STRUCT.
5
6 2014-11-06 Doug Evans <xdje42@gmail.com>
7
8 * objfiles.c (get_objfile_arch): Constify.
9 * objfiles.h (get_objfile_arch): Update prototype.
10 * solib.c (solib_global_lookup): Fetch arch from objfile,
11 not target_gdbarch.
12
13 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
14
15 * nios2-tdep.c (wild_insn): Delete.
16 (profiler_insn, irqentry_insn): Delete.
17 (nios2_match_sequence): Delete.
18 (nios2_analyze_prologue): Update comments. Remove matching
19 of obsolete profiler_insn and irqentry_insn sequences.
20
21 2014-11-05 Alan Modra <amodra@gmail.com>
22
23 * charset.c (convert_between_encodings): Shrink obstack using
24 obstack_blank_fast.
25 * minsyms.c (install_minimal_symbols): Likewise.
26 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
27 to char* before doing pointer arithmetic.
28
29 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
30
31 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
32
33 2014-11-04 Pedro Alves <palves@redhat.com>
34
35 * breakpoint.c (breakpoint_thread_match): Delete function.
36 * breakpoint.h (breakpoint_thread_match): Delete declaration.
37
38 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
39
40 PR c++/17494
41 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
42 the method args also under EVAL_SKIP when evaluating method
43 calls under EVAL_SKIP.
44
45 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
46
47 * dwarf2loc.c (read_pieced_value): Do big endian
48 processing only if gdb_regnum is not -1.
49 (write_pieced_value): Ditto.
50
51 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
52
53 * arm-linux-tdep.c (arm_linux_init_abi): Use
54 info.byte_order_for_code to choose endianity of breakpoint
55 instructions snippets.
56
57 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
58
59 * arm-tdep.c (extract_arm_insn): Use
60 gdbarch_byte_order_for_code to read arm instruction.
61
62 2014-11-02 Doug Evans <xdje42@gmail.com>
63
64 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
65
66 2014-11-02 Doug Evans <xdje42@gmail.com>
67
68 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
69 main_subfile before returning.
70
71 2014-10-31 Doug Evans <xdje42@gmail.com>
72
73 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
74 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
75
76 2014-10-31 Doug Evans <xdje42@gmail.com>
77
78 * valops.c (value_cast_pointers): Fix whitespace.
79 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
80 Ditto.
81
82 2014-10-30 Doug Evans <dje@google.com>
83
84 * NEWS: Mention ability add attributes to gdb.Objfile and
85 gdb.Progspace objects.
86 * python/py-objfile.c (objfile_object): New member dict.
87 (objfpy_dealloc): Py_XDECREF dict.
88 (objfpy_initialize): Initialize dict.
89 (objfile_getset): Add __dict__.
90 (objfile_object_type): Set tp_dictoffset member.
91 * python/py-progspace.c (progspace_object): New member dict.
92 (pspy_dealloc): Py_XDECREF dict.
93 (pspy_initialize): Initialize dict.
94 (pspace_getset): Add __dict__.
95 (pspace_object_type): Set tp_dictoffset member.
96
97 2014-10-30 Yao Qi <yao@codesourcery.com>
98
99 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
100 replace '\\' with '\\\\'.
101
102 2014-10-29 Joel Brobecker <brobecker@adacore.com>
103
104 GDB 7.8.1 released.
105
106 2014-10-29 Pedro Alves <palves@redhat.com>
107
108 PR gdb/17408
109 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
110 instead of assuming a thread with a stepping range is always
111 stepping.
112
113 2014-10-29 Pedro Alves <palves@redhat.com>
114
115 PR python/17372
116 * event-top.c (change_line_handler): Call
117 gdb_rl_callback_handler_remove instead of
118 rl_callback_handler_remove.
119 (callback_handler_installed): New global.
120 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
121 (gdb_rl_callback_handler_reinstall): New functions.
122 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
123 gdb_rl_callback_handler_install instead of
124 rl_callback_handler_remove and rl_callback_handler_install.
125 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
126 instead of rl_callback_handler_remove.
127 * event-top.h (gdb_rl_callback_handler_remove)
128 (gdb_rl_callback_handler_install)
129 (gdb_rl_callback_handler_reinstall): New declarations.
130 * infrun.c (reinstall_readline_callback_handler_cleanup): New
131 cleanup function.
132 (fetch_inferior_event): Install it.
133 * top.c (gdb_readline_wrapper_line) Call
134 gdb_rl_callback_handler_remove instead of
135 rl_callback_handler_remove.
136 (gdb_readline_wrapper_cleanup): Don't call
137 rl_callback_handler_install.
138
139 2014-10-29 Pedro Alves <palves@redhat.com>
140
141 * event-top.c (command_line_handler): Clear the first byte of
142 linebuffer, when it is first allocated.
143
144 2014-10-29 Pedro Alves <palves@redhat.com>
145
146 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
147 TRY_CATCH.
148
149 2014-10-29 Pedro Alves <palves@redhat.com>
150
151 PR tui/16138
152 PR tui/17519
153 * tui/tui-interp.c (tui_is_toplevel): Delete global.
154 (tui_allowed_p): Delete function.
155 * tui/tui.c: Include "interps.h".
156 (tui_enable): Don't use tui_allowed_p. Error out here with
157 detailed error messages if the TUI is the top level interpreter,
158 or if output is not a terminal. Use newterm instead of initscr,
159 and error out if initializing the terminal fails. Also error out if
160 the terminal doesn't support cursor addressing.
161 * tui/tui.h (tui_allowed_p): Delete declaration.
162
163 2014-10-29 Joel Brobecker <brobecker@adacore.com>
164
165 * arm-tdep.c (arm_skip_stack_protector): Return early if
166 address loaded by first "ldr" instruction does not have
167 a corresponding minimal symbol. Update comment.
168
169 2014-10-29 Yao Qi <yao@codesourcery.com>
170
171 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
172 loaded address correctly of ldr instruction.
173
174 2014-10-28 Pedro Alves <palves@redhat.com>
175
176 PR gdb/12623
177 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
178 field.
179 * infrun.c (resume) <stepping breakpoint instruction>: Set the
180 thread's stepped_breakpoint field. Skip if reverse debugging.
181 Add comment.
182 (init_thread_stepping_state, handle_signal_stop): Clear the
183 thread's stepped_breakpoint field.
184
185 2014-10-27 Pedro Alves <palves@redhat.com>
186
187 * remote.c (remote_thread_alive): New, factored out from ...
188 (remote_thread_alive): ... this.
189 (remote_update_thread_list): Bail out before deleting threads if
190 the target returned an empty list, and, the current thread has a
191 magic/fake ptid.
192
193 2014-10-27 Pedro Alves <palves@redhat.com>
194
195 * infrun.c (handle_signal_stop): Also skip handlers when a random
196 signal arrives while handling a "stepi" or a "nexti". Set the
197 thread's 'step_after_step_resume_breakpoint' flag.
198
199 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
200
201 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
202 (arm_record_ld_st_imm_offset): Reimplement to cover all
203 load/store cases for ARM opcode 010.
204 (arm_record_ld_st_multiple): Reimplement to cover all
205 load/store cases for ARM opcode 100.
206
207 2014-10-26 Doug Evans <xdje42@gmail.com>
208
209 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
210
211 2014-10-26 Doug Evans <xdje42@gmail.com>
212
213 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
214 parameter "kind" to "block_index".
215 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
216 "block_index".
217 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
218
219 2014-10-26 Doug Evans <xdje42@gmail.com>
220
221 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
222
223 2014-10-26 Doug Evans <xdje42@gmail.com>
224
225 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
226 obstack_alloc.
227
228 2014-10-26 Doug Evans <xdje42@gmail.com>
229
230 * parser-defs.h (block_found): Move decl from here ...
231 * symtab.h (block_found): ... to here.
232
233 2014-10-26 Doug Evans <xdje42@gmail.com>
234
235 * symtab.h (struct field_of_this_result): Fix typo in comment.
236 (lookup_symbol_in_language): Move function comment here.
237 (lookup_symbol): Improve function comment.
238 (basic_lookup_symbol_nonlocal): Ditto.
239 (lookup_symbol_static, lookup_symbol_global): Ditto.
240 (lookup_symbol_aux_block): Ditto.
241 (lookup_language_this): Add function comment.
242 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
243 function comment.
244 (lookup_block_symbol): Improve function comment.
245 (lookup_struct): Fix capitalization in function comment.
246 (lookup_transparent_type): Add function comment.
247 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
248 Improve function comment.
249 (lookup_objfile_from_block): Add function comment.
250 * symtab.c (lookup_symbol_in_language): Update function comment.
251 (lookup_symbol, lookup_language_this): Ditto.
252 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
253 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
254 (basic_lookup_symbol_nonlocal): Ditto.
255 (lookup_symbol_static, lookup_symbol_global): Ditto.
256 (lookup_transparent_type, lookup_block_symbol): Ditto.
257
258 2014-10-25 Doug Evans <xdje42@gmail.com>
259
260 * symtab.c (types_info): Delete forward decl.
261 (functions_info, variables_info, sources_info): Ditto.
262 (_initialize_symtab): Rewrite forward decl to use
263 initialize_file_ftype.
264
265 2014-10-25 Doug Evans <xdje42@gmail.com>
266
267 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
268
269 2014-10-25 Doug Evans <xdje42@gmail.com>
270
271 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
272 of local var child_die.
273
274 2014-10-24 Don Breazeal <donb@codesourcery.com>
275
276 * infrun.c (follow_fork_inferior): Update fork message printing
277 to use target_terminal_ours_for_output instead of
278 target_terminal_ours, to use _() for all format strings, to print
279 "vfork" instead of "fork" for vforks, and to add a detach message.
280 (handle_vfork_child_exec_or_exit): Update message printing to use
281 target_terminal_ours_for_output instead of target_terminal_ours, to
282 use _() for all format strings, and to fix some formatting.
283
284 2014-10-24 Pedro Alves <palves@redhat.com>
285
286 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
287 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
288 * config/vax/vax.mh: Delete.
289 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
290 obsolete configurations section.
291 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
292 * vax-nat.c: Delete file.
293
294 2014-10-24 Pedro Alves <palves@redhat.com>
295
296 * NEWS (Removed targets): Add OS/arch column.
297
298 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
299
300 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
301 on the arg type of a constructor only if it is of reference type.
302
303 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
304
305 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
306 accessors and constants from nios2 opcodes update.
307 (nios2_get_next_pc): Likewise.
308
309 2014-10-19 Doug Evans <xdje42@gmail.com>
310
311 * gdbthread.h (set_running): Fix comment.
312 (set_executing, finish_thread_state): Fix comment.
313
314 2014-10-18 Doug Evans <xdje42@gmail.com>
315
316 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
317
318 2014-10-17 Doug Evans <dje@google.com>
319
320 * NEWS: Mention new event gdb.clear_objfiles.
321 * python/py-event.h (emit_clear_objfiles_event): Clear
322 * python/py-events.h (events_object): New member clear_objfiles.
323 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
324 event.
325 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
326 emit clear_objfiles event.
327 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
328 function.
329 (emit_clear_objfiles_event): New function.
330 (clear_objfiles): New event.
331 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
332 Declare.
333 * python/python.c (_initialize_python): Call
334 gdbpy_initialize_clear_objfiles_event.
335
336 2014-10-17 Doug Evans <dje@google.com>
337
338 * NEWS: Mention new gdb.Objfile.progspace attribute.
339 * python/py-objfile.c (objfpy_get_progspace): New function.
340 (objfile_getset): New entry for "progspace".
341
342 2014-10-17 Pedro Alves <palves@redhat.com>
343
344 PR gdb/17471
345 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
346 returns a copy of the input.
347 (run_command_1, continue_command, step_1, jump_command)
348 (signal_command, until_command, advance_command, finish_command)
349 (attach_command): Adjust and install a cleanup to free the
350 stripped args.
351
352 2014-10-17 Pedro Alves <palves@redhat.com>
353
354 PR gdb/17300
355 * infcmd.c (continue_1): If continuing all threads in the
356 foreground, make sure the inferior's terminal settings are put in
357 effect.
358
359 2014-10-17 Pedro Alves <palves@redhat.com>
360
361 PR gdb/17472
362 * annotate.c (annotate_breakpoints_invalid): Use
363 target_terminal_our_for_output instead of target_terminal_ours.
364 Give back the terminal to the target.
365 (annotate_frames_invalid): Likewise.
366
367 2014-10-17 Pedro Alves <palves@redhat.com>
368
369 * target.c (enum terminal_state): New enum.
370 (terminal_state): New global.
371 (target_terminal_init): New function.
372 (target_terminal_inferior): Skip if inferior already owns the
373 terminal.
374 (target_terminal_ours, target_terminal_ours_for_output): New
375 functions.
376 * target.h (target_terminal_init): Convert to function prototype.
377 (target_terminal_ours_for_output): Convert to function prototype
378 and tweak comment.
379 (target_terminal_ours): Convert to function prototype and tweak
380 comment.
381 * windows-nat.c (do_initial_windows_stuff): Call
382 target_terminal_init instead of child_terminal_init_with_pgrp.
383
384 2014-10-17 Pedro Alves <palves@redhat.com>
385
386 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
387 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
388 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
389 solib-osf.c.
390 * NEWS: Mention that support for alpha*-*-osf* has been removed.
391 * ada-lang.h [__alpha__ && __osf__]
392 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
393 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
394 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
395 GDB_OSABI_OSF1.
396 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
397 files.
398 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
399 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
400 * configure: Regenerate.
401 * configure.ac: Remove references to osf.
402 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
403 section. Remove all other references to osf.
404 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
405 Remove all other references to osf.
406 * dec-thread.c: Delete file.
407 * defs.h (GDB_OSABI_OSF1): Delete.
408 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
409 defined.
410 * osabi.c (gdb_osabi_names): Delete "OSF/1".
411 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
412 Delete code.
413 (unconditionally_kill_inferior)
414 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
415 * solib-osf.c: Delete file.
416
417 2014-10-17 Pedro Alves <palves@redhat.com>
418
419 * remote.c (clear_threads_listing_context): Move higher up, out of
420 the HAVE_LIBEXPAT guard.
421
422 2014-10-16 Tristan Gingold <gingold@adacore.com>
423
424 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
425 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
426 on amd64.
427
428 2014-10-15 Pedro Alves <palves@redhat.com>
429
430 * dec-thread.c (dec_thread_count_gdb_threads)
431 (dec_thread_add_gdb_thread): Delete.
432 (dec_thread_update_thread_list): Delete.
433 (dec_thread_find_new_threads): Rename to ...
434 (dec_thread_update_thread_list): ... this. Delete GDB-size
435 threads that are no longer found in dec_thread_list.
436 (resync_thread_list): Delete.
437 (dec_thread_wait): Call dec_thread_update_thread_list instead of
438 resync_thread_list.
439
440 2014-10-15 Pedro Alves <palves@redhat.com>
441
442 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
443 * remote.c (remote_update_thread_list): Skip calling prune_threads
444 if any thread listing method is supported, and instead walk over
445 the set of remote threads listed, deleting those that are not
446 found in GDB's thread list.
447
448 2014-10-15 Pedro Alves <palves@redhat.com>
449
450 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
451 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
452 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
453 (bsd_uthread_target): Adjust.
454 * corelow.c (core_open): Adjust.
455 * dec-thread.c (dec_thread_find_new_threads): Update comment.
456 (dec_thread_update_thread_list): New function.
457 (init_dec_thread_ops): Adjust.
458 * gdbthread.h (prune_threads): New declaration.
459 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
460 (thread_db_update_thread_list): ... this. Call prune_threads.
461 (init_thread_db_ops): Adjust.
462 * nto-procfs.c (procfs_find_new_threads): Rename to ...
463 (procfs_update_thread_list): ... this. Call prune_threads.
464 (procfs_attach, procfs_create_inferior, init_procfs_targets):
465 Adjust.
466 * obsd-nat.c (obsd_find_new_threads): Rename to ...
467 (obsd_update_thread_list): ... this. Call prune_threads.
468 (obsd_add_target): Adjust.
469 * procfs.c (procfs_target): Adjust.
470 (procfs_notice_thread): Update comment.
471 (procfs_find_new_threads): Rename to ...
472 (procfs_update_thread_list): ... this. Call prune_threads.
473 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
474 comment.
475 (ravenscar_wait): Adjust.
476 (ravenscar_find_new_threads): Rename to ...
477 (ravenscar_update_thread_list): ... this. Call prune_threads.
478 (init_ravenscar_thread_ops): Adjust.
479 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
480 (record_btrace_update_thread_list): ... this. Adjust comment.
481 (init_record_btrace_ops): Adjust.
482 * remote.c (remote_threads_info): Rename to ...
483 (remote_update_thread_list): ... this. Call prune_threads.
484 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
485 Adjust.
486 * sol-thread.c (check_for_thread_db): Adjust.
487 (sol_find_new_threads_callback): Rename to ...
488 (sol_update_thread_list_callback): ... this.
489 (sol_find_new_threads): Rename to ...
490 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
491 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
492 * target-delegates.c: Regenerate.
493 * target.c (target_find_new_threads): Rename to ...
494 (target_update_thread_list): ... this.
495 * target.h (struct target_ops): Rename to_find_new_threads field
496 to to_update_thread_list.
497 (target_find_new_threads): Rename to ...
498 (target_update_thread_list): ... this.
499 * thread.c (prune_threads): Make extern.
500 (update_thread_list): Adjust.
501
502 2014-10-15 Pedro Alves <palves@redhat.com>
503
504 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
505 Add describing comment. Return -1 if the qL packet is not
506 supported.
507 (struct thread_item, thread_item_t): Move higher up in
508 the file. Add comments.
509 (struct threads_parsing_context): Move higher up in
510 the file, add comments, and remote to ...
511 (struct threads_listing_context): ... this.
512 (remote_newthread_step): Don't add the thread to GDB's thread
513 database here. Instead push it to the thread_listing_context
514 list.
515 (remote_find_new_threads): Rename to ...
516 (remote_get_threads_with_ql): ... this. Add target_ops and
517 targets_listing_context parameters. Pass down context.
518 (start_thread): Adjust.
519 (clear_threads_parsing_context): Rename to ...
520 (clear_threads_listing_context): ... this.
521 (remote_get_threads_with_qxfer): New, with parts salvaged from old
522 remote_threads_info.
523 (remote_get_threads_with_qthreadinfo): Ditto.
524 (remote_threads_info): Reimplement.
525
526 2014-10-15 Pedro Alves <palves@redhat.com>
527
528 * infrun.c (resume): Don't force displaced-stepping for all
529 single-steps on software single-stepping archs.
530
531 2014-10-15 Pedro Alves <palves@redhat.com>
532
533 * breakpoint.c (single_step_breakpoints): Delete global.
534 (insert_single_step_breakpoint): Adjust to store the breakpoint
535 pointer in the current thread.
536 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
537 (cancel_single_step_breakpoints): Delete functions.
538 (breakpoint_has_location_inserted_here): Make extern.
539 (single_step_breakpoint_inserted_here_p): Adjust to walk the
540 breakpoint list.
541 * breakpoint.h (breakpoint_has_location_inserted_here): New
542 declaration.
543 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
544 (cancel_single_step_breakpoints): Remove declarations.
545 * gdbthread.h (struct thread_control_state)
546 <single_step_breakpoints>: New field.
547 (delete_single_step_breakpoints)
548 (thread_has_single_step_breakpoints_set)
549 (thread_has_single_step_breakpoint_here): New declarations.
550 * infrun.c (follow_exec): Also clear the single-step breakpoints.
551 (singlestep_breakpoints_inserted_p, singlestep_ptid)
552 (singlestep_pc): Delete globals.
553 (infrun_thread_ptid_changed): Remove references to removed
554 globals.
555 (resume_cleanups): Delete the current thread's single-step
556 breakpoints.
557 (maybe_software_singlestep): Remove references to removed globals.
558 (resume): Adjust to use thread_has_single_step_breakpoints_set and
559 delete_single_step_breakpoints.
560 (init_wait_for_inferior): Remove references to removed globals.
561 (delete_thread_infrun_breakpoints): Delete the thread's
562 single-step breakpoints too.
563 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
564 single-step breakpoints here.
565 (delete_stopped_threads_single_step_breakpoints): New function.
566 (adjust_pc_after_break): Adjust to use
567 thread_has_single_step_breakpoints_set.
568 (handle_inferior_event): Remove references to removed globals.
569 Use delete_stopped_threads_single_step_breakpoints.
570 (handle_signal_stop): Adjust to per-thread single-step
571 breakpoints. Swap test order to do cheaper tests first.
572 (switch_back_to_stepped_thread): Extend debug output. Remove
573 references to removed globals.
574 * record-full.c (record_full_wait_1): Adjust to per-thread
575 single-step breakpoints.
576 * thread.c (delete_single_step_breakpoints)
577 (thread_has_single_step_breakpoints_set)
578 (thread_has_single_step_breakpoint_here): New functions.
579 (clear_thread_inferior_resources): Also delete the thread's
580 single-step breakpoints.
581
582 2014-10-15 Pedro Alves <palves@redhat.com>
583
584 * thread.c (delete_thread_breakpoint): New function.
585 (delete_step_resume_breakpoint)
586 (delete_exception_resume_breakpoint): Use it.
587 (delete_at_next_stop): New function.
588 (clear_thread_inferior_resources): Use delete_at_next_stop.
589
590 2014-10-15 Pedro Alves <palves@redhat.com>
591
592 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
593 (breakpoint_inserted_here_p): ... here. Remove special case for
594 software single-step breakpoints.
595 (find_non_raw_software_breakpoint_inserted_here): Inline ...
596 (software_breakpoint_inserted_here_p): ... here. Remove special
597 case for software single-step breakpoints.
598 (bp_target_info_copy_insertion_state)
599 (deprecated_insert_raw_breakpoint)
600 (deprecated_remove_raw_breakpoint): Delete functions.
601 * breakpoint.h (deprecated_insert_raw_breakpoint)
602 (deprecated_remove_raw_breakpoint): Remove declarations.
603
604 2014-10-15 Pedro Alves <palves@redhat.com>
605
606 PR breakpoints/9649
607 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
608 Delete array globals.
609 (single_step_breakpoints): New global.
610 (breakpoint_xfer_memory): Remove special handling for single-step
611 breakpoints.
612 (update_breakpoints_after_exec): Delete bp_single_step
613 breakpoints.
614 (detach_breakpoints): Remove special handling for single-step
615 breakpoints.
616 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
617 (bpstat_stop_status): Add comment.
618 (bpstat_what, bptype_string, print_one_breakpoint_location)
619 (adjust_breakpoint_address, init_bp_location): Handle
620 bp_single_step.
621 (new_single_step_breakpoint): New function.
622 (set_momentary_breakpoint, bkpt_remove_location): Remove special
623 handling for single-step breakpoints.
624 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
625 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
626 Rewrite.
627 (detach_single_step_breakpoints, find_single_step_breakpoint):
628 Delete functions.
629 (breakpoint_has_location_inserted_here): New function.
630 (single_step_breakpoint_inserted_here_p): Rewrite.
631 * breakpoint.h: Remove FIXME.
632 (enum bptype) <bp_single_step>: New enum value.
633 (insert_single_step_breakpoint): Update comment.
634 * infrun.c (resume_cleanups)
635 (delete_step_thread_step_resume_breakpoint): Remove single-step
636 breakpoints.
637 (fetch_inferior_event): Install a cleanup that removes infrun
638 breakpoints.
639 (switch_back_to_stepped_thread) <expect thread advanced also>:
640 Clear step-over info.
641
642 2014-10-15 Pedro Alves <palves@redhat.com>
643
644 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
645 (delete_thread_infrun_breakpoints): New function, with parts
646 salvaged from delete_step_resume_breakpoint_callback.
647 (delete_step_thread_step_resume_breakpoint): Delete.
648 (for_each_just_stopped_thread_callback_func): New typedef.
649 (for_each_just_stopped_thread): New function.
650 (delete_just_stopped_threads_infrun_breakpoints): New function.
651 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
652 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
653 ... this. Adjust.
654 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
655
656 2014-10-15 Pedro Alves <palves@redhat.com>
657
658 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
659 trying to step past a non-steppable watchpoint.
660 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
661 field.
662 * infrun.c (struct step_over_info): Add new field
663 'nonsteppable_watchpoint_p' and adjust comments.
664 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
665 Adjust.
666 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
667 (stepping_past_nonsteppable_watchpoint): New function.
668 (step_over_info_valid_p): Also return true if stepping past a
669 nonsteppable watchpoint.
670 (proceed): Adjust call to set_step_over_info. Remove reference to
671 init_infwait_state.
672 (init_wait_for_inferior): Remove reference to init_infwait_state.
673 (waiton_ptid): Delete global.
674 (struct execution_control_state)
675 <stepped_after_stopped_by_watchpoint>: Delete field.
676 (wait_for_inferior, fetch_inferior_event): Always pass
677 minus_one_ptid to target_wait.
678 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
679 field.
680 (init_infwait_state): Delete function.
681 (handle_inferior_event): Remove infwait_state handling.
682 (handle_signal_stop) <watchpoints handling>: Adjust after
683 stepped_after_stopped_by_watchpoint removal. Don't remove
684 breakpoints here nor set infwait_state. Set the thread's
685 stepping_over_watchpoint flag, and call keep_going instead.
686 (keep_going): Handle stepping_over_watchpoint. Adjust
687 set_step_over_info calls.
688 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
689 function.
690
691 2014-10-15 Pedro Alves <palves@redhat.com>
692
693 * infrun.c (step_over_info_valid_p): New function.
694 (resume): Use step_over_info_valid_p instead of checking the
695 threads's trap_expected flag.
696
697 2014-10-15 Doug Evans <dje@google.com>
698 Walfred Tedeschi <walfred.tedeschi@intel.com>
699
700 PR python/17364
701 * python/lib/gdb/__init__.py (packages): Add "printer".
702 * python/lib/gdb/command/bound_registers.py: Moved to ...
703 * python/lib/gdb/printer/bound_registers.py: ... here.
704 Add printer to global set of builtin printers. Rename printer from
705 "bound" to "mpx_bound128".
706 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
707 registered as global "builtin" printer.
708 (add_builtin_pretty_printer): New function.
709 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
710 gdb/printer/__init__.py.
711
712 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
713
714 * Makefile.in (SFILES): Remove d-support.c.
715 (COMMON_OBS): Remove d-support.o.
716 * d-lang.h (d_parse_symbol): Remove declaration.
717 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
718 * d-support.c: Remove file.
719
720 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
721
722 * gdb/infrun.c (process_event_stop_test): Apply
723 gdbarch_addr_bits_remove to longjmp resume address.
724
725 2014-10-15 Pedro Alves <palves@redhat.com>
726
727 * regformats/microblaze.dat: Delete file.
728
729 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
730
731 * features/Makefile (microblaze-expedite): Replace pc with rpc.
732 * regformats/microblaze-with-stack-protect.dat: Regenerate.
733
734 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
735
736 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
737 as non-trivial.
738
739 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
740
741 PR c++/13403
742 PR c++/15154
743 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
744 with qualified args.
745
746 2014-10-14 Joel Brobecker <brobecker@adacore.com>
747
748 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
749 of the case where the second operand is a pointer.
750 <BINOP_SUB>: Likewise.
751
752 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
753
754 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
755 only if it is not NULL.
756 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
757 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
758 (struct probe_ops) <clear_semaphore>: Likewise.
759 * tracepoint.c (start_tracing): Call set_semaphore only if it is
760 not NULL.
761 (stop_tracing): Likewise, for clear_semaphore.
762
763 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
764
765 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
766 using language_c, instead of current_language.
767
768 2014-10-13 Doug Evans <dje@google.com>
769
770 * python/py-objfile.c (objfpy_initialize): New function.
771 (objfpy_new, objfile_to_objfile_object): Call it.
772 * python/py-progspace.c (pspy_initialize): New function.
773 (pspy_new, pspace_to_pspace_object): Call it.
774
775 2014-10-13 Miroslav Franc <mfranc@redhat.com>
776 Jan Kratochvil <jan.kratochvil@redhat.com>
777
778 Fix "save breakpoints" for "catch" command.
779 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
780 newline.
781
782 2014-10-12 Miroslav Franc <mfranc@redhat.com>
783
784 Fix "save breakpoints" for "disable $bpnum" command.
785 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
786
787 2014-10-10 Pedro Alves <palves@redhat.com>
788
789 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
790 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
791 (HFILES_NO_SRCDIR): Remove solib-irix.h.
792 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
793 and been removed.
794 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
795 * configure.ac: Remove references to IRIX.
796 * configure.host: Add *-*-irix* to the obsolete hosts section.
797 Remove all other references to irix.
798 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
799 Delete files.
800
801 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
802
803 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
804 isn't valid, release the tdesc arch data and return NULL.
805
806 2014-10-10 Pedro Alves <palves@redhat.com>
807
808 * linux-tdep.c: Include observer.h.
809 (linux_inferior_data): New global.
810 (struct linux_info): New structure.
811 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
812 (get_linux_inferior_data): New functions.
813 (linux_vsyscall_range): Rename to ...
814 (linux_vsyscall_range_raw): ... this.
815 (linux_vsyscall_range): New function; handles caching.
816 (_initialize_linux_tdep): Register linux_inferior_data. Install
817 inferior_exit and inferior_appeared observers.
818
819 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
820 Pedro Alves <palves@redhat.com>
821
822 PR symtab/14466
823 * solib-svr4.c (svr4_read_so_list): Rename to ...
824 (svr4_current_sos_1): ... this and change the function comment.
825 (svr4_current_sos): New function.
826
827 2014-10-10 Pedro Alves <palves@redhat.com>
828
829 * arch-utils.c (default_vsyscall_range): New function.
830 * arch-utils.h (default_vsyscall_range): New declaration.
831 * gdbarch.sh (vsyscall_range): New hook.
832 * gdbarch.h, gdbarch.c: Regenerate.
833 * linux-tdep.c (linux_vsyscall_range): New function.
834 (linux_init_abi): Install linux_vsyscall_range as
835 vsyscall_range gdbarch hook.
836 * memrange.c (address_in_mem_range): New function.
837 * memrange.h (address_in_mem_range): New declaration.
838 * symfile-mem.c (find_vdso_size): Delete function.
839 (add_vsyscall_page): Use gdbarch_vsyscall_range.
840
841 2014-10-10 Pedro Alves <palves@redhat.com>
842
843 * infrun.c (normal_stop): Fix typo in comment.
844
845 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
846
847 PR tdep/9390
848 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
849 typo when using logical AND to determine instruction type.
850
851 2014-10-09 Yao Qi <yao@codesourcery.com>
852
853 * infrun.c (handle_signal_stop): Remove local variable
854 'printed'.
855
856 2014-10-08 Stan Shebs <stan@codesourcery.com>
857
858 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
859
860 2014-10-08 Gary Benson <gbenson@redhat.com>
861
862 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
863
864 2014-10-08 Gary Benson <gbenson@redhat.com>
865
866 * common/common-defs.h: Include common-exceptions.h.
867 * exceptions.h: Do not include common-exceptions.h.
868
869 2014-10-08 Gary Benson <gbenson@redhat.com>
870
871 * common/common-defs.h: Include cleanups.h.
872 * common/common-exceptions.c: Do not include cleanups.h.
873 * utils.h: Likewise.
874
875 2014-10-08 Gary Benson <gbenson@redhat.com>
876
877 * ada-lang.c: Do not include exceptions.h.
878 * ada-valprint.c: Likewise.
879 * amd64-tdep.c: Likewise.
880 * auto-load.c: Likewise.
881 * block.c: Likewise.
882 * break-catch-throw.c: Likewise.
883 * breakpoint.c: Likewise.
884 * btrace.c: Likewise.
885 * c-lang.c: Likewise.
886 * cli/cli-cmds.c: Likewise.
887 * cli/cli-interp.c: Likewise.
888 * cli/cli-script.c: Likewise.
889 * completer.c: Likewise.
890 * corefile.c: Likewise.
891 * corelow.c: Likewise.
892 * cp-abi.c: Likewise.
893 * cp-support.c: Likewise.
894 * cp-valprint.c: Likewise.
895 * darwin-nat.c: Likewise.
896 * dwarf2-frame-tailcall.c: Likewise.
897 * dwarf2-frame.c: Likewise.
898 * dwarf2loc.c: Likewise.
899 * dwarf2read.c: Likewise.
900 * eval.c: Likewise.
901 * event-loop.c: Likewise.
902 * event-top.c: Likewise.
903 * f-valprint.c: Likewise.
904 * frame-unwind.c: Likewise.
905 * frame.c: Likewise.
906 * gdbtypes.c: Likewise.
907 * gnu-v2-abi.c: Likewise.
908 * gnu-v3-abi.c: Likewise.
909 * guile/scm-auto-load.c: Likewise.
910 * guile/scm-breakpoint.c: Likewise.
911 * guile/scm-cmd.c: Likewise.
912 * guile/scm-frame.c: Likewise.
913 * guile/scm-lazy-string.c: Likewise.
914 * guile/scm-param.c: Likewise.
915 * guile/scm-symbol.c: Likewise.
916 * guile/scm-type.c: Likewise.
917 * hppa-hpux-tdep.c: Likewise.
918 * i386-tdep.c: Likewise.
919 * inf-loop.c: Likewise.
920 * infcall.c: Likewise.
921 * infcmd.c: Likewise.
922 * infrun.c: Likewise.
923 * interps.c: Likewise.
924 * interps.h: Likewise.
925 * jit.c: Likewise.
926 * linespec.c: Likewise.
927 * linux-nat.c: Likewise.
928 * linux-thread-db.c: Likewise.
929 * m32r-rom.c: Likewise.
930 * main.c: Likewise.
931 * memory-map.c: Likewise.
932 * mi/mi-cmd-break.c: Likewise.
933 * mi/mi-cmd-stack.c: Likewise.
934 * mi/mi-interp.c: Likewise.
935 * mi/mi-main.c: Likewise.
936 * monitor.c: Likewise.
937 * nto-procfs.c: Likewise.
938 * objc-lang.c: Likewise.
939 * p-valprint.c: Likewise.
940 * parse.c: Likewise.
941 * ppc-linux-tdep.c: Likewise.
942 * printcmd.c: Likewise.
943 * probe.c: Likewise.
944 * python/py-auto-load.c: Likewise.
945 * python/py-breakpoint.c: Likewise.
946 * python/py-cmd.c: Likewise.
947 * python/py-finishbreakpoint.c: Likewise.
948 * python/py-frame.c: Likewise.
949 * python/py-framefilter.c: Likewise.
950 * python/py-function.c: Likewise.
951 * python/py-gdb-readline.c: Likewise.
952 * python/py-inferior.c: Likewise.
953 * python/py-infthread.c: Likewise.
954 * python/py-lazy-string.c: Likewise.
955 * python/py-linetable.c: Likewise.
956 * python/py-param.c: Likewise.
957 * python/py-prettyprint.c: Likewise.
958 * python/py-symbol.c: Likewise.
959 * python/py-type.c: Likewise.
960 * python/py-value.c: Likewise.
961 * python/python-internal.h: Likewise.
962 * python/python.c: Likewise.
963 * record-btrace.c: Likewise.
964 * record-full.c: Likewise.
965 * regcache.c: Likewise.
966 * remote-fileio.c: Likewise.
967 * remote-mips.c: Likewise.
968 * remote.c: Likewise.
969 * rs6000-aix-tdep.c: Likewise.
970 * rs6000-nat.c: Likewise.
971 * skip.c: Likewise.
972 * solib-darwin.c: Likewise.
973 * solib-dsbt.c: Likewise.
974 * solib-frv.c: Likewise.
975 * solib-ia64-hpux.c: Likewise.
976 * solib-spu.c: Likewise.
977 * solib-svr4.c: Likewise.
978 * solib.c: Likewise.
979 * spu-tdep.c: Likewise.
980 * stack.c: Likewise.
981 * stap-probe.c: Likewise.
982 * symfile-mem.c: Likewise.
983 * symmisc.c: Likewise.
984 * target.c: Likewise.
985 * thread.c: Likewise.
986 * top.c: Likewise.
987 * tracepoint.c: Likewise.
988 * tui/tui-interp.c: Likewise.
989 * typeprint.c: Likewise.
990 * utils.c: Likewise.
991 * valarith.c: Likewise.
992 * valops.c: Likewise.
993 * valprint.c: Likewise.
994 * value.c: Likewise.
995 * varobj.c: Likewise.
996 * windows-nat.c: Likewise.
997 * xml-support.c: Likewise.
998
999 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1000
1001 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1002 name implies.
1003 (extended_mips16_next_pc): Update accordingly.
1004
1005 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1006
1007 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1008 function.
1009 (micromips_instruction_is_compact_branch): Likewise.
1010 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1011 or a compact jump, reaching a jump delay slot, or seeing a
1012 second non-prologue instruction.
1013 (micromips_scan_prologue): Also terminate scanning upon seeing a
1014 compact branch or jump, or reaching a branch or jump delay slot.
1015 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1016 or jump delay slot, or seeing a second non-prologue instruction.
1017 (mips32_instruction_has_delay_slot): Retain instruction
1018 examination code only, update arguments accordingly and move
1019 instruction fetch pieces to...
1020 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1021 (micromips_instruction_has_delay_slot): Likewise and to...
1022 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1023 (mips16_instruction_has_delay_slot): Likewise and to...
1024 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1025 (mips_single_step_through_delay): Update accordingly.
1026 (mips_adjust_breakpoint_address): Likewise.
1027
1028 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1029
1030 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1031 !mustbe32 also return 1 for 32-bit instructions.
1032 (mips16_instruction_has_delay_slot): Likewise. Add an
1033 explanatory comment.
1034
1035 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1036
1037 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1038 symbols special.
1039
1040 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1041
1042 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1043 update comments.
1044 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1045 for the breakpoint's address. Don't preinitialize `placed_size'.
1046 (insert_bp_location): Set `reqstd_address' rather than
1047 `placed_address'.
1048 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1049 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1050 address.
1051 (bkpt_remove_location): Likewise.
1052 (deprecated_insert_raw_breakpoint): Likewise.
1053 (deprecated_remove_raw_breakpoint): Likewise.
1054 (find_single_step_breakpoint): Likewise.
1055 * mem-break.c (default_memory_insert_breakpoint): Use
1056 `reqstd_address' for the breakpoint's address. Don't set
1057 `placed_address' or `placed_size' if breakpoint contents couldn't
1058 have been determined.
1059 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1060 the breakpoint's address.
1061 (remote_insert_hw_breakpoint): Likewise. Don't set
1062 `placed_address' or `placed_size' if breakpoint couldn't have been
1063 set.
1064 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1065 `reqstd_address' for the breakpoint's address.
1066 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1067 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1068 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1069 * microblaze-linux-tdep.c
1070 (microblaze_linux_memory_remove_breakpoint): Likewise.
1071 * monitor.c (monitor_insert_breakpoint): Likewise.
1072 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1073 (procfs_insert_hw_breakpoint): Likewise.
1074 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1075 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1076 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1077 * remote-mips.c (mips_insert_breakpoint): Likewise.
1078 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1079
1080 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1081
1082 * valops.c (value_assign): Check for bit field assignments
1083 before calling architecture-specific register value
1084 conversion functions.
1085
1086 2014-10-03 Pierre Muller <muller@sourceware.org>
1087
1088 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1089
1090 2014-10-02 Pedro Alves <palves@redhat.com>
1091
1092 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1093 threads_are_executing.
1094 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1095 describing comment.
1096 * gdbthread.h (threads_are_executing): Declare.
1097 (handle_signal_stop) <random signals>: Don't print about the
1098 signal here if stopping.
1099 (end_stepping_range): Don't notify observers here.
1100 (normal_stop): Update the thread list. If stopped by a random
1101 signal or a stepping range ended, notify observers.
1102 * thread.c (threads_executing): New global.
1103 (init_thread_list): Clear 'threads_executing'.
1104 (set_executing): Set or clear 'threads_executing'.
1105 (threads_are_executing): New function.
1106 (update_threads_executing): New function.
1107 (update_thread_list): Use it.
1108
1109 2014-10-02 Pedro Alves <palves@redhat.com>
1110
1111 PR breakpoints/17431
1112 * breakpoint.c (update_breakpoints_after_exec): Don't create
1113 overlay, longjmp, std terminate nor exception breakpoints here.
1114
1115 2014-10-02 Pedro Alves <palves@redhat.com>
1116
1117 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1118 Adjust comments.
1119 * inferior.c (find_inferior_for_program_space): Give preference to
1120 the current inferior.
1121 * inferior.h (find_inferior_for_program_space): Update comment.
1122 * progspace.c (switch_to_program_space_and_thread): Prefer the
1123 current inferior if it's bound to the program space requested. If
1124 the inferior found doesn't have a PID yet, don't bother looking up
1125 a thread.
1126 * progspace.h (switch_to_program_space_and_thread): Adjust
1127 comment.
1128 * thread.c (any_thread_of_process, any_live_thread_of_process):
1129 Give preference to the current thread.
1130
1131 2014-10-01 Pedro Alves <palves@redhat.com>
1132
1133 * breakpoint.c (insert_bp_location): Error out if inserting a
1134 software breakpoint at a read-only address.
1135 * target.c (memory_xfer_check_region): New function, factored out
1136 from ...
1137 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1138 ULONGEST.
1139 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1140 against the memory region attributes.
1141
1142 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1143
1144 * NEWS: Announce new exit-code field in -list-thread-groups
1145 output.
1146 * inferior.c (exit_inferior_1): Don't clear exit code.
1147 (inferior_appeared): Clear exit code.
1148 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1149 code.
1150
1151 2014-10-01 Pedro Alves <palves@redhat.com>
1152
1153 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1154 GENERATED" along with emacs/vi read-only markers.
1155 * regformats/aarch64.dat: Regenerate.
1156 * regformats/arm-with-iwmmxt.dat: Regenerate.
1157 * regformats/arm-with-neon.dat: Regenerate.
1158 * regformats/arm-with-vfpv2.dat: Regenerate.
1159 * regformats/arm-with-vfpv3.dat: Regenerate.
1160 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1161 * regformats/i386/amd64-avx.dat: Regenerate.
1162 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1163 * regformats/i386/amd64-avx512.dat: Regenerate.
1164 * regformats/i386/amd64-linux.dat: Regenerate.
1165 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1166 * regformats/i386/amd64-mpx.dat: Regenerate.
1167 * regformats/i386/amd64.dat: Regenerate.
1168 * regformats/i386/i386-avx-linux.dat: Regenerate.
1169 * regformats/i386/i386-avx.dat: Regenerate.
1170 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1171 * regformats/i386/i386-avx512.dat: Regenerate.
1172 * regformats/i386/i386-linux.dat: Regenerate.
1173 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1174 * regformats/i386/i386-mmx.dat: Regenerate.
1175 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1176 * regformats/i386/i386-mpx.dat: Regenerate.
1177 * regformats/i386/i386.dat: Regenerate.
1178 * regformats/i386/x32-avx-linux.dat: Regenerate.
1179 * regformats/i386/x32-avx.dat: Regenerate.
1180 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1181 * regformats/i386/x32-avx512.dat: Regenerate.
1182 * regformats/i386/x32-linux.dat: Regenerate.
1183 * regformats/i386/x32.dat: Regenerate.
1184 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1185 * regformats/mips-dsp-linux.dat: Regenerate.
1186 * regformats/mips-linux.dat: Regenerate.
1187 * regformats/mips64-dsp-linux.dat: Regenerate.
1188 * regformats/mips64-linux.dat: Regenerate.
1189 * regformats/nios2-linux.dat: Regenerate.
1190 * regformats/rs6000/powerpc-32.dat: Regenerate.
1191 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1192 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1193 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1194 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1195 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1196 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1197 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1198 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1199 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1200 * regformats/s390-linux32.dat: Regenerate.
1201 * regformats/s390-linux32v1.dat: Regenerate.
1202 * regformats/s390-linux32v2.dat: Regenerate.
1203 * regformats/s390-linux64.dat: Regenerate.
1204 * regformats/s390-linux64v1.dat: Regenerate.
1205 * regformats/s390-linux64v2.dat: Regenerate.
1206 * regformats/s390-te-linux64.dat: Regenerate.
1207 * regformats/s390x-linux64.dat: Regenerate.
1208 * regformats/s390x-linux64v1.dat: Regenerate.
1209 * regformats/s390x-linux64v2.dat: Regenerate.
1210 * regformats/s390x-te-linux64.dat: Regenerate.
1211 * regformats/tic6x-c62x-linux.dat: Regenerate.
1212 * regformats/tic6x-c62x.dat: Regenerate.
1213 * regformats/tic6x-c64x-linux.dat: Regenerate.
1214 * regformats/tic6x-c64x.dat: Regenerate.
1215 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1216 * regformats/tic6x-c64xp.dat: Regenerate.
1217
1218 2014-10-01 Pedro Alves <palves@redhat.com>
1219
1220 * features/Makefile: Update comments.
1221 (XMLTOC): List all xml files we build C files from.
1222 (clean-cfiles): New rule.
1223
1224 2014-10-01 Pedro Alves <palves@redhat.com>
1225
1226 * features/i386/amd64-avx512-linux.c: Regenerate.
1227 * features/i386/amd64-avx512.c: Regenerate.
1228 * features/i386/x32-avx512-linux.c: Regenerate.
1229 * features/i386/x32-avx512.c: Regenerate.
1230
1231 2014-10-01 Pedro Alves <palves@redhat.com>
1232
1233 * features/Makefile (WHICH): Remove arm-with-m,
1234 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1235
1236 2014-10-01 Pedro Alves <palves@redhat.com>
1237
1238 * features/Makefile (clean): New rule.
1239
1240 2014-10-01 Pedro Alves <palves@redhat.com>
1241
1242 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1243 (zmm14h): Add missing end quotes.
1244
1245 2014-10-01 Pedro Alves <palves@redhat.com>
1246
1247 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1248 * features/aarch64.c: Regenerate.
1249
1250 2014-09-30 Don Breazeal <donb@codesourcery.com>
1251
1252 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1253 code so as to work with follow_fork_inferior.
1254 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1255 (inf_ttrace_create_inferior): Remove reference to
1256 inf_ttrace_vfork_ppid.
1257 (inf_ttrace_attach): Ditto.
1258 (inf_ttrace_detach): Ditto.
1259 (inf_ttrace_kill): Use current_inferior instead of
1260 inf_ttrace_vfork_ppid.
1261 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1262 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1263 inferior away from the parent.
1264 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1265 target_follow_fork.
1266 (follow_fork_inferior): New function.
1267 (follow_inferior_reset_breakpoints): Make function static.
1268 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1269 * linux-nat.c (linux_child_follow_fork): Move target-independent
1270 code to infrun.c:follow_fork_inferior.
1271
1272 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1273
1274 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1275 * gdbarch.c: Regenerate.
1276 * gdbarch.h: Likewise.
1277 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1278 gdbarch method 'regset_from_core_section'.
1279 (get_core_register_section): Remove handling for the case that
1280 regset == NULL and regset_from_core_section is defined.
1281 (get_core_registers): Drop check for deleted method.
1282 * procfs.c (procfs_do_thread_registers): Adjust comment.
1283
1284 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1285
1286 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1287 (linux_nat_make_corefile_notes): Remove.
1288 (linux_target_install_ops): Do not set target method
1289 'make_corefile_notes'.
1290 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1291 Remove field.
1292 (linux_corefile_thread_callback): Instead of args->collect, call
1293 linux_collect_thread_registers.
1294 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1295 NULL unless there is a regset iterator.
1296 (linux_make_corefile_notes_1): Remove.
1297 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1298 by linux_make_corefile_notes.
1299 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1300
1301 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1302
1303 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1304 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1305 Remove.
1306 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1307
1308 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1309
1310 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1311 (xtensa_iterate_over_regset_sections): New.
1312 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1313
1314 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1315
1316 * vax-tdep.c (vax_regset_from_core_section): Remove.
1317 (vax_iterate_over_regset_sections): New.
1318 (vax_gdbarch_init): Adjust gdbarch initialization.
1319
1320 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1321
1322 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1323 (tilegx_regset_from_core_section): Remove.
1324 (tilegx_iterate_over_regset_sections): New.
1325 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1326
1327 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1328
1329 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1330 (sparc_iterate_over_regset_sections): New.
1331 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1332 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1333 targets.
1334 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1335 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1336 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1337 target method 'make_corefile_notes'.
1338
1339 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1340
1341 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1342 'sizeof_gregset' and 'sizeof_fpregset'.
1343 * sh-tdep.c (sh_regset_from_core_section): Remove.
1344 (sh_iterate_over_regset_sections): New.
1345 (sh_gdbarch_init): Adjust gdbarch initialization.
1346 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1347 sizeof_fpregset.
1348 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1349 'sizeof_gregset'.
1350
1351 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1352
1353 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1354 (score7_linux_iterate_over_regset_sections): New.
1355 (score_gdbarch_init): Adjust gdbarch initialization.
1356
1357 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1358
1359 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1360 FreeBSD targets.
1361 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1362 method 'make_corefile_notes'.
1363 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1364 (ppcfbsd_regset_from_core_section): Remove.
1365 (ppcfbsd_iterate_over_regset_sections): New.
1366 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1367 initialization.
1368 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1369 (ppcnbsd_iterate_over_regset_sections): New.
1370 (ppcnbsd_init_abi): Adjust.
1371 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1372 (ppcobsd_iterate_over_regset_sections): New.
1373 (ppcobsd_init_abi): Adjust.
1374 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1375 (rs6000_aix_iterate_over_regset_sections): New.
1376 (rs6000_aix_init_osabi): Adjust.
1377
1378 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1379
1380 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1381 (nios2_regset_from_core_section): Remove.
1382 (nios2_iterate_over_regset_sections): New.
1383 (nios2_linux_init_abi): Adjust gdbarch initialization.
1384
1385 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1386
1387 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1388 (am33_iterate_over_regset_sections): New.
1389 (am33_linux_init_osabi): Adjust gdbarch initialization.
1390
1391 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1392
1393 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1394 (mips_linux_iterate_over_regset_sections): New.
1395 (mips_linux_init_abi): Adjust gdbarch initialization.
1396 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1397 (mips64obsd_iterate_over_regset_sections): New.
1398 (mips64obsd_init_abi): Adjust.
1399 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1400 (mipsnbsd_iterate_over_regset_sections): New.
1401 (mipsnbsd_init_abi): Adjust.
1402
1403 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1404
1405 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1406 (m88k_iterate_over_regset_sections): New.
1407 (m88k_gdbarch_init): Adjust gdbarch initialization.
1408
1409 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1410
1411 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1412 (ia64_linux_iterate_over_regset_sections): New.
1413 (ia64_linux_init_abi): Adjust gdbarch initialization.
1414
1415 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1416
1417 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1418 (m68kbsd_iterate_over_regset_sections): New.
1419 (m68kbsd_init_abi): Adjust gdbarch initialization.
1420 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1421 (m68k_linux_iterate_over_regset_sections): New.
1422 (m68k_linux_init_abi): Adjust gdbarch initialization.
1423
1424 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1425
1426 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1427 (m32r_linux_regset_from_core_section): Remove.
1428 (m32r_linux_iterate_over_regset_sections): New.
1429 (m32r_linux_init_abi): Adjust gdbarch initialization.
1430
1431 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1432
1433 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1434 (amd64obsd_iterate_over_regset_sections): New.
1435 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1436 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1437 Remove.
1438 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1439 regset_from_core_section initialization.
1440 * i386-tdep.c (i386_regset_from_core_section): Remove.
1441 (i386_iterate_over_regset_sections): New.
1442 (i386_gdbarch_init): Adjust gdbarch initialization.
1443 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1444 (i386_iterate_over_regset_sections): New prototype.
1445 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1446 Remove.
1447 (i386obsd_aout_iterate_over_regset_sections): New.
1448 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1449 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1450 targets.
1451 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1452 (amd64fbsd_init_abi): Call fbsd_init_abi.
1453 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1454 (i386fbsd4_init_abi): Call fbsd_init_abi.
1455 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1456 target method 'make_corefile_notes'.
1457 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1458
1459 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1460
1461 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1462 (hppa_hpux_iterate_over_regset_sections): New.
1463 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1464 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1465 (hppa_linux_iterate_over_regset_sections): New.
1466 (hppa_linux_init_abi): Adjust.
1467 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1468 (hppanbsd_iterate_over_regset_sections): New.
1469 (hppanbsd_init_abi): Adjust.
1470 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1471 (hppaobsd_iterate_over_regset_sections): New.
1472 (hppaobsd_init_abi): Adjust.
1473
1474 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1475
1476 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1477 (frv_linux_iterate_over_regset_sections): New.
1478 (frv_linux_init_abi): Adjust gdbarch initialization.
1479
1480 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1481
1482 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1483 (armbsd_iterate_over_regset_sections): New prototype.
1484 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1485 (armbsd_iterate_over_regset_sections): New.
1486 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1487 initialization.
1488
1489 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1490
1491 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1492 (alpha_linux_iterate_over_regset_sections): New.
1493 (alpha_linux_init_abi): Adjust gdbarch initialization.
1494 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1495 prototype.
1496 (alphanbsd_iterate_over_regset_sections): New prototype.
1497
1498 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1499
1500 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1501 Remove.
1502 (aarch64_linux_iterate_over_regset_sections): New.
1503 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1504
1505 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1506
1507 * fbsd-tdep.c: New file.
1508 * fbsd-tdep.h: New file.
1509 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1510 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1511 (ALLDEPFILES): Add fbsd-tdep.c.
1512
1513 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1514
1515 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1516 parameter.
1517 * gdbarch.h: Regenerate.
1518 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1519 iterator.
1520 (get_core_register_section): Add parameter 'regset' and use it, if
1521 set. Add parameter 'min_size' and verify the bfd section size
1522 against it.
1523 (get_core_registers_cb): Add parameter 'regset' and pass it to
1524 get_core_register section. For the "standard" register sections
1525 ".reg" and ".reg2", set an appropriate default for human_name.
1526 (get_core_registers): Don't abort when the gdbarch has an iterator
1527 but no regset_from_core_section. Add NULL/0 for parameters
1528 'regset'/'min_size' in calls to get_core_register_section.
1529 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1530 'regset' and use it instead of calling the
1531 regset_from_core_section gdbarch method.
1532 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1533 * i386-tdep.c (i386_supply_xstateregset)
1534 (i386_collect_xstateregset, i386_xstateregset): Moved to
1535 i386-linux-tdep.c.
1536 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1537 .reg-xstate.
1538 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1539 core file support only if the regset iterator hasn't been set.
1540 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1541 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1542 Moved from i386-tdep.c and renamed to *_linux*.
1543 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1544 each callback invocation. Allow any .reg-xstate size when reading
1545 from a core file.
1546 * amd64-tdep.c (amd64_supply_xstateregset)
1547 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1548 amd64-linux-tdep.c.
1549 (amd64_regset_from_core_section): Remove.
1550 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1551 install an amd64-specific regset_from_core_section gdbarch method.
1552 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1553 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1554 Moved from amd64-tdep.c and renamed to *_linux*.
1555 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1556 to each callback invocation. Allow any .reg-xstate size when
1557 reading from a core file.
1558 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1559 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1560 each callback invocation.
1561 (arm_linux_init_abi): No longer set the regset_from_core_section
1562 gdbarch method.
1563 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1564 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1565 each callback invocation.
1566 (ppc_linux_init_abi): No longer set the regset_from_core_section
1567 gdbarch method.
1568 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1569 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1570 (s390_regset_from_core_section): Remove.
1571 (s390_iterate_over_regset_sections): Add regset parameter to each
1572 callback invocation.
1573 (s390_gdbarch_init): No longer set the regset_from_core_section
1574 gdbarch method. Drop initialization of deleted tdep fields.
1575
1576 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1577
1578 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1579 (amd64_linux_iterate_over_regset_sections): New.
1580 (amd64_linux_init_abi_common): Don't install the regset section
1581 list, but the new iterator in gdbarch.
1582 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1583 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1584 (arm_linux_iterate_over_regset_sections): ...here. New function.
1585 (arm_linux_init_abi): Set iterator instead of section list.
1586 * corelow.c (get_core_registers_cb): New function, logic moved
1587 from...
1588 (get_core_registers): ...loop body here. Use new iterator method
1589 instead of walking through the regset section list.
1590 * gdbarch.sh: Remove 'core_regset_sections'. New method
1591 'iterate_over_regset_sections'. New typedef
1592 'iterate_over_regset_sections_cb'.
1593 * gdbarch.c: Regenerate.
1594 * gdbarch.h: Likewise.
1595 * i386-linux-tdep.c (i386_linux_regset_sections)
1596 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1597 Remove.
1598 (i386_linux_iterate_over_regset_sections): New.
1599 (i386_linux_init_abi): Don't choose a regset section list, but
1600 install new iterator in gdbarch.
1601 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1602 (linux_collect_regset_section_cb): New function, logic moved
1603 from...
1604 (linux_collect_thread_registers): ...loop body here. Use iterator
1605 method instead of walking through list.
1606 (linux_make_corefile_notes_1): Check for presence of iterator
1607 method instead of regset section list.
1608 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1609 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1610 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1611 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1612 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1613 (ppc_linux_init_abi): Don't choose from above regset section
1614 lists, but install new iterator in gdbarch.
1615 * regset.h (struct core_regset_section): Remove.
1616 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1617 have_linux_v1, have_linux_v2, and have_tdb.
1618 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1619 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1620 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1621 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1622 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1623 (s390_iterate_over_regset_sections): ...here. New function. Use
1624 new tdep fields.
1625 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1626 regset section lists, but install new iterator.
1627
1628 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1629
1630 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1631
1632 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1633
1634 * progspace.c (print_program_space): Don't prune program spaces
1635 before printing them.
1636
1637 2014-09-25 Pedro Alves <palves@redhat.com>
1638
1639 * infrun.c (user_visible_resume_ptid): Don't check
1640 singlestep_breakpoints_inserted_p.
1641
1642 2014-09-25 Pedro Alves <palves@redhat.com>
1643
1644 * breakpoint.c (should_be_inserted): Add debug output.
1645
1646 2014-09-25 Pedro Alves <palves@redhat.com>
1647
1648 * infrun.c (stepping_past_instruction_at)
1649 (clear_exit_convenience_vars): Point at infrun.h instead of
1650 inferior.h.
1651 (handle_signal_stop): Fix typo.
1652
1653 2014-09-24 Yao Qi <yao@codesourcery.com>
1654
1655 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1656 bitmask.
1657
1658 2014-09-22 Gary Benson <gbenson@redhat.com>
1659
1660 * target.c (target_stop): Updated comment.
1661
1662 2014-09-22 Gary Benson <gbenson@redhat.com>
1663
1664 * target/target.h (target_stop_ptid): Renamed as...
1665 (target_stop_and_wait): New function. Updated comment.
1666 All uses updated.
1667 (target_continue_ptid): Renamed as...
1668 (target_continue_no_signal): New function. Updated comment.
1669 All uses updated.
1670
1671 2014-09-22 Pedro Alves <palves@redhat.com>
1672
1673 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1674 and "auto" merged.
1675 * breakpoint.c (enum ugll_insert_mode): New enum.
1676 (always_inserted_mode): Now a plain boolean.
1677 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1678 (breakpoints_always_inserted_mode): Delete.
1679 (breakpoints_should_be_inserted_now): New function.
1680 (insert_breakpoints): Pass UGLL_INSERT to
1681 update_global_location_list instead of calling
1682 insert_breakpoint_locations manually.
1683 (create_solib_event_breakpoint_1): New, factored out from ...
1684 (create_solib_event_breakpoint): ... this.
1685 (create_and_insert_solib_event_breakpoint): Use
1686 create_solib_event_breakpoint_1 instead of calling
1687 insert_breakpoint_locations manually.
1688 (update_global_location_list): Change parameter type from boolean
1689 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1690 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1691 (update_global_location_list_nothrow): Change parameter type from
1692 boolean to enum ugll_insert_mode.
1693 (_initialize_breakpoint): "breakpoint always-inserted" option is
1694 now a boolean command. Update help text.
1695 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1696 (breakpoints_should_be_inserted_now): New declaration.
1697 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1698 Remove breakpoints_always_inserted_mode check.
1699 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1700 * remote.c (remote_start_remote): Likewise.
1701
1702 2014-09-22 Pedro Alves <palves@redhat.com>
1703
1704 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1705 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1706 Instead, pass UGLL_INSERT to update_global_location_list.
1707 (update_global_location_list): Change parameter type from boolean
1708 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1709 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1710 (create_solib_event_breakpoint_1): New, factored out from ...
1711 (create_solib_event_breakpoint): ... this.
1712 (create_and_insert_solib_event_breakpoint): Use
1713 create_solib_event_breakpoint_1 instead of calling
1714 insert_breakpoint_locations manually.
1715 (update_global_location_list): Handle UGLL_INSERT.
1716
1717 2014-09-22 Pedro Alves <palves@redhat.com>
1718
1719 * breakpoint.c (enum ugll_insert_mode): New enum.
1720 (update_global_location_list)
1721 (update_global_location_list_nothrow): Change parameter type from
1722 boolean to enum ugll_insert_mode. All callers adjusted.
1723
1724 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1725
1726 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1727 SystemTap support in GDB.
1728
1729 2014-09-19 Don Breazeal <donb@codesourcery.com>
1730
1731 * linux-nat.c (linux_handle_extended_wait): Call
1732 linux_ptrace_get_extended_event.
1733 (wait_lwp): Call linux_is_extended_waitstatus.
1734 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1735 and linux_is_extended_waitstatus.
1736 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1737 linux_ptrace_get_extended_event.
1738 (linux_ptrace_get_extended_event): New function.
1739 (linux_is_extended_waitstatus): New function.
1740 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1741 (linux_is_extended_waitstatus): New declarations.
1742
1743 2014-09-19 Yao Qi <yao@codesourcery.com>
1744
1745 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1746 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1747 comments. Callers update.
1748 (dwarf_decode_lines): Likewise.
1749 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1750 comments. Skip the line table if 'lowpc' is greater than
1751 'address'. Don't check
1752 dwarf2_per_objfile->has_section_at_zero.
1753
1754 2014-09-18 Doug Evans <dje@google.com>
1755
1756 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1757 * python/py-symtab.c (stpy_get_producer): New function.
1758 (symtab_object_getset): Add "producer" attribute.
1759
1760 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1761
1762 PR gdb/17384
1763 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1764 (do_captured_read_memory_integer): Remove.
1765 (safe_read_memory_integer): Use target_read_memory directly instead
1766 of catching errors in do_captured_read_memory_integer.
1767
1768 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1769
1770 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1771 not gdb/doc.
1772
1773 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1774
1775 * objc-lang.c (find_implementation_from_class): Remove dead code.
1776
1777 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1778
1779 PR cli/7233
1780 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1781 "fprintf_unfiltered (gdb_stdlog...)".
1782
1783 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1784
1785 PR breakpoints/12526
1786 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1787 val_bitsize.
1788 * breakpoint.c (watch_command_1): Use these fields to retain
1789 bitfield information.
1790 (extract_bitfield_from_watchpoint_value): New function.
1791 (watchpoint_check): Use it.
1792 (update_watchpoint): Use it. Optimize the address and length of a
1793 HW watchpoint pointing to a bitfield.
1794 * value.h (unpack_value_bitfield): New prototype.
1795 * value.c (unpack_value_bitfield): Make extern.
1796
1797 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1798
1799 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1800 x86-dregs.o.
1801 * gnu-nat.c (inf_threads): New function.
1802 * gnu-nat.h (inf_threads_ftype): New typedef.
1803 (inf_threads): New declaration.
1804 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1805 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1806 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1807 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1808 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1809 (i386_gnu_dr_get_control): New functions.
1810 (reg_addr): New structure.
1811 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1812 i386 debugging register hooks.
1813 * NEWS: Mention this.
1814
1815 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1816
1817 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1818 vector data transfer instructions.
1819 (arm_record_coproc_data_proc): Updated.
1820
1821 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1822
1823 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1824 arm_record_exreg_ld_st_insn.
1825 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1826 load/store insns.
1827
1828 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1829
1830 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1831 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1832 processing instructions.
1833
1834 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1835
1836 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1837 for advance SIMD struct ld/st insn.
1838 (thumb2_record_decode_insn_handler): Replace stub handler with
1839 thumb2_record_asimd_struct_ld_st.
1840
1841 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1842
1843 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1844 for asimd, vfp and coprocessor insns.
1845 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1846 and coprocessor insns.
1847 (thumb2_record_coproc_insn): New function.
1848 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1849 handlers.
1850 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1851 opcode 110 insns.
1852
1853 2014-09-13 Doug Evans <xdje42@gmail.com>
1854
1855 * NEWS: Mention new "queue-signal" command.
1856 * infcmd.c (queue_signal_command): New function.
1857 (_initialize_infcmd): Add new queue-signal command.
1858
1859 2014-09-13 Doug Evans <xdje42@gmail.com>
1860
1861 * linux-nat.c (wait_lwp): Add debugging printf.
1862 (linux_nat_wait_1): Ditto.
1863
1864 2014-09-12 Pedro Alves <palves@redhat.com>
1865
1866 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1867 (create_and_insert_solib_event_breakpoint): New functions.
1868 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1869 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1870 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1871 (remove_dbx_link_breakpoint): Delete function.
1872 (insert_dbx_link_bpt_in_file): Use
1873 create_and_insert_solib_event_breakpoint instead of
1874 deprecated_insert_raw_breakpoint.
1875 (procfs_wait): Don't check whether we hit __dbx_link here.
1876 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1877 here.
1878 * solib-irix.c (base_breakpoint): Delete global.
1879 (disable_break): Delete function.
1880 (enable_break): Use create_solib_event_breakpoint
1881 instead of deprecated_insert_raw_breakpoint.
1882 (irix_solib_handle_event): New function.
1883 (irix_solib_create_inferior_hook): Don't run the target or disable
1884 the mapping-complete breakpoint here.
1885 (_initialize_irix_solib): Install irix_solib_handle_event as
1886 so_ops->handle_event hook.
1887
1888 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1889 Ulrich Weigand  <uweigand@de.ibm.com>
1890
1891 PR tdep/17379
1892 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1893 instead of read_memory_unsigned_integer.
1894
1895 2014-09-12 Gary Benson <gbenson@redhat.com>
1896
1897 * nat/linux-waitpid.c: Include common-defs.h.
1898 [GDBSERVER]: Add FIXME comment.
1899 [!GDBSERVER]: Don't include defs.h or signal.h.
1900 (linux_debug) [!GDBSERVER]: Remove empty block.
1901
1902 2014-09-12 Gary Benson <gbenson@redhat.com>
1903
1904 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1905 Don't include defs.h or server.h.
1906
1907 2014-09-12 Gary Benson <gbenson@redhat.com>
1908
1909 * nat/linux-btrace.c: Include common-defs.h.
1910 Don't include defs.h, server.h or gdbthread.h.
1911 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1912
1913 2014-09-12 Gary Benson <gbenson@redhat.com>
1914
1915 * common/agent.c: Include common-defs.h.
1916 Don't include defs.h or server.h.
1917 * common/buffer.c: Likewise.
1918 * common/common-debug.c: Likewise.
1919 * common/common-utils.c: Likewise.
1920 * common/errors.c: Likewise.
1921 * common/filestuff.c: Likewise.
1922 * common/format.c: Likewise.
1923 * common/gdb_vecs.c: Likewise.
1924 * common/print-utils.c: Likewise.
1925 * common/ptid.c: Likewise.
1926 * common/rsp-low.c: Likewise.
1927 * common/signals.c: Likewise.
1928 * common/vec.c: Likewise.
1929 * common/xml-utils.c: Likewise.
1930 * nat/linux-osdata.c: Likewise.
1931 * nat/linux-procfs.c: Likewise.
1932 * nat/linux-ptrace.c: Likewise.
1933 * nat/mips-linux-watch.c: Likewise.
1934 * target/waitstatus.c: Likewise.
1935
1936 2014-09-12 Tom Tromey <tromey@redhat.com>
1937 Gary Benson <gbenson@redhat.com>
1938
1939 * common/common-regcache.h: New file.
1940 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1941 * regcache.h: Include common-regcache.h.
1942 (regcache_read_pc): Don't declare.
1943 * regcache.c (get_thread_regcache_for_ptid): New function.
1944 * nat/linux-btrace.c: Don't include regcache.h.
1945 Include common-regcache.h.
1946 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1947
1948 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1949
1950 * regcache.h (struct regset): Declare.
1951
1952 2014-09-11 Pedro Alves <palves@redhat.com>
1953
1954 PR gdb/17347
1955 * main.c: Include "infrun.h".
1956 (catch_command_errors, catch_command_errors_const): Wait for the
1957 foreground command to complete.
1958 * top.c (maybe_wait_sync_command_done): New function, factored out
1959 from ...
1960 (maybe_wait_sync_command_done): ... here.
1961 * top.h (maybe_wait_sync_command_done): New declaration.
1962
1963 2014-09-11 Tom Tromey <tromey@redhat.com>
1964 Gary Benson <gbenson@redhat.com>
1965
1966 * common/symbol.h: New file.
1967 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1968 * minsyms.c (find_minimal_symbol_address): New function.
1969 * common/agent.c: Include common/symbol.h.
1970 [!GDBSERVER]: Don't include objfiles.h.
1971 (agent_look_up_symbols): Use find_minimal_symbol_address.
1972
1973 2014-09-11 Gary Benson <gbenson@redhat.com>
1974
1975 * target/target.h (target_stop_ptid, target_continue_ptid):
1976 Declare.
1977 * target.c (target_stop_ptid, target_continue_ptid): New
1978 functions.
1979 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1980 (agent_run_command): Always use target_stop_ptid and
1981 target_continue_ptid.
1982
1983 2014-09-11 Tom Tromey <tromey@redhat.com>
1984 Gary Benson <gbenson@redhat.com>
1985
1986 * target/target.h: New file.
1987 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1988 * target.h: Include target/target.h.
1989 (target_read_memory, target_write_memory): Don't declare.
1990 * target.c (target_read_uint32): New function.
1991 * common/agent.c: Include target/target.h.
1992 [!GDBSERVER]: Don't include target.h.
1993 (helper_thread_id): Type changed to uint32_t.
1994 (agent_get_helper_thread_id): Use target_read_uint32.
1995 (agent_run_command): Always use target_read_memory and
1996 target_write_memory.
1997 (agent_capability): Type changed to uint32_t.
1998 (agent_capability_check): Use target_read_uint32.
1999
2000 2014-09-11 Gary Benson <gbenson@redhat.com>
2001
2002 * common/common-debug.h (show_debug_regs): Declare.
2003 * common/common-debug.c (show_debug_regs): Define.
2004 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2005 all uses with show_debug_regs. Replace all uses that considered
2006 debug_hw_points as a multi-value integer with straight boolean
2007 uses.
2008 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2009 with show_debug_regs.
2010 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2011 all uses with show_debug_regs.
2012 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2013 uses with show_debug_regs.
2014
2015 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2016
2017 * findvar.c (address_from_register): Handle targets requiring
2018 a special conversion routine even for plain pointer types.
2019
2020 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2021
2022 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2023 (store_register): Do not call exec_one_dummy_insn.
2024
2025 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2026
2027 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2028 dereference it first. Use value_enclosing_type instead of
2029 value_type.
2030 (ada_array_length): Likewise.
2031
2032 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2033
2034 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2035 Adjust function implementation and documentation accordingly.
2036 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2037 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2038 Update call to ada_value_ptr_subscript.
2039
2040 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2041
2042 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2043 instead of VAL's type.
2044
2045 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2046
2047 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2048
2049 2014-09-09 Doug Evans <xdje42@gmail.com>
2050
2051 PR guile/17367
2052 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2053 last parameter to pkg-config, not first.
2054 * configure.ac: Pass --with-guile provided pkg-config path to
2055 GDB_GUILE_PROGRAM_NAMES.
2056 * configure: Regenerate.
2057
2058 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2059
2060 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2061 Bertazi".
2062
2063 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2064
2065 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2066 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2067 the list of sections determining GDB_OSABI_IRIX.
2068
2069 2014-09-09 James Hogan <james.hogan@imgtec.com>
2070
2071 * MAINTAINERS (Write After Approval): Add "James Hogan".
2072
2073 2014-09-09 James Hogan <james.hogan@imgtec.com>
2074
2075 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2076
2077 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2078
2079 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2080
2081 2014-09-08 Doug Evans <xdje42@gmail.com>
2082
2083 PR 17247
2084 * guile.c: #include <signal.h>.
2085 (_initialize_guile): Block SIGCHLD while initializing Guile.
2086
2087 Replaces the following, which is reverted.
2088
2089 2014-07-26 Doug Evans <xdje42@gmail.com>
2090
2091 PR 17185
2092 * configure.ac: Add check for header gc/gc.h.
2093 Add check for function setenv.
2094 * configure: Regenerate.
2095 * config.in: Regenerate.
2096 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2097
2098 2014-09-08 Doug Evans <xdje42@gmail.com>
2099
2100 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2101 with named constant. Fix style of pointer comparison.
2102 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2103
2104 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2105
2106 PR gdb/17035
2107 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2108 decide whether we display the command on "show user".
2109 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2110 printing command name.
2111 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2112 * cli/cli-decode.c (cli_user_command_p): Create helper function
2113 to verify whether cmd_list_element is a user-defined command.
2114
2115 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2116
2117 PR python/17355
2118 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2119 Fix goto out of TRY_CATCH.
2120
2121 2014-09-06 Doug Evans <xdje42@gmail.com>
2122 Tom Tromey <tromey@redhat.com>
2123
2124 PR 15276
2125 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2126 $_any_caller_matches.
2127 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2128 * python/lib/gdb/function/caller_is.py: New file.
2129
2130 2014-09-06 Doug Evans <xdje42@gmail.com>
2131
2132 * infcmd.c (program_info): Fix typo.
2133
2134 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2135
2136 PR gdb/17235
2137 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2138 'number'. New variable 'has_digit'. Rewrite code to deal with
2139 subexpressions on SDT probes.
2140
2141 2014-09-04 Pedro Alves <palves@redhat.com>
2142
2143 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2144 the input is only one character long.
2145
2146 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2147
2148 PR fortran/17237
2149 * f-valprint.c (f_val_print): Specify the correct print option to
2150 use when printing integer values.
2151
2152 2014-09-04 Gary Benson <gbenson@redhat.com>
2153
2154 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2155 Remove code to cope with LWPs wrapped as PIDs.
2156 Add assertions to ensure no wrapped LWPs are passed.
2157
2158 2014-09-04 Pedro Alves <palves@redhat.com>
2159
2160 * value.c (value_ranges_copy_adjusted): New function, factored out
2161 from ...
2162 (value_contents_copy_raw): ... here.
2163 (unpack_value_bits_as_long_1): Rename back to ...
2164 (unpack_bits_as_long): ... this. Remove 'original_value' and
2165 'result' parameters. Change return type to LONGEST.
2166 (unpack_value_bits_as_long): Delete.
2167 (unpack_value_field_as_long_1): Delete.
2168 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2169 (unpack_value_bitfield): New function.
2170 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2171 (value_fetch_lazy): Use unpack_value_bitfield.
2172 * value.h (unpack_value_bits_as_long): Delete declaration.
2173
2174 2014-09-03 Sasha Smundak <asmundak@google.com>
2175
2176 * python/py-frame.c (frapy_read_register): New function.
2177
2178 2014-09-03 James Hogan <james.hogan@imgtec.com>
2179
2180 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2181 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2182
2183 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2184
2185 PR python/16699
2186 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2187 function.
2188 (add_cmd): Set "completer_handle_brkchars" to NULL.
2189 * cli/cli-decode.h (struct cmd_list_element)
2190 <completer_handle_brkchars>: New field.
2191 * command.h (completer_ftype_void): New typedef.
2192 (set_cmd_completer_handle_brkchars): New prototype.
2193 * completer.c (set_gdb_completion_word_break_characters): New
2194 function.
2195 (complete_line_internal): Call "completer_handle_brkchars"
2196 callback from command.
2197 * completer.h: Include "command.h".
2198 (set_gdb_completion_word_break_characters): New prototype.
2199 * python/py-cmd.c (cmdpy_completer_helper): New function.
2200 (cmdpy_completer_handle_brkchars): New function.
2201 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2202 (cmdpy_init): Set completer_handle_brkchars to
2203 cmdpy_completer_handle_brkchars.
2204
2205 2014-09-03 Gary Benson <gbenson@redhat.com>
2206
2207 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2208 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2209 Loop conditions changed to equivalent form.
2210 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2211 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2212 ALL_DEBUG_ADDRESS_REGISTERS.
2213
2214 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2215
2216 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2217 description fix.
2218
2219 2014-09-02 Doug Evans <dje@google.com>
2220
2221 * typeprint.c (find_global_typedef): Fix comment.
2222
2223 2014-09-02 Gary Benson <gbenson@redhat.com>
2224
2225 * i386-nat.h: Renamed as...
2226 * x86-nat.h: New file. All type, function and variable name
2227 prefixes changed from "i386_" to "x86_". All references updated.
2228 * i386-nat.c: Renamed as...
2229 * x86-nat.c: New file. All type, function and variable name
2230 prefixes changed from "i386_" to "x86_". All references updated.
2231 * common/i386-xstate.h: Renamed as...
2232 * common/x86-xstate.h: New file. All type, function and variable
2233 name prefixes changed from "i386_" to "x86_". All references
2234 updated.
2235 * nat/i386-cpuid.h: Renamed as...
2236 * nat/x86-cpuid.h: New file. All type, function and variable name
2237 prefixes changed from "i386_" to "x86_". All references updated.
2238 * nat/i386-gcc-cpuid.h: Renamed as...
2239 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2240 name prefixes changed from "i386_" to "x86_". All references
2241 updated.
2242 * nat/i386-dregs.h: Renamed as...
2243 * nat/x86-dregs.h: New file. All type, function and variable name
2244 prefixes changed from "i386_" to "x86_". All references updated.
2245 * nat/i386-dregs.c: Renamed as...
2246 * nat/x86-dregs.c: New file. All type, function and variable name
2247 prefixes changed from "i386_" to "x86_". All references updated.
2248
2249 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2250
2251 * varobj.c (_initialize_varobj): Move to the end of file.
2252
2253 2014-08-29 Gary Benson <gbenson@redhat.com>
2254
2255 * common/common-exceptions.h: New file.
2256 * common/common-exceptions.c: Likewise.
2257 * Makefile.in (SFILES): Add common/common-exceptions.c.
2258 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2259 (COMMON_OBS): Add common-exceptions.o.
2260 (common-exceptions.o): New rule.
2261 * exceptions.h (common-exceptions.h): Include.
2262 (gdb_setjmp.h): Do not include.
2263 (return_reason): Moved to common-exceptions.h.
2264 (enum return_reason): Likewise.
2265 (RETURN_MASK): Likewise.
2266 (typedef return_mask): Likewise.
2267 (enum errors): Likewise.
2268 (struct gdb_exception): Likewise.
2269 (exceptions_state_mc_init): Likewise.
2270 (exceptions_state_mc_action_iter): Likewise.
2271 (exceptions_state_mc_action_iter_1): Likewise.
2272 (TRY_CATCH): Likewise.
2273 (throw_exception): Likewise.
2274 (throw_verror): Likewise.
2275 (throw_vquit): Likewise.
2276 (throw_error): Likewise.
2277 (throw_quit): Likewise.
2278 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2279 (enum catcher_action): Likewise.
2280 (struct catcher): Likewise.
2281 (current_catcher): Likewise.
2282 (catcher_list_size): Likewise.
2283 (exceptions_state_mc_init): Likewise.
2284 (catcher_pop): Likewise.
2285 (exceptions_state_mc): Likewise.
2286 (exceptions_state_mc_action_iter): Likewise.
2287 (exceptions_state_mc_action_iter_1): Likewise.
2288 (throw_exception): Likewise.
2289 (exception_messages): Likewise.
2290 (exception_messages_size): Likewise.
2291 (throw_it): Likewise.
2292 (throw_verror): Likewise.
2293 (throw_vquit): Likewise.
2294 (throw_error): Likewise.
2295 (throw_quit): Likewise.
2296 (prepare_to_throw_exception): New function.
2297
2298 2014-08-29 Gary Benson <gbenson@redhat.com>
2299
2300 * common/gdb_setjmp.h: New file.
2301 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2302 * configure.ac: Move sigsetjmp check...
2303 * common/common.m4: ...here.
2304 * configure: Regenerate.
2305 * cp-support.c (SIGJMP_BUF): Delete.
2306 (SIGSETJMP): Likewise.
2307 (SIGLONGJMP): Likewise.
2308 * exceptions.h (gdb_setjmp.h): Include.
2309 (setjmp.h): Do not include.
2310 (EXCEPTIONS_SIGJMP_BUF): Delete.
2311 (EXCEPTIONS_SIGSETJMP): Likewise.
2312 (EXCEPTIONS_SIGLONGJMP): Likewise.
2313 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2314 from gdb_setjmp.h.
2315 * exceptions.c: Likewise.
2316
2317 2014-08-29 Gary Benson <gbenson@redhat.com>
2318
2319 * cleanups.h: Moved to...
2320 * common/cleanups.h: New file.
2321 * cleanups.c: Moved to...
2322 * common/cleanups.c: New file. Include common-defs.h and
2323 cleanups.h. Do not include defs.h.
2324 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2325 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2326 (cleanups.o): New rule.
2327
2328 2014-08-29 Gary Benson <gbenson@redhat.com>
2329
2330 * common/errors.h (internal_warning): New declaration.
2331 (internal_vwarning): Likewise.
2332 * common/errors.c (internal_warning): New function.
2333 * utils.h (internal_warning): Don't declare.
2334 (internal_vwarning): Likewise.
2335 * utils.c (internal_warning): Removed.
2336
2337 2014-08-29 Gary Benson <gbenson@redhat.com>
2338
2339 * main.c (captured_main): Use warning during startup.
2340 Prefix startup warning messages with command name.
2341
2342 2014-08-29 Gary Benson <gbenson@redhat.com>
2343
2344 * main.c (captured_main): Handle usage errors with error.
2345
2346 2014-08-29 Gary Benson <gbenson@redhat.com>
2347
2348 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2349 exit pair with a call to error. Wrap the message with _().
2350
2351 2014-08-29 Gary Benson <gbenson@redhat.com>
2352
2353 * main.c (captured_main): Replace a fprintf/exit
2354 pair with a call to error. Wrap the message with _().
2355
2356 2014-08-29 Gary Benson <gbenson@redhat.com>
2357
2358 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2359 pairs with calls to error. Wrap the message with _().
2360
2361 2014-08-29 Gary Benson <gbenson@redhat.com>
2362
2363 * utils.c (vwarning): Protect calls to target_terminal_ours
2364 and wrap_here.
2365
2366 2014-08-29 Gary Benson <gbenson@redhat.com>
2367
2368 * exceptions.c (print_flush): Protect calls to
2369 target_terminal_ours and wrap_here.
2370
2371 2014-08-29 Gary Benson <gbenson@redhat.com>
2372
2373 * utils.h (filtered_printing_initialized): New declaration.
2374 * utils.c (abort_with_message): New function.
2375 (internal_vproblem): Use abort_with_message for first level
2376 recursive internal problems, and if gdb_stderr is not set up.
2377 Protect calls to target_terminal_ours, begin_line and query.
2378
2379 2014-08-28 Doug Evans <dje@google.com>
2380
2381 * symtab.c (in_prologue): Move definition to better spot.
2382 (skip_prologue_using_sal): Ditto.
2383
2384 2014-08-28 Doug Evans <dje@google.com>
2385
2386 * symtab.c (find_function_start_sal): Move definition to better spot.
2387
2388 2014-08-28 Yao Qi <yao@codesourcery.com>
2389
2390 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2391 found_stack_adjust in forward scan. Remove condition check
2392 on found_stack_adjust which is always true. Indent the code.
2393
2394 2014-08-28 Yao Qi <yao@codesourcery.com>
2395
2396 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2397 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2398 (dwarf_decode_lines): Remove argument
2399 want_line_info. Remove condition check on want_line_info.
2400 Callers update.
2401
2402 2014-08-27 Doug Evans <dje@google.com>
2403
2404 * dwarf2read.c (dwarf_record_line): Fix typo.
2405
2406 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2407
2408 * target.h (struct target_ops::to_terminal_save_ours): Remove
2409 declaration.
2410 (target_terminal_save_ours): Remove macro.
2411 * target-delegates.c: Regenerate.
2412 * inf-child.c (inf_child_target): Don't set the nonexistent
2413 field to_terminal_save_ours.
2414 * inferior.h (child_terminal_save_ours): Remove declaration.
2415 * terminal.h (gdb_save_tty_state): New declaration.
2416 * inflow.c (child_terminal_save_ours): Rename to ...
2417 (gdb_save_tty_state): ... this.
2418 * tui/tui.c: Include terminal.h.
2419 (tui_enable): Use gdb_save_tty_state instead of
2420 target_terminal_save_ours.
2421 (tui_disable): Likewise.
2422
2423 2014-08-25 Doug Evans <dje@google.com>
2424
2425 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2426 Pass NULL instead of 0 for context pointer.
2427
2428 2014-08-25 Yao Qi <yao@codesourcery.com>
2429
2430 * dwarf2read.c: Fix grammatical error.
2431
2432 2014-08-24 Yao Qi <yao@codesourcery.com>
2433
2434 * dwarf2read.c (scan_partial_symbols): Update comments.
2435 Rename argument 'need_pc' with 'set_addrmap'.
2436 (add_partial_namespace): Rename argument 'need_pc' with
2437 'set_addrmap'.
2438 (add_partial_module): Likewise.
2439 (add_partial_subprogram): Likewise. Update comments.
2440 (dwarf2_name): Fix typo.
2441
2442 2014-08-22 Doug Evans <dje@google.com>
2443
2444 PR 17276
2445 * dwarf2read.c (dwarf_record_line_p): New function.
2446 (dwarf_decode_lines_1): Ignore subsequent line number entries
2447 for the same line if any entry had a non-zero discriminator.
2448
2449 2014-08-22 Doug Evans <dje@google.com>
2450
2451 * buildsym.h (record_line_ftype): New typedef.
2452 (record_line): Use it.
2453 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2454 (dwarf_decode_lines_1): Call them.
2455
2456 2014-08-22 Yao Qi <yao@codesourcery.com>
2457
2458 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2459 (ctf_end): Remove code.
2460
2461 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2462
2463 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2464 (linux_make_corefile_notes): call update_thread_list, protected against
2465 exceptions.
2466
2467 2014-08-21 Pedro Alves <palves@redhat.com>
2468
2469 * infcmd.c (attach_command): Remove comment.
2470
2471 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2472
2473 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2474 unsigned LONGEST to ULONGEST.
2475
2476 2014-08-20 Pedro Alves <palves@redhat.com>
2477
2478 * Makefile.in (check-read1): New rule.
2479
2480 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2481
2482 * value.c (value_from_contents_and_address): Strip resolved_type's
2483 typedef layers before checking its TYPE_DATA_LOCATION.
2484
2485 2014-08-20 Pedro Alves <palves@redhat.com>
2486
2487 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2488
2489 2014-08-20 Yao Qi <yao@codesourcery.com>
2490
2491 * amd64-tdep.c (amd64_classify): Add a blank line after the
2492 example. Move "*/" to a new line.
2493 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2494 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2495 * dwarf2read.c (psymtab_include_file_name): Likewise.
2496
2497 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2498 Pedro Alves <palves@redhat.com>
2499
2500 PR symtab/14604
2501 PR symtab/14605
2502 * ada-lang.c (coerce_unspec_val_to_type): Use
2503 value_contents_copy_raw.
2504 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2505 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2506 * cp-valprint.c (cp_print_value_fields): Let the common printing
2507 code handle optimized out values.
2508 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2509 * d-valprint.c (dynamic_array_type): Use
2510 value_bits_any_optimized_out.
2511 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2512 check_any_valid fields.
2513 (check_pieced_value_bits): Delete and inline ...
2514 (check_pieced_synthetic_pointer): ... here.
2515 (check_pieced_value_validity): Delete.
2516 (check_pieced_value_invalid): Delete.
2517 (pieced_value_funcs): Remove check_validity and check_any_valid
2518 fields.
2519 (read_pieced_value): Use mark_value_bits_optimized_out.
2520 (write_pieced_value): Switch to use
2521 mark_value_bytes_optimized_out.
2522 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2523 of assuming the whole value is optimized out.
2524 * findvar.c (read_frame_register_value): Remove special handling
2525 of optimized out registers.
2526 (value_from_register): Use mark_value_bytes_optimized_out.
2527 * frame-unwind.c (frame_unwind_got_optimized): Use
2528 mark_value_bytes_optimized_out.
2529 * jv-valprint.c (java_value_print): Adjust.
2530 (java_print_value_fields): Let the common printing code handle
2531 optimized out values.
2532 * mips-tdep.c (mips_print_register): Remove special handling of
2533 optimized out registers.
2534 * opencl-lang.c (lval_func_check_validity): Delete.
2535 (lval_func_check_any_valid): Delete.
2536 (opencl_value_funcs): Remove check_validity and check_any_valid
2537 fields.
2538 * p-valprint.c (pascal_object_print_value_fields): Let the common
2539 printing code handle optimized out values.
2540 * stack.c (read_frame_arg): Remove special handling of optimized
2541 out values. Fetch both VAL and ENTRYVAL before comparing
2542 contents. Adjust to value_available_contents_eq rename.
2543 * valprint.c (valprint_check_validity)
2544 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2545 (val_print_array_elements): Adjust.
2546 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2547 (value_bits_any_optimized_out): New function.
2548 (value_entirely_covered_by_range_vector): New function, factored
2549 out from value_entirely_unavailable.
2550 (value_entirely_unavailable): Reimplement.
2551 (value_entirely_optimized_out): New function.
2552 (insert_into_bit_range_vector): New function, factored out from
2553 mark_value_bits_unavailable.
2554 (mark_value_bits_unavailable): Reimplement.
2555 (struct ranges_and_idx): New struct.
2556 (find_first_range_overlap_and_match): New function, factored out
2557 from value_available_contents_bits_eq.
2558 (value_available_contents_bits_eq): Rename to ...
2559 (value_contents_bits_eq): ... this. Check both unavailable
2560 contents and optimized out contents.
2561 (value_available_contents_eq): Rename to ...
2562 (value_contents_eq): ... this.
2563 (allocate_value_lazy): Remove reference to the old optimized_out
2564 boolean.
2565 (allocate_optimized_out_value): Use
2566 mark_value_bytes_optimized_out.
2567 (require_not_optimized_out): Adjust to check whether the
2568 optimized_out vec is empty.
2569 (ranges_copy_adjusted): New function, factored out from
2570 value_contents_copy_raw.
2571 (value_contents_copy_raw): Also copy the optimized out ranges.
2572 Assert the destination ranges aren't optimized out.
2573 (value_contents_copy): Update comment, remove call to
2574 require_not_optimized_out.
2575 (value_contents_equal): Adjust to check whether the optimized_out
2576 vec is empty.
2577 (set_value_optimized_out, value_optimized_out_const): Delete.
2578 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2579 New functions.
2580 (value_entirely_optimized_out, value_bits_valid): Delete.
2581 (value_copy): Take a VEC copy of the 'optimized_out' field.
2582 (value_primitive_field): Remove special handling of optimized out.
2583 (value_fetch_lazy): Assert that lazy values have no unavailable
2584 regions. Use value_bits_any_optimized_out. Remove some special
2585 handling for optimized out values.
2586 * value.h: Add intro comment about <optimized out> and
2587 <unavailable>.
2588 (struct lval_funcs): Remove check_validity and check_any_valid
2589 fields.
2590 (set_value_optimized_out, value_optimized_out_const): Remove.
2591 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2592 New declarations.
2593 (value_bits_any_optimized_out): New declaration.
2594 (value_bits_valid): Delete declaration.
2595 (value_available_contents_eq): Rename to ...
2596 (value_contents_eq): ... this, and extend comments.
2597
2598 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2599
2600 Fix -fsanitize=address on unreadable inferior strings.
2601 * valprint.c (val_print_string): Fix access before BUFFER.
2602
2603 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2604
2605 * target.c (target_struct_size): Remove.
2606 (target_struct_allocsize): Remove.
2607 (DEFAULT_ALLOCSIZE): Remove.
2608 (target_ops_p): New typedef.
2609 (DEF_VEC_P (target_ops_p)): New vector type.
2610 (target_structs): Change type to VEC (target_ops_p).
2611 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2612 (find_default_run_target): Rewrite for loop following changes to
2613 target_structs.
2614
2615 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2616
2617 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2618 Adjust code accordingly. Adjust function description comment.
2619
2620 2014-08-19 Yao Qi <yao@codesourcery.com>
2621
2622 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2623 types.
2624
2625 2014-08-19 Alan Modra <amodra@gmail.com>
2626
2627 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2628 * config.in: Regenerate.
2629 * configure: Regenerate.
2630
2631 2014-08-19 Tom Tromey <tromey@redhat.com>
2632 Gary Benson <gbenson@redhat.com>
2633
2634 * common/common-debug.h: New file.
2635 * common/common-debug.c: Likewise.
2636 * debug.c: Likewise.
2637 * Makefile.in (SFILES): Add common/common-debug.c.
2638 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2639 (COMMON_OBS): Add common-debug.o and debug.o.
2640 (common-debug.o): New rule.
2641 * common/common-defs.h: Include common-debug.h.
2642 * common/agent.c (debug_agent_printf): New function.
2643 (DEBUG_AGENT): Redefine.
2644 * nat/i386-dregs.c (debug_printf): Undefine.
2645
2646 2014-08-19 Gary Benson <gbenson@redhat.com>
2647
2648 * common/common-defs.h: Include print-utils.h.
2649 * utils.h: Do not include print-utils.h.
2650
2651 2014-08-19 Tom Tromey <tromey@redhat.com>
2652 Gary Benson <gbenson@redhat.com>
2653
2654 * common/common-types.h: New file.
2655 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2656 * common/common-defs.h: Include common-types.h.
2657 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2658 (ULONGEST): Remove.
2659
2660 2014-08-19 Tom Tromey <tromey@redhat.com>
2661 Gary Benson <gbenson@redhat.com>
2662
2663 * common/errors.h: New file.
2664 * common/errors.c: Likewise.
2665 * Makefile.in (SFILES): Add common/errors.c.
2666 (HFILES_NO_SRCDIR): Add common/errors.h.
2667 (COMMON_OBS): Add errors.o.
2668 (errors.o): New rule.
2669 * common/common-defs.h: Include errors.h.
2670 * utils.h (perror_with_name, error, verror, warning, vwarning):
2671 Don't declare.
2672 * common/common-utils.h: (malloc_failure, internal_error):
2673 Likewise.
2674
2675 2014-08-19 Gary Benson <gbenson@redhat.com>
2676
2677 * utils.c (internal_vproblem): Always print the message.
2678
2679 2014-08-18 Doug Evans <dje@google.com>
2680
2681 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2682
2683 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2684
2685 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2686 Return 0 if TYPE is dynamic.
2687 (print_range): Add handling of dynamic ranges.
2688
2689 2014-08-18 Keven Boell <keven.boell@intel.com>
2690 Joel Brobecker <brobecker@adacore.com>
2691
2692 * gdbtypes.h (struct main_type): Add field "data_location".
2693 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2694 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2695 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2696 a dynamic data location.
2697 (resolve_dynamic_type): Add DW_AT_data_location handling.
2698 (copy_recursive, copy_type): Copy the data_location information
2699 when present.
2700 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2701 * value.c (value_from_contents_and_address): Add
2702 DW_AT_data_location handling.
2703
2704 2014-08-18 Keven Boell <keven.boell@intel.com>
2705 Joel Brobecker <brobecker@adacore.com>
2706
2707 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2708 field "get_object_address".
2709 * dwarf2expr.c (execute_stack_op): Add handling for
2710 DW_OP_push_object_address.
2711 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2712 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2713 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2714 (dwarf_expr_get_obj_addr): New function.
2715 (dwarf_expr_ctx_funcs): Add get_object_address field.
2716 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2717 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2718 (dwarf2_evaluate_property): Add parameter "address". Use it.
2719 (needs_get_obj_addr): New function.
2720 (needs_frame_ctx_funcs): Add get_object_address field.
2721 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2722 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2723 (resolve_dynamic_array): Likewise.
2724
2725 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2726
2727 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2728 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2729 fixed value for records and unions for which some GNAT encodings
2730 are present.
2731
2732 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2733
2734 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2735 rewrite to avoid "else if" and "else" constructs. Should be
2736 a no-op in practice.
2737
2738 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2739
2740 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2741 of lexical block.
2742
2743 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2744
2745 PR c++/17132
2746 * eval.c: Update all calls to find_overload_match.
2747 * valarith.c: Likewise.
2748 (value_user_defined_cpp_op, value_user_defined_op): New
2749 argument NOSIDE. Update all callers.
2750 * valops.c (find_overload_match): New argument NOSIDE.
2751 * value.h (find_overload_match): Update signature.
2752
2753 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2754
2755 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2756 'items' methods instead of 'iteritems' method on dictionaries.
2757
2758 2014-08-15 Doug Evans <dje@google.com>
2759
2760 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2761 closer to use.
2762
2763 2014-08-15 Doug Evans <dje@google.com>
2764
2765 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2766
2767 2014-08-15 Doug Evans <dje@google.com>
2768
2769 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2770
2771 2014-08-15 Doug Evans <dje@google.com>
2772
2773 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2774 unused.
2775
2776 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2777
2778 * dcache.h: Include target.h, to avoid compile time warnings.
2779
2780 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2781
2782 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2783 frame_info" partial declaration.
2784 * gdbarch.h: Regenerate.
2785
2786 2014-08-15 Yao Qi <yao@codesourcery.com>
2787
2788 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2789 Add parameter 'decode_for_pst_p'. Callers update.
2790
2791 2014-08-13 Yao Qi <yao@codesourcery.com>
2792
2793 PR build/17104
2794 * configure.ac: Use local variable 'pos'.
2795 * configure: Regenerated.
2796
2797 2014-08-11 Doug Evans <dje@google.com>
2798
2799 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2800 message, it is redundant with "Reading symbols from ..." message.
2801
2802 2014-08-10 Doug Evans <xdje42@gmail.com>
2803
2804 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2805
2806 2014-08-09 Yao Qi <yao@codesourcery.com>
2807
2808 PR remote/9053
2809 * remote.c (remote_xfer_partial): Remove dead code.
2810
2811 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2812
2813 * ia64-linux-tdep.c: Include "regset.h".
2814 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2815 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2816 (ia64_linux_supply_fpregset): New function.
2817 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2818 (ia64_linux_regset_from_core_section): New function.
2819 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2820 method.
2821
2822 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2823
2824 * m68klinux-tdep.c: Include "regset.h".
2825 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2826 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2827 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2828 (m68k_linux_regset_from_core_section): New function.
2829 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2830 method.
2831
2832 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2833
2834 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2835 function. Move logic to...
2836 (tilegx_linux_regmap): ... this new register map.
2837 (tilegx_linux_regset): Refer to register map, replace supply
2838 method by regcache_supply_regset, and add collect method.
2839 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2840 TILEGX_FIRST_EASY_REGNUM.
2841
2842 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2843
2844 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2845 that calls regcache_supply_regset and handles the EPC register
2846 separately. Move main logic to...
2847 (score7_linux_gregmap): ... this new register map.
2848 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2849 (score7_linux_gregset): Refer to register map. Add collect method.
2850 (score7_linux_regset_from_core_section): Replace
2851 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2852 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2853 (struct regset): Delete unused forward declaraction.
2854 (struct pt_regs): Delete structure definition.
2855 (elf_gregset_t): Delete typedef.
2856
2857 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2858
2859 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2860 (nios2_core_regset): Add collect method.
2861
2862 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2863
2864 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2865 platform-independent and don't write to read-only input buffer.
2866 (m32r_linux_collect_gregset): New function.
2867 (m32r_linux_gregset): Add collect method.
2868
2869 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2870
2871 * hppa-linux-tdep.c (greg_map): Rename to...
2872 (hppa_linux_gregmap): ... this. Also convert to
2873 regcache_map_entry format.
2874 (hppa_linux_supply_regset): Delete function.
2875 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2876 (hppa_linux_fpregmap): ... this new register map.
2877 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2878 register map, replace supply method by regcache_supply_regset, and
2879 add collect method regcache_collect_regset.
2880
2881 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2882
2883 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2884 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2885 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2886 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2887 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2888 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2889 (frv_linux_supply_gregset): Replace main logic by call to
2890 regcache_supply_regset, but keep clearing gr32-gr63.
2891 (frv_linux_supply_fpregset): Delete function.
2892 (frv_linux_gregset): Refer to appropriate register map and add
2893 regcache_collect_regset as the collect method.
2894 (frv_linux_fpregset): Likewise. Also exchange the supply method
2895 by regcache_supply_regset.
2896
2897 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2898
2899 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2900 by call to alpha_supply_int_regs.
2901 (alpha_linux_collect_gregset): New function.
2902 (alpha_linux_supply_fpregset): Replace logic by call to
2903 alpha_supply_fp_regs.
2904 (alpha_linux_collect_fpregset): New function.
2905 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2906
2907 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2908
2909 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2910 by call to regcache_collect_regset.
2911 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2912 instead of aarch64_linux_supply_gregset/_fpregset.
2913 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2914 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2915 header file instead.
2916 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2917 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2918 functions. Move logic to ...
2919 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2920 register maps.
2921 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2922 refer to new register maps, replace *_regset_from_core by
2923 regcache_supply_regset, and also use regcache_collect_regset.
2924 * aarch64-linux-tdep.h: Include "regset.h".
2925 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2926 Delete prototypes.
2927 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2928 macros, moved from C source file.
2929 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2930 variable declarations.
2931
2932 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2933
2934 * s390-linux-nat.c: Include "regset.h".
2935 (regmap_gregset): Delete macro.
2936 (s390_64_regmap_gregset): New register map for
2937 regcache_supply/_collect_regset.
2938 (s390_64_gregset): New regset.
2939 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2940 (regmap_fpregset): Delete macro.
2941 (s390_native_supply, s390_native_collect): Delete functions.
2942 (supply_gregset, fill_gregset): Replace s390-specific regmap
2943 handling by a call to regcache_supply/_collect_regset.
2944 (supply_fpregset, fill_fpregset): Call regcache_supply/
2945 _collect_regset instead of s390_native_supply/_collect.
2946 (fetch_regset, store_regset): Likewise. Also change the last
2947 parameter to a regset instead of a regmap.
2948 (s390_linux_fetch_inferior_registers)
2949 (390_linux_store_inferior_registers): Adjust last parameter in
2950 calls to fetch_regset and store_regset.
2951 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2952 (s390_gregmap): ... this. Also make static const and convert to
2953 regcache_map_entry format.
2954 (s390x_regmap_gregset): Delete.
2955 (s390_regmap_fpregset): Rename to...
2956 (s390_fpregmap): ... this. Make static const and convert to
2957 regcache_map_entry format.
2958 (s390_regmap_upper, s390_regmap_last_break)
2959 (s390x_regmap_last_break, s390_regmap_system_call)
2960 (s390_regmap_tdb): Likewise.
2961 (s390_supply_regset, s390_collect_regset): Remove functions.
2962 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2963 s390_supply_regset.
2964 (s390_gregset, s390_fpregset, s390_upper_regset)
2965 (s390_last_break_regset, s390x_last_break_regset)
2966 (s390_system_call_regset, s390_tdb_regset): Make global and
2967 replace s390_supply/_collect_regset by regcache_supply/
2968 _collect_regset.
2969 (s390x_gregset): Delete.
2970 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2971 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2972 (s390_regmap_fpregset, s390_regmap_last_break)
2973 (s390x_regmap_last_break, s390_regmap_system_call)
2974 (s390_regmap_tdb): Delete global variable declarations.
2975 (s390_gregset, s390_fpregset, s390_last_break_regset)
2976 (s390x_last_break_regset, s390_system_call_regset)
2977 (s390_tdb_regset): New global variable declarations.
2978
2979 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2980
2981 * regcache.c: Include "regset.h".
2982 (regcache_transfer_regset): New local function.
2983 (regcache_supply_regset, regcache_collect_regset): New functions.
2984 * regcache.h (struct regcache_map_entry): New structure.
2985 (REGCACHE_MAP_SKIP): New enum value.
2986 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2987
2988 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2989
2990 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2991 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2992 (ppc_linux_collect_gregset ): Likewise.
2993 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2994 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2995 (ppc_collect_vrregset): Likewise.
2996 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2997 Likewise.
2998
2999 2014-08-07 Yao Qi <yao@codesourcery.com>
3000
3001 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3002 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3003 * remote.c (remote_read_bytes): Likewise.
3004
3005 2014-08-07 Yao Qi <yao@codesourcery.com>
3006
3007 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3008
3009 2014-08-07 Yao Qi <yao@codesourcery.com>
3010
3011 PR remote/17230
3012 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3013 TARGET_XFER_OK instead of 0.
3014
3015 2014-08-07 Gary Benson <gbenson@redhat.com>
3016
3017 * common/common-defs.h: Include errno.h.
3018 * defs.h: Do not include errno.h.
3019 * ada-typeprint.c: Likewise.
3020 * c-typeprint.c: Likewise.
3021 * core-regset.c: Likewise.
3022 * corefile.c: Likewise.
3023 * corelow.c: Likewise.
3024 * event-loop.c: Likewise.
3025 * f-typeprint.c: Likewise.
3026 * gnu-nat.c: Likewise.
3027 * go32-nat.c: Likewise.
3028 * i386gnu-nat.c: Likewise.
3029 * m2-typeprint.c: Likewise.
3030 * nat/linux-btrace.c: Likewise.
3031 * p-typeprint.c: Likewise.
3032 * procfs.c: Likewise.
3033 * remote-sim.c: Likewise.
3034 * rs6000-nat.c: Likewise.
3035 * target.c: Likewise.
3036 * typeprint.c: Likewise.
3037 * ui-file.c: Likewise.
3038 * valops.c: Likewise.
3039 * valprint.c: Likewise.
3040
3041 2014-08-07 Gary Benson <gbenson@redhat.com>
3042
3043 * common/common-defs.h: Include string.h.
3044 * aarch64-tdep.c: Do not include string.h.
3045 * ada-exp.y: Likewise.
3046 * ada-lang.c: Likewise.
3047 * ada-lex.l: Likewise.
3048 * ada-typeprint.c: Likewise.
3049 * ada-valprint.c: Likewise.
3050 * aix-thread.c: Likewise.
3051 * alpha-linux-tdep.c: Likewise.
3052 * alpha-mdebug-tdep.c: Likewise.
3053 * alpha-nat.c: Likewise.
3054 * alpha-osf1-tdep.c: Likewise.
3055 * alpha-tdep.c: Likewise.
3056 * alphanbsd-tdep.c: Likewise.
3057 * amd64-dicos-tdep.c: Likewise.
3058 * amd64-linux-tdep.c: Likewise.
3059 * amd64-nat.c: Likewise.
3060 * amd64-sol2-tdep.c: Likewise.
3061 * amd64fbsd-tdep.c: Likewise.
3062 * amd64obsd-tdep.c: Likewise.
3063 * arch-utils.c: Likewise.
3064 * arm-linux-nat.c: Likewise.
3065 * arm-linux-tdep.c: Likewise.
3066 * arm-tdep.c: Likewise.
3067 * arm-wince-tdep.c: Likewise.
3068 * armbsd-tdep.c: Likewise.
3069 * armnbsd-nat.c: Likewise.
3070 * armnbsd-tdep.c: Likewise.
3071 * armobsd-tdep.c: Likewise.
3072 * avr-tdep.c: Likewise.
3073 * ax-gdb.c: Likewise.
3074 * ax-general.c: Likewise.
3075 * bcache.c: Likewise.
3076 * bfin-tdep.c: Likewise.
3077 * breakpoint.c: Likewise.
3078 * build-id.c: Likewise.
3079 * buildsym.c: Likewise.
3080 * c-exp.y: Likewise.
3081 * c-lang.c: Likewise.
3082 * c-typeprint.c: Likewise.
3083 * c-valprint.c: Likewise.
3084 * charset.c: Likewise.
3085 * cli-out.c: Likewise.
3086 * cli/cli-cmds.c: Likewise.
3087 * cli/cli-decode.c: Likewise.
3088 * cli/cli-dump.c: Likewise.
3089 * cli/cli-interp.c: Likewise.
3090 * cli/cli-logging.c: Likewise.
3091 * cli/cli-script.c: Likewise.
3092 * cli/cli-setshow.c: Likewise.
3093 * cli/cli-utils.c: Likewise.
3094 * coffread.c: Likewise.
3095 * common/agent.c: Likewise.
3096 * common/buffer.c: Likewise.
3097 * common/buffer.h: Likewise.
3098 * common/common-utils.c: Likewise.
3099 * common/filestuff.c: Likewise.
3100 * common/filestuff.c: Likewise.
3101 * common/format.c: Likewise.
3102 * common/print-utils.c: Likewise.
3103 * common/rsp-low.c: Likewise.
3104 * common/signals.c: Likewise.
3105 * common/vec.h: Likewise.
3106 * common/xml-utils.c: Likewise.
3107 * core-regset.c: Likewise.
3108 * corefile.c: Likewise.
3109 * corelow.c: Likewise.
3110 * cp-abi.c: Likewise.
3111 * cp-name-parser.y: Likewise.
3112 * cp-support.c: Likewise.
3113 * cp-valprint.c: Likewise.
3114 * cris-tdep.c: Likewise.
3115 * d-exp.y: Likewise.
3116 * darwin-nat.c: Likewise.
3117 * dbxread.c: Likewise.
3118 * dcache.c: Likewise.
3119 * demangle.c: Likewise.
3120 * dicos-tdep.c: Likewise.
3121 * disasm.c: Likewise.
3122 * doublest.c: Likewise.
3123 * dsrec.c: Likewise.
3124 * dummy-frame.c: Likewise.
3125 * dwarf2-frame.c: Likewise.
3126 * dwarf2loc.c: Likewise.
3127 * dwarf2read.c: Likewise.
3128 * elfread.c: Likewise.
3129 * environ.c: Likewise.
3130 * eval.c: Likewise.
3131 * event-loop.c: Likewise.
3132 * exceptions.c: Likewise.
3133 * exec.c: Likewise.
3134 * expprint.c: Likewise.
3135 * f-exp.y: Likewise.
3136 * f-lang.c: Likewise.
3137 * f-typeprint.c: Likewise.
3138 * f-valprint.c: Likewise.
3139 * fbsd-nat.c: Likewise.
3140 * findcmd.c: Likewise.
3141 * findvar.c: Likewise.
3142 * fork-child.c: Likewise.
3143 * frame.c: Likewise.
3144 * frv-linux-tdep.c: Likewise.
3145 * frv-tdep.c: Likewise.
3146 * gdb.c: Likewise.
3147 * gdb_bfd.c: Likewise.
3148 * gdbarch.c: Likewise.
3149 * gdbarch.sh: Likewise.
3150 * gdbtypes.c: Likewise.
3151 * gnu-nat.c: Likewise.
3152 * gnu-v2-abi.c: Likewise.
3153 * gnu-v3-abi.c: Likewise.
3154 * go-exp.y: Likewise.
3155 * go-lang.c: Likewise.
3156 * go32-nat.c: Likewise.
3157 * guile/guile.c: Likewise.
3158 * guile/scm-auto-load.c: Likewise.
3159 * hppa-hpux-tdep.c: Likewise.
3160 * hppa-linux-nat.c: Likewise.
3161 * hppanbsd-tdep.c: Likewise.
3162 * hppaobsd-tdep.c: Likewise.
3163 * i386-cygwin-tdep.c: Likewise.
3164 * i386-dicos-tdep.c: Likewise.
3165 * i386-linux-tdep.c: Likewise.
3166 * i386-nto-tdep.c: Likewise.
3167 * i386-sol2-tdep.c: Likewise.
3168 * i386-tdep.c: Likewise.
3169 * i386bsd-tdep.c: Likewise.
3170 * i386gnu-nat.c: Likewise.
3171 * i386nbsd-tdep.c: Likewise.
3172 * i386obsd-tdep.c: Likewise.
3173 * i387-tdep.c: Likewise.
3174 * ia64-libunwind-tdep.c: Likewise.
3175 * ia64-linux-nat.c: Likewise.
3176 * inf-child.c: Likewise.
3177 * inf-ptrace.c: Likewise.
3178 * inf-ttrace.c: Likewise.
3179 * infcall.c: Likewise.
3180 * infcmd.c: Likewise.
3181 * inflow.c: Likewise.
3182 * infrun.c: Likewise.
3183 * interps.c: Likewise.
3184 * iq2000-tdep.c: Likewise.
3185 * irix5-nat.c: Likewise.
3186 * jv-exp.y: Likewise.
3187 * jv-lang.c: Likewise.
3188 * jv-typeprint.c: Likewise.
3189 * jv-valprint.c: Likewise.
3190 * language.c: Likewise.
3191 * linux-fork.c: Likewise.
3192 * linux-nat.c: Likewise.
3193 * lm32-tdep.c: Likewise.
3194 * m2-exp.y: Likewise.
3195 * m2-typeprint.c: Likewise.
3196 * m32c-tdep.c: Likewise.
3197 * m32r-linux-nat.c: Likewise.
3198 * m32r-linux-tdep.c: Likewise.
3199 * m32r-rom.c: Likewise.
3200 * m32r-tdep.c: Likewise.
3201 * m68hc11-tdep.c: Likewise.
3202 * m68k-tdep.c: Likewise.
3203 * m68kbsd-tdep.c: Likewise.
3204 * m68klinux-nat.c: Likewise.
3205 * m68klinux-tdep.c: Likewise.
3206 * m88k-tdep.c: Likewise.
3207 * machoread.c: Likewise.
3208 * macrocmd.c: Likewise.
3209 * main.c: Likewise.
3210 * mdebugread.c: Likewise.
3211 * mem-break.c: Likewise.
3212 * memattr.c: Likewise.
3213 * memory-map.c: Likewise.
3214 * mep-tdep.c: Likewise.
3215 * mi/mi-cmd-break.c: Likewise.
3216 * mi/mi-cmd-disas.c: Likewise.
3217 * mi/mi-cmd-env.c: Likewise.
3218 * mi/mi-cmd-stack.c: Likewise.
3219 * mi/mi-cmd-var.c: Likewise.
3220 * mi/mi-cmds.c: Likewise.
3221 * mi/mi-console.c: Likewise.
3222 * mi/mi-getopt.c: Likewise.
3223 * mi/mi-interp.c: Likewise.
3224 * mi/mi-main.c: Likewise.
3225 * mi/mi-parse.c: Likewise.
3226 * microblaze-rom.c: Likewise.
3227 * microblaze-tdep.c: Likewise.
3228 * mingw-hdep.c: Likewise.
3229 * minidebug.c: Likewise.
3230 * minsyms.c: Likewise.
3231 * mips-irix-tdep.c: Likewise.
3232 * mips-linux-tdep.c: Likewise.
3233 * mips-tdep.c: Likewise.
3234 * mips64obsd-tdep.c: Likewise.
3235 * mipsnbsd-tdep.c: Likewise.
3236 * mipsread.c: Likewise.
3237 * mn10300-linux-tdep.c: Likewise.
3238 * mn10300-tdep.c: Likewise.
3239 * monitor.c: Likewise.
3240 * moxie-tdep.c: Likewise.
3241 * mt-tdep.c: Likewise.
3242 * nat/linux-btrace.c: Likewise.
3243 * nat/linux-osdata.c: Likewise.
3244 * nat/linux-procfs.c: Likewise.
3245 * nat/linux-ptrace.c: Likewise.
3246 * nat/linux-waitpid.c: Likewise.
3247 * nbsd-tdep.c: Likewise.
3248 * nios2-linux-tdep.c: Likewise.
3249 * nto-procfs.c: Likewise.
3250 * nto-tdep.c: Likewise.
3251 * objc-lang.c: Likewise.
3252 * objfiles.c: Likewise.
3253 * opencl-lang.c: Likewise.
3254 * osabi.c: Likewise.
3255 * osdata.c: Likewise.
3256 * p-exp.y: Likewise.
3257 * p-lang.c: Likewise.
3258 * p-typeprint.c: Likewise.
3259 * parse.c: Likewise.
3260 * posix-hdep.c: Likewise.
3261 * ppc-linux-nat.c: Likewise.
3262 * ppc-sysv-tdep.c: Likewise.
3263 * ppcfbsd-tdep.c: Likewise.
3264 * ppcnbsd-tdep.c: Likewise.
3265 * ppcobsd-tdep.c: Likewise.
3266 * printcmd.c: Likewise.
3267 * procfs.c: Likewise.
3268 * prologue-value.c: Likewise.
3269 * python/py-auto-load.c: Likewise.
3270 * python/py-gdb-readline.c: Likewise.
3271 * ravenscar-thread.c: Likewise.
3272 * regcache.c: Likewise.
3273 * registry.c: Likewise.
3274 * remote-fileio.c: Likewise.
3275 * remote-m32r-sdi.c: Likewise.
3276 * remote-mips.c: Likewise.
3277 * remote-notif.c: Likewise.
3278 * remote-sim.c: Likewise.
3279 * remote.c: Likewise.
3280 * reverse.c: Likewise.
3281 * rs6000-aix-tdep.c: Likewise.
3282 * ser-base.c: Likewise.
3283 * ser-go32.c: Likewise.
3284 * ser-mingw.c: Likewise.
3285 * ser-pipe.c: Likewise.
3286 * ser-tcp.c: Likewise.
3287 * ser-unix.c: Likewise.
3288 * serial.c: Likewise.
3289 * sh-tdep.c: Likewise.
3290 * sh64-tdep.c: Likewise.
3291 * shnbsd-tdep.c: Likewise.
3292 * skip.c: Likewise.
3293 * sol-thread.c: Likewise.
3294 * solib-dsbt.c: Likewise.
3295 * solib-frv.c: Likewise.
3296 * solib-osf.c: Likewise.
3297 * solib-som.c: Likewise.
3298 * solib-spu.c: Likewise.
3299 * solib-target.c: Likewise.
3300 * solib.c: Likewise.
3301 * somread.c: Likewise.
3302 * source.c: Likewise.
3303 * sparc-nat.c: Likewise.
3304 * sparc-sol2-tdep.c: Likewise.
3305 * sparc-tdep.c: Likewise.
3306 * sparc64-tdep.c: Likewise.
3307 * sparc64fbsd-tdep.c: Likewise.
3308 * sparc64nbsd-tdep.c: Likewise.
3309 * sparcnbsd-tdep.c: Likewise.
3310 * spu-linux-nat.c: Likewise.
3311 * spu-multiarch.c: Likewise.
3312 * spu-tdep.c: Likewise.
3313 * stabsread.c: Likewise.
3314 * stack.c: Likewise.
3315 * std-regs.c: Likewise.
3316 * symfile.c: Likewise.
3317 * symmisc.c: Likewise.
3318 * symtab.c: Likewise.
3319 * target.c: Likewise.
3320 * thread.c: Likewise.
3321 * tilegx-linux-nat.c: Likewise.
3322 * tilegx-tdep.c: Likewise.
3323 * top.c: Likewise.
3324 * tracepoint.c: Likewise.
3325 * tui/tui-command.c: Likewise.
3326 * tui/tui-data.c: Likewise.
3327 * tui/tui-disasm.c: Likewise.
3328 * tui/tui-file.c: Likewise.
3329 * tui/tui-layout.c: Likewise.
3330 * tui/tui-out.c: Likewise.
3331 * tui/tui-regs.c: Likewise.
3332 * tui/tui-source.c: Likewise.
3333 * tui/tui-stack.c: Likewise.
3334 * tui/tui-win.c: Likewise.
3335 * tui/tui-windata.c: Likewise.
3336 * tui/tui-winsource.c: Likewise.
3337 * typeprint.c: Likewise.
3338 * ui-file.c: Likewise.
3339 * ui-out.c: Likewise.
3340 * user-regs.c: Likewise.
3341 * utils.c: Likewise.
3342 * v850-tdep.c: Likewise.
3343 * valarith.c: Likewise.
3344 * valops.c: Likewise.
3345 * valprint.c: Likewise.
3346 * value.c: Likewise.
3347 * varobj.c: Likewise.
3348 * vax-tdep.c: Likewise.
3349 * vaxnbsd-tdep.c: Likewise.
3350 * vaxobsd-tdep.c: Likewise.
3351 * windows-nat.c: Likewise.
3352 * xcoffread.c: Likewise.
3353 * xml-support.c: Likewise.
3354 * xstormy16-tdep.c: Likewise.
3355 * xtensa-linux-nat.c: Likewise.
3356
3357 2014-08-07 Gary Benson <gbenson@redhat.com>
3358
3359 * common/common-defs.h: Include gdb_assert.h.
3360 * aarch64-tdep.c: Do not include gdb_assert.h.
3361 * addrmap.c: Likewise.
3362 * aix-thread.c: Likewise.
3363 * alpha-linux-tdep.c: Likewise.
3364 * alpha-mdebug-tdep.c: Likewise.
3365 * alphanbsd-tdep.c: Likewise.
3366 * amd64-nat.c: Likewise.
3367 * amd64-tdep.c: Likewise.
3368 * amd64bsd-nat.c: Likewise.
3369 * amd64fbsd-nat.c: Likewise.
3370 * amd64fbsd-tdep.c: Likewise.
3371 * amd64nbsd-nat.c: Likewise.
3372 * amd64nbsd-tdep.c: Likewise.
3373 * amd64obsd-nat.c: Likewise.
3374 * amd64obsd-tdep.c: Likewise.
3375 * arch-utils.c: Likewise.
3376 * arm-tdep.c: Likewise.
3377 * armbsd-tdep.c: Likewise.
3378 * auxv.c: Likewise.
3379 * bcache.c: Likewise.
3380 * bfin-tdep.c: Likewise.
3381 * blockframe.c: Likewise.
3382 * breakpoint.c: Likewise.
3383 * bsd-kvm.c: Likewise.
3384 * bsd-uthread.c: Likewise.
3385 * buildsym.c: Likewise.
3386 * c-exp.y: Likewise.
3387 * c-lang.c: Likewise.
3388 * charset.c: Likewise.
3389 * cleanups.c: Likewise.
3390 * cli-out.c: Likewise.
3391 * cli/cli-decode.c: Likewise.
3392 * cli/cli-dump.c: Likewise.
3393 * cli/cli-logging.c: Likewise.
3394 * cli/cli-script.c: Likewise.
3395 * cli/cli-utils.c: Likewise.
3396 * coffread.c: Likewise.
3397 * common/common-utils.c: Likewise.
3398 * common/queue.h: Likewise.
3399 * common/signals.c: Likewise.
3400 * common/vec.h: Likewise.
3401 * complaints.c: Likewise.
3402 * completer.c: Likewise.
3403 * corelow.c: Likewise.
3404 * cp-abi.c: Likewise.
3405 * cp-name-parser.y: Likewise.
3406 * cp-namespace.c: Likewise.
3407 * cp-support.c: Likewise.
3408 * cris-tdep.c: Likewise.
3409 * dbxread.c: Likewise.
3410 * dictionary.c: Likewise.
3411 * doublest.c: Likewise.
3412 * dsrec.c: Likewise.
3413 * dummy-frame.c: Likewise.
3414 * dwarf2-frame-tailcall.c: Likewise.
3415 * dwarf2-frame.c: Likewise.
3416 * dwarf2expr.c: Likewise.
3417 * dwarf2loc.c: Likewise.
3418 * dwarf2read.c: Likewise.
3419 * eval.c: Likewise.
3420 * event-loop.c: Likewise.
3421 * exceptions.c: Likewise.
3422 * expprint.c: Likewise.
3423 * f-valprint.c: Likewise.
3424 * fbsd-nat.c: Likewise.
3425 * findvar.c: Likewise.
3426 * frame-unwind.c: Likewise.
3427 * frame.c: Likewise.
3428 * frv-tdep.c: Likewise.
3429 * gcore.c: Likewise.
3430 * gdb-dlfcn.c: Likewise.
3431 * gdb_bfd.c: Likewise.
3432 * gdbarch.c: Likewise.
3433 * gdbarch.sh: Likewise.
3434 * gdbtypes.c: Likewise.
3435 * gnu-nat.c: Likewise.
3436 * gnu-v3-abi.c: Likewise.
3437 * go-lang.c: Likewise.
3438 * guile/scm-exception.c: Likewise.
3439 * guile/scm-gsmob.c: Likewise.
3440 * guile/scm-lazy-string.c: Likewise.
3441 * guile/scm-math.c: Likewise.
3442 * guile/scm-pretty-print.c: Likewise.
3443 * guile/scm-safe-call.c: Likewise.
3444 * guile/scm-utils.c: Likewise.
3445 * guile/scm-value.c: Likewise.
3446 * h8300-tdep.c: Likewise.
3447 * hppa-hpux-nat.c: Likewise.
3448 * hppa-tdep.c: Likewise.
3449 * hppanbsd-tdep.c: Likewise.
3450 * hppaobsd-tdep.c: Likewise.
3451 * i386-darwin-nat.c: Likewise.
3452 * i386-darwin-tdep.c: Likewise.
3453 * i386-nto-tdep.c: Likewise.
3454 * i386-tdep.c: Likewise.
3455 * i386bsd-nat.c: Likewise.
3456 * i386fbsd-tdep.c: Likewise.
3457 * i386gnu-nat.c: Likewise.
3458 * i386nbsd-tdep.c: Likewise.
3459 * i386obsd-tdep.c: Likewise.
3460 * i387-tdep.c: Likewise.
3461 * ia64-libunwind-tdep.c: Likewise.
3462 * ia64-tdep.c: Likewise.
3463 * inf-ptrace.c: Likewise.
3464 * inf-ttrace.c: Likewise.
3465 * infcall.c: Likewise.
3466 * infcmd.c: Likewise.
3467 * infrun.c: Likewise.
3468 * inline-frame.c: Likewise.
3469 * interps.c: Likewise.
3470 * jv-lang.c: Likewise.
3471 * jv-typeprint.c: Likewise.
3472 * linux-fork.c: Likewise.
3473 * linux-nat.c: Likewise.
3474 * linux-thread-db.c: Likewise.
3475 * m32c-tdep.c: Likewise.
3476 * m32r-linux-nat.c: Likewise.
3477 * m32r-tdep.c: Likewise.
3478 * m68k-tdep.c: Likewise.
3479 * m68kbsd-nat.c: Likewise.
3480 * m68kbsd-tdep.c: Likewise.
3481 * m88k-tdep.c: Likewise.
3482 * machoread.c: Likewise.
3483 * macroexp.c: Likewise.
3484 * macrotab.c: Likewise.
3485 * maint.c: Likewise.
3486 * mdebugread.c: Likewise.
3487 * memory-map.c: Likewise.
3488 * mep-tdep.c: Likewise.
3489 * mi/mi-common.c: Likewise.
3490 * microblaze-tdep.c: Likewise.
3491 * mingw-hdep.c: Likewise.
3492 * mips-linux-nat.c: Likewise.
3493 * mips-linux-tdep.c: Likewise.
3494 * mips-tdep.c: Likewise.
3495 * mips64obsd-tdep.c: Likewise.
3496 * mipsnbsd-tdep.c: Likewise.
3497 * mn10300-linux-tdep.c: Likewise.
3498 * mn10300-tdep.c: Likewise.
3499 * moxie-tdep.c: Likewise.
3500 * mt-tdep.c: Likewise.
3501 * nat/linux-btrace.c: Likewise.
3502 * nat/linux-osdata.c: Likewise.
3503 * nat/linux-ptrace.c: Likewise.
3504 * nat/mips-linux-watch.c: Likewise.
3505 * nios2-linux-tdep.c: Likewise.
3506 * nios2-tdep.c: Likewise.
3507 * objc-lang.c: Likewise.
3508 * objfiles.c: Likewise.
3509 * obsd-nat.c: Likewise.
3510 * opencl-lang.c: Likewise.
3511 * osabi.c: Likewise.
3512 * parse.c: Likewise.
3513 * ppc-linux-nat.c: Likewise.
3514 * ppc-sysv-tdep.c: Likewise.
3515 * ppcfbsd-nat.c: Likewise.
3516 * ppcfbsd-tdep.c: Likewise.
3517 * ppcnbsd-nat.c: Likewise.
3518 * ppcnbsd-tdep.c: Likewise.
3519 * ppcobsd-nat.c: Likewise.
3520 * ppcobsd-tdep.c: Likewise.
3521 * printcmd.c: Likewise.
3522 * procfs.c: Likewise.
3523 * prologue-value.c: Likewise.
3524 * psymtab.c: Likewise.
3525 * python/py-lazy-string.c: Likewise.
3526 * python/py-value.c: Likewise.
3527 * regcache.c: Likewise.
3528 * reggroups.c: Likewise.
3529 * registry.c: Likewise.
3530 * remote-sim.c: Likewise.
3531 * remote.c: Likewise.
3532 * rs6000-aix-tdep.c: Likewise.
3533 * rs6000-tdep.c: Likewise.
3534 * s390-linux-tdep.c: Likewise.
3535 * score-tdep.c: Likewise.
3536 * ser-base.c: Likewise.
3537 * ser-mingw.c: Likewise.
3538 * sh-tdep.c: Likewise.
3539 * sh64-tdep.c: Likewise.
3540 * solib-darwin.c: Likewise.
3541 * solib-spu.c: Likewise.
3542 * solib-svr4.c: Likewise.
3543 * source.c: Likewise.
3544 * sparc-nat.c: Likewise.
3545 * sparc-sol2-tdep.c: Likewise.
3546 * sparc-tdep.c: Likewise.
3547 * sparc64-sol2-tdep.c: Likewise.
3548 * sparc64-tdep.c: Likewise.
3549 * sparc64fbsd-tdep.c: Likewise.
3550 * sparc64nbsd-tdep.c: Likewise.
3551 * sparc64obsd-tdep.c: Likewise.
3552 * sparcnbsd-tdep.c: Likewise.
3553 * sparcobsd-tdep.c: Likewise.
3554 * spu-multiarch.c: Likewise.
3555 * spu-tdep.c: Likewise.
3556 * stabsread.c: Likewise.
3557 * stack.c: Likewise.
3558 * symfile.c: Likewise.
3559 * symtab.c: Likewise.
3560 * target-descriptions.c: Likewise.
3561 * target-memory.c: Likewise.
3562 * target.c: Likewise.
3563 * tic6x-linux-tdep.c: Likewise.
3564 * tic6x-tdep.c: Likewise.
3565 * tilegx-linux-nat.c: Likewise.
3566 * tilegx-tdep.c: Likewise.
3567 * top.c: Likewise.
3568 * tramp-frame.c: Likewise.
3569 * tui/tui-out.c: Likewise.
3570 * tui/tui-winsource.c: Likewise.
3571 * ui-out.c: Likewise.
3572 * user-regs.c: Likewise.
3573 * utils.c: Likewise.
3574 * v850-tdep.c: Likewise.
3575 * valops.c: Likewise.
3576 * value.c: Likewise.
3577 * varobj.c: Likewise.
3578 * vax-nat.c: Likewise.
3579 * xml-syscall.c: Likewise.
3580 * xml-tdesc.c: Likewise.
3581 * xstormy16-tdep.c: Likewise.
3582 * xtensa-linux-nat.c: Likewise.
3583 * xtensa-tdep.c: Likewise.
3584
3585 2014-08-07 Gary Benson <gbenson@redhat.com>
3586
3587 * common/common-defs.h: Include common-utils.h.
3588 * defs.h: Do not include common-utils.h.
3589 * common/gdb_assert.h: Likewise.
3590 * darwin-nat.h: Likewise.
3591 * nat/linux-btrace.c: Likewise.
3592 * target/waitstatus.h: Likewise.
3593
3594 2014-08-07 Gary Benson <gbenson@redhat.com>
3595
3596 * common/common-defs.h: Include ptid.h.
3597 * defs.h: Do not include ptid.h.
3598 * inferior.h: Likewise.
3599 * infrun.h: Likewise.
3600 * nat/linux-btrace.h: Likewise.
3601 * nat/linux-osdata.h: Likewise.
3602 * target/waitstatus.h: Likewise.
3603
3604 2014-08-07 Gary Benson <gbenson@redhat.com>
3605
3606 * common/common-defs.h: Include gdb_locale.h.
3607 * defs.h: Do not include gdb_locale.h.
3608
3609 2014-08-07 Gary Benson <gbenson@redhat.com>
3610
3611 * common/common-defs.h: Include gdb/signals.h.
3612 * defs.h: Do not include gdb/signals.h.
3613
3614 2014-08-07 Gary Benson <gbenson@redhat.com>
3615
3616 * common/common-defs.h: Include pathmax.h.
3617 * defs.h: Do not include pathmax.h.
3618
3619 2014-08-07 Gary Benson <gbenson@redhat.com>
3620
3621 * common/common-defs.h: Include libiberty.h.
3622 * defs.h: Do not include libiberty.h.
3623 * common/queue.h: Likewise.
3624 * cp-name-parser.y: Likewise.
3625 * mi/mi-cmd-catch.c: Likewise.
3626 * python/python.c: Likewise.
3627
3628 2014-08-07 Gary Benson <gbenson@redhat.com>
3629
3630 * common/common-defs.h: Include ansidecl.h.
3631 * defs.h: Do not include ansidecl.h.
3632 * common/buffer.h: Likewise.
3633 * common/common-utils.h: Likewise.
3634
3635 2014-08-07 Gary Benson <gbenson@redhat.com>
3636
3637 * common/common-defs.h: Include stddef.h.
3638 * defs.h: Do not include stddef.h.
3639 * common/common-utils.h: Likewise.
3640 * amd64fbsd-nat.c: Likewise.
3641 * bcache.c: Likewise.
3642 * charset.c: Likewise.
3643 * common/buffer.h: Likewise.
3644 * common/vec.h: Likewise.
3645 * i386bsd-nat.c: Likewise.
3646 * nat/linux-btrace.h: Likewise.
3647 * ppcfbsd-nat.c: Likewise.
3648 * ppcnbsd-tdep.h: Likewise.
3649 * ppcobsd-nat.c: Likewise.
3650 * ppcobsd-tdep.h: Likewise.
3651 * python/py-gdb-readline.c: Likewise.
3652
3653 2014-08-07 Gary Benson <gbenson@redhat.com>
3654
3655 * common/common-defs.h: Include stdarg.h.
3656 * defs.h: Do not include stdarg.h.
3657 * ada-lang.c: Likewise.
3658 * common/common-utils.h: Likewise.
3659 * guile/scm-string.c: Likewise.
3660 * guile/scm-utils.c: Likewise.
3661 * m32c-tdep.c: Likewise.
3662
3663 2014-08-07 Gary Benson <gbenson@redhat.com>
3664
3665 * common/common-defs.h: Include stdlib.h.
3666 * defs.h: Do not include stdlib.h.
3667 * addrmap.c: Likewise.
3668 * bcache.c: Likewise.
3669 * common/buffer.c: Likewise.
3670 * common/common-utils.c: Likewise.
3671 * cp-name-parser.y: Likewise.
3672 * go32-nat.c: Likewise.
3673 * mn10300-linux-tdep.c: Likewise.
3674 * nat/linux-osdata.c: Likewise.
3675 * tui/tui.c: Likewise.
3676 * windows-nat.c: Likewise.
3677
3678 2014-08-07 Gary Benson <gbenson@redhat.com>
3679
3680 * common/common-defs.h: Include stdio.h.
3681 * defs.h: Do not include stdio.h.
3682 * ada-lang.c: Likewise.
3683 * common/buffer.c: Likewise.
3684 * common/common-utils.c: Likewise.
3685 * cp-name-parser.y: Likewise.
3686 * gnu-nat.c: Likewise.
3687 * go32-nat.c: Likewise.
3688 * i386gnu-nat.c: Likewise.
3689 * proc-api.c: Likewise.
3690 * proc-events.c: Likewise.
3691 * proc-flags.c: Likewise.
3692 * proc-why.c: Likewise.
3693 * python/python-internal.h: Likewise.
3694 * target-memory.c: Likewise.
3695 * tui/tui-io.c: Likewise.
3696 * tui/tui.c: Likewise.
3697
3698 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3699
3700 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3701 (scan_dyntag_auxv): Same.
3702
3703 2014-08-06 Yao Qi <yao@codesourcery.com>
3704
3705 * amd64-linux-nat.c: Remove duplicated include
3706 "x86-linux-nat.h".
3707 * i386-linux-nat.c: Likewise.
3708
3709 2014-08-06 Yao Qi <yao@codesourcery.com>
3710
3711 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3712 operand" with "Special opcode" in comments.
3713
3714 2014-08-05 Gary Benson <gbenson@redhat.com>
3715
3716 * interps.c (initialize_interps): Remove prototype.
3717 (interpreter_initialized): Remove static global.
3718 (interp_add): Do not call initialize_interps.
3719 (initialize_interps): Remove function.
3720
3721 2014-08-05 Gary Benson <gbenson@redhat.com>
3722
3723 * utils.c (vwarning): Remove spurious va_end.
3724
3725 2014-08-05 Alan Modra <amodra@gmail.com>
3726
3727 * charset.c (convert_between_encodings): Cast result of obstack_base.
3728 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3729 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3730 (read_unwind_info): Use size_t for some locals.
3731 * jit.c (finalize_symtab): Likewise.
3732 * utils.c (hashtab_obstack_allocate): Likewise.
3733 * symmisc.c (print_objfile_statistics): Update format strings.
3734
3735 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3736
3737 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3738 (Changes in GDB 7.8): ... here.
3739
3740 2014-08-04 Tom Tromey <tromey@redhat.com>
3741
3742 * target.c (set_targetdebug): New function.
3743 (initialize_targets): Pass set_targetdebug when creating "set
3744 debug target".
3745
3746 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3747
3748 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3749 if detecting a variable-sized field that is not the last field.
3750 Fix struct type length computation.
3751
3752 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3753
3754 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3755 Add debug trace.
3756
3757 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3758
3759 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3760 Remove "+ 8" offset in computation of CHAIN_VMA.
3761
3762 2014-07-31 Doug Evans <dje@google.com>
3763
3764 * inflow.c (child_terminal_inferior): Add comment.
3765 (child_terminal_ours_for_output): Add comment.
3766 (child_terminal_ours): Add comment.
3767 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3768 (linux_nat_terminal_ours): Add comment.
3769
3770 2014-07-31 Gary Benson <gbenson@redhat.com>
3771
3772 * common/btrace-common.h: Do not include defs.h or server.h.
3773 * nat/mips-linux-watch.h: Likewise.
3774 * gdb-dlfcn.h: Do not include defs.h.
3775 * tracefile.h: Likewise.
3776
3777 2014-07-30 Roland McGrath <mcgrathr@google.com>
3778
3779 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3780
3781 2014-07-30 Tom Tromey <tromey@redhat.com>
3782
3783 * bsd-kvm.c (bsd_kvm_open): Constify.
3784 * corelow.c (core_open): Constify.
3785 * ctf.c (ctf_open): Constify.
3786 * dbug-rom.c (dbug_open): Constify.
3787 * exec.c (exec_open): Constify.
3788 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3789 * microblaze-rom.c (picobug_open): Constify.
3790 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3791 Constify.
3792 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3793 * record-btrace.c (record_btrace_open): Constify.
3794 * record-full.c (record_full_core_open_1, record_full_open_1)
3795 (record_full_open): Constify.
3796 * remote-m32r-sdi.c (m32r_open): Constify.
3797 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3798 (rockhopper_open, lsi_open): Constify.
3799 * remote-sim.c (gdbsim_open): Constify.
3800 * remote.c (remote_open, extended_remote_open, remote_open_1):
3801 Constify.
3802 * target.h (struct target_ops) <to_open>: Make "arg" const.
3803 * tracefile-tfile.c (tfile_open): Constify.
3804
3805 2014-07-30 Tom Tromey <tromey@redhat.com>
3806
3807 * breakpoint.c (map_breakpoint_numbers): Update.
3808 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3809 (get_number_const): New function.
3810 (get_number): Rewrite using get_number_const.
3811 (init_number_or_range): Make "string" const.
3812 (number_is_in_list): Make "list" const.
3813 * cli/cli-utils.h (get_number_const): Declare.
3814 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3815 (init_number_or_range, number_is_in_list): Update.
3816 * printcmd.c (map_display_numbers): Update.
3817 * value.c (value_from_history_ref): Constify.
3818 * value.h (value_from_history_ref): Update.
3819
3820 2014-07-30 Tom Tromey <tromey@redhat.com>
3821
3822 * corefile.c (hook_type, call_extra_exec_file_hooks)
3823 (specify_exec_file_hook): Constify.
3824 * exec.c (exec_file_attach): Make "filename" const.
3825 * gdbcore.h (deprecated_exec_file_display_hook)
3826 (specify_exec_file_hook, exec_file_attach): Constify.
3827 * main.c (captured_main): Use catch_command_errors_const.
3828
3829 2014-07-30 Tom Tromey <tromey@redhat.com>
3830
3831 * target.c (open_target): New function.
3832 (add_target_with_completer, add_deprecated_target_alias): Use
3833 set_cmd_sfunc, set_cmd_context.
3834 (debug_to_open): Remove.
3835 (setup_target_debug): Update.
3836
3837 2014-07-30 Yao Qi <yao@codesourcery.com>
3838
3839 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3840 comments.
3841 * parse.c (exp_iterate): Update comments.
3842
3843 2014-07-30 Gary Benson <gbenson@redhat.com>
3844
3845 * common/common-defs.h: New file.
3846 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3847 * defs.h: Include common-defs.h.
3848 Do not include config.h or build-gnulib/config.h.
3849
3850 2014-07-30 Gary Benson <gbenson@redhat.com>
3851
3852 * common/common-utils.h: Do not include config.h.
3853 * nat/linux-btrace.h: Likewise.
3854
3855 2014-07-30 Gary Benson <gbenson@redhat.com>
3856
3857 * btrace.c: Include defs.h.
3858 * common/ptid.c: Include defs.h or server.h as appropriate.
3859 * nat/mips-linux-watch.c: Likewise.
3860
3861 2014-07-29 Tom Tromey <tromey@redhat.com>
3862
3863 * target.c (target_is_pushed): Simplify.
3864
3865 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3866
3867 GDB 7.8 released.
3868
3869 2014-07-29 Yao Qi <yao@codesourcery.com>
3870
3871 PR gdb/17206
3872 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3873
3874 2014-07-28 Doug Evans <xdje42@gmail.com>
3875
3876 PR guile/17203
3877 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3878 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3879 parameters.
3880
3881 2014-07-28 Will Newton <will.newton@linaro.org>
3882
3883 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3884 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3885 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3886 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3887 (THUMB2_EABI_SYSCALL): Likewise.
3888 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3889 struct tramp_frame.
3890 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3891 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3892
3893 2014-07-27 Doug Evans <xdje42@gmail.com>
3894
3895 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3896
3897 2014-07-27 Doug Evans <xdje42@gmail.com>
3898
3899 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3900
3901 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3902 Doug Evans <xdje42@gmail.com>
3903
3904 PR guile/17146
3905 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3906 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3907 * configure.ac: Try to use guild to compile an scm file, if it fails
3908 then disable guile support.
3909 * configure: Regenerate.
3910 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3911 GUILE_FILE_LIST.
3912 (GUILE_COMPILED_FILES): New variable.
3913 (GUILE_FILES) Update.
3914 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3915 (stamp-guile): Compile scm files.
3916 * guile/guile.c (boot_guile_support): New function.
3917 (standard_throw_args_p): New function.
3918 (print_standard_throw_error, print_throw_error): New functions.
3919 (handle_boot_error): New function.
3920 (initialize_scheme_side): Rewrite to call boot_guile_support.
3921 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3922 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3923
3924 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3925 Doug Evans <xdje42@gmail.com>
3926
3927 PR guile/17146
3928 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3929 * guile/lib/gdb/support.scm: New file.
3930 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3931 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3932 All uses updated.
3933 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3934 All uses updated.
3935 (%assert-type): Ditto, and renamed to assert-type.
3936 (%exception-print-style): Delete.
3937
3938 2014-07-26 Doug Evans <xdje42@gmail.com>
3939
3940 PR build/17105
3941 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3942 * configure: Regenerate.
3943 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3944 PYTHON_FILES.
3945 (PYTHON_FILES): New variable.
3946 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3947 (GUILE_FILES): New variable.
3948 (stamp-python, install-python, uninstall-python): Handle empty
3949 file list.
3950 (stamp-guile, install-guile, uninstall-guile): Ditto.
3951
3952 2014-07-26 Doug Evans <xdje42@gmail.com>
3953
3954 PR guile/17177
3955 * guile/lib/gdb.scm (pretty-printers): Export.
3956 (set-pretty-printers!): Export.
3957 * guile/lib/gdb/printing.scm (gdb module): Update.
3958 (prepend-pretty-printer!, append-pretty-printer!): Update.
3959 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3960 (pretty_printer_list_var): Delete.
3961 (pretty_printer_list): New static global.
3962 (gdbscm_pretty_printers): New function.
3963 (gdbscm_set_pretty_printers_x): New function.
3964 (ppscm_find_pretty_printer_from_gdb): Update.
3965 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3966 (gdbscm_initialize_pretty_printers): Update.
3967
3968 2014-07-26 Doug Evans <xdje42@gmail.com>
3969
3970 PR 17185
3971 * configure.ac: Add check for header gc/gc.h.
3972 Add check for function setenv.
3973 * configure: Regenerate.
3974 * config.in: Regenerate.
3975 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3976
3977 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3978
3979 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3980 variation in gdbarch matching.
3981
3982 2014-07-25 Tom Tromey <tromey@redhat.com>
3983
3984 * exec.c (using_exec_ops): Remove.
3985 (exec_close_1): Update. Remove extraneous block, reindent.
3986 (add_target_sections): Use target_is_pushed.
3987
3988 2014-07-25 Pedro Alves <palves@redhat.com>
3989
3990 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3991 * monitor.c (monitor_create_inferior): Likewise.
3992 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3993 * remote-sim.c (gdbsim_create_inferior): Likewise.
3994 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3995 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3996 * windows-nat.c (do_initial_windows_stuff): Likewise.
3997
3998 2014-07-25 Pedro Alves <palves@redhat.com>
3999
4000 * NEWS: Mention signal passing and "signal" command changes.
4001 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4002 comment.
4003 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4004 call.
4005 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4006 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4007 (jump_command): Adjust clear_proceed_status call.
4008 (signal_command): Warn if other thread that are resumed have
4009 signals that will be delivered. Adjust clear_proceed_status call.
4010 (until_next_command, finish_command)
4011 (proceed_after_attach_callback, attach_command_post_wait)
4012 (attach_command): Adjust clear_proceed_status call.
4013 * infrun.c (proceed_after_vfork_done): Likewise.
4014 (proceed_after_attach_callback): Adjust comment.
4015 (clear_proceed_status_thread): Clear stop_signal if not in pass
4016 state.
4017 (clear_proceed_status_callback): Delete.
4018 (clear_proceed_status): New 'step' parameter. Only clear the
4019 proceed status of threads the command being prepared is about to
4020 resume.
4021 (proceed): If passed in an explicit signal, override stop_signal
4022 with it. Don't pass the last stop signal to the thread we're
4023 resuming.
4024 (init_wait_for_inferior): Adjust clear_proceed_status call.
4025 (switch_back_to_stepped_thread): Clear the signal if it should not
4026 be passed.
4027 * infrun.h (clear_proceed_status): New 'step' parameter.
4028 (user_visible_resume_ptid): Add comment.
4029 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4030 signal is in pass state.
4031 * remote.c (append_pending_thread_resumptions): Likewise.
4032 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4033
4034 2014-07-25 Tom Tromey <tromey@redhat.com>
4035
4036 * target.h (target_stopped_data_address)
4037 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4038 parentheses.
4039
4040 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4041
4042 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4043 comments.
4044 (avr_pointer_to_address): Likewise.
4045
4046 2014-07-24 Tom Tromey <tromey@redhat.com>
4047
4048 * monitor.c (compile_pattern): Update.
4049 * target.h (struct target_ops) <to_shortname, to_longname,
4050 to_doc>: Now const.
4051
4052 2014-07-24 Tom Tromey <tromey@redhat.com>
4053
4054 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4055 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4056 (add_info_alias, add_com): Make "doc" const.
4057 (print_doc_line): Make "str" const.
4058 (delete_cmd): Update.
4059 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4060 (print_doc_line): Update.
4061 * cli/cli-script.c (document_command): Update.
4062 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4063 (add_com, add_info, add_info_alias): Update.
4064 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4065 * python/py-cmd.c (cmdpy_destroyer): Update.
4066
4067 2014-07-24 Tom Tromey <tromey@redhat.com>
4068
4069 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4070 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4071 (help_cmd_list): Constify.
4072 (lookup_cmd): Update.
4073 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4074 const.
4075 (help_cmd_list, apropos_cmd): Update.
4076 * cli/cli-script.c (show_user): Update.
4077 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4078 * cli/cli-setshow.h (cmd_show_list): Update.
4079 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4080 (cmd_show_list): Update.
4081 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4082 * python/py-cmd.c (cmdpy_destroyer): Update.
4083
4084 2014-07-24 Tom Tromey <tromey@redhat.com>
4085
4086 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4087 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4088 const.
4089 * command.h (deprecate_cmd): Update.
4090 * maint.c (maintenance_do_deprecate): Add casts.
4091
4092 2014-07-24 Tom Tromey <tromey@redhat.com>
4093
4094 * cli/cli-decode.c (help_cmd): Make parameter "const".
4095 * cli/cli-decode.h (help_cmd): Update.
4096
4097 2014-07-24 Tom Tromey <tromey@redhat.com>
4098
4099 * stack.c (up_silently_base, down_silently_base): Make argument
4100 const.
4101
4102 2014-07-24 Tom Tromey <tromey@redhat.com>
4103
4104 * solib.c (solib_add): Make "pattern" const.
4105 * solib.h (solib_add): Update.
4106
4107 2014-07-24 Tom Tromey <tromey@redhat.com>
4108
4109 * remote.c (remote_serial_open, print_packet, putpkt)
4110 (putpkt_binary): Constify.
4111 * remote.h (putpkt): Update.
4112
4113 2014-07-24 Tom Tromey <tromey@redhat.com>
4114
4115 * monitor.c (monitor_open): Make "args" const.
4116 * monitor.h (monitor_open): Update.
4117
4118 2014-07-24 Tom Tromey <tromey@redhat.com>
4119
4120 * maint.c (match_bfd_flags): Make "string" const.
4121 (print_bfd_section_info): Remove casts.
4122 (print_objfile_section_info): Make "string" const.
4123
4124 2014-07-24 Tom Tromey <tromey@redhat.com>
4125
4126 * inf-child.c (inf_child_open_target): Make "arg" const.
4127 * inf-child.h (inf_child_open_target): Update.
4128
4129 2014-07-24 Tom Tromey <tromey@redhat.com>
4130
4131 * environ.c (unset_in_environ): Make "var" const.
4132 * environ.h (unset_in_environ): Update.
4133
4134 2014-07-24 Tom Tromey <tromey@redhat.com>
4135
4136 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4137 Make "cmd" const.
4138 (scan_filename_with_cleanup): Likewise.
4139 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4140 Make arguments const.
4141 (restore_command): Update.
4142
4143 2014-07-24 Pedro Alves <palves@redhat.com>
4144
4145 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4146
4147 2014-07-24 Tom Tromey <tromey@redhat.com>
4148 Gary Benson <gbenson@redhat.com>
4149
4150 * nat/linux-ptrace.c (additional_flags): New global.
4151 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4152 additional_flags; don't check GDBSERVER.
4153 (linux_ptrace_set_additional_flags): New function.
4154 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4155 Declare.
4156 * linux-nat.c (_initialize_linux_nat): Call
4157 linux_ptrace_set_additional_flags.
4158
4159 2014-07-24 Tom Tromey <tromey@redhat.com>
4160
4161 * make-target-delegates (munge_type, write_debugmethod): New
4162 functions.
4163 (debug_names): New global.
4164 ($TARGET_DEBUG_PRINTER): New global.
4165 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4166 name.
4167 Write debug methods. Generate init_debug_target.
4168 * target-debug.h: New file.
4169 * target-delegates.c: Rebuild.
4170 * target.c: Include target-debug.h.
4171 (debug_target): Hoist definition.
4172 (target_kill, target_get_section_table, target_memory_map)
4173 (target_flash_erase, target_flash_done, target_detach)
4174 (target_disconnect, target_wait, target_resume)
4175 (target_pass_signals, target_program_signals, target_follow_fork)
4176 (target_mourn_inferior, target_search_memory)
4177 (target_thread_address_space, target_close)
4178 (target_find_new_threads, target_core_of_thread)
4179 (target_verify_memory, target_insert_mask_watchpoint)
4180 (target_remove_mask_watchpoint): Remove targetdebug code.
4181 (debug_to_post_attach, debug_to_prepare_to_store)
4182 (debug_to_files_info, debug_to_insert_breakpoint)
4183 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4184 (debug_to_region_ok_for_hw_watchpoint)
4185 (debug_to_can_accel_watchpoint_condition)
4186 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4187 (debug_to_watchpoint_addr_within_range)
4188 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4189 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4190 (debug_to_terminal_init, debug_to_terminal_inferior)
4191 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4192 (debug_to_terminal_save_ours, debug_to_terminal_info)
4193 (debug_to_load, debug_to_post_startup_inferior)
4194 (debug_to_insert_fork_catchpoint)
4195 (debug_to_remove_fork_catchpoint)
4196 (debug_to_insert_vfork_catchpoint)
4197 (debug_to_remove_vfork_catchpoint)
4198 (debug_to_insert_exec_catchpoint)
4199 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4200 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4201 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4202 (setup_target_debug): Call init_debug_target.
4203 * target.h (TARGET_DEBUG_PRINTER): New macro.
4204 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4205 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4206
4207 2014-07-24 Gary Benson <gbenson@redhat.com>
4208
4209 * exceptions.h (throw_vfatal): Renamed to...
4210 (throw_vquit): New declaration.
4211 (throw_quit): Likewise.
4212 * exceptions.c (throw_vfatal): Renamed to...
4213 (throw_vquit): New function.
4214 (throw_quit): Likewise.
4215 (throw_error): Call throw_verror rather than throw_it.
4216 * utils.h (vfatal): Removed.
4217 (fatal): Likewise.
4218 * utils.c (vfatal): Removed.
4219 (fatal): Likewise.
4220 (internal_verror): Replaced call to fatal with call to throw_quit.
4221 (quit): Replaced calls to fatal with calls to throw_quit.
4222
4223 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4224
4225 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4226 target_read_code.
4227
4228 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4229
4230 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4231 less than zero in conditional expression.
4232
4233 2014-07-23 Tom Tromey <tromey@redhat.com>
4234
4235 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4236 ($INTRO_PART): Don't match whitespace.
4237 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4238 argument matching.
4239 ($METHOD): Add $METHOD_TRAILER.
4240 (trim): Rewrite.
4241 (scan_target_h): New sub.
4242 Change main loop not to collect state.
4243 * target-delegates.c: Rebuild.
4244
4245 2014-07-23 Gary Benson <gbenson@redhat.com>
4246
4247 * cp-support.c (gdb_demangle): Fix build on systems without
4248 sigaltstack.
4249
4250 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4251
4252 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4253 for reference entry value target data value.
4254
4255 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4256
4257 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4258 value_available_contents_eq.
4259
4260 2014-07-22 Pedro Alves <palves@redhat.com>
4261
4262 * value.c (allocate_optimized_out_value): Don't mark value as
4263 non-lazy.
4264
4265 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4266
4267 * MAINTAINERS (Write After Approval): Update my email address.
4268
4269 2014-07-20 Doug Evans <dje@google.com>
4270
4271 PR server/17147
4272 * remote.c (putpkt_binary): Add text to error message.
4273
4274 2014-07-20 Yao Qi <yao@codesourcery.com>
4275
4276 * eval.c: Remove "Chill" from comments.
4277 * gdbtypes.h: Likewise.
4278 * symtab.h: Likewise.
4279
4280 2014-07-20 Yao Qi <yao@codesourcery.com>
4281
4282 * std-operator.def: Update comments to TERNOP_SLICE.
4283
4284 2014-07-20 Yao Qi <yao@codesourcery.com>
4285
4286 * std-operator.def: Remove BINOP_RANGE.
4287 * breakpoint.c (watchpoint_exp_is_const): Update.
4288 * expprint.c (dump_subexp_body_standard): Likewise.
4289 * eval.c (init_array_element): Remove dead code.
4290 (evaluate_subexp_standard): Likewise.
4291
4292 2014-07-20 Yao Qi <yao@codesourcery.com>
4293
4294 * std-operator.def: Remove BINOP_IN.
4295 * breakpoint.c (watchpoint_exp_is_const): Update.
4296 * eval.c (evaluate_subexp_standard): Likewise.
4297 * expprint.c (dump_subexp_body_standard): Likewise.
4298
4299 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4300
4301 * microblaze-tdep.c (microblaze_register_names): Add
4302 the rshr and rslr register names.
4303 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4304 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4305 Use of tdesc_numbered_register. Use of
4306 microblaze_register_g_packet_guesses. Use of
4307 tdesc_use_registers. Use of set_gdbarch_register_type.
4308 (microblaze_register_g_packet_guesses): New.
4309 * microblaze-tdep.h (microblaze_reg_num): Add
4310 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4311 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4312 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4313 * features/microblaze-core.xml: New file.
4314 * features/microblaze-stack-protect.xml: New file.
4315 * features/microblaze-with-stack-protect.c: New file.
4316 * features/microblaze-with-stack-protect.xml: New file.
4317 * features/microblaze.xml: New file.
4318 * features/microblaze.c: New file.
4319 * features/Makefile (microblaze-with-stack-protect): Add
4320 microblaze-with-stack-protect microblaze and microblaze-expedite.
4321 * regformats/microblaze-with-stack-protect.dat: New file.
4322 * regformats/microblaze.dat: New file.
4323 * doc/gdb.texinfo (MicroBlaze Features): Added.
4324
4325 2014-07-18 Tom Tromey <tromey@redhat.com>
4326
4327 * exec.c (exec_ops): Now static.
4328 * exec.h (exec_ops): Don't declare.
4329
4330 2014-07-18 Tom Tromey <tromey@redhat.com>
4331
4332 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4333 to find_target_beneath.
4334 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4335 find_target_beneath.
4336 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4337
4338 2014-07-18 Tom Tromey <tromey@redhat.com>
4339
4340 PR gdb/17130:
4341 * utils.c (quit): Use target_supports_terminal_ours.
4342 * target.h (target_supports_terminal_ours): Declare.
4343 * target.c (target_supports_delete_record): Don't check
4344 to_delete_record against NULL.
4345 (target_supports_terminal_ours): New function.
4346
4347 2014-07-18 Tom Tromey <tromey@redhat.com>
4348
4349 PR gdb/17130:
4350 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4351 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4352 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4353 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4354 * windows-nat.c (windows_xfer_partial): Always delegate.
4355 * record-btrace.c (record_btrace_xfer_partial): Simplify
4356 delegation.
4357 (record_btrace_fetch_registers, record_btrace_store_registers)
4358 (record_btrace_prepare_to_store, record_btrace_resume)
4359 (record_btrace_wait, record_btrace_find_new_threads)
4360 (record_btrace_thread_alive): Likewise.
4361 * procfs.c (procfs_xfer_partial): Always delegate.
4362 * corelow.c (core_xfer_partial): Always delegate.
4363 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4364
4365 2014-07-18 Tom Tromey <tromey@redhat.com>
4366
4367 * exec.c (exec_make_note_section): Move earlier.
4368
4369 2014-07-17 Doug Evans <dje@google.com>
4370
4371 PR gdb/17170
4372 * maint.c (count_symtabs_and_blocks): Handle NULL
4373 current_program_space.
4374 (report_command_stats): Check global enabled flag in addition to
4375 recorded enabled flag.
4376 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4377
4378 2014-07-16 Pedro Alves <palves@redhat.com>
4379
4380 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4381
4382 2014-07-16 Tom Tromey <tromey@redhat.com>
4383
4384 * target.h (struct target_ops) <to_delete_record>: Reformat
4385 comment.
4386
4387 2014-07-16 Tom Tromey <tromey@redhat.com>
4388
4389 * target-delegates.c: Rebuild.
4390
4391 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4392
4393 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4394 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4395 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4396 (avr_pointer_to_address): Likewise.
4397 (avr_address_class_type_flags): New function.
4398 (avr_address_class_type_flags_to_name): Likewise.
4399 (avr_address_class_name_to_type_flags): Likewise.
4400 (avr_gdbarch_init): Set address_class_type_flags,
4401 address_class_type_flags_to_name and
4402 address_class_name_to_type_flags.
4403
4404 2014-07-15 Pedro Alves <palves@redhat.com>
4405
4406 * linux-nat.c (kill_callback): Save errno and work with saved
4407 copy.
4408
4409 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4410
4411 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4412
4413 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4414
4415 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4416 breakpoint support correctly.
4417
4418 2014-07-14 Pedro Alves <palves@redhat.com>
4419
4420 * utils.c (prompt_for_continue): Call target_terminal_ours.
4421
4422 2014-07-14 Pedro Alves <palves@redhat.com>
4423
4424 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4425 catch_errors. Don't re-enable stdin or notify observers where,
4426 and rethrow error.
4427 (fetch_inferior_event_wrapper): Delete.
4428
4429 2014-07-14 Pedro Alves <palves@redhat.com>
4430
4431 PR gdb/17072
4432 * top.c: Include "inf-loop.h".
4433 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4434 field.
4435 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4436 was async before.
4437 (gdb_readline_wrapper): Store whether the target is async, and
4438 make it sync.
4439
4440 2014-07-14 Pedro Alves <palves@redhat.com>
4441
4442 PR gdb/17072
4443 * top.c (gdb_readline_wrapper_line): Tweak comment.
4444 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4445 the input handler callback.
4446
4447 2014-07-14 Pedro Alves <palves@redhat.com>
4448
4449 PR gdb/17072
4450 * main.c: Include event-top.h.
4451 (handle_command_errors): New function.
4452 (catch_command_errors, catch_command_errors_const): Use it.
4453
4454 2014-07-14 Pedro Alves <palves@redhat.com>
4455
4456 * exceptions.c (catch_command_errors, catch_command_errors_const):
4457 Moved to main.c.
4458 * exceptions.h (catch_command_errors_ftype)
4459 (catch_command_errors_const_ftype): Moved to main.c.
4460 (catch_command_errors, catch_command_errors_const): Delete
4461 declarations.
4462 * main.c (catch_command_errors_ftype)
4463 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4464 (catch_command_errors, catch_command_errors_const)): Moved here
4465 from exceptions.c and make static.
4466
4467 2014-07-14 Pedro Alves <palves@redhat.com>
4468
4469 * exceptions.c (print_any_exception): Delete.
4470 (catch_exceptions_with_msg): Use exception_print instead of
4471 print_any_exception.
4472 (catch_errors): Use exception_fprintf instead of
4473 print_any_exception.
4474 (catch_command_errors, catch_command_errors_const): Use
4475 exception_print instead of print_any_exception.
4476
4477 2014-07-14 Pedro Alves <palves@redhat.com>
4478
4479 * infcall.c (run_inferior_call): Set 'sync_execution' while
4480 running the inferior call.
4481
4482 2014-07-14 Pedro Alves <palves@redhat.com>
4483
4484 * value.c (value_contents_equal): Delete function.
4485 * value.h (value_contents_equal): Delete declaration.
4486
4487 2014-07-14 Tom Tromey <tromey@redhat.com>
4488
4489 PR exp/17106:
4490 * gdbtypes.c (is_dynamic_type_internal): New function, from
4491 is_dynamic_type.
4492 (is_dynamic_type): Rewrite.
4493 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4494 (resolve_dynamic_struct): Likewise.
4495 (resolve_dynamic_type_internal): New function, from
4496 resolve_dynamic_type.
4497 (resolve_dynamic_type): Rewrite.
4498
4499 2014-07-14 Tom Tromey <tromey@redhat.com>
4500
4501 * target.c (target_require_runnable): Also check record_stratum.
4502 Update comment.
4503
4504 2014-07-11 Yao Qi <yao@codesourcery.com>
4505
4506 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4507 thumb_instruction_restores_sp return true.
4508
4509 2014-07-11 Yao Qi <yao@codesourcery.com>
4510
4511 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4512 (thumb_in_function_epilogue_p): Call
4513 thumb_instruction_restores_sp.
4514
4515 2014-07-11 Yao Qi <yao@codesourcery.com>
4516
4517 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4518 'add sp, #imm'.
4519 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4520
4521 2014-07-11 Gary Benson <gbenson@redhat.com>
4522
4523 * amd64-linux-nat.c (gdbcore.h): Remove include.
4524 (regset.h): Likewise.
4525 (nat/linux-btrace.h): Likewise.
4526 (btrace.h): Likewise.
4527 (gdb_assert.h): Likewise.
4528 (string.h): Likewise.
4529 (sys/uio.h): Likewise.
4530 (sys/debugreg.h): Likewise.
4531 (sys/syscall.h): Likewise.
4532 (sys/procfs.h): Likewise.
4533 (sys/user.h): Likewise.
4534 (asm/ptrace.h): Likewise.
4535 (i386-nat.h): Likewise.
4536 * i386-linux-nat.c (i386-nat.h): Likewise.
4537 (regset.h): Likewise.
4538 (target.h): Likewise.
4539 (linux-nat.h): Likewise.
4540 (nat/linux-btrace.h): Likewise.
4541 (btrace.h): Likewise.
4542 (gdb_assert.h): Likewise.
4543 (string.h): Likewise.
4544 (sys/uio.h): Likewise.
4545 (sys/user.h): Likewise.
4546 (sys/procfs.h): Likewise.
4547 (sys/reg.h): Likewise.
4548 (sys/debugreg.h): Likewise.
4549 (ORIG_EAX): Remove definition.
4550
4551 2014-07-11 Gary Benson <gbenson@redhat.com>
4552
4553 * i386-linux-nat.h: New file.
4554 * x86-linux-nat.h: Likewise.
4555 * x86-linux-nat.c: Likewise.
4556 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4557 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4558 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4559 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4560 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4561 (PTRACE_SETREGSET): Likewise.
4562 (arch_lwp_info): Now in x86-linux-nat.c.
4563 (have_ptrace_getregset): Now in x86-linux-nat.h.
4564 (x86_linux_dr_get): Now in x86-linux-nat.c.
4565 (x86_linux_dr_set): Likewise.
4566 (x86_linux_dr_get_addr): Likewise.
4567 (x86_linux_dr_get_control): Likewise.
4568 (x86_linux_dr_get_status): Likewise.
4569 (update_debug_registers_callback): Likewise.
4570 (x86_linux_dr_set_control): Likewise.
4571 (x86_linux_dr_set_addr): Likewise.
4572 (x86_linux_prepare_to_resume): Likewise.
4573 (x86_linux_new_thread): Likewise.
4574 (x86_linux_new_fork): Likewise.
4575 (x86_linux_get_thread_area): Likewise.
4576 (super_post_startup_inferior): Likewise.
4577 (x86_linux_child_post_startup_inferior): Likewise.
4578 (AMD64_LINUX_USER64_CS): Likewise.
4579 (AMD64_LINUX_X32_DS): Likewise.
4580 (x86_linux_read_description): Likewise.
4581 (x86_linux_enable_btrace): Likewise.
4582 (x86_linux_disable_btrace): Likewise.
4583 (x86_linux_teardown_btrace): Likewise.
4584 (x86_linux_read_btrace): Likewise.
4585 (x86_linux_create_target): Likewise.
4586 (x86_linux_add_target): Likewise.
4587 * i386-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
4616 2014-07-11 Gary Benson <gbenson@redhat.com>
4617
4618 * amd64-linux-nat.c: Comment and whitespace changes.
4619 * i386-linux-nat.c: Comment and whitespace changes.
4620
4621 2014-07-11 Gary Benson <gbenson@redhat.com>
4622
4623 * amd64-linux-nat.c (x86_linux_create_target): New function.
4624 (x86_linux_add_target): Likewise.
4625 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4626 * i386-linux-nat.c (x86_linux_create_target): New function.
4627 (x86_linux_add_target): Likewise.
4628 (_initialize_i386_linux_nat): Delegate to the above new functions.
4629
4630 2014-07-11 Gary Benson <gbenson@redhat.com>
4631
4632 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4633 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4634 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4635 (ps_get_thread_area): Delegate to the above.
4636
4637 2014-07-11 Gary Benson <gbenson@redhat.com>
4638
4639 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4640 x86_linux_read_description. All uses updated. amd64-specific
4641 code conditionalized. Conditionalized i386-specific code added.
4642 Redundant cast removed.
4643 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4644 x86_linux_read_description. All uses updated. i386-specific
4645 code conditionalized. Conditionalized amd64-specific code added.
4646 One sizeof replaced with the actual type it is describing.
4647
4648 2014-07-11 Gary Benson <gbenson@redhat.com>
4649
4650 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4651 x86_linux_dr_get. All uses updated.
4652 (amd64_linux_dr_set): Renamed to
4653 x86_linux_dr_set. All uses updated.
4654 (amd64_linux_dr_get_addr): Renamed to
4655 x86_linux_dr_get_addr. All uses updated.
4656 (amd64_linux_dr_get_control): Renamed to
4657 x86_linux_dr_get_control. All uses updated.
4658 (amd64_linux_dr_get_status): Renamed to
4659 x86_linux_dr_get_status. All uses updated.
4660 (amd64_linux_dr_set_control): Renamed to
4661 x86_linux_dr_set_control. All uses updated.
4662 (amd64_linux_dr_set_addr): Renamed to
4663 x86_linux_dr_set_addr. All uses updated.
4664 (amd64_linux_prepare_to_resume): Renamed to
4665 x86_linux_prepare_to_resume. All uses updated.
4666 (amd64_linux_new_thread): Renamed to
4667 x86_linux_new_thread. All uses updated.
4668 (amd64_linux_new_fork): Renamed to
4669 x86_linux_new_fork. All uses updated.
4670 (amd64_linux_child_post_startup_inferior): Renamed to
4671 x86_linux_child_post_startup_inferior. All uses updated.
4672 (amd64_linux_enable_btrace): Renamed to
4673 x86_linux_enable_btrace. All uses updated.
4674 (amd64_linux_disable_btrace): Renamed to
4675 x86_linux_disable_btrace. All uses updated.
4676 (amd64_linux_teardown_btrace): Renamed to
4677 x86_linux_teardown_btrace. All uses updated.
4678 (amd64_linux_read_btrace): Renamed to
4679 x86_linux_read_btrace. All uses updated.
4680 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4681 x86_linux_dr_get. All uses updated.
4682 (i386_linux_dr_set): Renamed to
4683 x86_linux_dr_set. All uses updated.
4684 (i386_linux_dr_get_addr): Renamed to
4685 x86_linux_dr_get_addr. All uses updated.
4686 (i386_linux_dr_get_control): Renamed to
4687 x86_linux_dr_get_control. All uses updated.
4688 (i386_linux_dr_get_status): Renamed to
4689 x86_linux_dr_get_status. All uses updated.
4690 (i386_linux_dr_set_control): Renamed to
4691 x86_linux_dr_set_control. All uses updated.
4692 (i386_linux_dr_set_addr): Renamed to
4693 x86_linux_dr_set_addr. All uses updated.
4694 (i386_linux_prepare_to_resume): Renamed to
4695 x86_linux_prepare_to_resume. All uses updated.
4696 (i386_linux_new_thread): Renamed to
4697 x86_linux_new_thread. All uses updated.
4698 (i386_linux_new_fork): Renamed to
4699 x86_linux_new_fork. All uses updated.
4700 (i386_linux_child_post_startup_inferior): Renamed to
4701 x86_linux_child_post_startup_inferior. All uses updated.
4702 (i386_linux_enable_btrace): Renamed to
4703 x86_linux_enable_btrace. All uses updated.
4704 (i386_linux_disable_btrace): Renamed to
4705 x86_linux_disable_btrace. All uses updated.
4706 (i386_linux_teardown_btrace): Renamed to
4707 x86_linux_teardown_btrace. All uses updated.
4708 (i386_linux_read_btrace): Renamed to
4709 x86_linux_read_btrace. All uses updated.
4710
4711 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4712
4713 * remote.c (extended_remote_post_attach): New function.
4714 (init_extended_remote_ops): Install it as to_post_attach method.
4715
4716 2014-07-09 Pedro Alves <palves@redhat.com>
4717
4718 * infcmd.c (attach_command_post_wait): Don't call
4719 target_terminal_inferior here.
4720 (attach_command): Call it here instead.
4721
4722 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4723
4724 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4725 field.
4726 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4727 from varobj.c, with additional checks.
4728 (c_varobj_ops): Fill in is_path_expr_parent field.
4729 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4730 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4731 field.
4732 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4733 ops method.
4734 (varobj_default_is_path_expr_parent): New function.
4735 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4736 (varobj_default_is_path_expr_parent): Declare new function.
4737
4738 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4739
4740 * infcmd.c (finish_backward): Turn internal error into normal error.
4741
4742 2014-07-07 Pedro Alves <palves@redhat.com>
4743
4744 PR gdb/17096
4745 * remote.c (async_handle_remote_sigint)
4746 (async_handle_remote_sigint_twice): Call
4747 gdb_call_async_signal_handler instead of
4748 mark_async_signal_handler.
4749
4750 2014-07-07 Tom Tromey <tromey@redhat.com>
4751
4752 * target-delegates.c: Rebuild.
4753 * target.c (target_info_record): Remove.
4754 * record.c (info_record_command): Unconditionally call
4755 to_info_record.
4756 * target.h (struct target_ops) <to_info_record>: Use
4757 TARGET_DEFAULT_IGNORE.
4758 (target_info_record): Remove.
4759
4760 2014-07-07 Tom Tromey <tromey@redhat.com>
4761
4762 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4763 TARGET_DEFAULT_NORETURN.
4764 * target.c (generic_tls_error): New function.
4765 (target_translate_tls_address): Don't search target stack.
4766 * target-delegates.c: Rebuild.
4767 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4768 stack.
4769 * linux-thread-db.c (thread_db_get_thread_local_address):
4770 Unconditionally call beneath target.
4771
4772 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4773
4774 * cli/cli-logging.c (pop_output_files): Assign targerr to
4775 gdb_stdtargerr.
4776
4777 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4778
4779 * MAINTAINERS (Write After Approval): Update my email address.
4780
4781 2014-07-02 Gary Benson <gbenson@redhat.com>
4782
4783 * proc-service.c (ps_xfer_memory): Update comment.
4784 (ps_pstop): Remove unused function.
4785 (ps_pcontinue): Likewise.
4786 (ps_lstop): Likewise.
4787 (ps_lcontinue): Likewise.
4788 (ps_lgetxregsize): Likewise.
4789 (ps_lgetxregs): Likewise.
4790 (ps_lsetxregs): Likewise.
4791 (ps_plog): Likewise.
4792 (ps_ptread): Likewise.
4793 (ps_ptwrite): Likewise.
4794
4795 2014-07-01 Mark Wielaard <mjw@redhat.com>
4796
4797 * dwarf2read.c (add_array_cv_type): New function.
4798 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4799 (read_tag_volatile_type): Likewise.
4800
4801 2014-07-01 Tom Tromey <tromey@redhat.com>
4802
4803 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4804 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4805 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4806 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4807 * command.h (cmd_cfunc_ftype): Move earlier.
4808 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4809 (add_com, add_info): Use cmd_cfunc_ftype.
4810
4811 2014-06-30 Tom Tromey <tromey@redhat.com>
4812
4813 * symtab.c (operator_chars): Make parameters and return type
4814 const.
4815 (file_matches): Make "files" const.
4816 (struct search_symbols_data) <files>: Now const.
4817 (search_symbols): Make "regexp" and "files" parameters const.
4818 Update.
4819 (symtab_symbol_info): Remove cast.
4820 (rbreak_command): Update.
4821 * symtab.h (search_symbols): Update.
4822
4823 2014-06-27 Yao Qi <yao@codesourcery.com>
4824
4825 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4826 Change parameter type to 'struct thread_info *'. Caller
4827 updated.
4828 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4829 Update declaration.
4830 * dummy-frame.c (struct dummy_frame_id): New.
4831 (dummy_frame_id_eq): New function.
4832 (struct dummy_frame) <id>: Change its type to 'struct
4833 dummy_frame_id'.
4834 (dummy_frame_push): Add parameter ptid and save it in
4835 dummy_frame_id.
4836 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4837 inferior_ptid.
4838 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4839 to inferior_ptid.
4840 (lookup_dummy_frame): Change parameter type to 'struct
4841 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4842 instead of frame_id_eq.
4843 (dummy_frame_pop): Add parameter ptid. Callers updated.
4844 Update comments. Compose dummy_frame_id and pass it to
4845 lookup_dummy_frame.
4846 (dummy_frame_discard): Add parameter ptid.
4847 (dummy_frame_sniffer): Compose dummy_frame_id and call
4848 dummy_frame_id_eq instead of frame_id_eq.
4849 (fprint_dummy_frames): Print ptid.
4850 * dummy-frame.h: Remove comments.
4851 (dummy_frame_push): Add ptid in declaration.
4852 (dummy_frame_pop, dummy_frame_discard): Likewise.
4853
4854 2014-06-26 Tom Tromey <tromey@redhat.com>
4855
4856 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4857 * command.h (error_no_arg): Update.
4858
4859 2014-06-26 Tom Tromey <tromey@redhat.com>
4860
4861 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4862 (do_show_command): Make "arg" const.
4863 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4864
4865 2014-06-26 Tom Tromey <tromey@redhat.com>
4866
4867 * record-full.c (record_full_get_bookmark): Make "args" const.
4868 (record_full_goto_bookmark): Make "raw_bookmark" const.
4869 * record.c (record_goto): New function.
4870 (cmd_record_goto): Use it. Now static.
4871 * record.h (record_goto): Declare.
4872 (cmd_record_goto): Remove declaration.
4873 * target-delegates.c: Rebuild.
4874 * target.h (struct target_ops) <to_get_bookmark,
4875 to_goto_bookmark>: Make parameter const.
4876
4877 2014-06-26 Tom Tromey <tromey@redhat.com>
4878
4879 * defs.h (generic_load): Update.
4880 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4881 * monitor.c (monitor_load): Make "args" const.
4882 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4883 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4884 const.
4885 (mips_load): Make "file" const.
4886 * remote-sim.c (gdbsim_load): Make "args" const.
4887 * remote.c (remote_load): Make "name" const.
4888 * symfile.c (generic_load): Make "args" const.
4889 * target-delegates.c: Rebuild.
4890 * target.c (target_load): Make "arg" const.
4891 (debug_to_load): Make "args" const.
4892 * target.h (struct target_ops) <to_load>: Make parameter const.
4893 (target_load): Update.
4894
4895 2014-06-26 Tom Tromey <tromey@redhat.com>
4896
4897 PR symtab/16902:
4898 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4899 (dwarf2_physname, read_partial_die)
4900 (guess_partial_die_structure_name, fixup_partial_die)
4901 (guess_full_die_structure_name, anonymous_struct_prefix)
4902 (dwarf2_name): Use per-BFD obstack.
4903
4904 2014-06-26 Yao Qi <yao@codesourcery.com>
4905
4906 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4907 dummyframe and this_id into inner block below.
4908
4909 2014-06-26 Yao Qi <yao@codesourcery.com>
4910
4911 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4912 with "signal_pass[0]" in the initialization of signal_pass.
4913
4914 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4915
4916 * record-btrace.c (record_btrace_generating_corefile)
4917 (record_btrace_prepare_to_generate_core)
4918 (record_btrace_done_generating_core): New.
4919 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4920 (record_btrace_store_registers, record_btrace_prepare_to_store):
4921 Forward request when generating a core file.
4922 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4923 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4924 to_done_generating_core.
4925
4926 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4927
4928 * target.h (target_ops) <to_prepare_to_generate_core>
4929 <to_done_generating_core>: New.
4930 (target_prepare_to_generate_core, target_done_generating_core): New.
4931 * target.c (target_prepare_to_generate_core)
4932 (target_done_generating_core): New.
4933 * target-delegates.c: Regenerate.
4934 * gcore.c: (write_gcore_file): Rename to ...
4935 (write_gcore_file_1): ...this.
4936 (write_gcore_file): Call target_prepare_to_generate_core
4937 and target_done_generating_core.
4938
4939 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4940
4941 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4942 * gcore.c (write_gcore_file): Free memory returned from
4943 make_corefile_notes.
4944 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4945 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4946
4947 2014-06-24 Yao Qi <yao@codesourcery.com>
4948
4949 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4950 (arm_linux_init_abi): Set skip_trampoline_code with
4951 gdbarch_skip_trampoline_code instead of
4952 find_solib_trampoline_target.
4953
4954 2014-06-24 Yao Qi <yao@codesourcery.com>
4955
4956 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4957 arm_skip_bx_reg returns non-zero.
4958
4959 2014-06-24 Yao Qi <yao@codesourcery.com>
4960
4961 * arm-tdep.c (arm_skip_bx_reg): New function.
4962 (arm_skip_stub): Call arm_skip_bx_reg.
4963
4964 2014-06-23 Don Breazeal <donb@codesourcery.com>
4965
4966 * MAINTAINERS: Add myself as write-after-approval maintainer.
4967
4968 2014-06-23 Pedro Alves <palves@redhat.com>
4969
4970 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4971 DR_CONTROL before setting DR0..DR3.
4972 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4973 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4974 bits of DR_CONTROL related to the debug register slot being
4975 disabled. If all slots are vacant, clear local slowdown as well,
4976 and assert DR_CONTROL is 0.
4977
4978 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4979
4980 * python/lib/gdb/command/xmethods.py
4981 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4982 current progspace only if the string "progspace" matches LOCUS_RE.
4983
4984 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4985
4986 Fix --with-system-readline with readline-6.3 patch 5.
4987 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4988 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4989 types.
4990
4991 2014-06-20 Tom Tromey <tromey@redhat.com>
4992
4993 * dwarf2read.c (dw2_get_real_path): Use correct type in
4994 OBSTACK_CALLOC.
4995 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4996
4997 2014-06-20 Gary Benson <gbenson@redhat.com>
4998
4999 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5000 * common/glibc_thread_db.h: Likewise.
5001 * common/i386-cpuid.h: Likewise.
5002 * common/i386-gcc-cpuid.h: Likewise.
5003 * common/linux-btrace.h: Likewise.
5004 * common/linux-osdata.h: Likewise.
5005 * common/linux-procfs.h: Likewise.
5006 * common/linux-ptrace.h: Likewise.
5007 * common/mips-linux-watch.h: Likewise.
5008 * common/linux-btrace.c: Moved to nat.
5009 * common/linux-osdata.c: Likewise.
5010 * common/linux-procfs.c: Likewise.
5011 * common/linux-ptrace.c: Likewise.
5012 * common/mips-linux-watch.c: Likewise.
5013 * nat/gdb_thread_db.h: Moved from common.
5014 * nat/glibc_thread_db.h: Likewise.
5015 * nat/i386-cpuid.h: Likewise.
5016 * nat/i386-gcc-cpuid.h: Likewise.
5017 * nat/linux-btrace.c: Likewise.
5018 * nat/linux-btrace.h: Likewise.
5019 * nat/linux-osdata.c: Likewise.
5020 * nat/linux-osdata.h: Likewise.
5021 * nat/linux-procfs.c: Likewise.
5022 * nat/linux-procfs.h: Likewise.
5023 * nat/linux-ptrace.c: Likewise.
5024 * nat/linux-ptrace.h: Likewise.
5025 * nat/mips-linux-watch.c: Likewise.
5026 * nat/mips-linux-watch.h: Likewise.
5027 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5028 (object file files): Reordered.
5029 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5030 of glibc_thread_db.h.
5031
5032 2014-06-20 Gary Benson <gbenson@redhat.com>
5033
5034 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5035 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5036 (i386_dr_low): Likewise.
5037 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5038 (i386_dr_low_set_addr): Likewise.
5039 (i386_dr_low_get_addr): Likewise.
5040 (i386_dr_low_can_set_control): Likewise.
5041 (i386_dr_low_set_control): Likewise.
5042 (i386_dr_low_get_control): Likewise.
5043 (i386_dr_low_get_status): Likewise.
5044 (i386_get_debug_register_length): Likewise.
5045 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5046 (i386_dr_low): Likewise.
5047 * nat/i386-dregs.c (i386-low.h): Remove include.
5048 (i386-nat.h): Likewise.
5049 (nat/i386-dregs.h): New include.
5050 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5051 (i386_dr_low_set_addr): Likewise.
5052 (i386_dr_low_get_addr): Likewise.
5053 (i386_dr_low_can_set_control): Likewise.
5054 (i386_dr_low_set_control): Likewise.
5055 (i386_dr_low_get_control): Likewise.
5056 (i386_dr_low_get_status): Likewise.
5057 (i386_get_debug_register_length): Likewise.
5058 (debug_hw_points): Likewise.
5059
5060 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5061
5062 * Makefile.in (SFILES): Add d-exp.y.
5063 (YYFILES): Add d-exp.c.
5064 (YYOBJ): Add d-exp.o.
5065 (local-maintainer-clean): Delete d-exp.c.
5066 * d-exp.y: New file.
5067 * d-lang.h (d_parse): New declaration.
5068 (d_error): New declaration.
5069 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5070 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5071 PREC_ORDER operators.
5072 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5073
5074 2014-06-19 Yao Qi <yao@codesourcery.com>
5075
5076 * gdbthread.h (any_running): Remove the declaration.
5077 * thread.c (any_running): Remove.
5078
5079 2014-06-19 Yao Qi <yao@codesourcery.com>
5080
5081 * gdbthread.h (struct thread_info) <state>: Change its type to
5082 'enum thread_state'. Update comments.
5083
5084 2014-06-19 Pedro Alves <palves@redhat.com>
5085
5086 * gdbthread.h (ALL_THREADS): Delete.
5087 (ALL_NON_EXITED_THREADS): New macro.
5088 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5089 instead of ALL_THREADS.
5090 * infrun.c (find_thread_needs_step_over)
5091 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5092 instead of ALL_THREADS.
5093 * record-btrace.c (record_btrace_open)
5094 (record_btrace_stop_recording, record_btrace_close)
5095 (record_btrace_is_replaying, record_btrace_resume)
5096 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5097 * remote.c (append_pending_thread_resumptions): Likewise.
5098 * thread.c (thread_apply_all_command): Likewise.
5099
5100 2014-06-19 Gary Benson <gbenson@redhat.com>
5101
5102 * i386-nat.c (i386_stopped_by_watchpoint):
5103 Use i386_dr_stopped_by_watchpoint.
5104 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5105 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5106
5107 2014-06-19 Gary Benson <gbenson@redhat.com>
5108
5109 * nat/i386-dregs.c: New file.
5110 * Makefile.in (i386-dregs.o): New rule.
5111 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5112 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5113 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5114 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5115 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5116 * config/i386/go32.mh (NATDEPFILES): Likewise.
5117 * config/i386/linux.mh (NATDEPFILES): Likewise.
5118 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5119 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5120 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5121 * i386-nat.h (debug_hw_points): New declaration.
5122 * i386-nat.c (breakpoint.h): Remove include.
5123 (command.h): Likewise.
5124 (target.h): Likewise.
5125 (gdb_assert.h): Likewise.
5126 (debug_hw_points): Made nonstatic.
5127 (debug_printf): Now in i386-dregs.c.
5128 (TARGET_HAS_DR_LEN_8): Likewise.
5129 (DR_CONTROL_SHIFT): Likewise.
5130 (DR_CONTROL_SIZE): Likewise.
5131 (DR_RW_EXECUTE): Likewise.
5132 (DR_RW_WRITE): Likewise.
5133 (DR_RW_READ): Likewise.
5134 (DR_RW_IORW): Likewise.
5135 (DR_LEN_1): Likewise.
5136 (DR_LEN_2): Likewise.
5137 (DR_LEN_4): Likewise.
5138 (DR_LEN_8): Likewise.
5139 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5140 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5141 (DR_ENABLE_SIZE): Likewise.
5142 (DR_LOCAL_SLOWDOWN): Likewise.
5143 (DR_GLOBAL_SLOWDOWN): Likewise.
5144 (DR_CONTROL_RESERVED): Likewise.
5145 (I386_DR_CONTROL_MASK): Likewise.
5146 (I386_DR_VACANT): Likewise.
5147 (I386_DR_LOCAL_ENABLE): Likewise.
5148 (I386_DR_GLOBAL_ENABLE): Likewise.
5149 (I386_DR_DISABLE): Likewise.
5150 (I386_DR_SET_RW_LEN): Likewise.
5151 (I386_DR_GET_RW_LEN): Likewise.
5152 (I386_DR_WATCH_HIT): Likewise.
5153 (i386_wp_op_t): Likewise.
5154 (i386_show_dr): Likewise.
5155 (i386_length_and_rw_bits): Likewise.
5156 (i386_insert_aligned_watchpoint): Likewise.
5157 (i386_remove_aligned_watchpoint): Likewise.
5158 (i386_handle_nonaligned_watchpoint): Likewise.
5159 (i386_update_inferior_debug_regs): Likewise.
5160 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5161 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5162 (i386_region_ok_for_watchpoint):
5163 Use i386_dr_region_ok_for_watchpoint.
5164 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5165
5166 2014-06-19 Gary Benson <gbenson@redhat.com>
5167
5168 * i386-nat.c (i386_insert_hw_breakpoint): Use
5169 i386_insert_watchpoint.
5170 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5171
5172 2014-06-19 Gary Benson <gbenson@redhat.com>
5173
5174 * i386-nat.c (i386_dr_show): Renamed to
5175 i386_show_dr and made static. All uses updated.
5176 (i386_dr_length_and_rw_bits): Renamed to
5177 i386_length_and_rw_bits and made static.
5178 All uses updated.
5179 (i386_dr_insert_aligned_watchpoint): Renamed to
5180 i386_insert_aligned_watchpoint and made static.
5181 All uses updated.
5182 (i386_dr_remove_aligned_watchpoint): Renamed to
5183 i386_remove_aligned_watchpoint and made static.
5184 All uses updated.
5185 (i386_dr_update_inferior_debug_regs): Renamed to
5186 i386_update_inferior_debug_regs and made static.
5187 All uses updated.
5188 * nat/i386-dregs.h (i386_dr_show): Removed.
5189 (i386_dr_length_and_rw_bits): Likewise.
5190 (i386_dr_insert_aligned_watchpoint): Likewise.
5191 (i386_dr_remove_aligned_watchpoint): Likewise.
5192 (i386_dr_update_inferior_debug_regs): Likewise.
5193
5194 2014-06-19 Gary Benson <gbenson@redhat.com>
5195
5196 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5197 * configure: Regenerate.
5198 * config.in: Likewise.
5199 * main.c (signal.h): New include.
5200 (setup_alternate_signal_stack): New function.
5201 (captured_main): Call the above.
5202 * cp-support.c (signal.h): New include.
5203 (catch_demangler_crashes): New flag.
5204 (SIGJMP_BUF): New define.
5205 (SIGSETJMP): Likewise.
5206 (SIGLONGJMP): Likewise.
5207 (gdb_demangle_jmp_buf): New static global.
5208 (gdb_demangle_attempt_core_dump): Likewise.
5209 (gdb_demangle_signal_handler): New function.
5210 (gdb_demangle): If catch_demangler_crashes is set, install the
5211 above signal handler before calling bfd_demangle, and restore
5212 the original signal handler afterwards. Display the offending
5213 symbol and call demangler_warning the first time a segmentation
5214 fault is caught.
5215 (_initialize_cp_support): New maint set/show command.
5216
5217 2014-06-19 Gary Benson <gbenson@redhat.com>
5218
5219 * utils.h (resource_limit_kind): New enum.
5220 (can_dump_core): New declaration.
5221 (warn_cant_dump_core): Likewise.
5222 (dump_core): Likewise.
5223 * utils.c (dump_core): Made nonstatic. Added new
5224 parameter "limit_kind".
5225 (can_dump_core): Made nonstatic. Moved printing code to...
5226 (warn_cant_dump_core): New function.
5227 (can_dump_core_warn): Likewise.
5228 (internal_vproblem): Replace calls to can_dump_core with
5229 calls to can_dump_core_warn. Supply new argument to each.
5230
5231 2014-06-19 Gary Benson <gbenson@redhat.com>
5232
5233 * utils.h (demangler_vwarning): New declaration.
5234 (demangler_warning): Likewise.
5235 * utils.c (struct internal_problem)
5236 <user_settable_should_quit>: New field.
5237 <user_settable_should_dump_core>: Likewise
5238 (internal_error_problem): Add values for above new fields.
5239 (internal_warning_problem): Likewise.
5240 (demangler_warning_problem): New static global.
5241 (demangler_vwarning): New function.
5242 (demangler_warning): Likewise.
5243 (add_internal_problem_command): Selectively add commands.
5244 (_initialize_utils): New internal problem command.
5245 * maint.c (maintenance_demangler_warning): New function.
5246 (_initialize_maint_cmds): New command.
5247
5248 2014-06-18 Tom Tromey <tromey@redhat.com>
5249
5250 * f-valprint.c (info_common_command_for_block): Update.
5251 * symtab.h (struct general_symbol_info) <common_block>: Now
5252 const.
5253
5254 2014-06-18 Tom Tromey <tromey@redhat.com>
5255
5256 * symtab.h (struct symtab) <blockvector>: Now const.
5257 * ada-lang.c (ada_add_global_exceptions): Update.
5258 * buildsym.c (augment_type_symtab): Update.
5259 * dwarf2read.c (dw2_lookup_symbol): Update.
5260 * jit.c (finalize_symtab): Update.
5261 * jv-lang.c (add_class_symtab_symbol): Update.
5262 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5263 Update.
5264 * objfiles.c (objfile_relocate1): Update.
5265 * psymtab.c (lookup_symbol_aux_psymtabs)
5266 (maintenance_check_psymtabs): Update.
5267 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5268 Update.
5269 * spu-tdep.c (spu_catch_start): Update.
5270 * symmisc.c (dump_symtab_1): Update.
5271 * symtab.c (lookup_global_symbol_from_objfile)
5272 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5273 (basic_lookup_transparent_type_quick)
5274 (basic_lookup_transparent_type, find_pc_sect_symtab)
5275 (find_pc_sect_line, search_symbols): Update.
5276 * block.c (find_block_in_blockvector): Make "bl" const.
5277 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5278 const.
5279 (blockvector_contains_pc): Make "bv" const.
5280 (block_for_pc_sect): Update.
5281 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5282 (blockvector_contains_pc): Update.
5283 * breakpoint.c (resolve_sal_pc): Update.
5284 * inline-frame.c (block_starting_point_at): Update.
5285
5286 2014-06-18 Tom Tromey <tromey@redhat.com>
5287
5288 * completer.c (complete_line): Make "line_buffer" const.
5289 * completer.h (complete_line): Update.
5290
5291 2014-06-18 Tom Tromey <tromey@redhat.com>
5292
5293 * symtab.c (add_macro_name): Remove unneeded cast.
5294
5295 2014-06-18 Tom Tromey <tromey@redhat.com>
5296
5297 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5298 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5299
5300 2014-06-18 Tom Tromey <tromey@redhat.com>
5301
5302 * probe.c (info_probes_for_ops): Make "arg" const.
5303 * probe.h (info_probes_for_ops): Update.
5304
5305 2014-06-18 Tom Tromey <tromey@redhat.com>
5306
5307 * varobj.c (varobj_create): Update.
5308 * valops.c (value_of_this): Update.
5309 * tracepoint.c (add_local_symbols, scope_info): Update.
5310 * symtab.h (struct general_symbol_info) <block>: Now const.
5311 * symtab.c (skip_prologue_sal)
5312 (default_make_symbol_completion_list_break_on)
5313 (skip_prologue_using_sal): Update.
5314 * stack.h (iterate_over_block_locals)
5315 (iterate_over_block_local_vars): Update.
5316 * stack.c (print_frame_args): Update.
5317 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5318 parameter const.
5319 (get_selected_block): Make return type const.
5320 * python/py-frame.c (frapy_block): Update.
5321 * python/py-block.c (gdbpy_block_for_pc): Update.
5322 * p-exp.y (%union) <bval>: Now const.
5323 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5324 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5325 * m2-exp.y (%union) <bval>: Now const.
5326 * linespec.c (get_current_search_block): Make return type const.
5327 (create_sals_line_offset, find_label_symbols): Update.
5328 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5329 Update.
5330 (block_starting_point_at): Make "block" const.
5331 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5332 (check_exception_resume): Update.
5333 * guile/scm-frame.c (gdbscm_frame_block): Update.
5334 * guile/scm-block.c (gdbscm_lookup_block): Update.
5335 * frame.h (get_frame_block): Update.
5336 (get_selected_block): Make return type const.
5337 * frame.c (frame_id_inner): Update.
5338 * f-valprint.c (info_common_command_for_block)
5339 (info_common_command): Update.
5340 * dwarf2loc.c (dwarf2_find_location_expression)
5341 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5342 (locexpr_describe_location_piece): Update.
5343 * c-exp.y (%union) <bval>: Now const.
5344 * breakpoint.c (resolve_sal_pc): Update.
5345 * blockframe.c (get_frame_block):Make return type const.
5346 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5347 (block_innermost_frame): Update.
5348 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5349 (block_for_pc, block_for_pc_sect): Update.
5350 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5351 'pblock' const.
5352 (block_for_pc_sect, block_for_pc): Make return type const.
5353 * ax-gdb.c (gen_expr): Update.
5354 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5355 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5356 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5357 (ada_read_var_value): Update.
5358 * ada-exp.y (struct name_info) <block>: Now const.
5359 (%union): Likewise.
5360 (block_lookup): Constify.
5361
5362 2014-06-18 Gary Benson <gbenson@redhat.com>
5363
5364 * nat/i386-dregs.h: New file.
5365 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5366 * i386-nat.h (i386-dregs.h): New include.
5367 (DR_FIRSTADDR): Now in i386-dregs.h.
5368 (DR_LASTADDR): Likewise.
5369 (DR_NADDR): Likewise.
5370 (DR_STATUS): Likewise.
5371 (DR_CONTROL): Likewise.
5372 (i386_debug_reg_state): Likewise.
5373 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5374
5375 2014-06-18 Don Breazeal <donb@codesourcery.com>
5376
5377 * breakpoint.c (set_longjmp_breakpoint): Call
5378 momentary_breakpoint_from_master with additional argument.
5379 (set_longjmp_breakpoint_for_call_dummy): Call
5380 momentary_breakpoint_from_master with additional argument.
5381 (set_std_terminate_breakpoint): Call
5382 momentary_breakpoint_from_master with additional argument.
5383 (momentary_breakpoint_from_master): Add argument to function
5384 definition and use it to initialize structure member flag.
5385 (clone_momentary_breakpoint): Call
5386 momentary_breakpoint_from_master with additional argument.
5387 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5388 member flags set in momentary_breakpoint_from_master.
5389
5390 2014-06-18 Gary Benson <gbenson@redhat.com>
5391
5392 * i386-nat.c (i386_show_dr): Renamed to
5393 i386_dr_show and made nonstatic. All uses updated.
5394 (i386_length_and_rw_bits): Renamed to
5395 i386_dr_length_and_rw_bits and made nonstatic.
5396 All uses updated.
5397 (i386_insert_aligned_watchpoint): Renamed to
5398 i386_dr_insert_aligned_watchpoint and made nonstatic.
5399 All uses updated.
5400 (i386_remove_aligned_watchpoint): Renamed to
5401 i386_dr_remove_aligned_watchpoint and made nonstatic.
5402 All uses updated.
5403 (i386_update_inferior_debug_regs): Renamed to
5404 i386_dr_update_inferior_debug_regs and made nonstatic.
5405 All uses updated.
5406
5407 2014-06-18 Gary Benson <gbenson@redhat.com>
5408
5409 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5410 (i386_dr_low_can_set_control): Likewise.
5411 (i386_dr_low_set_addr): Likewise.
5412 (i386_dr_low_set_control): Likewise.
5413 (i386_dr_low_get_addr): Likewise.
5414 (i386_dr_low_get_status): Likewise.
5415 (i386_dr_low_get_control): Likewise.
5416 (i386_insert_aligned_watchpoint): Use new macros.
5417 (i386_update_inferior_debug_regs): Likewise.
5418 (i386_stopped_data_address): Likewise.
5419
5420 2014-06-18 Gary Benson <gbenson@redhat.com>
5421
5422 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5423 New parameter. All uses updated.
5424
5425 2014-06-18 Gary Benson <gbenson@redhat.com>
5426
5427 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5428 All uses updated.
5429
5430 2014-06-18 Gary Benson <gbenson@redhat.com>
5431
5432 * i386-nat.c (debug_printf): New macro.
5433 (i386_get_debug_register_length): Likewise.
5434 (TARGET_HAS_DR_LEN_8): Use above macro.
5435 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5436 and printf_unfiltered. Use phex to format values.
5437
5438 2014-06-18 Gary Benson <gbenson@redhat.com>
5439
5440 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5441 Make const.
5442
5443 2014-06-18 Gary Benson <gbenson@redhat.com>
5444
5445 * i386-nat.c: Comment changes.
5446
5447 2014-06-18 Gary Benson <gbenson@redhat.com>
5448
5449 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5450
5451 2014-06-18 Gary Benson <gbenson@redhat.com>
5452
5453 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5454 (i386_insert_aligned_watchpoint): Likewise.
5455 (i386_remove_aligned_watchpoint): Likewise.
5456 (i386_handle_nonaligned_watchpoint): Likewise.
5457
5458 2014-06-18 Gary Benson <gbenson@redhat.com>
5459
5460 * i386-nat.c: Whitespace changes.
5461
5462 2014-06-17 Samuel Bronson <naesten@gmail.com>
5463
5464 * MAINTAINERS: Update Roland McGrath's email address.
5465 Thanks to Sergio Durigan Junior for pointing out that he left
5466 Red Hat a while ago, and giving me a current address.
5467
5468 2014-06-17 Tom Tromey <tromey@redhat.com>
5469
5470 * utils.h (savestring): Remove declaration.
5471
5472 2014-06-17 Tom Tromey <tromey@redhat.com>
5473
5474 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5475
5476 2014-06-16 Keith Seitz <keiths@redhat.com>
5477
5478 PR mi/15863
5479 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5480 to update the varobj if inferior_ptid is null_ptid.
5481
5482 2014-06-16 Tom Tromey <tromey@redhat.com>
5483
5484 * target.h (struct target_ops) <to_info_proc>: Make parameter
5485 const.
5486 (target_info_proc): Update.
5487 * target.c (target_info_proc): Make "args" const.
5488 * procfs.c (procfs_info_proc): Update.
5489 * linux-tdep.c (linux_info_proc): Update.
5490 (linux_core_info_proc_mappings): Make "args" const.
5491 (linux_core_info_proc): Update.
5492 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5493 * gdbarch.c: Rebuild.
5494 * gdbarch.h: Rebuild.
5495 * corelow.c (core_info_proc): Update.
5496
5497 2014-06-16 Tom Tromey <tromey@redhat.com>
5498
5499 * target.h (struct target_ops) <to_disconnect>: Make parameter
5500 const.
5501 (target_disconnect): Update.
5502 * target.c (target_disconnect): Make "args" const.
5503 * target-delegates.c: Rebuild.
5504 * remote.c (remote_disconnect): Update.
5505 * record.h (record_disconnect): Update.
5506 * record.c (record_disconnect): Update.
5507 * inf-child.c (inf_child_disconnect): Update.
5508
5509 2014-06-16 Tom Tromey <tromey@redhat.com>
5510
5511 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5512 * target.c (debug_to_rcmd, default_rcmd): Update.
5513 * target-delegates.c: Rebuild.
5514 * remote.c (remote_rcmd): Update.
5515 * monitor.c (monitor_rcmd): Update.
5516
5517 2014-06-16 Pedro Alves <palves@redhat.com>
5518
5519 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5520 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5521 have OBJF_SHARED set.
5522 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5523 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5524 instead of OBJF_USERLOADED.
5525 * objfiles.h (OBJF_SHARED): Update comment.
5526 (userloaded_objfile_contains_address_p): Rename to ...
5527 (shared_objfile_contains_address_p): ... this, and update
5528 comments.
5529 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5530 new objfile.
5531 (remove_symbol_file_command): Skip objfiles that don't have
5532 OBJF_SHARED set.
5533
5534 2014-06-16 Tom Tromey <tromey@redhat.com>
5535
5536 * minsyms.h (prim_record_minimal_symbol)
5537 (prim_record_minimal_symbol_and_info): Update comments.
5538
5539 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5540
5541 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5542 or --without-guile, according to how GDB was built.
5543
5544 2014-06-13 Tom Tromey <tromey@redhat.com>
5545
5546 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5547 to help_list.
5548 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5549 to help_list.
5550 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5551 help_list.
5552 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5553 help_list.Pass all_commands, not -1, to help_list.
5554 * cli/cli-dump.c (dump_command, append_command)
5555 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5556 (binary_dump_command, binary_append_command): Pass all_commands,
5557 not -1, to help_list.
5558 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5559 -1, to help_list.
5560 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5561 -1, to help_list.
5562 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5563 help_list.
5564 * top.c (set_history): Pass all_commands, not -1, to help_list.
5565 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5566 all_commands, not -1, to help_list.
5567 * symfile.c (overlay_command): Pass all_commands, not -1, to
5568 help_list.
5569 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5570 help_list.
5571 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5572 help_list.
5573 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5574 -1, to help_list.
5575 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5576 not -1, to help_list.
5577 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5578 not -1, to help_list.
5579 * maint.c (maintenance_command, maintenance_info_command)
5580 (maintenance_print_command, maintenance_set_cmd): Pass
5581 all_commands, not -1, to help_list.
5582 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5583 help_list.
5584 * language.c (set_check): Pass all_commands, not -1, to help_list.
5585 * infcmd.c (unset_command): Pass all_commands, not -1, to
5586 help_list.
5587 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5588 help_list.
5589 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5590 help_list.
5591 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5592 help_list.
5593 * breakpoint.c (save_command): Pass all_commands, not -1, to
5594 help_list.
5595 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5596 all_commands, not -1, to help_list.
5597
5598 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5599
5600 * regcache.c (struct register_to_invalidate): New structure.
5601 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5602 functions.
5603 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5604
5605 2014-06-12 Yao Qi <yao@codesourcery.com>
5606
5607 * varobj.c (varobj_get_num_children): Call
5608 varobj_is_dynamic_p.
5609 (varobj_list_children): Likewise.
5610 (varobj_update): Likewise. Update comments.
5611
5612 2014-06-12 Yao Qi <yao@codesourcery.com>
5613
5614 * varobj.c (varobj_pretty_printed_p): Rename to ...
5615 (varobj_is_dynamic_p): ... this. New function.
5616 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5617 (varobj_is_dynamic_p): Declare.
5618 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5619 (mi_print_value_p, varobj_update_one): Likewise.
5620
5621 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5622 Yao Qi <yao@codesourcery.com>
5623
5624 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5625 (varobj_get_iterator): Wrap up code for pretty-printer by
5626 "#if HAVE_PYTHON" and "#endif".
5627 (update_dynamic_varobj_children): Likewise.
5628
5629 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5630 Yao Qi <yao@codesourcery.com>
5631
5632 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5633 gdb_python_initialized is false. Move some code from varobj.c.
5634 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5635 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5636 (struct varobj_item): Moved to varobj-iter.h".
5637 (varobj_clear_saved_item): New function.
5638 (update_dynamic_varobj_children): Move python-related code to
5639 py-varobj.c.
5640 (free_variable): Call varobj_clear_saved_item and
5641 varobj_iter_delete.
5642
5643 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5644 Yao Qi <yao@codesourcery.com>
5645
5646 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5647 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5648 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5649 (py-varobj.o): New rule.
5650 * python/py-varobj.c: New file.
5651 * python/python-internal.h (py_varobj_get_iterator): Declare.
5652 * varobj-iter.h: New file.
5653 * varobj.c: Include "varobj-iter.h"
5654 (struct varobj) <child_iter>: Change its type from "PyObject *"
5655 to "struct varobj_iter *".
5656 <saved_item>: Likewise.
5657 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5658 [HAVE_PYTHON] (varobj_get_iterator): New function.
5659 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5660 python-specific code to python/py-varobj.c.
5661 (install_visualizer): Call varobj_iter_delete instead of
5662 Py_XDECREF.
5663 * varobj.h (varobj_ensure_python_env): Declare.
5664
5665 2014-06-12 Yao Qi <yao@codesourcery.com>
5666
5667 * varobj.c (struct varobj_item): New structure.
5668 (create_child_with_value): Update declaration.
5669 (varobj_add_child): Replace arguments 'name' and 'value' with
5670 'item'. All callers updated.
5671 (install_dynamic_child): Likewise.
5672 (update_dynamic_varobj_children): Likewise.
5673 (varobj_add_child): Likewise.
5674 (create_child_with_value): Likewise.
5675
5676 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5677
5678 * NEWS: Create a new section for the next release branch.
5679 Rename the section of the current branch, now that it has
5680 been cut.
5681
5682 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5683
5684 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5685 * version.in: Bump version to 7.8.50.DATE-cvs.
5686
5687 2014-06-11 Pedro Alves <palves@redhat.com>
5688
5689 PR remote/17028
5690 * ser-mingw.c (net_windows_socket_check_pending): New function.
5691 (net_windows_select_thread): Ignore spurious wakeups. Use
5692 net_windows_socket_check_pending.
5693 (net_windows_wait_handle): Check for pending events with
5694 ioctlsocket, through net_windows_socket_check_pending, instead of
5695 checking the socket's event.
5696
5697 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5698
5699 * python/python-internal.h (gdb_PyObject_GetAttrString)
5700 (gdb_PyObject_HasAttrString): New inline function definitions.
5701 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5702 char * of the second argument to PyObject_GetAttrString.
5703
5704 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5705
5706 * serial.c (serial_write): Fix index of character to be printed
5707 in call to serial_logchar when serial debug traces are enabled.
5708
5709 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5710
5711 * gdbtypes (resolve_dynamic_range): Add function description.
5712
5713 2014-06-09 Pedro Alves <palves@redhat.com>
5714
5715 * linux-nat.c (linux_child_follow_fork): Initialize status with
5716 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5717 inner block. Only pass the signal to PTRACE_DETACH if in pass
5718 state.
5719
5720 2014-06-09 Gary Benson <gbenson@redhat.com>
5721
5722 * common/signals.c (gdb_signal_from_host): Reorder to separate
5723 the always-available ANSI-standard signals from the signals that
5724 require checking.
5725 (do_gdb_signal_to_host): Likewise.
5726 * proc-events.c (signal_table): Likewise.
5727
5728 2014-06-08 Hui Zhu <hui@codesourcery.com>
5729
5730 * common/linux-ptrace.c (linux_disable_event_reporting): New
5731 function.
5732 * common/linux-ptrace.h (linux_disable_event_reporting): New
5733 declaration.
5734 * linux-nat.c (linux_child_follow_fork): Do a single step before
5735 detach.
5736
5737 2014-06-07 Keith Seitz <keiths@redhat.com>
5738
5739 Revert:
5740 PR c++/16253
5741 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5742 from symbol_matches_domain in symtab.c. All local callers
5743 of symbol_matches_domain updated.
5744 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5745 search STRUCT_DOMAIN.
5746 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5747 independently. standard_lookup will do that automatically.
5748 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5749 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5750 (cp_lookup_symbol_in_namespace): Likewise.
5751 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5752 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5753 may return a STRUCT_DOMAIN match.
5754 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5755 * cp-support.c: Include language.h.
5756 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5757 VAR_DOMAIN.
5758 * psymtab.c (match_partial_symbol): Compare the requested
5759 domain with the symbol's domain directly.
5760 (lookup_partial_symbol): Likewise.
5761 * symtab.c (lookup_symbol_in_language): Explain when/why
5762 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5763 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5764 appropriate languages.
5765 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5766 and moved to ada-lang.c
5767 (lookup_block_symbol): Explain that this function only returns
5768 symbol matching the requested DOMAIN.
5769 Compare the requested domain with the symbol's domain directly.
5770 (iterate_over_symbols): Compare the requested domain with the
5771 symbol's domain directly.
5772 * symtab.h (symbol_matches_domain): Remove.
5773
5774 2014-06-06 Doug Evans <xdje42@gmail.com>
5775
5776 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5777 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5778 (gdbscm_guile_version_is_at_least): Declare.
5779 (gdbscm_scm_string_to_int): Declare.
5780 * guile/guile.c (gdbscm_guile_major_version): New global.
5781 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5782 (guile_datadir): New static global.
5783 (gdbscm_guile_data_directory): New function.
5784 (initialize_scheme_side): Update.
5785 (misc_guile_functions): Add guile-data-directory.
5786 (initialize_gdb_module): Fetch guile version number.
5787 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5788 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5789 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5790 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5791 comments.
5792 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5793 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5794 * guile/scm-value.c (gdbscm_value_to_string): Only call
5795 scm_port_conversion_strategy if Guile version >= 2.0.6.
5796
5797 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5798
5799 * main.c (print_gdb_help): Add -q and --silent.
5800
5801 2014-06-06 Gary Benson <gbenson@redhat.com>
5802
5803 * common/signals.c: Remove preprocessor conditionals for
5804 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5805 SIGSEGV and SIGTERM.
5806 * proc-events.c: Likewise.
5807
5808 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5809
5810 * symfile.c (symfile_free_objfile): Remove restriction to
5811 OBJF_USERLOADED.
5812 * symfile-mem.c (symbol_file_add_from_memory): Call
5813 add_target_sections_of_objfile.
5814
5815 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5816
5817 * guile/scm-value.c (gdbscm_history_append_x): Use
5818 'vlscm_get_value_smob_arg_unsafe' instead of
5819 'vlscm_scm_to_value'.
5820
5821 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5822
5823 PR mi/15806
5824 * utils.c (printchar): Don't escape at all if quoter is NUL.
5825 Update function documentation to clarify effect of parameter
5826 QUOTER.
5827 * remote.c (escape_buffer): Pass '\\' as the quoter to
5828 fputstrn_unfiltered.
5829 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5830 generate the output.
5831 (mi_solib_unloaded): Same.
5832
5833 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5834
5835 * development.sh: Delete.
5836 * Makefile.in (config.status): Adjust dependency on development.sh.
5837 * configure.ac: Adjust development.sh source call.
5838 * configure: Regenerate.
5839
5840 2014-06-04 Doug Evans <xdje42@gmail.com>
5841
5842 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5843 is_scheme_bkpt, spec.
5844 (bpscm_make_breakpoint_smob): Initialize new members.
5845 (gdbscm_create_breakpoint_x): Split into two ...
5846 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5847 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5848 (scheme_function breakpoint_functions): Update.
5849 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5850 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5851 register-breakpoint!.
5852
5853 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5854
5855 PR server/17023
5856 * mem-break.c (z_type_supported): Return zero if
5857 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5858
5859 2014-06-04 Tom Tromey <tromey@redhat.com>
5860
5861 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5862 value_from_contents_and_address_unresolved.
5863 (ada_template_to_fixed_record_type_1): Likewise.
5864 (ada_which_variant_applies): Likewise.
5865 * value.h (value_from_contents_and_address_unresolved): Declare.
5866 * value.c (value_from_contents_and_address_unresolved): New
5867 function.
5868 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5869 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5870 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5871
5872 2014-06-04 Tom Tromey <tromey@redhat.com>
5873
5874 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5875
5876 2014-06-04 Tom Tromey <tromey@redhat.com>
5877
5878 * procfs.c (procfs_attach): Make "args" const.
5879 * windows-nat.c (windows_attach): Make "args" const.
5880 * nto-procfs.c (procfs_attach): Make "args" const.
5881 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5882 * go32-nat.c (go32_attach): Make "args" const.
5883 * gnu-nat.c (gnu_attach): Make "args" const.
5884 * darwin-nat.c (darwin_attach): Make "args" const.
5885 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5886 * linux-nat.c (linux_nat_attach): Make "args" const.
5887 * remote.c (extended_remote_attach_1, extended_remote_attach):
5888 Make "args" const.
5889 * target.h (struct target_ops) <to_attach>: Make "args" const.
5890 (find_default_attach): Likewise.
5891 * utils.c (parse_pid_to_attach): Make "args" const.
5892 * utils.h (parse_pid_to_attach): Update.
5893
5894 2014-06-04 Tom Tromey <tromey@redhat.com>
5895
5896 * target-delegates.c: Rebuild.
5897 * target.c (default_thread_address_space): New function.
5898 (target_thread_address_space): Simplify.
5899 * target.h (struct target_ops) <to_thread_address_space>: Add
5900 TARGET_DEFAULT_FUNC.
5901
5902 2014-06-04 Doug Evans <xdje42@gmail.com>
5903
5904 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5905
5906 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5907
5908 * record-btrace.c: Include event-loop.h and inf-loop.h.
5909 (record_btrace_resume_exec_dir)
5910 (record_btrace_async_inferior_event_handler)
5911 (record_btrace_handle_async_inferior_event): New.
5912 (record_btrace_open): Create async event handler.
5913 (record_btrace_close): Delete async event handler.
5914 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5915 Mark async event handler.
5916 (record_btrace_execution_direction): New.
5917 (init_record_btrace_ops): Initialize to_execution_direction.
5918
5919 2014-06-03 Doug Evans <xdje42@gmail.com>
5920
5921 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5922 (gdbscm_make_parameter): Ditto.
5923
5924 2014-06-03 Doug Evans <dje@google.com>
5925
5926 * exec.c (exec_close_1): Call clear_section_table instead of
5927 resize_section_table.
5928 (clear_section_table): New function.
5929 (resize_section_table): Make static. Rename arg num_added to
5930 adjustment.
5931 * exec.h (clear_section_table): Declare.
5932 (resize_section_table): Delete.
5933 * progspace.c (release_program_space): Call clear_section_table
5934 instead of resize_section_table.
5935
5936 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5937
5938 * NEWS (Python Scripting): Add entry about the new xmethods
5939 feature.
5940
5941 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5942
5943 * python/py-xmethods.c: New file.
5944 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5945 (objfpy_dealloc): XDECREF on the new xmethods field.
5946 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5947 field.
5948 (objfpy_get_xmethods): New function.
5949 (objfile_getset): New entry 'xmethods'.
5950 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5951 (pspy_dealloc): XDECREF on the new xmethods field.
5952 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5953 field.
5954 (pspy_get_xmethods): New function.
5955 (pspace_getset): New entry 'xmethods'.
5956 * python/python-internal.h: Add declarations for new functions.
5957 * python/python.c (_initialize_python): Invoke
5958 gdbpy_initialize_xmethods.
5959 * python/lib/gdb/__init__.py (xmethods): New
5960 attribute.
5961 * python/lib/gdb/xmethod.py: New file.
5962 * python/lib/gdb/command/xmethods.py: New file.
5963
5964 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5965
5966 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5967 best match method returned by find_overload_match is an xmethod.
5968 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5969 the best matching operator returned by find_overload_match is an
5970 xmethod.
5971 * valops.c: #include "extension.h".
5972 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5973 Return void. The list of matching source methods is returned in
5974 "fn_list" and a vector of matching debug method workers is
5975 returned in "xm_worker_vec". Update all callers.
5976 (value_find_oload_method_list): Likewise.
5977 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5978 non-NULL, then the index of the best matching method in this
5979 vector is returned. Update all callers.
5980 (find_overload_match): Include xmethods while performing overload
5981 resolution.
5982
5983 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5984
5985 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5986 * extension-priv.h (struct extension_language_ops): Add the
5987 xmethod interface.
5988 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5989 get_matching_xmethod_workers, get_xmethod_argtypes,
5990 invoke_xmethod, free_xmethod_worker,
5991 free_xmethod_worker_vec): New functions.
5992 * extension.h: #include "common/vec.h".
5993 New function declarations.
5994 (struct xmethod_worker): New struct.
5995 (VEC (xmethod_worker_ptr)): New vector type.
5996 (xmethod_worker_ptr): New typedef.
5997 (xmethod_worker_vec): Likewise.
5998 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5999 builtin_type.
6000 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6001 (struct builtin_type): New field "xmethod".
6002 * valarith.c (value_ptradd): Assert that the value argument is not
6003 lval_xcallable.
6004 * valops.c (value_must_coerce_to_target): Return 0 for
6005 lval_xcallable values.
6006 * value.c (struct value): New field XM_WORKER in the field
6007 LOCATION.
6008 (value_address, value_raw_address): Return 0 for lval_xcallable
6009 values.
6010 (set_value_address): Assert that the value is not an
6011 lval_xcallable.
6012 (value_free): Free the associated xmethod worker when freeing
6013 lval_xcallable values.
6014 (set_value_component_location): Assert that the WHOLE value is not
6015 lval_xcallable.
6016 (value_of_xmethod, call_xmethod): New functions.
6017 * value.h: Declare "struct xmethod_worker".
6018 Declare new functions value_of_xmethod, call_xmethod.
6019
6020 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6021 Pedro Alves <palves@redhat.com>
6022
6023 PR breakpoints/17000
6024 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6025 New function, extracted from software_breakpoint_inserted_here_p.
6026 (software_breakpoint_inserted_here_p): Replace factored out code
6027 by call to find_non_raw_software_breakpoint_inserted_here.
6028 (bp_target_info_copy_insertion_state): New function.
6029 (bkpt_insert_location): Handle the case of a single-step
6030 breakpoint already inserted at the same address.
6031 (bkpt_remove_location): Handle the case of a single-step
6032 breakpoint still inserted at the same address.
6033 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6034 breakpoint already inserted at the same address.
6035 (deprecated_remove_raw_breakpoint): Handle the case of a
6036 non-raw breakpoint still inserted at the same address.
6037 (find_single_step_breakpoint): New function, extracted from
6038 single_step_breakpoint_inserted_here_p.
6039 (find_single_step_breakpoint): New function,
6040 factored out from single_step_breakpoint_inserted_here_p.
6041 (single_step_breakpoint_inserted_here_p): Reimplement.
6042
6043 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6044
6045 Pushed by Joel Brobecker <brobecker@adacore.com>
6046 * source.c (show_substitute_path_command): Fix display of matching
6047 substitution rules.
6048
6049 2014-06-03 Gary Benson <gbenson@redhat.com>
6050
6051 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6052
6053 2014-06-02 Doug Evans <xdje42@gmail.com>
6054
6055 Add parameter support for Guile.
6056 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6057 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6058 (scm-param.o): New rule.
6059 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6060 (gdbscm_misc_error): Declare.
6061 (gdbscm_canonicalize_command_name): Declare.
6062 (gdbscm_scm_to_host_string): Declare.
6063 (gdbscm_scm_from_host_string): Declare.
6064 (gdbscm_initialize_parameters): Declare.
6065 * guile/guile.c (initialize_gdb_module): Call
6066 gdbscm_initialize_parameters.
6067 * guile/lib/gdb.scm: Export parameter symbols.
6068 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6069 cmdscm_canonicalize_name and made public. All callers updated.
6070 * guile/scm-exception.c (gdbscm_misc_error): New function.
6071 * guile/scm-param.c: New file.
6072 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6073 (gdbscm_scm_to_host_string): New function.
6074 (gdbscm_scm_from_host_string): New function.
6075 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6076
6077 2014-06-02 Doug Evans <xdje42@gmail.com>
6078
6079 Add command support for Guile.
6080 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6081 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6082 (scm-cmd.o): New rule.
6083 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6084 (gdbscm_user_error_p): Declare.
6085 (gdbscm_parse_command_name): Declare.
6086 (gdbscm_valid_command_class_p): Declare.
6087 (gdbscm_initialize_commands): Declare.
6088 * guile/guile.c (initialize_gdb_module): Call
6089 gdbscm_initialize_commands.
6090 * guile/lib/gdb.scm: Export command symbols.
6091 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6092 (throw-user-error): New function.
6093 * guile/scm-cmd.c: New file.
6094 * guile/scm-exception.c (user_error_symbol): New static global.
6095 (gdbscm_user_error_p): New function.
6096 (gdbscm_initialize_exceptions): Set user_error_symbol.
6097 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6098
6099 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6100
6101 * top.c (command_loop): Handle comments here...
6102 (command_line_input): ... not here.
6103
6104 2014-06-02 Doug Evans <xdje42@gmail.com>
6105
6106 Add progspace support for Guile.
6107 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6108 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6109 (scm-progspace.o): New rule.
6110 * guile/guile-internal.h (pspace_smob): New typedef.
6111 (psscm_pspace_smob_pretty_printers): Declare.
6112 (psscm_pspace_smob_from_pspace): Declare.
6113 (psscm_scm_from_pspace): Declare.
6114 * guile/guile.c (initialize_gdb_module): Call
6115 gdbscm_initialize_pspaces.
6116 * guile/lib/gdb.scm: Export progspace symbols.
6117 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6118 support.
6119 (append-pretty-printer!): Ditto.
6120 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6121 Implement.
6122 * guile/scm-progspace.c: New file.
6123
6124 2014-06-03 Alan Modra <amodra@gmail.com>
6125
6126 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6127 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6128
6129 2014-06-02 Doug Evans <dje@google.com>
6130
6131 Add support for skeletonless type units.
6132 * dwarf2read.c (struct dwarf2_per_objfile): New member
6133 n_allocated_type_units.
6134 (struct dwarf2_per_objfile) <tu_stats>: New member
6135 nr_all_type_units_reallocs.
6136 (create_signatured_type_table_from_index): Initialize
6137 n_allocated_type_units
6138 (create_all_type_units): Ditto.
6139 (add_type_unit): Move up in file. New arg slot.
6140 All callers updated. Increase space for all_type_units more
6141 efficiently.
6142 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6143 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6144 (lookup_dwp_signatured_type): Ditto.
6145 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6146 All callers updated.
6147 (build_type_psymtabs_1): Leave type_unit_groups as
6148 NULL if no TUs present.
6149 (print_tu_stats): New function.
6150 (process_skeletonless_type_unit): New function.
6151 (process_dwo_file_for_skeletonless_type_units): New
6152 function.
6153 (process_skeletonless_type_units): New function.
6154 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6155 Call print tu_stats if debugging enabled.
6156
6157 2014-06-02 Pedro Alves <palves@redhat.com>
6158
6159 * breakpoint.c (build_target_command_list): Don't build a command
6160 list if we have any duplicate location that isn't a dprintf.
6161
6162 2014-06-02 Pedro Alves <palves@redhat.com>
6163
6164 * breakpoint.c (dprintf_breakpoint_hit): New function.
6165 (initialize_breakpoint_ops): Install it as dprintf's
6166 breakpoint_hit method.
6167
6168 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6169
6170 * source.c (substitute_path_rule_matches): Simplify using
6171 filename_ncmp instead of FILENAME_CMP.
6172
6173 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6174
6175 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6176
6177 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6178
6179 * configure.ac: When Guile is available, check for the
6180 availability of 'scm_new_smob'.
6181 * configure, config.h.in: Regenerate.
6182 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6183 function.
6184
6185 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6186
6187 * frame.c (struct frame_info): Add stop_string field.
6188 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6189 (get_prev_frame_always): Old content moved into
6190 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6191 TRY_CATCH, handle MEMORY_ERROR exceptions.
6192 (frame_stop_reason_string): New function definition.
6193 * frame.h (unwind_stop_reason_to_string): Extend comment to
6194 mention frame_stop_reason_string.
6195 (frame_stop_reason_string): New function declaration.
6196 * stack.c (frame_info): Switch to frame_stop_reason_string.
6197 (backtrace_command_1): Switch to frame_stop_reason_string.
6198 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6199 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6200 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6201
6202 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6203
6204 * frame.c (frame_stop_reason_string): Rename to ...
6205 (unwind_stop_reason_to_string): this.
6206 * frame.h (frame_stop_reason_string): Rename to ...
6207 (unwind_stop_reason_to_string): this.
6208 * stack.c (frame_info): Update call to frame_stop_reason_string.
6209 (backtrace_command_1): Likewise.
6210 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6211 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6212
6213 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6214
6215 * frame.c (remove_prev_frame): New function.
6216 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6217 remove_prev_frame.
6218
6219 2014-05-29 Pedro Alves <palves@redhat.com>
6220
6221 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6222 and make it const. When a single-step decays to a continue,
6223 clear 'step', not 'hw_step'. Pass whether the caller wanted
6224 to step to user_visible_resume_ptid, not what we ask the
6225 target to do.
6226
6227 2014-05-29 Pedro Alves <palves@redhat.com>
6228
6229 * infrun.c (process_event_stop_test, handle_step_into_function)
6230 (handle_step_into_function_backward): Adjust.
6231 Don't set the even thread's stop_step and call stop_waiting before
6232 calling end_stepping_range. Instead do that ...
6233 (end_stepping_range): ... here. Take an ecs pointer parameter.
6234
6235 2014-05-29 Pedro Alves <palves@redhat.com>
6236
6237 * infrun.c (stop_stepping): Rename to ...
6238 (stop_waiting): ... this.
6239 (proceed): Update comment.
6240 (process_event_stop_test, handle_inferior_event)
6241 (handle_signal_stop, handle_step_into_function)
6242 (handle_step_into_function_backward): Update.
6243
6244 2014-05-29 Pedro Alves <palves@redhat.com>
6245
6246 * infcall.c (run_inferior_call): Don't check whether the current
6247 thread is running after the proceed call.
6248
6249 2014-05-29 Pedro Alves <palves@redhat.com>
6250 Tom Tromey <tromey@redhat.com>
6251
6252 * NEWS: Mention "maint set target-async", "set mi-async", and that
6253 background execution commands are now always available.
6254 * target.h (target_async_permitted): Update comment.
6255 * target.c (target_async_permitted, target_async_permitted_1):
6256 Default to 1.
6257 (set_target_async_command): Rename to ...
6258 (maint_set_target_async_command): ... this.
6259 (show_target_async_command): Rename to ...
6260 (maint_show_target_async_command): ... this.
6261 (_initialize_target): Adjust.
6262 * infcmd.c (prepare_execution_command): Make extern.
6263 * inferior.h (prepare_execution_command): Declare.
6264 * infrun.c (set_observer_mode): Leave target async alone.
6265 * mi/mi-interp.c (mi_interpreter_init): Install
6266 mi_on_sync_execution_done as sync_execution_done observer.
6267 (mi_on_sync_execution_done): New function.
6268 (mi_execute_command_input_handler): Don't print the prompt if we
6269 just started a synchronous command with an async target.
6270 (mi_on_resume): Check sync_execution before printing prompt.
6271 * mi/mi-main.h (mi_async_p): Declare.
6272 * mi/mi-main.c: Include gdbcmd.h.
6273 (mi_async_p): New function.
6274 (mi_async, mi_async_1): New globals.
6275 (set_mi_async_command, show_mi_async_command, mi_async): New
6276 functions.
6277 (exec_continue): Call prepare_execution_command.
6278 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6279 (mi_execute_async_cli_command): Use mi_async_p.
6280 (_initialize_mi_main): Install "set mi-async". Make
6281 "target-async" a deprecated alias.
6282
6283 2014-05-29 Pedro Alves <palves@redhat.com>
6284
6285 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6286 (_initialize_cli_interp): Adjust.
6287 * event-loop.c: Include "observer.h".
6288 (start_event_loop): Notify 'command_error' observers instead of
6289 calling display_gdb_prompt. Remove FIXME comment.
6290 * event-top.c (display_gdb_prompt): Remove call into the
6291 interpreters.
6292 * inf-loop.c: Include "observer.h".
6293 (inferior_event_handler): Notify 'command_error' observers instead
6294 of calling display_gdb_prompt.
6295 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6296 observers instead of calling display_gdb_prompt.
6297 * interps.c (interp_set): Don't call display_gdb_prompt.
6298 (current_interp_display_prompt_p): Delete.
6299 * interps.h (interp_prompt_p): Delete declaration.
6300 (interp_prompt_p_ftype): Delete.
6301 (struct interp_procs) <prompt_proc_p>: Delete field.
6302 (current_interp_display_prompt_p): Delete declaration.
6303 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6304 (_initialize_mi_interp): Adjust.
6305 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6306 'command_error' observers.
6307 (tui_on_sync_execution_done, tui_on_command_error): New
6308 functions.
6309 (tui_display_prompt_p): Delete.
6310 (_initialize_tui_interp): Adjust.
6311
6312 2014-05-29 Pedro Alves <palves@redhat.com>
6313
6314 PR gdb/13860
6315 * cli/cli-interp.c: Include infrun.h and observer.h.
6316 (cli_uiout, cli_interp): New globals.
6317 (cli_on_signal_received, cli_on_end_stepping_range)
6318 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6319 functions.
6320 (cli_interpreter_init): Install them as 'end_stepping_range',
6321 'signal_received' 'signal_exited', 'exited' and 'no_history'
6322 observers.
6323 (_initialize_cli_interp): Remove cli_interp local.
6324 * infrun.c (handle_inferior_event): Call the several stop reason
6325 observers instead of printing the stop reason directly.
6326 (end_stepping_range): New function.
6327 (print_end_stepping_range_reason, print_signal_exited_reason)
6328 (print_exited_reason, print_signal_received_reason)
6329 (print_no_history_reason): Make static, and add an uiout
6330 parameter. Print to that instead of to CURRENT_UIOUT.
6331 * infrun.h (print_end_stepping_range_reason)
6332 (print_signal_exited_reason, print_exited_reason)
6333 (print_signal_received_reason print_no_history_reason): New
6334 declarations.
6335 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6336 'mi_uiout'.
6337 <cli_uiout>: New field.
6338 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6339 uiout for CLI output. Install 'signal_received',
6340 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6341 observers.
6342 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6343 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6344 (mi_on_no_history): New functions.
6345 (ui_out_free_cleanup): Delete function.
6346 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6347 instead use the one already stored in the MI interpreter data.
6348 (mi_ui_out): Adjust.
6349 * tui/tui-interp.c: Include infrun.h and observer.h.
6350 (tui_interp): New global.
6351 (tui_on_signal_received, tui_on_end_stepping_range)
6352 (tui_on_signal_exited, tui_on_exited)
6353 (tui_on_no_history): New functions.
6354 (tui_init): Install them as 'end_stepping_range',
6355 'signal_received' 'signal_exited', 'exited' and 'no_history'
6356 observers.
6357 (_initialize_tui_interp): Delete tui_interp local.
6358
6359 2014-05-29 Pedro Alves <palves@redhat.com>
6360
6361 PR gdb/15713
6362 * linux-nat.c (linux_nat_resume_callback): Rename the second
6363 parameter to 'except'. Skip LP if it points to EXCEPT.
6364 (linux_nat_resume): Don't mark the event lwp as not stopped
6365 before resuming sibling lwps. Instead ask
6366 linux_nat_resume_callback to skip the event lwp. Mark it as not
6367 stopped after actually resuming it.
6368 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6369 resuming it.
6370 (wait_lwp): Mark the lwp as stopped here.
6371 (stop_wait_callback): Mark the lwp as not stopped right after
6372 resuming it. Don't mark lwps as stopped here.
6373 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6374 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6375
6376 2014-05-29 Pedro Alves <palves@redhat.com>
6377
6378 PR PR15693
6379 * infrun.c (resume): Determine how much to resume depending on
6380 whether the caller wanted a step, not whether we can hardware step
6381 the target. Mark all threads that we intend to run as running,
6382 unless we're calling an inferior function.
6383 (normal_stop): If the thread is running an infcall, don't finish
6384 thread state.
6385 * target.c (target_resume): Don't mark threads as running here.
6386
6387 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6388
6389 * serial.c (_initialize_serial): Remove support for
6390 the "set remotebaud" and "show remotebaud" commands.
6391 * NEWS: Add entry documenting the removal of that command.
6392
6393 2014-05-28 Yao Qi <yao@codesourcery.com>
6394
6395 * charset.c: Fix typo in comments.
6396
6397 2014-05-27 Gary Benson <gbenson@redhat.com>
6398
6399 * utils.c (internal_vproblem): Prompt for a bug report.
6400
6401 2014-05-26 Andy Wingo <wingo@igalia.com>
6402
6403 * guile/scm-arch.c (arscm_mark_arch_smob):
6404 * guile/scm-block.c (bkscm_mark_block_smob)
6405 (bkscm_mark_block_syms_progress_smob):
6406 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6407 * guile/scm-exception.c (exscm_mark_exception_smob):
6408 * guile/scm-frame.c (frscm_mark_frame_smob):
6409 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6410 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6411 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6412 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6413 (ppscm_mark_pretty_printer_worker_smob):
6414 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6415 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6416 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6417 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6418 mark functions.
6419 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6420 function.
6421
6422 2014-05-26 Andy Wingo <wingo@igalia.com>
6423 Doug Evans <xdje42@gmail.com>
6424
6425 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6426 empty_base_class. All uses updated.
6427 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6428 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6429 Adapt all callers.
6430 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6431 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6432 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6433 (gdbscm_gsmob_has_property_p, add_property_name)
6434 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6435 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6436 (gdb-object-has-property?, gdb-object-properties): Remove.
6437 (gdb-object-kind): Renamed from gsmob-kind.
6438
6439 2014-05-26 Andy Wingo <wingo@igalia.com>
6440
6441 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6442 * configure: Regenerate.
6443
6444 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6445
6446 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6447
6448 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6449
6450 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6451 (replay_memory_access_read_only, replay_memory_access_read_write)
6452 (replay_memory_access_types, replay_memory_access)
6453 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6454 (cmd_set_record_btrace, cmd_show_record_btrace)
6455 (cmd_show_replay_memory_access): New.
6456 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6457 (record_btrace_remove_breakpoint): Replace
6458 record_btrace_allow_memory_access with replay_memory_access.
6459 (_initialize_record_btrace): Add commands.
6460 * NEWS: Announce it.
6461
6462 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6463
6464 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6465
6466 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6467
6468 * MAINTAINERS (Write After Approval): Move self back from
6469 paper trail.
6470
6471 2014-05-22 Pedro Alves <palves@redhat.com>
6472
6473 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6474 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6475 (disable_randomization, enum exec_direction_kind)
6476 (execution_direction, stop_registers, start_remote)
6477 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6478 (wait_for_inferior, normal_stop, get_last_target_status)
6479 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6480 (insert_step_resume_breakpoint_at_sal)
6481 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6482 (set_step_info, print_stop_event, signal_stop_state)
6483 (signal_print_state, signal_pass_state, signal_stop_update)
6484 (signal_print_update, signal_pass_update)
6485 (update_signals_program_target, clear_exit_convenience_vars)
6486 (displaced_step_dump_bytes, update_observer_mode)
6487 (signal_catch_update, gdb_signal_from_command): Move
6488 declarations ...
6489 * infrun.h: ... to this new file.
6490 * amd64-tdep.c: Include infrun.h.
6491 * annotate.c: Include infrun.h.
6492 * arch-utils.c: Include infrun.h.
6493 * arm-linux-tdep.c: Include infrun.h.
6494 * arm-tdep.c: Include infrun.h.
6495 * break-catch-sig.c: Include infrun.h.
6496 * breakpoint.c: Include infrun.h.
6497 * common/agent.c: Include infrun.h instead of inferior.h.
6498 * corelow.c: Include infrun.h.
6499 * event-top.c: Include infrun.h.
6500 * go32-nat.c: Include infrun.h.
6501 * i386-tdep.c: Include infrun.h.
6502 * inf-loop.c: Include infrun.h.
6503 * infcall.c: Include infrun.h.
6504 * infcmd.c: Include infrun.h.
6505 * infrun.c: Include infrun.h.
6506 * linux-fork.c: Include infrun.h.
6507 * linux-nat.c: Include infrun.h.
6508 * linux-thread-db.c: Include infrun.h.
6509 * monitor.c: Include infrun.h.
6510 * nto-tdep.c: Include infrun.h.
6511 * procfs.c: Include infrun.h.
6512 * record-btrace.c: Include infrun.h.
6513 * record-full.c: Include infrun.h.
6514 * remote-m32r-sdi.c: Include infrun.h.
6515 * remote-mips.c: Include infrun.h.
6516 * remote-notif.c: Include infrun.h.
6517 * remote-sim.c: Include infrun.h.
6518 * remote.c: Include infrun.h.
6519 * reverse.c: Include infrun.h.
6520 * rs6000-tdep.c: Include infrun.h.
6521 * s390-linux-tdep.c: Include infrun.h.
6522 * solib-irix.c: Include infrun.h.
6523 * solib-osf.c: Include infrun.h.
6524 * solib-svr4.c: Include infrun.h.
6525 * target.c: Include infrun.h.
6526 * top.c: Include infrun.h.
6527 * windows-nat.c: Include infrun.h.
6528 * mi/mi-interp.c: Include infrun.h.
6529 * mi/mi-main.c: Include infrun.h.
6530 * python/py-threadevent.c: Include infrun.h.
6531
6532 2014-05-22 Pedro Alves <palves@redhat.com>
6533
6534 * infrun.c (handle_inferior_event): Store the exit code for
6535 --return-child-result here, instead of ...
6536 (print_exited_reason): ... here.
6537
6538 2014-05-21 Pedro Alves <palves@redhat.com>
6539
6540 PR gdb/13860
6541 * gdbthread.h (struct thread_control_state): New field
6542 `command_interp'.
6543 * infrun.c (follow_fork): Copy the new thread control field to the
6544 child fork thread.
6545 (clear_proceed_status_thread): Clear the new thread control field.
6546 (proceed): Set the new thread control field.
6547 * interps.h (command_interp): Declare.
6548 * interps.c (command_interpreter): New global.
6549 (command_interp): New function.
6550 (interp_exec): Set `command_interpreter' while here.
6551 * cli-out.c (cli_uiout_dtor): New function.
6552 (cli_ui_out_impl): Install it.
6553 * mi/mi-interp.c: Include cli-out.h.
6554 (mi_cmd_interpreter_exec): Add comment.
6555 (restore_current_uiout_cleanup): New function.
6556 (ui_out_free_cleanup): New function.
6557 (mi_on_normal_stop): If finishing an execution command started by
6558 a CLI command, or any kind of breakpoint-like event triggered,
6559 print the stop event to the output (CLI) stream.
6560 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6561
6562 2014-05-21 Pedro Alves <palves@redhat.com>
6563
6564 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6565 current source line having changed.
6566 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6567 * infrun.c (normal_stop): Adjust call to
6568 set_current_sal_from_frame.
6569 * source.c (clear_lines_listed_range): New function.
6570 (set_current_source_symtab_and_line, identify_source_line): Clear
6571 the lines listed range.
6572 (line_info): Handle the first "info line" after the current source
6573 line having changed.
6574 * stack.c (print_stack_frame): Remove center handling.
6575 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6576 center sal.line.
6577
6578 2014-05-21 Pedro Alves <palves@redhat.com>
6579
6580 * inf-child.c (inf_child_mourn_inferior): New function.
6581 * inf-child.h (inf_child_mourn_inferior): New declaration.
6582 * darwin-nat.c (darwin_mourn_inferior): Use
6583 inf_child_mourn_inferior.
6584 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6585 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6586 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6587 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6588 * windows-nat.c (windows_mourn_inferior): Likewise.
6589
6590 2014-05-21 Doug Evans <xdje42@gmail.com>
6591
6592 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6593
6594 2014-05-21 Doug Evans <xdje42@gmail.com>
6595
6596 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6597 (gdbscm_out_of_range_error): Ditto.
6598 (gdbscm_memory_error): Ditto.
6599 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6600 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6601 (gdbscm_out_of_range_error): Update.
6602 (gdbscm_memory_error): Update.
6603 (gdbscm_scm_to_target_string_unsafe): Delete.
6604
6605 2014-05-21 Pedro Alves <palves@redhat.com>
6606
6607 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6608 globals.
6609 (inf_child_open_target): New function.
6610 (inf_child_open): Use inf_child_open_target to push the target
6611 instead of erroring out.
6612 (inf_child_disconnect, inf_child_close)
6613 (inf_child_maybe_unpush_target): New functions.
6614 (inf_child_target): Install inf_child_disconnect and
6615 inf_child_close. Store a pointer to the returned object.
6616 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6617 declarations.
6618 * target.c (auto_connect_native_target): New global.
6619 (show_default_run_target): New function.
6620 (find_default_run_target): Return NULL if automatically connecting
6621 to the native target is disabled.
6622 (_initialize_target): Install set/show auto-connect-native-target.
6623 * NEWS: Mention "set auto-connect-native-target", and "target
6624 native".
6625 * linux-nat.c (super_close): New global.
6626 (linux_nat_close): Call super_close.
6627 (linux_nat_add_target): Store a pointer to the base class's
6628 to_close method.
6629 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6630 inf_child_maybe_unpush.
6631 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6632 already pushed.
6633 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6634 the inferior. Use inf_child_maybe_unpush_target.
6635 (inf_ttrace_attach): Don't push the target if it is already
6636 pushed.
6637 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6638 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6639 after mourning the inferior. Use inf_child_maybe_unpush_target.
6640 (darwin_attach_pid): Don't push the target if it is already
6641 pushed.
6642 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6643 mourning the inferior. Use inf_child_maybe_unpush_target.
6644 (gnu_detach): Use inf_child_maybe_unpush_target.
6645 * go32-nat.c (go32_create_inferior): Don't push the target if it
6646 is already pushed.
6647 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6648 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6649 (procfs_open): Rename to ...
6650 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6651 comments. Can target_preopen before changing node. Call
6652 inf_child_open_target to push the target explicitly.
6653 (procfs_attach): Don't push the target if it is already pushed.
6654 (procfs_detach): Use inf_child_maybe_unpush_target.
6655 (procfs_create_inferior): Don't push the target if it is already
6656 pushed.
6657 (nto_native_ops): New global.
6658 (procfs_open): Reimplement.
6659 (procfs_native_open): New function.
6660 (init_procfs_targets): Install procfs_native_open as to_open of
6661 "target native". Store a pointer to the "native" target in
6662 nto_native_ops.
6663 * procfs.c (procfs_attach): Don't push the target if it is already
6664 pushed.
6665 (procfs_detach): Use inf_child_maybe_unpush_target.
6666 (procfs_mourn_inferior): Only unpush the target after mourning the
6667 inferior. Use inf_child_maybe_unpush_target.
6668 (procfs_init_inferior): Don't push the target if it is already
6669 pushed.
6670 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6671 if it is already pushed.
6672
6673 2014-05-21 Pedro Alves <palves@redhat.com>
6674
6675 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6676 and "procfs" targets are now called "native" instead.
6677
6678 2014-05-21 Pedro Alves <palves@redhat.com>
6679
6680 * go32-nat.c (go32_open): Delete.
6681 (go32_target): Don't override the to_open method.
6682
6683 2014-05-21 Pedro Alves <palves@redhat.com>
6684
6685 * nto-procfs.c (procfs_can_run): New function.
6686 (nto_procfs_ops): New global.
6687 (init_procfs_targets): New, based on procfs_target. Install
6688 "target native" in addition to "target procfs".
6689 (_initialize_procfs): Call init_procfs_targets instead of adding
6690 the target here.
6691
6692 2014-05-21 Pedro Alves <palves@redhat.com>
6693
6694 * windows-nat.c (windows_target): Don't override to_shortname,
6695 to_longname or to_doc.
6696
6697 2014-05-21 Pedro Alves <palves@redhat.com>
6698
6699 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6700 to_doc.
6701
6702 2014-05-21 Pedro Alves <palves@redhat.com>
6703
6704 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6705 to_shortname, to_longname or to_doc.
6706
6707 2014-05-21 Pedro Alves <palves@redhat.com>
6708
6709 * go32-nat.c (go32_target): Don't override to_shortname,
6710 to_longname or to_doc.
6711
6712 2014-05-21 Pedro Alves <palves@redhat.com>
6713
6714 * inf-child.c (inf_child_open): Remove mention of "child".
6715 (inf_child_target): Rename target to "native" instead of "child".
6716
6717 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6718
6719 * Makefile.in (SFILES): Delete "regset.c".
6720 (COMMON_OBS): Delete "regset.o".
6721 * regset.c: Remove.
6722 * regset.h (regset_alloc): Delete prototype.
6723
6724 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6725
6726 * sparc-linux-tdep.c (sparc32_linux_gregset)
6727 (sparc32_linux_fpregset): New static regset structures.
6728 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6729 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6730 'fpregset' fields.
6731 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6732 (sparc64_linux_fpregset): New static regset structures.
6733 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6734 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6735 New static regset structures.
6736 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6737 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6738 New static regset structures.
6739 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6740 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6741 New static regset structures.
6742 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6743 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6744 New static regset structures.
6745 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6746
6747 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6748
6749 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6750 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6751 register maps ("regmaps") from "*regset" to "*regmap". Do this
6752 for all regmap types and variables.
6753 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6754 (sparc32_linux_supply_core_gregset)
6755 (sparc32_linux_collect_core_gregset)
6756 (sparc32_linux_supply_core_fpregset)
6757 (sparc32_linux_collect_core_fpregset): Likewise.
6758 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6759 (sparc_gregmap, sparc_fpregmap): ... these.
6760 (sparc_supply_gregset, sparc_collect_gregset)
6761 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6762 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6763 (_initialize_sparc_nat): Rename regmaps.
6764 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6765 (sparc_gregmap, sparc_fpregmap): ... these.
6766 (sparc_supply_gregset, sparc_collect_gregset)
6767 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6768 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6769 Rename macros to...
6770 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6771 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6772 Likewise.
6773 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6774 Rename to...
6775 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6776 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6777 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6778 regmaps.
6779 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6780 (sparc32_bsd_fpregset): Rename to...
6781 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6782 (sparc32_bsd_fpregmap): ... these.
6783 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6784 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6785 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6786 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6787 (struct sparc_gregmap, struct sparc_fpregmap)
6788 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6789 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6790 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6791 (sparc32_supply_regset, sparc32_collect_gregset)
6792 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6793 prototypes.
6794 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6795 (sparc64_linux_ptrace_gregmap): ... this.
6796 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6797 (_initialize_sparc64_linux_nat): Rename regmaps.
6798 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6799 (sparc64_linux_core_gregmap): ... this.
6800 (sparc64_linux_supply_core_gregset)
6801 (sparc64_linux_collect_core_gregset)
6802 (sparc64_linux_supply_core_fpregset)
6803 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6804 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6805 (sparc64_sol2_fpregset): Rename to...
6806 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6807 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6808 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6809 regmaps.
6810 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6811 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6812 (sparc64_bsd_fpregset): Rename to...
6813 (struct sparc_gregmap, sparc64_sol2_gregmap)
6814 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6815 (sparc64_bsd_fpregmap): ... these.
6816 (sparc64_supply_gregset, sparc64_collect_gregset)
6817 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6818 prototypes.
6819 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6820 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6821 (sparc64fbsd_gregmap): ... this.
6822 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6823 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6824 Rename regmaps.
6825 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6826 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6827 (sparc64nbsd_collect_fpregset): Likewise.
6828 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6829 (sparc64nbsd_gregmap): ... this.
6830 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6831 regmaps.
6832 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6833 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6834 (sparc64obsd_gregmap): ... this.
6835 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6836 regmaps.
6837 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6838 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6839 (sparc32nbsd_gregmap): ... this.
6840 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6841 regmaps.
6842
6843 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6844
6845 * score-tdep.c (score7_linux_gregset): New static regset
6846 structure.
6847 (score7_linux_regset_from_core_section): Remove dynamic regset
6848 allocation.
6849 (score_gdbarch_init): Drop allocation of tdep structure.
6850 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6851
6852 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6853
6854 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6855 regset structures.
6856 (am33_regset_from_core_section): Remove dynamic regset
6857 allocations.
6858
6859 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6860
6861 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6862 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6863 structures.
6864 (mips_linux_regset_from_core_section): Remove dynamic regset
6865 allocations.
6866 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6867 'gregset64', 'fpregset', and 'fpregset64'.
6868 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6869 deleted tdep fields.
6870
6871 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6872
6873 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6874 regset structures.
6875 (amd64_regset_from_core_section): Remove dynamic regset
6876 allocations.
6877 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6878 structure.
6879 (amd64obsd_regset_from_core_section): Remove dynamic regset
6880 allocation.
6881 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6882 Likewise.
6883 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6884 x86-common regset supply function.
6885 * i386-tdep.c (i386_collect_gregset): Make static.
6886 (i386_gregset): New global regset structure.
6887 (i386_fpregset, i386_xstateregset): New static regset structures.
6888 (i386_regset_from_core_section): Remove dynamic regset
6889 allocations.
6890 (i386_gdbarch_init): Remove initialization of tdep fields
6891 'gregset', 'fpregset', and 'xstateregset'.
6892 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6893 'fpregset', and 'xstateregset'.
6894 (i386_collect_gregset): Remove prototype.
6895 (i386_gregset): New declaration.
6896 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6897 structure.
6898 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6899 allocation.
6900
6901 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6902
6903 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6904 (arm_linux_vfpregset): New static regset structures.
6905 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6906 regset structures.
6907 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6908 and 'vfpregset' fields.
6909
6910 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6911
6912 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6913 (aarch64_linux_fpregset): New static regset structures.
6914 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6915 of regset structures.
6916 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6917 'fpregset' fields.
6918
6919 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6920
6921 * regset.h (struct regset): Remove gdbarch field.
6922 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6923 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6924 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6925 Likewise.
6926 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6927 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6928 (ppc32_linux_vsxregset): Likewise.
6929 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6930 via the regcache instead of the regset.
6931 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6932 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6933 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6934 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6935 Likewise.
6936
6937 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6938
6939 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6940 Constify structures.
6941 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6942 (alphanbsd_aout_gregset): Likewise.
6943 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6944 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6945 Likewise.
6946 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6947 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6948 Likewise.
6949 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6950 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6951 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6952 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6953 * m88k-tdep.c (m88k_gregset): Likewise.
6954 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6955 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6956 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6957 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6958 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6959 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6960 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6961 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6962 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6963 Likewise.
6964 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6965 * sh-tdep.h (sh_corefile_gregset): Likewise.
6966 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6967 * vax-tdep.c (vax_gregset): Likewise.
6968
6969 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6970
6971 Fix TLS access for -static -pthread.
6972 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6973 (try_thread_db_load_1): Initialize it.
6974 (thread_db_get_thread_local_address): Call it if LM is zero.
6975 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6976 * target.h (struct target_ops) (to_get_thread_local_address): Add
6977 load_module_addr comment.
6978
6979 2014-05-21 Pedro Alves <palves@redhat.com>
6980
6981 * dcache.c (dcache_read_memory_partial): If reading the cache line
6982 fails, fallback to reading just the memory the caller wanted.
6983
6984 2014-05-20 Doug Evans <dje@google.com>
6985
6986 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6987 instead of get_current_arch.
6988
6989 2014-05-20 Pedro Alves <palves@redhat.com>
6990
6991 * NEWS: Mention that compare-sections now works with all targets.
6992
6993 * remote.c (PACKET_qCRC): New enum value.
6994 (remote_verify_memory): Don't send qCRC if the target has no
6995 execution. Use packet_support/packet_ok. If the target doesn't
6996 support the qCRC packet, fallback to a deep memory copy.
6997 (compare_sections_command): Say "target image" instead of "remote
6998 executable".
6999 (_initialize_remote): Add PACKET_qCRC to the list of config
7000 packets that have no associated command. Extend comment.
7001 * target.c (simple_verify_memory, default_verify_memory): New
7002 function.
7003 * target.h (struct target_ops) <to_verify_memory>: Default to
7004 default_verify_memory.
7005 (simple_verify_memory): New declaration.
7006 * target-delegates.c: Regenerate.
7007
7008 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7009
7010 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7011
7012 2014-05-20 Hui Zhu <hui@codesourcery.com>
7013 Yao Qi <yao@codesourcery.com>
7014
7015 PR backtrace/16558
7016 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7017 and change address of sp and pc.
7018
7019 2014-05-19 Tom Tromey <tromey@redhat.com>
7020
7021 * gdbtypes.c (rank_function): Use XNEWVEC.
7022 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7023
7024 2014-05-19 Doug Evans <dje@google.com>
7025
7026 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7027 build_type_unit_groups and moved closer to only caller. Remove
7028 arguments. All references updated. Remove outdated .gdb_index
7029 comment.
7030 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7031 build_type_psymtabs_1.
7032
7033 2014-05-19 Doug Evans <dje@google.com>
7034
7035 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7036 n_type_unit_groups, all_type_unit_groups. All uses removed.
7037 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7038 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7039 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7040 (add_type_unit_group_to_table): Delete.
7041
7042 2014-05-19 Doug Evans <dje@google.com>
7043
7044 * eval.c (evaluate_subexp_standard): Add some comments.
7045
7046 2014-05-17 Doug Evans <xdje42@gmail.com>
7047
7048 * progspace.c (remove_program_space): Delete, unused.
7049 * progspace.h (remove_program_space): Ditto.
7050
7051 2014-05-17 Doug Evans <xdje42@gmail.com>
7052
7053 * inferior.c (prune_inferiors): Fix comment.
7054 (remove_inferior_command): Call prune_program_spaces.
7055
7056 2014-05-16 Doug Evans <dje@google.com>
7057
7058 New command line option -D.
7059 * NEWS: Mention it.
7060 * main.c (set_gdb_data_directory): New function.
7061 (captured_main): Recognize -D. Flag error for --data-directory "".
7062 Call set_gdb_data_directory.
7063 (print_gdb_help): Print --data-directory, -D.
7064 * main.h (set_gdb_data_directory): Declare.
7065 * top.c (staged_gdb_datadir): New static global.
7066 (set_gdb_datadir): Call set_gdb_data_directory
7067 (show_gdb_datadir): New function.
7068 (init_main): Update init of data-directory parameter.
7069
7070 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7071
7072 Import the "dirfd" gnulib module.
7073 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7074 * gnulib/aclocal.m4: Update.
7075 * gnulib/config.in: Update.
7076 * gnulib/configure: Update.
7077 * gnulib/import/Makefile.am: Update.
7078 * gnulib/import/Makefile.in: Update.
7079 * gnulib/import/dirfd.c: New.
7080 * gnulib/import/m4/dirfd.m4: New.
7081 * gnulib/import/m4/gnulib-cache.m4: Update.
7082 * gnulib/import/m4/gnulib-comp.m4: Update.
7083
7084 2014-05-16 Pierre Muller <muller@sourceware.org>
7085 Yao Qi <yao@codesourcery.com>
7086
7087 * valprint.c (print_wchar): Move the code on checking whether
7088 W is a printable wide char to the default branch of switch
7089 statement below. Call wchar_printable instead of gdb_iswprint.
7090
7091 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7092
7093 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7094 ldr.w and ldrd instructions.
7095
7096 2014-05-15 Doug Evans <dje@google.com>
7097
7098 * dwarf2read.c (read_structure_type): Delete outdated comments.
7099
7100 2014-05-14 Tom Tromey <tromey@redhat.com>
7101
7102 * macrocmd.c (print_macro_definition): Reindent.
7103
7104 2014-05-13 Doug Evans <xdje42@gmail.com>
7105
7106 * python/py-cmd.c (cmdpy_completer): Add comment.
7107 (completers): Make const.
7108
7109 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7110
7111 * infrun.c (resume): Remove should_resume (unused). Move up
7112 declaration of resume_ptid.
7113
7114 2014-05-13 Tom Tromey <tromey@redhat.com>
7115
7116 * language.h (unop_type_check): Remove.
7117 (binop_type_check): Don't declare.
7118
7119 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7120
7121 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7122 call to regcache_raw_collect.
7123
7124 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7125
7126 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7127 mi_console->quote as the quoting character.
7128
7129 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7130
7131 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7132
7133 2014-04-29 Tom Tromey <tromey@redhat.com>
7134
7135 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7136 "show debug varobj".
7137
7138 2014-05-07 Kyle McMartin <kyle@redhat.com>
7139
7140 Pushed by Joel Brobecker <brobecker@adacore.com>.
7141 * aarch64-tdep.c (aarch64_software_single_step): New function.
7142 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7143 with aarch64_software_single_step.
7144
7145 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7146
7147 GDB 7.7.1 released.
7148
7149 2014-05-05 Keith Seitz <keiths@redhat.com>
7150
7151 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7152 variable or history value is successfully parsed.
7153
7154 2014-05-05 Yao Qi <yao@codesourcery.com>
7155 Pedro Alves <palves@redhat.com>
7156
7157 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7158 address of blocks that intersects the requested range. Trim
7159 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7160 sections.
7161 * ctf.c (ctf_xfer_partial): Likewise.
7162
7163 2014-05-05 Yao Qi <yao@codesourcery.com>
7164
7165 * printcmd.c (display_command): Remove the check to
7166 target_has_execution.
7167
7168 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7169
7170 * ppcobsd-nat.c: Include "obsd-nat.h".
7171 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7172 add_target.
7173 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7174
7175 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7176
7177 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7178 and 16-bit signed and unsigned arguments. Update comment.
7179 (stap_parse_probe_arguments): Extend code to handle such
7180 arguments. Use warning instead of complaint to notify about
7181 unrecognized bitness.
7182
7183 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7184
7185 PR breakpoints/16889
7186 * stap-probe.c (stap_parse_probe_arguments): Simplify
7187 check for non-prefixed probes (i.e., probes whose
7188 arguments do not start with "N@"). Always set the
7189 argument type to a sane value.
7190
7191 2014-05-01 David Taylor <dtaylor@emc.com>
7192
7193 * remote.c (compare_sections_command): Add -r option to compare
7194 all loadable read-only sections.
7195
7196 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7197
7198 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7199 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7200 Update all callers.
7201 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7202 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7203 Remove unused CORE_ADDR argument. Update all callers.
7204
7205 2014-04-29 Pedro Alves <palves@redhat.com>
7206
7207 * remote.c (struct packet_config) <detect>: Extend comment.
7208 (add_packet_config_cmd): Don't set the config's detect or support
7209 fields here.
7210 (init_all_packet_configs): Also initialize the config's 'detect'
7211 field.
7212 (reset_all_packet_configs_support): New function.
7213 (remote_open_1): Call reset_all_packet_configs_support instead of
7214 init_all_packet_configs.
7215 (_initialize_remote): Initialize all packet configs. Assert that
7216 all packets have an associated command, except a few known
7217 outliers.
7218
7219 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7220
7221 * dwarf2read.c (read_subrange_type): Handle dynamic
7222 DW_AT_lower_bound attributes.
7223
7224 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7225
7226 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7227 dynamic bounds before computing its upper bound.
7228 (ada_discrete_type_low_bound): Same as above with the lower bound.
7229
7230 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7231
7232 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7233 range types. Adjust the array handling implementation to
7234 take advantage of this change.
7235 (resolve_dynamic_range): New function, mostly extracted from
7236 resolve_dynamic_bounds.
7237 (resolve_dynamic_array): New function, mostly extracted from
7238 resolve_dynamic_bounds.
7239 (resolve_dynamic_bounds): Delete.
7240 (resolve_dynamic_type): Reimplement. Add handling of
7241 TYPE_CODE_RANGE types.
7242
7243 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7244
7245 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7246 handling of parallel ___XA types.
7247
7248 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7249
7250 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7251 unnecessary second call to static_unwrap_type.
7252
7253 2014-04-27 Hui Zhu <hui@codesourcery.com>
7254
7255 * stack.c (print_frame_info): Call do_gdb_disassembly with
7256 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7257
7258 2014-04-26 Doug Evans <xdje42@gmail.com>
7259
7260 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7261
7262 2014-04-25 Pedro Alves <palves@redhat.com>
7263
7264 PR server/16255
7265 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7266 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7267 and newline from built string.
7268 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7269 (linux_ptrace_attach_fail_reason): ... this.
7270 * linux-nat.c (linux_nat_attach): Adjust to use
7271 linux_ptrace_attach_fail_reason.
7272
7273 2014-04-25 Pedro Alves <palves@redhat.com>
7274
7275 * remote.c (struct remote_state): Remove multi_process_aware,
7276 non_stop_aware, cond_tracepoints, cond_breakpoints,
7277 breakpoint_commands, fast_tracepoints, static_tracepoints,
7278 install_in_trace, disconnected_tracing,
7279 enable_disable_tracepoints, string_tracing, and
7280 augmented_libraries_svr4_read fields.
7281 (remote_multi_process_p): Move further below in the file.
7282 (struct packet_config): Add comments.
7283 (update_packet_config): Delete function.
7284 (show_packet_config_cmd): Use packet_config_support.
7285 (add_packet_config_cmd): Use NULL as set callback.
7286 (packet_ok): "set remote foo-packet"-style commands no longer
7287 change config->supported -- adjust.
7288 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7289 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7290 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7291 (PACKET_QNonStop, PACKET_multiprocess_feature)
7292 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7293 (PACKET_DisconnectedTracing_feature)
7294 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7295 (set_remote_protocol_packet_cmd): Delete function.
7296 (packet_config_support, packet_support): New functions.
7297 (set_remote_protocol_Z_packet_cmd): Don't call
7298 update_packet_config.
7299 (remote_query_attached, remote_pass_signals)
7300 (remote_program_signals, remote_threads_info)
7301 (remote_threads_extra_info, remote_start_remote): Use
7302 packet_support.
7303 (remote_start_remote): Use packet_config_support and
7304 packet_support.
7305 (init_all_packet_configs): Set all packets to unknown support,
7306 instead of calling update_packet_config.
7307 (remote_check_symbols): Use packet_support.
7308 (remote_supported_packet): Unconditionally set the packet config's
7309 support status.
7310 (remote_multi_process_feature, remote_non_stop_feature)
7311 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7312 (remote_breakpoint_commands_feature)
7313 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7314 (remote_install_in_trace_feature)
7315 (remote_disconnected_tracing_feature)
7316 (remote_enable_disable_tracepoint_feature)
7317 (remote_string_tracing_feature)
7318 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7319 (remote_protocol_features): Adjust to use remote_supported_packet
7320 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7321 "ConditionalTracepoints", "ConditionalBreakpoints",
7322 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7323 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7324 "EnableDisableTracepoints", and "tracenz".
7325 (remote_query_supported): Use packet_support.
7326 (remote_open_1): Adjust.
7327 (extended_remote_attach_1): Use packet_support. Switch on the
7328 result of packet_ok instead of checking whether the packet ended
7329 up disabled.
7330 (remote_vcont_resume): Use packet_support.
7331 (remote_resume, remote_stop_ns, fetch_register_using_p)
7332 (remote_prepare_to_store, store_register_using_P)
7333 (check_binary_download, remote_write_bytes): Use packet_support.
7334 (remote_vkill): Use packet_support. Switch on the result of
7335 packet_ok instead of checking whether the packet ended up
7336 disabled.
7337 (extended_remote_supports_disable_randomization): Use
7338 packet_support.
7339 (extended_remote_run): Switch on the result of packet_ok instead
7340 of checking whether the packet ended up disabled.
7341 (remote_insert_breakpoint, remote_remove_breakpoint)
7342 (remote_insert_watchpoint, remote_remove_watchpoint)
7343 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7344 packet_support.
7345 (remote_search_memory): Use packet_config_support.
7346 (remote_get_thread_local_address, remote_get_tib_address)
7347 (remote_hostio_send_command, remote_can_execute_reverse): Use
7348 packet_support.
7349 (remote_supports_cond_tracepoints)
7350 (remote_supports_cond_breakpoints)
7351 (remote_supports_fast_tracepoints)
7352 (remote_supports_static_tracepoints)
7353 (remote_supports_install_in_trace)
7354 (remote_supports_enable_disable_tracepoint)
7355 (remote_supports_string_tracing)
7356 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7357 the packet config says the feature is enabled or disabled.
7358 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7359 (remote_get_trace_status): Use packet_support.
7360 (remote_set_disconnected_tracing): Adjust to check whether the
7361 feature is enabled with packet_support.
7362 (remote_set_trace_buffer_size, remote_use_agent)
7363 (remote_can_use_agent, remote_supports_btrace): Use
7364 packet_support.
7365 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7366 Use packet_config_support.
7367 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7368 the packet config says the feature is enabled or disabled.
7369 (set_range_stepping): Use packet_support.
7370
7371 2014-04-25 Tom Tromey <tromey@redhat.com>
7372
7373 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7374 argument.
7375
7376 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7377
7378 * NEWS: Mention support for C99 variable length arrays.
7379
7380 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7381
7382 * ada-lang.c (standard_exc): Expand introductory comment.
7383
7384 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7385 Walfred Tedeschi <walfred.tedeschi@intel.com>
7386
7387 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7388 AVX512 registers.
7389 (amd64_linux_read_description): Add code to handle AVX512 xstate
7390 mask and return respective tdesc.
7391 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7392 and features/i386/x32-avx512-linux.c.
7393 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7394 (amd64_linux_core_read_description): Add code to handle AVX512
7395 xstate mask and return respective tdesc.
7396 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7397 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7398 calculation.
7399 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7400 (tdesc_amd64_avx512_linux): New prototype.
7401 (tdesc_x32_avx512_linux): Likewise.
7402 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7403 features/i386/x32-avx512.c.
7404 (amd64_ymm_avx512_names): New register names for pseudo
7405 registers YMM16-31.
7406 (amd64_ymmh_avx512_names): New register names for raw registers
7407 YMMH16-31.
7408 (amd64_k_names): New register names for K registers.
7409 (amd64_zmmh_names): New register names for ZMM raw registers.
7410 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7411 (amd64_xmm_avx512_names): New register names for XMM16-31
7412 registers.
7413 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7414 registers.
7415 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7416 if feature is present.
7417 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7418 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7419 (AMD64_NUM_REGS): Adjust to new number of registers.
7420 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7421 registers supplied via XSTATE by AVX512 registers.
7422 (i386_linux_read_description): Add case for AVX512.
7423 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7424 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7425 (i386_linux_core_read_description): Add case for AVX512.
7426 (i386_linux_init_abi): Install supported register note section
7427 for AVX512.
7428 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7429 AVX512.
7430 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7431 registers to be number of zmm7h + 1.
7432 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7433 * i386-tdep.c: Include features/i386/i386-avx512.c.
7434 (i386_zmm_names): Add ZMM pseudo register names array.
7435 (i386_zmmh_names): Add ZMM raw register names array.
7436 (i386_k_names): Add K raw register names array.
7437 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7438 registers. AVX512 has 16 more ZMM registers than there are YMM
7439 registers.
7440 (i386_zmmh_regnum_p): Add function to look up register number of
7441 ZMM raw registers.
7442 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7443 (i386_k_regnum_p): Likewise for K raw registers.
7444 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7445 registers added by AVX512.
7446 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7447 registers added by AVX512.
7448 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7449 added by AVX512.
7450 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7451 (i386_pseudo_register_name): Add ZMM pseudo registers.
7452 (i386_zmm_type): Construct and return vector registers type for ZMM
7453 registers.
7454 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7455 ZMM0-31 pseudo registers and K registers.
7456 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7457 and YMM16-31 registers from register cache.
7458 (i386_pseudo_register_write): Add code to write K, ZMM and
7459 YMM16-31 registers.
7460 (i386_register_reggroup_p): Add code to include/exclude AVX512
7461 registers in/from respective register groups.
7462 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7463 registers if feature is present in xcr0.
7464 (i386_gdbarch_init): Add code to initialize AVX512 feature
7465 variables in tdep structure, wire in pseudo registers and call
7466 initialize_tdesc_i386_avx512.
7467 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7468 variables.
7469 (i386_regnum): Add AVX512 registers.
7470 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7471 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7472 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7473 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7474 512 bits wide.
7475 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7476 (i386_ymm_avx512_regnum_p): Likewise.
7477 (i386_k_regnum_p): Likewise.
7478 (i386_zmm_regnum_p): Likewise.
7479 (i386_zmmh_regnum_p): Likewise.
7480 * i387-tdep.c : Update year in copyright notice.
7481 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7482 XSAVE buffer.
7483 (XSAVE_YMM_AVX512_ADDR): New macro.
7484 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7485 XSAVE buffer.
7486 (XSAVE_XMM_AVX512_ADDR): New macro.
7487 (xsave_avx512_k_offset): New table for K register offsets in
7488 XSAVE buffer.
7489 (XSAVE_AVX512_K_ADDR): New macro.
7490 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7491 in XSAVE buffer.
7492 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7493 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7494 buffer.
7495 (i387_collect_xsave): Add code to collect AVX512 registers from
7496 XSAVE buffer.
7497 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7498 of XMM16-31 registers.
7499 (I387_NUM_K_REGS): New define for number of K registers.
7500 (I387_K0_REGNUM): New define for K0 register number.
7501 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7502 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7503 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7504 registers.
7505 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7506 (I387_XMM16_REGNUM): New define for XMM16 register number.
7507 (I387_YMM0_REGNUM): New define for YMM0 register number.
7508 (I387_KEND_REGNUM): New define for last K register number.
7509 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7510 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7511 number.
7512 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7513 number.
7514 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7515 size.
7516 * features/Makefile: Add AVX512 related files.
7517 * features/i386/32bit-avx512.xml: New file.
7518 * features/i386/64bit-avx512.xml: Likewise.
7519 * features/i386/amd64-avx512-linux.c: Likewise.
7520 * features/i386/amd64-avx512-linux.xml: Likewise.
7521 * features/i386/amd64-avx512.c: Likewise.
7522 * features/i386/amd64-avx512.xml: Likewise.
7523 * features/i386/i386-avx512-linux.c: Likewise.
7524 * features/i386/i386-avx512-linux.xml: Likewise.
7525 * features/i386/i386-avx512.c: Likewise.
7526 * features/i386/i386-avx512.xml: Likewise.
7527 * features/i386/x32-avx512-linux.c: Likewise.
7528 * features/i386/x32-avx512-linux.xml: Likewise.
7529 * features/i386/x32-avx512.c: Likewise.
7530 * features/i386/x32-avx512.xml: Likewise.
7531 * regformats/i386/amd64-avx512-linux.dat: New file.
7532 * regformats/i386/amd64-avx512.dat: Likewise.
7533 * regformats/i386/i386-avx512-linux.dat: Likewise.
7534 * regformats/i386/i386-avx512.dat: Likewise.
7535 * regformats/i386/x32-avx512-linux.dat: Likewise.
7536 * regformats/i386/x32-avx512.dat: Likewise.
7537 * NEWS: Add note about new support for AVX512.
7538
7539
7540 2014-04-23 Pedro Alves <palves@redhat.com>
7541
7542 * breakpoint.c (insert_bp_location): Tolerate errors if the
7543 breakpoint is set in a user-loaded objfile.
7544 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7545 location is marked shlib_disabled. If the breakpoint is set in a
7546 user-loaded objfile is a GDB-side memory breakpoint, validate it
7547 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7548 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7549 flag.
7550 * mem-break.c (memory_validate_breakpoint): New function.
7551 * objfiles.c (userloaded_objfile_contains_address_p): New
7552 function.
7553 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7554 * target.h (memory_validate_breakpoint): New declaration.
7555
7556 2014-04-23 Pedro Alves <palves@redhat.com>
7557
7558 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7559 the breakpoint is set in a shared library, only suppress
7560 errors for software breakpoints, not hardware breakpoints.
7561
7562 2014-04-22 Pedro Alves <palves@redhat.com>
7563
7564 * infrun.c (schedlock_applies): New function, factored out from
7565 find_thread_needs_step_over.
7566 (find_thread_needs_step_over): Use it.
7567 (switch_back_to_stepped_thread): Always clear trap_expected if the
7568 step over is finished. Return early if scheduler locking applies.
7569 Look for the stepping thread and a potential step-over thread with
7570 a single loop.
7571 (currently_stepping_or_nexting_callback): Delete.
7572
7573 2014-04-22 Nick Clifton <nickc@redhat.com>
7574
7575 * NEWS: Mention that ARM sim now supports tracing.
7576
7577 2014-04-22 Yao Qi <yao@codesourcery.com>
7578
7579 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7580 to ...
7581 * tracefile.c (tracefile_fetch_registers): ... it. New
7582 function.
7583 * tracefile.h (tracefile_fetch_registers): Declare.
7584 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7585 tracefile_fetch_registers.
7586
7587 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7588
7589 PR gdb/14018
7590 * windows-nat.c (thread_rec): Don't display a warning when
7591 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7592 fails for any reason, set th->suspended to -1, so that we don't
7593 try to resume such a thread. Also, don't return NULL in these
7594 cases, to avoid completely ruin the session due to "PC register is
7595 not available" error.
7596 (do_windows_fetch_inferior_registers): Check errors in
7597 GetThreadContext call.
7598 (windows_continue): Accept an additional argument KILLED; if not
7599 zero, ignore errors in the SetThreadContext call, since the
7600 inferior was killed and is shutting down.
7601 (windows_resume, get_windows_debug_event)
7602 (windows_create_inferior, windows_mourn_inferior)
7603 (windows_kill_inferior): All callers of windows_continue changed
7604 to adjust to its new calling sequence.
7605
7606 2014-04-19 Yao Qi <yao@codesourcery.com>
7607
7608 * ctf.c (ctf_open): Call post_create_inferior.
7609
7610 2014-04-19 Yao Qi <yao@codesourcery.com>
7611
7612 * ctf.c (handle_id): New static variable.
7613 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7614 value. Get the declaration of event "register" and get length
7615 of field "contents".
7616
7617 2014-04-19 Yao Qi <yao@codesourcery.com>
7618
7619 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7620
7621 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7622
7623 * valops.c (oload_method_static): Remove unnecessary argument
7624 METHOD. Update all callers.
7625
7626 2014-04-18 Pedro alves <palves@redhat.com>
7627 Tom Tromey <tromey@redhat.com>
7628
7629 PR backtrace/15558
7630 * frame.c (get_prev_frame_1): Rename to ...
7631 (get_prev_frame_always): ... this, and make extern. Adjust.
7632 (skip_artificial_frames): Use get_prev_frame_always.
7633 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7634 (get_frame_unwind_stop_reason): Adjust to rename.
7635 * frame.h (get_prev_frame_always): Declare.
7636 * inline-frame.c: Include frame.h.
7637 (inline_frame_this_id): Use get_prev_frame_always.
7638
7639 2014-04-18 Tristan Gingold <gingold@adacore.com>
7640
7641 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7642 code by using bfd_mach_o_get_base_address.
7643
7644 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7645
7646 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7647 (spu_ax_pseudo_register_collect): New function.
7648 (spu_ax_pseudo_register_push_stack): Likewise.
7649 (spu_dwarf_reg_to_regnum): Likewise.
7650 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7651
7652 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7653
7654 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7655 Replace FRAME argument with FRAME_ID.
7656 * gdbarch.c, gdbarch.h: Regenerate.
7657 * findvar.c (default_value_from_register): Add GDBARCH argument;
7658 replace FRAME by FRAME_ID. No longer call get_frame_id.
7659 (value_from_register): Update call to gdbarch_value_from_register.
7660 * value.h (default_value_from_register): Update prototype.
7661 * s390-linux-tdep.c (s390_value_from_register): Update interface
7662 and call to default_value_from_register.
7663 * spu-tdep.c (spu_value_from_register): Likewise.
7664
7665 * findvar.c (address_from_register): Remove TYPE argument.
7666 Do not call value_from_register; use gdbarch_value_from_register
7667 with null_frame_id instead.
7668 * value.h (address_from_register): Update prototype.
7669 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7670 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7671 address_from_register interface change.
7672
7673 2014-04-17 Yao Qi <yao@codesourcery.com>
7674
7675 * gdbtypes.h: Update comments to link to types and macros'
7676 definitions.
7677
7678 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7679
7680 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7681
7682 2014-04-16 Keith Seitz <keiths@redhat.com>
7683
7684 PR gdb/15827
7685 * dwarf2read.c (skip_one_die): Check that all relative-offset
7686 sibling DIEs fall within range of the current reader's buffer.
7687 (read_partial_die): Likewise.
7688
7689 2014-04-16 Keith Seitz <keiths@redhat.com>
7690
7691 PR c++/16597
7692 * cp-namespace.c (lookup_symbol_file): If the type name of
7693 `this' is NULL, return immediately.
7694
7695 2014-04-14 Keith Seitz <keiths@redhat.com>
7696
7697 PR c++/16253
7698 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7699 from symbol_matches_domain in symtab.c. All local callers
7700 of symbol_matches_domain updated.
7701 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7702 search STRUCT_DOMAIN.
7703 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7704 independently. standard_lookup will do that automatically.
7705 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7706 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7707 (cp_lookup_symbol_in_namespace): Likewise.
7708 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7709 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7710 may return a STRUCT_DOMAIN match.
7711 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7712 * cp-support.c: Include language.h.
7713 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7714 VAR_DOMAIN.
7715 * psymtab.c (match_partial_symbol): Compare the requested
7716 domain with the symbol's domain directly.
7717 (lookup_partial_symbol): Likewise.
7718 * symtab.c (lookup_symbol_in_language): Explain when/why
7719 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7720 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7721 appropriate languages.
7722 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7723 and moved to ada-lang.c
7724 (lookup_block_symbol): Explain that this function only returns
7725 symbol matching the requested DOMAIN.
7726 Compare the requested domain with the symbol's domain directly.
7727 (iterate_over_symbols): Compare the requested domain with the
7728 symbol's domain directly.
7729 * symtab.h (symbol_matches_domain): Remove.
7730
7731 2014-04-14 Tom Tromey <tromey@redhat.com>
7732
7733 PR c++/15246:
7734 * c-exp.y (type_aggregate_p): New function.
7735 (qualified_name, classify_inner_name): Use it.
7736 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7737 and TYPE_TARGET_TYPE of an enum type.
7738 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7739 an enum type.
7740 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7741 handle TYPE_DECLARED_CLASS.
7742 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7743 types.
7744 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7745 * valops.c (enum_constant_from_type): New function.
7746 (value_aggregate_elt): Use it.
7747 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7748 TYPE_CODE_ENUM.
7749
7750 2014-04-14 Tom Tromey <tromey@redhat.com>
7751
7752 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7753 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7754 const.
7755 * value.h (value_aggregate_elt): Update.
7756
7757 2014-04-14 Tom Tromey <tromey@redhat.com>
7758
7759 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7760
7761 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7762
7763 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7764 (evaluate_subexp_standard): Pass noside argument.
7765 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7766 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7767 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7768 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7769 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7770
7771 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7772
7773 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7774 points to a constant blob.
7775
7776 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7777
7778 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7779 property and store it as the high bound and flag the range accordingly.
7780 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7781 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7782 * gdbtypes.h (enum range_flags): New enum.
7783 (struct range_bounds): Add flags member.
7784
7785 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7786
7787 * c-typeprint.c (c_type_print_varspec_suffix): Added
7788 check for not yet resolved high bound. If unresolved, print
7789 "variable length" string to the console instead of random
7790 length.
7791
7792 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7793
7794 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7795 value.
7796 (ada_template_to_fixed_record_type_1): Likewise.
7797 (ada_to_fixed_type_1): Likewise.
7798 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7799 (cp_print_value): Likewise.
7800 * d-valprint.c (dynamic_array_type): Likewise.
7801 * findvar.c (address_of_variable): Likewise.
7802 * jv-valprint.c (java_value_print): Likewise.
7803 * valops.c (value_ind): Likewise.
7804 * value.c (coerce_ref): Likewise.
7805
7806 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7807
7808 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7809 value and retrieve the dynamic type size.
7810
7811 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7812
7813 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7814 passed to sizeof is dynamic evaluate the argument to compute the length.
7815
7816 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7817 Joel Brobecker <brobecker@adacore.com>
7818
7819 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7820 (dwarf2_evaluate_property): New function.
7821 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7822 * dwarf2read.c (attr_to_dynamic_prop): New function.
7823 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7824 attribute.
7825 * gdbtypes.c: Include dwarf2loc.h.
7826 (is_dynamic_type): New function.
7827 (resolve_dynamic_type): New function.
7828 (resolve_dynamic_bounds): New function.
7829 (get_type_length): New function.
7830 (check_typedef): Use get_type_length to compute type length.
7831 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7832 (TYPE_LOW_BOUND_KIND): New macro.
7833 (is_dynamic_type): New function prototype.
7834 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7835 to resolve dynamic properties of the type. Update comment.
7836 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7837
7838 2014-04-14 Richard Henderson <rth@redhat.com>
7839
7840 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7841
7842 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7843 Doug Evans <xdje42@gmail.com>
7844
7845 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7846 dereference TYPE_CODE_REF values.
7847
7848 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7849
7850 Revert the following changes due to regressions:
7851
7852 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7853 (dwarf2_evaluate_property): New function.
7854 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7855 * dwarf2read.c (attr_to_dynamic_prop): New function.
7856 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7857 attribute.
7858 * gdbtypes.c: Include dwarf2loc.h.
7859 (is_dynamic_type): New function.
7860 (resolve_dynamic_type): New function.
7861 (resolve_dynamic_bounds): New function.
7862 (get_type_length): New function.
7863 (check_typedef): Use get_type_length to compute type length.
7864 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7865 (TYPE_LOW_BOUND_KIND): New macro.
7866 (is_dynamic_type): New function prototype.
7867 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7868 to resolve dynamic properties of the type. Update comment.
7869 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7870
7871 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7872 passed to sizeof is dynamic evaluate the argument to compute the length.
7873
7874 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7875 value and retrieve the dynamic type size.
7876
7877 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7878 (ada_template_to_fixed_record_type_1): Likewise.
7879 (ada_to_fixed_type_1): Likewise.
7880 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7881 (cp_print_value): Likewise.
7882 * d-valprint.c (dynamic_array_type): Likewise.
7883 * eval.c (evaluate_subexp_with_coercion): Likewise.
7884 * findvar.c (address_of_variable): Likewise.
7885 * jv-valprint.c (java_value_print): Likewise.
7886 * valops.c (value_ind): Likewise.
7887 * value.c (coerce_ref): Likewise.
7888
7889 * c-typeprint.c (c_type_print_varspec_suffix): Added
7890 check for not yet resolved high bound. If unresolved, print
7891 "variable length" string to the console instead of random
7892 length.
7893
7894 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7895 property and store it as the high bound and flag the range accordingly.
7896 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7897 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7898 * gdbtypes.h (enum range_flags): New enum.
7899 (struct range_bounds): Add flags member.
7900
7901 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7902 points to a constant blob.
7903
7904 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7905 (evaluate_subexp_standard): Pass noside argument.
7906 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7907 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7908 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7909 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7910 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7911
7912 2014-04-11 Keith Seitz <keiths@redhat.com>
7913
7914 PR c++/16675
7915 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7916 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7917 reference types.
7918
7919 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7920
7921 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7922 (evaluate_subexp_standard): Pass noside argument.
7923 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7924 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7925 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7926 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7927 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7928
7929 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7930
7931 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7932 points to a constant blob.
7933
7934 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7935
7936 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7937 property and store it as the high bound and flag the range accordingly.
7938 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7939 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7940 * gdbtypes.h (enum range_flags): New enum.
7941 (struct range_bounds): Add flags member.
7942
7943 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7944
7945 * c-typeprint.c (c_type_print_varspec_suffix): Added
7946 check for not yet resolved high bound. If unresolved, print
7947 "variable length" string to the console instead of random
7948 length.
7949
7950 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7951
7952 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7953 (ada_template_to_fixed_record_type_1): Likewise.
7954 (ada_to_fixed_type_1): Likewise.
7955 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7956 (cp_print_value): Likewise.
7957 * d-valprint.c (dynamic_array_type): Likewise.
7958 * eval.c (evaluate_subexp_with_coercion): Likewise.
7959 * findvar.c (address_of_variable): Likewise.
7960 * jv-valprint.c (java_value_print): Likewise.
7961 * valops.c (value_ind): Likewise.
7962 * value.c (coerce_ref): Likewise.
7963
7964 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7965
7966 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7967 value and retrieve the dynamic type size.
7968
7969 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7970
7971 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7972 passed to sizeof is dynamic evaluate the argument to compute the length.
7973
7974 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7975
7976 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7977 (dwarf2_evaluate_property): New function.
7978 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7979 * dwarf2read.c (attr_to_dynamic_prop): New function.
7980 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7981 attribute.
7982 * gdbtypes.c: Include dwarf2loc.h.
7983 (is_dynamic_type): New function.
7984 (resolve_dynamic_type): New function.
7985 (resolve_dynamic_bounds): New function.
7986 (get_type_length): New function.
7987 (check_typedef): Use get_type_length to compute type length.
7988 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7989 (TYPE_LOW_BOUND_KIND): New macro.
7990 (is_dynamic_type): New function prototype.
7991 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7992 to resolve dynamic properties of the type. Update comment.
7993 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7994
7995 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7996
7997 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7998 declaring high/low bounds and change uses accordingly. Call
7999 create_range_type instead of create_static_range_type.
8000 * gdbtypes.c (create_range_type): New function.
8001 (create_range_type): Convert bounds into struct bound_prop and pass
8002 them to create_range_type.
8003 * gdbtypes.h (struct bound_prop): New struct.
8004 (create_range_type): New function prototype.
8005 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8006 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8007 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8008 part of the bound.
8009 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8010
8011 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8012
8013 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8014 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8015 * ada-lang.c: All uses of create_range_type updated.
8016 * coffread.c: All uses of create_range_type updated.
8017 * dwarf2read.c: All uses of create_range_type updated.
8018 * f-exp.y: All uses of create_range_type updated.
8019 * m2-valprint.c: All uses of create_range_type updated.
8020 * mdebugread.c: All uses of create_range_type updated.
8021 * stabsread.c: All uses of create_range_type updated.
8022 * valops.c: All uses of create_range_type updated.
8023 * valprint.c: All uses of create_range_type updated.
8024
8025 2014-04-10 Pedro Alves <palves@redhat.com>
8026
8027 * breakpoint.c (single_step_breakpoints)
8028 (single_step_gdbarch): Move up in the file.
8029 (one_breakpoint_xfer_memory): New function, factored out from ...
8030 (breakpoint_xfer_memory): ... here. Also process single-step
8031 breakpoints.
8032
8033 2014-04-09 Tristan Gingold <gingold@adacore.com>
8034
8035 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8036 comments.
8037 (darwin_decode_exception_message): Free port only after use.
8038
8039 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8040
8041 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8042 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8043 when setting the size of call_length.
8044
8045 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8046
8047 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8048 dereference TYPE_CODE_REF values.
8049
8050 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8051
8052 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8053 end of warning message.
8054
8055 2014-04-03 Doug Evans <dje@google.com>
8056
8057 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8058 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8059
8060 2014-04-02 Alan Modra <amodra@gmail.com>
8061
8062 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8063 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8064 (struct symbol_file_add_from_memory_args): Add size field.
8065 (find_vdso_size): New function.
8066 (add_vsyscall_page): Attempt to find vdso size.
8067
8068 2014-04-01 Doug Evans <dje@google.com>
8069
8070 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8071
8072 2014-04-01 Tristan Gingold <gingold@adacore.com>
8073
8074 * darwin-nat.c (darwin_encode_reply): Add prototype.
8075 (darwin_decode_exception_message): Reply to unknown inferiors.
8076 (darwin_decode_message): Handle message by id. Ignore message
8077 to unknown inferior.
8078 (darwin_wait): Discard unknown messages, add debug trace.
8079
8080 2014-03-31 Doug Evans <dje@google.com>
8081
8082 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8083 comp_dir_string.
8084
8085 2014-03-31 Doug Evans <dje@google.com>
8086
8087 New option "set print symbol-loading".
8088 * NEWS: Mention it.
8089 * solib.c (solib_read_symbols): Only print symbol loading messages
8090 if requested.
8091 (solib_add): If symbol loading is in "brief" mode, notify user
8092 symbols are being loaded.
8093 (reload_shared_libraries_1): Ditto.
8094 * symfile.c (print_symbol_loading_off): New static global.
8095 (print_symbol_loading_brief): New static global.
8096 (print_symbol_loading_full): New static global.
8097 (print_symbol_loading_enums): New static global.
8098 (print_symbol_loading): New static global.
8099 (print_symbol_loading_p): New function.
8100 (symbol_file_add_with_addrs): Only print symbol loading messages
8101 if requested.
8102 (_initialize_symfile): Register "print symbol-loading" set/show
8103 command.
8104 * symfile.h (print_symbol_loading_p): Declare.
8105
8106 2014-03-30 Doug Evans <xdje42@gmail.com>
8107
8108 * infrun.c (set_last_target_status): New function.
8109 (handle_inferior_event): Call it.
8110
8111 2014-03-30 Doug Evans <xdje42@gmail.com>
8112
8113 * inferior.h (enum stop_kind): Improve comment.
8114
8115 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8116
8117 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8118 a reference, strip the reference layer before calling
8119 the lang_ops value_has_mutated callback.
8120
8121 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8122
8123 Remove some globals from our parser.
8124 * language.c (unk_lang_parser): Add "struct parser_state"
8125 argument.
8126 * language.h (struct language_defn) <la_parser>: Likewise.
8127 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8128 (initialize_expout): Add "struct parser_state" argument.
8129 Rewrite function to use the parser state.
8130 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8131 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8132 write_exp_elt_longcst, write_exp_elt_dblcst,
8133 write_exp_elt_decfloatcst, write_exp_elt_type,
8134 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8135 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8136 write_dollar_variable): Likewise.
8137 (parse_exp_in_context_1): Use parser state.
8138 (insert_type_address_space): Add "struct parser_state" argument.
8139 Use parser state.
8140 (increase_expout_size): New function.
8141 * parser-defs.h: Forward declare "struct language_defn" and
8142 "struct parser_state".
8143 (expout, expout_size, expout_ptr): Remove extern declarations.
8144 (parse_gdbarch, parse_language): Rewrite macro declarations to
8145 accept the parser state.
8146 (struct parser_state): New struct.
8147 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8148 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8149 write_exp_elt_decfloatcst, write_exp_elt_type,
8150 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8151 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8152 write_exp_msymbol, write_dollar_variable,
8153 mark_struct_expression, insert_type_address_space): Add "struct
8154 parser_state" argument.
8155 (increase_expout_size): New function.
8156 * utils.c (do_clear_parser_state): New function.
8157 (make_cleanup_clear_parser_state): Likewise.
8158 * utils.h (make_cleanup_clear_parser_state): New function
8159 prototype.
8160 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8161 Update calls to write_exp* in order to pass the parser state.
8162 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8163 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8164 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8165 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8166 * stap-probe.c (stap_parse_register_operand): Likewise.
8167 (stap_parse_single_operand): Likewise.
8168 (stap_parse_argument_1): Likewise.
8169 (stap_parse_argument): Use parser state.
8170 * stap-probe.h: Include "parser-defs.h".
8171 (struct stap_parse_info) <pstate>: New field.
8172 * c-exp.y (parse_type): Rewrite to use parser state.
8173 (yyparse): Redefine to c_parse_internal.
8174 (pstate): New global variable.
8175 (parse_number): Add "struct parser_state" argument.
8176 (write_destructor_name): Likewise.
8177 (type_exp): Update calls to write_exp* and similars in order to
8178 use parser state.
8179 (exp1, exp, variable, qualified_name, space_identifier,
8180 typename, typebase): Likewise.
8181 (write_destructor_name, parse_number, lex_one_token,
8182 classify_name, classify_inner_name, c_parse): Add "struct
8183 parser_state" argument. Update function to use parser state.
8184 * c-lang.h: Forward declare "struct parser_state".
8185 (c_parse): Add "struct parser_state" argument.
8186 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8187 (yyparse): Redefine macro to ada_parse_internal.
8188 (pstate): New variable.
8189 (write_int, write_object_renaming, write_var_or_type,
8190 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8191 type_int, type_long, type_long_long, type_float, type_double,
8192 type_long_double, type_char, type_boolean, type_system_address):
8193 Add "struct parser_state" argument.
8194 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8195 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8196 var_or_type, aggregate, aggregate_component_list,
8197 positional_list, others, component_group,
8198 component_associations): Update calls to write_exp* and similar
8199 functions in order to use parser state.
8200 (ada_parse, write_var_from_sym, write_int,
8201 write_exp_op_with_string, write_object_renaming,
8202 find_primitive_type, write_selectors, write_ambiguous_var,
8203 write_var_or_type, write_name_assoc, type_int, type_long,
8204 type_long_long, type_float, type_double, type_long_double,
8205 type_char, type_boolean, type_system_address): Add "struct
8206 parser_state" argument. Adjust function to use parser state.
8207 * ada-lang.c (parse): Likewise.
8208 * ada-lang.h: Forward declare "struct parser_state".
8209 (ada_parse): Add "struct parser_state" argument.
8210 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8211 calls to both functions.
8212 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8213 parser state.
8214 (yyparse): Redefine macro to f_parse_internal.
8215 (pstate): New variable.
8216 (parse_number): Add "struct parser_state" argument.
8217 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8218 and similars in order to use parser state.
8219 (parse_number): Adjust code to use parser state.
8220 (yylex): Likewise.
8221 (f_parse): New function.
8222 * f-lang.h: Forward declare "struct parser_state".
8223 (f_parse): Add "struct parser_state" argument.
8224 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8225 parser state.
8226 (yyparse): Redefine macro for java_parse_internal.
8227 (pstate): New variable.
8228 (push_expression_name, push_expression_name, insert_exp): Add
8229 "struct parser_state" argument.
8230 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8231 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8232 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8233 PostIncrementExpression, PostDecrementExpression,
8234 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8235 UnaryExpressionNotPlusMinus, CastExpression,
8236 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8237 RelationalExpression, EqualityExpression, AndExpression,
8238 ExclusiveOrExpression, InclusiveOrExpression,
8239 ConditionalAndExpression, ConditionalOrExpression,
8240 ConditionalExpression, Assignment, LeftHandSide): Update
8241 calls to write_exp* and similars in order to use parser state.
8242 (parse_number): Ajust code to use parser state.
8243 (yylex): Likewise.
8244 (java_parse): New function.
8245 (push_variable): Add "struct parser_state" argument. Adjust
8246 code to user parser state.
8247 (push_fieldnames, push_qualified_expression_name,
8248 push_expression_name, insert_exp): Likewise.
8249 * jv-lang.h: Forward declare "struct parser_state".
8250 (java_parse): Add "struct parser_state" argument.
8251 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8252 parser state.
8253 (yyparse): Redefine macro to m2_parse_internal.
8254 (pstate): New variable.
8255 (type_exp, exp, fblock, variable, type): Update calls to
8256 write_exp* and similars to use parser state.
8257 (yylex): Likewise.
8258 (m2_parse): New function.
8259 * m2-lang.h: Forward declare "struct parser_state".
8260 (m2_parse): Add "struct parser_state" argument.
8261 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8262 * objc-lang.h: Forward declare "struct parser_state".
8263 (end_msglist): Add "struct parser_state" argument.
8264 * p-exp.y (parse_type): Rewrite macro to use parser state.
8265 (yyparse): Redefine macro to pascal_parse_internal.
8266 (pstate): New variable.
8267 (parse_number): Add "struct parser_state" argument.
8268 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8269 write_exp* and similars in order to use parser state.
8270 (parse_number, yylex): Adjust code to use parser state.
8271 (pascal_parse): New function.
8272 * p-lang.h: Forward declare "struct parser_state".
8273 (pascal_parse): Add "struct parser_state" argument.
8274 * go-exp.y (parse_type): Rewrite macro to use parser state.
8275 (yyparse): Redefine macro to go_parse_internal.
8276 (pstate): New variable.
8277 (parse_number): Add "struct parser_state" argument.
8278 (type_exp, exp1, exp, variable, type): Update calls to
8279 write_exp* and similars in order to use parser state.
8280 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8281 to use parser state.
8282 (go_parse): Likewise.
8283 * go-lang.h: Forward declare "struct parser_state".
8284 (go_parse): Add "struct parser_state" argument.
8285
8286 2014-03-27 Doug Evans <dje@google.com>
8287
8288 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8289
8290 2014-03-27 Doug Evans <dje@google.com>
8291
8292 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8293 Remove argument abbrev_section. All callers updated.
8294
8295 2014-03-27 Doug Evans <dje@google.com>
8296
8297 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8298 addr_base, ranges_base.
8299
8300 2014-03-26 Keith Seitz <keiths@redhat.com>
8301
8302 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8303 types, not VAR_DOMAIN.
8304
8305 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8306
8307 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8308 "ra" registers.
8309 * features/nios2-linux.c: Regenerated.
8310 * features/nios2.c: Regenerated.
8311
8312 2014-03-25 Pedro Alves <palves@redhat.com>
8313
8314 * cli/cli-script.c (script_from_file): Force the interpreter to
8315 sync mode.
8316
8317 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8318
8319 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8320 small stack allocation.
8321
8322 2014-03-24 Tristan Gingold <gingold@adacore.com>
8323
8324 * darwin-nat.c (exc_server): Remove unused prototype.
8325 (darwin_dump_message): Correctly display data on x86_64.
8326 (darwin_encode_reply): Fix style.
8327 Add comments and fix indentation.
8328
8329 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8330
8331 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8332
8333 2014-03-22 Doug Evans <xdje42@gmail.com>
8334
8335 * infcmd.c: Whitespace fixes.
8336 (interrupt_command): Merge two function comments into one.
8337
8338 2014-03-22 Doug Evans <xdje42@gmail.com>
8339
8340 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8341 All uses updated.
8342
8343 2014-03-22 Yao Qi <yao@codesourcery.com>
8344
8345 * remote.c (target_read_live_memory): Remove.
8346 (memory_xfer_live_readonly_partial): Rename it to
8347 remote_xfer_live_readonly_partial. Remove argument 'object'.
8348 All callers updated. Call remote_read_bytes_1
8349 instead of target_read_live_memory.
8350 * tracepoint.c (set_traceframe_number): Remove.
8351 (make_cleanup_restore_traceframe_number): Likewise .
8352 * tracepoint.h (set_traceframe_number): Remove declaration.
8353 (make_cleanup_restore_traceframe_number): Likewise.
8354
8355 2014-03-22 Yao Qi <yao@codesourcery.com>
8356
8357 * remote.c (remote_read_bytes): Move code on reading from the
8358 remote stub to ...
8359 (remote_read_bytes_1): ... here. New function.
8360
8361 2014-03-22 Yao Qi <yao@codesourcery.com>
8362
8363 * ctf.c (ctf_xfer_partial): Check the return value of
8364 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8365 return TARGET_XFER_UNAVAILABLE.
8366 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8367 * target.c (target_read_live_memory): Move it to remote.c.
8368 (memory_xfer_live_readonly_partial): Likewise.
8369 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8370 * remote.c (target_read_live_memory): Moved from target.c.
8371 (memory_xfer_live_readonly_partial): Likewise.
8372 (remote_read_bytes): Factored out from
8373 memory_xfer_partial_1.
8374
8375 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8376
8377 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8378 NULL pointer.
8379
8380 2014-03-21 Pedro Alves <palves@redhat.com>
8381
8382 * infrun.c (normal_stop): Extend comment.
8383
8384 2014-03-21 Hui Zhu <hui@codesourcery.com>
8385 Pedro Alves <palves@redhat.com>
8386
8387 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8388 static buffer.
8389 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8390 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8391 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8392
8393 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8394
8395 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8396 `z' formatted output modifier.
8397
8398 2014-03-20 Tom Tromey <tromey@redhat.com>
8399 Sergio Durigan Junior <sergiodj@redhat.com>
8400
8401 * probe.c (parse_probes): Turn assert into an ordinary error.
8402 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8403 exceptions when parsing probes. Rearrange the code for clarity.
8404
8405 2014-03-20 Tom Tromey <tromey@redhat.com>
8406
8407 PR gdb/14135
8408 * top.c (execute_command): Only dispatch events if the command
8409 started the target.
8410
8411 2014-03-20 Tom Tromey <tromey@redhat.com>
8412
8413 PR cli/15718
8414 * infcall.c: Include event-top.h.
8415 (run_inferior_call): Call async_disable_stdin if needed.
8416
8417 2014-03-20 Pedro Alves <palves@redhat.com>
8418
8419 * infrun.c (prepare_to_proceed): Delete.
8420 (thread_still_needs_step_over): New function.
8421 (find_thread_needs_step_over): New function.
8422 (proceed): If the current thread needs a step-over, set its
8423 steping_over_breakpoint flag. Adjust to use
8424 find_thread_needs_step_over instead of prepare_to_proceed.
8425 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8426 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8427 breakpoint.
8428 (switch_back_to_stepped_thread): Step over breakpoints of all
8429 threads not the stepping thread, before switching back to the
8430 stepping thread.
8431
8432 2014-03-20 Pedro Alves <palves@redhat.com>
8433
8434 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8435 extern.
8436 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8437 * infrun.c (saved_singlestep_ptid)
8438 (stepping_past_singlestep_breakpoint): Delete.
8439 (resume): Remove stepping_past_singlestep_breakpoint handling.
8440 (proceed): Store the prev_pc of the stepping thread too.
8441 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8442 singlestep_pc.
8443 (enum infwait_states): Delete infwait_thread_hop_state.
8444 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8445 field.
8446 (handle_inferior_event): Adjust.
8447 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8448 handling and the thread-hop code. Before removing single-step
8449 breakpoints, check whether the thread hit a single-step breakpoint
8450 of another thread. If it did, the trap is not a random signal.
8451 (switch_back_to_stepped_thread): If the event thread hit a
8452 single-step breakpoint, unblock it before switching to the
8453 stepping thread. Handle the case of the stepped thread having
8454 advanced already.
8455 (keep_going): Handle the case of the current thread moving past a
8456 single-step breakpoint.
8457
8458 2014-03-20 Pedro Alves <palves@redhat.com>
8459
8460 PR breakpoints/7143
8461 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8462 are being stepped over.
8463 (breakpoint_address_match): Make extern.
8464 * breakpoint.h (breakpoint_address_match): New declaration.
8465 * inferior.h (stepping_past_instruction_at): New declaration.
8466 * infrun.c (struct step_over_info): New type.
8467 (step_over_info): New global.
8468 (set_step_over_info, clear_step_over_info)
8469 (stepping_past_instruction_at): New functions.
8470 (handle_inferior_event): Clear the step-over info when
8471 trap_expected is cleared.
8472 (resume): Remove now stale comment.
8473 (clear_proceed_status): Clear step-over info.
8474 (proceed): Adjust step-over handling to set or clear the step-over
8475 info instead of removing all breakpoints.
8476 (handle_signal_stop): When setting up a thread-hop, don't remove
8477 breakpoints here.
8478 (stop_stepping): Clear step-over info.
8479 (keep_going): Adjust step-over handling to set or clear step-over
8480 info and then always inserting breakpoints, instead of removing
8481 all breakpoints when stepping over one.
8482
8483 2014-03-20 Pedro Alves <palves@redhat.com>
8484
8485 * infrun.c (previous_inferior_ptid): Adjust comment.
8486 (deferred_step_ptid): Delete.
8487 (infrun_thread_ptid_changed, prepare_to_proceed)
8488 (init_wait_for_inferior): Adjust.
8489 (handle_signal_stop): Delete deferred_step_ptid handling.
8490
8491 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8492
8493 PR gdb/15358
8494 * defs.h (sync_quit_force_run): New declaration.
8495 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8496 * event-top.c (async_sigterm_handler): New declaration.
8497 (async_sigterm_token): New variable.
8498 (async_init_signals): Create also async_sigterm_token.
8499 (async_sigterm_handler): New function.
8500 (sync_quit_force_run): New variable.
8501 (handle_sigterm): Replace quit_force call by other calls.
8502 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8503
8504 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8505
8506 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8507 offset into SPE pseudo registers.
8508
8509 2014-03-18 Pedro Alves <palves@redhat.com>
8510
8511 PR gdb/13860
8512 * inferior.h (print_stop_event): Declare.
8513 * infrun.c (print_stop_event): New, factored out from ...
8514 (normal_stop): ... this.
8515 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8516 of bpstat_print/print_stack_frame.
8517
8518 2014-03-17 Tom Tromey <tromey@redhat.com>
8519
8520 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8521
8522 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8523
8524 * ada-lang.c (decode_constrained_packed_array): Perform a
8525 minimal coercion for reference with coerce_ref instead of
8526 ada_coerce_ref.
8527
8528 2014-03-17 Tristan Gingold <gingold@adacore.com>
8529
8530 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8531 (darwin_solib_create_inferior_hook): Emit a warning if version
8532 is unhandled.
8533
8534 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8535
8536 * python/py-value.c (get_field_flag): Cast flag_name argument to
8537 PyObject_GetAttrString to support Python 2.4.
8538
8539 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8540
8541 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8542 (Global Maintainers): Remove Jan Kratochvil.
8543
8544 2014-03-14 Pedro Alves <palves@redhat.com>
8545
8546 * inferior.h (terminal_ours_for_output): Rename to ...
8547 (child_terminal_ours_for_output): ... this.
8548 (terminal_save_ours): Rename to ...
8549 (child_terminal_save_ours): ... this.
8550 (terminal_ours): Rename to ...
8551 (child_terminal_ours): ... this.
8552 (terminal_inferior): Rename to ...
8553 (child_terminal_inferior): ... this.
8554 (terminal_init_inferior): Rename to ...
8555 (child_terminal_init_inferior): ... this.
8556 (terminal_init_inferior_with_pgrp): Rename to ...
8557 (child_terminal_init_inferior_with_pgrp): ... this.
8558 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8559 (child_terminal_init_with_pgrp): ... this.
8560 (terminal_save_ours): Rename to ...
8561 (child_terminal_save_ours): ... this.
8562 (terminal_init_inferior): Rename to ...
8563 (child_terminal_init): ... this. Adjust.
8564 (terminal_inferior): Rename to ...
8565 (child_terminal_inferior): ... this.
8566 (terminal_ours_for_output): Rename to ...
8567 (child_terminal_ours_for_output): ... this. Adjust.
8568 (terminal_ours): Rename to ...
8569 (child_terminal_ours): ... this.
8570 (terminal_ours_1): Rename to ...
8571 (child_terminal_ours_1): ... this. Adjust.
8572 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8573 * windows-nat.c (do_initial_windows_stuff): Adjust.
8574 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8575 (gnu_terminal_init): ... this. Adjust.
8576 (gnu_target): Adjust.
8577 * inf-child.c (inf_child_target): Adjust.
8578
8579 2014-03-13 Doug Evans <xdje42@gmail.com>
8580
8581 PR guile/16612
8582 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8583 new eq?-hashtab.
8584
8585 2014-03-13 Doug Evans <xdje42@gmail.com>
8586
8587 * value.c (record_latest_value): Call release_value_or_incref
8588 instead of release_value.
8589
8590 2014-03-13 Pedro Alves <palves@redhat.com>
8591
8592 * procfs.c (procfs_target): Don't override to_shortname,
8593 to_longname or to_doc.
8594
8595 2014-03-13 Pedro Alves <palves@redhat.com>
8596
8597 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8598 Unix in user visible strings.
8599
8600 2014-03-12 Stan Shebs <stan@codesourcery.com>
8601
8602 * gdbtypes.h: Annotate comments for Doxygen, add a page
8603 block comment with some general info.
8604
8605 2014-03-12 Pedro Alves <palves@redhat.com>
8606
8607 * infcmd.c (prepare_execution_command): New function, factored out
8608 from several execution commands.
8609 (run_command_1, continue_command, step_1, jump_command)
8610 (signal_command, until_command, advance_command, finish_command)
8611 (attach_command): Use prepare_execution_command.
8612
8613 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8614
8615 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8616 (MAX_BPTS): Define.
8617 (MAX_WPTS): Define.
8618 (struct arm_linux_thread_points): Removed.
8619 (struct arm_linux_process_info): New.
8620 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8621 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8622 (arm_linux_find_breakpoints_by_tid): Removed.
8623 (struct arch_lwp_info): New.
8624 (arm_linux_find_process_pid): New functions.
8625 (arm_linux_add_process): New functions.
8626 (arm_linux_process_info_get): New functions.
8627 (arm_linux_forget_process): New function.
8628 (arm_linux_get_debug_reg_state): New function.
8629 (struct update_registers_data): New.
8630 (update_registers_callback): New function.
8631 (arm_linux_insert_hw_breakpoint1): Updated.
8632 (arm_linux_remove_hw_breakpoint1): Updated.
8633 (arm_linux_insert_hw_breakpoint): Updated.
8634 (arm_linux_remove_hw_breakpoint): Updated.
8635 (arm_linux_insert_watchpoint): Updated.
8636 (arm_linux_remove_watchpoint): Updated.
8637 (arm_linux_new_thread): Updated.
8638 (arm_linux_prepare_to_resume): New function.
8639 (arm_linux_new_fork): New function.
8640 (_initialize_arm_linux_nat): Updated.
8641
8642 2014-03-12 Pedro Alves <palves@redhat.com>
8643
8644 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8645
8646 2014-03-12 Tom Tromey <tromey@redhat.com>
8647
8648 * inf-child.c (return_zero): New function.
8649 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8650 * aix-thread.c (aix_thread_inferior_created): New function.
8651 (aix_thread_attach): Remove.
8652 (init_aix_thread_ops): Don't set to_attach.
8653 (_initialize_aix_thread): Register inferior_created observer.
8654 * corelow.c (init_core_ops): Don't set to_attach or
8655 to_create_inferior.
8656 * exec.c (init_exec_ops): Don't set to_attach or
8657 to_create_inferior.
8658 * infcmd.c (run_command_1): Use find_run_target. Make direct
8659 target calls.
8660 (attach_command): Use find_attach_target. Make direct target
8661 calls.
8662 * record-btrace.c (init_record_btrace_ops): Don't set
8663 to_create_inferior.
8664 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8665 Remove.
8666 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8667 set to_create_inferior.
8668 * target.c (complete_target_initialization): Add assertion.
8669 (target_create_inferior): Remove.
8670 (find_default_attach, find_default_create_inferior): Remove.
8671 (find_attach_target, find_run_target): New functions.
8672 (find_default_is_async_p, find_default_can_async_p)
8673 (target_supports_non_stop, target_attach): Remove.
8674 (init_dummy_target): Don't set to_create_inferior or
8675 to_supports_non_stop.
8676 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8677 TARGET_DEFAULT_FUNC.
8678 <to_create_inferior>: Add comment.
8679 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8680 TARGET_DEFAULT_RETURN.
8681 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8682 (find_attach_target, find_run_target): Declare.
8683 (target_create_inferior): Remove.
8684 (target_has_execution_1): Update comment.
8685 (target_supports_non_stop): Remove.
8686 * target-delegates.c: Rebuild.
8687
8688 2014-03-12 Pedro Alves <palves@redhat.com>
8689
8690 * inf-child.h: Update comment to not mention Unix.
8691
8692 2014-03-12 Pedro Alves <palves@redhat.com>
8693
8694 * inf-child.c: Update top comment to not mention Unix. Add
8695 generic comment describing how this target is meant to be used.
8696 (inf_child_post_attach, inf_child_post_startup_inferior)
8697 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8698 Unix in comment.
8699
8700 2014-03-12 Pedro Alves <palves@redhat.com>
8701
8702 * nto-procfs.c: Include inf-child.h.
8703 (procfs_ops): Delete global.
8704 (procfs_can_run): Delete method.
8705 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8706 target pointer instead of referencing procfs_ops.
8707 (procfs_prepare_to_store): Delete.
8708 (init_procfs_ops): Delete function.
8709 (procfs_target): New function, based on init_procfs_ops, but
8710 inherit inf_child_target.
8711 (_initialize_procfs): Use procfs_target.
8712
8713 2014-03-12 Pedro Alves <palves@redhat.com>
8714
8715 * windows-nat.c: Include inf-child.h.
8716 (windows_ops): Delete global.
8717 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8718 methods.
8719 (init_windows_ops): Delete function.
8720 (windows_target): New function, based on init_windows_ops, but
8721 inherit inf_child_target.
8722 (_initialize_windows_nat): Use windows_target. Install x86
8723 specific target methods here.
8724
8725 2014-03-10 Doug Evans <xdje42@gmail.com>
8726
8727 * guile/guile.c (call_initialize_gdb_module): New function.
8728 (initialize_guile): Replace call to scm_init_guile with call to
8729 scm_with_guile.
8730
8731 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8732
8733 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8734 in call to TYPE_CODE macro.
8735
8736 2014-03-10 Jerome Guitton <guitton@adacore.com>
8737
8738 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8739 Resolve tagged types to full view.
8740
8741 2014-03-10 Hui Zhu <hui@codesourcery.com>
8742
8743 * target.h (target_insert_breakpoint): Remove "hardware" from its
8744 comments.
8745
8746 2014-03-07 Doug Evans <dje@google.com>
8747
8748 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8749
8750 2014-03-07 Doug Evans <dje@google.com>
8751
8752 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8753 Remove unused local comp_dir_attr. Assert exactly one of
8754 stub_comp_unit_die, stub_comp_dir is non-NULL.
8755
8756 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8757
8758 * target.h (complete_target_initialization, add_target):
8759 Add comment.
8760
8761 2014-03-07 Pedro Alves <palves@redhat.com>
8762
8763 * go32-nat.c: Include inf-child.h.
8764 (go32_ops): Delete global.
8765 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8766 Delete methods.
8767 (go32_create_inferior): Push the passed in target pointer instead
8768 of referencing go32_ops.
8769 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8770 (go32_target): New function, based on init_go32_ops, but inherit
8771 inf_child_target.
8772 (_initialize_go32_nat): Use go32_target. Move parts of
8773 init_go32_ops here.
8774
8775 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8776
8777 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8778 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8779 SYMBOL_VALUE_ADDRESS.
8780 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8781
8782 2014-03-06 Yao Qi <yao@codesourcery.com>
8783
8784 * breakpoint.c (get_tracepoint_by_number): Remove argument
8785 optional_p. All callers updated. Adjust comments. Update
8786 output message.
8787 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8788
8789 2014-03-06 Yao Qi <yao@codesourcery.com>
8790
8791 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8792 early if get_number returns zero. Use 'p' instead of 'args'.
8793
8794 2014-03-06 Yao Qi <yao@codesourcery.com>
8795
8796 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8797 message.
8798
8799 2014-03-06 Yao Qi <yao@codesourcery.com>
8800
8801 PR breakpoints/16508
8802 * tracepoint.c (check_trace_running): New function.
8803 (trace_find_command): Move code to check_trace_running and
8804 call check_trace_running.
8805 (trace_find_pc_command): Likewise.
8806 (trace_find_tracepoint_command): Likewise.
8807 (trace_find_line_command): Likewise.
8808 (trace_find_range_command): Likewise.
8809 * tracepoint.h (check_trace_running): Likewise.
8810 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8811
8812 2014-03-06 Yao Qi <yao@codesourcery.com>
8813
8814 * target.h (struct target_ops) <to_traceframe_info>: Use
8815 TARGET_DEFAULT_NORETURN (tcomplain ()).
8816 * target-delegates.c: Regenerated.
8817
8818 2014-03-05 Pedro Alves <palves@redhat.com>
8819
8820 PR gdb/16575
8821 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8822 void. Update comment.
8823 (dcache_xfer_memory): Delete.
8824 (dcache_read_memory_partial): New, based on the read bits of
8825 dcache_xfer_memory.
8826 (dcache_update): Add status parameter. Use ULONGEST for len, and
8827 adjust. Discard cache lines if the reason for the update was
8828 error.
8829 * dcache.h (dcache_xfer_memory): Delete declaration.
8830 (dcache_read_memory_partial): New declaration.
8831 (dcache_update): Update prototype.
8832 * target.c (raw_memory_xfer_partial): Update the dcache here.
8833 (memory_xfer_partial_1): Don't handle dcache writes here.
8834
8835 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8836
8837 * remote-sim.c (gdbsim_load): Add const to prog.
8838
8839 2014-03-03 Tom Tromey <tromey@redhat.com>
8840
8841 * elfread.c (probe_key): Change to bfd_data.
8842 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8843 now per-BFD, not per-objfile.
8844 * stap-probe.c (stap_probe_destroy): Update comment.
8845 (handle_stap_probe): Allocate on the per-BFD obstack.
8846
8847 2014-03-03 Tom Tromey <tromey@redhat.com>
8848
8849 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8850 * breakpoint.c (create_longjmp_master_breakpoint): Use
8851 get_probe_address.
8852 (add_location_to_breakpoint, bkpt_probe_insert_location)
8853 (bkpt_probe_remove_location): Update.
8854 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8855 * elfread.c (elf_symfile_relocate_probe): Remove.
8856 (elf_probe_fns): Update.
8857 (insert_exception_resume_breakpoint): Change type of "probe"
8858 parameter to bound_probe.
8859 (check_exception_resume): Update.
8860 * objfiles.c (objfile_relocate1): Don't relocate probes.
8861 * probe.c (bound_probe_s): New typedef.
8862 (parse_probes): Use get_probe_address. Set sal's objfile.
8863 (find_probe_by_pc): Return a bound_probe.
8864 (collect_probes): Return a VEC(bound_probe_s).
8865 (compare_probes): Update.
8866 (gen_ui_out_table_header_info): Change type of "probes"
8867 parameter. Update.
8868 (info_probes_for_ops): Update.
8869 (get_probe_address): New function.
8870 (probe_safe_evaluate_at_pc): Update.
8871 * probe.h (struct probe_ops) <get_probe_address>: New field.
8872 <set_semaphore, clear_semaphore>: Add objfile parameter.
8873 (struct probe) <objfile>: Remove field.
8874 <arch>: New field.
8875 <address>: Update comment.
8876 (struct bound_probe): New.
8877 (find_probe_by_pc): Return a bound_probe.
8878 (get_probe_address): Declare.
8879 * solib-svr4.c (struct probe_and_action) <address>: New field.
8880 (hash_probe_and_action, equal_probe_and_action): Update.
8881 (register_solib_event_probe): Add address parameter.
8882 (solib_event_probe_at): Update.
8883 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8884 get_probe_address.
8885 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8886 (stap_get_probe_address): New function.
8887 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8888 (compile_probe_arg): Update.
8889 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8890 address.
8891 (handle_stap_probe): Don't relocate the probe.
8892 (stap_relocate): Remove.
8893 (stap_gen_info_probes_table_values): Update.
8894 (stap_probe_ops): Remove stap_relocate.
8895 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8896 (debug_sym_probe_fns): Update.
8897 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8898 * symtab.c (init_sal): Use memset.
8899 * symtab.h (struct symtab_and_line) <objfile>: New field.
8900 * tracepoint.c (start_tracing, stop_tracing): Update.
8901
8902 2014-03-03 Tom Tromey <tromey@redhat.com>
8903
8904 * probe.h (parse_probes, find_probe_by_pc)
8905 (find_probes_in_objfile): Fix comments.
8906
8907 2014-03-02 Doug Evans <xdje42@gmail.com>
8908
8909 * infrun.c (handle_signal_stop): Replace test for
8910 TARGET_WAITKIND_STOPPED with an assert.
8911
8912 2014-03-02 Doug Evans <xdje42@gmail.com>
8913
8914 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8915
8916 2014-03-02 Doug Evans <xdje42@gmail.com>
8917
8918 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8919
8920 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8921
8922 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8923
8924 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8925
8926 * i386obsd-nat.c: Include "obsd-nat.h".
8927 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8928 add_target.
8929 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8930
8931 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8932
8933 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8934
8935 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8936
8937 * mips64obsd-nat.c: Include "obsd-nath".
8938 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8939 add_target
8940 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8941
8942 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8943
8944 * amd64obsd-nat.c: Include "obsd-nat,h.
8945 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8946 add_target.
8947 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8948
8949 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8950
8951 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8952 (find_overload_match): Update call to find_oload_champ.
8953 (find_oload_champ_namespace_loop): Likewise
8954
8955 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8956
8957 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8958
8959 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8960 * config/sparc/obsd64.mh: New file.
8961 * sparc64obsd-nat.c: New file.
8962
8963 * obsd-nat.h: New file.
8964 * obsd-nat.c: New file.
8965 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8966 (ALLDEPFILES): Add obsd-nat.c.
8967
8968 2014-02-28 Tom Tromey <tromey@redhat.com>
8969
8970 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8971 * cli-out.h (cli_ui_out_impl): Now const.
8972 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8973 * ui-out.c (struct ui_out) <impl>: Now const.
8974 (default_ui_out_impl): Now const.
8975 (ui_out_new): Make 'impl' parameter const.
8976 * ui-out.h (ui_out_new): Update.
8977
8978 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8979
8980 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8981
8982 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8983
8984 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8985
8986 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8987
8988 Additional PR 8882 fix.
8989 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8990
8991 2014-02-27 Pedro Alves <palves@redhat.com>
8992
8993 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8994 isn't set.
8995
8996 2014-02-27 Pedro Alves <palves@redhat.com>
8997
8998 PR 12702
8999 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9000 * nat/linux-waitpid.c: Include string.h.
9001 (status_to_str): Moved here and made extern.
9002 * nat/linux-waitpid.h (status_to_str): New declaration.
9003
9004 2014-02-27 Hui Zhu <hui@codesourcery.com>
9005
9006 PR 12702
9007 * infrun.c (ptid_match): Move ...
9008 * common/ptid.c (ptid_match): ... here.
9009 * inferior.h (ptid_match): Move ...
9010 * common/ptid.h (ptid_match): ... here.
9011
9012 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9013
9014 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9015 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9016 gdb_target_obs.
9017
9018 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9019
9020 * obsd-tdep.c (obsd_auxv_parse): New function.
9021 (obsd_init_abi): Set auxv_parse.
9022
9023 * gdbarch.sh (auxv_parse): New.
9024 * gdbarch.h: Regenerated.
9025 * gdbarch.c: Regenerated.
9026 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9027
9028 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9029
9030 * guile/scm-value.c (gdbscm_history_append_x): New function.
9031 (value_functions): Add it.
9032
9033 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9034
9035 * dwarf2read.c (attr_value_as_address): New function.
9036 (dwarf2_find_base_address, read_call_site_scope): Use
9037 attr_value_as_address in place of DW_ADDR.
9038 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9039 the low and high addresses. Slight rework of the handling
9040 of the high pc being a constant form, and limit it to
9041 DWARF verson 4 or higher.
9042 (dwarf2_record_block_ranges): Likewise.
9043 (read_partial_die): Likewise.
9044 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9045
9046 2014-02-26 Tom Tromey <tromey@redhat.com>
9047
9048 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9049
9050 2014-02-26 Tom Tromey <tromey@redhat.com>
9051
9052 * elfread.c (elf_read_minimal_symbols): Return early if
9053 minimal symbols have already been read. Add "ei" parameter.
9054 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9055 * minsyms.c (prim_record_minimal_symbol_full): Update.
9056 * objfiles.h (struct objstats) <n_minsyms>: Move...
9057 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9058 * symmisc.c (print_objfile_statistics): Update.
9059
9060 2014-02-26 Tom Tromey <tromey@redhat.com>
9061
9062 * elfread.c (elf_read_minimal_symbols): New function, from
9063 elf_symfile_read.
9064 (elf_symfile_read): Call it.
9065
9066 2014-02-26 Tom Tromey <tromey@redhat.com>
9067
9068 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9069 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9070 (lookup_minimal_symbol_solib_trampoline)
9071 (lookup_minimal_symbol_by_pc_section_1)
9072 (lookup_minimal_symbol_and_objfile): Update.
9073 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9074 Don't allocate a minimal symbol if minsyms have already been read.
9075 (build_minimal_symbol_hash_tables): Update.
9076 (install_minimal_symbols): Do nothing if minsyms already read.
9077 Use the per-BFD obstack.
9078 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9079 * objfiles.c (allocate_objfile): Call
9080 terminate_minimal_symbol_table later.
9081 (have_minimal_symbols): Update.
9082 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9083 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9084 Move from struct objfile.
9085 <minsyms_read>: New field.
9086 (struct objfile) <msymbols, minimal_symbol_count,
9087 msymbol_hash, msymbol_demangled_hash>: Move.
9088 (ALL_OBJFILE_MSYMBOLS): Update.
9089 * symfile.c (read_symbols): Set minsyms_read.
9090 (reread_symbols): Update.
9091 * symmisc.c (dump_objfile, dump_msymbols): Update.
9092
9093 2014-02-26 Tom Tromey <tromey@redhat.com>
9094
9095 * minsyms.c (msymbols_sort): Remove.
9096 * minsyms.h (msymbols_sort): Remove.
9097 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9098 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9099 * elfread.c (elf_symtab_read): Don't add section offsets.
9100 * xcoffread.c (record_minimal_symbol): Don't add section offset
9101 to minimal symbol address.
9102 * somread.c (text_offset, data_offset): Remove.
9103 (som_symtab_read): Don't add section offsets to minimal symbol
9104 addresses.
9105 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9106 Don't add section offsets to minimal symbols.
9107 * coffread.c (coff_symtab_read): Don't add section offsets
9108 to minimal symbol addresses.
9109 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9110 to minimal symbol addresses.
9111 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9112 section offset to minimal symbol addresses.
9113 * mdebugread.c (parse_partial_symbols): Don't add section
9114 offset to minimal symbol addresses.
9115 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9116 offset to minimal symbol addresses.
9117
9118 2014-02-26 Tom Tromey <tromey@redhat.com>
9119
9120 * ada-lang.c (ada_main_name): Update.
9121 (ada_add_standard_exceptions): Update.
9122 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9123 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9124 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9125 * auxv.c (ld_so_xfer_auxv): Update.
9126 * avr-tdep.c (avr_scan_prologue): Update.
9127 * ax-gdb.c (gen_var_ref): Update.
9128 * blockframe.c (get_pc_function_start)
9129 (find_pc_partial_function_gnu_ifunc): Update.
9130 * breakpoint.c (create_overlay_event_breakpoint)
9131 (create_longjmp_master_breakpoint)
9132 (create_std_terminate_master_breakpoint)
9133 (create_exception_master_breakpoint): Update.
9134 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9135 * c-valprint.c (c_val_print): Update.
9136 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9137 * common/agent.c (agent_look_up_symbols): Update.
9138 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9139 * dwarf2loc.c (call_site_to_target_addr): Update.
9140 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9141 * elfread.c (elf_gnu_ifunc_record_cache)
9142 (elf_gnu_ifunc_resolve_by_got): Update.
9143 * findvar.c (default_read_var_value): Update.
9144 * frame.c (inside_main_func): Update.
9145 * frv-tdep.c (frv_frame_this_id): Update.
9146 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9147 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9148 Update.
9149 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9150 (hppa_hpux_find_dummy_bpaddr): Update.
9151 * hppa-tdep.c (hppa_symbol_address): Update.
9152 * infcmd.c (until_next_command): Update.
9153 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9154 Update.
9155 * linespec.c (minsym_found, add_minsym): Update.
9156 * linux-nat.c (get_signo): Update.
9157 * linux-thread-db.c (inferior_has_bug): Update.
9158 * m32c-tdep.c (m32c_return_value)
9159 (m32c_m16c_address_to_pointer): Update.
9160 * m32r-tdep.c (m32r_frame_this_id): Update.
9161 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9162 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9163 * maint.c (maintenance_translate_address): Update.
9164 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9165 (frob_address): New function.
9166 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9167 frob_address. Rename parameter to "pc_in".
9168 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9169 addresses.
9170 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9171 Update.
9172 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9173 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9174 * objc-lang.c (find_objc_msgsend): Update.
9175 * objfiles.c (objfile_relocate1): Update.
9176 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9177 * p-valprint.c (pascal_val_print): Update.
9178 * parse.c (write_exp_msymbol): Update.
9179 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9180 (ppc_elfv2_skip_entrypoint): Update.
9181 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9182 * printcmd.c (build_address_symbolic, msym_info)
9183 (address_info): Update.
9184 * proc-service.c (ps_pglobal_lookup): Update.
9185 * psymtab.c (find_pc_sect_psymtab_closer)
9186 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9187 Change msymbol parameter to bound_minimal_symbol.
9188 * ravenscar-thread.c (get_running_thread_id): Update.
9189 * remote.c (remote_check_symbols): Update.
9190 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9191 address.
9192 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9193 * solib-dsbt.c (lm_base): Update.
9194 * solib-frv.c (lm_base, main_got): Update.
9195 * solib-irix.c (locate_base): Update.
9196 * solib-som.c (som_solib_create_inferior_hook)
9197 (link_map_start): Update.
9198 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9199 * solib-svr4.c (elf_locate_base, enable_break): Update.
9200 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9201 (flush_ea_cache): Update.
9202 * stabsread.c (define_symbol, scan_file_globals): Update.
9203 * stack.c (find_frame_funname): Update.
9204 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9205 (debug_qf_find_pc_sect_symtab): Update.
9206 * symfile.c (simple_read_overlay_table)
9207 (simple_overlay_update): Update.
9208 * symfile.h (struct quick_symbol_functions)
9209 <find_pc_sect_symtab>: Change type of msymbol to
9210 bound_minimal_symbol.
9211 * symmisc.c (dump_msymbols): Update.
9212 * symtab.c (find_pc_sect_symtab_via_partial)
9213 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9214 (search_symbols, print_msymbol_info): Update.
9215 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9216 (MSYMBOL_VALUE_ADDRESS): Redefine.
9217 (BMSYMBOL_VALUE_ADDRESS): New macro.
9218 * tracepoint.c (scope_info): Update.
9219 * tui/tui-disasm.c (tui_find_disassembly_address)
9220 (tui_get_begin_asm_address): Update.
9221 * valops.c (find_function_in_inferior): Update.
9222 * value.c (value_static_field, value_fn_field): Update.
9223
9224 2014-02-26 Tom Tromey <tromey@redhat.com>
9225
9226 * ada-lang.c (ada_update_initial_language): Update.
9227 (ada_main_name, ada_has_this_exception_support): Update.
9228 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9229 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9230 * arm-tdep.c (arm_skip_stub): Update.
9231 * auxv.c (ld_so_xfer_auxv): Update.
9232 * avr-tdep.c (avr_scan_prologue): Update.
9233 * ax-gdb.c (gen_var_ref): Update.
9234 * breakpoint.c (struct breakpoint_objfile_data)
9235 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9236 type to bound_minimal_symbol.
9237 (create_overlay_event_breakpoint)
9238 (create_longjmp_master_breakpoint)
9239 (create_std_terminate_master_breakpoint)
9240 (create_exception_master_breakpoint): Update.
9241 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9242 * c-exp.y (classify_name): Update.
9243 * coffread.c (coff_symfile_read): Update.
9244 * common/agent.c (agent_look_up_symbols): Update.
9245 * d-lang.c (d_main_name): Update.
9246 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9247 * dec-thread.c (enable_dec_thread): Update.
9248 * dwarf2loc.c (call_site_to_target_addr): Update.
9249 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9250 * eval.c (evaluate_subexp_standard): Update.
9251 * findvar.c (struct minsym_lookup_data) <result>: Change type
9252 to bound_minimal_symbol.
9253 <objfile>: Remove.
9254 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9255 * frame.c (inside_main_func): Update.
9256 * frv-tdep.c (frv_frame_this_id): Update.
9257 * gcore.c (call_target_sbrk): Update.
9258 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9259 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9260 Update.
9261 * go-lang.c (go_main_name): Update.
9262 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9263 (hppa_hpux_find_import_stub_for_addr): Update.
9264 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9265 Update. Change return type.
9266 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9267 type.
9268 * jit.c (jit_breakpoint_re_set_internal): Update.
9269 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9270 Update.
9271 * linux-nat.c (get_signo): Update.
9272 * linux-thread-db.c (inferior_has_bug): Update
9273 * m32c-tdep.c (m32c_return_value)
9274 (m32c_m16c_address_to_pointer): Update.
9275 * m32r-tdep.c (m32r_frame_this_id): Update.
9276 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9277 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9278 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9279 lookup_minimal_symbol. Change return type.
9280 (lookup_minimal_symbol): Remove.
9281 (lookup_bound_minimal_symbol): Update.
9282 (lookup_minimal_symbol_text): Change return type.
9283 (lookup_minimal_symbol_solib_trampoline): Change return type.
9284 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9285 (lookup_minimal_symbol_solib_trampoline): Change return type.
9286 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9287 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9288 (value_nsstring, find_imps): Update.
9289 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9290 * p-lang.c (pascal_main_name): Update.
9291 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9292 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9293 * proc-service.c (ps_pglobal_lookup): Update.
9294 * ravenscar-thread.c (get_running_thread_msymbol): Change
9295 return type.
9296 (has_ravenscar_runtime, get_running_thread_id): Update.
9297 * remote.c (remote_check_symbols): Update.
9298 * sol-thread.c (ps_pglobal_lookup): Update.
9299 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9300 * solib-dsbt.c (lm_base): Update.
9301 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9302 Update.
9303 * solib-irix.c (locate_base): Update.
9304 * solib-som.c (som_solib_create_inferior_hook)
9305 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9306 Update.
9307 * solib-spu.c (spu_enable_break): Update.
9308 * solib-svr4.c (elf_locate_base, enable_break): Update.
9309 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9310 (flush_ea_cache): Update.
9311 * stabsread.c (define_symbol): Update.
9312 * symfile.c (simple_read_overlay_table): Update.
9313 * symtab.c (find_pc_sect_line): Update.
9314 * tracepoint.c (scope_info): Update.
9315 * tui-disasm.c (tui_get_begin_asm_address): Update.
9316 * value.c (value_static_field): Update.
9317
9318 2014-02-26 Tom Tromey <tromey@redhat.com>
9319
9320 * minsyms.c (prim_record_minimal_symbol_full): Use
9321 SET_MSYMBOL_VALUE_ADDRESS.
9322 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9323 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9324 SET_MSYMBOL_VALUE_ADDRESS.
9325 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9326 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9327
9328 2014-02-26 Tom Tromey <tromey@redhat.com>
9329
9330 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9331 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9332 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9333 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9334 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9335 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9336 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9337 * ada-lang.c (ada_main_name): Update.
9338 (ada_lookup_simple_minsym): Update.
9339 (ada_make_symbol_completion_list): Update.
9340 (ada_add_standard_exceptions): Update.
9341 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9342 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9343 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9344 * arm-tdep.c (skip_prologue_function): Update.
9345 (arm_skip_stack_protector, arm_skip_stub): Update.
9346 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9347 (arm_wince_skip_main_prologue): Update.
9348 * auxv.c (ld_so_xfer_auxv): Update.
9349 * avr-tdep.c (avr_scan_prologue): Update.
9350 * ax-gdb.c (gen_var_ref): Update.
9351 * block.c (call_site_for_pc): Update.
9352 * blockframe.c (get_pc_function_start): Update.
9353 (find_pc_partial_function_gnu_ifunc): Update.
9354 * breakpoint.c (create_overlay_event_breakpoint): Update.
9355 (create_longjmp_master_breakpoint): Update.
9356 (create_std_terminate_master_breakpoint): Update.
9357 (create_exception_master_breakpoint): Update.
9358 (resolve_sal_pc): Update.
9359 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9360 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9361 Update.
9362 * c-valprint.c (c_val_print): Update.
9363 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9364 * coffread.c (coff_symfile_read): Update.
9365 * common/agent.c (agent_look_up_symbols): Update.
9366 * dbxread.c (find_stab_function_addr): Update.
9367 (end_psymtab): Update.
9368 * dwarf2loc.c (call_site_to_target_addr): Update.
9369 (func_verify_no_selftailcall): Update.
9370 (tailcall_dump): Update.
9371 (call_site_find_chain_1): Update.
9372 (dwarf_expr_reg_to_entry_parameter): Update.
9373 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9374 (elf_gnu_ifunc_resolve_by_got): Update.
9375 * f-valprint.c (info_common_command): Update.
9376 * findvar.c (read_var_value): Update.
9377 * frame.c (get_prev_frame_1): Update.
9378 (inside_main_func): Update.
9379 * frv-tdep.c (frv_skip_main_prologue): Update.
9380 (frv_frame_this_id): Update.
9381 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9382 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9383 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9384 (gnuv3_skip_trampoline): Update.
9385 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9386 (hppa64_hpux_in_solib_call_trampoline): Update.
9387 (hppa_hpux_skip_trampoline_code): Update.
9388 (hppa64_hpux_search_dummy_call_sequence): Update.
9389 (hppa_hpux_find_import_stub_for_addr): Update.
9390 (hppa_hpux_find_dummy_bpaddr): Update.
9391 * hppa-tdep.c (hppa_symbol_address)
9392 (hppa_lookup_stub_minimal_symbol): Update.
9393 * i386-tdep.c (i386_skip_main_prologue): Update.
9394 (i386_pe_skip_trampoline_code): Update.
9395 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9396 * infcall.c (get_function_name): Update.
9397 * infcmd.c (until_next_command): Update.
9398 * jit.c (jit_breakpoint_re_set_internal): Update.
9399 (jit_inferior_init): Update.
9400 * linespec.c (minsym_found): Update.
9401 (add_minsym): Update.
9402 * linux-fork.c (info_checkpoints_command): Update.
9403 * linux-nat.c (get_signo): Update.
9404 * linux-thread-db.c (inferior_has_bug): Update.
9405 * m32c-tdep.c (m32c_return_value): Update.
9406 (m32c_m16c_address_to_pointer): Update.
9407 (m32c_m16c_pointer_to_address): Update.
9408 * m32r-tdep.c (m32r_frame_this_id): Update.
9409 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9410 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9411 * maint.c (maintenance_translate_address): Update.
9412 * minsyms.c (add_minsym_to_hash_table): Update.
9413 (add_minsym_to_demangled_hash_table): Update.
9414 (msymbol_objfile): Update.
9415 (lookup_minimal_symbol): Update.
9416 (iterate_over_minimal_symbols): Update.
9417 (lookup_minimal_symbol_text): Update.
9418 (lookup_minimal_symbol_by_pc_name): Update.
9419 (lookup_minimal_symbol_solib_trampoline): Update.
9420 (lookup_minimal_symbol_by_pc_section_1): Update.
9421 (lookup_minimal_symbol_and_objfile): Update.
9422 (prim_record_minimal_symbol_full): Update.
9423 (compare_minimal_symbols): Update.
9424 (compact_minimal_symbols): Update.
9425 (build_minimal_symbol_hash_tables): Update.
9426 (install_minimal_symbols): Update.
9427 (terminate_minimal_symbol_table): Update.
9428 (find_solib_trampoline_target): Update.
9429 (minimal_symbol_upper_bound): Update.
9430 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9431 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9432 (mips_skip_pic_trampoline_code): Update.
9433 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9434 * objc-lang.c (selectors_info): Update.
9435 (classes_info): Update.
9436 (find_methods): Update.
9437 (find_imps): Update.
9438 (find_objc_msgsend): Update.
9439 * objfiles.c (objfile_relocate1): Update.
9440 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9441 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9442 * p-valprint.c (pascal_val_print): Update.
9443 * parse.c (write_exp_msymbol): Update.
9444 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9445 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9446 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9447 * printcmd.c (build_address_symbolic): Update.
9448 (sym_info): Update.
9449 (address_info): Update.
9450 * proc-service.c (ps_pglobal_lookup): Update.
9451 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9452 (find_pc_sect_psymtab): Update.
9453 * python/py-framefilter.c (py_print_frame): Update.
9454 * ravenscar-thread.c (get_running_thread_id): Update.
9455 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9456 Update.
9457 * remote.c (remote_check_symbols): Update.
9458 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9459 (rs6000_skip_trampoline_code): Update.
9460 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9461 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9462 * solib-dsbt.c (lm_base): Update.
9463 * solib-frv.c (lm_base): Update.
9464 (main_got): Update.
9465 * solib-irix.c (locate_base): Update.
9466 * solib-som.c (som_solib_create_inferior_hook): Update.
9467 (som_solib_desire_dynamic_linker_symbols): Update.
9468 (link_map_start): Update.
9469 * solib-spu.c (spu_enable_break): Update.
9470 (ocl_enable_break): Update.
9471 * solib-svr4.c (elf_locate_base): Update.
9472 (enable_break): Update.
9473 * spu-tdep.c (spu_get_overlay_table): Update.
9474 (spu_catch_start): Update.
9475 (flush_ea_cache): Update.
9476 * stabsread.c (define_symbol): Update.
9477 (scan_file_globals): Update.
9478 * stack.c (find_frame_funname): Update.
9479 (frame_info): Update.
9480 * symfile.c (simple_read_overlay_table): Update.
9481 (simple_overlay_update): Update.
9482 * symmisc.c (dump_msymbols): Update.
9483 * symtab.c (fixup_section): Update.
9484 (find_pc_sect_line): Update.
9485 (skip_prologue_sal): Update.
9486 (search_symbols): Update.
9487 (print_msymbol_info): Update.
9488 (rbreak_command): Update.
9489 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9490 (completion_list_objc_symbol): Update.
9491 (default_make_symbol_completion_list_break_on): Update.
9492 * tracepoint.c (scope_info): Update.
9493 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9494 (tui_get_begin_asm_address): Update.
9495 * valops.c (find_function_in_inferior): Update.
9496 * value.c (value_static_field): Update.
9497 (value_fn_field): Update.
9498
9499 2014-02-26 Tom Tromey <tromey@redhat.com>
9500
9501 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9502 bound minimal symbols. Move code that knows about minsym
9503 table layout...
9504 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9505 function.
9506 * minsyms.h (minimal_symbol_upper_bound): Declare.
9507 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9508 minimal_symbol_upper_bound.
9509
9510 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9511
9512 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9513 Use the type's name if its basic type does not have a tag.
9514
9515 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9516
9517 * dwarf2read.c (read_subrange_type): Add comment.
9518
9519 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9520
9521 * dwarf2read.c (update_enumeration_type_from_children): New
9522 function, mostly extracted from process_structure_scope.
9523 (read_enumeration_type): Call update_enumeration_type_from_children.
9524 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9525 and flag_flag_enum fields.
9526
9527 2014-02-26 Pedro Alves <palves@redhat.com>
9528
9529 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9530 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9531 to_xfer_partial method.
9532
9533 2014-02-26 Pedro Alves <palves@redhat.com>
9534
9535 * target.c (complete_target_initialization): Don't install
9536 default_xfer_partial as to_xfer_partial hook.
9537 (nomemory): Delete.
9538 (update_current_target): Don't INHERIT nor de_fault
9539 deprecated_xfer_memory. Delete de_fault macro.
9540 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9541 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9542 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9543 field.
9544
9545 2014-02-26 Pedro Alves <palves@redhat.com>
9546
9547 * go32-nat.c (my_write_child): New function.
9548 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9549 (go32_xfer_partial): New function.
9550 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9551 Instead install a to_xfer_partial hook.
9552
9553 2014-02-26 Pedro Alves <palves@redhat.com>
9554
9555 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9556 to_xfer_partial helper. Rewrite.
9557 (procfs_xfer_partial): New function.
9558 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9559 Install a to_xfer_partial hook.
9560
9561 2014-02-26 Pedro Alves <palves@redhat.com>
9562
9563 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9564 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9565 (m32r_xfer_partial): New function.
9566 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9567 Install a to_xfer_partial hook.
9568
9569 2014-02-26 Pedro Alves <palves@redhat.com>
9570
9571 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9572 helper.
9573 (mips_xfer_partial): New function.
9574 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9575 hook. Install a to_xfer_partial hook.
9576
9577 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9578
9579 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9580 * gdbtypes.c (create_array_type_with_stride): New function,
9581 renaming create_array_type, but with an added parameter
9582 called "bit_stride".
9583 (create_array_type): Re-implement using
9584 create_array_type_with_stride.
9585 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9586 and DW_AT_bit_stride attributes.
9587
9588 2014-02-26 Pedro Alves <palves@redhat.com>
9589
9590 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9591 task-specific breakpoints.
9592
9593 2014-02-25 Pedro Alves <palves@redhat.com>
9594
9595 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9596 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9597
9598 2014-02-25 Stan Shebs <stan@codesourcery.com>
9599
9600 * defs.h: Annotate comments for Doxygen.
9601
9602 2014-02-25 Tom Tromey <tromey@redhat.com>
9603
9604 * target.h (target_ignore): Don't declare.
9605 * target.c (target_ignore): Remove.
9606
9607 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9608
9609 PR gdb/16626
9610 * auto-load.c (auto_load_objfile_script_1): Change filename to
9611 debugfile.
9612
9613 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9614
9615 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9616 documentation. Adjust prototype to match the target_ops
9617 to_xfer_partial method. Adjust implementation accordingly.
9618
9619 2014-02-25 Hui Zhu <hui@codesourcery.com>
9620
9621 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9622 to_traceframe_info.
9623
9624 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9625
9626 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9627 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9628 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9629 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9630 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9631 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9632 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9633 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9634 New constants.
9635 (rl78_register_type): Use a data pointer type for SP and
9636 new pseudo registers mentioned above. Use a 16 bit integer
9637 type for all other register pairs.
9638 (rl78_register_name, rl78_g10_register_name): Update for
9639 new pseudo registers.
9640 (rl78_pseudo_register_read): Likewise.
9641 (rl78_pseudo_register_write): Likewise.
9642 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9643 to the newly added pseudo registers.
9644
9645 2014-02-24 Doug Evans <dje@google.com>
9646
9647 * value.c (record_latest_value): Fix comment.
9648 * printcmd.c (print_command_1): Remove code to handle -1 return from
9649 record_latest_value.
9650
9651 2014-02-24 Pedro Alves <palves@redhat.com>
9652
9653 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9654 deprecated_xfer_memory hook.
9655 (procfs_xfer_partial): Call procfs_xfer_memory instead
9656 of the deprecated_xfer_memory target hook.
9657 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9658 helper.
9659
9660 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9661
9662 * windows-nat.c (windows_xfer_shared_libraries): Return
9663 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9664 requested object is TARGET_OBJECT_LIBRARIES.
9665
9666 2014-02-24 Yao Qi <yao@codesourcery.com>
9667
9668 * target.h (enum target_xfer_status)
9669 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9670 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9671 explicitly. New.
9672 * corefile.c (memory_error_message): User updated.
9673 * exec.c (section_table_read_available_memory): Likewise.
9674 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9675 * target.c (target_xfer_status_to_string): Likewise.
9676 (raw_memory_xfer_partial): Likewise.
9677 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9678 * valops.c (read_value_memory): Likewise.
9679 * exec.h: Update comments.
9680
9681 2014-02-24 Yao Qi <yao@codesourcery.com>
9682
9683 * target.c (target_xfer_status_to_string): Rename argument err
9684 to status.
9685 * target.h (target_xfer_status_to_string): Update declaration.
9686 Replace target_xfer_error_to_string with
9687 target_xfer_status_to_string in comment.
9688
9689 2014-02-24 Yao Qi <yao@codesourcery.com>
9690
9691 * mips-linux-nat.c (super_close): Update its type.
9692 (mips_linux_close): Pass 'self' to super_close.
9693
9694 2014-02-24 Yao Qi <yao@codesourcery.com>
9695
9696 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9697 * corefile.c (read_memory): Adjusted.
9698 * target.c (target_write_with_progress): Adjusted.
9699
9700 2014-02-23 Yao Qi <yao@codesourcery.com>
9701
9702 Revert two patches:
9703
9704 2013-10-25 Yao Qi <yao@codesourcery.com>
9705
9706 * remote.c (remote_traceframe_info): Return early if
9707 traceframe is not selected.
9708
9709 2013-07-19 Yao Qi <yao@codesourcery.com>
9710
9711 * target.c (update_current_target): Change the default action
9712 of 'to_traceframe_info' from tcomplain to return_zero.
9713 * target.h (struct target_ops) <to_traceframe_info>: Add more
9714 comments.
9715
9716 2014-02-23 Yao Qi <yao@codesourcery.com>
9717
9718 * valops.c (read_value_memory): Rewrite it. Call
9719 target_xfer_partial in a loop.
9720 * exec.h (section_table_available_memory): Remove declaration.
9721 Move comments to ...
9722 * exec.c (section_table_available_memory): ... here. Make it
9723 static.
9724
9725 2014-02-23 Yao Qi <yao@codesourcery.com>
9726
9727 * exec.c (section_table_read_available_memory): New function.
9728 * exec.h (section_table_read_available_memory): Declare.
9729 * ctf.c (ctf_xfer_partial): Call
9730 section_table_read_available_memory.
9731 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9732
9733 2014-02-23 Yao Qi <yao@codesourcery.com>
9734
9735 * ctf.c (ctf_xfer_partial): Move code to ...
9736 * exec.c (exec_read_partial_read_only): ... it. New function.
9737 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9738 * tracefile.c: Include "exec.h".
9739 * exec.h (exec_read_partial_read_only): Declare.
9740
9741 2014-02-23 Yao Qi <yao@codesourcery.com>
9742
9743 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9744 (tfile_has_memory): Remove.
9745 (init_tfile_ops): Don't set fields to_has_all_memory and
9746 to_has_memory of tfile_ops.
9747 * tracefile.c (tracefile_has_all_memory): New function.
9748 (tracefile_has_memory): New function.
9749 (init_tracefile_ops): Initialize fields to_has_all_memory and
9750 to_has_memory of 'ops'.
9751
9752 2014-02-23 Yao Qi <yao@codesourcery.com>
9753
9754 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9755 (ctf_thread_alive, ctf_get_trace_status): Remove.
9756 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9757 init_tracefile_ops.
9758 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9759 (tfile_has_stack, tfile_has_registers): Remove.
9760 (tfile_thread_alive): Remove.
9761 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9762 init_tracefile_ops.
9763 * tracefile.c (tracefile_has_stack): New function.
9764 (tracefile_has_registers): New function.
9765 (tracefile_thread_alive): New function.
9766 (tracefile_get_trace_status): New function.
9767 (init_tracefile_ops): New function.
9768 * tracefile.h (init_tracefile_ops): Declare.
9769
9770 2014-02-23 Yao Qi <yao@codesourcery.com>
9771
9772 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9773 (O_LARGEFILE): Likewise.
9774 (tfile_ops): Likewise.
9775 (TRACE_HEADER_SIZE): Likewise.
9776 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9777 (cur_data_size): Likewise.
9778 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9779 (tfile_close, tfile_files_info): Likewise.
9780 (tfile_get_trace_status): Likewise.
9781 (tfile_get_tracepoint_status): Likewise.
9782 (tfile_get_traceframe_address): Likewise.
9783 (tfile_trace_find, match_blocktype): Likewise.
9784 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9785 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9786 (tfile_get_trace_state_variable_value): Likewise.
9787 (tfile_has_all_memory, tfile_has_memory): Likewise.
9788 (tfile_has_stack, tfile_has_registers): Likewise.
9789 (tfile_thread_alive, build_traceframe_info): Likewise.
9790 (tfile_traceframe_info, init_tfile_ops): Likewise.
9791 (_initialize_tracepoint): Don't call init_tfile_ops
9792 and add_target_with_completer.
9793 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9794 exec.h, completer.h and filenames.h.
9795 (_initialize_tracefile_tfile): New function.
9796
9797 2014-02-23 Yao Qi <yao@codesourcery.com>
9798
9799 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9800 tracefile-tfile.o.
9801 (HFILES_NO_SRCDIR): Add tracefile.h.
9802 * ctf.c: Include "tracefile.h".
9803 * tracefile.h: New file.
9804 * tracefile.c: New file
9805 * tracefile-tfile.c: New file.
9806 * tracepoint.c: Include "tracefile.h".
9807 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9808 (stop_reason_names): Add const.
9809 (trace_file_writer_xfree): Move it to tracefile.c.
9810 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9811 (trace_save_ctf): Likewise.
9812 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9813 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9814 (tfile_write_header, tfile_write_regblock_type): Likewise.
9815 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9816 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9817 (tfile_write_raw_data, tfile_end): Likewise.
9818 (tfile_trace_file_writer_new): Likewise.
9819 (free_uploaded_tp): Make it extern.
9820 (free_uploaded_tsv): Make it extern.
9821 (_initialize_tracepoint): Move code to register command 'tsave'
9822 to tracefile.c.
9823 * tracepoint.h (stop_reason_names): Declare.
9824 (struct trace_frame_write_ops): Move it to tracefile.h.
9825 (struct trace_file_write_ops): Likewise.
9826 (struct trace_file_writer): Likewise.
9827 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9828
9829 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9830
9831 PR gdb/16594
9832 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9833 process name.
9834 (get_cores_used_by_process): New parameter num_cores, use it.
9835 (linux_xfer_osdata_processes): Pass num_cores to it.
9836 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9837 process name.
9838
9839 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9840
9841 * target.c (memory_xfer_partial): Fix length arg in call to
9842 breakpoint_xfer_memory.
9843
9844 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9845
9846 PR tdep/16397
9847 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9848 number comes after the + or - signs. Adjust length of register
9849 name to be extracted.
9850
9851 2014-02-20 Tom Tromey <tromey@redhat.com>
9852
9853 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9854 (ada_varobj_ops): Mark "extern".
9855
9856 2014-02-20 Tom Tromey <tromey@redhat.com>
9857
9858 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9859
9860 2014-02-20 Doug Evans <xdje42@gmail.com>
9861
9862 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9863 All callers updated.
9864 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9865 All callers updated.
9866 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9867 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9868
9869 2014-02-20 lin zuojian <manjian2006@gmail.com>
9870 Joel Brobecker <brobecker@adacore.com>
9871 Doug Evans <xdje42@gmail.com>
9872
9873 PR symtab/16581
9874 * dwarf2read.c (struct die_info): New member in_process.
9875 (reset_die_in_process): New function.
9876 (process_die): Set it at the start, reset when returning.
9877 (inherit_abstract_dies): Only call process_die if origin_child_die
9878 not already being processed.
9879
9880 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9881
9882 * windows-nat.c (handle_unload_dll): Add function documentation.
9883 (do_initial_windows_stuff): Add comment explaining why we wait
9884 until after inferior initialization has finished before
9885 processing all DLLs.
9886
9887 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9888
9889 * windows-nat.c (get_module_name): Delete.
9890 (windows_get_exec_module_filename): New function, mostly
9891 inspired from get_module_name.
9892 (windows_pid_to_exec_file): Replace call to get_module_name
9893 by call to windows_get_exec_module_filename.
9894
9895 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9896
9897 * windows-nat.c (handle_load_dll): Rewrite this function's
9898 introductory comment. Remove code using get_module_name
9899 to get the DLL's name.
9900
9901 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9902
9903 * windows-nat.c (get_windows_debug_event): Ignore
9904 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9905 if windows_initialization_done == 0.
9906 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9907 Adjust implementation to always load all DLLs.
9908 (do_initial_windows_stuff): Replace call to
9909 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9910
9911 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9912
9913 * windows-nat.c (_initialize_windows_nat): Deprecate the
9914 "dll-symbols" command. Turn the "add-shared-symbol-files"
9915 and "assf" aliases into commands, and deprecate them as well.
9916 * NEWS: Add entry explaining that "dll-symbols" and its two
9917 aliases are now deprecated.
9918
9919 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9920
9921 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9922 new-line in debug string. Remove trailing spaces.
9923
9924 2014-02-19 Stan Shebs <stan@codesourcery.com>
9925
9926 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9927
9928 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9929
9930 * NEWS: Add entry for the new feature
9931 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9932 and class values.
9933
9934 2014-02-19 Stan Shebs <stan@codesourcery.com>
9935
9936 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9937
9938 2014-02-19 Pedro Alves <palves@redhat.com>
9939
9940 * common/ptid.h (struct ptid): Mention that process_stratum
9941 targets should prefer ptid.lwp.
9942
9943 2014-02-19 Pedro Alves <palves@redhat.com>
9944
9945 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9946 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9947 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9948 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9949 store remote thread ids rather than ptid.tid.
9950 (_initialize_remote): Adjust.
9951
9952 2014-02-19 Tom Tromey <tromey@redhat.com>
9953
9954 * target.c (target_get_unwinder): Rewrite.
9955 (target_get_tailcall_unwinder): Rewrite.
9956 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9957 (record_btrace_to_get_tailcall_unwinder): New function.
9958 (init_record_btrace_ops): Update.
9959 * target.h (struct target_ops) <to_get_unwinder,
9960 to_get_tailcall_unwinder>: Now function pointers. Use
9961 TARGET_DEFAULT_RETURN.
9962
9963 2014-02-19 Tom Tromey <tromey@redhat.com>
9964
9965 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9966 argument.
9967 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9968
9969 2014-02-19 Tom Tromey <tromey@redhat.com>
9970
9971 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9972 directly.
9973 * target-delegates.c: Rebuild.
9974 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9975 TARGET_DEFAULT_FUNC.
9976 * target.c (default_target_decr_pc_after_break): Rename from
9977 forward_target_decr_pc_after_break. Simplify.
9978 (target_decr_pc_after_break): Rely on delegation.
9979
9980 2014-02-19 Tom Tromey <tromey@redhat.com>
9981
9982 * target.c (update_current_target): Do not INHERIT to_doc or
9983 to_magic. Do not de_fault to_open or to_close.
9984
9985 2014-02-19 Tom Tromey <tromey@redhat.com>
9986
9987 * gcore.h (objfile_find_memory_regions): Declare.
9988 * gcore.c (objfile_find_memory_regions): No longer static. Add
9989 "self" argument.
9990 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9991 * exec.c: Include gcore.h.
9992 (exec_set_find_memory_regions): Remove.
9993 (exec_find_memory_regions): Remove.
9994 (exec_do_find_memory_regions): Remove.
9995 (init_exec_ops): Update.
9996 * defs.h (exec_set_find_memory_regions): Remove.
9997
9998 2014-02-19 Tom Tromey <tromey@redhat.com>
9999
10000 * target-delegates.c: Rebuild.
10001 * target.h (struct target_ops) <to_extra_thread_info,
10002 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10003 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10004 not 0, in TARGET_DEFAULT_RETURN.
10005
10006 2014-02-19 Tom Tromey <tromey@redhat.com>
10007
10008 * target.c (complete_target_initialization): Remove casts. Use
10009 return_zero_has_execution.
10010 (return_zero): Add "ignore" argument.
10011 (return_zero_has_execution): New function.
10012 (init_dummy_target): Remove casts. Use
10013 return_zero_has_execution.
10014
10015 2014-02-19 Tom Tromey <tromey@redhat.com>
10016
10017 * target.c (update_current_target): Update comments. Do not
10018 INHERIT to_stratum.
10019
10020 2014-02-19 Tom Tromey <tromey@redhat.com>
10021
10022 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10023 needed.
10024 * corelow.c (core_read_description): Delegate when needed.
10025 * remote.c (remote_read_description): Delegate when needed.
10026 * target-delegates.c: Rebuild.
10027 * target.c (target_read_description): Rewrite.
10028 * target.h (struct target_ops) <to_read_description>: Update
10029 comment. Use TARGET_DEFAULT_RETURN.
10030
10031 2014-02-19 Tom Tromey <tromey@redhat.com>
10032
10033 * target-delegates.c: Rebuild.
10034 * target.c (update_current_target): Don't inherit or default
10035 to_can_run.
10036 (find_default_run_target): Check against delegate_can_run.
10037 * target.h (struct target_ops) <to_can_run>: Use
10038 TARGET_DEFAULT_RETURN.
10039
10040 2014-02-19 Tom Tromey <tromey@redhat.com>
10041
10042 * target-delegates.c: Rebuild.
10043 * target.c (target_disconnect): Unconditionally delegate.
10044 * target.h (struct target_ops) <to_disconnect>: Use
10045 TARGET_DEFAULT_NORETURN.
10046
10047 2014-02-19 Tom Tromey <tromey@redhat.com>
10048
10049 * record.c (record_stop): Unconditionally delegate.
10050 * target-delegates.c: Rebuild.
10051 * target.c (target_stop_recording): Unconditionally delegate.
10052 * target.h (struct target_ops) <to_stop_recording>: Use
10053 TARGET_DEFAULT_IGNORE.
10054
10055 2014-02-19 Tom Tromey <tromey@redhat.com>
10056
10057 * target-delegates.c: Rebuild.
10058 * target.c (target_enable_btrace): Unconditionally delegate.
10059 * target.h (struct target_ops) <to_enable_btrace>: Use
10060 TARGET_DEFAULT_NORETURN.
10061
10062 2014-02-19 Tom Tromey <tromey@redhat.com>
10063
10064 * target-delegates.c: Rebuild.
10065 * target.c (target_read_btrace): Unconditionally delegate.
10066 * target.h (struct target_ops) <to_read_btrace>: Use
10067 TARGET_DEFAULT_NORETURN.
10068
10069 2014-02-19 Tom Tromey <tromey@redhat.com>
10070
10071 * target-delegates.c: Rebuild.
10072 * target.c (target_teardown_btrace): Unconditionally delegate.
10073 * target.h (struct target_ops) <to_teardown_btrace>: Use
10074 TARGET_DEFAULT_NORETURN.
10075
10076 2014-02-19 Tom Tromey <tromey@redhat.com>
10077
10078 * target-delegates.c: Rebuild.
10079 * target.c (target_disable_btrace): Unconditionally delegate.
10080 * target.h (struct target_ops) <to_disable_btrace>: Use
10081 TARGET_DEFAULT_NORETURN.
10082
10083 2014-02-19 Tom Tromey <tromey@redhat.com>
10084
10085 * target-delegates.c: Rebuild.
10086 * target.c (default_search_memory): New function.
10087 (simple_search_memory): Update comment.
10088 (target_search_memory): Unconditionally delegate.
10089 * target.h (struct target_ops) <to_search_memory>: Use
10090 TARGET_DEFAULT_FUNC.
10091
10092 2014-02-19 Tom Tromey <tromey@redhat.com>
10093
10094 * auxv.c (default_auxv_parse): No longer static.
10095 (target_auxv_parse): Unconditionally delegate.
10096 * auxv.h (default_auxv_parse): Declare.
10097 * target-delegates.c: Rebuild.
10098 * target.c: Include auxv.h.
10099 * target.h (struct target_ops) <to_auxv_parse>: Use
10100 TARGET_DEFAULT_FUNC.
10101
10102 2014-02-19 Tom Tromey <tromey@redhat.com>
10103
10104 * target-delegates.c: Rebuild.
10105 * target.c (target_memory_map): Unconditionally delegate.
10106 * target.h (struct target_ops) <to_memory_map>: Use
10107 TARGET_DEFAULT_RETURN.
10108
10109 2014-02-19 Tom Tromey <tromey@redhat.com>
10110
10111 * target-delegates.c: Rebuild.
10112 * target.c (target_thread_alive): Unconditionally delegate.
10113 * target.h (struct target_ops) <to_thread_alive>: Use
10114 TARGET_DEFAULT_RETURN.
10115
10116 2014-02-19 Tom Tromey <tromey@redhat.com>
10117
10118 * target-delegates.c: Rebuild.
10119 * target.c (target_save_record): Unconditionally delegate.
10120 * target.h (struct target_ops) <to_save_record>: Use
10121 TARGET_DEFAULT_NORETURN.
10122
10123 2014-02-19 Tom Tromey <tromey@redhat.com>
10124
10125 * target-delegates.c: Rebuild.
10126 * target.c (target_delete_record): Unconditionally delegate.
10127 * target.h (struct target_ops) <to_delete_record>: Use
10128 TARGET_DEFAULT_NORETURN.
10129
10130 2014-02-19 Tom Tromey <tromey@redhat.com>
10131
10132 * target-delegates.c: Rebuild.
10133 * target.c (target_record_is_replaying): Unconditionally
10134 delegate.
10135 * target.h (struct target_ops) <to_record_is_replaying>: Use
10136 TARGET_DEFAULT_RETURN.
10137
10138 2014-02-19 Tom Tromey <tromey@redhat.com>
10139
10140 * target-delegates.c: Rebuild.
10141 * target.c (target_goto_record_begin): Unconditionally delegate.
10142 * target.h (struct target_ops) <to_goto_record_begin>: Use
10143 TARGET_DEFAULT_NORETURN.
10144
10145 2014-02-19 Tom Tromey <tromey@redhat.com>
10146
10147 * target-delegates.c: Rebuild.
10148 * target.c (target_goto_record_end): Unconditionally delegate.
10149 * target.h (struct target_ops) <to_goto_record_end>: Use
10150 TARGET_DEFAULT_NORETURN.
10151
10152 2014-02-19 Tom Tromey <tromey@redhat.com>
10153
10154 * target-delegates.c: Rebuild.
10155 * target.c (target_goto_record): Unconditionally delegate.
10156 * target.h (struct target_ops) <to_goto_record>: Use
10157 TARGET_DEFAULT_NORETURN.
10158
10159 2014-02-19 Tom Tromey <tromey@redhat.com>
10160
10161 * target-delegates.c: Rebuild.
10162 * target.c (target_insn_history): Unconditionally delegate.
10163 * target.h (struct target_ops) <to_insn_history>: Use
10164 TARGET_DEFAULT_NORETURN.
10165
10166 2014-02-19 Tom Tromey <tromey@redhat.com>
10167
10168 * target-delegates.c: Rebuild.
10169 * target.c (target_insn_history_from): Unconditionally delegate.
10170 * target.h (struct target_ops) <to_insn_history_from>: Use
10171 TARGET_DEFAULT_NORETURN.
10172
10173 2014-02-19 Tom Tromey <tromey@redhat.com>
10174
10175 * target-delegates.c: Rebuild.
10176 * target.c (target_insn_history_range): Unconditionally delegate.
10177 * target.h (struct target_ops) <to_insn_history_range>: Use
10178 TARGET_DEFAULT_NORETURN.
10179
10180 2014-02-19 Tom Tromey <tromey@redhat.com>
10181
10182 * target-delegates.c: Rebuild.
10183 * target.c (target_call_history): Unconditionally delegate.
10184 * target.h (struct target_ops) <to_call_history>: Use
10185 TARGET_DEFAULT_NORETURN.
10186
10187 2014-02-19 Tom Tromey <tromey@redhat.com>
10188
10189 * target-delegates.c: Rebuild.
10190 * target.c (target_call_history_from): Unconditionally delegate.
10191 * target.h (struct target_ops) <to_call_history_from>: Use
10192 TARGET_DEFAULT_NORETURN.
10193
10194 2014-02-19 Tom Tromey <tromey@redhat.com>
10195
10196 * target-delegates.c: Rebuild.
10197 * target.c (target_call_history_range): Unconditionally delegate.
10198 * target.h (struct target_ops) <to_call_history_range>: Use
10199 TARGET_DEFAULT_NORETURN.
10200
10201 2014-02-19 Tom Tromey <tromey@redhat.com>
10202
10203 * target-delegates.c: Rebuild.
10204 * target.c (target_verify_memory): Unconditionally delegate.
10205 * target.h (struct target_ops) <to_verify_memory>: Use
10206 TARGET_DEFAULT_NORETURN.
10207
10208 2014-02-19 Tom Tromey <tromey@redhat.com>
10209
10210 * target-delegates.c: Rebuild.
10211 * target.c (target_core_of_thread): Unconditionally delegate.
10212 * target.h (struct target_ops) <to_core_of_thread>: Use
10213 TARGET_DEFAULT_RETURN.
10214
10215 2014-02-19 Tom Tromey <tromey@redhat.com>
10216
10217 * target-delegates.c: Rebuild.
10218 * target.c (target_flash_done): Unconditionally delegate.
10219 * target.h (struct target_ops) <to_flash_done>: Use
10220 TARGET_DEFAULT_NORETURN.
10221
10222 2014-02-19 Tom Tromey <tromey@redhat.com>
10223
10224 * target-delegates.c: Rebuild.
10225 * target.c (target_flash_erase): Unconditionally delegate.
10226 * target.h (struct target_ops) <to_flash_erase>: Use
10227 TARGET_DEFAULT_NORETURN.
10228
10229 2014-02-19 Tom Tromey <tromey@redhat.com>
10230
10231 * target-delegates.c: Rebuild.
10232 * target.c (target_get_section_table): Unconditionally delegate.
10233 * target.h (struct target_ops) <to_get_section_table>: Use
10234 TARGET_DEFAULT_RETURN.
10235
10236 2014-02-19 Tom Tromey <tromey@redhat.com>
10237
10238 * target-delegates.c: Rebuild.
10239 * target.c (target_pid_to_str): Unconditionally delegate.
10240 (init_dummy_target): Don't initialize to_pid_to_str.
10241 (default_pid_to_str): Rename from dummy_pid_to_str.
10242 * target.h (struct target_ops) <to_pid_to_str>: Use
10243 TARGET_DEFAULT_FUNC.
10244
10245 2014-02-19 Tom Tromey <tromey@redhat.com>
10246
10247 * target-delegates.c: Rebuild.
10248 * target.c (target_find_new_threads): Unconditionally delegate.
10249 * target.h (struct target_ops) <to_find_new_threads>: Use
10250 TARGET_DEFAULT_RETURN.
10251
10252 2014-02-19 Tom Tromey <tromey@redhat.com>
10253
10254 * target-delegates.c: Rebuild.
10255 * target.c (target_program_signals): Unconditionally delegate.
10256 * target.h (struct target_ops) <to_program_signals>: Use
10257 TARGET_DEFAULT_IGNORE.
10258
10259 2014-02-19 Tom Tromey <tromey@redhat.com>
10260
10261 * target-delegates.c: Rebuild.
10262 * target.c (target_pass_signals): Unconditionally delegate.
10263 * target.h (struct target_ops) <to_pass_signals>: Use
10264 TARGET_DEFAULT_IGNORE.
10265
10266 2014-02-19 Tom Tromey <tromey@redhat.com>
10267
10268 * target-delegates.c: Rebuild.
10269 * target.c (default_mourn_inferior): New function.
10270 (target_mourn_inferior): Unconditionally delegate.
10271 * target.h (struct target_ops) <to_mourn_inferior>: Use
10272 TARGET_DEFAULT_FUNC.
10273
10274 2014-02-19 Tom Tromey <tromey@redhat.com>
10275
10276 * target-delegates.c: Rebuild.
10277 * target.c (default_follow_fork): New function.
10278 (target_follow_fork): Unconditionally delegate.
10279 * target.h (struct target_ops) <to_follow_fork>: Use
10280 TARGET_DEFAULT_FUNC.
10281
10282 2014-02-19 Tom Tromey <tromey@redhat.com>
10283
10284 * target-delegates.c: Rebuild.
10285 * target.c (target_kill): Unconditionally delegate.
10286 * target.h (struct target_ops) <to_kill>: Use
10287 TARGET_DEFAULT_NORETURN.
10288
10289 2014-02-19 Tom Tromey <tromey@redhat.com>
10290
10291 * target-delegates.c: Rebuild.
10292 * target.c (target_masked_watch_num_registers): Unconditionally
10293 delegate.
10294 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10295 Use TARGET_DEFAULT_RETURN.
10296
10297 2014-02-19 Tom Tromey <tromey@redhat.com>
10298
10299 * target-delegates.c: Rebuild.
10300 * target.c (target_remove_mask_watchpoint): Unconditionally
10301 delegate.
10302 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10303 TARGET_DEFAULT_RETURN.
10304
10305 2014-02-19 Tom Tromey <tromey@redhat.com>
10306
10307 * target-delegates.c: Rebuild.
10308 * target.c (target_insert_mask_watchpoint): Unconditionally
10309 delegate.
10310 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10311 TARGET_DEFAULT_RETURN.
10312
10313 2014-02-19 Tom Tromey <tromey@redhat.com>
10314
10315 * target-delegates.c: Rebuild.
10316 * target.c (target_ranged_break_num_registers): Unconditionally
10317 delegate.
10318 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10319 Use TARGET_DEFAULT_RETURN.
10320
10321 2014-02-19 Tom Tromey <tromey@redhat.com>
10322
10323 * target-delegates.c: Rebuild.
10324 * target.c (target_fetch_registers): Unconditionally delegate.
10325 * target.h (struct target_ops) <to_fetch_registers>: Use
10326 TARGET_DEFAULT_NORETURN.
10327
10328 2014-02-19 Tom Tromey <tromey@redhat.com>
10329
10330 * target-delegates.c: Rebuild.
10331 * target.c (update_current_target): Don't inherit or default
10332 to_stop.
10333 * target.h (struct target_ops) <to_stop>: Use
10334 TARGET_DEFAULT_IGNORE.
10335
10336 2014-02-19 Tom Tromey <tromey@redhat.com>
10337
10338 * target-delegates.c: Rebuild.
10339 * target.c (update_current_target): Don't inherit or default
10340 to_can_run_breakpoint_commands.
10341 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10342 Use TARGET_DEFAULT_RETURN.
10343
10344 2014-02-19 Tom Tromey <tromey@redhat.com>
10345
10346 * target-delegates.c: Rebuild.
10347 * target.c (update_current_target): Don't inherit or default
10348 to_supports_evaluation_of_breakpoint_conditions.
10349 * target.h (struct target_ops)
10350 <to_supports_evaluation_of_breakpoint_conditions>: Use
10351 TARGET_DEFAULT_RETURN.
10352
10353 2014-02-19 Tom Tromey <tromey@redhat.com>
10354
10355 * target-delegates.c: Rebuild.
10356 * target.c (update_current_target): Don't inherit or default
10357 to_augmented_libraries_svr4_read.
10358 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10359 Use TARGET_DEFAULT_RETURN.
10360
10361 2014-02-19 Tom Tromey <tromey@redhat.com>
10362
10363 * target-delegates.c: Rebuild.
10364 * target.c (update_current_target): Don't inherit or default
10365 to_can_use_agent.
10366 * target.h (struct target_ops) <to_can_use_agent>: Use
10367 TARGET_DEFAULT_RETURN.
10368
10369 2014-02-19 Tom Tromey <tromey@redhat.com>
10370
10371 * target-delegates.c: Rebuild.
10372 * target.c (update_current_target): Don't inherit or default
10373 to_use_agent.
10374 * target.h (struct target_ops) <to_use_agent>: Use
10375 TARGET_DEFAULT_NORETURN.
10376
10377 2014-02-19 Tom Tromey <tromey@redhat.com>
10378
10379 * target-delegates.c: Rebuild.
10380 * target.c (update_current_target): Don't inherit or default
10381 to_traceframe_info.
10382 (return_null): Remove.
10383 * target.h (struct target_ops) <to_traceframe_info>: Use
10384 TARGET_DEFAULT_RETURN.
10385
10386 2014-02-19 Tom Tromey <tromey@redhat.com>
10387
10388 * target-delegates.c: Rebuild.
10389 * target.c (update_current_target): Don't inherit or default
10390 to_static_tracepoint_markers_by_strid.
10391 * target.h (struct target_ops)
10392 <to_static_tracepoint_markers_by_strid>: Use
10393 TARGET_DEFAULT_NORETURN.
10394
10395 2014-02-19 Tom Tromey <tromey@redhat.com>
10396
10397 * target-delegates.c: Rebuild.
10398 * target.c (update_current_target): Don't inherit or default
10399 to_static_tracepoint_marker_at.
10400 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10401 Use TARGET_DEFAULT_RETURN.
10402
10403 2014-02-19 Tom Tromey <tromey@redhat.com>
10404
10405 * target-delegates.c: Rebuild.
10406 * target.c (update_current_target): Don't inherit or default
10407 to_set_permissions.
10408 * target.h (struct target_ops) <to_set_permissions>: Use
10409 TARGET_DEFAULT_IGNORE.
10410
10411 2014-02-19 Tom Tromey <tromey@redhat.com>
10412
10413 * target-delegates.c: Rebuild.
10414 * target.c (update_current_target): Don't inherit or default
10415 to_get_tib_address.
10416 * target.h (struct target_ops) <to_get_tib_address>: Use
10417 TARGET_DEFAULT_NORETURN.
10418
10419 2014-02-19 Tom Tromey <tromey@redhat.com>
10420
10421 * target-delegates.c: Rebuild.
10422 * target.c (update_current_target): Don't inherit or default
10423 to_set_trace_notes.
10424 * target.h (struct target_ops) <to_set_trace_notes>: Use
10425 TARGET_DEFAULT_RETURN.
10426
10427 2014-02-19 Tom Tromey <tromey@redhat.com>
10428
10429 * target-delegates.c: Rebuild.
10430 * target.c (update_current_target): Don't initialize
10431 to_set_trace_buffer_size.
10432 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10433 TARGET_DEFAULT_IGNORE.
10434
10435 2014-02-19 Tom Tromey <tromey@redhat.com>
10436
10437 * target-delegates.c: Rebuild.
10438 * target.c (update_current_target): Don't inherit or default
10439 to_set_circular_trace_buffer.
10440 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10441 TARGET_DEFAULT_IGNORE.
10442
10443 2014-02-19 Tom Tromey <tromey@redhat.com>
10444
10445 * target-delegates.c: Rebuild.
10446 * target.c (update_current_target): Don't inherit or default
10447 to_set_disconnected_tracing.
10448 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10449 TARGET_DEFAULT_IGNORE.
10450
10451 2014-02-19 Tom Tromey <tromey@redhat.com>
10452
10453 * target-delegates.c: Rebuild.
10454 * target.c (update_current_target): Don't inherit or default
10455 to_get_min_fast_tracepoint_insn_len.
10456 (return_minus_one): Remove.
10457 * target.h (struct target_ops)
10458 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10459
10460 2014-02-19 Tom Tromey <tromey@redhat.com>
10461
10462 * target-delegates.c: Rebuild.
10463 * target.c (update_current_target): Don't inherit or default
10464 to_get_raw_trace_data.
10465 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10466 TARGET_DEFAULT_NORETURN.
10467
10468 2014-02-19 Tom Tromey <tromey@redhat.com>
10469
10470 * target-delegates.c: Rebuild.
10471 * target.c (update_current_target): Don't inherit or default
10472 to_upload_trace_state_variables.
10473 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10474 Use TARGET_DEFAULT_RETURN.
10475
10476 2014-02-19 Tom Tromey <tromey@redhat.com>
10477
10478 * target-delegates.c: Rebuild.
10479 * target.c (update_current_target): Don't inherit or default
10480 to_upload_tracepoints.
10481 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10482 TARGET_DEFAULT_RETURN.
10483
10484 2014-02-19 Tom Tromey <tromey@redhat.com>
10485
10486 * target-delegates.c: Rebuild.
10487 * target.c (update_current_target): Don't inherit or default
10488 to_save_trace_data.
10489 * target.h (struct target_ops) <to_save_trace_data>: Use
10490 TARGET_DEFAULT_NORETURN.
10491
10492 2014-02-19 Tom Tromey <tromey@redhat.com>
10493
10494 * target-delegates.c: Rebuild.
10495 * target.c (update_current_target): Don't inherit or default
10496 to_get_trace_state_variable_value.
10497 * target.h (struct target_ops)
10498 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10499
10500 2014-02-19 Tom Tromey <tromey@redhat.com>
10501
10502 * target-delegates.c: Rebuild.
10503 * target.c (update_current_target): Don't inherit or default
10504 to_trace_find.
10505 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10506
10507 2014-02-19 Tom Tromey <tromey@redhat.com>
10508
10509 * target-delegates.c: Rebuild.
10510 * target.c (update_current_target): Don't inherit or default
10511 to_trace_stop.
10512 * target.h (struct target_ops) <to_trace_stop>: Use
10513 TARGET_DEFAULT_NORETURN.
10514
10515 2014-02-19 Tom Tromey <tromey@redhat.com>
10516
10517 * target-delegates.c: Rebuild.
10518 * target.c (update_current_target): Don't inherit or default
10519 to_get_tracepoint_status.
10520 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10521 TARGET_DEFAULT_NORETURN.
10522
10523 2014-02-19 Tom Tromey <tromey@redhat.com>
10524
10525 * target-delegates.c: Rebuild.
10526 * target.c (update_current_target): Don't inherit or default
10527 to_get_trace_status.
10528 * target.h (struct target_ops) <to_get_trace_status>: Use
10529 TARGET_DEFAULT_RETURN.
10530
10531 2014-02-19 Tom Tromey <tromey@redhat.com>
10532
10533 * target-delegates.c: Rebuild.
10534 * target.c (update_current_target): Don't inherit or default
10535 to_trace_start.
10536 * target.h (struct target_ops) <to_trace_start>: Use
10537 TARGET_DEFAULT_NORETURN.
10538
10539 2014-02-19 Tom Tromey <tromey@redhat.com>
10540
10541 * target-delegates.c: Rebuild.
10542 * target.c (update_current_target): Don't inherit or default
10543 to_trace_set_readonly_regions.
10544 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10545 Use TARGET_DEFAULT_NORETURN.
10546
10547 2014-02-19 Tom Tromey <tromey@redhat.com>
10548
10549 * target-delegates.c: Rebuild.
10550 * target.c (update_current_target): Don't inherit or default
10551 to_disable_tracepoint.
10552 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10553 TARGET_DEFAULT_NORETURN.
10554
10555 2014-02-19 Tom Tromey <tromey@redhat.com>
10556
10557 * target-delegates.c: Rebuild.
10558 * target.c (update_current_target): Don't inherit or default
10559 to_enable_tracepoint.
10560 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10561 TARGET_DEFAULT_NORETURN.
10562
10563 2014-02-19 Tom Tromey <tromey@redhat.com>
10564
10565 * target-delegates.c: Rebuild.
10566 * target.c (update_current_target): Don't inherit or default
10567 to_download_trace_state_variable.
10568 * target.h (struct target_ops) <to_download_trace_state_variable>:
10569 Use TARGET_DEFAULT_NORETURN.
10570
10571 2014-02-19 Tom Tromey <tromey@redhat.com>
10572
10573 * target-delegates.c: Rebuild.
10574 * target.c (update_current_target): Don't inherit or default
10575 to_can_download_tracepoint.
10576 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10577 TARGET_DEFAULT_RETURN.
10578
10579 2014-02-19 Tom Tromey <tromey@redhat.com>
10580
10581 * target-delegates.c: Rebuild.
10582 * target.c (update_current_target): Don't inherit or default
10583 to_download_tracepoint.
10584 * target.h (struct target_ops) <to_download_tracepoint>: Use
10585 TARGET_DEFAULT_NORETURN.
10586
10587 2014-02-19 Tom Tromey <tromey@redhat.com>
10588
10589 * target-delegates.c: Rebuild.
10590 * target.c (update_current_target): Don't inherit or default
10591 to_trace_init.
10592 * target.h (struct target_ops) <to_trace_init>: Use
10593 TARGET_DEFAULT_RETURN.
10594
10595 2014-02-19 Tom Tromey <tromey@redhat.com>
10596
10597 * target-delegates.c: Rebuild.
10598 * target.c (update_current_target): Don't inherit or default
10599 to_supports_string_tracing.
10600 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10601 TARGET_DEFAULT_RETURN.
10602
10603 2014-02-19 Tom Tromey <tromey@redhat.com>
10604
10605 * target-delegates.c: Rebuild.
10606 * target.c (update_current_target): Don't inherit or default
10607 to_supports_enable_disable_tracepoint.
10608 * target.h (struct target_ops)
10609 <to_supports_enable_disable_tracepoint>: Use
10610 TARGET_DEFAULT_RETURN.
10611
10612 2014-02-19 Tom Tromey <tromey@redhat.com>
10613
10614 * target-delegates.c: Rebuild.
10615 * target.c (update_current_target): Don't inherit or default
10616 to_supports_multi_process.
10617 * target.h (struct target_ops) <to_supports_multi_process>: Use
10618 TARGET_DEFAULT_RETURN.
10619
10620 2014-02-19 Tom Tromey <tromey@redhat.com>
10621
10622 * target-delegates.c: Rebuild.
10623 * target.c (update_current_target): Don't inherit or default
10624 to_get_ada_task_ptid.
10625 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10626 TARGET_DEFAULT_FUNC.
10627
10628 2014-02-19 Tom Tromey <tromey@redhat.com>
10629
10630 * target-delegates.c: Rebuild.
10631 * target.c (update_current_target): Don't inherit or default
10632 to_thread_architecture.
10633 * target.h (struct target_ops) <to_thread_architecture>: Use
10634 TARGET_DEFAULT_FUNC.
10635
10636 2014-02-19 Tom Tromey <tromey@redhat.com>
10637
10638 * target-delegates.c: Rebuild.
10639 * target.c (update_current_target): Don't inherit or default
10640 to_execution_direction.
10641 * target.h (struct target_ops) <to_execution_direction>: Use
10642 TARGET_DEFAULT_FUNC.
10643
10644 2014-02-19 Tom Tromey <tromey@redhat.com>
10645
10646 * target-delegates.c: Rebuild.
10647 * target.c (update_current_target): Don't inherit or default
10648 to_can_execute_reverse.
10649 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10650 TARGET_DEFAULT_RETURN.
10651 (target_can_execute_reverse): Unconditionally delegate.
10652
10653 2014-02-19 Tom Tromey <tromey@redhat.com>
10654
10655 * target-delegates.c: Rebuild.
10656 * target.c (update_current_target): Don't inherit or default
10657 to_goto_bookmark.
10658 (dummy_goto_bookmark): Remove.
10659 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10660 * target.h (struct target_ops) <to_goto_bookmark>: Use
10661 TARGET_DEFAULT_NORETURN.
10662
10663 2014-02-19 Tom Tromey <tromey@redhat.com>
10664
10665 * target-delegates.c: Rebuild.
10666 * target.c (update_current_target): Don't inherit or default
10667 to_get_bookmark.
10668 (dummy_get_bookmark): Remove.
10669 (init_dummy_target): Don't inherit or default to_get_bookmark.
10670 * target.h (struct target_ops) <to_get_bookmark>: Use
10671 TARGET_DEFAULT_NORETURN
10672
10673 2014-02-19 Tom Tromey <tromey@redhat.com>
10674
10675 * target-delegates.c: Rebuild.
10676 * target.c (update_current_target): Don't inherit or default
10677 to_make_corefile_notes.
10678 (init_dummy_target): Don't initialize to_make_corefile_notes.
10679 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10680 TARGET_DEFAULT_FUNC.
10681
10682 2014-02-19 Tom Tromey <tromey@redhat.com>
10683
10684 * target-delegates.c: Rebuild.
10685 * target.c (update_current_target): Don't inherit or default
10686 to_find_memory_regions.
10687 (init_dummy_target): Don't initialize to_find_memory_regions.
10688 * target.h (struct target_ops) <to_find_memory_regions>: Use
10689 TARGET_DEFAULT_FUNC.
10690
10691 2014-02-19 Tom Tromey <tromey@redhat.com>
10692
10693 * target-delegates.c: Rebuild.
10694 * target.c (update_current_target): Don't inherit or default
10695 to_log_command.
10696 * target.h (struct target_ops) <to_log_command>: Use
10697 TARGET_DEFAULT_IGNORE.
10698 (target_log_command): Unconditionally delegate.
10699
10700 2014-02-19 Tom Tromey <tromey@redhat.com>
10701
10702 * target-delegates.c: Rebuild.
10703 * target.c (update_current_target): Don't inherit or default
10704 to_pid_to_exec_file.
10705 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10706 TARGET_DEFAULT_RETURN.
10707
10708 2014-02-19 Tom Tromey <tromey@redhat.com>
10709
10710 * target-delegates.c: Rebuild.
10711 * target.c (update_current_target): Don't inherit or default
10712 to_thread_name.
10713 (target_thread_name): Unconditionally delegate.
10714 * target.h (struct target_ops) <to_thread_name>: Use
10715 TARGET_DEFAULT_RETURN.
10716
10717 2014-02-19 Tom Tromey <tromey@redhat.com>
10718
10719 * target-delegates.c: Rebuild.
10720 * target.c (update_current_target): Don't inherit or default
10721 to_extra_thread_info.
10722 * target.h (struct target_ops) <to_extra_thread_info>: Use
10723 TARGET_DEFAULT_RETURN.
10724
10725 2014-02-19 Tom Tromey <tromey@redhat.com>
10726
10727 * target-delegates.c: Rebuild.
10728 * target.c (update_current_target): Don't inherit or default
10729 to_has_exited.
10730 * target.h (struct target_ops) <to_has_exited>: Use
10731 TARGET_DEFAULT_RETURN..
10732
10733 2014-02-19 Tom Tromey <tromey@redhat.com>
10734
10735 * target-delegates.c: Rebuild.
10736 * target.c (update_current_target): Don't inherit or default
10737 to_set_syscall_catchpoint.
10738 (return_one): Remove.
10739 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10740 TARGET_DEFAULT_RETURN.
10741
10742 2014-02-19 Tom Tromey <tromey@redhat.com>
10743
10744 * target-delegates.c: Rebuild.
10745 * target.c (update_current_target): Don't inherit or default
10746 to_insert_exec_catchpoint.
10747 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10748 TARGET_DEFAULT_RETURN.
10749
10750 2014-01-08 Tom Tromey <tromey@redhat.com>
10751
10752 * target-delegates.c: Rebuild.
10753 * target.c (update_current_target): Don't inherit or default
10754 to_insert_exec_catchpoint.
10755 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10756 TARGET_DEFAULT_RETURN.
10757
10758 2014-02-19 Tom Tromey <tromey@redhat.com>
10759
10760 * target-delegates.c: Rebuild.
10761 * target.c (update_current_target): Don't inherit or default
10762 to_remove_vfork_catchpoint.
10763 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10764 TARGET_DEFAULT_RETURN.
10765
10766 2014-02-19 Tom Tromey <tromey@redhat.com>
10767
10768 * target-delegates.c: Rebuild.
10769 * target.c (update_current_target): Don't inherit or default
10770 to_insert_vfork_catchpoint.
10771 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10772 TARGET_DEFAULT_RETURN.
10773
10774 2014-02-19 Tom Tromey <tromey@redhat.com>
10775
10776 * target-delegates.c: Rebuild.
10777 * target.c (update_current_target): Don't inherit or default
10778 to_remove_fork_catchpoint.
10779 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10780 TARGET_DEFAULT_RETURN.
10781
10782 2014-02-19 Tom Tromey <tromey@redhat.com>
10783
10784 * target-delegates.c: Rebuild.
10785 * target.c (update_current_target): Don't inherit or default
10786 to_insert_fork_catchpoint.
10787 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10788 TARGET_DEFAULT_RETURN.
10789
10790 2014-02-19 Tom Tromey <tromey@redhat.com>
10791
10792 * target-delegates.c: Rebuild.
10793 * target.c (update_current_target): Don't inherit or default
10794 to_post_startup_inferior.
10795 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10796 TARGET_DEFAULT_IGNORE.
10797
10798 2014-02-19 Tom Tromey <tromey@redhat.com>
10799
10800 * target-delegates.c: Rebuild.
10801 * target.c (update_current_target): Don't inherit or default
10802 to_load.
10803 * target.h (struct target_ops) <to_load>: Use
10804 TARGET_DEFAULT_NORETURN.
10805
10806 2014-02-19 Tom Tromey <tromey@redhat.com>
10807
10808 * target-delegates.c: Rebuild.
10809 * target.c (update_current_target): Don't inherit or default
10810 to_terminal_info.
10811 * target.h (struct target_ops) <to_terminal_info>: Use
10812 TARGET_DEFAULT_FUNC.
10813
10814 2014-02-19 Tom Tromey <tromey@redhat.com>
10815
10816 * target-delegates.c: Rebuild.
10817 * target.c (update_current_target): Don't inherit or default
10818 to_terminal_save_ours.
10819 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10820 TARGET_DEFAULT_IGNORE.
10821
10822 2014-02-19 Tom Tromey <tromey@redhat.com>
10823
10824 * target-delegates.c: Rebuild.
10825 * target.c (update_current_target): Don't inherit or default
10826 to_terminal_ours.
10827 * target.h (struct target_ops) <to_terminal_ours>: Use
10828 TARGET_DEFAULT_IGNORE.
10829
10830 2014-02-19 Tom Tromey <tromey@redhat.com>
10831
10832 * target-delegates.c: Rebuild.
10833 * target.c (update_current_target): Don't inherit or default
10834 to_terminal_ours_for_output.
10835 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10836 TARGET_DEFAULT_IGNORE.
10837
10838 2014-02-19 Tom Tromey <tromey@redhat.com>
10839
10840 * target-delegates.c: Rebuild.
10841 * target.c (update_current_target): Don't inherit or default
10842 to_terminal_inferior.
10843 * target.h (struct target_ops) <to_terminal_inferior>: Use
10844 TARGET_DEFAULT_IGNORE.
10845
10846 2014-02-19 Tom Tromey <tromey@redhat.com>
10847
10848 * target-delegates.c: Rebuild.
10849 * target.c (update_current_target): Don't inherit or default
10850 to_terminal_init.
10851 * target.h (struct target_ops) <to_terminal_init>: Use
10852 TARGET_DEFAULT_IGNORE.
10853
10854 2014-02-19 Tom Tromey <tromey@redhat.com>
10855
10856 * target-delegates.c: Rebuild.
10857 * target.c (update_current_target): Don't inherit or default
10858 to_can_accel_watchpoint_condition.
10859 * target.h (struct target_ops)
10860 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10861
10862 2014-02-19 Tom Tromey <tromey@redhat.com>
10863
10864 * target-delegates.c: Rebuild.
10865 * target.c (update_current_target): Don't inherit or default
10866 to_region_ok_for_hw_watchpoint.
10867 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10868 Use TARGET_DEFAULT_FUNC.
10869
10870 2014-02-19 Tom Tromey <tromey@redhat.com>
10871
10872 * target-delegates.c: Rebuild.
10873 * target.c (update_current_target): Don't inherit or default
10874 to_watchpoint_addr_within_range.
10875 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10876 Use TARGET_DEFAULT_FUNC.
10877
10878 2014-02-19 Tom Tromey <tromey@redhat.com>
10879
10880 * target-delegates.c: Rebuild.
10881 * target.c (update_current_target): Don't inherit or default
10882 to_remove_watchpoint.
10883 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10884 TARGET_DEFAULT_NORETURN.
10885
10886 2014-02-19 Tom Tromey <tromey@redhat.com>
10887
10888 * target-delegates.c: Rebuild.
10889 * target.c (update_current_target): Don't inherit or default
10890 to_insert_watchpoint.
10891 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10892 TARGET_DEFAULT_RETURN.
10893
10894 2014-02-19 Tom Tromey <tromey@redhat.com>
10895
10896 * target-delegates.c: Rebuild.
10897 * target.c (update_current_target): Don't inherit or default
10898 to_remove_hw_breakpoint.
10899 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10900 TARGET_DEFAULT_RETURN.
10901
10902 2014-02-19 Tom Tromey <tromey@redhat.com>
10903
10904 * target-delegates.c: Rebuild.
10905 * target.c (update_current_target): Don't inherit or default
10906 to_insert_hw_breakpoint.
10907 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10908 TARGET_DEFAULT_RETURN.
10909
10910 2014-02-19 Tom Tromey <tromey@redhat.com>
10911
10912 * target-delegates.c: Rebuild.
10913 * target.c (update_current_target): Don't inherit or default
10914 to_can_use_hw_breakpoint.
10915 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10916 TARGET_DEFAULT_RETURN.
10917
10918 2014-02-19 Tom Tromey <tromey@redhat.com>
10919
10920 * target-delegates.c: Rebuild.
10921 * target.c (update_current_target): Don't inherit or default
10922 to_files_info.
10923 * target.h (struct target_ops) <to_files_info>: Use
10924 TARGET_DEFAULT_IGNORE.
10925
10926 2014-02-19 Tom Tromey <tromey@redhat.com>
10927
10928 * target-delegates.c: Rebuild.
10929 * target.c (update_current_target): Don't inherit or default
10930 to_store.
10931 * target.h (struct target_ops) <to_store>: Use
10932 TARGET_DEFAULT_NORETURN.
10933
10934 2014-02-19 Tom Tromey <tromey@redhat.com>
10935
10936 * target-delegates.c: Rebuild.
10937 * target.c (update_current_target): Don't inherit or default
10938 to_post_attach.
10939 * target.h (struct target_ops) <to_post_attach>: Use
10940 TARGET_DEFAULT_IGNORE.
10941
10942 2014-02-19 Tom Tromey <tromey@redhat.com>
10943
10944 * target-delegates.c: Rebuild.
10945 * target.c (update_current_target): Don't inherit or default
10946 to_rcmd.
10947 (default_rcmd): New function.
10948 (do_monitor_command): Unconditionally delegate.
10949 * target.h (struct target_ops) <to_rmcd>: Use
10950 TARGET_DEFAULT_FUNC.
10951
10952 2014-02-19 Tom Tromey <tromey@redhat.com>
10953
10954 * target-delegates.c: Rebuild.
10955 * target.c (init_dummy_target): Don't initialize to_attach.
10956 (target_attach): Unconditionally delegate.
10957 * target.h (struct target_ops) <to_attach>: Use
10958 TARGET_DEFAULT_FUNC.
10959
10960 2014-02-19 Tom Tromey <tromey@redhat.com>
10961
10962 * target-delegates.c: Rebuild.
10963 * target.c (target_detach): Unconditionally delegate.
10964 (init_dummy_target): Don't initialize to_detach.
10965 * target.h (struct target_ops) <to_detach>: Use
10966 TARGET_DEFAULT_IGNORE.
10967
10968 2014-02-19 Tom Tromey <tromey@redhat.com>
10969
10970 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10971 Add argument.
10972 (target_augmented_libraries_svr4_read): Add argument.
10973 * target.c (update_current_target): Update.
10974 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10975 argument.
10976
10977 2014-02-19 Tom Tromey <tromey@redhat.com>
10978
10979 * target.h (struct target_ops) <to_call_history_range>: Add
10980 argument.
10981 * target.c (target_call_history_range): Add argument.
10982 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10983 argument.
10984 (record_btrace_call_history_from): Update.
10985
10986 2014-02-19 Tom Tromey <tromey@redhat.com>
10987
10988 * target.h (struct target_ops) <to_call_history_from>: Add
10989 argument.
10990 * target.c (target_call_history_from): Add argument.
10991 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10992 argument.
10993
10994 2014-02-19 Tom Tromey <tromey@redhat.com>
10995
10996 * target.h (struct target_ops) <to_call_history>: Add argument.
10997 * target.c (target_call_history): Add argument.
10998 * record-btrace.c (record_btrace_call_history): Add 'self'
10999 argument.
11000
11001 2014-02-19 Tom Tromey <tromey@redhat.com>
11002
11003 * target.h (struct target_ops) <to_insn_history_range>: Add
11004 argument.
11005 * target.c (target_insn_history_range): Add argument.
11006 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11007 argument.
11008 (record_btrace_insn_history_from): Update.
11009
11010 2014-02-19 Tom Tromey <tromey@redhat.com>
11011
11012 * target.h (struct target_ops) <to_insn_history_from>: Add
11013 argument.
11014 * target.c (target_insn_history_from): Add argument.
11015 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11016 argument.
11017
11018 2014-02-19 Tom Tromey <tromey@redhat.com>
11019
11020 * target.h (struct target_ops) <to_insn_history>: Add argument.
11021 * target.c (target_insn_history): Add argument.
11022 * record-btrace.c (record_btrace_insn_history): Add 'self'
11023 argument.
11024
11025 2014-02-19 Tom Tromey <tromey@redhat.com>
11026
11027 * target.h (struct target_ops) <to_goto_record>: Add argument.
11028 * target.c (target_goto_record): Add argument.
11029 * record-full.c (record_full_goto): Add 'self' argument.
11030 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11031
11032 2014-02-19 Tom Tromey <tromey@redhat.com>
11033
11034 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11035 * target.c (target_goto_record_end): Add argument.
11036 * record-full.c (record_full_goto_end): Add 'self' argument.
11037 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11038
11039 2014-02-19 Tom Tromey <tromey@redhat.com>
11040
11041 * target.h (struct target_ops) <to_goto_record_begin>: Add
11042 argument.
11043 * target.c (target_goto_record_begin): Add argument.
11044 * record-full.c (record_full_goto_begin): Add 'self' argument.
11045 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11046 argument.
11047
11048 2014-02-19 Tom Tromey <tromey@redhat.com>
11049
11050 * target.h (struct target_ops) <to_record_is_replaying>: Add
11051 argument.
11052 * target.c (target_record_is_replaying): Add argument.
11053 * record-full.c (record_full_is_replaying): Add 'self' argument.
11054 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11055 argument.
11056 (record_btrace_xfer_partial, record_btrace_store_registers)
11057 (record_btrace_prepare_to_store, record_btrace_resume)
11058 (record_btrace_wait, record_btrace_decr_pc_after_break)
11059 (record_btrace_find_new_threads, record_btrace_thread_alive):
11060 Update.
11061
11062 2014-02-19 Tom Tromey <tromey@redhat.com>
11063
11064 * target.h (struct target_ops) <to_delete_record>: Add argument.
11065 * target.c (target_delete_record): Add argument.
11066 * record-full.c (record_full_delete): Add 'self' argument.
11067
11068 2014-02-19 Tom Tromey <tromey@redhat.com>
11069
11070 * target.h (struct target_ops) <to_save_record>: Add argument.
11071 * target.c (target_save_record): Add argument.
11072 * record-full.c (record_full_save): Add 'self' argument.
11073 (record_full_save): Add 'self' argument.
11074
11075 2014-02-19 Tom Tromey <tromey@redhat.com>
11076
11077 * target.h (struct target_ops) <to_info_record>: Add argument.
11078 * target.c (target_info_record): Add argument.
11079 * record.c (info_record_command): Add argument.
11080 * record-full.c (record_full_info): Add 'self' argument.
11081 * record-btrace.c (record_btrace_info): Add 'self' argument.
11082
11083 2014-02-19 Tom Tromey <tromey@redhat.com>
11084
11085 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11086 * target.c (target_stop_recording): Add argument.
11087 * record.c (record_stop): Add argument.
11088 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11089 argument.
11090
11091 2014-02-19 Tom Tromey <tromey@redhat.com>
11092
11093 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11094 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11095 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11096 argument.
11097 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11098 (_initialize_amd64_linux_nat): Use it.
11099 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11100 (_initialize_i386_linux_nat): Use it.
11101
11102 2014-02-19 Tom Tromey <tromey@redhat.com>
11103
11104 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11105 * target.c (target_teardown_btrace): Add argument.
11106 * remote.c (remote_teardown_btrace): Add 'self' argument.
11107 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11108 argument.
11109 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11110 argument.
11111
11112 2014-02-19 Tom Tromey <tromey@redhat.com>
11113
11114 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11115 * target.c (target_disable_btrace): Add argument.
11116 * remote.c (remote_disable_btrace): Add 'self' argument.
11117 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11118 argument.
11119 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11120 argument.
11121
11122 2014-02-19 Tom Tromey <tromey@redhat.com>
11123
11124 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11125 * target.c (target_enable_btrace): Add argument.
11126 * remote.c (remote_enable_btrace): Add 'self' argument.
11127 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11128 argument.
11129 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11130 argument.
11131
11132 2014-02-19 Tom Tromey <tromey@redhat.com>
11133
11134 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11135 (target_can_use_agent): Add argument.
11136 * target.c (update_current_target): Update.
11137 * remote.c (remote_can_use_agent): Add 'self' argument.
11138 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11139
11140 2014-02-19 Tom Tromey <tromey@redhat.com>
11141
11142 * target.h (struct target_ops) <to_use_agent>: Add argument.
11143 (target_use_agent): Add argument.
11144 * target.c (update_current_target): Update.
11145 * remote.c (remote_use_agent): Add 'self' argument.
11146 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11147
11148 2014-02-19 Tom Tromey <tromey@redhat.com>
11149
11150 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11151 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11152 (target_traceframe_info): Add argument.
11153 * target.c (update_current_target): Update.
11154 * remote.c (remote_traceframe_info): Add 'self' argument.
11155 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11156
11157 2014-02-19 Tom Tromey <tromey@redhat.com>
11158
11159 * target.h (target_static_tracepoint_markers_by_strid): Add
11160 argument.
11161 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11162 'self' argument.
11163 * target.c (update_current_target): Update.
11164 * remote.c (struct target_ops)
11165 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11166 * linux-nat.c (struct target_ops)
11167 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11168
11169 2014-02-19 Tom Tromey <tromey@redhat.com>
11170
11171 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11172 Add argument.
11173 (target_static_tracepoint_marker_at): Add argument.
11174 * target.c (update_current_target): Update.
11175 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11176 argument.
11177
11178 2014-02-19 Tom Tromey <tromey@redhat.com>
11179
11180 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11181 (target_set_permissions): Add argument.
11182 * target.c (update_current_target): Update.
11183 * remote.c (remote_set_permissions): Add 'self' argument.
11184 (remote_start_remote): Update.
11185
11186 2014-02-19 Tom Tromey <tromey@redhat.com>
11187
11188 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11189 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11190 (target_get_tib_address): Add argument.
11191 * target.c (update_current_target): Update.
11192 * remote.c (remote_get_tib_address): Add 'self' argument.
11193
11194 2014-02-19 Tom Tromey <tromey@redhat.com>
11195
11196 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11197 (target_set_trace_notes): Add argument.
11198 * target.c (update_current_target): Update.
11199 * remote.c (remote_set_trace_notes): Add 'self' argument.
11200
11201 2014-02-19 Tom Tromey <tromey@redhat.com>
11202
11203 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11204 argument.
11205 (target_set_trace_buffer_size): Add argument.
11206 * target.c (update_current_target): Update.
11207 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11208
11209 2014-02-19 Tom Tromey <tromey@redhat.com>
11210
11211 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11212 argument.
11213 (target_set_circular_trace_buffer): Add argument.
11214 * target.c (update_current_target): Update.
11215 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11216 argument.
11217
11218 2014-02-19 Tom Tromey <tromey@redhat.com>
11219
11220 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11221 argument.
11222 (target_set_disconnected_tracing): Add argument.
11223 * target.c (update_current_target): Update.
11224 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11225
11226 2014-02-19 Tom Tromey <tromey@redhat.com>
11227
11228 * target.h (struct target_ops)
11229 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11230 (target_get_min_fast_tracepoint_insn_len): Add argument.
11231 * target.c (update_current_target): Update.
11232 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11233 argument.
11234
11235 2014-02-19 Tom Tromey <tromey@redhat.com>
11236
11237 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11238 argument.
11239 (target_get_raw_trace_data): Add argument.
11240 * target.c (update_current_target): Update.
11241 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11242
11243 2014-02-19 Tom Tromey <tromey@redhat.com>
11244
11245 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11246 Add argument.
11247 (target_upload_trace_state_variables): Add argument.
11248 * target.c (update_current_target): Update.
11249 * remote.c (remote_upload_trace_state_variables): Add 'self'
11250 argument.
11251 (remote_start_remote): Update.
11252
11253 2014-02-19 Tom Tromey <tromey@redhat.com>
11254
11255 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11256 argument.
11257 (target_upload_tracepoints): Add argument.
11258 * target.c (update_current_target): Update.
11259 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11260 (remote_start_remote): Update.
11261
11262 2014-02-19 Tom Tromey <tromey@redhat.com>
11263
11264 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11265 (target_save_trace_data): Add argument.
11266 * target.c (update_current_target): Update.
11267 * remote.c (remote_save_trace_data): Add 'self' argument.
11268
11269 2014-02-19 Tom Tromey <tromey@redhat.com>
11270
11271 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11272 argument.
11273 * target.h (struct target_ops)
11274 <to_get_trace_state_variable_value>: Add argument.
11275 (target_get_trace_state_variable_value): Add argument.
11276 * target.c (update_current_target): Update.
11277 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11278 argument.
11279 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11280
11281 2014-02-19 Tom Tromey <tromey@redhat.com>
11282
11283 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11284 * target.h (struct target_ops) <to_trace_find>: Add argument.
11285 (target_trace_find): Add argument.
11286 * target.c (update_current_target): Update.
11287 * remote.c (remote_trace_find): Add 'self' argument.
11288 * ctf.c (ctf_trace_find): Add 'self' argument.
11289
11290 2014-02-19 Tom Tromey <tromey@redhat.com>
11291
11292 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11293 (target_trace_stop): Add argument.
11294 * target.c (update_current_target): Update.
11295 * remote.c (remote_trace_stop): Add 'self' argument.
11296
11297 2014-02-19 Tom Tromey <tromey@redhat.com>
11298
11299 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11300 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11301 argument.
11302 (target_get_tracepoint_status): Add argument.
11303 * target.c (update_current_target): Update.
11304 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11305
11306 2014-02-19 Tom Tromey <tromey@redhat.com>
11307
11308 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11309 * target.h (struct target_ops) <to_get_trace_status>: Add
11310 argument.
11311 (target_get_trace_status): Add argument.
11312 * target.c (update_current_target): Update.
11313 * remote.c (remote_get_trace_status): Add 'self' argument.
11314 (remote_start_remote, remote_can_download_tracepoint): Update.
11315 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11316
11317 2014-02-19 Tom Tromey <tromey@redhat.com>
11318
11319 * target.h (struct target_ops) <to_trace_start>: Add argument.
11320 (target_trace_start): Add argument.
11321 * target.c (update_current_target): Update.
11322 * remote.c (remote_trace_start): Add 'self' argument.
11323
11324 2014-02-19 Tom Tromey <tromey@redhat.com>
11325
11326 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11327 Add argument.
11328 (target_trace_set_readonly_regions): Add argument.
11329 * target.c (update_current_target): Update.
11330 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11331 argument.
11332
11333 2014-02-19 Tom Tromey <tromey@redhat.com>
11334
11335 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11336 argument.
11337 (target_disable_tracepoint): Add argument.
11338 * target.c (update_current_target): Update.
11339 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11340
11341 2014-02-19 Tom Tromey <tromey@redhat.com>
11342
11343 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11344 argument.
11345 (target_enable_tracepoint): Add argument.
11346 * target.c (update_current_target): Update.
11347 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11348
11349 2014-02-19 Tom Tromey <tromey@redhat.com>
11350
11351 * target.h (struct target_ops) <to_download_trace_state_variable>:
11352 Add argument.
11353 (target_download_trace_state_variable): Add argument.
11354 * target.c (update_current_target): Update.
11355 * remote.c (remote_download_trace_state_variable): Add 'self'
11356 argument.
11357
11358 2014-02-19 Tom Tromey <tromey@redhat.com>
11359
11360 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11361 argument.
11362 (target_can_download_tracepoint): Add argument.
11363 * target.c (update_current_target): Update.
11364 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11365
11366 2014-02-19 Tom Tromey <tromey@redhat.com>
11367
11368 * target.h (struct target_ops) <to_download_tracepoint>: Add
11369 argument.
11370 (target_download_tracepoint): Add argument.
11371 * target.c (update_current_target): Update.
11372 * remote.c (remote_download_tracepoint): Add 'self' argument.
11373
11374 2014-02-19 Tom Tromey <tromey@redhat.com>
11375
11376 * target.h (struct target_ops) <to_trace_init>: Add argument.
11377 (target_trace_init): Add argument.
11378 * target.c (update_current_target): Update.
11379 * remote.c (remote_trace_init): Add 'self' argument.
11380
11381 2014-02-19 Tom Tromey <tromey@redhat.com>
11382
11383 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11384 * target.c (target_fileio_readlink): Add argument.
11385 * remote.c (remote_hostio_readlink): Add 'self' argument.
11386 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11387
11388 2014-02-19 Tom Tromey <tromey@redhat.com>
11389
11390 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11391 * target.c (target_fileio_unlink): Add argument.
11392 * remote.c (remote_hostio_unlink): Add 'self' argument.
11393 (remote_file_delete): Update.
11394 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11395
11396 2014-02-19 Tom Tromey <tromey@redhat.com>
11397
11398 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11399 * target.c (target_fileio_close): Add argument.
11400 * remote.c (remote_hostio_close): Add 'self' argument.
11401 (remote_hostio_close_cleanup): Update.
11402 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11403 Update.
11404 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11405
11406 2014-02-19 Tom Tromey <tromey@redhat.com>
11407
11408 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11409 * target.c (target_fileio_pread): Add argument.
11410 * remote.c (remote_hostio_pread): Add 'self' argument.
11411 (remote_bfd_iovec_pread, remote_file_get): Update.
11412 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11413
11414 2014-02-19 Tom Tromey <tromey@redhat.com>
11415
11416 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11417 * target.c (target_fileio_pwrite): Add argument.
11418 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11419 (remote_file_put): Update.
11420 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11421
11422 2014-02-19 Tom Tromey <tromey@redhat.com>
11423
11424 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11425 * target.c (target_fileio_open): Add argument.
11426 * remote.c (remote_hostio_open): Add 'self' argument.
11427 (remote_bfd_iovec_open): Add 'self' argument.
11428 (remote_file_put): Add 'self' argument.
11429 (remote_file_get): Add 'self' argument.
11430 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11431
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11433
11434 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11435 Add argument.
11436 (target_can_run_breakpoint_commands): Add argument.
11437 * target.c (update_current_target): Update.
11438 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11439 argument.
11440 (remote_insert_breakpoint): Add 'self' argument.
11441 (remote_insert_hw_breakpoint): Add 'self' argument.
11442 (remote_can_run_breakpoint_commands): Add 'self' argument.
11443
11444 2014-02-19 Tom Tromey <tromey@redhat.com>
11445
11446 * target.h (struct target_ops)
11447 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11448 (target_supports_evaluation_of_breakpoint_conditions): Add
11449 argument.
11450 * target.c (update_current_target): Update.
11451 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11452 argument.
11453 (remote_insert_breakpoint): Add 'self' argument.
11454 (remote_insert_hw_breakpoint): Add 'self' argument.
11455 (remote_supports_cond_breakpoints): Add 'self' argument.
11456
11457 2014-02-19 Tom Tromey <tromey@redhat.com>
11458
11459 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11460 argument.
11461 (target_supports_string_tracing): Add argument.
11462 * target.c (update_current_target): Update.
11463 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11464
11465 2014-02-19 Tom Tromey <tromey@redhat.com>
11466
11467 * target.h (struct target_ops)
11468 <to_supports_disable_randomization>: Add argument.
11469 * target.c (find_default_supports_disable_randomization): Add
11470 argument.
11471 (target_supports_disable_randomization): Add argument.
11472 (find_default_supports_disable_randomization): Add 'self'
11473 argument.
11474 * remote.c (extended_remote_supports_disable_randomization): Add
11475 'self' argument.
11476 (remote_supports_disable_randomization): Add 'self' argument.
11477 (extended_remote_create_inferior): Update.
11478 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11479 'self' argument.
11480
11481 2014-02-19 Tom Tromey <tromey@redhat.com>
11482
11483 * target.h (struct target_ops)
11484 <to_supports_enable_disable_tracepoint>: Add argument.
11485 (target_supports_enable_disable_tracepoint): Add argument.
11486 * target.c (update_current_target): Update.
11487 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11488 argument.
11489
11490 2014-02-19 Tom Tromey <tromey@redhat.com>
11491
11492 * target.h (struct target_ops) <to_supports_multi_process>: Add
11493 argument.
11494 (target_supports_multi_process): Add argument.
11495 * target.c (update_current_target): Update.
11496 * remote.c (remote_supports_multi_process): Add 'self' argument.
11497 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11498 argument.
11499 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11500 argument.
11501
11502 2014-02-19 Tom Tromey <tromey@redhat.com>
11503
11504 * target.h (struct target_ops) <to_execution_direction>: Add
11505 argument.
11506 (target_execution_direction): Add argument.
11507 * target.c (default_execution_direction): Add 'self' argument.
11508 * record-full.c (record_full_execution_direction): Add 'self'
11509 argument.
11510
11511 2014-02-19 Tom Tromey <tromey@redhat.com>
11512
11513 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11514 argument.
11515 (target_can_execute_reverse): Add argument.
11516 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11517 * record-full.c (record_full_can_execute_reverse): Add 'self'
11518 argument.
11519 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11520 argument.
11521
11522 2014-02-19 Tom Tromey <tromey@redhat.com>
11523
11524 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11525 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11526 argument.
11527 (target_get_ada_task_ptid): Add argument.
11528 * target.c (update_current_target): Update.
11529 (default_get_ada_task_ptid): Add 'self' argument.
11530 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11531 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11532 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11533 argument.
11534 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11535 argument.
11536 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11537 argument.
11538 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11539 argument.
11540 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11541 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11542 argument.
11543
11544 2014-02-19 Tom Tromey <tromey@redhat.com>
11545
11546 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11547 (target_goto_bookmark): Add argument.
11548 * target.c (dummy_goto_bookmark): Add 'self' argument.
11549 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11550
11551 2014-02-19 Tom Tromey <tromey@redhat.com>
11552
11553 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11554 (target_get_bookmark): Add argument.
11555 * target.c (dummy_get_bookmark): Add 'self' argument.
11556 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11557
11558 2014-02-19 Tom Tromey <tromey@redhat.com>
11559
11560 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11561 argument.
11562 (target_make_corefile_notes): Add argument.
11563 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11564 * procfs.c (procfs_make_note_section): Add 'self' argument.
11565 (procfs_make_note_section): Add 'self' argument.
11566 (procfs_make_note_section): Add 'self' argument.
11567 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11568 argument.
11569 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11570 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11571 * exec.c (exec_make_note_section): Add 'self' argument.
11572 (exec_make_note_section): Add 'self' argument.
11573
11574 2014-02-19 Tom Tromey <tromey@redhat.com>
11575
11576 * target.h (struct target_ops) <to_find_memory_regions>: Add
11577 argument.
11578 (target_find_memory_regions): Add argument.
11579 * target.c (dummy_find_memory_regions): Add 'self' argument.
11580 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11581 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11582 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11583 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11584 * exec. (exec_do_find_memory_regions): New global.
11585 (exec_set_find_memory_regions): Rewrite.
11586 (exec_find_memory_regions): New function.
11587 (init_exec_ops): Use exec_find_memory_regions.
11588
11589 2014-02-19 Tom Tromey <tromey@redhat.com>
11590
11591 * target.h (struct target_ops) <to_supports_non_stop>: Add
11592 argument.
11593 * target.c (find_default_supports_non_stop): Add argument.
11594 (target_supports_non_stop): Add argument.
11595 (find_default_supports_non_stop): Add 'self' argument.
11596 * remote.c (remote_supports_non_stop): Add 'self' argument.
11597 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11598
11599 2014-02-19 Tom Tromey <tromey@redhat.com>
11600
11601 * target.h (struct target_ops) <to_log_command>: Add argument.
11602 (target_log_command): Add argument.
11603 * serial.h (serial_log_command): Add 'self' argument.
11604 * serial.c (serial_log_command): Add 'self' argument.
11605
11606 2014-02-19 Tom Tromey <tromey@redhat.com>
11607
11608 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11609 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11610 argument.
11611 (target_pid_to_exec_file): Add argument.
11612 * target.c (debug_to_pid_to_exec_file): Add argument.
11613 (update_current_target): Update.
11614 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11615 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11616 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11617 (linux_handle_extended_wait): Update.
11618 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11619 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11620 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11621 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11622
11623 2014-02-19 Tom Tromey <tromey@redhat.com>
11624
11625 * target.h (struct target_ops) <to_rcmd>: Add argument.
11626 (target_rcmd): Add argument.
11627 * target.c (debug_to_rcmd): Add argument.
11628 (update_current_target, do_monitor_command): Update.
11629 * remote.c (remote_rcmd): Add 'self' argument.
11630 * monitor.c (monitor_rcmd): Add 'self' argument.
11631
11632 2014-02-19 Tom Tromey <tromey@redhat.com>
11633
11634 * windows-nat.c (windows_stop): Add 'self' argument.
11635 * target.h (struct target_ops) <to_stop>: Add argument.
11636 * target.c (target_stop): Add argument.
11637 (debug_to_stop): Add argument.
11638 (update_current_target): Update.
11639 * remote.c (remote_stop): Add 'self' argument.
11640 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11641 (gdbsim_cntrl_c): Update.
11642 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11643 * procfs.c (procfs_stop): Add 'self' argument.
11644 * nto-procfs.c (procfs_stop): Add 'self' argument.
11645 * monitor.c (monitor_stop): Add 'self' argument.
11646 (monitor_open): Update.
11647 * linux-nat.c (linux_nat_stop): Add argument.
11648 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11649 * gnu-nat.c (gnu_stop): Add 'self' argument.
11650 * darwin-nat.c (darwin_stop): Add 'self' argument.
11651
11652 2014-02-19 Tom Tromey <tromey@redhat.com>
11653
11654 * target.h (struct target_ops) <to_thread_name>: Add argument.
11655 * target.c (target_thread_name): Add argument.
11656 (update_current_target): Update.
11657 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11658
11659 2014-02-19 Tom Tromey <tromey@redhat.com>
11660
11661 * target.h (struct target_ops) <to_extra_thread_info>: Add
11662 argument.
11663 (target_extra_thread_info): Add argument.
11664 * target.c (update_current_target): Update.
11665 * remote.c (remote_threads_extra_info): Add 'self' argument.
11666 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11667 argument.
11668 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11669 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11670 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11671 argument.
11672 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11673 argument.
11674 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11675 argument.
11676 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11677 argument.
11678
11679 2014-02-19 Tom Tromey <tromey@redhat.com>
11680
11681 * target.h (struct target_ops) <to_program_signals>: Add argument.
11682 * target.c (target_program_signals): Add argument.
11683 * remote.c (remote_program_signals): Add 'self' argument.
11684
11685 2014-02-19 Tom Tromey <tromey@redhat.com>
11686
11687 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11688 * target.c (target_pass_signals): Add argument.
11689 * remote.c (remote_pass_signals): Add 'self' argument.
11690 (remote_start_remote): Update.
11691 * procfs.c (procfs_pass_signals): Add 'self' argument.
11692 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11693 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11694 (linux_nat_create_inferior, linux_nat_attach): Update.
11695
11696 2014-02-19 Tom Tromey <tromey@redhat.com>
11697
11698 * windows-nat.c (windows_can_run): Add 'self' argument.
11699 * target.h (struct target_ops) <to_can_run>: Add argument.
11700 (target_can_run): Add argument.
11701 * target.c (debug_to_can_run): Add argument.
11702 (update_current_target): Update.
11703 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11704 * inf-child.c (inf_child_can_run): Add 'self' argument.
11705 * go32-nat.c (go32_can_run): Add 'self' argument.
11706
11707 2014-02-19 Tom Tromey <tromey@redhat.com>
11708
11709 * target.h (struct target_ops) <to_has_exited>: Add argument.
11710 (target_has_exited): Add argument.
11711 * target.c (debug_to_has_exited): Add argument.
11712 (update_current_target): Update.
11713
11714 2014-02-19 Tom Tromey <tromey@redhat.com>
11715
11716 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11717 argument.
11718 (target_set_syscall_catchpoint): Add argument.
11719 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11720 argument.
11721 * target.c (update_current_target): Update.
11722
11723 2014-02-19 Tom Tromey <tromey@redhat.com>
11724
11725 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11726 argument.
11727 (target_remove_exec_catchpoint): Add argument.
11728 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11729 (update_current_target): Update.
11730 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11731 argument.
11732
11733 2014-02-19 Tom Tromey <tromey@redhat.com>
11734
11735 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11736 argument.
11737 (target_insert_exec_catchpoint): Add argument.
11738 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11739 (update_current_target): Update.
11740 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11741 argument.
11742
11743 2014-02-19 Tom Tromey <tromey@redhat.com>
11744
11745 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11746 argument.
11747 (target_remove_vfork_catchpoint): Add argument.
11748 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11749 (update_current_target): Update.
11750 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11751 argument.
11752
11753 2014-02-19 Tom Tromey <tromey@redhat.com>
11754
11755 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11756 argument.
11757 (target_insert_vfork_catchpoint): Add argument.
11758 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11759 (update_current_target): Update.
11760 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11761 argument.
11762
11763 2014-02-19 Tom Tromey <tromey@redhat.com>
11764
11765 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11766 argument.
11767 (target_remove_fork_catchpoint): Add argument.
11768 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11769 (update_current_target): Update.
11770 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11771 argument.
11772
11773 2014-02-19 Tom Tromey <tromey@redhat.com>
11774
11775 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11776 argument.
11777 (target_insert_fork_catchpoint): Add argument.
11778 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11779 (update_current_target): Update.
11780 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11781 argument.
11782
11783 2014-02-19 Tom Tromey <tromey@redhat.com>
11784
11785 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11786 argument.
11787 (target_post_startup_inferior): Add argument.
11788 * target.c (debug_to_post_startup_inferior): Add argument.
11789 (update_current_target): Update.
11790 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11791 argument.
11792 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11793 argument.
11794 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11795 argument.
11796 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11797 argument.
11798 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11799 'self' argument.
11800 (super_post_startup_inferior): Likewise.
11801 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11802 'self' argument.
11803 (super_post_startup_inferior): Likewise.
11804 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11805 Add 'self' argument.
11806 (super_post_startup_inferior): Likewise.
11807
11808 2014-02-19 Tom Tromey <tromey@redhat.com>
11809
11810 * target.h (struct target_ops) <to_load>: Add argument.
11811 * target.c (target_load): Add argument.
11812 (debug_to_load): Add argument.
11813 (update_current_target): Update.
11814 * remote.c (remote_load): Add 'self' argument.
11815 * remote-sim.c (gdbsim_load): Add 'self' argument.
11816 * remote-mips.c (mips_load): Add 'self' argument.
11817 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11818 * monitor.c (monitor_load): Add 'self' argument.
11819 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11820
11821 2014-02-19 Tom Tromey <tromey@redhat.com>
11822
11823 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11824 (target_terminal_info): Add argument.
11825 * target.c (debug_to_terminal_info): Add argument.
11826 (default_terminal_info): Likewise.
11827 * inflow.c (child_terminal_info): Add 'self' argument.
11828 * inferior.h (child_terminal_info): Add 'self' argument.
11829 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11830
11831 2014-02-19 Tom Tromey <tromey@redhat.com>
11832
11833 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11834 argument.
11835 (target_terminal_save_ours): Add argument.
11836 * target.c (debug_to_terminal_save_ours): Add argument.
11837 (update_current_target): Update.
11838 * inflow.c (terminal_save_ours): Add 'self' argument.
11839 * inferior.h (terminal_save_ours): Add 'self' argument.
11840
11841 2014-02-19 Tom Tromey <tromey@redhat.com>
11842
11843 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11844 (target_terminal_ours): Add argument.
11845 * target.c (debug_to_terminal_ours): Add argument.
11846 (update_current_target): Update.
11847 * remote.c (remote_terminal_ours): Add 'self' argument.
11848 (remote_close): Update.
11849 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11850 * inflow.c (terminal_ours): Add 'self' argument.
11851 * inferior.h (terminal_ours): Add 'self' argument.
11852 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11853
11854 2014-02-19 Pedro Alves <palves@redhat.com>
11855 Tom Tromey <tromey@redhat.com>
11856
11857 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11858 argument.
11859 (target_terminal_ours_for_output): Add argument.
11860 * target.c (debug_to_terminal_ours_for_output): Add argument.
11861 (update_current_target): Update.
11862 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11863 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11864 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11865
11866 2014-02-19 Tom Tromey <tromey@redhat.com>
11867
11868 * target.h (struct target_ops) <to_terminal_inferior>: Add
11869 argument.
11870 * target.c (target_terminal_inferior): Add argument.
11871 (update_current_target): Update.
11872 * remote.c (remote_terminal_inferior): Add 'self' argument.
11873 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11874 * inflow.c (terminal_inferior): Add 'self' argument.
11875 * inferior.h (terminal_inferior): Add 'self' argument.
11876 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11877 (go32_terminal_inferior): Add 'self' argument.
11878
11879 2014-02-19 Tom Tromey <tromey@redhat.com>
11880
11881 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11882 (target_terminal_init): Add argument.
11883 * target.c (debug_to_terminal_init): Add argument.
11884 (update_current_target): Update.
11885 * inflow.c (terminal_init_inferior): Add 'self' argument.
11886 * inferior.h (terminal_init_inferior): Add 'self' argument.
11887 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11888 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11889
11890 2014-02-19 Tom Tromey <tromey@redhat.com>
11891
11892 * target.h (struct target_ops)
11893 <to_can_accel_watchpoint_condition>: Add argument.
11894 (target_can_accel_watchpoint_condition): Add argument.
11895 * target.c (debug_to_can_accel_watchpoint_condition): Add
11896 argument.
11897 (update_current_target): Update.
11898 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11899 'self' argument.
11900
11901 2014-02-19 Tom Tromey <tromey@redhat.com>
11902
11903 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11904 Add argument.
11905 (target_region_ok_for_hw_watchpoint): Add argument.
11906 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11907 (default_region_ok_for_hw_watchpoint): Add argument.
11908 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11909 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11910 argument.
11911 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11912 argument.
11913 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11914 argument.
11915 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11916 'self' argument.
11917 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11918 'self' argument.
11919 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11920 'self' argument.
11921 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11922 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11923 'self' argument.
11924 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11925 Add 'self' argument.
11926
11927 2014-02-19 Tom Tromey <tromey@redhat.com>
11928
11929 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11930 argument.
11931 (target_insert_watchpoint): Add argument.
11932 * target.c (debug_to_insert_watchpoint): Add argument.
11933 (update_current_target): Update.
11934 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11935 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11936 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11937 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11938 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11939 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11940 argument.
11941 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11942 (procfs_insert_hw_watchpoint): Add 'self' argument.
11943 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11944 argument.
11945 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11946 argument.
11947 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11948 argument.
11949 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11950 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11951 argument.
11952 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11953 'self' argument.
11954
11955 2014-02-19 Tom Tromey <tromey@redhat.com>
11956
11957 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11958 argument.
11959 (target_remove_watchpoint): Add argument.
11960 * target.c (debug_to_remove_watchpoint): Add argument.
11961 (update_current_target): Update.
11962 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11963 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11964 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11965 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11966 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11967 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11968 argument.
11969 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11970 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11971 argument.
11972 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11973 argument.
11974 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11975 argument.
11976 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11977 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11978 argument.
11979 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11980 'self' argument.
11981
11982 2014-02-19 Tom Tromey <tromey@redhat.com>
11983
11984 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11985 argument.
11986 (target_remove_hw_breakpoint): Add argument.
11987 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11988 (update_current_target): Update.
11989 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11990 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11991 argument.
11992 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11993 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11994 argument.
11995 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11996 'self' argument.
11997
11998 2014-02-19 Tom Tromey <tromey@redhat.com>
11999
12000 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12001 argument.
12002 (target_insert_hw_breakpoint): Add argument.
12003 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12004 (update_current_target): Update.
12005 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12006 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12007 argument.
12008 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12009 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12010 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12011 argument.
12012 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12013 'self' argument.
12014
12015 2014-02-19 Tom Tromey <tromey@redhat.com>
12016
12017 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12018 argument.
12019 (target_can_use_hardware_watchpoint): Add argument.
12020 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12021 (update_current_target): Update.
12022 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12023 argument.
12024 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12025 argument.
12026 * remote.c (remote_check_watch_resources): Add 'self' argument.
12027 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12028 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12029 argument.
12030 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12031 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12032 argument.
12033 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12034 argument.
12035 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12036 argument.
12037 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12038 argument.
12039 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12040 argument.
12041 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12042 argument.
12043 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12044 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12045 argument.
12046 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12047 'self' argument.
12048
12049 2014-02-19 Tom Tromey <tromey@redhat.com>
12050
12051 * target.h (struct target_ops) <to_post_attach>: Add argument.
12052 (target_post_attach): Add argument.
12053 * target.c (debug_to_post_attach): Add argument.
12054 (update_current_target): Update.
12055 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12056 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12057 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12058 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12059 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12060
12061 2014-02-19 Tom Tromey <tromey@redhat.com>
12062
12063 * windows-nat.c (windows_close): Add 'self' argument.
12064 * tracepoint.c (tfile_close): Add 'self' argument.
12065 * target.h (struct target_ops) <to_close>: Add argument.
12066 * target.c (target_close): Add argument.
12067 (update_current_target): Update.
12068 * remote.c (remote_close): Add 'self' argument.
12069 * remote-sim.c (gdbsim_close): Add 'self' argument.
12070 * remote-mips.c (mips_close): Add 'self' argument.
12071 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12072 * record-full.c (record_full_close): Add 'self' argument.
12073 * record-btrace.c (record_btrace_close): Add 'self' argument.
12074 * monitor.h (monitor_close): Add 'self' argument.
12075 * monitor.c (monitor_close): Add 'self' argument.
12076 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12077 * linux-nat.c (linux_nat_close): Add argument.
12078 * go32-nat.c (go32_close): Add 'self' argument.
12079 * exec.c (exec_close_1): Add 'self' argument.
12080 * ctf.c (ctf_close): Add 'self' argument.
12081 * corelow.c (core_close): Add 'self' argument.
12082 (core_close_cleanup): Update.
12083 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12084 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12085
12086 2014-02-19 Tom Tromey <tromey@redhat.com>
12087
12088 * remote.c (remote_load): New function.
12089 (init_remote_ops): Use it.
12090
12091 2014-02-19 Tom Tromey <tromey@redhat.com>
12092
12093 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12094 argument.
12095 * common/linux-btrace.h (linux_supports_btrace): Update.
12096 * remote.c (remote_supports_btrace): Add "self" argument.
12097 * target-delegates.c: Rebuild.
12098 * target.c (target_supports_btrace): Remove.
12099 * target.h (struct target_ops) <to_supports_btrace>: Add
12100 target_ops argument.
12101 (target_supports_btrace): New define.
12102
12103 2014-02-19 Tom Tromey <tromey@redhat.com>
12104
12105 * record-full.c (record_full_beneath_to_resume_ops)
12106 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12107 (record_full_beneath_to_wait)
12108 (record_full_beneath_to_store_registers_ops)
12109 (record_full_beneath_to_store_registers)
12110 (record_full_beneath_to_xfer_partial_ops)
12111 (record_full_beneath_to_xfer_partial)
12112 (record_full_beneath_to_insert_breakpoint_ops)
12113 (record_full_beneath_to_insert_breakpoint)
12114 (record_full_beneath_to_remove_breakpoint_ops)
12115 (record_full_beneath_to_remove_breakpoint)
12116 (record_full_beneath_to_stopped_by_watchpoint)
12117 (record_full_beneath_to_stopped_data_address)
12118 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12119 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12120 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12121 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12122 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12123 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12124 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12125 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12126 (record_full_resume, record_full_wait_1)
12127 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12128 (record_full_store_registers, record_full_xfer_partial)
12129 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12130 (record_full_async, record_full_core_xfer_partial): Use target
12131 delegation.
12132 * target-delegates.c: Rebuild.
12133 * target.c (current_xfer_partial): Remove.
12134 (update_current_target): Do not INHERIT or de_fault
12135 to_insert_breakpoint, to_remove_breakpoint,
12136 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12137 to_is_async_p, to_async. Do not set to_xfer_partial field.
12138 (default_xfer_partial): Simplify.
12139 (current_xfer_partial): Remove.
12140 (target_wait, target_resume): Simplify.
12141 (find_default_can_async_p, find_default_is_async_p): Update.
12142 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12143 to_xfer_partial, to_stopped_by_watchpoint,
12144 to_stopped_data_address.
12145 (target_store_registers): Simplify.
12146 (forward_target_remove_breakpoint)
12147 (forward_target_insert_breakpoint): Remove.
12148 (target_remove_breakpoint, target_insert_breakpoint)
12149 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12150 * target.h (struct target_ops) <to_resume, to_wait,
12151 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12152 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12153 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12154 markup.
12155 (forward_target_remove_breakpoint)
12156 (forward_target_insert_breakpoint): Remove.
12157 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12158 directly.
12159 (record_btrace_insert_breakpoint): Delegate directly.
12160
12161 2014-02-19 Tom Tromey <tromey@redhat.com>
12162
12163 PR build/7701:
12164 * target-delegates.c: New file.
12165 * target.c: Include target-delegates.c.
12166 (init_dummy_target): Call install_dummy_methods.
12167 (complete_target_initialization): Call install_delegators.
12168 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12169 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12170 * make-target-delegates: New file.
12171
12172 2014-02-19 Tom Tromey <tromey@redhat.com>
12173
12174 * record.c (find_record_target): Use find_target_at.
12175 * target.c (find_target_at): New function.
12176 * target.h (find_target_at): Declare.
12177
12178 2014-02-19 Tom Tromey <tromey@redhat.com>
12179
12180 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12181 Add 'ops' argument.
12182 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12183 'ops' argument.
12184 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12185 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12186 'ops' argument.
12187 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12188 argument.
12189 * linux-nat.c (save_sigtrap): Update.
12190 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12191 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12192 (linux_nat_close): Update.
12193 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12194 argument.
12195 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12196 argument.
12197 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12198 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12199 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12200 (tmp_to_async): Add 'ops' argument.
12201 (record_full_stopped_by_watchpoint, record_full_async)
12202 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12203 argument.
12204 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12205 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12206 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12207 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12208 (remote_is_async_p, remote_async): Add 'ops' argument.
12209 (remote_stopped_data_address): Update.
12210 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12211 * target.c (update_current_target)
12212 (find_default_can_async_p, find_default_is_async_p): Update.
12213 (init_dummy_target): Update.
12214 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12215 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12216 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12217 (target_can_async_p, target_is_async_p, target_async)
12218 (target_stopped_by_watchpoint): Update.
12219
12220 2014-02-19 Yao Qi <yao@codesourcery.com>
12221
12222 PR gdb/16220
12223 * gdbarch.sh: Remove startup_gdbarch.
12224 * gdbarch.c: Regenerated.
12225 * gdbarch.h: Likewise.
12226
12227 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12228
12229 * rl78-tdep.c (rl78_g10_register_name): New function.
12230 (rl78_return_value): Add g10 support.
12231 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12232 g10.
12233
12234 2014-02-17 Doug Evans <xdje42@gmail.com>
12235
12236 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12237 (SUBDIR_GUILE_SRCS): Ditto.
12238 (scm-gsmob.o): Ditto.
12239
12240 2014-02-17 Yao Qi <yao@codesourcery.com>
12241
12242 * gnu-nat.c (ILL_RPC): Declare defined function.
12243
12244 2014-02-17 Yao Qi <yao@codesourcery.com>
12245
12246 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12247 mach_msg_type_number_t.
12248 (gnu_write_inferior): Likewise.
12249
12250 2014-02-17 Yao Qi <yao@codesourcery.com>
12251
12252 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12253 in format string.
12254 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12255 (inf_validate_procs, inf_signal): Likewise.
12256 (S_exception_raise_request): Likewise.
12257 (do_mach_notify_dead_name): Likewise.
12258 (steal_exc_port): Likewise.
12259 (gnu_read_inferior): Change 'copy_count''s type to
12260 mach_msg_type_number_t.
12261 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12262 format string.
12263
12264 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12265
12266 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12267 flag. Adjust all users; in particular...
12268 (gnu_wait): ..., don't decrement its value in here...
12269 (gnu_create_inferior): ..., and instead set the flag in here,
12270 around the startup_inferior call, and call that one with
12271 START_INFERIOR_TRAPS_EXPECTED.
12272
12273 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12274 (ILL_RPC): ... new macro.
12275 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12276 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12277 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12278 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12279 functions with ILL_RPC macro.
12280 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12281 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12282 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12283 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12284 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12285 (S_proc_getlogin_reply, S_proc_getsid_reply)
12286 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12287 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12288 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12289 (S_proc_getnports_reply, S_proc_is_important_reply)
12290 (S_proc_get_code_reply): New stub functions, generated with
12291 ILL_RPC macro.
12292
12293 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12294 collected the type check structures.
12295
12296 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12297
12298 2014-02-14 Doug Evans <dje@google.com>
12299
12300 * target.c (target_write_partial): Fix result type.
12301
12302 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12303
12304 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12305 the proper offsets to access fpregset_t.
12306
12307 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12308
12309 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12310 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12311 * h8300-tdep.c (setmachinelist): Remove global.
12312 * hppa-tdep.c (hppa_sigtramp): Remove global.
12313 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12314 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12315 * ravenscar-thread.c (update_target_observer): Remove global.
12316 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12317
12318 2014-02-12 Tom Tromey <tromey@redhat.com>
12319
12320 * common/rsp-low.c: Update comments.
12321 * common/rsp-low.h: Update comments.
12322
12323 2014-02-12 Tom Tromey <tromey@redhat.com>
12324
12325 * common/rsp-low.c (convert_ascii_to_int): Remove.
12326 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12327
12328 2014-02-12 Tom Tromey <tromey@redhat.com>
12329
12330 * common/rsp-low.h (unhexify): Don't declare.
12331 * common/rsp-low.c (unhexify): Remove.
12332
12333 2014-02-12 Tom Tromey <tromey@redhat.com>
12334
12335 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12336 * common/rsp-low.c (convert_int_to_ascii): Remove.
12337
12338 2014-02-12 Tom Tromey <tromey@redhat.com>
12339
12340 * common/rsp-low.h (hexify): Don't declare.
12341 * common/rsp-low.c (hexify): Remove.
12342
12343 2014-02-12 Tom Tromey <tromey@redhat.com>
12344
12345 * common/rsp-low.c (hexify): Never take strlen of argument.
12346
12347 2014-02-12 Tom Tromey <tromey@redhat.com>
12348
12349 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12350 * remote.c (extended_remote_run, remote_rcmd)
12351 (remote_download_trace_state_variable, remote_save_trace_data)
12352 (remote_set_trace_notes): Update.
12353 * tracepoint.c (encode_source_string, tfile_write_status)
12354 (tfile_write_uploaded_tsv): Update.
12355
12356 2014-02-12 Tom Tromey <tromey@redhat.com>
12357
12358 * tracepoint.c: Include rsp-low.h.
12359 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12360 * remote.c: Include rsp-low.h.
12361 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12362 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12363 (remote_unescape_input): Move to common/rsp-low.c.
12364 * common/rsp-low.h: New file.
12365 * common/rsp-low.c: New file.
12366 * Makefile.in (SFILES): Add common/rsp-low.c.
12367 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12368 (COMMON_OBS): Add rsp-low.o.
12369 (rsp-low.o): New target.
12370
12371 2014-02-12 Tom Tromey <tromey@redhat.com>
12372
12373 * utils.h: Include print-utils.h.
12374 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12375 (int_string, core_addr_to_string, core_addr_to_string_nz)
12376 (hex_string, hex_string_custom): Don't declare.
12377 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12378 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12379 (hex_string_custom, int_string, core_addr_to_string)
12380 (core_addr_to_string_nz, host_address_to_string): Move to
12381 common/print-utils.c.
12382 * common/print-utils.h: New file.
12383 * common/print-utils.c: New file
12384 * Makefile.in (SFILES): Add common/print-utils.c.
12385 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12386 (COMMON_OBS): Add print-utils.o.
12387 (print-utils.o): New target.
12388
12389 2014-02-12 Tom Tromey <tromey@redhat.com>
12390
12391 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12392
12393 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12394
12395 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12396
12397 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12398
12399 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12400 if a PT_IO ptrace request returns sucessfully but indicates that 0
12401 bytes were transferred.
12402
12403 2014-02-12 Pedro Alves <palves@redhat.com>
12404 Kevin Buettner <kevinb@redhat.com>
12405
12406 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12407 TYPE_INSTANCE_FLAG_CODE_SPACE.
12408
12409 2014-02-12 Pedro Alves <palves@redhat.com>
12410
12411 * h8300-tdep.c (pseudo_from_raw_register)
12412 (raw_from_pseudo_register): New functions.
12413 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12414 them.
12415
12416 2014-02-12 Pedro Alves <palves@redhat.com>
12417
12418 * h8300-tdep.c (h8300_register_sim_regno): New function.
12419 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12420 gdbarch_register_sim_regno hook.
12421
12422 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12423
12424 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12425
12426 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12427
12428 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12429
12430 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12431
12432 * obsd-tdep.h (obsd_init_abi): New prototype.
12433 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12434 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12435 (obsd_init_abi): New functions.
12436 * i386obsd-tdep.c: Include "obsd-tdep.h".
12437 (i386obsd_init_abi): Call obsd_init_abi.
12438 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12439 (amd64obsd_init_abi): Call obsd_init_abi.
12440 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12441 obsd-tdep.c to gdb_target_obs.
12442
12443 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12444
12445 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12446 double float arguments to 16-byte in the argument slots.
12447
12448 2014-02-11 Doug Evans <xdje42@gmail.com>
12449
12450 * configure.ac: Don't crash if pkg-config is not found and guile
12451 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12452 in guile checks.
12453 * configure: Regenerate.
12454
12455 2014-02-11 Yao Qi <yao@codesourcery.com>
12456
12457 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12458 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12459 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12460 * gnu-nat.c (gnu_xfer_memory): Likewise.
12461 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12462 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12463 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12464 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12465
12466 2014-02-11 Yao Qi <yao@codesourcery.com>
12467
12468 * target.h (enum target_xfer_error): Rename to ...
12469 (enum target_xfer_status): ... it. New. All users updated.
12470 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12471 New.
12472 (TARGET_XFER_STATUS_ERROR_P): New macro.
12473 (target_xfer_error_to_string): Remove declaration.
12474 (target_xfer_status_to_string): Declare.
12475 (target_xfer_partial_ftype): Adjust it.
12476 (struct target_ops) <to_xfer_partial>: Return
12477 target_xfer_status. Add argument xfered_len. Update
12478 comments.
12479 * target.c (target_xfer_error_to_string): Rename to ...
12480 (target_xfer_status_to_string): ... it. New. All callers
12481 updated.
12482 (target_read_live_memory): Likewise. Call target_xfer_partial
12483 instead of target_read.
12484 (memory_xfer_live_readonly_partial): Return
12485 target_xfer_status. Add argument xfered_len.
12486 (raw_memory_xfer_partial): Likewise.
12487 (memory_xfer_partial_1): Likewise.
12488 (memory_xfer_partial): Likewise.
12489 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12490 properly. Update debug message.
12491 (default_xfer_partial, current_xfer_partial): Likewise.
12492 (target_write_partial): Likewise.
12493 (target_read_partial): Likewise. All callers updated.
12494 (read_whatever_is_readable): Likewise.
12495 (target_write_with_progress): Likewise.
12496 (target_read_alloc_1): Likewise.
12497
12498 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12499 * auxv.c (procfs_xfer_auxv): Likewise.
12500 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12501 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12502 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12503 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12504 * corefile.c (read_memory): Adjust.
12505 * corelow.c (core_xfer_partial): Likewise.
12506 * ctf.c (ctf_xfer_partial): Likewise.
12507 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12508 updated.
12509 (darwin_xfer_partial): Likewise.
12510 * exec.c (section_table_xfer_memory_partial): Likewise. All
12511 callers updated.
12512 (exec_xfer_partial): Likewise.
12513 * exec.h (section_table_xfer_memory_partial): Update
12514 declaration.
12515 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12516 negative.
12517 (gnu_xfer_partial): Likewise.
12518 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12519 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12520 (ia64_hpux_xfer_solib_got): Likewise.
12521 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12522 type of 'partial_len' to ULONGEST.
12523 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12524 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12525 (linux_nat_xfer_partial): Likewise.
12526 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12527 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12528 * monitor.c (monitor_xfer_memory): Likewise.
12529 (monitor_xfer_partial): Likewise.
12530 * procfs.c (procfs_xfer_partial): Likewise.
12531 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12532 * record-full.c (record_full_xfer_partial): Likewise.
12533 (record_full_core_xfer_partial): Likewise.
12534 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12535 (gdbsim_xfer_partial): Likewise.
12536 * remote.c (remote_write_bytes_aux): Likewise. All callers
12537 updated.
12538 (remote_write_bytes, remote_read_bytes): Likewise. All
12539 callers updated.
12540 (remote_flash_erase): Likewise. All callers updated.
12541 (remote_write_qxfer): Likewise. All callers updated.
12542 (remote_read_qxfer): Likewise. All callers updated.
12543 (remote_xfer_partial): Likewise.
12544 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12545 (rs6000_xfer_shared_libraries): Likewise.
12546 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12547 (sol_thread_xfer_partial): Likewise.
12548 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12549 (sparc_xfer_partial): Likewise.
12550 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12551 updated.
12552 (spu_xfer_partial): Likewise.
12553 * spu-multiarch.c (spu_xfer_partial): Likewise.
12554 * tracepoint.c (tfile_xfer_partial): Likewise.
12555 * windows-nat.c (windows_xfer_memory): Likewise.
12556 (windows_xfer_shared_libraries): Likewise.
12557 (windows_xfer_partial): Likewise.
12558 * valprint.c: Replace 'target_xfer_error' with
12559 'target_xfer_status' in comments.
12560
12561 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12562
12563 Checked in by Joel Brobecker <brobecker@adacore.com>.
12564 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12565
12566 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12567
12568 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12569 function parameters.
12570
12571 2014-02-10 Will Newton <will.newton@linaro.org>
12572
12573 * elfread.c (elf_rel_plt_read): Look for a .got section if
12574 looking up .got.plt fails.
12575 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12576 on address passed to elf_gnu_ifunc_record_cache.
12577 (elf_gnu_ifunc_resolve_addr): Likewise.
12578 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12579
12580 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12581
12582 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12583 (X_RETTURN): New macro.
12584 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12585
12586 * sparc64-tdep.c (sparc64_init_abi): Hook
12587 sparc_in_function_epilogue_p.
12588
12589 2014-02-10 Gary Benson <gbenson@redhat.com>
12590
12591 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12592 Rename name_matcher to symbol_matcher.
12593
12594 2014-02-10 Gary Benson <gbenson@redhat.com>
12595
12596 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12597 Use expand_symtabs_file_matcher_ftype and
12598 expand_symtabs_symbol_matcher_ftype.
12599
12600 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12601
12602 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12603 (struct ada_symbol_cache): New.
12604 (ada_free_symbol_cache): Forward declare.
12605 (struct ada_pspace_data): New.
12606 (ada_pspace_data_handle): New static global.
12607 (get_ada_pspace_data, ada_pspace_data_cleanup)
12608 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12609 (cache_space, cache): Delete, now folded inside struct
12610 ada_pspace_data.
12611 (ada_get_symbol_cache): New function.
12612 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12613 implementation.
12614 (_initialize_ada_language): Remove initialization of cache_space.
12615 Move call to observer_attach_inferior_exit up, grouping it
12616 with the other observer registrations inside this function.
12617 Rename command to be more general. Add call to
12618 register_program_space_data_with_cleanup.
12619
12620 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12621
12622 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12623 ada_new_objfile_observer.
12624 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12625 (_initialize_tasks): Update uses of ada_new_objfile_observer
12626 and ada_tasks_normal_stop_observer.
12627
12628 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12629
12630 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12631 returned by the 'Length attribute to integer.
12632
12633 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12634
12635 * ada-lang.c (_initialize_ada_language): Initialize
12636 cache_space obstack.
12637
12638 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12639
12640 * ada-lang.c (HASH_SIZE): New macro.
12641 (struct cache_entry): New type.
12642 (cache_space, cache): New static globals.
12643 (ada_clear_symbol_cache, find_entry): New functions.
12644 (lookup_cached_symbol, cache_symbol): Implement.
12645 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12646 (_initialize_ada_language): Attach ada_new_objfile_observer
12647 and ada_free_objfile_observer.
12648
12649 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12650
12651 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12652 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12653 struct block * parameter.
12654 (ada_lookup_symbol_list_worker): Constify local variable "block".
12655 Remove cast which is no longer necessary.
12656
12657 2014-02-10 Doug Evans <xdje42@gmail.com>
12658
12659 Add Guile as an extension language.
12660 * NEWS: Mention Guile scripting.
12661 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12662 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12663 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12664 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12665 (CLIBS): Add GUILE_LIBS.
12666 (install-guile): New rule.
12667 (guile.o): New rule.
12668 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12669 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12670 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12671 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12672 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12673 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12674 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12675 * configure.ac: New option --with-guile.
12676 * configure: Regenerate.
12677 * config.in: Regenerate.
12678 * auto-load.c: Remove #include "python/python.h". Add #include
12679 "gdb/section-scripts.h".
12680 (source_section_scripts): Handle Guile scripts.
12681 (_initialize_auto_load): Add name of Guile objfile script to
12682 scripts-directory help text.
12683 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12684 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12685 (struct breakpoint): New member scm_bp_object.
12686 * defs.h (enum command_control_type): New value guile_control.
12687 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12688 "extension.h".
12689 (show_user): Update comment.
12690 (_initialize_cli_cmds): Update help text for "show user". Update help
12691 text for max-user-call-depth.
12692 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12693 "extension.h".
12694 (multi_line_command_p): Add guile_control.
12695 (print_command_lines): Handle guile_control.
12696 (execute_control_command, recurse_read_control_structure): Ditto.
12697 (process_next_line): Recognize "guile" commands.
12698 * disasm.c (gdb_disassemble_info): Make non-static.
12699 * disasm.h: #include "dis-asm.h".
12700 (struct gdbarch): Add forward decl.
12701 (gdb_disassemble_info): Declare.
12702 * extension.c: #include "guile/guile.h".
12703 (extension_languages): Add guile.
12704 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12705 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12706 * gdbtypes.c (get_unsigned_type_max): New function.
12707 (get_signed_type_minmax): New function.
12708 * gdbtypes.h (get_unsigned_type_max): Declare.
12709 (get_signed_type_minmax): Declare.
12710 * guile/README: New file.
12711 * guile/guile-internal.h: New file.
12712 * guile/guile.c: New file.
12713 * guile/guile.h: New file.
12714 * guile/scm-arch.c: New file.
12715 * guile/scm-auto-load.c: New file.
12716 * guile/scm-block.c: New file.
12717 * guile/scm-breakpoint.c: New file.
12718 * guile/scm-disasm.c: New file.
12719 * guile/scm-exception.c: New file.
12720 * guile/scm-frame.c: New file.
12721 * guile/scm-gsmob.c: New file.
12722 * guile/scm-iterator.c: New file.
12723 * guile/scm-lazy-string.c: New file.
12724 * guile/scm-math.c: New file.
12725 * guile/scm-objfile.c: New file.
12726 * guile/scm-ports.c: New file.
12727 * guile/scm-pretty-print.c: New file.
12728 * guile/scm-safe-call.c: New file.
12729 * guile/scm-string.c: New file.
12730 * guile/scm-symbol.c: New file.
12731 * guile/scm-symtab.c: New file.
12732 * guile/scm-type.c: New file.
12733 * guile/scm-utils.c: New file.
12734 * guile/scm-value.c: New file.
12735 * guile/lib/gdb.scm: New file.
12736 * guile/lib/gdb/boot.scm: New file.
12737 * guile/lib/gdb/experimental.scm: New file.
12738 * guile/lib/gdb/init.scm: New file.
12739 * guile/lib/gdb/iterator.scm: New file.
12740 * guile/lib/gdb/printing.scm: New file.
12741 * guile/lib/gdb/types.scm: New file.
12742 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12743 (VPATH): Add $(GUILE_SRCDIR).
12744 (GUILE_DIR): New variable.
12745 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12746 (all): Add stamp-guile dependency.
12747 (stamp-guile): New rule.
12748 (clean-guile, install-guile, uninstall-guile): New rules.
12749 (install-only): Add install-guile dependency.
12750 (uninstall): Add uninstall-guile dependency.
12751 (clean): Add clean-guile dependency.
12752
12753 2014-02-09 Doug Evans <xdje42@gmail.com>
12754
12755 Revert this patch (which I approved, mea culpa).
12756
12757 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12758
12759 * Makefile.in (all-lib): Remove.
12760 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12761
12762 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12763
12764 Fix Python stack corruption.
12765 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12766 gdb_py_longest.
12767
12768 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12769
12770 * Makefile.in (all-lib): Remove.
12771 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12772
12773 2014-02-07 Doug Evans <dje@google.com>
12774
12775 * extension-priv.h (extension_language_script_ops): Add comment.
12776 (extension_language_ops): Add comment.
12777 (active_ext_lang_state): Fix typo in comment.
12778
12779 2014-02-07 Pedro Alves <palves@redhat.com>
12780
12781 PR breakpoints/16292
12782 * infrun.c (handle_signal_stop) <signal arrives while stepping
12783 over a breakpoint>: Switch back to the stepping thread.
12784
12785 2014-02-07 Yao Qi <yao@codesourcery.com>
12786
12787 * target.c (target_xfer_partial): Return zero if LEN is zero.
12788
12789 2014-02-07 Yao Qi <yao@codesourcery.com>
12790
12791 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12792 (ld_so_xfer_auxv): Likewise.
12793 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12794 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12795 * corelow.c (core_xfer_partial): Likewise.
12796 * ctf.c (ctf_xfer_partial): Likewise.
12797 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12798 (darwin_xfer_partial): Likewise.
12799 * exec.c (exec_xfer_partial): Likewise.
12800 * gnu-nat.c (gnu_xfer_partial): Likewise.
12801 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12802 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12803 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12804 * linux-nat.c (linux_xfer_siginfo): Likewise.
12805 (linux_proc_xfer_spu): Likewise.
12806 * procfs.c (procfs_xfer_partial): Likewise.
12807 * record-full.c (record_full_xfer_partial): Likewise.
12808 (record_full_core_xfer_partial): Likewise.
12809 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12810 * remote.c (remote_write_qxfer): Likewise.
12811 (remote_write_qxfer, remote_read_qxfer): Likewise.
12812 (remote_xfer_partial): Likewise.
12813 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12814 (rs6000_xfer_shared_libraries): Likewise.
12815 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12816 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12817 (spu_xfer_partial): Likewise.
12818 * target.c (memory_xfer_partial_1): Likewise.
12819 * tracepoint.c (tfile_xfer_partial): Likewise.
12820 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12821 (windows_xfer_partial): Likewise.
12822
12823 2014-02-07 Yao Qi <yao@codesourcery.com>
12824
12825 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12826 comments.
12827 (core_xfer_shared_libraries_aix): Likewise.
12828 * gdbarch.c, gdbarch.h: Regenerated.
12829 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12830 ULONGEST. Change 'len_avail' type to ULONGEST.
12831 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12832 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12833 declaration.
12834 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12835
12836 2014-02-07 Yao Qi <yao@codesourcery.com>
12837
12838 * corefile.c (memory_error): Get 'exception' from ERR and pass
12839 'exception' to throw_error.
12840
12841 2014-02-06 Doug Evans <xdje42@gmail.com>
12842
12843 * configure.ac (libpython checking): Remove all but python.o from
12844 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12845 * configure: Regenerate.
12846
12847 * Makefile.in (SFILES): Add extension.c.
12848 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12849 (COMMON_OBS): Add extension.o.
12850 * extension.h: New file.
12851 * extension-priv.h: New file.
12852 * extension.c: New file.
12853
12854 * python/python-internal.h: #include "extension.h".
12855 (gdbpy_auto_load_enabled): Declare.
12856 (gdbpy_apply_val_pretty_printer): Declare.
12857 (gdbpy_apply_frame_filter): Declare.
12858 (gdbpy_preserve_values): Declare.
12859 (gdbpy_breakpoint_cond_says_stop): Declare.
12860 (gdbpy_breakpoint_has_cond): Declare.
12861 (void source_python_script_for_objfile): Delete.
12862 * python/python.c: #include "extension-priv.h".
12863 Delete inclusion of "observer.h".
12864 (extension_language_python): Moved here and renamed from
12865 script_language_python in py-auto-load.c.
12866 Redefined to be of type extension_language_defn.
12867 (python_extension_script_ops): New global.
12868 (python_extension_ops): New global.
12869 (struct python_env): New member previous_active.
12870 (restore_python_env): Call restore_active_ext_lang.
12871 (ensure_python_env): Call set_active_ext_lang.
12872 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12873 New arg extlang.
12874 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12875 New arg extlang.
12876 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12877 New arg extlang.
12878 (gdbpy_eval_from_control_command): Renamed from
12879 eval_python_from_control_command, made static. New arg extlang.
12880 (gdbpy_source_script) Renamed from source_python_script, made static.
12881 New arg extlang.
12882 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12883 result to int. New arg extlang.
12884 (gdbpy_source_objfile_script): Renamed from
12885 source_python_script_for_objfile, made static. New arg extlang.
12886 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12887 static. New args extlang, extlang_printers. Change result type to
12888 "void".
12889 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12890 static. New arg extlang. Rename arg printers to extlang_printers
12891 and change type to ext_lang_type_printers *.
12892 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12893 static. Replace argument arg with extlang, extlang_printers.
12894 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12895 (!HAVE_PYTHON, source_python_script): Delete.
12896 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12897 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12898 (!HAVE_PYTHON, start_type_printers): Delete.
12899 (!HAVE_PYTHON, apply_type_printers): Delete.
12900 (!HAVE_PYTHON, free_type_printers): Delete.
12901 (_initialize_python): Delete call to observer_attach_before_prompt.
12902 (finalize_python): Set/restore active extension language.
12903 (gdbpy_finish_initialization) Renamed from
12904 finish_python_initialization, made static. New arg extlang.
12905 (gdbpy_initialized): New function.
12906 * python/python.h: #include "extension.h". Delete #include
12907 "value.h", "mi/mi-cmds.h".
12908 (extension_language_python): Declare.
12909 (GDBPY_AUTO_FILE_NAME): Delete.
12910 (enum py_bt_status): Moved to extension.h and renamed to
12911 ext_lang_bt_status.
12912 (enum frame_filter_flags): Moved to extension.h.
12913 (enum py_frame_args): Moved to extension.h and renamed to
12914 ext_lang_frame_args.
12915 (finish_python_initialization): Delete.
12916 (eval_python_from_control_command): Delete.
12917 (source_python_script): Delete.
12918 (apply_val_pretty_printer): Delete.
12919 (apply_frame_filter): Delete.
12920 (preserve_python_values): Delete.
12921 (gdbpy_script_language_defn): Delete.
12922 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12923 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12924
12925 * auto-load.c: #include "extension.h".
12926 (GDB_AUTO_FILE_NAME): Delete.
12927 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12928 (script_language_gdb): Delete, moved to extension.c and renamed to
12929 extension_language_gdb.
12930 (source_gdb_script_for_objfile): Delete.
12931 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12932 (loaded_script): Change type of language member to
12933 struct extension_language_defn *.
12934 (init_loaded_scripts_info): Initialize
12935 unsupported_script_warning_printed.
12936 (maybe_add_script): Make static. Change type of language arg to
12937 struct extension_language_defn *.
12938 (clear_section_scripts): Reset unsupported_script_warning_printed.
12939 (auto_load_objfile_script_1): Rewrite to use extension language API.
12940 (auto_load_objfile_script): Make public. Remove support-compiled-in
12941 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12942 (source_section_scripts): Rewrite to use extension language API.
12943 (load_auto_scripts_for_objfile): Rewrite to use
12944 auto_load_scripts_for_objfile.
12945 (collect_matching_scripts_data): Change type of language member to
12946 struct extension_language_defn *.
12947 (auto_load_info_scripts): Change type of language arg to
12948 struct extension_language_defn *.
12949 (unsupported_script_warning_print): New function.
12950 (script_not_found_warning_print): Make static.
12951 (_initialize_auto_load): Rewrite construction of scripts-directory
12952 help.
12953 * auto-load.h (struct objfile): Add forward decl.
12954 (struct script_language): Delete.
12955 (struct auto_load_pspace_info): Add forward decl.
12956 (struct extension_language_defn): Add forward decl.
12957 (maybe_add_script): Delete.
12958 (auto_load_objfile_script): Declare.
12959 (script_not_found_warning_print): Delete.
12960 (auto_load_info_scripts): Update prototype.
12961 (auto_load_gdb_scripts_enabled): Declare.
12962 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12963 auto_load_python_scripts_enabled and made public.
12964 (script_language_python): Delete, moved to python.c.
12965 (gdbpy_script_language_defn): Delete.
12966 (info_auto_load_python_scripts): Update to use
12967 extension_language_python.
12968
12969 * breakpoint.c (condition_command): Replace call to
12970 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12971 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12972 with call to breakpoint_ext_lang_cond_says_stop.
12973 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12974 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12975 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12976 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12977 New arg slang.
12978 (local_setattro): Print name of extension language with existing
12979 stop condition.
12980
12981 * valprint.c (val_print, value_print): Update to call
12982 apply_ext_lang_val_pretty_printer.
12983 * cp-valprint.c (cp_print_value): Update call to
12984 apply_ext_lang_val_pretty_printer.
12985 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12986 (gdbpy_apply_val_pretty_printer): Renamed from
12987 apply_val_pretty_printer. New arg extlang.
12988 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12989
12990 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12991 extension language API.
12992 * cli/cli-script.c (execute_control_command): Update to call
12993 eval_ext_lang_from_control_command.
12994
12995 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12996 enum ext_lang_bt_status values. Update call to
12997 apply_ext_lang_frame_filter.
12998 (mi_cmd_stack_list_locals): Ditto.
12999 (mi_cmd_stack_list_args): Ditto.
13000 (mi_cmd_stack_list_variables): Ditto.
13001 * mi/mi-main.c: Delete #include "python/python-internal.h".
13002 Add #include "extension.h".
13003 (mi_cmd_list_features): Replace reference to python internal variable
13004 gdb_python_initialized with call to ext_lang_initialized_p.
13005
13006 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13007 Update to use enum ext_lang_frame_args. Update to call
13008 apply_ext_lang_frame_filter.
13009 * python/py-framefilter.c (extract_sym): Update to use enum
13010 ext_lang_bt_status.
13011 (extract_value, py_print_type, py_print_value): Ditto.
13012 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13013 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13014 (py_print_frame): Ditto.
13015 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13016 New arg extlang. Update to use enum ext_lang_bt_status.
13017
13018 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13019 finish_python_initialization. Replace with call to
13020 finish_ext_lang_initialization.
13021
13022 * typeprint.c (do_free_global_table): Update to call
13023 free_ext_lang_type_printers.
13024 (create_global_typedef_table): Update to call
13025 start_ext_lang_type_printers.
13026 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13027 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13028 (type_print_options): Change type of global_printers from "void *"
13029 to "struct ext_lang_type_printers *".
13030
13031 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13032 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13033 (gdbpy_preserve_values): Renamed from preserve_python_values.
13034 New arg extlang.
13035 (!HAVE_PYTHON, preserve_python_values): Delete.
13036
13037 * utils.c (quit_flag): Delete, moved to extension.c.
13038 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13039 extension.c.
13040
13041 * eval.c: Delete #include "python/python.h".
13042 * main.c: Delete #include "python/python.h".
13043
13044 * defs.h: Update comment.
13045
13046 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13047
13048 GDB 7.7 released.
13049
13050 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13051
13052 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13053 defined.
13054
13055 2014-02-05 Yao Qi <yao@codesourcery.com>
13056
13057 * remote.c (remote_pass_signals): Remove local 'buf' and use
13058 rs->buf.
13059 (remote_program_signals): Likewise.
13060
13061 2014-02-05 Yao Qi <yao@codesourcery.com>
13062
13063 * ctf.c: Include "inferior.h" and "gdbthread.h".
13064 (CTF_PID): A new macro.
13065 (ctf_open): Call inferior_appeared and add_thread_silent.
13066 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13067 (ctf_thread_alive): New function.
13068 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13069
13070 2014-02-05 Yao Qi <yao@codesourcery.com>
13071
13072 Revert this patch:
13073
13074 2013-05-24 Yao Qi <yao@codesourcery.com>
13075
13076 * tracepoint.c (TFILE_PID): Remove.
13077 (tfile_open): Don't add thread and inferior.
13078 (tfile_close): Don't set 'inferior_ptid'. Don't call
13079 exit_inferior_silent.
13080 (tfile_thread_alive): Remove.
13081 (init_tfile_ops): Don't set field 'to_thread_alive' of
13082 tfile_ops.
13083
13084 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13085
13086 * remote.c (remote_start_remote): Call remote_check_symbols even
13087 if only symbol-file (not file) has been given.
13088
13089 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13090
13091 * gdbarch.sh (skip_entrypoint): New callback.
13092 * gdbarch.c, gdbarch.h: Regenerate.
13093 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13094 * infrun.c (fill_in_stop_func): Likewise.
13095 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13096 (ppc_elfv2_elf_make_msymbol_special): New function.
13097 (ppc_elfv2_skip_entrypoint): Likewise.
13098 (ppc_linux_init_abi): Install them for ELFv2.
13099
13100 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13101
13102 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13103 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13104 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13105 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13106 structures returned in GPRs.
13107
13108 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13109
13110 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13111 offset to the stack parameter list for the ELFv2 ABI.
13112
13113 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13114
13115 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13116 set_gdbarch_convert_from_func_ptr_addr and
13117 set_gdbarch_elf_make_msymbol_special for ELFv1.
13118 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13119 function descriptors on ELFv1.
13120 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13121 set up r12 at function entry.
13122
13123 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13124
13125 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13126 (struct gdbarch_tdep): New member elf_abi.
13127
13128 * rs6000-tdep.c: Include "elf/ppc64.h".
13129 (rs6000_gdbarch_init): Detect ELF ABI version.
13130
13131 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13132
13133 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13134 within a register pair holding a DFP 128-bit value on little-endian.
13135 (ppc64_sysv_abi_return_value_base): Likewise.
13136 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13137 (dfp_pseudo_register_write): Likewise.
13138
13139 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13140
13141 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13142 offset on little-endian when passing _Decimal32.
13143 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13144
13145 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13146
13147 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13148 of the overlapped FP register within the VSX register on little-
13149 endian platforms.
13150 (efpr_pseudo_register_write): Likewise.
13151
13152 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13153
13154 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13155 offset on little-endian when passing small structures.
13156
13157 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13158
13159 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13160 (struct ppc64_sysv_argpos): New data structure.
13161 (ppc64_sysv_abi_push_float): Remove.
13162 (ppc64_sysv_abi_push_val): New function.
13163 (ppc64_sysv_abi_push_integer): Likewise.
13164 (ppc64_sysv_abi_push_freg): Likewise.
13165 (ppc64_sysv_abi_push_vreg): Likewise.
13166 (ppc64_sysv_abi_push_param): Likewise.
13167 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13168 (ppc64_sysv_abi_return_value_base): New function.
13169 (ppc64_sysv_abi_return_value): Refactor to use it.
13170
13171 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13172
13173 * NEWS: Document new target powerpc64le-*-linux*.
13174
13175 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13176
13177 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13178 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13179 core dumps.
13180 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13181 register set used in ELF core dumps. Add floating-point register set.
13182
13183 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13184
13185 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13186 dwarf2_to_gdb[] table using symbolic constants. Adjust
13187 penultimate entry from number representing the PC register
13188 to symbolic constant representing the MDR register. Add
13189 constant for the PC register to the end of the table.
13190
13191 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13192
13193 * bsd-kvm.c: Include <sys/param.h>
13194
13195 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13196
13197 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13198
13199 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13200
13201 * ada-lang.h (clear_ada_sym_cache): Delete.
13202
13203 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13204
13205 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13206
13207 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13208
13209 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13210 the sigreturn register save area only if the syscall is
13211 sigreturn.
13212
13213 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13214
13215 * valops.c (value_slice): Minor reformatting.
13216
13217 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13218
13219 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13220
13221 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13222
13223 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13224 New static globals.
13225 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13226 (ada_ignore_descriptive_types_p): New static global.
13227 (find_parallel_type_by_descriptive_type): Return immediately
13228 if ada_ignore_descriptive_types_p is set.
13229 (_initialize_ada_language): Register new commands "maintenance
13230 set ada", "maintenance show ada", "maintenance set ada
13231 ignore-descriptive-types" and "maintenance show ada
13232 ignore-descriptive-types".
13233 * NEWS: Add entry for new "maint ada set/show
13234 ignore-descriptive-types" commands.
13235
13236 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13237
13238 * record-btrace.c (record_btrace_close): Call btrace_teardown
13239 for all threads.
13240
13241 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13242
13243 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13244 "ui-out.h".
13245
13246 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13247
13248 * ada-typeprint (type_is_full_subrange_of_target_type):
13249 New function.
13250 (print_range): Add parameter bounds_prefered_p. If not set,
13251 try printing range types using the name of their base type.
13252 (print_range_type): Add parameter bounds_prefered_p.
13253 Use it in call to print_range.
13254 (print_array_type, ada_print_type): Update calls to print_range
13255 and print_range_type.
13256
13257 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13258
13259 * ada-typeprint.c (print_array_type, print_choices, print_range)
13260 (print_range_bound, print_dynamic_range_bound, print_range_type):
13261 Remove declaration.
13262
13263 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13264
13265 * ada-typeprint.c (print_range): Add missing empty line
13266 after local declaration.
13267
13268 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13269
13270 * ada-valprint.c (print_optional_low_bound): Get index_type's
13271 target type for as long as it is a TYPE_CODE_RANGE.
13272
13273 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13274
13275 * procfs.c (procfs_make_note_section): Remove assertion and
13276 associated comment.
13277
13278 2014-01-24 Yao Qi <yao@codesourcery.com>
13279
13280 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13281 * corelow.c (get_core_siginfo): Likewise.
13282
13283 2014-01-24 Yao Qi <yao@codesourcery.com>
13284
13285 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13286 ULONGEST. Don't check 'len' is negative.
13287 (remote_write_bytes): Change type of 'len' to ULONGEST.
13288
13289 2014-01-23 Tom Tromey <tromey@redhat.com>
13290
13291 PR python/16485:
13292 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13293 Handle exception from frame.block.
13294 (FrameVars.fetch_frame_locals): Likewise.
13295
13296 2014-01-23 Tom Tromey <tromey@redhat.com>
13297
13298 PR python/16487:
13299 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13300 on a NULL pointer. Move "goto error" to correct place.
13301
13302 2014-01-23 Tom Tromey <tromey@redhat.com>
13303
13304 PR python/16491:
13305 * python/py-framefilter.c (apply_frame_filter): Call
13306 ensure_python_env after computing gdbarch.
13307
13308 2014-01-23 Yao Qi <yao@codesourcery.com>
13309
13310 * target.c (raw_memory_xfer_partial): Change argument type
13311 from void * to gdb_byte *.
13312 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13313
13314 2014-01-22 Doug Evans <dje@google.com>
13315
13316 New gdbserver option --debug-format=timestamp.
13317 * NEWS: Mention it.
13318
13319 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13320
13321 * syscalls/s390x-linux.xml: New file.
13322 * syscalls/s390-linux.xml: New file.
13323 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13324 (XML_SYSCALL_FILENAME_S390X): Likewise.
13325 (op_svc): New enum value for SVC opcode.
13326 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13327 (s390_linux_get_syscall_number): New function.
13328 (s390_gdbarch_init): Register '*get_syscall_number' and the
13329 syscall xml file name.
13330 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13331 "s390-linux.xml" and "s390x-linux.xml".
13332 * NEWS: Announce new feature.
13333
13334 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13335
13336 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13337
13338 2014-01-22 Pedro Alves <palves@redhat.com>
13339
13340 * xtensa-config.c: Include defs.h.
13341
13342 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13343
13344 * common/common-utils.h: Add "ARI:" comment beside __func__
13345 reference.
13346
13347 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13348
13349 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13350 documentation a bit.
13351
13352 2014-01-21 Roland McGrath <mcgrathr@google.com>
13353
13354 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13355 * configure: Regenerate.
13356 * aclocal.m4: Regenerate.
13357 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13358 New substituted variables.
13359 (install-strip): New target.
13360 (INSTALL_SCRIPT): New substituted variable.
13361 (FLAGS_TO_PASS): Add it.
13362 (install-only): Use $(INSTALL_SCRIPT) rather than
13363 $(INSTALL_PROGRAM) for gcore.
13364
13365 2014-01-20 Tom Tromey <tromey@redhat.com>
13366
13367 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13368 together.
13369
13370 2014-01-20 Tom Tromey <tromey@redhat.com>
13371
13372 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13373 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13374 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13375 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13376 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13377 (struct cmd_list_element) <flags>: Remove.
13378 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13379 doc_allocated>: New fields.
13380 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13381 bitfields.
13382 * maint.c (maintenance_do_deprecate): Update.
13383 * top.c (execute_command): Update.
13384
13385 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13386
13387 * xtensa-linux-nat.c: Include asm/ptrace.h.
13388
13389 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13390
13391 * Makefile.in (SFILES): Add d-support.c.
13392 (COMMON_OBS): Add d-support.o.
13393 * d-lang.h (d_parse_symbol): Add comment, now defined in
13394 d-support.c.
13395 * d-lang.c (parse_call_convention)
13396 (parse_attributes, parse_function_types)
13397 (parse_function_args, parse_type, parse_identifier)
13398 (call_convention_p, d_parse_symbol): Move functions to ...
13399 * d-support.c: ... New file.
13400
13401 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13402
13403 * d-lang.h (d_parse_symbol): Add declaration.
13404 * d-lang.c (extract_identifiers)
13405 (extract_type_info): Remove functions.
13406 (parse_call_convention, parse_attributes)
13407 (parse_function_types, parse_function_args)
13408 (parse_type, parse_identifier, call_convention_p)
13409 (d_parse_symbol): New functions.
13410 (d_demangle): Use d_parse_symbol to demangle D symbols.
13411
13412 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13413
13414 * d-lang.h (struct builtin_d_type): New data type.
13415 (builtin_d_type): Add declaration.
13416 * d-lang.c (d_language_arch_info, build_d_types)
13417 (builtin_d_type): New functions.
13418 (enum d_primitive_types): New data type.
13419 (d_language_defn): Change c_language_arch_info to
13420 d_language_arch_info.
13421 (d_type_data): New static variable.
13422 (_initialize_d_language): Initialize d_type_data.
13423
13424 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13425
13426 * d-lang.h (d_main_name): Add declaration.
13427 * d-lang.c (d_main_name): New function.
13428 * symtab.c (find_main_name): Add call to d_main_name.
13429
13430 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13431
13432 * d-lang.c (d_language_defn): Change macro_expansion_c to
13433 macro_expansion_no.
13434
13435 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13436
13437 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13438
13439 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13440
13441 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13442 gdb_exception" declaration.
13443 * remote.c (getpkt_or_notif_sane): Likewise.
13444
13445 2014-01-17 Doug Evans <dje@google.com>
13446
13447 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13448 function, contents of dirnames_to_char_ptr_vec_append moved here.
13449 (delim_string_to_char_ptr_vec): New function.
13450 (dirnames_to_char_ptr_vec_append): Rewrite.
13451 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13452
13453 2014-01-17 Doug Evans <dje@google.com>
13454
13455 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13456 and moved here ...
13457 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13458 #include "common-utils.h".
13459 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13460 * common/vec.h (VEC_ASSERT_PASS): Update.
13461 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13462 (MACH_CHECK_ERROR): Update.
13463
13464 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13465
13466 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13467 comments.
13468 * gdbarch.h: Regenerate.
13469
13470 2014-01-16 Tom Tromey <tromey@redhat.com>
13471
13472 * value.c (struct value) <regnum>: Move earlier.
13473
13474 2014-01-16 Tom Tromey <tromey@redhat.com>
13475
13476 * remote.c (extended_remote_create_inferior): Rename from
13477 extended_remote_create_inferior_1. Add "ops" argument. Remove
13478 old implementation.
13479
13480 2014-01-16 Pedro Alves <palves@redhat.com>
13481
13482 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13483 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13484 the backchain.
13485
13486 2014-01-16 Doug Evans <dje@google.com>
13487
13488 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13489
13490 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13491
13492 * btrace.h (btrace_thread_flag): New.
13493 (struct btrace_thread_info) <flags>: New.
13494 * record-btrace.c (record_btrace_resume_thread)
13495 (record_btrace_find_thread_to_move, btrace_step_no_history)
13496 (btrace_step_stopped, record_btrace_start_replaying)
13497 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13498 (record_btrace_find_resume_thread): New.
13499 (record_btrace_resume, record_btrace_wait): Extend.
13500 (record_btrace_can_execute_reverse): New.
13501 (record_btrace_open): Fail in non-stop mode.
13502 (record_btrace_set_replay): Split into this, ...
13503 (record_btrace_stop_replaying): ... this, ...
13504 (record_btrace_clear_histories): ... and this.
13505 (init_record_btrace_ops): Init to_can_execute_reverse.
13506 * NEWS: Announce it.
13507
13508 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13509
13510 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13511 (forward_target_decr_pc_after_break)
13512 (target_decr_pc_after_break): New.
13513 * target.c (forward_target_decr_pc_after_break)
13514 (target_decr_pc_after_break): New.
13515 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13516 instead of gdbarch_decr_pc_after_break.
13517 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13518 instead of gdbarch_decr_pc_after_break.
13519 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13520 instead of gdbarch_decr_pc_after_break.
13521 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13522 instead of gdbarch_decr_pc_after_break.
13523 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13524 instead of gdbarch_decr_pc_after_break.
13525 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13526 instead of gdbarch_decr_pc_after_break.
13527
13528 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13529
13530 * btrace.c: Include regcache.h.
13531 (btrace_add_pc): New.
13532 (btrace_enable): Call btrace_add_pc.
13533 (btrace_is_empty): New.
13534 * btrace.h (btrace_is_empty): New.
13535 * record-btrace.c (require_btrace, record_btrace_info): Call
13536 btrace_is_empty.
13537
13538 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13539
13540 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13541 Support delta reads.
13542 (linux_disable_btrace): Change return type.
13543 * common/linux-btrace.h (linux_read_btrace): Change parameters
13544 and return type to allow error reporting. Update users.
13545 (linux_disable_btrace): Change return type. Update users.
13546 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13547 New.
13548 (btrace_error): New.
13549 (btrace_block) <begin>: Comment on BEGIN == 0.
13550 * btrace.c (btrace_compute_ftrace): Start from the end of
13551 the current trace.
13552 (btrace_stitch_trace, btrace_clear_history): New.
13553 (btrace_fetch): Read delta trace, return if replaying.
13554 (btrace_clear): Move clear history code to btrace_clear_history.
13555 (parse_xml_btrace): Throw an error if parsing failed.
13556 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13557 and return type to allow error reporting.
13558 (target_read_btrace): Change parameters and return type to allow
13559 error reporting.
13560 * target.c (target_read_btrace): Update.
13561 * remote.c (remote_read_btrace): Support delta reads. Pass
13562 errors on.
13563 * NEWS: Announce it.
13564
13565 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13566
13567 * record.h (record_btrace_frame_unwind)
13568 (record_btrace_tailcall_frame_unwind): New declarations.
13569 * dwarf2-frame: Include record.h
13570 (dwarf2_frame_cfa): Throw an error for btrace frames.
13571 * record-btrace.c: Include hashtab.h.
13572 (btrace_get_bfun_name): New.
13573 (btrace_call_history): Call btrace_get_bfun_name.
13574 (struct btrace_frame_cache): New.
13575 (bfcache): New.
13576 (bfcache_hash, bfcache_eq, bfcache_new): New.
13577 (btrace_get_frame_function): New.
13578 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13579 (record_btrace_frame_this_id): Compute own id.
13580 (record_btrace_frame_prev_register): Provide PC, throw_error
13581 for all other registers.
13582 (record_btrace_frame_sniffer): Detect btrace frames.
13583 (record_btrace_tailcall_frame_sniffer): New.
13584 (record_btrace_frame_dealloc_cache): New.
13585 (record_btrace_frame_unwind): Add new functions.
13586 (record_btrace_tailcall_frame_unwind): New.
13587 (_initialize_record_btrace): Allocate cache.
13588 * btrace.c (btrace_clear): Call reinit_frame_cache.
13589 * NEWS: Announce it.
13590
13591 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13592
13593 * record-btrace.c (record_btrace_set_replay)
13594 (record_btrace_goto_begin, record_btrace_goto_end)
13595 (record_btrace_goto): New.
13596 (init_record_btrace_ops): Initialize them.
13597 * NEWS: Announce it.
13598
13599 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13600
13601 * record-btrace.c (record_btrace_find_new_threads)
13602 (record_btrace_thread_alive): New.
13603 (init_record_btrace_ops): Initialize to_find_new_threads and
13604 to_thread_alive.
13605
13606 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13607
13608 * record-btrace.c (record_btrace_resume): New.
13609 (record_btrace_wait): New.
13610 (init_record_btrace_ops): Initialize to_wait and to_resume.
13611
13612 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13613
13614 * record-btrace.c (record_btrace_xfer_partial)
13615 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13616 (record_btrace_allow_memory_access): New.
13617 (init_record_btrace_ops): Initialize new methods.
13618 * target.c (raw_memory_xfer_partial): Bail out if target reports
13619 that this memory is not available.
13620
13621 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13622
13623 * target.h (target_ops) <to_insert_breakpoint>
13624 <to_remove_breakpoint>: Add target_ops parameter.
13625 (forward_target_insert_breakpoint): New.
13626 (forward_target_remove_breakpoint): New.
13627 (memory_remove_breakpoint, memory_insert_breakpoint):
13628 Add target_ops parameter.
13629 * target.c (target_insert_breakpoint): Split into this and ...
13630 (forward_target_insert_breakpoint): ... this.
13631 (target_remove_breakpoint): Split into this and ...
13632 (forward_target_remove_breakpoint): ... this.
13633 (debug_to_insert_breakpoint): Add target_ops parameter.
13634 Call forward_target_insert_breakpoint.
13635 (debug_to_remove_breakpoint): Add target_ops parameter.
13636 Call forward_target_remove_breakpoint.
13637 (update_current_target): Do not inherit or default to_insert_breakpoint
13638 and to_remove_breakpoint.
13639 * corelow.c (ignore): Add target_ops parameter.
13640 * exec.c (ignore): Add target_ops parameter.
13641 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13642 Add target_ops parameter.
13643 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13644 Add target_ops parameter.
13645 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13646 Add target_ops parameter.
13647 * record-full.c (record_full_beneath_to_insert_breakpoint)
13648 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13649 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13650 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13651 (record_full_core_remove_breakpoint): Add target_ops parameter.
13652 Update users.
13653 (record_full_beneath_to_insert_breakpoint_ops)
13654 (record_full_beneath_to_remove_breakpoint_ops)
13655 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13656 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13657 tmp_to_remove_breakpoint_ops,
13658 record_full_beneath_to_insert_breakpoint_ops, and
13659 record_full_beneath_to_remove_breakpoint_ops.
13660 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13661 (m32r_remove_breakpoint): Add target_ops parameter.
13662 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13663 Add target_ops parameter.
13664 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13665 Add target_ops parameter.
13666
13667 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13668 Markus Metzger <markus.t.metzger@intel.com>
13669
13670 * record-btrace.c: Include frame-unwind.h.
13671 (record_btrace_frame_unwind_stop_reason)
13672 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13673 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13674 New.
13675 (init_record_btrace_ops): Install it.
13676
13677 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13678
13679 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13680 get_prev_frame_1.
13681
13682 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13683
13684 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13685 earlier.
13686
13687 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13688
13689 * frame-unwind.c: Include target.h.
13690 (frame_unwind_try_unwinder): New function with code from ...
13691 (frame_unwind_find_by_frame): ... here. New variable
13692 unwinder_from_target, call also target_get_unwinder)
13693 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13694 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13695 * target.h (struct target_ops): New fields to_get_unwinder and
13696 to_get_tailcall_unwinder.
13697 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13698
13699 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13700
13701 * record-btrace.c (record_btrace_fetch_registers)
13702 (record_btrace_store_registers)
13703 (record_btrace_to_prepare_to_store): New.
13704 (init_record_btrace_ops): Add the above.
13705
13706 2014-01-16 Tom Tromey <tromey@redhat.com>
13707
13708 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13709 * target.h (struct target_ops) <to_prepare_to_store>: Add
13710 argument.
13711 (target_prepare_to_store): Add argument.
13712 * target.c (debug_to_prepare_to_store): Add argument.
13713 (update_current_target): Update.
13714 * remote.c (remote_prepare_to_store): Add 'self' argument.
13715 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13716 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13717 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13718 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13719 argument.
13720 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13721 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13722 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13723 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13724 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13725
13726 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13727
13728 * btrace.h (replay) <replay>: New.
13729 (btrace_is_replaying): New.
13730 * btrace.c (btrace_clear): Free replay iterator.
13731 (btrace_is_replaying): New.
13732 * record-btrace.c (record_btrace_is_replaying): New.
13733 (record_btrace_info): Print insn number if replaying.
13734 (record_btrace_insn_history): Start at replay position.
13735 (record_btrace_call_history): Start at replay position.
13736 (init_record_btrace_ops): Init to_record_is_replaying.
13737
13738 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13739
13740 * record-btrace.c (record_btrace_insn_history_range): Include
13741 end.
13742 (record_btrace_insn_history_from): Adjust range.
13743 (record_btrace_call_history_range): Include
13744 end.
13745 (record_btrace_call_history_from): Adjust range.
13746 * NEWS: Announce changes.
13747
13748 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13749
13750 * record.h (enum record_print_flag)
13751 <record_print_indent_calls>: New.
13752 * record.c (get_call_history_modifiers): Recognize /c modifier.
13753 (_initialize_record): Document /c modifier.
13754 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13755 Reorder fields. Optionally indent the function name. Update
13756 all users.
13757 * NEWS: Announce changes.
13758
13759 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13760
13761 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13762
13763 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13764
13765 * btrace.c (ftrace_new_function): Start counting at one.
13766 * record-btrace.c (record_btrace_info): Adjust number of calls
13767 and insns.
13768 * NEWS: Announce it.
13769
13770 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13771
13772 * record-btrace.c (btrace_call_history_insn_range): Print
13773 insn range as [begin, end].
13774
13775 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13776
13777 * btrace.h (struct btrace_func_link): New.
13778 (enum btrace_function_flag): New.
13779 (struct btrace_inst): Rename to ...
13780 (struct btrace_insn): ...this. Update all users.
13781 (struct btrace_func) <ibegin, iend>: Remove.
13782 (struct btrace_func_link): New.
13783 (struct btrace_func): Rename to ...
13784 (struct btrace_function): ...this. Update all users.
13785 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13786 (number, level, flags>: New.
13787 (struct btrace_insn_iterator): Rename to ...
13788 (struct btrace_insn_history): ...this.
13789 Update all users.
13790 (struct btrace_insn_iterator, btrace_call_iterator): New.
13791 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13792 (struct btrace_target_info) <begin, end, level>
13793 <insn_history, call_history>: New.
13794 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13795 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13796 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13797 (btrace_call_number, btrace_call_begin, btrace_call_end)
13798 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13799 (btrace_find_function_by_number, btrace_set_insn_history)
13800 (btrace_set_call_history): New.
13801 * btrace.c (btrace_init_insn_iterator)
13802 (btrace_init_func_iterator, compute_itrace): Remove.
13803 (ftrace_print_function_name, ftrace_print_filename)
13804 (ftrace_skip_file): Change
13805 parameter to const.
13806 (ftrace_init_func): Remove.
13807 (ftrace_debug): Use new btrace_function fields.
13808 (ftrace_function_switched): Also consider gaining and
13809 losing symbol information).
13810 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13811 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13812 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13813 New.
13814 (ftrace_new_function): Move. Remove debug print.
13815 (ftrace_update_lines, ftrace_update_insns): New.
13816 (ftrace_update_function): Check for call, ret, and jump.
13817 (compute_ftrace): Renamed to ...
13818 (btrace_compute_ftrace): ...this. Rewritten to compute call
13819 stack.
13820 (btrace_fetch, btrace_clear): Updated.
13821 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13822 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13823 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13824 (btrace_call_number, btrace_call_begin, btrace_call_end)
13825 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13826 (btrace_find_function_by_number, btrace_set_insn_history)
13827 (btrace_set_call_history): New.
13828 * record-btrace.c (require_btrace): Use new btrace thread
13829 info fields.
13830 (record_btrace_info, btrace_insn_history)
13831 (record_btrace_insn_history, record_btrace_insn_history_range):
13832 Use new btrace thread info fields and new iterator.
13833 (btrace_func_history_src_line): Rename to ...
13834 (btrace_call_history_src_line): ...this. Use new btrace
13835 thread info fields.
13836 (btrace_func_history): Rename to ...
13837 (btrace_call_history): ...this. Use new btrace thread info
13838 fields and new iterator.
13839 (record_btrace_call_history, record_btrace_call_history_range):
13840 Use new btrace thread info fields and new iterator.
13841
13842 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13843
13844 * frame.h (frame_id_build_unavailable_stack_special): New.
13845 * frame.c (frame_id_build_unavailable_stack_special): New.
13846
13847 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13848
13849 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13850 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13851 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13852 to gdbarch.
13853 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13854 (i386_insn_is_jump, i386_jmp_p): New.
13855 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13856 insn_is_jump to gdbarch.
13857 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13858 * gdbarch.h: Regenerated.
13859 * gdbarch.c: Regenerated.
13860 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13861 (default_insn_is_jump): New.
13862 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13863 (default_insn_is_jump): New.
13864
13865 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13866
13867 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13868 Change to ...
13869 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13870 (btrace_read_type) <btrace_read_new>: Change to ...
13871 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13872
13873 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13874
13875 * common/linux-btrace.c (linux_read_btrace): Free trace from
13876 previous iteration.
13877
13878 2014-01-15 Doug Evans <dje@google.com>
13879
13880 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13881 uint32_t.
13882
13883 2014-01-15 Tom Tromey <tromey@redhat.com>
13884
13885 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13886 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13887 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13888 (set_objfile_main_name): New function.
13889 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13890 language_of_main>: New fields.
13891 (set_objfile_main_name): Declare.
13892 * symtab.c (find_main_name): Loop over objfiles to find the main
13893 name and language.
13894 (set_main_name): Now static.
13895 (get_main_info): Add comment.
13896 * symtab.h (set_main_name): Don't declare.
13897
13898 2014-01-15 Tom Tromey <tromey@redhat.com>
13899
13900 * symtab.c (main_progspace_key): New global.
13901 (struct main_info): New.
13902 (name_of_main, language_of_main): Remove.
13903 (get_main_info, main_info_cleanup): New function.
13904 (set_main_name, main_name, main_language): Use get_main_info.
13905 (_initialize_symtab): Initialize main_progspace_key.
13906
13907 2014-01-15 Tom Tromey <tromey@redhat.com>
13908
13909 * dbxread.c (process_one_symbol): Update.
13910 * dwarf2read.c (read_partial_die): Update.
13911 * symfile.c (set_initial_language): Call main_language.
13912 * symtab.c (language_of_main): Now static.
13913 (set_main_name): Add 'lang' parameter.
13914 (find_main_name): Update.
13915 (main_language): New function.
13916 (symtab_observer_executable_changed): Update.
13917 * symtab.h (set_main_name): Update.
13918 (language_of_main): Remove.
13919 (main_language): Declare.
13920
13921 2014-01-15 Tom Tromey <tromey@redhat.com>
13922
13923 * symfile.c (init_entry_point_info): Use new "initialized" field.
13924 Update.
13925 * objfiles.h (struct entry_point) <initialized>: New field.
13926 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13927 (struct objfile) <ei>: ...here. Remove.
13928 * objfiles.c (entry_point_address_query): Update.
13929
13930 2014-01-15 Tom Tromey <tromey@redhat.com>
13931
13932 * objfiles.c (entry_point_address_query): Relocate entry point
13933 address.
13934 (objfile_relocate1): Do not relocate entry point address.
13935 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13936 <the_bfd_section_index>: New field.
13937 * symfile.c (init_entry_point_info): Find the entry point's
13938 section.
13939
13940 2014-01-15 Tom Tromey <tromey@redhat.com>
13941
13942 * solib-frv.c (enable_break): Use entry_point_address_query.
13943
13944 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13945
13946 * NEWS: Add note on improved process record-replay on
13947 arm*-linux* targets.
13948
13949 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13950
13951 * arm-tdep.c (enum arm_record_result): New enum.
13952 (arm_record_unsupported_insn): New function.
13953 (arm_record_coproc_data_proc): Removed.
13954 (thumb2_record_ld_st_multiple): New function.
13955 (thumb2_record_ld_st_dual_ex_tbb): New function.
13956 (thumb2_record_data_proc_sreg_mimm): New function.
13957 (thumb2_record_ps_dest_generic): New function.
13958 (thumb2_record_branch_misc_cntrl): New function.
13959 (thumb2_record_str_single_data): New function.
13960 (thumb2_record_ld_mem_hints): New function.
13961 (thumb2_record_ld_word): New function.
13962 (thumb2_record_lmul_lmla_div): New function.
13963 (thumb2_record_decode_insn_handler): New function.
13964 (decode_insn): Add thumb32 instruction handlers.
13965
13966 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13967
13968 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13969 (struct arm_linux_record_tdep): Declare.
13970 (arm_canonicalize_syscall): New function.
13971 (arm_all_but_pc_registers_record): New function.
13972 (arm_linux_syscall_record): New function.
13973 (arm_linux_init_abi): Add syscall recording constructs.
13974 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13975 decoding. (arm_record_coproc_data_proc): Update arm syscall
13976 decoding.
13977 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13978 <arm_syscall_record>: New field.
13979 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13980 gdb_target_obs.
13981
13982 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13983
13984 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13985 register for push instruction recording.
13986
13987 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13988
13989 * arm-tdep.c (thumb_record_misc): Update to correct logical
13990 error while recording ldm, ldmia and pop instructions.
13991
13992 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13993
13994 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13995
13996 2014-01-15 Pedro Alves <palves@redhat.com>
13997
13998 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13999 (go32_resume, go32_fetch_registers, store_register)
14000 (go32_store_registers, go32_prepare_to_store)
14001 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14002 (go32_create_inferior, go32_can_run, go32_terminal_init)
14003 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14004 declarations.
14005
14006 2014-01-15 Tom Tromey <tromey@redhat.com>
14007
14008 * target.h (async_callback_ftype): New typedef.
14009 (struct target_ops) <to_async>: Use it.
14010
14011 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14012
14013 * python/py-value.c (get_field_type): Remove unnecessary curly
14014 braces for single-statement if block.
14015
14016 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14017
14018 * python/py-type.c (convert_field): Add missing empty line
14019 after declarations.
14020
14021 2014-01-14 Doug Evans <dje@google.com>
14022
14023 * symfile.h (expand_symtabs_matching): Renamed from
14024 expand_partial_symbol_names. Update prototype.
14025 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14026 * symfile.c (expand_symtabs_matching): Renamed from
14027 expand_partial_symbol_names. New args file_matcher, kind.
14028 Rename arg fun to symbol_matcher.
14029 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14030 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14031 ada_expand_partial_symbol_name.
14032 (ada_make_symbol_completion_list): Update to call
14033 expand_symtabs_matching.
14034 (ada_add_global_exceptions): Call expand_symtabs_matching.
14035 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14036 call map_symbol_filenames.
14037 * symtab.c (sources_info): Update to call map_symbol_filenames.
14038 (search_symbols): Call expand_symtabs_matching.
14039 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14040 (default_make_symbol_completion_list_break_on): Update to call
14041 expand_symtabs_matching.
14042 (make_source_files_completion_list): Update to call
14043 map_symbol_filenames.
14044
14045 2014-01-14 Doug Evans <dje@google.com>
14046
14047 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14048 (expand_symtabs_symbol_matcher_ftype): New typedef.
14049 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14050 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14051 * symfile.c (expand_partial_symbol_names): Update to use
14052 expand_symtabs_symbol_matcher_ftype.
14053 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14054 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14055 Arg name_matcher renamed to symbol_matcher.
14056 * psymtab.c (recursively_search_psymtabs): Update to use
14057 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14058 sym_matcher.
14059 (expand_symtabs_matching_via_partial): Update to use
14060 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14061 Arg name_matcher renamed to symbol_matcher.
14062
14063 2014-01-14 Doug Evans <dje@google.com>
14064
14065 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14066 (map_partial_symbol_filenames): Ditto.
14067 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14068 (map_partial_symbol_filenames): Ditto.
14069 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14070 (map_partial_symbol_filenames): Ditto.
14071 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14072 (map_partial_symbol_filenames): Ditto.
14073 * symtab.c: Delete #include "psymtab.h".
14074
14075 2014-01-14 Pedro Alves <palves@redhat.com>
14076 Tom Tromey <tromey@redhat.com>
14077
14078 * infrun.c (use_displaced_stepping): Use find_record_target
14079 instead of RECORD_IS_USED.
14080 (adjust_pc_after_break): Use record_full_is_used instead of
14081 RECORD_IS_USED.
14082 * record-btrace.c (record_btrace_open): Call record_preopen
14083 instead of checking RECORD_IS_USED.
14084 * record-full.c (record_full_shortname)
14085 (record_full_core_shortname): New globals.
14086 (record_full_is_used): New function.
14087 (find_full_open): Call record_preopen instead of checking
14088 RECORD_IS_USED.
14089 (init_record_full_ops): Set the target's shortname to
14090 record_full_shortname.
14091 (init_record_full_core_ops): Set the target's shortname to
14092 record_full_core_shortname.
14093 * record-full.h (record_full_is_used): Declare.
14094 * record.c (find_record_target): Make extern.
14095 (record_preopen): New function.
14096 * record.h (RECORD_IS_USED): Delete macro.
14097 (find_record_target, record_preopen): Declare functions.
14098
14099 2014-01-14 Yao Qi <yao@codesourcery.com>
14100
14101 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14102 'len''s type to ULONGEST.
14103 (core_xfer_shared_libraries_aix): Likewise.
14104 * gdbarch.c, gdbarch.h: Regenerated.
14105 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14106 Change type of 'len' to ULONGEST.
14107 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14108 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14109
14110 2014-01-14 Yao Qi <yao@codesourcery.com>
14111
14112 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14113 type of 'len' to ULONGEST.
14114 (linux_xfer_osdata_processgroups): Likewise.
14115 (linux_xfer_osdata_threads): Likewise.
14116 (linux_xfer_osdata_fds): Likewise.
14117 (linux_xfer_osdata_isockets): Likewise.
14118 (linux_xfer_osdata_shm): Likewise.
14119 (linux_xfer_osdata_sem): Likewise.
14120 (linux_xfer_osdata_msg): Likewise.
14121 (linux_common_xfer_osdata): Likewise.
14122 (struct osdata_type) <getter>: Likewise.
14123 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14124 the declaration.
14125
14126 2014-01-14 Yao Qi <yao@codesourcery.com>
14127
14128 * target.h (target_xfer_partial_ftype): Update.
14129 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14130 ULONGEST.
14131 * aix-thread.c (aix_thread_xfer_partial): Change type of
14132 argument 'len' to ULONGEST.
14133 * auxv.c (procfs_xfer_auxv): Likewise.
14134 (ld_so_xfer_auxv): Likewise.
14135 (memory_xfer_auxv): Likewise.
14136 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14137 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14138 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14139 * corelow.c (core_xfer_partial): Likewise.
14140 * ctf.c (ctf_xfer_partial): Likewise.
14141 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14142 '%u'.
14143 (darwin_read_dyld_info): Likewise.
14144 (darwin_xfer_partial): Likewise.
14145 * exec.c (section_table_xfer_memory_partial): Likewise.
14146 (exec_xfer_partial): Likewise.
14147 * exec.h (section_table_xfer_memory_partial): Update
14148 declaration.
14149 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14150 instead of plongest.
14151 (gnu_xfer_partial): Likewise.
14152 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14153 (ia64_hpux_xfer_solib_got): Likewise.
14154 (ia64_hpux_xfer_partial): Likewise.
14155 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14156 * inf-ptrace.c (inf_ptrace_xfer_partial):
14157 * inf-ttrace.c (inf_ttrace_xfer_partial):
14158 * linux-nat.c (linux_xfer_siginfo): Likewise.
14159 (linux_nat_xfer_partial): Likewise.
14160 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14161 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14162 * monitor.c (monitor_xfer_memory): Likewise.
14163 (monitor_xfer_partial): Likewise.
14164 * procfs.c (procfs_xfer_partial): Likewise.
14165 * record-full.c (record_full_xfer_partial): Likewise.
14166 (record_full_core_xfer_partial): Likewise.
14167 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14168 instead of plongest.
14169 (gdbsim_xfer_partial): Likewise.
14170 * remote.c (remote_xfer_partial): Likewise.
14171 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14172 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14173 declaration.
14174 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14175 (rs6000_xfer_shared_libraries): Likewise.
14176 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14177 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14178 (sparc_xfer_partial): Likewise.
14179 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14180 (spu_xfer_partial): Likewise.
14181 * spu-multiarch.c (spu_xfer_partial): Likewise.
14182 * target.c (target_read_live_memory): Likewise.
14183 (memory_xfer_live_readonly_partial): Likewise.
14184 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14185 (target_xfer_partial, default_xfer_partial): Likewise.
14186 (current_xfer_partial): Likewise.
14187 * tracepoint.c (tfile_xfer_partial): Likewise.
14188 * windows-nat.c (windows_xfer_memory): Likewise. Call
14189 pulongest instead of plongest.
14190 (windows_xfer_partial): Likewise.
14191 (windows_xfer_shared_libraries): Likewise.
14192
14193 2014-01-14 Yao Qi <yao@codesourcery.com>
14194
14195 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14196 target_xfer_partial_ftype.
14197
14198 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14199
14200 PR python/15464
14201 PR python/16113
14202 * valops.c (value_struct_elt_bitpos): New function
14203 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14204 object to 'None' if the field name is an empty string ("").
14205 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14206 attribute to look for a field when 'name' is 'None'.
14207 (get_field_type): New function
14208
14209 2014-01-13 Doug Evans <dje@google.com>
14210
14211 PR symtab/16426
14212 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14213 (try_open_dwop_file): Ditto.
14214 * gdb_bfd.c: #include "vec.h".
14215 (bfdp): New typedef.
14216 (struct gdb_bfd_data): New member included_bfds.
14217 (gdb_bfd_unref): Unref all included bfds.
14218 (gdb_bfd_record_inclusion): New function.
14219 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14220
14221 2014-01-13 Tom Tromey <tromey@redhat.com>
14222
14223 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14224
14225 2014-01-13 Tom Tromey <tromey@redhat.com>
14226
14227 * defs.h (use_windows): Remove.
14228 * gdb.c (main): Update.
14229 * main.c (captured_main, gdb_main): Update.
14230 * main.h (struct captured_main_args) <use_windows>: Remove.
14231 * top.c (use_windows): Remove.
14232
14233 2014-01-13 Tom Tromey <tromey@redhat.com>
14234
14235 * defs.h (deprecated_flush_hook): Remove.
14236
14237 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14238
14239 PR threads/16216
14240 * linux-thread-db.c (try_thread_db_load): Add parameter
14241 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14242 (try_thread_db_load_from_pdir_1): Move it there from here.
14243 (try_thread_db_load_from_sdir): Update caller.
14244 (try_thread_db_load_from_dir): Move it there from here.
14245
14246 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14247
14248 * regformats/regdat.sh: Always rewrite the register file.
14249
14250 2014-01-13 Pedro Alves <palves@redhat.com>
14251
14252 * Makefile.in (CHECK_HEADERS): New variable.
14253 (check-headers:): New rule.
14254
14255 2014-01-13 Tom Tromey <tromey@redhat.com>
14256
14257 * cli/cli-setshow.c (do_set_command): Update.
14258 * defs.h (deprecated_set_hook): Remove.
14259 * top.c (deprecated_set_hook): Remove.
14260
14261 2014-01-13 Pedro Alves <palves@redhat.com>
14262
14263 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14264 the tracepoint if the PC is a pseudo-register.
14265
14266 2014-01-13 Tom Tromey <tromey@redhat.com>
14267
14268 * defs.h (XCALLOC): Remove.
14269 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14270 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14271 * dwarf2loc.c (allocate_piece_closure): Likewise.
14272 * elfread.c (elf_symfile_segments): Likewise.
14273 (elf_symfile_segments): Likewise.
14274 * gdbtypes.c (copy_type_recursive): Likewise.
14275 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14276 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14277 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14278 XCALLOC.
14279 * mt-tdep.c (mt_gdbarch_init): Likewise.
14280 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14281 XCALLOC.
14282 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14283 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14284 * registry.c (registry_alloc_data): Likewise.
14285 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14286 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14287 * serial.c (serial_fdopen_ops): Likewise.
14288 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14289 XCALLOC.
14290 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14291 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14292 not XCALLOC.
14293
14294 2014-01-13 Tom Tromey <tromey@redhat.com>
14295
14296 * defs.h (XMALLOC): Remove.
14297 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14298 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14299 * cli-out.c (struct ui_out *): Likewise.
14300 * cli/cli-dump.c (add_dump_command): Likewise.
14301 (add_dump_command): Likewise.
14302 * complaints.c (get_complaints): Likewise.
14303 (find_complaint): Likewise.
14304 * dwarf2-frame.c (execute_cfa_program): Likewise.
14305 * dwarf2read.c (abbrev_table_read_table): Likewise.
14306 * gdbarch.sh: Likewise.
14307 * gdbarch.c: Rebuild.
14308 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14309 * interps.c (interp_new): Likewise.
14310 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14311 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14312 * mi/mi-console.c (mi_console_file_new): Likewise.
14313 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14314 * mi/mi-out.c (mi_out_new): Likewise.
14315 * mi/mi-parse.c (mi_parse): Likewise.
14316 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14317 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14318 * observer.c (xalloc_observer_list_node): Likewise.
14319 * regcache.c (regcache_xmalloc_1): Likewise.
14320 * reggroups.c (reggroup_new): Likewise.
14321 (_initialize_reggroup): Likewise.
14322 * registry.c (register_data_with_cleanup): Likewise.
14323 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14324 * ser-base.c (serial_ttystate): Likewise.
14325 * ser-mingw.c (make_pipe_state): Likewise.
14326 * ser-pipe.c (pipe_open): Likewise.
14327 * serial.c (serial_open): Likewise.
14328 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14329 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14330 (tui_alloc_win_info): Likewise.
14331 (tui_add_content_elements): Likewise.
14332 * tui/tui-file.c (tui_file_new): Likewise.
14333 * tui/tui-out.c (tui_out_new): Likewise.
14334 * ui-file.c (mem_file_new): Likewise.
14335 * ui-out.c (push_level): Likewise.
14336 (make_cleanup_ui_out_end): Likewise.
14337 (append_header_to_list): Likewise.
14338 (ui_out_new): Likewise.
14339 * user-regs.c (user_reg_add_builtin): Likewise.
14340
14341 2014-01-13 Tom Tromey <tromey@redhat.com>
14342
14343 * defs.h (XZALLOC): Remove.
14344 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14345 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14346 (get_ada_tasks_inferior_data): Likewise.
14347 * auto-load.c (get_auto_load_pspace_data): Likewise.
14348 * auxv.c (get_auxv_inferior_data): Likewise.
14349 * bfd-target.c (target_bfd_reopen): Likewise.
14350 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14351 (deprecated_insert_raw_breakpoint): Likewise.
14352 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14353 * corelow.c (core_open): Likewise.
14354 * darwin-nat.c (darwin_check_new_threads): Likewise.
14355 (darwin_attach_pid): Likewise.
14356 * dummy-frame.c (dummy_frame_push): Likewise.
14357 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14358 * dwarf2loc.c (allocate_piece_closure): Likewise.
14359 * elfread.c (elf_symfile_segments): Likewise.
14360 * eval.c (ptrmath_type_p): Likewise.
14361 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14362 * gdbtypes.c (alloc_type_arch): Likewise.
14363 (alloc_type_instance): Likewise.
14364 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14365 * inf-child.c (inf_child_can_use_agent): Likewise.
14366 * inflow.c (get_inflow_inferior_data): Likewise.
14367 * infrun.c (save_infcall_suspend_state): Likewise.
14368 * jit.c (jit_reader_load): Likewise.
14369 (get_jit_objfile_data): Likewise.
14370 (get_jit_program_space_data): Likewise.
14371 (jit_object_open_impl): Likewise.
14372 (jit_symtab_open_impl): Likewise.
14373 (jit_block_open_impl): Likewise.
14374 (jit_frame_sniffer): Likewise.
14375 * linux-fork.c (add_fork): Likewise.
14376 * maint.c (make_command_stats_cleanup): Likewise.
14377 * objfiles.c (get_objfile_pspace_data): Likewise.
14378 * opencl-lang.c (struct lval_closure): Likewise.
14379 * osdata.c (osdata_start_osdata): Likewise.
14380 * progspace.c (new_address_space): Likewise.
14381 (add_program_space): Likewise.
14382 * remote-sim.c (get_sim_inferior_data): Likewise.
14383 * sh-tdep.c (sh_gdbarch_init): Likewise.
14384 * skip.c (Ignore): Likewise.
14385 (skip_delete_command): Likewise.
14386 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14387 (library_list_start_library): Likewise.
14388 (solib_aix_current_sos): Likewise.
14389 * solib-darwin.c (get_darwin_info): Likewise.
14390 (darwin_current_sos): Likewise.
14391 * solib-dsbt.c (get_dsbt_info): Likewise.
14392 * solib-ia64-hpux.c (new_so_list): Likewise.
14393 (ia64_hpux_get_solib_linkage_addr): Likewise.
14394 * solib-spu.c (append_ocl_sos): Likewise.
14395 (spu_current_sos): Likewise.
14396 * solib-svr4.c (get_svr4_info): Likewise.
14397 (svr4_keep_data_in_core): Likewise.
14398 (library_list_start_library): Likewise.
14399 (svr4_default_sos): Likewise.
14400 (svr4_read_so_list): Likewise.
14401 * solib-target.c (library_list_start_library): Likewise.
14402 (solib_target_current_sos): Likewise.
14403 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14404 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14405 * symfile.c (default_symfile_segments): Likewise.
14406 * target-descriptions.c (tdesc_data_init): Likewise.
14407 (tdesc_create_reg): Likewise.
14408 (struct tdesc_type *): Likewise.
14409 (tdesc_create_vector): Likewise.
14410 (tdesc_set_struct_size): Likewise.
14411 (struct tdesc_type *): Likewise.
14412 (tdesc_free_feature): Likewise.
14413 (tdesc_create_feature): Likewise.
14414 * windows-nat.c (windows_add_thread): Likewise.
14415 (windows_make_so): Likewise.
14416 * xml-support.c (gdb_xml_body_text): Likewise.
14417 (gdb_xml_create_parser_and_cleanup): Likewise.
14418 (xml_process_xincludes): Likewise.
14419 * xml-syscall.c (allocate_syscalls_info): Likewise.
14420 (syscall_create_syscall_desc): Likewise.
14421
14422 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14423
14424 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14425 function, with code from i386_stap_parse_special_token.
14426 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14427 (i386_stap_parse_special_token): Move code to the two functions
14428 above; simplify it.
14429
14430 2014-01-09 Pedro Alves <palves@redhat.com>
14431 Hui Zhu <hui@codesourcery.com>
14432
14433 PR gdb/16101
14434 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14435 bp_err_string. Don't mark the location shlib_disabled if the
14436 error thrown wasn't a generic or memory error. Catch errors
14437 thrown while inserting breakpoints in overlayed code. Output
14438 error message of software breakpoints.
14439 * remote.c (remote_insert_breakpoint): If this breakpoint has
14440 target-side commands but this stub doesn't support Z0 packets,
14441 throw NOT_SUPPORTED_ERROR error.
14442 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14443 * target.h (target_insert_breakpoint): Extend comment.
14444 (target_insert_hw_breakpoint): Add comment.
14445
14446 2014-01-08 Pedro Alves <palves@redhat.com>
14447
14448 * remote.c (remote_add_thread): Add threads silently if starting
14449 up.
14450 (remote_notice_new_inferior): If in all-stop, and starting up,
14451 don't call notice_new_inferior.
14452 (get_current_thread): New function, factored out from ...
14453 (add_current_inferior_and_thread): ... this. Adjust.
14454 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14455 found any thread, then select the remote's current thread as GDB's
14456 current thread too.
14457
14458 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14459
14460 * NEWS: Create a new section for the next release branch.
14461 Rename the section of the current branch, now that it has
14462 been cut.
14463
14464 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14465
14466 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14467 * version.in: Bump version to 7.7.50.DATE-cvs.
14468
14469 2014-01-08 Yao Qi <yao@codesourcery.com>
14470
14471 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14472 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14473 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14474
14475 2014-01-08 Yao Qi <yao@codesourcery.com>
14476
14477 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14478 return value of bfd_get_filename to symbol_file_add_from_bfd.
14479
14480 2014-01-08 Pierre Muller <muller@sourceware.org>
14481
14482 Fix PR16201.
14483 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14484 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14485 to prim_record_mininal_symbol_and_info.
14486 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14487 in call to prim_record_minimal_symbol_and_info.
14488 (read_pe_exported_syms): Set index field of section_data.
14489
14490 2014-01-07 Andrew Pinski <apinski@cavium.com>
14491
14492 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14493 * features/aarch64.c: Regenerate.
14494
14495 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14496
14497 * target.c (return_null): Define.
14498 (update_current_target): Use it instead of return_zero for
14499 functions that return a pointer.
14500
14501 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14502
14503 * source.c (add_path): Fix check for duplicated paths in the previously
14504 included paths.
14505
14506 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14507
14508 * ada-lang.c: Remove duplicated include statements.
14509 * alphabsd-nat.c: Ditto.
14510 * amd64-darwin-tdep.c: Ditto.
14511 * amd64fbsd-nat.c: Ditto.
14512 * auto-load.c: Ditto.
14513 * ax-gdb.c: Ditto.
14514 * breakpoint.c: Ditto.
14515 * dbxread.c: Ditto.
14516 * fork-child.c: Ditto.
14517 * gdb_usleep.c: Ditto.
14518 * i386-darwin-tdep.c: Ditto.
14519 * i386fbsd-nat.c: Ditto.
14520 * infcmd.c: Ditto.
14521 * inferior.c: Ditto.
14522 * jv-lang.c: Ditto.
14523 * linux-nat.c: Ditto.
14524 * linux-tdep.c: Ditto.
14525 * m68kbsd-nat.c: Ditto.
14526 * m68klinux-nat.c: Ditto.
14527 * microblaze-tdep.c: Ditto.
14528 * mips-linux-tdep.c: Ditto.
14529 * mn10300-tdep.c: Ditto.
14530 * nto-tdep.c: Ditto.
14531 * opencl-lang.c: Ditto.
14532 * osdata.c: Ditto.
14533 * printcmd.c: Ditto.
14534 * regcache.c: Ditto.
14535 * remote-m32r-sdi.c: Ditto.
14536 * remote.c: Ditto.
14537 * symfile.c: Ditto.
14538 * symtab.c: Ditto.
14539 * tilegx-linux-nat.c: Ditto.
14540 * tilegx-tdep.c: Ditto.
14541 * tracepoint.c: Ditto.
14542 * valops.c: Ditto.
14543 * vaxbsd-nat.c: Ditto.
14544 * windows-nat.c: Ditto.
14545 * xtensa-tdep.c: Ditto.
14546
14547 2014-01-07 Yao Qi <yao@codesourcery.com>
14548
14549 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14550
14551 2014-01-07 Yao Qi <yao@codesourcery.com>
14552 Joel Brobecker <brobecker@adacore.com>
14553
14554 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14555 (pdc_write_regs): Likewise.
14556 (fetch_regs_kernel_thread): Likewise.
14557 (store_regs_kernel_thread): Likewise.
14558
14559 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14560
14561 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14562 tagged type objects to their actual type.
14563
14564 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14565
14566 * ada-valprint.c (print_field_values): Add "language" parameter.
14567 Update calls to print_field_values and print_variant_part.
14568 Pass new parameter "language" in call to val_print instead
14569 of "current_language". Replace call to ada_val_print by call
14570 to val_print.
14571 (print_variant_part): Add "language" parameter.
14572 (ada_val_print_struct_union): Update call to print_field_values.
14573
14574 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14575
14576 * ada-valprint.c (ui_memcpy): Delete.
14577 (ada_print_floating): Update documentation. Add empty line
14578 between between function documentation and implementation.
14579 Delete variable "buffer". Use ui_file_xstrdup in place of
14580 ui_file_put. Minor adjustments following this change.
14581
14582 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14583
14584 * ada-valprint.c (ada_val_print_string): New function,
14585 extracted from ada_val_print_array.
14586 (ada_val_print_array): Replace extracted code by call
14587 to ada_val_print_string followed by a return. Move
14588 "else" branch to the function's top block.
14589
14590 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14591
14592 * ada-valprint.c (ada_val_print_array): Move implementation
14593 down. Rename parameter "offset" and "val" into "offset_aligned"
14594 and "original_value" respectively. Add parameter "offset".
14595
14596 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14597
14598 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14599 re-organizing the code. Change the "???" message printed
14600 when target type is a TYPE_CODE_UNDEF into
14601 "<ref to undefined type>".
14602
14603 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14604
14605 * ada-valprint.c (print_record): Delete, implementation inlined...
14606 (ada_val_print_struct_union): ... here. Remove call to
14607 ada_check_typedef in inlined implementation.
14608
14609 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14610
14611 * ada-valprint.c (ada_val_print_gnat_array): New function,
14612 extracted from ada_val_print_1;
14613 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14614 (ada_val_print_flt, ada_val_print_struct_union)
14615 (ada_val_print_ref): Likewise.
14616 (ada_val_print_1): Delete variables i and elttype.
14617 Replace extracted-out code by call to corresponding
14618 new functions.
14619
14620 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14621
14622 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14623
14624 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14625
14626 * ada-valprint.c (ada_val_print_1): Replace calls to
14627 ada_val_print_1 by calls to val_print.
14628
14629 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14630
14631 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14632 Update calls to self accordingly. Replace calls to c_val_print
14633 by calls to val_print.
14634
14635 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14636
14637 * ada-valprint.c (print_record): Delete declaration.
14638 (adjust_type_signedness, ada_val_print_1): Likewise.
14639 (ada_val_print): Move function implementation down.
14640 (print_variant_part, print_field_values, print_record):
14641 Move function implementation up.
14642
14643 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14644
14645 * python/py-type.c (typy_get_name): New function.
14646 (type_object_getset): Add entry for attribute "name".
14647 * NEWS: Add entry mentioning this new attribute.
14648
14649 2014-01-07 Yao Qi <yao@codesourcery.com>
14650
14651 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14652 statement.
14653
14654 2014-01-07 Yao Qi <yao@codesourcery.com>
14655
14656 * gnu-nat.c (info_port_rights): Add qualifier const to
14657 argument args.
14658
14659 2014-01-07 Yao Qi <yao@codesourcery.com>
14660
14661 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14662
14663 2014-01-07 Yao Qi <yao@codesourcery.com>
14664
14665 * gnu-nat.c (make_inf) Update declaration.
14666 (make_inf): Make it static.
14667 (inf_set_traced): Likewise.
14668 (inf_port_to_thread, inf_task_died_status): Likewise.
14669
14670 2014-01-07 Yao Qi <yao@codesourcery.com>
14671
14672 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14673
14674 2014-01-07 Yao Qi <yao@codesourcery.com>
14675
14676 * gnu-nat.c (_initialize_gnu_nat): Declare.
14677
14678 2014-01-07 Yao Qi <yao@codesourcery.com>
14679
14680 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14681 'enum bfd_endian'.
14682 (struct gdbarch_info) <byte_order>: Change type to
14683 'enum bfd_endian'.
14684 <byte_order_for_code>: Likewise.
14685 * gdbarch.c, gdbarch.h: Regenerated.
14686
14687 2014-01-06 Sasha Smundak <asmundak@google.com>
14688
14689 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14690
14691 2014-01-06 Tom Tromey <tromey@redhat.com>
14692
14693 * doublest.c (convert_doublest_to_floatformat): Use const, not
14694 CONST.
14695 * somread.c (som_symtab_read): Likewise.
14696
14697 2014-01-07 Hui Zhu <hui@codesourcery.com>
14698
14699 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14700 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14701 (gdb_bfd_fopen): Ditto.
14702 (gdb_bfd_openr): Ditto.
14703 (gdb_bfd_openw): Ditto.
14704 (gdb_bfd_openr_iovec): Ditto.
14705 (gdb_bfd_fdopenr): Ditto.
14706 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14707 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14708 with xstrdup.
14709 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14710 with xstrdup.
14711 * symfile-mem.c (symbol_file_add_from_memory): Removed
14712 gdb_bfd_stash_filename.
14713
14714 2014-01-03 Doug Evans <dje@google.com>
14715
14716 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14717 output.
14718
14719 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14720
14721 Update year range in copyright notice of all files.
14722
14723 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14724
14725 * top.c (print_gdb_version): Set copyright year to 2014.
14726
14727 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14728
14729 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14730
14731 For older changes see ChangeLog-2013.
14732 \f
14733 Local Variables:
14734 mode: change-log
14735 left-margin: 8
14736 fill-column: 74
14737 version-control: never
14738 coding: utf-8
14739 End:
This page took 0.323927 seconds and 5 git commands to generate.