185d5e899a0c55d734dd938cac17a213c4123360
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-11-05 Alan Modra <amodra@gmail.com>
2
3 * charset.c (convert_between_encodings): Shrink obstack using
4 obstack_blank_fast.
5 * minsyms.c (install_minimal_symbols): Likewise.
6 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
7 to char* before doing pointer arithmetic.
8
9 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
10
11 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
12
13 2014-11-04 Pedro Alves <palves@redhat.com>
14
15 * breakpoint.c (breakpoint_thread_match): Delete function.
16 * breakpoint.h (breakpoint_thread_match): Delete declaration.
17
18 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
19
20 PR c++/17494
21 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
22 the method args also under EVAL_SKIP when evaluating method
23 calls under EVAL_SKIP.
24
25 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
26
27 * dwarf2loc.c (read_pieced_value): Do big endian
28 processing only if gdb_regnum is not -1.
29 (write_pieced_value): Ditto.
30
31 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
32
33 * arm-linux-tdep.c (arm_linux_init_abi): Use
34 info.byte_order_for_code to choose endianity of breakpoint
35 instructions snippets.
36
37 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
38
39 * arm-tdep.c (extract_arm_insn): Use
40 gdbarch_byte_order_for_code to read arm instruction.
41
42 2014-11-02 Doug Evans <xdje42@gmail.com>
43
44 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
45
46 2014-11-02 Doug Evans <xdje42@gmail.com>
47
48 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
49 main_subfile before returning.
50
51 2014-10-31 Doug Evans <xdje42@gmail.com>
52
53 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
54 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
55
56 2014-10-31 Doug Evans <xdje42@gmail.com>
57
58 * valops.c (value_cast_pointers): Fix whitespace.
59 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
60 Ditto.
61
62 2014-10-30 Doug Evans <dje@google.com>
63
64 * NEWS: Mention ability add attributes to gdb.Objfile and
65 gdb.Progspace objects.
66 * python/py-objfile.c (objfile_object): New member dict.
67 (objfpy_dealloc): Py_XDECREF dict.
68 (objfpy_initialize): Initialize dict.
69 (objfile_getset): Add __dict__.
70 (objfile_object_type): Set tp_dictoffset member.
71 * python/py-progspace.c (progspace_object): New member dict.
72 (pspy_dealloc): Py_XDECREF dict.
73 (pspy_initialize): Initialize dict.
74 (pspace_getset): Add __dict__.
75 (pspace_object_type): Set tp_dictoffset member.
76
77 2014-10-30 Yao Qi <yao@codesourcery.com>
78
79 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
80 replace '\\' with '\\\\'.
81
82 2014-10-29 Joel Brobecker <brobecker@adacore.com>
83
84 GDB 7.8.1 released.
85
86 2014-10-29 Pedro Alves <palves@redhat.com>
87
88 PR gdb/17408
89 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
90 instead of assuming a thread with a stepping range is always
91 stepping.
92
93 2014-10-29 Pedro Alves <palves@redhat.com>
94
95 PR python/17372
96 * event-top.c (change_line_handler): Call
97 gdb_rl_callback_handler_remove instead of
98 rl_callback_handler_remove.
99 (callback_handler_installed): New global.
100 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
101 (gdb_rl_callback_handler_reinstall): New functions.
102 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
103 gdb_rl_callback_handler_install instead of
104 rl_callback_handler_remove and rl_callback_handler_install.
105 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
106 instead of rl_callback_handler_remove.
107 * event-top.h (gdb_rl_callback_handler_remove)
108 (gdb_rl_callback_handler_install)
109 (gdb_rl_callback_handler_reinstall): New declarations.
110 * infrun.c (reinstall_readline_callback_handler_cleanup): New
111 cleanup function.
112 (fetch_inferior_event): Install it.
113 * top.c (gdb_readline_wrapper_line) Call
114 gdb_rl_callback_handler_remove instead of
115 rl_callback_handler_remove.
116 (gdb_readline_wrapper_cleanup): Don't call
117 rl_callback_handler_install.
118
119 2014-10-29 Pedro Alves <palves@redhat.com>
120
121 * event-top.c (command_line_handler): Clear the first byte of
122 linebuffer, when it is first allocated.
123
124 2014-10-29 Pedro Alves <palves@redhat.com>
125
126 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
127 TRY_CATCH.
128
129 2014-10-29 Pedro Alves <palves@redhat.com>
130
131 PR tui/16138
132 PR tui/17519
133 * tui/tui-interp.c (tui_is_toplevel): Delete global.
134 (tui_allowed_p): Delete function.
135 * tui/tui.c: Include "interps.h".
136 (tui_enable): Don't use tui_allowed_p. Error out here with
137 detailed error messages if the TUI is the top level interpreter,
138 or if output is not a terminal. Use newterm instead of initscr,
139 and error out if initializing the terminal fails. Also error out if
140 the terminal doesn't support cursor addressing.
141 * tui/tui.h (tui_allowed_p): Delete declaration.
142
143 2014-10-29 Joel Brobecker <brobecker@adacore.com>
144
145 * arm-tdep.c (arm_skip_stack_protector): Return early if
146 address loaded by first "ldr" instruction does not have
147 a corresponding minimal symbol. Update comment.
148
149 2014-10-29 Yao Qi <yao@codesourcery.com>
150
151 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
152 loaded address correctly of ldr instruction.
153
154 2014-10-28 Pedro Alves <palves@redhat.com>
155
156 PR gdb/12623
157 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
158 field.
159 * infrun.c (resume) <stepping breakpoint instruction>: Set the
160 thread's stepped_breakpoint field. Skip if reverse debugging.
161 Add comment.
162 (init_thread_stepping_state, handle_signal_stop): Clear the
163 thread's stepped_breakpoint field.
164
165 2014-10-27 Pedro Alves <palves@redhat.com>
166
167 * remote.c (remote_thread_alive): New, factored out from ...
168 (remote_thread_alive): ... this.
169 (remote_update_thread_list): Bail out before deleting threads if
170 the target returned an empty list, and, the current thread has a
171 magic/fake ptid.
172
173 2014-10-27 Pedro Alves <palves@redhat.com>
174
175 * infrun.c (handle_signal_stop): Also skip handlers when a random
176 signal arrives while handling a "stepi" or a "nexti". Set the
177 thread's 'step_after_step_resume_breakpoint' flag.
178
179 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
180
181 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
182 (arm_record_ld_st_imm_offset): Reimplement to cover all
183 load/store cases for ARM opcode 010.
184 (arm_record_ld_st_multiple): Reimplement to cover all
185 load/store cases for ARM opcode 100.
186
187 2014-10-26 Doug Evans <xdje42@gmail.com>
188
189 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
190
191 2014-10-26 Doug Evans <xdje42@gmail.com>
192
193 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
194 parameter "kind" to "block_index".
195 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
196 "block_index".
197 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
198
199 2014-10-26 Doug Evans <xdje42@gmail.com>
200
201 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
202
203 2014-10-26 Doug Evans <xdje42@gmail.com>
204
205 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
206 obstack_alloc.
207
208 2014-10-26 Doug Evans <xdje42@gmail.com>
209
210 * parser-defs.h (block_found): Move decl from here ...
211 * symtab.h (block_found): ... to here.
212
213 2014-10-26 Doug Evans <xdje42@gmail.com>
214
215 * symtab.h (struct field_of_this_result): Fix typo in comment.
216 (lookup_symbol_in_language): Move function comment here.
217 (lookup_symbol): Improve function comment.
218 (basic_lookup_symbol_nonlocal): Ditto.
219 (lookup_symbol_static, lookup_symbol_global): Ditto.
220 (lookup_symbol_aux_block): Ditto.
221 (lookup_language_this): Add function comment.
222 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
223 function comment.
224 (lookup_block_symbol): Improve function comment.
225 (lookup_struct): Fix capitalization in function comment.
226 (lookup_transparent_type): Add function comment.
227 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
228 Improve function comment.
229 (lookup_objfile_from_block): Add function comment.
230 * symtab.c (lookup_symbol_in_language): Update function comment.
231 (lookup_symbol, lookup_language_this): Ditto.
232 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
233 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
234 (basic_lookup_symbol_nonlocal): Ditto.
235 (lookup_symbol_static, lookup_symbol_global): Ditto.
236 (lookup_transparent_type, lookup_block_symbol): Ditto.
237
238 2014-10-25 Doug Evans <xdje42@gmail.com>
239
240 * symtab.c (types_info): Delete forward decl.
241 (functions_info, variables_info, sources_info): Ditto.
242 (_initialize_symtab): Rewrite forward decl to use
243 initialize_file_ftype.
244
245 2014-10-25 Doug Evans <xdje42@gmail.com>
246
247 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
248
249 2014-10-25 Doug Evans <xdje42@gmail.com>
250
251 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
252 of local var child_die.
253
254 2014-10-24 Don Breazeal <donb@codesourcery.com>
255
256 * infrun.c (follow_fork_inferior): Update fork message printing
257 to use target_terminal_ours_for_output instead of
258 target_terminal_ours, to use _() for all format strings, to print
259 "vfork" instead of "fork" for vforks, and to add a detach message.
260 (handle_vfork_child_exec_or_exit): Update message printing to use
261 target_terminal_ours_for_output instead of target_terminal_ours, to
262 use _() for all format strings, and to fix some formatting.
263
264 2014-10-24 Pedro Alves <palves@redhat.com>
265
266 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
267 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
268 * config/vax/vax.mh: Delete.
269 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
270 obsolete configurations section.
271 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
272 * vax-nat.c: Delete file.
273
274 2014-10-24 Pedro Alves <palves@redhat.com>
275
276 * NEWS (Removed targets): Add OS/arch column.
277
278 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
279
280 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
281 on the arg type of a constructor only if it is of reference type.
282
283 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
284
285 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
286 accessors and constants from nios2 opcodes update.
287 (nios2_get_next_pc): Likewise.
288
289 2014-10-19 Doug Evans <xdje42@gmail.com>
290
291 * gdbthread.h (set_running): Fix comment.
292 (set_executing, finish_thread_state): Fix comment.
293
294 2014-10-18 Doug Evans <xdje42@gmail.com>
295
296 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
297
298 2014-10-17 Doug Evans <dje@google.com>
299
300 * NEWS: Mention new event gdb.clear_objfiles.
301 * python/py-event.h (emit_clear_objfiles_event): Clear
302 * python/py-events.h (events_object): New member clear_objfiles.
303 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
304 event.
305 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
306 emit clear_objfiles event.
307 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
308 function.
309 (emit_clear_objfiles_event): New function.
310 (clear_objfiles): New event.
311 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
312 Declare.
313 * python/python.c (_initialize_python): Call
314 gdbpy_initialize_clear_objfiles_event.
315
316 2014-10-17 Doug Evans <dje@google.com>
317
318 * NEWS: Mention new gdb.Objfile.progspace attribute.
319 * python/py-objfile.c (objfpy_get_progspace): New function.
320 (objfile_getset): New entry for "progspace".
321
322 2014-10-17 Pedro Alves <palves@redhat.com>
323
324 PR gdb/17471
325 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
326 returns a copy of the input.
327 (run_command_1, continue_command, step_1, jump_command)
328 (signal_command, until_command, advance_command, finish_command)
329 (attach_command): Adjust and install a cleanup to free the
330 stripped args.
331
332 2014-10-17 Pedro Alves <palves@redhat.com>
333
334 PR gdb/17300
335 * infcmd.c (continue_1): If continuing all threads in the
336 foreground, make sure the inferior's terminal settings are put in
337 effect.
338
339 2014-10-17 Pedro Alves <palves@redhat.com>
340
341 PR gdb/17472
342 * annotate.c (annotate_breakpoints_invalid): Use
343 target_terminal_our_for_output instead of target_terminal_ours.
344 Give back the terminal to the target.
345 (annotate_frames_invalid): Likewise.
346
347 2014-10-17 Pedro Alves <palves@redhat.com>
348
349 * target.c (enum terminal_state): New enum.
350 (terminal_state): New global.
351 (target_terminal_init): New function.
352 (target_terminal_inferior): Skip if inferior already owns the
353 terminal.
354 (target_terminal_ours, target_terminal_ours_for_output): New
355 functions.
356 * target.h (target_terminal_init): Convert to function prototype.
357 (target_terminal_ours_for_output): Convert to function prototype
358 and tweak comment.
359 (target_terminal_ours): Convert to function prototype and tweak
360 comment.
361 * windows-nat.c (do_initial_windows_stuff): Call
362 target_terminal_init instead of child_terminal_init_with_pgrp.
363
364 2014-10-17 Pedro Alves <palves@redhat.com>
365
366 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
367 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
368 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
369 solib-osf.c.
370 * NEWS: Mention that support for alpha*-*-osf* has been removed.
371 * ada-lang.h [__alpha__ && __osf__]
372 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
373 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
374 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
375 GDB_OSABI_OSF1.
376 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
377 files.
378 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
379 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
380 * configure: Regenerate.
381 * configure.ac: Remove references to osf.
382 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
383 section. Remove all other references to osf.
384 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
385 Remove all other references to osf.
386 * dec-thread.c: Delete file.
387 * defs.h (GDB_OSABI_OSF1): Delete.
388 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
389 defined.
390 * osabi.c (gdb_osabi_names): Delete "OSF/1".
391 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
392 Delete code.
393 (unconditionally_kill_inferior)
394 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
395 * solib-osf.c: Delete file.
396
397 2014-10-17 Pedro Alves <palves@redhat.com>
398
399 * remote.c (clear_threads_listing_context): Move higher up, out of
400 the HAVE_LIBEXPAT guard.
401
402 2014-10-16 Tristan Gingold <gingold@adacore.com>
403
404 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
405 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
406 on amd64.
407
408 2014-10-15 Pedro Alves <palves@redhat.com>
409
410 * dec-thread.c (dec_thread_count_gdb_threads)
411 (dec_thread_add_gdb_thread): Delete.
412 (dec_thread_update_thread_list): Delete.
413 (dec_thread_find_new_threads): Rename to ...
414 (dec_thread_update_thread_list): ... this. Delete GDB-size
415 threads that are no longer found in dec_thread_list.
416 (resync_thread_list): Delete.
417 (dec_thread_wait): Call dec_thread_update_thread_list instead of
418 resync_thread_list.
419
420 2014-10-15 Pedro Alves <palves@redhat.com>
421
422 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
423 * remote.c (remote_update_thread_list): Skip calling prune_threads
424 if any thread listing method is supported, and instead walk over
425 the set of remote threads listed, deleting those that are not
426 found in GDB's thread list.
427
428 2014-10-15 Pedro Alves <palves@redhat.com>
429
430 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
431 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
432 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
433 (bsd_uthread_target): Adjust.
434 * corelow.c (core_open): Adjust.
435 * dec-thread.c (dec_thread_find_new_threads): Update comment.
436 (dec_thread_update_thread_list): New function.
437 (init_dec_thread_ops): Adjust.
438 * gdbthread.h (prune_threads): New declaration.
439 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
440 (thread_db_update_thread_list): ... this. Call prune_threads.
441 (init_thread_db_ops): Adjust.
442 * nto-procfs.c (procfs_find_new_threads): Rename to ...
443 (procfs_update_thread_list): ... this. Call prune_threads.
444 (procfs_attach, procfs_create_inferior, init_procfs_targets):
445 Adjust.
446 * obsd-nat.c (obsd_find_new_threads): Rename to ...
447 (obsd_update_thread_list): ... this. Call prune_threads.
448 (obsd_add_target): Adjust.
449 * procfs.c (procfs_target): Adjust.
450 (procfs_notice_thread): Update comment.
451 (procfs_find_new_threads): Rename to ...
452 (procfs_update_thread_list): ... this. Call prune_threads.
453 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
454 comment.
455 (ravenscar_wait): Adjust.
456 (ravenscar_find_new_threads): Rename to ...
457 (ravenscar_update_thread_list): ... this. Call prune_threads.
458 (init_ravenscar_thread_ops): Adjust.
459 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
460 (record_btrace_update_thread_list): ... this. Adjust comment.
461 (init_record_btrace_ops): Adjust.
462 * remote.c (remote_threads_info): Rename to ...
463 (remote_update_thread_list): ... this. Call prune_threads.
464 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
465 Adjust.
466 * sol-thread.c (check_for_thread_db): Adjust.
467 (sol_find_new_threads_callback): Rename to ...
468 (sol_update_thread_list_callback): ... this.
469 (sol_find_new_threads): Rename to ...
470 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
471 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
472 * target-delegates.c: Regenerate.
473 * target.c (target_find_new_threads): Rename to ...
474 (target_update_thread_list): ... this.
475 * target.h (struct target_ops): Rename to_find_new_threads field
476 to to_update_thread_list.
477 (target_find_new_threads): Rename to ...
478 (target_update_thread_list): ... this.
479 * thread.c (prune_threads): Make extern.
480 (update_thread_list): Adjust.
481
482 2014-10-15 Pedro Alves <palves@redhat.com>
483
484 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
485 Add describing comment. Return -1 if the qL packet is not
486 supported.
487 (struct thread_item, thread_item_t): Move higher up in
488 the file. Add comments.
489 (struct threads_parsing_context): Move higher up in
490 the file, add comments, and remote to ...
491 (struct threads_listing_context): ... this.
492 (remote_newthread_step): Don't add the thread to GDB's thread
493 database here. Instead push it to the thread_listing_context
494 list.
495 (remote_find_new_threads): Rename to ...
496 (remote_get_threads_with_ql): ... this. Add target_ops and
497 targets_listing_context parameters. Pass down context.
498 (start_thread): Adjust.
499 (clear_threads_parsing_context): Rename to ...
500 (clear_threads_listing_context): ... this.
501 (remote_get_threads_with_qxfer): New, with parts salvaged from old
502 remote_threads_info.
503 (remote_get_threads_with_qthreadinfo): Ditto.
504 (remote_threads_info): Reimplement.
505
506 2014-10-15 Pedro Alves <palves@redhat.com>
507
508 * infrun.c (resume): Don't force displaced-stepping for all
509 single-steps on software single-stepping archs.
510
511 2014-10-15 Pedro Alves <palves@redhat.com>
512
513 * breakpoint.c (single_step_breakpoints): Delete global.
514 (insert_single_step_breakpoint): Adjust to store the breakpoint
515 pointer in the current thread.
516 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
517 (cancel_single_step_breakpoints): Delete functions.
518 (breakpoint_has_location_inserted_here): Make extern.
519 (single_step_breakpoint_inserted_here_p): Adjust to walk the
520 breakpoint list.
521 * breakpoint.h (breakpoint_has_location_inserted_here): New
522 declaration.
523 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
524 (cancel_single_step_breakpoints): Remove declarations.
525 * gdbthread.h (struct thread_control_state)
526 <single_step_breakpoints>: New field.
527 (delete_single_step_breakpoints)
528 (thread_has_single_step_breakpoints_set)
529 (thread_has_single_step_breakpoint_here): New declarations.
530 * infrun.c (follow_exec): Also clear the single-step breakpoints.
531 (singlestep_breakpoints_inserted_p, singlestep_ptid)
532 (singlestep_pc): Delete globals.
533 (infrun_thread_ptid_changed): Remove references to removed
534 globals.
535 (resume_cleanups): Delete the current thread's single-step
536 breakpoints.
537 (maybe_software_singlestep): Remove references to removed globals.
538 (resume): Adjust to use thread_has_single_step_breakpoints_set and
539 delete_single_step_breakpoints.
540 (init_wait_for_inferior): Remove references to removed globals.
541 (delete_thread_infrun_breakpoints): Delete the thread's
542 single-step breakpoints too.
543 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
544 single-step breakpoints here.
545 (delete_stopped_threads_single_step_breakpoints): New function.
546 (adjust_pc_after_break): Adjust to use
547 thread_has_single_step_breakpoints_set.
548 (handle_inferior_event): Remove references to removed globals.
549 Use delete_stopped_threads_single_step_breakpoints.
550 (handle_signal_stop): Adjust to per-thread single-step
551 breakpoints. Swap test order to do cheaper tests first.
552 (switch_back_to_stepped_thread): Extend debug output. Remove
553 references to removed globals.
554 * record-full.c (record_full_wait_1): Adjust to per-thread
555 single-step breakpoints.
556 * thread.c (delete_single_step_breakpoints)
557 (thread_has_single_step_breakpoints_set)
558 (thread_has_single_step_breakpoint_here): New functions.
559 (clear_thread_inferior_resources): Also delete the thread's
560 single-step breakpoints.
561
562 2014-10-15 Pedro Alves <palves@redhat.com>
563
564 * thread.c (delete_thread_breakpoint): New function.
565 (delete_step_resume_breakpoint)
566 (delete_exception_resume_breakpoint): Use it.
567 (delete_at_next_stop): New function.
568 (clear_thread_inferior_resources): Use delete_at_next_stop.
569
570 2014-10-15 Pedro Alves <palves@redhat.com>
571
572 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
573 (breakpoint_inserted_here_p): ... here. Remove special case for
574 software single-step breakpoints.
575 (find_non_raw_software_breakpoint_inserted_here): Inline ...
576 (software_breakpoint_inserted_here_p): ... here. Remove special
577 case for software single-step breakpoints.
578 (bp_target_info_copy_insertion_state)
579 (deprecated_insert_raw_breakpoint)
580 (deprecated_remove_raw_breakpoint): Delete functions.
581 * breakpoint.h (deprecated_insert_raw_breakpoint)
582 (deprecated_remove_raw_breakpoint): Remove declarations.
583
584 2014-10-15 Pedro Alves <palves@redhat.com>
585
586 PR breakpoints/9649
587 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
588 Delete array globals.
589 (single_step_breakpoints): New global.
590 (breakpoint_xfer_memory): Remove special handling for single-step
591 breakpoints.
592 (update_breakpoints_after_exec): Delete bp_single_step
593 breakpoints.
594 (detach_breakpoints): Remove special handling for single-step
595 breakpoints.
596 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
597 (bpstat_stop_status): Add comment.
598 (bpstat_what, bptype_string, print_one_breakpoint_location)
599 (adjust_breakpoint_address, init_bp_location): Handle
600 bp_single_step.
601 (new_single_step_breakpoint): New function.
602 (set_momentary_breakpoint, bkpt_remove_location): Remove special
603 handling for single-step breakpoints.
604 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
605 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
606 Rewrite.
607 (detach_single_step_breakpoints, find_single_step_breakpoint):
608 Delete functions.
609 (breakpoint_has_location_inserted_here): New function.
610 (single_step_breakpoint_inserted_here_p): Rewrite.
611 * breakpoint.h: Remove FIXME.
612 (enum bptype) <bp_single_step>: New enum value.
613 (insert_single_step_breakpoint): Update comment.
614 * infrun.c (resume_cleanups)
615 (delete_step_thread_step_resume_breakpoint): Remove single-step
616 breakpoints.
617 (fetch_inferior_event): Install a cleanup that removes infrun
618 breakpoints.
619 (switch_back_to_stepped_thread) <expect thread advanced also>:
620 Clear step-over info.
621
622 2014-10-15 Pedro Alves <palves@redhat.com>
623
624 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
625 (delete_thread_infrun_breakpoints): New function, with parts
626 salvaged from delete_step_resume_breakpoint_callback.
627 (delete_step_thread_step_resume_breakpoint): Delete.
628 (for_each_just_stopped_thread_callback_func): New typedef.
629 (for_each_just_stopped_thread): New function.
630 (delete_just_stopped_threads_infrun_breakpoints): New function.
631 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
632 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
633 ... this. Adjust.
634 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
635
636 2014-10-15 Pedro Alves <palves@redhat.com>
637
638 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
639 trying to step past a non-steppable watchpoint.
640 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
641 field.
642 * infrun.c (struct step_over_info): Add new field
643 'nonsteppable_watchpoint_p' and adjust comments.
644 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
645 Adjust.
646 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
647 (stepping_past_nonsteppable_watchpoint): New function.
648 (step_over_info_valid_p): Also return true if stepping past a
649 nonsteppable watchpoint.
650 (proceed): Adjust call to set_step_over_info. Remove reference to
651 init_infwait_state.
652 (init_wait_for_inferior): Remove reference to init_infwait_state.
653 (waiton_ptid): Delete global.
654 (struct execution_control_state)
655 <stepped_after_stopped_by_watchpoint>: Delete field.
656 (wait_for_inferior, fetch_inferior_event): Always pass
657 minus_one_ptid to target_wait.
658 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
659 field.
660 (init_infwait_state): Delete function.
661 (handle_inferior_event): Remove infwait_state handling.
662 (handle_signal_stop) <watchpoints handling>: Adjust after
663 stepped_after_stopped_by_watchpoint removal. Don't remove
664 breakpoints here nor set infwait_state. Set the thread's
665 stepping_over_watchpoint flag, and call keep_going instead.
666 (keep_going): Handle stepping_over_watchpoint. Adjust
667 set_step_over_info calls.
668 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
669 function.
670
671 2014-10-15 Pedro Alves <palves@redhat.com>
672
673 * infrun.c (step_over_info_valid_p): New function.
674 (resume): Use step_over_info_valid_p instead of checking the
675 threads's trap_expected flag.
676
677 2014-10-15 Doug Evans <dje@google.com>
678 Walfred Tedeschi <walfred.tedeschi@intel.com>
679
680 PR python/17364
681 * python/lib/gdb/__init__.py (packages): Add "printer".
682 * python/lib/gdb/command/bound_registers.py: Moved to ...
683 * python/lib/gdb/printer/bound_registers.py: ... here.
684 Add printer to global set of builtin printers. Rename printer from
685 "bound" to "mpx_bound128".
686 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
687 registered as global "builtin" printer.
688 (add_builtin_pretty_printer): New function.
689 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
690 gdb/printer/__init__.py.
691
692 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
693
694 * Makefile.in (SFILES): Remove d-support.c.
695 (COMMON_OBS): Remove d-support.o.
696 * d-lang.h (d_parse_symbol): Remove declaration.
697 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
698 * d-support.c: Remove file.
699
700 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
701
702 * gdb/infrun.c (process_event_stop_test): Apply
703 gdbarch_addr_bits_remove to longjmp resume address.
704
705 2014-10-15 Pedro Alves <palves@redhat.com>
706
707 * regformats/microblaze.dat: Delete file.
708
709 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
710
711 * features/Makefile (microblaze-expedite): Replace pc with rpc.
712 * regformats/microblaze-with-stack-protect.dat: Regenerate.
713
714 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
715
716 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
717 as non-trivial.
718
719 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
720
721 PR c++/13403
722 PR c++/15154
723 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
724 with qualified args.
725
726 2014-10-14 Joel Brobecker <brobecker@adacore.com>
727
728 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
729 of the case where the second operand is a pointer.
730 <BINOP_SUB>: Likewise.
731
732 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
733
734 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
735 only if it is not NULL.
736 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
737 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
738 (struct probe_ops) <clear_semaphore>: Likewise.
739 * tracepoint.c (start_tracing): Call set_semaphore only if it is
740 not NULL.
741 (stop_tracing): Likewise, for clear_semaphore.
742
743 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
744
745 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
746 using language_c, instead of current_language.
747
748 2014-10-13 Doug Evans <dje@google.com>
749
750 * python/py-objfile.c (objfpy_initialize): New function.
751 (objfpy_new, objfile_to_objfile_object): Call it.
752 * python/py-progspace.c (pspy_initialize): New function.
753 (pspy_new, pspace_to_pspace_object): Call it.
754
755 2014-10-13 Miroslav Franc <mfranc@redhat.com>
756 Jan Kratochvil <jan.kratochvil@redhat.com>
757
758 Fix "save breakpoints" for "catch" command.
759 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
760 newline.
761
762 2014-10-12 Miroslav Franc <mfranc@redhat.com>
763
764 Fix "save breakpoints" for "disable $bpnum" command.
765 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
766
767 2014-10-10 Pedro Alves <palves@redhat.com>
768
769 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
770 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
771 (HFILES_NO_SRCDIR): Remove solib-irix.h.
772 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
773 and been removed.
774 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
775 * configure.ac: Remove references to IRIX.
776 * configure.host: Add *-*-irix* to the obsolete hosts section.
777 Remove all other references to irix.
778 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
779 Delete files.
780
781 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
782
783 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
784 isn't valid, release the tdesc arch data and return NULL.
785
786 2014-10-10 Pedro Alves <palves@redhat.com>
787
788 * linux-tdep.c: Include observer.h.
789 (linux_inferior_data): New global.
790 (struct linux_info): New structure.
791 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
792 (get_linux_inferior_data): New functions.
793 (linux_vsyscall_range): Rename to ...
794 (linux_vsyscall_range_raw): ... this.
795 (linux_vsyscall_range): New function; handles caching.
796 (_initialize_linux_tdep): Register linux_inferior_data. Install
797 inferior_exit and inferior_appeared observers.
798
799 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
800 Pedro Alves <palves@redhat.com>
801
802 PR symtab/14466
803 * solib-svr4.c (svr4_read_so_list): Rename to ...
804 (svr4_current_sos_1): ... this and change the function comment.
805 (svr4_current_sos): New function.
806
807 2014-10-10 Pedro Alves <palves@redhat.com>
808
809 * arch-utils.c (default_vsyscall_range): New function.
810 * arch-utils.h (default_vsyscall_range): New declaration.
811 * gdbarch.sh (vsyscall_range): New hook.
812 * gdbarch.h, gdbarch.c: Regenerate.
813 * linux-tdep.c (linux_vsyscall_range): New function.
814 (linux_init_abi): Install linux_vsyscall_range as
815 vsyscall_range gdbarch hook.
816 * memrange.c (address_in_mem_range): New function.
817 * memrange.h (address_in_mem_range): New declaration.
818 * symfile-mem.c (find_vdso_size): Delete function.
819 (add_vsyscall_page): Use gdbarch_vsyscall_range.
820
821 2014-10-10 Pedro Alves <palves@redhat.com>
822
823 * infrun.c (normal_stop): Fix typo in comment.
824
825 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
826
827 PR tdep/9390
828 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
829 typo when using logical AND to determine instruction type.
830
831 2014-10-09 Yao Qi <yao@codesourcery.com>
832
833 * infrun.c (handle_signal_stop): Remove local variable
834 'printed'.
835
836 2014-10-08 Stan Shebs <stan@codesourcery.com>
837
838 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
839
840 2014-10-08 Gary Benson <gbenson@redhat.com>
841
842 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
843
844 2014-10-08 Gary Benson <gbenson@redhat.com>
845
846 * common/common-defs.h: Include common-exceptions.h.
847 * exceptions.h: Do not include common-exceptions.h.
848
849 2014-10-08 Gary Benson <gbenson@redhat.com>
850
851 * common/common-defs.h: Include cleanups.h.
852 * common/common-exceptions.c: Do not include cleanups.h.
853 * utils.h: Likewise.
854
855 2014-10-08 Gary Benson <gbenson@redhat.com>
856
857 * ada-lang.c: Do not include exceptions.h.
858 * ada-valprint.c: Likewise.
859 * amd64-tdep.c: Likewise.
860 * auto-load.c: Likewise.
861 * block.c: Likewise.
862 * break-catch-throw.c: Likewise.
863 * breakpoint.c: Likewise.
864 * btrace.c: Likewise.
865 * c-lang.c: Likewise.
866 * cli/cli-cmds.c: Likewise.
867 * cli/cli-interp.c: Likewise.
868 * cli/cli-script.c: Likewise.
869 * completer.c: Likewise.
870 * corefile.c: Likewise.
871 * corelow.c: Likewise.
872 * cp-abi.c: Likewise.
873 * cp-support.c: Likewise.
874 * cp-valprint.c: Likewise.
875 * darwin-nat.c: Likewise.
876 * dwarf2-frame-tailcall.c: Likewise.
877 * dwarf2-frame.c: Likewise.
878 * dwarf2loc.c: Likewise.
879 * dwarf2read.c: Likewise.
880 * eval.c: Likewise.
881 * event-loop.c: Likewise.
882 * event-top.c: Likewise.
883 * f-valprint.c: Likewise.
884 * frame-unwind.c: Likewise.
885 * frame.c: Likewise.
886 * gdbtypes.c: Likewise.
887 * gnu-v2-abi.c: Likewise.
888 * gnu-v3-abi.c: Likewise.
889 * guile/scm-auto-load.c: Likewise.
890 * guile/scm-breakpoint.c: Likewise.
891 * guile/scm-cmd.c: Likewise.
892 * guile/scm-frame.c: Likewise.
893 * guile/scm-lazy-string.c: Likewise.
894 * guile/scm-param.c: Likewise.
895 * guile/scm-symbol.c: Likewise.
896 * guile/scm-type.c: Likewise.
897 * hppa-hpux-tdep.c: Likewise.
898 * i386-tdep.c: Likewise.
899 * inf-loop.c: Likewise.
900 * infcall.c: Likewise.
901 * infcmd.c: Likewise.
902 * infrun.c: Likewise.
903 * interps.c: Likewise.
904 * interps.h: Likewise.
905 * jit.c: Likewise.
906 * linespec.c: Likewise.
907 * linux-nat.c: Likewise.
908 * linux-thread-db.c: Likewise.
909 * m32r-rom.c: Likewise.
910 * main.c: Likewise.
911 * memory-map.c: Likewise.
912 * mi/mi-cmd-break.c: Likewise.
913 * mi/mi-cmd-stack.c: Likewise.
914 * mi/mi-interp.c: Likewise.
915 * mi/mi-main.c: Likewise.
916 * monitor.c: Likewise.
917 * nto-procfs.c: Likewise.
918 * objc-lang.c: Likewise.
919 * p-valprint.c: Likewise.
920 * parse.c: Likewise.
921 * ppc-linux-tdep.c: Likewise.
922 * printcmd.c: Likewise.
923 * probe.c: Likewise.
924 * python/py-auto-load.c: Likewise.
925 * python/py-breakpoint.c: Likewise.
926 * python/py-cmd.c: Likewise.
927 * python/py-finishbreakpoint.c: Likewise.
928 * python/py-frame.c: Likewise.
929 * python/py-framefilter.c: Likewise.
930 * python/py-function.c: Likewise.
931 * python/py-gdb-readline.c: Likewise.
932 * python/py-inferior.c: Likewise.
933 * python/py-infthread.c: Likewise.
934 * python/py-lazy-string.c: Likewise.
935 * python/py-linetable.c: Likewise.
936 * python/py-param.c: Likewise.
937 * python/py-prettyprint.c: Likewise.
938 * python/py-symbol.c: Likewise.
939 * python/py-type.c: Likewise.
940 * python/py-value.c: Likewise.
941 * python/python-internal.h: Likewise.
942 * python/python.c: Likewise.
943 * record-btrace.c: Likewise.
944 * record-full.c: Likewise.
945 * regcache.c: Likewise.
946 * remote-fileio.c: Likewise.
947 * remote-mips.c: Likewise.
948 * remote.c: Likewise.
949 * rs6000-aix-tdep.c: Likewise.
950 * rs6000-nat.c: Likewise.
951 * skip.c: Likewise.
952 * solib-darwin.c: Likewise.
953 * solib-dsbt.c: Likewise.
954 * solib-frv.c: Likewise.
955 * solib-ia64-hpux.c: Likewise.
956 * solib-spu.c: Likewise.
957 * solib-svr4.c: Likewise.
958 * solib.c: Likewise.
959 * spu-tdep.c: Likewise.
960 * stack.c: Likewise.
961 * stap-probe.c: Likewise.
962 * symfile-mem.c: Likewise.
963 * symmisc.c: Likewise.
964 * target.c: Likewise.
965 * thread.c: Likewise.
966 * top.c: Likewise.
967 * tracepoint.c: Likewise.
968 * tui/tui-interp.c: Likewise.
969 * typeprint.c: Likewise.
970 * utils.c: Likewise.
971 * valarith.c: Likewise.
972 * valops.c: Likewise.
973 * valprint.c: Likewise.
974 * value.c: Likewise.
975 * varobj.c: Likewise.
976 * windows-nat.c: Likewise.
977 * xml-support.c: Likewise.
978
979 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
980
981 * mips-tdep.c (add_offset_16): Rewrite to implement what the
982 name implies.
983 (extended_mips16_next_pc): Update accordingly.
984
985 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
986
987 * mips-tdep.c (mips16_instruction_is_compact_branch): New
988 function.
989 (micromips_instruction_is_compact_branch): Likewise.
990 (mips16_scan_prologue): Terminate scanning upon seeing a branch
991 or a compact jump, reaching a jump delay slot, or seeing a
992 second non-prologue instruction.
993 (micromips_scan_prologue): Also terminate scanning upon seeing a
994 compact branch or jump, or reaching a branch or jump delay slot.
995 (mips32_scan_prologue): Terminate scanning upon reaching a branch
996 or jump delay slot, or seeing a second non-prologue instruction.
997 (mips32_instruction_has_delay_slot): Retain instruction
998 examination code only, update arguments accordingly and move
999 instruction fetch pieces to...
1000 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1001 (micromips_instruction_has_delay_slot): Likewise and to...
1002 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1003 (mips16_instruction_has_delay_slot): Likewise and to...
1004 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1005 (mips_single_step_through_delay): Update accordingly.
1006 (mips_adjust_breakpoint_address): Likewise.
1007
1008 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1009
1010 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1011 !mustbe32 also return 1 for 32-bit instructions.
1012 (mips16_instruction_has_delay_slot): Likewise. Add an
1013 explanatory comment.
1014
1015 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1016
1017 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1018 symbols special.
1019
1020 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1021
1022 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1023 update comments.
1024 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1025 for the breakpoint's address. Don't preinitialize `placed_size'.
1026 (insert_bp_location): Set `reqstd_address' rather than
1027 `placed_address'.
1028 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1029 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1030 address.
1031 (bkpt_remove_location): Likewise.
1032 (deprecated_insert_raw_breakpoint): Likewise.
1033 (deprecated_remove_raw_breakpoint): Likewise.
1034 (find_single_step_breakpoint): Likewise.
1035 * mem-break.c (default_memory_insert_breakpoint): Use
1036 `reqstd_address' for the breakpoint's address. Don't set
1037 `placed_address' or `placed_size' if breakpoint contents couldn't
1038 have been determined.
1039 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1040 the breakpoint's address.
1041 (remote_insert_hw_breakpoint): Likewise. Don't set
1042 `placed_address' or `placed_size' if breakpoint couldn't have been
1043 set.
1044 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1045 `reqstd_address' for the breakpoint's address.
1046 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1047 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1048 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1049 * microblaze-linux-tdep.c
1050 (microblaze_linux_memory_remove_breakpoint): Likewise.
1051 * monitor.c (monitor_insert_breakpoint): Likewise.
1052 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1053 (procfs_insert_hw_breakpoint): Likewise.
1054 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1055 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1056 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1057 * remote-mips.c (mips_insert_breakpoint): Likewise.
1058 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1059
1060 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1061
1062 * valops.c (value_assign): Check for bit field assignments
1063 before calling architecture-specific register value
1064 conversion functions.
1065
1066 2014-10-03 Pierre Muller <muller@sourceware.org>
1067
1068 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1069
1070 2014-10-02 Pedro Alves <palves@redhat.com>
1071
1072 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1073 threads_are_executing.
1074 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1075 describing comment.
1076 * gdbthread.h (threads_are_executing): Declare.
1077 (handle_signal_stop) <random signals>: Don't print about the
1078 signal here if stopping.
1079 (end_stepping_range): Don't notify observers here.
1080 (normal_stop): Update the thread list. If stopped by a random
1081 signal or a stepping range ended, notify observers.
1082 * thread.c (threads_executing): New global.
1083 (init_thread_list): Clear 'threads_executing'.
1084 (set_executing): Set or clear 'threads_executing'.
1085 (threads_are_executing): New function.
1086 (update_threads_executing): New function.
1087 (update_thread_list): Use it.
1088
1089 2014-10-02 Pedro Alves <palves@redhat.com>
1090
1091 PR breakpoints/17431
1092 * breakpoint.c (update_breakpoints_after_exec): Don't create
1093 overlay, longjmp, std terminate nor exception breakpoints here.
1094
1095 2014-10-02 Pedro Alves <palves@redhat.com>
1096
1097 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1098 Adjust comments.
1099 * inferior.c (find_inferior_for_program_space): Give preference to
1100 the current inferior.
1101 * inferior.h (find_inferior_for_program_space): Update comment.
1102 * progspace.c (switch_to_program_space_and_thread): Prefer the
1103 current inferior if it's bound to the program space requested. If
1104 the inferior found doesn't have a PID yet, don't bother looking up
1105 a thread.
1106 * progspace.h (switch_to_program_space_and_thread): Adjust
1107 comment.
1108 * thread.c (any_thread_of_process, any_live_thread_of_process):
1109 Give preference to the current thread.
1110
1111 2014-10-01 Pedro Alves <palves@redhat.com>
1112
1113 * breakpoint.c (insert_bp_location): Error out if inserting a
1114 software breakpoint at a read-only address.
1115 * target.c (memory_xfer_check_region): New function, factored out
1116 from ...
1117 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1118 ULONGEST.
1119 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1120 against the memory region attributes.
1121
1122 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1123
1124 * NEWS: Announce new exit-code field in -list-thread-groups
1125 output.
1126 * inferior.c (exit_inferior_1): Don't clear exit code.
1127 (inferior_appeared): Clear exit code.
1128 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1129 code.
1130
1131 2014-10-01 Pedro Alves <palves@redhat.com>
1132
1133 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1134 GENERATED" along with emacs/vi read-only markers.
1135 * regformats/aarch64.dat: Regenerate.
1136 * regformats/arm-with-iwmmxt.dat: Regenerate.
1137 * regformats/arm-with-neon.dat: Regenerate.
1138 * regformats/arm-with-vfpv2.dat: Regenerate.
1139 * regformats/arm-with-vfpv3.dat: Regenerate.
1140 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1141 * regformats/i386/amd64-avx.dat: Regenerate.
1142 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1143 * regformats/i386/amd64-avx512.dat: Regenerate.
1144 * regformats/i386/amd64-linux.dat: Regenerate.
1145 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1146 * regformats/i386/amd64-mpx.dat: Regenerate.
1147 * regformats/i386/amd64.dat: Regenerate.
1148 * regformats/i386/i386-avx-linux.dat: Regenerate.
1149 * regformats/i386/i386-avx.dat: Regenerate.
1150 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1151 * regformats/i386/i386-avx512.dat: Regenerate.
1152 * regformats/i386/i386-linux.dat: Regenerate.
1153 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1154 * regformats/i386/i386-mmx.dat: Regenerate.
1155 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1156 * regformats/i386/i386-mpx.dat: Regenerate.
1157 * regformats/i386/i386.dat: Regenerate.
1158 * regformats/i386/x32-avx-linux.dat: Regenerate.
1159 * regformats/i386/x32-avx.dat: Regenerate.
1160 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1161 * regformats/i386/x32-avx512.dat: Regenerate.
1162 * regformats/i386/x32-linux.dat: Regenerate.
1163 * regformats/i386/x32.dat: Regenerate.
1164 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1165 * regformats/mips-dsp-linux.dat: Regenerate.
1166 * regformats/mips-linux.dat: Regenerate.
1167 * regformats/mips64-dsp-linux.dat: Regenerate.
1168 * regformats/mips64-linux.dat: Regenerate.
1169 * regformats/nios2-linux.dat: Regenerate.
1170 * regformats/rs6000/powerpc-32.dat: Regenerate.
1171 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1172 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1173 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1174 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1175 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1176 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1177 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1178 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1179 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1180 * regformats/s390-linux32.dat: Regenerate.
1181 * regformats/s390-linux32v1.dat: Regenerate.
1182 * regformats/s390-linux32v2.dat: Regenerate.
1183 * regformats/s390-linux64.dat: Regenerate.
1184 * regformats/s390-linux64v1.dat: Regenerate.
1185 * regformats/s390-linux64v2.dat: Regenerate.
1186 * regformats/s390-te-linux64.dat: Regenerate.
1187 * regformats/s390x-linux64.dat: Regenerate.
1188 * regformats/s390x-linux64v1.dat: Regenerate.
1189 * regformats/s390x-linux64v2.dat: Regenerate.
1190 * regformats/s390x-te-linux64.dat: Regenerate.
1191 * regformats/tic6x-c62x-linux.dat: Regenerate.
1192 * regformats/tic6x-c62x.dat: Regenerate.
1193 * regformats/tic6x-c64x-linux.dat: Regenerate.
1194 * regformats/tic6x-c64x.dat: Regenerate.
1195 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1196 * regformats/tic6x-c64xp.dat: Regenerate.
1197
1198 2014-10-01 Pedro Alves <palves@redhat.com>
1199
1200 * features/Makefile: Update comments.
1201 (XMLTOC): List all xml files we build C files from.
1202 (clean-cfiles): New rule.
1203
1204 2014-10-01 Pedro Alves <palves@redhat.com>
1205
1206 * features/i386/amd64-avx512-linux.c: Regenerate.
1207 * features/i386/amd64-avx512.c: Regenerate.
1208 * features/i386/x32-avx512-linux.c: Regenerate.
1209 * features/i386/x32-avx512.c: Regenerate.
1210
1211 2014-10-01 Pedro Alves <palves@redhat.com>
1212
1213 * features/Makefile (WHICH): Remove arm-with-m,
1214 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1215
1216 2014-10-01 Pedro Alves <palves@redhat.com>
1217
1218 * features/Makefile (clean): New rule.
1219
1220 2014-10-01 Pedro Alves <palves@redhat.com>
1221
1222 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1223 (zmm14h): Add missing end quotes.
1224
1225 2014-10-01 Pedro Alves <palves@redhat.com>
1226
1227 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1228 * features/aarch64.c: Regenerate.
1229
1230 2014-09-30 Don Breazeal <donb@codesourcery.com>
1231
1232 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1233 code so as to work with follow_fork_inferior.
1234 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1235 (inf_ttrace_create_inferior): Remove reference to
1236 inf_ttrace_vfork_ppid.
1237 (inf_ttrace_attach): Ditto.
1238 (inf_ttrace_detach): Ditto.
1239 (inf_ttrace_kill): Use current_inferior instead of
1240 inf_ttrace_vfork_ppid.
1241 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1242 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1243 inferior away from the parent.
1244 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1245 target_follow_fork.
1246 (follow_fork_inferior): New function.
1247 (follow_inferior_reset_breakpoints): Make function static.
1248 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1249 * linux-nat.c (linux_child_follow_fork): Move target-independent
1250 code to infrun.c:follow_fork_inferior.
1251
1252 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1253
1254 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1255 * gdbarch.c: Regenerate.
1256 * gdbarch.h: Likewise.
1257 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1258 gdbarch method 'regset_from_core_section'.
1259 (get_core_register_section): Remove handling for the case that
1260 regset == NULL and regset_from_core_section is defined.
1261 (get_core_registers): Drop check for deleted method.
1262 * procfs.c (procfs_do_thread_registers): Adjust comment.
1263
1264 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1265
1266 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1267 (linux_nat_make_corefile_notes): Remove.
1268 (linux_target_install_ops): Do not set target method
1269 'make_corefile_notes'.
1270 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1271 Remove field.
1272 (linux_corefile_thread_callback): Instead of args->collect, call
1273 linux_collect_thread_registers.
1274 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1275 NULL unless there is a regset iterator.
1276 (linux_make_corefile_notes_1): Remove.
1277 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1278 by linux_make_corefile_notes.
1279 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1280
1281 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1282
1283 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1284 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1285 Remove.
1286 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1287
1288 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1289
1290 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1291 (xtensa_iterate_over_regset_sections): New.
1292 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1293
1294 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1295
1296 * vax-tdep.c (vax_regset_from_core_section): Remove.
1297 (vax_iterate_over_regset_sections): New.
1298 (vax_gdbarch_init): Adjust gdbarch initialization.
1299
1300 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1301
1302 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1303 (tilegx_regset_from_core_section): Remove.
1304 (tilegx_iterate_over_regset_sections): New.
1305 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1306
1307 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1308
1309 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1310 (sparc_iterate_over_regset_sections): New.
1311 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1312 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1313 targets.
1314 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1315 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1316 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1317 target method 'make_corefile_notes'.
1318
1319 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1320
1321 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1322 'sizeof_gregset' and 'sizeof_fpregset'.
1323 * sh-tdep.c (sh_regset_from_core_section): Remove.
1324 (sh_iterate_over_regset_sections): New.
1325 (sh_gdbarch_init): Adjust gdbarch initialization.
1326 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1327 sizeof_fpregset.
1328 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1329 'sizeof_gregset'.
1330
1331 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1332
1333 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1334 (score7_linux_iterate_over_regset_sections): New.
1335 (score_gdbarch_init): Adjust gdbarch initialization.
1336
1337 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1338
1339 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1340 FreeBSD targets.
1341 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1342 method 'make_corefile_notes'.
1343 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1344 (ppcfbsd_regset_from_core_section): Remove.
1345 (ppcfbsd_iterate_over_regset_sections): New.
1346 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1347 initialization.
1348 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1349 (ppcnbsd_iterate_over_regset_sections): New.
1350 (ppcnbsd_init_abi): Adjust.
1351 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1352 (ppcobsd_iterate_over_regset_sections): New.
1353 (ppcobsd_init_abi): Adjust.
1354 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1355 (rs6000_aix_iterate_over_regset_sections): New.
1356 (rs6000_aix_init_osabi): Adjust.
1357
1358 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1359
1360 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1361 (nios2_regset_from_core_section): Remove.
1362 (nios2_iterate_over_regset_sections): New.
1363 (nios2_linux_init_abi): Adjust gdbarch initialization.
1364
1365 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1366
1367 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1368 (am33_iterate_over_regset_sections): New.
1369 (am33_linux_init_osabi): Adjust gdbarch initialization.
1370
1371 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1372
1373 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1374 (mips_linux_iterate_over_regset_sections): New.
1375 (mips_linux_init_abi): Adjust gdbarch initialization.
1376 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1377 (mips64obsd_iterate_over_regset_sections): New.
1378 (mips64obsd_init_abi): Adjust.
1379 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1380 (mipsnbsd_iterate_over_regset_sections): New.
1381 (mipsnbsd_init_abi): Adjust.
1382
1383 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1384
1385 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1386 (m88k_iterate_over_regset_sections): New.
1387 (m88k_gdbarch_init): Adjust gdbarch initialization.
1388
1389 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1390
1391 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1392 (ia64_linux_iterate_over_regset_sections): New.
1393 (ia64_linux_init_abi): Adjust gdbarch initialization.
1394
1395 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1396
1397 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1398 (m68kbsd_iterate_over_regset_sections): New.
1399 (m68kbsd_init_abi): Adjust gdbarch initialization.
1400 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1401 (m68k_linux_iterate_over_regset_sections): New.
1402 (m68k_linux_init_abi): Adjust gdbarch initialization.
1403
1404 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1405
1406 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1407 (m32r_linux_regset_from_core_section): Remove.
1408 (m32r_linux_iterate_over_regset_sections): New.
1409 (m32r_linux_init_abi): Adjust gdbarch initialization.
1410
1411 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1412
1413 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1414 (amd64obsd_iterate_over_regset_sections): New.
1415 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1416 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1417 Remove.
1418 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1419 regset_from_core_section initialization.
1420 * i386-tdep.c (i386_regset_from_core_section): Remove.
1421 (i386_iterate_over_regset_sections): New.
1422 (i386_gdbarch_init): Adjust gdbarch initialization.
1423 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1424 (i386_iterate_over_regset_sections): New prototype.
1425 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1426 Remove.
1427 (i386obsd_aout_iterate_over_regset_sections): New.
1428 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1429 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1430 targets.
1431 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1432 (amd64fbsd_init_abi): Call fbsd_init_abi.
1433 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1434 (i386fbsd4_init_abi): Call fbsd_init_abi.
1435 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1436 target method 'make_corefile_notes'.
1437 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1438
1439 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1440
1441 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1442 (hppa_hpux_iterate_over_regset_sections): New.
1443 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1444 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1445 (hppa_linux_iterate_over_regset_sections): New.
1446 (hppa_linux_init_abi): Adjust.
1447 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1448 (hppanbsd_iterate_over_regset_sections): New.
1449 (hppanbsd_init_abi): Adjust.
1450 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1451 (hppaobsd_iterate_over_regset_sections): New.
1452 (hppaobsd_init_abi): Adjust.
1453
1454 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1455
1456 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1457 (frv_linux_iterate_over_regset_sections): New.
1458 (frv_linux_init_abi): Adjust gdbarch initialization.
1459
1460 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1461
1462 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1463 (armbsd_iterate_over_regset_sections): New prototype.
1464 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1465 (armbsd_iterate_over_regset_sections): New.
1466 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1467 initialization.
1468
1469 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1470
1471 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1472 (alpha_linux_iterate_over_regset_sections): New.
1473 (alpha_linux_init_abi): Adjust gdbarch initialization.
1474 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1475 prototype.
1476 (alphanbsd_iterate_over_regset_sections): New prototype.
1477
1478 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1479
1480 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1481 Remove.
1482 (aarch64_linux_iterate_over_regset_sections): New.
1483 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1484
1485 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1486
1487 * fbsd-tdep.c: New file.
1488 * fbsd-tdep.h: New file.
1489 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1490 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1491 (ALLDEPFILES): Add fbsd-tdep.c.
1492
1493 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1494
1495 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1496 parameter.
1497 * gdbarch.h: Regenerate.
1498 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1499 iterator.
1500 (get_core_register_section): Add parameter 'regset' and use it, if
1501 set. Add parameter 'min_size' and verify the bfd section size
1502 against it.
1503 (get_core_registers_cb): Add parameter 'regset' and pass it to
1504 get_core_register section. For the "standard" register sections
1505 ".reg" and ".reg2", set an appropriate default for human_name.
1506 (get_core_registers): Don't abort when the gdbarch has an iterator
1507 but no regset_from_core_section. Add NULL/0 for parameters
1508 'regset'/'min_size' in calls to get_core_register_section.
1509 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1510 'regset' and use it instead of calling the
1511 regset_from_core_section gdbarch method.
1512 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1513 * i386-tdep.c (i386_supply_xstateregset)
1514 (i386_collect_xstateregset, i386_xstateregset): Moved to
1515 i386-linux-tdep.c.
1516 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1517 .reg-xstate.
1518 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1519 core file support only if the regset iterator hasn't been set.
1520 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1521 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1522 Moved from i386-tdep.c and renamed to *_linux*.
1523 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1524 each callback invocation. Allow any .reg-xstate size when reading
1525 from a core file.
1526 * amd64-tdep.c (amd64_supply_xstateregset)
1527 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1528 amd64-linux-tdep.c.
1529 (amd64_regset_from_core_section): Remove.
1530 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1531 install an amd64-specific regset_from_core_section gdbarch method.
1532 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1533 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1534 Moved from amd64-tdep.c and renamed to *_linux*.
1535 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1536 to each callback invocation. Allow any .reg-xstate size when
1537 reading from a core file.
1538 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1539 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1540 each callback invocation.
1541 (arm_linux_init_abi): No longer set the regset_from_core_section
1542 gdbarch method.
1543 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1544 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1545 each callback invocation.
1546 (ppc_linux_init_abi): No longer set the regset_from_core_section
1547 gdbarch method.
1548 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1549 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1550 (s390_regset_from_core_section): Remove.
1551 (s390_iterate_over_regset_sections): Add regset parameter to each
1552 callback invocation.
1553 (s390_gdbarch_init): No longer set the regset_from_core_section
1554 gdbarch method. Drop initialization of deleted tdep fields.
1555
1556 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1557
1558 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1559 (amd64_linux_iterate_over_regset_sections): New.
1560 (amd64_linux_init_abi_common): Don't install the regset section
1561 list, but the new iterator in gdbarch.
1562 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1563 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1564 (arm_linux_iterate_over_regset_sections): ...here. New function.
1565 (arm_linux_init_abi): Set iterator instead of section list.
1566 * corelow.c (get_core_registers_cb): New function, logic moved
1567 from...
1568 (get_core_registers): ...loop body here. Use new iterator method
1569 instead of walking through the regset section list.
1570 * gdbarch.sh: Remove 'core_regset_sections'. New method
1571 'iterate_over_regset_sections'. New typedef
1572 'iterate_over_regset_sections_cb'.
1573 * gdbarch.c: Regenerate.
1574 * gdbarch.h: Likewise.
1575 * i386-linux-tdep.c (i386_linux_regset_sections)
1576 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1577 Remove.
1578 (i386_linux_iterate_over_regset_sections): New.
1579 (i386_linux_init_abi): Don't choose a regset section list, but
1580 install new iterator in gdbarch.
1581 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1582 (linux_collect_regset_section_cb): New function, logic moved
1583 from...
1584 (linux_collect_thread_registers): ...loop body here. Use iterator
1585 method instead of walking through list.
1586 (linux_make_corefile_notes_1): Check for presence of iterator
1587 method instead of regset section list.
1588 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1589 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1590 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1591 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1592 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1593 (ppc_linux_init_abi): Don't choose from above regset section
1594 lists, but install new iterator in gdbarch.
1595 * regset.h (struct core_regset_section): Remove.
1596 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1597 have_linux_v1, have_linux_v2, and have_tdb.
1598 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1599 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1600 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1601 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1602 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1603 (s390_iterate_over_regset_sections): ...here. New function. Use
1604 new tdep fields.
1605 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1606 regset section lists, but install new iterator.
1607
1608 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1609
1610 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1611
1612 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1613
1614 * progspace.c (print_program_space): Don't prune program spaces
1615 before printing them.
1616
1617 2014-09-25 Pedro Alves <palves@redhat.com>
1618
1619 * infrun.c (user_visible_resume_ptid): Don't check
1620 singlestep_breakpoints_inserted_p.
1621
1622 2014-09-25 Pedro Alves <palves@redhat.com>
1623
1624 * breakpoint.c (should_be_inserted): Add debug output.
1625
1626 2014-09-25 Pedro Alves <palves@redhat.com>
1627
1628 * infrun.c (stepping_past_instruction_at)
1629 (clear_exit_convenience_vars): Point at infrun.h instead of
1630 inferior.h.
1631 (handle_signal_stop): Fix typo.
1632
1633 2014-09-24 Yao Qi <yao@codesourcery.com>
1634
1635 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1636 bitmask.
1637
1638 2014-09-22 Gary Benson <gbenson@redhat.com>
1639
1640 * target.c (target_stop): Updated comment.
1641
1642 2014-09-22 Gary Benson <gbenson@redhat.com>
1643
1644 * target/target.h (target_stop_ptid): Renamed as...
1645 (target_stop_and_wait): New function. Updated comment.
1646 All uses updated.
1647 (target_continue_ptid): Renamed as...
1648 (target_continue_no_signal): New function. Updated comment.
1649 All uses updated.
1650
1651 2014-09-22 Pedro Alves <palves@redhat.com>
1652
1653 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1654 and "auto" merged.
1655 * breakpoint.c (enum ugll_insert_mode): New enum.
1656 (always_inserted_mode): Now a plain boolean.
1657 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1658 (breakpoints_always_inserted_mode): Delete.
1659 (breakpoints_should_be_inserted_now): New function.
1660 (insert_breakpoints): Pass UGLL_INSERT to
1661 update_global_location_list instead of calling
1662 insert_breakpoint_locations manually.
1663 (create_solib_event_breakpoint_1): New, factored out from ...
1664 (create_solib_event_breakpoint): ... this.
1665 (create_and_insert_solib_event_breakpoint): Use
1666 create_solib_event_breakpoint_1 instead of calling
1667 insert_breakpoint_locations manually.
1668 (update_global_location_list): Change parameter type from boolean
1669 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1670 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1671 (update_global_location_list_nothrow): Change parameter type from
1672 boolean to enum ugll_insert_mode.
1673 (_initialize_breakpoint): "breakpoint always-inserted" option is
1674 now a boolean command. Update help text.
1675 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1676 (breakpoints_should_be_inserted_now): New declaration.
1677 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1678 Remove breakpoints_always_inserted_mode check.
1679 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1680 * remote.c (remote_start_remote): Likewise.
1681
1682 2014-09-22 Pedro Alves <palves@redhat.com>
1683
1684 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1685 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1686 Instead, pass UGLL_INSERT to update_global_location_list.
1687 (update_global_location_list): Change parameter type from boolean
1688 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1689 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1690 (create_solib_event_breakpoint_1): New, factored out from ...
1691 (create_solib_event_breakpoint): ... this.
1692 (create_and_insert_solib_event_breakpoint): Use
1693 create_solib_event_breakpoint_1 instead of calling
1694 insert_breakpoint_locations manually.
1695 (update_global_location_list): Handle UGLL_INSERT.
1696
1697 2014-09-22 Pedro Alves <palves@redhat.com>
1698
1699 * breakpoint.c (enum ugll_insert_mode): New enum.
1700 (update_global_location_list)
1701 (update_global_location_list_nothrow): Change parameter type from
1702 boolean to enum ugll_insert_mode. All callers adjusted.
1703
1704 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1705
1706 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1707 SystemTap support in GDB.
1708
1709 2014-09-19 Don Breazeal <donb@codesourcery.com>
1710
1711 * linux-nat.c (linux_handle_extended_wait): Call
1712 linux_ptrace_get_extended_event.
1713 (wait_lwp): Call linux_is_extended_waitstatus.
1714 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1715 and linux_is_extended_waitstatus.
1716 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1717 linux_ptrace_get_extended_event.
1718 (linux_ptrace_get_extended_event): New function.
1719 (linux_is_extended_waitstatus): New function.
1720 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1721 (linux_is_extended_waitstatus): New declarations.
1722
1723 2014-09-19 Yao Qi <yao@codesourcery.com>
1724
1725 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1726 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1727 comments. Callers update.
1728 (dwarf_decode_lines): Likewise.
1729 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1730 comments. Skip the line table if 'lowpc' is greater than
1731 'address'. Don't check
1732 dwarf2_per_objfile->has_section_at_zero.
1733
1734 2014-09-18 Doug Evans <dje@google.com>
1735
1736 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1737 * python/py-symtab.c (stpy_get_producer): New function.
1738 (symtab_object_getset): Add "producer" attribute.
1739
1740 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1741
1742 PR gdb/17384
1743 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1744 (do_captured_read_memory_integer): Remove.
1745 (safe_read_memory_integer): Use target_read_memory directly instead
1746 of catching errors in do_captured_read_memory_integer.
1747
1748 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1749
1750 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1751 not gdb/doc.
1752
1753 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1754
1755 * objc-lang.c (find_implementation_from_class): Remove dead code.
1756
1757 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1758
1759 PR cli/7233
1760 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1761 "fprintf_unfiltered (gdb_stdlog...)".
1762
1763 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1764
1765 PR breakpoints/12526
1766 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1767 val_bitsize.
1768 * breakpoint.c (watch_command_1): Use these fields to retain
1769 bitfield information.
1770 (extract_bitfield_from_watchpoint_value): New function.
1771 (watchpoint_check): Use it.
1772 (update_watchpoint): Use it. Optimize the address and length of a
1773 HW watchpoint pointing to a bitfield.
1774 * value.h (unpack_value_bitfield): New prototype.
1775 * value.c (unpack_value_bitfield): Make extern.
1776
1777 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1778
1779 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1780 x86-dregs.o.
1781 * gnu-nat.c (inf_threads): New function.
1782 * gnu-nat.h (inf_threads_ftype): New typedef.
1783 (inf_threads): New declaration.
1784 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1785 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1786 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1787 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1788 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1789 (i386_gnu_dr_get_control): New functions.
1790 (reg_addr): New structure.
1791 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1792 i386 debugging register hooks.
1793 * NEWS: Mention this.
1794
1795 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1796
1797 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1798 vector data transfer instructions.
1799 (arm_record_coproc_data_proc): Updated.
1800
1801 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1802
1803 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1804 arm_record_exreg_ld_st_insn.
1805 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1806 load/store insns.
1807
1808 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1809
1810 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1811 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1812 processing instructions.
1813
1814 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1815
1816 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1817 for advance SIMD struct ld/st insn.
1818 (thumb2_record_decode_insn_handler): Replace stub handler with
1819 thumb2_record_asimd_struct_ld_st.
1820
1821 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1822
1823 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1824 for asimd, vfp and coprocessor insns.
1825 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1826 and coprocessor insns.
1827 (thumb2_record_coproc_insn): New function.
1828 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1829 handlers.
1830 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1831 opcode 110 insns.
1832
1833 2014-09-13 Doug Evans <xdje42@gmail.com>
1834
1835 * NEWS: Mention new "queue-signal" command.
1836 * infcmd.c (queue_signal_command): New function.
1837 (_initialize_infcmd): Add new queue-signal command.
1838
1839 2014-09-13 Doug Evans <xdje42@gmail.com>
1840
1841 * linux-nat.c (wait_lwp): Add debugging printf.
1842 (linux_nat_wait_1): Ditto.
1843
1844 2014-09-12 Pedro Alves <palves@redhat.com>
1845
1846 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1847 (create_and_insert_solib_event_breakpoint): New functions.
1848 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1849 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1850 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1851 (remove_dbx_link_breakpoint): Delete function.
1852 (insert_dbx_link_bpt_in_file): Use
1853 create_and_insert_solib_event_breakpoint instead of
1854 deprecated_insert_raw_breakpoint.
1855 (procfs_wait): Don't check whether we hit __dbx_link here.
1856 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1857 here.
1858 * solib-irix.c (base_breakpoint): Delete global.
1859 (disable_break): Delete function.
1860 (enable_break): Use create_solib_event_breakpoint
1861 instead of deprecated_insert_raw_breakpoint.
1862 (irix_solib_handle_event): New function.
1863 (irix_solib_create_inferior_hook): Don't run the target or disable
1864 the mapping-complete breakpoint here.
1865 (_initialize_irix_solib): Install irix_solib_handle_event as
1866 so_ops->handle_event hook.
1867
1868 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1869 Ulrich Weigand  <uweigand@de.ibm.com>
1870
1871 PR tdep/17379
1872 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1873 instead of read_memory_unsigned_integer.
1874
1875 2014-09-12 Gary Benson <gbenson@redhat.com>
1876
1877 * nat/linux-waitpid.c: Include common-defs.h.
1878 [GDBSERVER]: Add FIXME comment.
1879 [!GDBSERVER]: Don't include defs.h or signal.h.
1880 (linux_debug) [!GDBSERVER]: Remove empty block.
1881
1882 2014-09-12 Gary Benson <gbenson@redhat.com>
1883
1884 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1885 Don't include defs.h or server.h.
1886
1887 2014-09-12 Gary Benson <gbenson@redhat.com>
1888
1889 * nat/linux-btrace.c: Include common-defs.h.
1890 Don't include defs.h, server.h or gdbthread.h.
1891 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1892
1893 2014-09-12 Gary Benson <gbenson@redhat.com>
1894
1895 * common/agent.c: Include common-defs.h.
1896 Don't include defs.h or server.h.
1897 * common/buffer.c: Likewise.
1898 * common/common-debug.c: Likewise.
1899 * common/common-utils.c: Likewise.
1900 * common/errors.c: Likewise.
1901 * common/filestuff.c: Likewise.
1902 * common/format.c: Likewise.
1903 * common/gdb_vecs.c: Likewise.
1904 * common/print-utils.c: Likewise.
1905 * common/ptid.c: Likewise.
1906 * common/rsp-low.c: Likewise.
1907 * common/signals.c: Likewise.
1908 * common/vec.c: Likewise.
1909 * common/xml-utils.c: Likewise.
1910 * nat/linux-osdata.c: Likewise.
1911 * nat/linux-procfs.c: Likewise.
1912 * nat/linux-ptrace.c: Likewise.
1913 * nat/mips-linux-watch.c: Likewise.
1914 * target/waitstatus.c: Likewise.
1915
1916 2014-09-12 Tom Tromey <tromey@redhat.com>
1917 Gary Benson <gbenson@redhat.com>
1918
1919 * common/common-regcache.h: New file.
1920 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1921 * regcache.h: Include common-regcache.h.
1922 (regcache_read_pc): Don't declare.
1923 * regcache.c (get_thread_regcache_for_ptid): New function.
1924 * nat/linux-btrace.c: Don't include regcache.h.
1925 Include common-regcache.h.
1926 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1927
1928 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1929
1930 * regcache.h (struct regset): Declare.
1931
1932 2014-09-11 Pedro Alves <palves@redhat.com>
1933
1934 PR gdb/17347
1935 * main.c: Include "infrun.h".
1936 (catch_command_errors, catch_command_errors_const): Wait for the
1937 foreground command to complete.
1938 * top.c (maybe_wait_sync_command_done): New function, factored out
1939 from ...
1940 (maybe_wait_sync_command_done): ... here.
1941 * top.h (maybe_wait_sync_command_done): New declaration.
1942
1943 2014-09-11 Tom Tromey <tromey@redhat.com>
1944 Gary Benson <gbenson@redhat.com>
1945
1946 * common/symbol.h: New file.
1947 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1948 * minsyms.c (find_minimal_symbol_address): New function.
1949 * common/agent.c: Include common/symbol.h.
1950 [!GDBSERVER]: Don't include objfiles.h.
1951 (agent_look_up_symbols): Use find_minimal_symbol_address.
1952
1953 2014-09-11 Gary Benson <gbenson@redhat.com>
1954
1955 * target/target.h (target_stop_ptid, target_continue_ptid):
1956 Declare.
1957 * target.c (target_stop_ptid, target_continue_ptid): New
1958 functions.
1959 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1960 (agent_run_command): Always use target_stop_ptid and
1961 target_continue_ptid.
1962
1963 2014-09-11 Tom Tromey <tromey@redhat.com>
1964 Gary Benson <gbenson@redhat.com>
1965
1966 * target/target.h: New file.
1967 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1968 * target.h: Include target/target.h.
1969 (target_read_memory, target_write_memory): Don't declare.
1970 * target.c (target_read_uint32): New function.
1971 * common/agent.c: Include target/target.h.
1972 [!GDBSERVER]: Don't include target.h.
1973 (helper_thread_id): Type changed to uint32_t.
1974 (agent_get_helper_thread_id): Use target_read_uint32.
1975 (agent_run_command): Always use target_read_memory and
1976 target_write_memory.
1977 (agent_capability): Type changed to uint32_t.
1978 (agent_capability_check): Use target_read_uint32.
1979
1980 2014-09-11 Gary Benson <gbenson@redhat.com>
1981
1982 * common/common-debug.h (show_debug_regs): Declare.
1983 * common/common-debug.c (show_debug_regs): Define.
1984 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1985 all uses with show_debug_regs. Replace all uses that considered
1986 debug_hw_points as a multi-value integer with straight boolean
1987 uses.
1988 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1989 with show_debug_regs.
1990 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1991 all uses with show_debug_regs.
1992 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1993 uses with show_debug_regs.
1994
1995 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1996
1997 * findvar.c (address_from_register): Handle targets requiring
1998 a special conversion routine even for plain pointer types.
1999
2000 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2001
2002 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2003 (store_register): Do not call exec_one_dummy_insn.
2004
2005 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2006
2007 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2008 dereference it first. Use value_enclosing_type instead of
2009 value_type.
2010 (ada_array_length): Likewise.
2011
2012 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2013
2014 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2015 Adjust function implementation and documentation accordingly.
2016 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2017 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2018 Update call to ada_value_ptr_subscript.
2019
2020 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2021
2022 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2023 instead of VAL's type.
2024
2025 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2026
2027 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2028
2029 2014-09-09 Doug Evans <xdje42@gmail.com>
2030
2031 PR guile/17367
2032 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2033 last parameter to pkg-config, not first.
2034 * configure.ac: Pass --with-guile provided pkg-config path to
2035 GDB_GUILE_PROGRAM_NAMES.
2036 * configure: Regenerate.
2037
2038 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2039
2040 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2041 Bertazi".
2042
2043 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2044
2045 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2046 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2047 the list of sections determining GDB_OSABI_IRIX.
2048
2049 2014-09-09 James Hogan <james.hogan@imgtec.com>
2050
2051 * MAINTAINERS (Write After Approval): Add "James Hogan".
2052
2053 2014-09-09 James Hogan <james.hogan@imgtec.com>
2054
2055 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2056
2057 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2058
2059 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2060
2061 2014-09-08 Doug Evans <xdje42@gmail.com>
2062
2063 PR 17247
2064 * guile.c: #include <signal.h>.
2065 (_initialize_guile): Block SIGCHLD while initializing Guile.
2066
2067 Replaces the following, which is reverted.
2068
2069 2014-07-26 Doug Evans <xdje42@gmail.com>
2070
2071 PR 17185
2072 * configure.ac: Add check for header gc/gc.h.
2073 Add check for function setenv.
2074 * configure: Regenerate.
2075 * config.in: Regenerate.
2076 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2077
2078 2014-09-08 Doug Evans <xdje42@gmail.com>
2079
2080 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2081 with named constant. Fix style of pointer comparison.
2082 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2083
2084 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2085
2086 PR gdb/17035
2087 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2088 decide whether we display the command on "show user".
2089 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2090 printing command name.
2091 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2092 * cli/cli-decode.c (cli_user_command_p): Create helper function
2093 to verify whether cmd_list_element is a user-defined command.
2094
2095 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2096
2097 PR python/17355
2098 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2099 Fix goto out of TRY_CATCH.
2100
2101 2014-09-06 Doug Evans <xdje42@gmail.com>
2102 Tom Tromey <tromey@redhat.com>
2103
2104 PR 15276
2105 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2106 $_any_caller_matches.
2107 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2108 * python/lib/gdb/function/caller_is.py: New file.
2109
2110 2014-09-06 Doug Evans <xdje42@gmail.com>
2111
2112 * infcmd.c (program_info): Fix typo.
2113
2114 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2115
2116 PR gdb/17235
2117 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2118 'number'. New variable 'has_digit'. Rewrite code to deal with
2119 subexpressions on SDT probes.
2120
2121 2014-09-04 Pedro Alves <palves@redhat.com>
2122
2123 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2124 the input is only one character long.
2125
2126 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2127
2128 PR fortran/17237
2129 * f-valprint.c (f_val_print): Specify the correct print option to
2130 use when printing integer values.
2131
2132 2014-09-04 Gary Benson <gbenson@redhat.com>
2133
2134 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2135 Remove code to cope with LWPs wrapped as PIDs.
2136 Add assertions to ensure no wrapped LWPs are passed.
2137
2138 2014-09-04 Pedro Alves <palves@redhat.com>
2139
2140 * value.c (value_ranges_copy_adjusted): New function, factored out
2141 from ...
2142 (value_contents_copy_raw): ... here.
2143 (unpack_value_bits_as_long_1): Rename back to ...
2144 (unpack_bits_as_long): ... this. Remove 'original_value' and
2145 'result' parameters. Change return type to LONGEST.
2146 (unpack_value_bits_as_long): Delete.
2147 (unpack_value_field_as_long_1): Delete.
2148 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2149 (unpack_value_bitfield): New function.
2150 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2151 (value_fetch_lazy): Use unpack_value_bitfield.
2152 * value.h (unpack_value_bits_as_long): Delete declaration.
2153
2154 2014-09-03 Sasha Smundak <asmundak@google.com>
2155
2156 * python/py-frame.c (frapy_read_register): New function.
2157
2158 2014-09-03 James Hogan <james.hogan@imgtec.com>
2159
2160 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2161 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2162
2163 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2164
2165 PR python/16699
2166 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2167 function.
2168 (add_cmd): Set "completer_handle_brkchars" to NULL.
2169 * cli/cli-decode.h (struct cmd_list_element)
2170 <completer_handle_brkchars>: New field.
2171 * command.h (completer_ftype_void): New typedef.
2172 (set_cmd_completer_handle_brkchars): New prototype.
2173 * completer.c (set_gdb_completion_word_break_characters): New
2174 function.
2175 (complete_line_internal): Call "completer_handle_brkchars"
2176 callback from command.
2177 * completer.h: Include "command.h".
2178 (set_gdb_completion_word_break_characters): New prototype.
2179 * python/py-cmd.c (cmdpy_completer_helper): New function.
2180 (cmdpy_completer_handle_brkchars): New function.
2181 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2182 (cmdpy_init): Set completer_handle_brkchars to
2183 cmdpy_completer_handle_brkchars.
2184
2185 2014-09-03 Gary Benson <gbenson@redhat.com>
2186
2187 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2188 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2189 Loop conditions changed to equivalent form.
2190 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2191 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2192 ALL_DEBUG_ADDRESS_REGISTERS.
2193
2194 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2195
2196 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2197 description fix.
2198
2199 2014-09-02 Doug Evans <dje@google.com>
2200
2201 * typeprint.c (find_global_typedef): Fix comment.
2202
2203 2014-09-02 Gary Benson <gbenson@redhat.com>
2204
2205 * i386-nat.h: Renamed as...
2206 * x86-nat.h: New file. All type, function and variable name
2207 prefixes changed from "i386_" to "x86_". All references updated.
2208 * i386-nat.c: Renamed as...
2209 * x86-nat.c: New file. All type, function and variable name
2210 prefixes changed from "i386_" to "x86_". All references updated.
2211 * common/i386-xstate.h: Renamed as...
2212 * common/x86-xstate.h: New file. All type, function and variable
2213 name prefixes changed from "i386_" to "x86_". All references
2214 updated.
2215 * nat/i386-cpuid.h: Renamed as...
2216 * nat/x86-cpuid.h: New file. All type, function and variable name
2217 prefixes changed from "i386_" to "x86_". All references updated.
2218 * nat/i386-gcc-cpuid.h: Renamed as...
2219 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2220 name prefixes changed from "i386_" to "x86_". All references
2221 updated.
2222 * nat/i386-dregs.h: Renamed as...
2223 * nat/x86-dregs.h: New file. All type, function and variable name
2224 prefixes changed from "i386_" to "x86_". All references updated.
2225 * nat/i386-dregs.c: Renamed as...
2226 * nat/x86-dregs.c: New file. All type, function and variable name
2227 prefixes changed from "i386_" to "x86_". All references updated.
2228
2229 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2230
2231 * varobj.c (_initialize_varobj): Move to the end of file.
2232
2233 2014-08-29 Gary Benson <gbenson@redhat.com>
2234
2235 * common/common-exceptions.h: New file.
2236 * common/common-exceptions.c: Likewise.
2237 * Makefile.in (SFILES): Add common/common-exceptions.c.
2238 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2239 (COMMON_OBS): Add common-exceptions.o.
2240 (common-exceptions.o): New rule.
2241 * exceptions.h (common-exceptions.h): Include.
2242 (gdb_setjmp.h): Do not include.
2243 (return_reason): Moved to common-exceptions.h.
2244 (enum return_reason): Likewise.
2245 (RETURN_MASK): Likewise.
2246 (typedef return_mask): Likewise.
2247 (enum errors): Likewise.
2248 (struct gdb_exception): Likewise.
2249 (exceptions_state_mc_init): Likewise.
2250 (exceptions_state_mc_action_iter): Likewise.
2251 (exceptions_state_mc_action_iter_1): Likewise.
2252 (TRY_CATCH): Likewise.
2253 (throw_exception): Likewise.
2254 (throw_verror): Likewise.
2255 (throw_vquit): Likewise.
2256 (throw_error): Likewise.
2257 (throw_quit): Likewise.
2258 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2259 (enum catcher_action): Likewise.
2260 (struct catcher): Likewise.
2261 (current_catcher): Likewise.
2262 (catcher_list_size): Likewise.
2263 (exceptions_state_mc_init): Likewise.
2264 (catcher_pop): Likewise.
2265 (exceptions_state_mc): Likewise.
2266 (exceptions_state_mc_action_iter): Likewise.
2267 (exceptions_state_mc_action_iter_1): Likewise.
2268 (throw_exception): Likewise.
2269 (exception_messages): Likewise.
2270 (exception_messages_size): Likewise.
2271 (throw_it): Likewise.
2272 (throw_verror): Likewise.
2273 (throw_vquit): Likewise.
2274 (throw_error): Likewise.
2275 (throw_quit): Likewise.
2276 (prepare_to_throw_exception): New function.
2277
2278 2014-08-29 Gary Benson <gbenson@redhat.com>
2279
2280 * common/gdb_setjmp.h: New file.
2281 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2282 * configure.ac: Move sigsetjmp check...
2283 * common/common.m4: ...here.
2284 * configure: Regenerate.
2285 * cp-support.c (SIGJMP_BUF): Delete.
2286 (SIGSETJMP): Likewise.
2287 (SIGLONGJMP): Likewise.
2288 * exceptions.h (gdb_setjmp.h): Include.
2289 (setjmp.h): Do not include.
2290 (EXCEPTIONS_SIGJMP_BUF): Delete.
2291 (EXCEPTIONS_SIGSETJMP): Likewise.
2292 (EXCEPTIONS_SIGLONGJMP): Likewise.
2293 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2294 from gdb_setjmp.h.
2295 * exceptions.c: Likewise.
2296
2297 2014-08-29 Gary Benson <gbenson@redhat.com>
2298
2299 * cleanups.h: Moved to...
2300 * common/cleanups.h: New file.
2301 * cleanups.c: Moved to...
2302 * common/cleanups.c: New file. Include common-defs.h and
2303 cleanups.h. Do not include defs.h.
2304 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2305 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2306 (cleanups.o): New rule.
2307
2308 2014-08-29 Gary Benson <gbenson@redhat.com>
2309
2310 * common/errors.h (internal_warning): New declaration.
2311 (internal_vwarning): Likewise.
2312 * common/errors.c (internal_warning): New function.
2313 * utils.h (internal_warning): Don't declare.
2314 (internal_vwarning): Likewise.
2315 * utils.c (internal_warning): Removed.
2316
2317 2014-08-29 Gary Benson <gbenson@redhat.com>
2318
2319 * main.c (captured_main): Use warning during startup.
2320 Prefix startup warning messages with command name.
2321
2322 2014-08-29 Gary Benson <gbenson@redhat.com>
2323
2324 * main.c (captured_main): Handle usage errors with error.
2325
2326 2014-08-29 Gary Benson <gbenson@redhat.com>
2327
2328 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2329 exit pair with a call to error. Wrap the message with _().
2330
2331 2014-08-29 Gary Benson <gbenson@redhat.com>
2332
2333 * main.c (captured_main): Replace a fprintf/exit
2334 pair with a call to error. Wrap the message with _().
2335
2336 2014-08-29 Gary Benson <gbenson@redhat.com>
2337
2338 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2339 pairs with calls to error. Wrap the message with _().
2340
2341 2014-08-29 Gary Benson <gbenson@redhat.com>
2342
2343 * utils.c (vwarning): Protect calls to target_terminal_ours
2344 and wrap_here.
2345
2346 2014-08-29 Gary Benson <gbenson@redhat.com>
2347
2348 * exceptions.c (print_flush): Protect calls to
2349 target_terminal_ours and wrap_here.
2350
2351 2014-08-29 Gary Benson <gbenson@redhat.com>
2352
2353 * utils.h (filtered_printing_initialized): New declaration.
2354 * utils.c (abort_with_message): New function.
2355 (internal_vproblem): Use abort_with_message for first level
2356 recursive internal problems, and if gdb_stderr is not set up.
2357 Protect calls to target_terminal_ours, begin_line and query.
2358
2359 2014-08-28 Doug Evans <dje@google.com>
2360
2361 * symtab.c (in_prologue): Move definition to better spot.
2362 (skip_prologue_using_sal): Ditto.
2363
2364 2014-08-28 Doug Evans <dje@google.com>
2365
2366 * symtab.c (find_function_start_sal): Move definition to better spot.
2367
2368 2014-08-28 Yao Qi <yao@codesourcery.com>
2369
2370 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2371 found_stack_adjust in forward scan. Remove condition check
2372 on found_stack_adjust which is always true. Indent the code.
2373
2374 2014-08-28 Yao Qi <yao@codesourcery.com>
2375
2376 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2377 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2378 (dwarf_decode_lines): Remove argument
2379 want_line_info. Remove condition check on want_line_info.
2380 Callers update.
2381
2382 2014-08-27 Doug Evans <dje@google.com>
2383
2384 * dwarf2read.c (dwarf_record_line): Fix typo.
2385
2386 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2387
2388 * target.h (struct target_ops::to_terminal_save_ours): Remove
2389 declaration.
2390 (target_terminal_save_ours): Remove macro.
2391 * target-delegates.c: Regenerate.
2392 * inf-child.c (inf_child_target): Don't set the nonexistent
2393 field to_terminal_save_ours.
2394 * inferior.h (child_terminal_save_ours): Remove declaration.
2395 * terminal.h (gdb_save_tty_state): New declaration.
2396 * inflow.c (child_terminal_save_ours): Rename to ...
2397 (gdb_save_tty_state): ... this.
2398 * tui/tui.c: Include terminal.h.
2399 (tui_enable): Use gdb_save_tty_state instead of
2400 target_terminal_save_ours.
2401 (tui_disable): Likewise.
2402
2403 2014-08-25 Doug Evans <dje@google.com>
2404
2405 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2406 Pass NULL instead of 0 for context pointer.
2407
2408 2014-08-25 Yao Qi <yao@codesourcery.com>
2409
2410 * dwarf2read.c: Fix grammatical error.
2411
2412 2014-08-24 Yao Qi <yao@codesourcery.com>
2413
2414 * dwarf2read.c (scan_partial_symbols): Update comments.
2415 Rename argument 'need_pc' with 'set_addrmap'.
2416 (add_partial_namespace): Rename argument 'need_pc' with
2417 'set_addrmap'.
2418 (add_partial_module): Likewise.
2419 (add_partial_subprogram): Likewise. Update comments.
2420 (dwarf2_name): Fix typo.
2421
2422 2014-08-22 Doug Evans <dje@google.com>
2423
2424 PR 17276
2425 * dwarf2read.c (dwarf_record_line_p): New function.
2426 (dwarf_decode_lines_1): Ignore subsequent line number entries
2427 for the same line if any entry had a non-zero discriminator.
2428
2429 2014-08-22 Doug Evans <dje@google.com>
2430
2431 * buildsym.h (record_line_ftype): New typedef.
2432 (record_line): Use it.
2433 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2434 (dwarf_decode_lines_1): Call them.
2435
2436 2014-08-22 Yao Qi <yao@codesourcery.com>
2437
2438 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2439 (ctf_end): Remove code.
2440
2441 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2442
2443 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2444 (linux_make_corefile_notes): call update_thread_list, protected against
2445 exceptions.
2446
2447 2014-08-21 Pedro Alves <palves@redhat.com>
2448
2449 * infcmd.c (attach_command): Remove comment.
2450
2451 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2452
2453 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2454 unsigned LONGEST to ULONGEST.
2455
2456 2014-08-20 Pedro Alves <palves@redhat.com>
2457
2458 * Makefile.in (check-read1): New rule.
2459
2460 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2461
2462 * value.c (value_from_contents_and_address): Strip resolved_type's
2463 typedef layers before checking its TYPE_DATA_LOCATION.
2464
2465 2014-08-20 Pedro Alves <palves@redhat.com>
2466
2467 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2468
2469 2014-08-20 Yao Qi <yao@codesourcery.com>
2470
2471 * amd64-tdep.c (amd64_classify): Add a blank line after the
2472 example. Move "*/" to a new line.
2473 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2474 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2475 * dwarf2read.c (psymtab_include_file_name): Likewise.
2476
2477 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2478 Pedro Alves <palves@redhat.com>
2479
2480 PR symtab/14604
2481 PR symtab/14605
2482 * ada-lang.c (coerce_unspec_val_to_type): Use
2483 value_contents_copy_raw.
2484 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2485 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2486 * cp-valprint.c (cp_print_value_fields): Let the common printing
2487 code handle optimized out values.
2488 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2489 * d-valprint.c (dynamic_array_type): Use
2490 value_bits_any_optimized_out.
2491 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2492 check_any_valid fields.
2493 (check_pieced_value_bits): Delete and inline ...
2494 (check_pieced_synthetic_pointer): ... here.
2495 (check_pieced_value_validity): Delete.
2496 (check_pieced_value_invalid): Delete.
2497 (pieced_value_funcs): Remove check_validity and check_any_valid
2498 fields.
2499 (read_pieced_value): Use mark_value_bits_optimized_out.
2500 (write_pieced_value): Switch to use
2501 mark_value_bytes_optimized_out.
2502 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2503 of assuming the whole value is optimized out.
2504 * findvar.c (read_frame_register_value): Remove special handling
2505 of optimized out registers.
2506 (value_from_register): Use mark_value_bytes_optimized_out.
2507 * frame-unwind.c (frame_unwind_got_optimized): Use
2508 mark_value_bytes_optimized_out.
2509 * jv-valprint.c (java_value_print): Adjust.
2510 (java_print_value_fields): Let the common printing code handle
2511 optimized out values.
2512 * mips-tdep.c (mips_print_register): Remove special handling of
2513 optimized out registers.
2514 * opencl-lang.c (lval_func_check_validity): Delete.
2515 (lval_func_check_any_valid): Delete.
2516 (opencl_value_funcs): Remove check_validity and check_any_valid
2517 fields.
2518 * p-valprint.c (pascal_object_print_value_fields): Let the common
2519 printing code handle optimized out values.
2520 * stack.c (read_frame_arg): Remove special handling of optimized
2521 out values. Fetch both VAL and ENTRYVAL before comparing
2522 contents. Adjust to value_available_contents_eq rename.
2523 * valprint.c (valprint_check_validity)
2524 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2525 (val_print_array_elements): Adjust.
2526 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2527 (value_bits_any_optimized_out): New function.
2528 (value_entirely_covered_by_range_vector): New function, factored
2529 out from value_entirely_unavailable.
2530 (value_entirely_unavailable): Reimplement.
2531 (value_entirely_optimized_out): New function.
2532 (insert_into_bit_range_vector): New function, factored out from
2533 mark_value_bits_unavailable.
2534 (mark_value_bits_unavailable): Reimplement.
2535 (struct ranges_and_idx): New struct.
2536 (find_first_range_overlap_and_match): New function, factored out
2537 from value_available_contents_bits_eq.
2538 (value_available_contents_bits_eq): Rename to ...
2539 (value_contents_bits_eq): ... this. Check both unavailable
2540 contents and optimized out contents.
2541 (value_available_contents_eq): Rename to ...
2542 (value_contents_eq): ... this.
2543 (allocate_value_lazy): Remove reference to the old optimized_out
2544 boolean.
2545 (allocate_optimized_out_value): Use
2546 mark_value_bytes_optimized_out.
2547 (require_not_optimized_out): Adjust to check whether the
2548 optimized_out vec is empty.
2549 (ranges_copy_adjusted): New function, factored out from
2550 value_contents_copy_raw.
2551 (value_contents_copy_raw): Also copy the optimized out ranges.
2552 Assert the destination ranges aren't optimized out.
2553 (value_contents_copy): Update comment, remove call to
2554 require_not_optimized_out.
2555 (value_contents_equal): Adjust to check whether the optimized_out
2556 vec is empty.
2557 (set_value_optimized_out, value_optimized_out_const): Delete.
2558 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2559 New functions.
2560 (value_entirely_optimized_out, value_bits_valid): Delete.
2561 (value_copy): Take a VEC copy of the 'optimized_out' field.
2562 (value_primitive_field): Remove special handling of optimized out.
2563 (value_fetch_lazy): Assert that lazy values have no unavailable
2564 regions. Use value_bits_any_optimized_out. Remove some special
2565 handling for optimized out values.
2566 * value.h: Add intro comment about <optimized out> and
2567 <unavailable>.
2568 (struct lval_funcs): Remove check_validity and check_any_valid
2569 fields.
2570 (set_value_optimized_out, value_optimized_out_const): Remove.
2571 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2572 New declarations.
2573 (value_bits_any_optimized_out): New declaration.
2574 (value_bits_valid): Delete declaration.
2575 (value_available_contents_eq): Rename to ...
2576 (value_contents_eq): ... this, and extend comments.
2577
2578 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2579
2580 Fix -fsanitize=address on unreadable inferior strings.
2581 * valprint.c (val_print_string): Fix access before BUFFER.
2582
2583 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2584
2585 * target.c (target_struct_size): Remove.
2586 (target_struct_allocsize): Remove.
2587 (DEFAULT_ALLOCSIZE): Remove.
2588 (target_ops_p): New typedef.
2589 (DEF_VEC_P (target_ops_p)): New vector type.
2590 (target_structs): Change type to VEC (target_ops_p).
2591 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2592 (find_default_run_target): Rewrite for loop following changes to
2593 target_structs.
2594
2595 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2596
2597 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2598 Adjust code accordingly. Adjust function description comment.
2599
2600 2014-08-19 Yao Qi <yao@codesourcery.com>
2601
2602 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2603 types.
2604
2605 2014-08-19 Alan Modra <amodra@gmail.com>
2606
2607 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2608 * config.in: Regenerate.
2609 * configure: Regenerate.
2610
2611 2014-08-19 Tom Tromey <tromey@redhat.com>
2612 Gary Benson <gbenson@redhat.com>
2613
2614 * common/common-debug.h: New file.
2615 * common/common-debug.c: Likewise.
2616 * debug.c: Likewise.
2617 * Makefile.in (SFILES): Add common/common-debug.c.
2618 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2619 (COMMON_OBS): Add common-debug.o and debug.o.
2620 (common-debug.o): New rule.
2621 * common/common-defs.h: Include common-debug.h.
2622 * common/agent.c (debug_agent_printf): New function.
2623 (DEBUG_AGENT): Redefine.
2624 * nat/i386-dregs.c (debug_printf): Undefine.
2625
2626 2014-08-19 Gary Benson <gbenson@redhat.com>
2627
2628 * common/common-defs.h: Include print-utils.h.
2629 * utils.h: Do not include print-utils.h.
2630
2631 2014-08-19 Tom Tromey <tromey@redhat.com>
2632 Gary Benson <gbenson@redhat.com>
2633
2634 * common/common-types.h: New file.
2635 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2636 * common/common-defs.h: Include common-types.h.
2637 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2638 (ULONGEST): Remove.
2639
2640 2014-08-19 Tom Tromey <tromey@redhat.com>
2641 Gary Benson <gbenson@redhat.com>
2642
2643 * common/errors.h: New file.
2644 * common/errors.c: Likewise.
2645 * Makefile.in (SFILES): Add common/errors.c.
2646 (HFILES_NO_SRCDIR): Add common/errors.h.
2647 (COMMON_OBS): Add errors.o.
2648 (errors.o): New rule.
2649 * common/common-defs.h: Include errors.h.
2650 * utils.h (perror_with_name, error, verror, warning, vwarning):
2651 Don't declare.
2652 * common/common-utils.h: (malloc_failure, internal_error):
2653 Likewise.
2654
2655 2014-08-19 Gary Benson <gbenson@redhat.com>
2656
2657 * utils.c (internal_vproblem): Always print the message.
2658
2659 2014-08-18 Doug Evans <dje@google.com>
2660
2661 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2662
2663 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2664
2665 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2666 Return 0 if TYPE is dynamic.
2667 (print_range): Add handling of dynamic ranges.
2668
2669 2014-08-18 Keven Boell <keven.boell@intel.com>
2670 Joel Brobecker <brobecker@adacore.com>
2671
2672 * gdbtypes.h (struct main_type): Add field "data_location".
2673 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2674 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2675 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2676 a dynamic data location.
2677 (resolve_dynamic_type): Add DW_AT_data_location handling.
2678 (copy_recursive, copy_type): Copy the data_location information
2679 when present.
2680 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2681 * value.c (value_from_contents_and_address): Add
2682 DW_AT_data_location handling.
2683
2684 2014-08-18 Keven Boell <keven.boell@intel.com>
2685 Joel Brobecker <brobecker@adacore.com>
2686
2687 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2688 field "get_object_address".
2689 * dwarf2expr.c (execute_stack_op): Add handling for
2690 DW_OP_push_object_address.
2691 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2692 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2693 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2694 (dwarf_expr_get_obj_addr): New function.
2695 (dwarf_expr_ctx_funcs): Add get_object_address field.
2696 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2697 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2698 (dwarf2_evaluate_property): Add parameter "address". Use it.
2699 (needs_get_obj_addr): New function.
2700 (needs_frame_ctx_funcs): Add get_object_address field.
2701 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2702 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2703 (resolve_dynamic_array): Likewise.
2704
2705 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2706
2707 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2708 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2709 fixed value for records and unions for which some GNAT encodings
2710 are present.
2711
2712 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2713
2714 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2715 rewrite to avoid "else if" and "else" constructs. Should be
2716 a no-op in practice.
2717
2718 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2719
2720 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2721 of lexical block.
2722
2723 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2724
2725 PR c++/17132
2726 * eval.c: Update all calls to find_overload_match.
2727 * valarith.c: Likewise.
2728 (value_user_defined_cpp_op, value_user_defined_op): New
2729 argument NOSIDE. Update all callers.
2730 * valops.c (find_overload_match): New argument NOSIDE.
2731 * value.h (find_overload_match): Update signature.
2732
2733 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2734
2735 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2736 'items' methods instead of 'iteritems' method on dictionaries.
2737
2738 2014-08-15 Doug Evans <dje@google.com>
2739
2740 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2741 closer to use.
2742
2743 2014-08-15 Doug Evans <dje@google.com>
2744
2745 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2746
2747 2014-08-15 Doug Evans <dje@google.com>
2748
2749 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2750
2751 2014-08-15 Doug Evans <dje@google.com>
2752
2753 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2754 unused.
2755
2756 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2757
2758 * dcache.h: Include target.h, to avoid compile time warnings.
2759
2760 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2761
2762 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2763 frame_info" partial declaration.
2764 * gdbarch.h: Regenerate.
2765
2766 2014-08-15 Yao Qi <yao@codesourcery.com>
2767
2768 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2769 Add parameter 'decode_for_pst_p'. Callers update.
2770
2771 2014-08-13 Yao Qi <yao@codesourcery.com>
2772
2773 PR build/17104
2774 * configure.ac: Use local variable 'pos'.
2775 * configure: Regenerated.
2776
2777 2014-08-11 Doug Evans <dje@google.com>
2778
2779 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2780 message, it is redundant with "Reading symbols from ..." message.
2781
2782 2014-08-10 Doug Evans <xdje42@gmail.com>
2783
2784 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2785
2786 2014-08-09 Yao Qi <yao@codesourcery.com>
2787
2788 PR remote/9053
2789 * remote.c (remote_xfer_partial): Remove dead code.
2790
2791 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2792
2793 * ia64-linux-tdep.c: Include "regset.h".
2794 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2795 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2796 (ia64_linux_supply_fpregset): New function.
2797 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2798 (ia64_linux_regset_from_core_section): New function.
2799 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2800 method.
2801
2802 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2803
2804 * m68klinux-tdep.c: Include "regset.h".
2805 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2806 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2807 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2808 (m68k_linux_regset_from_core_section): New function.
2809 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2810 method.
2811
2812 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2813
2814 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2815 function. Move logic to...
2816 (tilegx_linux_regmap): ... this new register map.
2817 (tilegx_linux_regset): Refer to register map, replace supply
2818 method by regcache_supply_regset, and add collect method.
2819 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2820 TILEGX_FIRST_EASY_REGNUM.
2821
2822 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2823
2824 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2825 that calls regcache_supply_regset and handles the EPC register
2826 separately. Move main logic to...
2827 (score7_linux_gregmap): ... this new register map.
2828 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2829 (score7_linux_gregset): Refer to register map. Add collect method.
2830 (score7_linux_regset_from_core_section): Replace
2831 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2832 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2833 (struct regset): Delete unused forward declaraction.
2834 (struct pt_regs): Delete structure definition.
2835 (elf_gregset_t): Delete typedef.
2836
2837 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2838
2839 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2840 (nios2_core_regset): Add collect method.
2841
2842 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2843
2844 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2845 platform-independent and don't write to read-only input buffer.
2846 (m32r_linux_collect_gregset): New function.
2847 (m32r_linux_gregset): Add collect method.
2848
2849 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2850
2851 * hppa-linux-tdep.c (greg_map): Rename to...
2852 (hppa_linux_gregmap): ... this. Also convert to
2853 regcache_map_entry format.
2854 (hppa_linux_supply_regset): Delete function.
2855 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2856 (hppa_linux_fpregmap): ... this new register map.
2857 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2858 register map, replace supply method by regcache_supply_regset, and
2859 add collect method regcache_collect_regset.
2860
2861 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2862
2863 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2864 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2865 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2866 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2867 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2868 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2869 (frv_linux_supply_gregset): Replace main logic by call to
2870 regcache_supply_regset, but keep clearing gr32-gr63.
2871 (frv_linux_supply_fpregset): Delete function.
2872 (frv_linux_gregset): Refer to appropriate register map and add
2873 regcache_collect_regset as the collect method.
2874 (frv_linux_fpregset): Likewise. Also exchange the supply method
2875 by regcache_supply_regset.
2876
2877 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2878
2879 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2880 by call to alpha_supply_int_regs.
2881 (alpha_linux_collect_gregset): New function.
2882 (alpha_linux_supply_fpregset): Replace logic by call to
2883 alpha_supply_fp_regs.
2884 (alpha_linux_collect_fpregset): New function.
2885 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2886
2887 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2888
2889 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2890 by call to regcache_collect_regset.
2891 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2892 instead of aarch64_linux_supply_gregset/_fpregset.
2893 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2894 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2895 header file instead.
2896 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2897 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2898 functions. Move logic to ...
2899 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2900 register maps.
2901 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2902 refer to new register maps, replace *_regset_from_core by
2903 regcache_supply_regset, and also use regcache_collect_regset.
2904 * aarch64-linux-tdep.h: Include "regset.h".
2905 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2906 Delete prototypes.
2907 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2908 macros, moved from C source file.
2909 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2910 variable declarations.
2911
2912 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2913
2914 * s390-linux-nat.c: Include "regset.h".
2915 (regmap_gregset): Delete macro.
2916 (s390_64_regmap_gregset): New register map for
2917 regcache_supply/_collect_regset.
2918 (s390_64_gregset): New regset.
2919 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2920 (regmap_fpregset): Delete macro.
2921 (s390_native_supply, s390_native_collect): Delete functions.
2922 (supply_gregset, fill_gregset): Replace s390-specific regmap
2923 handling by a call to regcache_supply/_collect_regset.
2924 (supply_fpregset, fill_fpregset): Call regcache_supply/
2925 _collect_regset instead of s390_native_supply/_collect.
2926 (fetch_regset, store_regset): Likewise. Also change the last
2927 parameter to a regset instead of a regmap.
2928 (s390_linux_fetch_inferior_registers)
2929 (390_linux_store_inferior_registers): Adjust last parameter in
2930 calls to fetch_regset and store_regset.
2931 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2932 (s390_gregmap): ... this. Also make static const and convert to
2933 regcache_map_entry format.
2934 (s390x_regmap_gregset): Delete.
2935 (s390_regmap_fpregset): Rename to...
2936 (s390_fpregmap): ... this. Make static const and convert to
2937 regcache_map_entry format.
2938 (s390_regmap_upper, s390_regmap_last_break)
2939 (s390x_regmap_last_break, s390_regmap_system_call)
2940 (s390_regmap_tdb): Likewise.
2941 (s390_supply_regset, s390_collect_regset): Remove functions.
2942 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2943 s390_supply_regset.
2944 (s390_gregset, s390_fpregset, s390_upper_regset)
2945 (s390_last_break_regset, s390x_last_break_regset)
2946 (s390_system_call_regset, s390_tdb_regset): Make global and
2947 replace s390_supply/_collect_regset by regcache_supply/
2948 _collect_regset.
2949 (s390x_gregset): Delete.
2950 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2951 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2952 (s390_regmap_fpregset, s390_regmap_last_break)
2953 (s390x_regmap_last_break, s390_regmap_system_call)
2954 (s390_regmap_tdb): Delete global variable declarations.
2955 (s390_gregset, s390_fpregset, s390_last_break_regset)
2956 (s390x_last_break_regset, s390_system_call_regset)
2957 (s390_tdb_regset): New global variable declarations.
2958
2959 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2960
2961 * regcache.c: Include "regset.h".
2962 (regcache_transfer_regset): New local function.
2963 (regcache_supply_regset, regcache_collect_regset): New functions.
2964 * regcache.h (struct regcache_map_entry): New structure.
2965 (REGCACHE_MAP_SKIP): New enum value.
2966 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2967
2968 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2969
2970 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2971 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2972 (ppc_linux_collect_gregset ): Likewise.
2973 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2974 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2975 (ppc_collect_vrregset): Likewise.
2976 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2977 Likewise.
2978
2979 2014-08-07 Yao Qi <yao@codesourcery.com>
2980
2981 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2982 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2983 * remote.c (remote_read_bytes): Likewise.
2984
2985 2014-08-07 Yao Qi <yao@codesourcery.com>
2986
2987 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2988
2989 2014-08-07 Yao Qi <yao@codesourcery.com>
2990
2991 PR remote/17230
2992 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2993 TARGET_XFER_OK instead of 0.
2994
2995 2014-08-07 Gary Benson <gbenson@redhat.com>
2996
2997 * common/common-defs.h: Include errno.h.
2998 * defs.h: Do not include errno.h.
2999 * ada-typeprint.c: Likewise.
3000 * c-typeprint.c: Likewise.
3001 * core-regset.c: Likewise.
3002 * corefile.c: Likewise.
3003 * corelow.c: Likewise.
3004 * event-loop.c: Likewise.
3005 * f-typeprint.c: Likewise.
3006 * gnu-nat.c: Likewise.
3007 * go32-nat.c: Likewise.
3008 * i386gnu-nat.c: Likewise.
3009 * m2-typeprint.c: Likewise.
3010 * nat/linux-btrace.c: Likewise.
3011 * p-typeprint.c: Likewise.
3012 * procfs.c: Likewise.
3013 * remote-sim.c: Likewise.
3014 * rs6000-nat.c: Likewise.
3015 * target.c: Likewise.
3016 * typeprint.c: Likewise.
3017 * ui-file.c: Likewise.
3018 * valops.c: Likewise.
3019 * valprint.c: Likewise.
3020
3021 2014-08-07 Gary Benson <gbenson@redhat.com>
3022
3023 * common/common-defs.h: Include string.h.
3024 * aarch64-tdep.c: Do not include string.h.
3025 * ada-exp.y: Likewise.
3026 * ada-lang.c: Likewise.
3027 * ada-lex.l: Likewise.
3028 * ada-typeprint.c: Likewise.
3029 * ada-valprint.c: Likewise.
3030 * aix-thread.c: Likewise.
3031 * alpha-linux-tdep.c: Likewise.
3032 * alpha-mdebug-tdep.c: Likewise.
3033 * alpha-nat.c: Likewise.
3034 * alpha-osf1-tdep.c: Likewise.
3035 * alpha-tdep.c: Likewise.
3036 * alphanbsd-tdep.c: Likewise.
3037 * amd64-dicos-tdep.c: Likewise.
3038 * amd64-linux-tdep.c: Likewise.
3039 * amd64-nat.c: Likewise.
3040 * amd64-sol2-tdep.c: Likewise.
3041 * amd64fbsd-tdep.c: Likewise.
3042 * amd64obsd-tdep.c: Likewise.
3043 * arch-utils.c: Likewise.
3044 * arm-linux-nat.c: Likewise.
3045 * arm-linux-tdep.c: Likewise.
3046 * arm-tdep.c: Likewise.
3047 * arm-wince-tdep.c: Likewise.
3048 * armbsd-tdep.c: Likewise.
3049 * armnbsd-nat.c: Likewise.
3050 * armnbsd-tdep.c: Likewise.
3051 * armobsd-tdep.c: Likewise.
3052 * avr-tdep.c: Likewise.
3053 * ax-gdb.c: Likewise.
3054 * ax-general.c: Likewise.
3055 * bcache.c: Likewise.
3056 * bfin-tdep.c: Likewise.
3057 * breakpoint.c: Likewise.
3058 * build-id.c: Likewise.
3059 * buildsym.c: Likewise.
3060 * c-exp.y: Likewise.
3061 * c-lang.c: Likewise.
3062 * c-typeprint.c: Likewise.
3063 * c-valprint.c: Likewise.
3064 * charset.c: Likewise.
3065 * cli-out.c: Likewise.
3066 * cli/cli-cmds.c: Likewise.
3067 * cli/cli-decode.c: Likewise.
3068 * cli/cli-dump.c: Likewise.
3069 * cli/cli-interp.c: Likewise.
3070 * cli/cli-logging.c: Likewise.
3071 * cli/cli-script.c: Likewise.
3072 * cli/cli-setshow.c: Likewise.
3073 * cli/cli-utils.c: Likewise.
3074 * coffread.c: Likewise.
3075 * common/agent.c: Likewise.
3076 * common/buffer.c: Likewise.
3077 * common/buffer.h: Likewise.
3078 * common/common-utils.c: Likewise.
3079 * common/filestuff.c: Likewise.
3080 * common/filestuff.c: Likewise.
3081 * common/format.c: Likewise.
3082 * common/print-utils.c: Likewise.
3083 * common/rsp-low.c: Likewise.
3084 * common/signals.c: Likewise.
3085 * common/vec.h: Likewise.
3086 * common/xml-utils.c: Likewise.
3087 * core-regset.c: Likewise.
3088 * corefile.c: Likewise.
3089 * corelow.c: Likewise.
3090 * cp-abi.c: Likewise.
3091 * cp-name-parser.y: Likewise.
3092 * cp-support.c: Likewise.
3093 * cp-valprint.c: Likewise.
3094 * cris-tdep.c: Likewise.
3095 * d-exp.y: Likewise.
3096 * darwin-nat.c: Likewise.
3097 * dbxread.c: Likewise.
3098 * dcache.c: Likewise.
3099 * demangle.c: Likewise.
3100 * dicos-tdep.c: Likewise.
3101 * disasm.c: Likewise.
3102 * doublest.c: Likewise.
3103 * dsrec.c: Likewise.
3104 * dummy-frame.c: Likewise.
3105 * dwarf2-frame.c: Likewise.
3106 * dwarf2loc.c: Likewise.
3107 * dwarf2read.c: Likewise.
3108 * elfread.c: Likewise.
3109 * environ.c: Likewise.
3110 * eval.c: Likewise.
3111 * event-loop.c: Likewise.
3112 * exceptions.c: Likewise.
3113 * exec.c: Likewise.
3114 * expprint.c: Likewise.
3115 * f-exp.y: Likewise.
3116 * f-lang.c: Likewise.
3117 * f-typeprint.c: Likewise.
3118 * f-valprint.c: Likewise.
3119 * fbsd-nat.c: Likewise.
3120 * findcmd.c: Likewise.
3121 * findvar.c: Likewise.
3122 * fork-child.c: Likewise.
3123 * frame.c: Likewise.
3124 * frv-linux-tdep.c: Likewise.
3125 * frv-tdep.c: Likewise.
3126 * gdb.c: Likewise.
3127 * gdb_bfd.c: Likewise.
3128 * gdbarch.c: Likewise.
3129 * gdbarch.sh: Likewise.
3130 * gdbtypes.c: Likewise.
3131 * gnu-nat.c: Likewise.
3132 * gnu-v2-abi.c: Likewise.
3133 * gnu-v3-abi.c: Likewise.
3134 * go-exp.y: Likewise.
3135 * go-lang.c: Likewise.
3136 * go32-nat.c: Likewise.
3137 * guile/guile.c: Likewise.
3138 * guile/scm-auto-load.c: Likewise.
3139 * hppa-hpux-tdep.c: Likewise.
3140 * hppa-linux-nat.c: Likewise.
3141 * hppanbsd-tdep.c: Likewise.
3142 * hppaobsd-tdep.c: Likewise.
3143 * i386-cygwin-tdep.c: Likewise.
3144 * i386-dicos-tdep.c: Likewise.
3145 * i386-linux-tdep.c: Likewise.
3146 * i386-nto-tdep.c: Likewise.
3147 * i386-sol2-tdep.c: Likewise.
3148 * i386-tdep.c: Likewise.
3149 * i386bsd-tdep.c: Likewise.
3150 * i386gnu-nat.c: Likewise.
3151 * i386nbsd-tdep.c: Likewise.
3152 * i386obsd-tdep.c: Likewise.
3153 * i387-tdep.c: Likewise.
3154 * ia64-libunwind-tdep.c: Likewise.
3155 * ia64-linux-nat.c: Likewise.
3156 * inf-child.c: Likewise.
3157 * inf-ptrace.c: Likewise.
3158 * inf-ttrace.c: Likewise.
3159 * infcall.c: Likewise.
3160 * infcmd.c: Likewise.
3161 * inflow.c: Likewise.
3162 * infrun.c: Likewise.
3163 * interps.c: Likewise.
3164 * iq2000-tdep.c: Likewise.
3165 * irix5-nat.c: Likewise.
3166 * jv-exp.y: Likewise.
3167 * jv-lang.c: Likewise.
3168 * jv-typeprint.c: Likewise.
3169 * jv-valprint.c: Likewise.
3170 * language.c: Likewise.
3171 * linux-fork.c: Likewise.
3172 * linux-nat.c: Likewise.
3173 * lm32-tdep.c: Likewise.
3174 * m2-exp.y: Likewise.
3175 * m2-typeprint.c: Likewise.
3176 * m32c-tdep.c: Likewise.
3177 * m32r-linux-nat.c: Likewise.
3178 * m32r-linux-tdep.c: Likewise.
3179 * m32r-rom.c: Likewise.
3180 * m32r-tdep.c: Likewise.
3181 * m68hc11-tdep.c: Likewise.
3182 * m68k-tdep.c: Likewise.
3183 * m68kbsd-tdep.c: Likewise.
3184 * m68klinux-nat.c: Likewise.
3185 * m68klinux-tdep.c: Likewise.
3186 * m88k-tdep.c: Likewise.
3187 * machoread.c: Likewise.
3188 * macrocmd.c: Likewise.
3189 * main.c: Likewise.
3190 * mdebugread.c: Likewise.
3191 * mem-break.c: Likewise.
3192 * memattr.c: Likewise.
3193 * memory-map.c: Likewise.
3194 * mep-tdep.c: Likewise.
3195 * mi/mi-cmd-break.c: Likewise.
3196 * mi/mi-cmd-disas.c: Likewise.
3197 * mi/mi-cmd-env.c: Likewise.
3198 * mi/mi-cmd-stack.c: Likewise.
3199 * mi/mi-cmd-var.c: Likewise.
3200 * mi/mi-cmds.c: Likewise.
3201 * mi/mi-console.c: Likewise.
3202 * mi/mi-getopt.c: Likewise.
3203 * mi/mi-interp.c: Likewise.
3204 * mi/mi-main.c: Likewise.
3205 * mi/mi-parse.c: Likewise.
3206 * microblaze-rom.c: Likewise.
3207 * microblaze-tdep.c: Likewise.
3208 * mingw-hdep.c: Likewise.
3209 * minidebug.c: Likewise.
3210 * minsyms.c: Likewise.
3211 * mips-irix-tdep.c: Likewise.
3212 * mips-linux-tdep.c: Likewise.
3213 * mips-tdep.c: Likewise.
3214 * mips64obsd-tdep.c: Likewise.
3215 * mipsnbsd-tdep.c: Likewise.
3216 * mipsread.c: Likewise.
3217 * mn10300-linux-tdep.c: Likewise.
3218 * mn10300-tdep.c: Likewise.
3219 * monitor.c: Likewise.
3220 * moxie-tdep.c: Likewise.
3221 * mt-tdep.c: Likewise.
3222 * nat/linux-btrace.c: Likewise.
3223 * nat/linux-osdata.c: Likewise.
3224 * nat/linux-procfs.c: Likewise.
3225 * nat/linux-ptrace.c: Likewise.
3226 * nat/linux-waitpid.c: Likewise.
3227 * nbsd-tdep.c: Likewise.
3228 * nios2-linux-tdep.c: Likewise.
3229 * nto-procfs.c: Likewise.
3230 * nto-tdep.c: Likewise.
3231 * objc-lang.c: Likewise.
3232 * objfiles.c: Likewise.
3233 * opencl-lang.c: Likewise.
3234 * osabi.c: Likewise.
3235 * osdata.c: Likewise.
3236 * p-exp.y: Likewise.
3237 * p-lang.c: Likewise.
3238 * p-typeprint.c: Likewise.
3239 * parse.c: Likewise.
3240 * posix-hdep.c: Likewise.
3241 * ppc-linux-nat.c: Likewise.
3242 * ppc-sysv-tdep.c: Likewise.
3243 * ppcfbsd-tdep.c: Likewise.
3244 * ppcnbsd-tdep.c: Likewise.
3245 * ppcobsd-tdep.c: Likewise.
3246 * printcmd.c: Likewise.
3247 * procfs.c: Likewise.
3248 * prologue-value.c: Likewise.
3249 * python/py-auto-load.c: Likewise.
3250 * python/py-gdb-readline.c: Likewise.
3251 * ravenscar-thread.c: Likewise.
3252 * regcache.c: Likewise.
3253 * registry.c: Likewise.
3254 * remote-fileio.c: Likewise.
3255 * remote-m32r-sdi.c: Likewise.
3256 * remote-mips.c: Likewise.
3257 * remote-notif.c: Likewise.
3258 * remote-sim.c: Likewise.
3259 * remote.c: Likewise.
3260 * reverse.c: Likewise.
3261 * rs6000-aix-tdep.c: Likewise.
3262 * ser-base.c: Likewise.
3263 * ser-go32.c: Likewise.
3264 * ser-mingw.c: Likewise.
3265 * ser-pipe.c: Likewise.
3266 * ser-tcp.c: Likewise.
3267 * ser-unix.c: Likewise.
3268 * serial.c: Likewise.
3269 * sh-tdep.c: Likewise.
3270 * sh64-tdep.c: Likewise.
3271 * shnbsd-tdep.c: Likewise.
3272 * skip.c: Likewise.
3273 * sol-thread.c: Likewise.
3274 * solib-dsbt.c: Likewise.
3275 * solib-frv.c: Likewise.
3276 * solib-osf.c: Likewise.
3277 * solib-som.c: Likewise.
3278 * solib-spu.c: Likewise.
3279 * solib-target.c: Likewise.
3280 * solib.c: Likewise.
3281 * somread.c: Likewise.
3282 * source.c: Likewise.
3283 * sparc-nat.c: Likewise.
3284 * sparc-sol2-tdep.c: Likewise.
3285 * sparc-tdep.c: Likewise.
3286 * sparc64-tdep.c: Likewise.
3287 * sparc64fbsd-tdep.c: Likewise.
3288 * sparc64nbsd-tdep.c: Likewise.
3289 * sparcnbsd-tdep.c: Likewise.
3290 * spu-linux-nat.c: Likewise.
3291 * spu-multiarch.c: Likewise.
3292 * spu-tdep.c: Likewise.
3293 * stabsread.c: Likewise.
3294 * stack.c: Likewise.
3295 * std-regs.c: Likewise.
3296 * symfile.c: Likewise.
3297 * symmisc.c: Likewise.
3298 * symtab.c: Likewise.
3299 * target.c: Likewise.
3300 * thread.c: Likewise.
3301 * tilegx-linux-nat.c: Likewise.
3302 * tilegx-tdep.c: Likewise.
3303 * top.c: Likewise.
3304 * tracepoint.c: Likewise.
3305 * tui/tui-command.c: Likewise.
3306 * tui/tui-data.c: Likewise.
3307 * tui/tui-disasm.c: Likewise.
3308 * tui/tui-file.c: Likewise.
3309 * tui/tui-layout.c: Likewise.
3310 * tui/tui-out.c: Likewise.
3311 * tui/tui-regs.c: Likewise.
3312 * tui/tui-source.c: Likewise.
3313 * tui/tui-stack.c: Likewise.
3314 * tui/tui-win.c: Likewise.
3315 * tui/tui-windata.c: Likewise.
3316 * tui/tui-winsource.c: Likewise.
3317 * typeprint.c: Likewise.
3318 * ui-file.c: Likewise.
3319 * ui-out.c: Likewise.
3320 * user-regs.c: Likewise.
3321 * utils.c: Likewise.
3322 * v850-tdep.c: Likewise.
3323 * valarith.c: Likewise.
3324 * valops.c: Likewise.
3325 * valprint.c: Likewise.
3326 * value.c: Likewise.
3327 * varobj.c: Likewise.
3328 * vax-tdep.c: Likewise.
3329 * vaxnbsd-tdep.c: Likewise.
3330 * vaxobsd-tdep.c: Likewise.
3331 * windows-nat.c: Likewise.
3332 * xcoffread.c: Likewise.
3333 * xml-support.c: Likewise.
3334 * xstormy16-tdep.c: Likewise.
3335 * xtensa-linux-nat.c: Likewise.
3336
3337 2014-08-07 Gary Benson <gbenson@redhat.com>
3338
3339 * common/common-defs.h: Include gdb_assert.h.
3340 * aarch64-tdep.c: Do not include gdb_assert.h.
3341 * addrmap.c: Likewise.
3342 * aix-thread.c: Likewise.
3343 * alpha-linux-tdep.c: Likewise.
3344 * alpha-mdebug-tdep.c: Likewise.
3345 * alphanbsd-tdep.c: Likewise.
3346 * amd64-nat.c: Likewise.
3347 * amd64-tdep.c: Likewise.
3348 * amd64bsd-nat.c: Likewise.
3349 * amd64fbsd-nat.c: Likewise.
3350 * amd64fbsd-tdep.c: Likewise.
3351 * amd64nbsd-nat.c: Likewise.
3352 * amd64nbsd-tdep.c: Likewise.
3353 * amd64obsd-nat.c: Likewise.
3354 * amd64obsd-tdep.c: Likewise.
3355 * arch-utils.c: Likewise.
3356 * arm-tdep.c: Likewise.
3357 * armbsd-tdep.c: Likewise.
3358 * auxv.c: Likewise.
3359 * bcache.c: Likewise.
3360 * bfin-tdep.c: Likewise.
3361 * blockframe.c: Likewise.
3362 * breakpoint.c: Likewise.
3363 * bsd-kvm.c: Likewise.
3364 * bsd-uthread.c: Likewise.
3365 * buildsym.c: Likewise.
3366 * c-exp.y: Likewise.
3367 * c-lang.c: Likewise.
3368 * charset.c: Likewise.
3369 * cleanups.c: Likewise.
3370 * cli-out.c: Likewise.
3371 * cli/cli-decode.c: Likewise.
3372 * cli/cli-dump.c: Likewise.
3373 * cli/cli-logging.c: Likewise.
3374 * cli/cli-script.c: Likewise.
3375 * cli/cli-utils.c: Likewise.
3376 * coffread.c: Likewise.
3377 * common/common-utils.c: Likewise.
3378 * common/queue.h: Likewise.
3379 * common/signals.c: Likewise.
3380 * common/vec.h: Likewise.
3381 * complaints.c: Likewise.
3382 * completer.c: Likewise.
3383 * corelow.c: Likewise.
3384 * cp-abi.c: Likewise.
3385 * cp-name-parser.y: Likewise.
3386 * cp-namespace.c: Likewise.
3387 * cp-support.c: Likewise.
3388 * cris-tdep.c: Likewise.
3389 * dbxread.c: Likewise.
3390 * dictionary.c: Likewise.
3391 * doublest.c: Likewise.
3392 * dsrec.c: Likewise.
3393 * dummy-frame.c: Likewise.
3394 * dwarf2-frame-tailcall.c: Likewise.
3395 * dwarf2-frame.c: Likewise.
3396 * dwarf2expr.c: Likewise.
3397 * dwarf2loc.c: Likewise.
3398 * dwarf2read.c: Likewise.
3399 * eval.c: Likewise.
3400 * event-loop.c: Likewise.
3401 * exceptions.c: Likewise.
3402 * expprint.c: Likewise.
3403 * f-valprint.c: Likewise.
3404 * fbsd-nat.c: Likewise.
3405 * findvar.c: Likewise.
3406 * frame-unwind.c: Likewise.
3407 * frame.c: Likewise.
3408 * frv-tdep.c: Likewise.
3409 * gcore.c: Likewise.
3410 * gdb-dlfcn.c: Likewise.
3411 * gdb_bfd.c: Likewise.
3412 * gdbarch.c: Likewise.
3413 * gdbarch.sh: Likewise.
3414 * gdbtypes.c: Likewise.
3415 * gnu-nat.c: Likewise.
3416 * gnu-v3-abi.c: Likewise.
3417 * go-lang.c: Likewise.
3418 * guile/scm-exception.c: Likewise.
3419 * guile/scm-gsmob.c: Likewise.
3420 * guile/scm-lazy-string.c: Likewise.
3421 * guile/scm-math.c: Likewise.
3422 * guile/scm-pretty-print.c: Likewise.
3423 * guile/scm-safe-call.c: Likewise.
3424 * guile/scm-utils.c: Likewise.
3425 * guile/scm-value.c: Likewise.
3426 * h8300-tdep.c: Likewise.
3427 * hppa-hpux-nat.c: Likewise.
3428 * hppa-tdep.c: Likewise.
3429 * hppanbsd-tdep.c: Likewise.
3430 * hppaobsd-tdep.c: Likewise.
3431 * i386-darwin-nat.c: Likewise.
3432 * i386-darwin-tdep.c: Likewise.
3433 * i386-nto-tdep.c: Likewise.
3434 * i386-tdep.c: Likewise.
3435 * i386bsd-nat.c: Likewise.
3436 * i386fbsd-tdep.c: Likewise.
3437 * i386gnu-nat.c: Likewise.
3438 * i386nbsd-tdep.c: Likewise.
3439 * i386obsd-tdep.c: Likewise.
3440 * i387-tdep.c: Likewise.
3441 * ia64-libunwind-tdep.c: Likewise.
3442 * ia64-tdep.c: Likewise.
3443 * inf-ptrace.c: Likewise.
3444 * inf-ttrace.c: Likewise.
3445 * infcall.c: Likewise.
3446 * infcmd.c: Likewise.
3447 * infrun.c: Likewise.
3448 * inline-frame.c: Likewise.
3449 * interps.c: Likewise.
3450 * jv-lang.c: Likewise.
3451 * jv-typeprint.c: Likewise.
3452 * linux-fork.c: Likewise.
3453 * linux-nat.c: Likewise.
3454 * linux-thread-db.c: Likewise.
3455 * m32c-tdep.c: Likewise.
3456 * m32r-linux-nat.c: Likewise.
3457 * m32r-tdep.c: Likewise.
3458 * m68k-tdep.c: Likewise.
3459 * m68kbsd-nat.c: Likewise.
3460 * m68kbsd-tdep.c: Likewise.
3461 * m88k-tdep.c: Likewise.
3462 * machoread.c: Likewise.
3463 * macroexp.c: Likewise.
3464 * macrotab.c: Likewise.
3465 * maint.c: Likewise.
3466 * mdebugread.c: Likewise.
3467 * memory-map.c: Likewise.
3468 * mep-tdep.c: Likewise.
3469 * mi/mi-common.c: Likewise.
3470 * microblaze-tdep.c: Likewise.
3471 * mingw-hdep.c: Likewise.
3472 * mips-linux-nat.c: Likewise.
3473 * mips-linux-tdep.c: Likewise.
3474 * mips-tdep.c: Likewise.
3475 * mips64obsd-tdep.c: Likewise.
3476 * mipsnbsd-tdep.c: Likewise.
3477 * mn10300-linux-tdep.c: Likewise.
3478 * mn10300-tdep.c: Likewise.
3479 * moxie-tdep.c: Likewise.
3480 * mt-tdep.c: Likewise.
3481 * nat/linux-btrace.c: Likewise.
3482 * nat/linux-osdata.c: Likewise.
3483 * nat/linux-ptrace.c: Likewise.
3484 * nat/mips-linux-watch.c: Likewise.
3485 * nios2-linux-tdep.c: Likewise.
3486 * nios2-tdep.c: Likewise.
3487 * objc-lang.c: Likewise.
3488 * objfiles.c: Likewise.
3489 * obsd-nat.c: Likewise.
3490 * opencl-lang.c: Likewise.
3491 * osabi.c: Likewise.
3492 * parse.c: Likewise.
3493 * ppc-linux-nat.c: Likewise.
3494 * ppc-sysv-tdep.c: Likewise.
3495 * ppcfbsd-nat.c: Likewise.
3496 * ppcfbsd-tdep.c: Likewise.
3497 * ppcnbsd-nat.c: Likewise.
3498 * ppcnbsd-tdep.c: Likewise.
3499 * ppcobsd-nat.c: Likewise.
3500 * ppcobsd-tdep.c: Likewise.
3501 * printcmd.c: Likewise.
3502 * procfs.c: Likewise.
3503 * prologue-value.c: Likewise.
3504 * psymtab.c: Likewise.
3505 * python/py-lazy-string.c: Likewise.
3506 * python/py-value.c: Likewise.
3507 * regcache.c: Likewise.
3508 * reggroups.c: Likewise.
3509 * registry.c: Likewise.
3510 * remote-sim.c: Likewise.
3511 * remote.c: Likewise.
3512 * rs6000-aix-tdep.c: Likewise.
3513 * rs6000-tdep.c: Likewise.
3514 * s390-linux-tdep.c: Likewise.
3515 * score-tdep.c: Likewise.
3516 * ser-base.c: Likewise.
3517 * ser-mingw.c: Likewise.
3518 * sh-tdep.c: Likewise.
3519 * sh64-tdep.c: Likewise.
3520 * solib-darwin.c: Likewise.
3521 * solib-spu.c: Likewise.
3522 * solib-svr4.c: Likewise.
3523 * source.c: Likewise.
3524 * sparc-nat.c: Likewise.
3525 * sparc-sol2-tdep.c: Likewise.
3526 * sparc-tdep.c: Likewise.
3527 * sparc64-sol2-tdep.c: Likewise.
3528 * sparc64-tdep.c: Likewise.
3529 * sparc64fbsd-tdep.c: Likewise.
3530 * sparc64nbsd-tdep.c: Likewise.
3531 * sparc64obsd-tdep.c: Likewise.
3532 * sparcnbsd-tdep.c: Likewise.
3533 * sparcobsd-tdep.c: Likewise.
3534 * spu-multiarch.c: Likewise.
3535 * spu-tdep.c: Likewise.
3536 * stabsread.c: Likewise.
3537 * stack.c: Likewise.
3538 * symfile.c: Likewise.
3539 * symtab.c: Likewise.
3540 * target-descriptions.c: Likewise.
3541 * target-memory.c: Likewise.
3542 * target.c: Likewise.
3543 * tic6x-linux-tdep.c: Likewise.
3544 * tic6x-tdep.c: Likewise.
3545 * tilegx-linux-nat.c: Likewise.
3546 * tilegx-tdep.c: Likewise.
3547 * top.c: Likewise.
3548 * tramp-frame.c: Likewise.
3549 * tui/tui-out.c: Likewise.
3550 * tui/tui-winsource.c: Likewise.
3551 * ui-out.c: Likewise.
3552 * user-regs.c: Likewise.
3553 * utils.c: Likewise.
3554 * v850-tdep.c: Likewise.
3555 * valops.c: Likewise.
3556 * value.c: Likewise.
3557 * varobj.c: Likewise.
3558 * vax-nat.c: Likewise.
3559 * xml-syscall.c: Likewise.
3560 * xml-tdesc.c: Likewise.
3561 * xstormy16-tdep.c: Likewise.
3562 * xtensa-linux-nat.c: Likewise.
3563 * xtensa-tdep.c: Likewise.
3564
3565 2014-08-07 Gary Benson <gbenson@redhat.com>
3566
3567 * common/common-defs.h: Include common-utils.h.
3568 * defs.h: Do not include common-utils.h.
3569 * common/gdb_assert.h: Likewise.
3570 * darwin-nat.h: Likewise.
3571 * nat/linux-btrace.c: Likewise.
3572 * target/waitstatus.h: Likewise.
3573
3574 2014-08-07 Gary Benson <gbenson@redhat.com>
3575
3576 * common/common-defs.h: Include ptid.h.
3577 * defs.h: Do not include ptid.h.
3578 * inferior.h: Likewise.
3579 * infrun.h: Likewise.
3580 * nat/linux-btrace.h: Likewise.
3581 * nat/linux-osdata.h: Likewise.
3582 * target/waitstatus.h: Likewise.
3583
3584 2014-08-07 Gary Benson <gbenson@redhat.com>
3585
3586 * common/common-defs.h: Include gdb_locale.h.
3587 * defs.h: Do not include gdb_locale.h.
3588
3589 2014-08-07 Gary Benson <gbenson@redhat.com>
3590
3591 * common/common-defs.h: Include gdb/signals.h.
3592 * defs.h: Do not include gdb/signals.h.
3593
3594 2014-08-07 Gary Benson <gbenson@redhat.com>
3595
3596 * common/common-defs.h: Include pathmax.h.
3597 * defs.h: Do not include pathmax.h.
3598
3599 2014-08-07 Gary Benson <gbenson@redhat.com>
3600
3601 * common/common-defs.h: Include libiberty.h.
3602 * defs.h: Do not include libiberty.h.
3603 * common/queue.h: Likewise.
3604 * cp-name-parser.y: Likewise.
3605 * mi/mi-cmd-catch.c: Likewise.
3606 * python/python.c: Likewise.
3607
3608 2014-08-07 Gary Benson <gbenson@redhat.com>
3609
3610 * common/common-defs.h: Include ansidecl.h.
3611 * defs.h: Do not include ansidecl.h.
3612 * common/buffer.h: Likewise.
3613 * common/common-utils.h: Likewise.
3614
3615 2014-08-07 Gary Benson <gbenson@redhat.com>
3616
3617 * common/common-defs.h: Include stddef.h.
3618 * defs.h: Do not include stddef.h.
3619 * common/common-utils.h: Likewise.
3620 * amd64fbsd-nat.c: Likewise.
3621 * bcache.c: Likewise.
3622 * charset.c: Likewise.
3623 * common/buffer.h: Likewise.
3624 * common/vec.h: Likewise.
3625 * i386bsd-nat.c: Likewise.
3626 * nat/linux-btrace.h: Likewise.
3627 * ppcfbsd-nat.c: Likewise.
3628 * ppcnbsd-tdep.h: Likewise.
3629 * ppcobsd-nat.c: Likewise.
3630 * ppcobsd-tdep.h: Likewise.
3631 * python/py-gdb-readline.c: Likewise.
3632
3633 2014-08-07 Gary Benson <gbenson@redhat.com>
3634
3635 * common/common-defs.h: Include stdarg.h.
3636 * defs.h: Do not include stdarg.h.
3637 * ada-lang.c: Likewise.
3638 * common/common-utils.h: Likewise.
3639 * guile/scm-string.c: Likewise.
3640 * guile/scm-utils.c: Likewise.
3641 * m32c-tdep.c: Likewise.
3642
3643 2014-08-07 Gary Benson <gbenson@redhat.com>
3644
3645 * common/common-defs.h: Include stdlib.h.
3646 * defs.h: Do not include stdlib.h.
3647 * addrmap.c: Likewise.
3648 * bcache.c: Likewise.
3649 * common/buffer.c: Likewise.
3650 * common/common-utils.c: Likewise.
3651 * cp-name-parser.y: Likewise.
3652 * go32-nat.c: Likewise.
3653 * mn10300-linux-tdep.c: Likewise.
3654 * nat/linux-osdata.c: Likewise.
3655 * tui/tui.c: Likewise.
3656 * windows-nat.c: Likewise.
3657
3658 2014-08-07 Gary Benson <gbenson@redhat.com>
3659
3660 * common/common-defs.h: Include stdio.h.
3661 * defs.h: Do not include stdio.h.
3662 * ada-lang.c: Likewise.
3663 * common/buffer.c: Likewise.
3664 * common/common-utils.c: Likewise.
3665 * cp-name-parser.y: Likewise.
3666 * gnu-nat.c: Likewise.
3667 * go32-nat.c: Likewise.
3668 * i386gnu-nat.c: Likewise.
3669 * proc-api.c: Likewise.
3670 * proc-events.c: Likewise.
3671 * proc-flags.c: Likewise.
3672 * proc-why.c: Likewise.
3673 * python/python-internal.h: Likewise.
3674 * target-memory.c: Likewise.
3675 * tui/tui-io.c: Likewise.
3676 * tui/tui.c: Likewise.
3677
3678 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3679
3680 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3681 (scan_dyntag_auxv): Same.
3682
3683 2014-08-06 Yao Qi <yao@codesourcery.com>
3684
3685 * amd64-linux-nat.c: Remove duplicated include
3686 "x86-linux-nat.h".
3687 * i386-linux-nat.c: Likewise.
3688
3689 2014-08-06 Yao Qi <yao@codesourcery.com>
3690
3691 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3692 operand" with "Special opcode" in comments.
3693
3694 2014-08-05 Gary Benson <gbenson@redhat.com>
3695
3696 * interps.c (initialize_interps): Remove prototype.
3697 (interpreter_initialized): Remove static global.
3698 (interp_add): Do not call initialize_interps.
3699 (initialize_interps): Remove function.
3700
3701 2014-08-05 Gary Benson <gbenson@redhat.com>
3702
3703 * utils.c (vwarning): Remove spurious va_end.
3704
3705 2014-08-05 Alan Modra <amodra@gmail.com>
3706
3707 * charset.c (convert_between_encodings): Cast result of obstack_base.
3708 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3709 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3710 (read_unwind_info): Use size_t for some locals.
3711 * jit.c (finalize_symtab): Likewise.
3712 * utils.c (hashtab_obstack_allocate): Likewise.
3713 * symmisc.c (print_objfile_statistics): Update format strings.
3714
3715 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3716
3717 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3718 (Changes in GDB 7.8): ... here.
3719
3720 2014-08-04 Tom Tromey <tromey@redhat.com>
3721
3722 * target.c (set_targetdebug): New function.
3723 (initialize_targets): Pass set_targetdebug when creating "set
3724 debug target".
3725
3726 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3727
3728 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3729 if detecting a variable-sized field that is not the last field.
3730 Fix struct type length computation.
3731
3732 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3733
3734 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3735 Add debug trace.
3736
3737 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3738
3739 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3740 Remove "+ 8" offset in computation of CHAIN_VMA.
3741
3742 2014-07-31 Doug Evans <dje@google.com>
3743
3744 * inflow.c (child_terminal_inferior): Add comment.
3745 (child_terminal_ours_for_output): Add comment.
3746 (child_terminal_ours): Add comment.
3747 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3748 (linux_nat_terminal_ours): Add comment.
3749
3750 2014-07-31 Gary Benson <gbenson@redhat.com>
3751
3752 * common/btrace-common.h: Do not include defs.h or server.h.
3753 * nat/mips-linux-watch.h: Likewise.
3754 * gdb-dlfcn.h: Do not include defs.h.
3755 * tracefile.h: Likewise.
3756
3757 2014-07-30 Roland McGrath <mcgrathr@google.com>
3758
3759 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3760
3761 2014-07-30 Tom Tromey <tromey@redhat.com>
3762
3763 * bsd-kvm.c (bsd_kvm_open): Constify.
3764 * corelow.c (core_open): Constify.
3765 * ctf.c (ctf_open): Constify.
3766 * dbug-rom.c (dbug_open): Constify.
3767 * exec.c (exec_open): Constify.
3768 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3769 * microblaze-rom.c (picobug_open): Constify.
3770 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3771 Constify.
3772 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3773 * record-btrace.c (record_btrace_open): Constify.
3774 * record-full.c (record_full_core_open_1, record_full_open_1)
3775 (record_full_open): Constify.
3776 * remote-m32r-sdi.c (m32r_open): Constify.
3777 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3778 (rockhopper_open, lsi_open): Constify.
3779 * remote-sim.c (gdbsim_open): Constify.
3780 * remote.c (remote_open, extended_remote_open, remote_open_1):
3781 Constify.
3782 * target.h (struct target_ops) <to_open>: Make "arg" const.
3783 * tracefile-tfile.c (tfile_open): Constify.
3784
3785 2014-07-30 Tom Tromey <tromey@redhat.com>
3786
3787 * breakpoint.c (map_breakpoint_numbers): Update.
3788 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3789 (get_number_const): New function.
3790 (get_number): Rewrite using get_number_const.
3791 (init_number_or_range): Make "string" const.
3792 (number_is_in_list): Make "list" const.
3793 * cli/cli-utils.h (get_number_const): Declare.
3794 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3795 (init_number_or_range, number_is_in_list): Update.
3796 * printcmd.c (map_display_numbers): Update.
3797 * value.c (value_from_history_ref): Constify.
3798 * value.h (value_from_history_ref): Update.
3799
3800 2014-07-30 Tom Tromey <tromey@redhat.com>
3801
3802 * corefile.c (hook_type, call_extra_exec_file_hooks)
3803 (specify_exec_file_hook): Constify.
3804 * exec.c (exec_file_attach): Make "filename" const.
3805 * gdbcore.h (deprecated_exec_file_display_hook)
3806 (specify_exec_file_hook, exec_file_attach): Constify.
3807 * main.c (captured_main): Use catch_command_errors_const.
3808
3809 2014-07-30 Tom Tromey <tromey@redhat.com>
3810
3811 * target.c (open_target): New function.
3812 (add_target_with_completer, add_deprecated_target_alias): Use
3813 set_cmd_sfunc, set_cmd_context.
3814 (debug_to_open): Remove.
3815 (setup_target_debug): Update.
3816
3817 2014-07-30 Yao Qi <yao@codesourcery.com>
3818
3819 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3820 comments.
3821 * parse.c (exp_iterate): Update comments.
3822
3823 2014-07-30 Gary Benson <gbenson@redhat.com>
3824
3825 * common/common-defs.h: New file.
3826 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3827 * defs.h: Include common-defs.h.
3828 Do not include config.h or build-gnulib/config.h.
3829
3830 2014-07-30 Gary Benson <gbenson@redhat.com>
3831
3832 * common/common-utils.h: Do not include config.h.
3833 * nat/linux-btrace.h: Likewise.
3834
3835 2014-07-30 Gary Benson <gbenson@redhat.com>
3836
3837 * btrace.c: Include defs.h.
3838 * common/ptid.c: Include defs.h or server.h as appropriate.
3839 * nat/mips-linux-watch.c: Likewise.
3840
3841 2014-07-29 Tom Tromey <tromey@redhat.com>
3842
3843 * target.c (target_is_pushed): Simplify.
3844
3845 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3846
3847 GDB 7.8 released.
3848
3849 2014-07-29 Yao Qi <yao@codesourcery.com>
3850
3851 PR gdb/17206
3852 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3853
3854 2014-07-28 Doug Evans <xdje42@gmail.com>
3855
3856 PR guile/17203
3857 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3858 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3859 parameters.
3860
3861 2014-07-28 Will Newton <will.newton@linaro.org>
3862
3863 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3864 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3865 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3866 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3867 (THUMB2_EABI_SYSCALL): Likewise.
3868 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3869 struct tramp_frame.
3870 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3871 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3872
3873 2014-07-27 Doug Evans <xdje42@gmail.com>
3874
3875 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3876
3877 2014-07-27 Doug Evans <xdje42@gmail.com>
3878
3879 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3880
3881 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3882 Doug Evans <xdje42@gmail.com>
3883
3884 PR guile/17146
3885 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3886 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3887 * configure.ac: Try to use guild to compile an scm file, if it fails
3888 then disable guile support.
3889 * configure: Regenerate.
3890 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3891 GUILE_FILE_LIST.
3892 (GUILE_COMPILED_FILES): New variable.
3893 (GUILE_FILES) Update.
3894 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3895 (stamp-guile): Compile scm files.
3896 * guile/guile.c (boot_guile_support): New function.
3897 (standard_throw_args_p): New function.
3898 (print_standard_throw_error, print_throw_error): New functions.
3899 (handle_boot_error): New function.
3900 (initialize_scheme_side): Rewrite to call boot_guile_support.
3901 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3902 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3903
3904 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3905 Doug Evans <xdje42@gmail.com>
3906
3907 PR guile/17146
3908 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3909 * guile/lib/gdb/support.scm: New file.
3910 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3911 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3912 All uses updated.
3913 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3914 All uses updated.
3915 (%assert-type): Ditto, and renamed to assert-type.
3916 (%exception-print-style): Delete.
3917
3918 2014-07-26 Doug Evans <xdje42@gmail.com>
3919
3920 PR build/17105
3921 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3922 * configure: Regenerate.
3923 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3924 PYTHON_FILES.
3925 (PYTHON_FILES): New variable.
3926 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3927 (GUILE_FILES): New variable.
3928 (stamp-python, install-python, uninstall-python): Handle empty
3929 file list.
3930 (stamp-guile, install-guile, uninstall-guile): Ditto.
3931
3932 2014-07-26 Doug Evans <xdje42@gmail.com>
3933
3934 PR guile/17177
3935 * guile/lib/gdb.scm (pretty-printers): Export.
3936 (set-pretty-printers!): Export.
3937 * guile/lib/gdb/printing.scm (gdb module): Update.
3938 (prepend-pretty-printer!, append-pretty-printer!): Update.
3939 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3940 (pretty_printer_list_var): Delete.
3941 (pretty_printer_list): New static global.
3942 (gdbscm_pretty_printers): New function.
3943 (gdbscm_set_pretty_printers_x): New function.
3944 (ppscm_find_pretty_printer_from_gdb): Update.
3945 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3946 (gdbscm_initialize_pretty_printers): Update.
3947
3948 2014-07-26 Doug Evans <xdje42@gmail.com>
3949
3950 PR 17185
3951 * configure.ac: Add check for header gc/gc.h.
3952 Add check for function setenv.
3953 * configure: Regenerate.
3954 * config.in: Regenerate.
3955 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3956
3957 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3958
3959 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3960 variation in gdbarch matching.
3961
3962 2014-07-25 Tom Tromey <tromey@redhat.com>
3963
3964 * exec.c (using_exec_ops): Remove.
3965 (exec_close_1): Update. Remove extraneous block, reindent.
3966 (add_target_sections): Use target_is_pushed.
3967
3968 2014-07-25 Pedro Alves <palves@redhat.com>
3969
3970 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3971 * monitor.c (monitor_create_inferior): Likewise.
3972 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3973 * remote-sim.c (gdbsim_create_inferior): Likewise.
3974 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3975 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3976 * windows-nat.c (do_initial_windows_stuff): Likewise.
3977
3978 2014-07-25 Pedro Alves <palves@redhat.com>
3979
3980 * NEWS: Mention signal passing and "signal" command changes.
3981 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3982 comment.
3983 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3984 call.
3985 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3986 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3987 (jump_command): Adjust clear_proceed_status call.
3988 (signal_command): Warn if other thread that are resumed have
3989 signals that will be delivered. Adjust clear_proceed_status call.
3990 (until_next_command, finish_command)
3991 (proceed_after_attach_callback, attach_command_post_wait)
3992 (attach_command): Adjust clear_proceed_status call.
3993 * infrun.c (proceed_after_vfork_done): Likewise.
3994 (proceed_after_attach_callback): Adjust comment.
3995 (clear_proceed_status_thread): Clear stop_signal if not in pass
3996 state.
3997 (clear_proceed_status_callback): Delete.
3998 (clear_proceed_status): New 'step' parameter. Only clear the
3999 proceed status of threads the command being prepared is about to
4000 resume.
4001 (proceed): If passed in an explicit signal, override stop_signal
4002 with it. Don't pass the last stop signal to the thread we're
4003 resuming.
4004 (init_wait_for_inferior): Adjust clear_proceed_status call.
4005 (switch_back_to_stepped_thread): Clear the signal if it should not
4006 be passed.
4007 * infrun.h (clear_proceed_status): New 'step' parameter.
4008 (user_visible_resume_ptid): Add comment.
4009 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4010 signal is in pass state.
4011 * remote.c (append_pending_thread_resumptions): Likewise.
4012 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4013
4014 2014-07-25 Tom Tromey <tromey@redhat.com>
4015
4016 * target.h (target_stopped_data_address)
4017 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4018 parentheses.
4019
4020 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4021
4022 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4023 comments.
4024 (avr_pointer_to_address): Likewise.
4025
4026 2014-07-24 Tom Tromey <tromey@redhat.com>
4027
4028 * monitor.c (compile_pattern): Update.
4029 * target.h (struct target_ops) <to_shortname, to_longname,
4030 to_doc>: Now const.
4031
4032 2014-07-24 Tom Tromey <tromey@redhat.com>
4033
4034 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4035 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4036 (add_info_alias, add_com): Make "doc" const.
4037 (print_doc_line): Make "str" const.
4038 (delete_cmd): Update.
4039 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4040 (print_doc_line): Update.
4041 * cli/cli-script.c (document_command): Update.
4042 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4043 (add_com, add_info, add_info_alias): Update.
4044 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4045 * python/py-cmd.c (cmdpy_destroyer): Update.
4046
4047 2014-07-24 Tom Tromey <tromey@redhat.com>
4048
4049 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4050 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4051 (help_cmd_list): Constify.
4052 (lookup_cmd): Update.
4053 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4054 const.
4055 (help_cmd_list, apropos_cmd): Update.
4056 * cli/cli-script.c (show_user): Update.
4057 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4058 * cli/cli-setshow.h (cmd_show_list): Update.
4059 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4060 (cmd_show_list): Update.
4061 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4062 * python/py-cmd.c (cmdpy_destroyer): Update.
4063
4064 2014-07-24 Tom Tromey <tromey@redhat.com>
4065
4066 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4067 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4068 const.
4069 * command.h (deprecate_cmd): Update.
4070 * maint.c (maintenance_do_deprecate): Add casts.
4071
4072 2014-07-24 Tom Tromey <tromey@redhat.com>
4073
4074 * cli/cli-decode.c (help_cmd): Make parameter "const".
4075 * cli/cli-decode.h (help_cmd): Update.
4076
4077 2014-07-24 Tom Tromey <tromey@redhat.com>
4078
4079 * stack.c (up_silently_base, down_silently_base): Make argument
4080 const.
4081
4082 2014-07-24 Tom Tromey <tromey@redhat.com>
4083
4084 * solib.c (solib_add): Make "pattern" const.
4085 * solib.h (solib_add): Update.
4086
4087 2014-07-24 Tom Tromey <tromey@redhat.com>
4088
4089 * remote.c (remote_serial_open, print_packet, putpkt)
4090 (putpkt_binary): Constify.
4091 * remote.h (putpkt): Update.
4092
4093 2014-07-24 Tom Tromey <tromey@redhat.com>
4094
4095 * monitor.c (monitor_open): Make "args" const.
4096 * monitor.h (monitor_open): Update.
4097
4098 2014-07-24 Tom Tromey <tromey@redhat.com>
4099
4100 * maint.c (match_bfd_flags): Make "string" const.
4101 (print_bfd_section_info): Remove casts.
4102 (print_objfile_section_info): Make "string" const.
4103
4104 2014-07-24 Tom Tromey <tromey@redhat.com>
4105
4106 * inf-child.c (inf_child_open_target): Make "arg" const.
4107 * inf-child.h (inf_child_open_target): Update.
4108
4109 2014-07-24 Tom Tromey <tromey@redhat.com>
4110
4111 * environ.c (unset_in_environ): Make "var" const.
4112 * environ.h (unset_in_environ): Update.
4113
4114 2014-07-24 Tom Tromey <tromey@redhat.com>
4115
4116 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4117 Make "cmd" const.
4118 (scan_filename_with_cleanup): Likewise.
4119 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4120 Make arguments const.
4121 (restore_command): Update.
4122
4123 2014-07-24 Pedro Alves <palves@redhat.com>
4124
4125 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4126
4127 2014-07-24 Tom Tromey <tromey@redhat.com>
4128 Gary Benson <gbenson@redhat.com>
4129
4130 * nat/linux-ptrace.c (additional_flags): New global.
4131 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4132 additional_flags; don't check GDBSERVER.
4133 (linux_ptrace_set_additional_flags): New function.
4134 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4135 Declare.
4136 * linux-nat.c (_initialize_linux_nat): Call
4137 linux_ptrace_set_additional_flags.
4138
4139 2014-07-24 Tom Tromey <tromey@redhat.com>
4140
4141 * make-target-delegates (munge_type, write_debugmethod): New
4142 functions.
4143 (debug_names): New global.
4144 ($TARGET_DEBUG_PRINTER): New global.
4145 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4146 name.
4147 Write debug methods. Generate init_debug_target.
4148 * target-debug.h: New file.
4149 * target-delegates.c: Rebuild.
4150 * target.c: Include target-debug.h.
4151 (debug_target): Hoist definition.
4152 (target_kill, target_get_section_table, target_memory_map)
4153 (target_flash_erase, target_flash_done, target_detach)
4154 (target_disconnect, target_wait, target_resume)
4155 (target_pass_signals, target_program_signals, target_follow_fork)
4156 (target_mourn_inferior, target_search_memory)
4157 (target_thread_address_space, target_close)
4158 (target_find_new_threads, target_core_of_thread)
4159 (target_verify_memory, target_insert_mask_watchpoint)
4160 (target_remove_mask_watchpoint): Remove targetdebug code.
4161 (debug_to_post_attach, debug_to_prepare_to_store)
4162 (debug_to_files_info, debug_to_insert_breakpoint)
4163 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4164 (debug_to_region_ok_for_hw_watchpoint)
4165 (debug_to_can_accel_watchpoint_condition)
4166 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4167 (debug_to_watchpoint_addr_within_range)
4168 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4169 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4170 (debug_to_terminal_init, debug_to_terminal_inferior)
4171 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4172 (debug_to_terminal_save_ours, debug_to_terminal_info)
4173 (debug_to_load, debug_to_post_startup_inferior)
4174 (debug_to_insert_fork_catchpoint)
4175 (debug_to_remove_fork_catchpoint)
4176 (debug_to_insert_vfork_catchpoint)
4177 (debug_to_remove_vfork_catchpoint)
4178 (debug_to_insert_exec_catchpoint)
4179 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4180 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4181 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4182 (setup_target_debug): Call init_debug_target.
4183 * target.h (TARGET_DEBUG_PRINTER): New macro.
4184 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4185 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4186
4187 2014-07-24 Gary Benson <gbenson@redhat.com>
4188
4189 * exceptions.h (throw_vfatal): Renamed to...
4190 (throw_vquit): New declaration.
4191 (throw_quit): Likewise.
4192 * exceptions.c (throw_vfatal): Renamed to...
4193 (throw_vquit): New function.
4194 (throw_quit): Likewise.
4195 (throw_error): Call throw_verror rather than throw_it.
4196 * utils.h (vfatal): Removed.
4197 (fatal): Likewise.
4198 * utils.c (vfatal): Removed.
4199 (fatal): Likewise.
4200 (internal_verror): Replaced call to fatal with call to throw_quit.
4201 (quit): Replaced calls to fatal with calls to throw_quit.
4202
4203 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4204
4205 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4206 target_read_code.
4207
4208 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4209
4210 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4211 less than zero in conditional expression.
4212
4213 2014-07-23 Tom Tromey <tromey@redhat.com>
4214
4215 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4216 ($INTRO_PART): Don't match whitespace.
4217 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4218 argument matching.
4219 ($METHOD): Add $METHOD_TRAILER.
4220 (trim): Rewrite.
4221 (scan_target_h): New sub.
4222 Change main loop not to collect state.
4223 * target-delegates.c: Rebuild.
4224
4225 2014-07-23 Gary Benson <gbenson@redhat.com>
4226
4227 * cp-support.c (gdb_demangle): Fix build on systems without
4228 sigaltstack.
4229
4230 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4231
4232 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4233 for reference entry value target data value.
4234
4235 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4236
4237 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4238 value_available_contents_eq.
4239
4240 2014-07-22 Pedro Alves <palves@redhat.com>
4241
4242 * value.c (allocate_optimized_out_value): Don't mark value as
4243 non-lazy.
4244
4245 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4246
4247 * MAINTAINERS (Write After Approval): Update my email address.
4248
4249 2014-07-20 Doug Evans <dje@google.com>
4250
4251 PR server/17147
4252 * remote.c (putpkt_binary): Add text to error message.
4253
4254 2014-07-20 Yao Qi <yao@codesourcery.com>
4255
4256 * eval.c: Remove "Chill" from comments.
4257 * gdbtypes.h: Likewise.
4258 * symtab.h: Likewise.
4259
4260 2014-07-20 Yao Qi <yao@codesourcery.com>
4261
4262 * std-operator.def: Update comments to TERNOP_SLICE.
4263
4264 2014-07-20 Yao Qi <yao@codesourcery.com>
4265
4266 * std-operator.def: Remove BINOP_RANGE.
4267 * breakpoint.c (watchpoint_exp_is_const): Update.
4268 * expprint.c (dump_subexp_body_standard): Likewise.
4269 * eval.c (init_array_element): Remove dead code.
4270 (evaluate_subexp_standard): Likewise.
4271
4272 2014-07-20 Yao Qi <yao@codesourcery.com>
4273
4274 * std-operator.def: Remove BINOP_IN.
4275 * breakpoint.c (watchpoint_exp_is_const): Update.
4276 * eval.c (evaluate_subexp_standard): Likewise.
4277 * expprint.c (dump_subexp_body_standard): Likewise.
4278
4279 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4280
4281 * microblaze-tdep.c (microblaze_register_names): Add
4282 the rshr and rslr register names.
4283 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4284 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4285 Use of tdesc_numbered_register. Use of
4286 microblaze_register_g_packet_guesses. Use of
4287 tdesc_use_registers. Use of set_gdbarch_register_type.
4288 (microblaze_register_g_packet_guesses): New.
4289 * microblaze-tdep.h (microblaze_reg_num): Add
4290 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4291 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4292 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4293 * features/microblaze-core.xml: New file.
4294 * features/microblaze-stack-protect.xml: New file.
4295 * features/microblaze-with-stack-protect.c: New file.
4296 * features/microblaze-with-stack-protect.xml: New file.
4297 * features/microblaze.xml: New file.
4298 * features/microblaze.c: New file.
4299 * features/Makefile (microblaze-with-stack-protect): Add
4300 microblaze-with-stack-protect microblaze and microblaze-expedite.
4301 * regformats/microblaze-with-stack-protect.dat: New file.
4302 * regformats/microblaze.dat: New file.
4303 * doc/gdb.texinfo (MicroBlaze Features): Added.
4304
4305 2014-07-18 Tom Tromey <tromey@redhat.com>
4306
4307 * exec.c (exec_ops): Now static.
4308 * exec.h (exec_ops): Don't declare.
4309
4310 2014-07-18 Tom Tromey <tromey@redhat.com>
4311
4312 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4313 to find_target_beneath.
4314 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4315 find_target_beneath.
4316 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4317
4318 2014-07-18 Tom Tromey <tromey@redhat.com>
4319
4320 PR gdb/17130:
4321 * utils.c (quit): Use target_supports_terminal_ours.
4322 * target.h (target_supports_terminal_ours): Declare.
4323 * target.c (target_supports_delete_record): Don't check
4324 to_delete_record against NULL.
4325 (target_supports_terminal_ours): New function.
4326
4327 2014-07-18 Tom Tromey <tromey@redhat.com>
4328
4329 PR gdb/17130:
4330 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4331 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4332 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4333 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4334 * windows-nat.c (windows_xfer_partial): Always delegate.
4335 * record-btrace.c (record_btrace_xfer_partial): Simplify
4336 delegation.
4337 (record_btrace_fetch_registers, record_btrace_store_registers)
4338 (record_btrace_prepare_to_store, record_btrace_resume)
4339 (record_btrace_wait, record_btrace_find_new_threads)
4340 (record_btrace_thread_alive): Likewise.
4341 * procfs.c (procfs_xfer_partial): Always delegate.
4342 * corelow.c (core_xfer_partial): Always delegate.
4343 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4344
4345 2014-07-18 Tom Tromey <tromey@redhat.com>
4346
4347 * exec.c (exec_make_note_section): Move earlier.
4348
4349 2014-07-17 Doug Evans <dje@google.com>
4350
4351 PR gdb/17170
4352 * maint.c (count_symtabs_and_blocks): Handle NULL
4353 current_program_space.
4354 (report_command_stats): Check global enabled flag in addition to
4355 recorded enabled flag.
4356 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4357
4358 2014-07-16 Pedro Alves <palves@redhat.com>
4359
4360 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4361
4362 2014-07-16 Tom Tromey <tromey@redhat.com>
4363
4364 * target.h (struct target_ops) <to_delete_record>: Reformat
4365 comment.
4366
4367 2014-07-16 Tom Tromey <tromey@redhat.com>
4368
4369 * target-delegates.c: Rebuild.
4370
4371 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4372
4373 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4374 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4375 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4376 (avr_pointer_to_address): Likewise.
4377 (avr_address_class_type_flags): New function.
4378 (avr_address_class_type_flags_to_name): Likewise.
4379 (avr_address_class_name_to_type_flags): Likewise.
4380 (avr_gdbarch_init): Set address_class_type_flags,
4381 address_class_type_flags_to_name and
4382 address_class_name_to_type_flags.
4383
4384 2014-07-15 Pedro Alves <palves@redhat.com>
4385
4386 * linux-nat.c (kill_callback): Save errno and work with saved
4387 copy.
4388
4389 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4390
4391 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4392
4393 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4394
4395 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4396 breakpoint support correctly.
4397
4398 2014-07-14 Pedro Alves <palves@redhat.com>
4399
4400 * utils.c (prompt_for_continue): Call target_terminal_ours.
4401
4402 2014-07-14 Pedro Alves <palves@redhat.com>
4403
4404 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4405 catch_errors. Don't re-enable stdin or notify observers where,
4406 and rethrow error.
4407 (fetch_inferior_event_wrapper): Delete.
4408
4409 2014-07-14 Pedro Alves <palves@redhat.com>
4410
4411 PR gdb/17072
4412 * top.c: Include "inf-loop.h".
4413 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4414 field.
4415 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4416 was async before.
4417 (gdb_readline_wrapper): Store whether the target is async, and
4418 make it sync.
4419
4420 2014-07-14 Pedro Alves <palves@redhat.com>
4421
4422 PR gdb/17072
4423 * top.c (gdb_readline_wrapper_line): Tweak comment.
4424 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4425 the input handler callback.
4426
4427 2014-07-14 Pedro Alves <palves@redhat.com>
4428
4429 PR gdb/17072
4430 * main.c: Include event-top.h.
4431 (handle_command_errors): New function.
4432 (catch_command_errors, catch_command_errors_const): Use it.
4433
4434 2014-07-14 Pedro Alves <palves@redhat.com>
4435
4436 * exceptions.c (catch_command_errors, catch_command_errors_const):
4437 Moved to main.c.
4438 * exceptions.h (catch_command_errors_ftype)
4439 (catch_command_errors_const_ftype): Moved to main.c.
4440 (catch_command_errors, catch_command_errors_const): Delete
4441 declarations.
4442 * main.c (catch_command_errors_ftype)
4443 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4444 (catch_command_errors, catch_command_errors_const)): Moved here
4445 from exceptions.c and make static.
4446
4447 2014-07-14 Pedro Alves <palves@redhat.com>
4448
4449 * exceptions.c (print_any_exception): Delete.
4450 (catch_exceptions_with_msg): Use exception_print instead of
4451 print_any_exception.
4452 (catch_errors): Use exception_fprintf instead of
4453 print_any_exception.
4454 (catch_command_errors, catch_command_errors_const): Use
4455 exception_print instead of print_any_exception.
4456
4457 2014-07-14 Pedro Alves <palves@redhat.com>
4458
4459 * infcall.c (run_inferior_call): Set 'sync_execution' while
4460 running the inferior call.
4461
4462 2014-07-14 Pedro Alves <palves@redhat.com>
4463
4464 * value.c (value_contents_equal): Delete function.
4465 * value.h (value_contents_equal): Delete declaration.
4466
4467 2014-07-14 Tom Tromey <tromey@redhat.com>
4468
4469 PR exp/17106:
4470 * gdbtypes.c (is_dynamic_type_internal): New function, from
4471 is_dynamic_type.
4472 (is_dynamic_type): Rewrite.
4473 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4474 (resolve_dynamic_struct): Likewise.
4475 (resolve_dynamic_type_internal): New function, from
4476 resolve_dynamic_type.
4477 (resolve_dynamic_type): Rewrite.
4478
4479 2014-07-14 Tom Tromey <tromey@redhat.com>
4480
4481 * target.c (target_require_runnable): Also check record_stratum.
4482 Update comment.
4483
4484 2014-07-11 Yao Qi <yao@codesourcery.com>
4485
4486 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4487 thumb_instruction_restores_sp return true.
4488
4489 2014-07-11 Yao Qi <yao@codesourcery.com>
4490
4491 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4492 (thumb_in_function_epilogue_p): Call
4493 thumb_instruction_restores_sp.
4494
4495 2014-07-11 Yao Qi <yao@codesourcery.com>
4496
4497 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4498 'add sp, #imm'.
4499 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4500
4501 2014-07-11 Gary Benson <gbenson@redhat.com>
4502
4503 * amd64-linux-nat.c (gdbcore.h): Remove include.
4504 (regset.h): Likewise.
4505 (nat/linux-btrace.h): Likewise.
4506 (btrace.h): Likewise.
4507 (gdb_assert.h): Likewise.
4508 (string.h): Likewise.
4509 (sys/uio.h): Likewise.
4510 (sys/debugreg.h): Likewise.
4511 (sys/syscall.h): Likewise.
4512 (sys/procfs.h): Likewise.
4513 (sys/user.h): Likewise.
4514 (asm/ptrace.h): Likewise.
4515 (i386-nat.h): Likewise.
4516 * i386-linux-nat.c (i386-nat.h): Likewise.
4517 (regset.h): Likewise.
4518 (target.h): Likewise.
4519 (linux-nat.h): Likewise.
4520 (nat/linux-btrace.h): Likewise.
4521 (btrace.h): Likewise.
4522 (gdb_assert.h): Likewise.
4523 (string.h): Likewise.
4524 (sys/uio.h): Likewise.
4525 (sys/user.h): Likewise.
4526 (sys/procfs.h): Likewise.
4527 (sys/reg.h): Likewise.
4528 (sys/debugreg.h): Likewise.
4529 (ORIG_EAX): Remove definition.
4530
4531 2014-07-11 Gary Benson <gbenson@redhat.com>
4532
4533 * i386-linux-nat.h: New file.
4534 * x86-linux-nat.h: Likewise.
4535 * x86-linux-nat.c: Likewise.
4536 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4537 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4538 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4539 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4540 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4541 (PTRACE_SETREGSET): Likewise.
4542 (arch_lwp_info): Now in x86-linux-nat.c.
4543 (have_ptrace_getregset): Now in x86-linux-nat.h.
4544 (x86_linux_dr_get): Now in x86-linux-nat.c.
4545 (x86_linux_dr_set): Likewise.
4546 (x86_linux_dr_get_addr): Likewise.
4547 (x86_linux_dr_get_control): Likewise.
4548 (x86_linux_dr_get_status): Likewise.
4549 (update_debug_registers_callback): Likewise.
4550 (x86_linux_dr_set_control): Likewise.
4551 (x86_linux_dr_set_addr): Likewise.
4552 (x86_linux_prepare_to_resume): Likewise.
4553 (x86_linux_new_thread): Likewise.
4554 (x86_linux_new_fork): Likewise.
4555 (x86_linux_get_thread_area): Likewise.
4556 (super_post_startup_inferior): Likewise.
4557 (x86_linux_child_post_startup_inferior): Likewise.
4558 (AMD64_LINUX_USER64_CS): Likewise.
4559 (AMD64_LINUX_X32_DS): Likewise.
4560 (x86_linux_read_description): Likewise.
4561 (x86_linux_enable_btrace): Likewise.
4562 (x86_linux_disable_btrace): Likewise.
4563 (x86_linux_teardown_btrace): Likewise.
4564 (x86_linux_read_btrace): Likewise.
4565 (x86_linux_create_target): Likewise.
4566 (x86_linux_add_target): Likewise.
4567 * i386-linux-nat.c (x86-linux-nat.h): New include.
4568 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4569 (PTRACE_SETREGSET): Likewise.
4570 (arch_lwp_info): Now in x86-linux-nat.c.
4571 (have_ptrace_getregset): Now in x86-linux-nat.h.
4572 (x86_linux_dr_get): Now in x86-linux-nat.c.
4573 (x86_linux_dr_set): Likewise.
4574 (x86_linux_dr_get_addr): Likewise.
4575 (x86_linux_dr_get_control): Likewise.
4576 (x86_linux_dr_get_status): Likewise.
4577 (update_debug_registers_callback): Likewise.
4578 (x86_linux_dr_set_control): Likewise.
4579 (x86_linux_dr_set_addr): Likewise.
4580 (x86_linux_prepare_to_resume): Likewise.
4581 (x86_linux_new_thread): Likewise.
4582 (x86_linux_new_fork): Likewise.
4583 (x86_linux_get_thread_area): Likewise.
4584 (super_post_startup_inferior): Likewise.
4585 (x86_linux_child_post_startup_inferior): Likewise.
4586 (AMD64_LINUX_USER64_CS): Likewise.
4587 (AMD64_LINUX_X32_DS): Likewise.
4588 (x86_linux_read_description): Likewise.
4589 (x86_linux_enable_btrace): Likewise.
4590 (x86_linux_disable_btrace): Likewise.
4591 (x86_linux_teardown_btrace): Likewise.
4592 (x86_linux_read_btrace): Likewise.
4593 (x86_linux_create_target): Likewise.
4594 (x86_linux_add_target): Likewise.
4595
4596 2014-07-11 Gary Benson <gbenson@redhat.com>
4597
4598 * amd64-linux-nat.c: Comment and whitespace changes.
4599 * i386-linux-nat.c: Comment and whitespace changes.
4600
4601 2014-07-11 Gary Benson <gbenson@redhat.com>
4602
4603 * amd64-linux-nat.c (x86_linux_create_target): New function.
4604 (x86_linux_add_target): Likewise.
4605 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4606 * i386-linux-nat.c (x86_linux_create_target): New function.
4607 (x86_linux_add_target): Likewise.
4608 (_initialize_i386_linux_nat): Delegate to the above new functions.
4609
4610 2014-07-11 Gary Benson <gbenson@redhat.com>
4611
4612 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4613 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4614 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4615 (ps_get_thread_area): Delegate to the above.
4616
4617 2014-07-11 Gary Benson <gbenson@redhat.com>
4618
4619 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4620 x86_linux_read_description. All uses updated. amd64-specific
4621 code conditionalized. Conditionalized i386-specific code added.
4622 Redundant cast removed.
4623 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4624 x86_linux_read_description. All uses updated. i386-specific
4625 code conditionalized. Conditionalized amd64-specific code added.
4626 One sizeof replaced with the actual type it is describing.
4627
4628 2014-07-11 Gary Benson <gbenson@redhat.com>
4629
4630 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4631 x86_linux_dr_get. All uses updated.
4632 (amd64_linux_dr_set): Renamed to
4633 x86_linux_dr_set. All uses updated.
4634 (amd64_linux_dr_get_addr): Renamed to
4635 x86_linux_dr_get_addr. All uses updated.
4636 (amd64_linux_dr_get_control): Renamed to
4637 x86_linux_dr_get_control. All uses updated.
4638 (amd64_linux_dr_get_status): Renamed to
4639 x86_linux_dr_get_status. All uses updated.
4640 (amd64_linux_dr_set_control): Renamed to
4641 x86_linux_dr_set_control. All uses updated.
4642 (amd64_linux_dr_set_addr): Renamed to
4643 x86_linux_dr_set_addr. All uses updated.
4644 (amd64_linux_prepare_to_resume): Renamed to
4645 x86_linux_prepare_to_resume. All uses updated.
4646 (amd64_linux_new_thread): Renamed to
4647 x86_linux_new_thread. All uses updated.
4648 (amd64_linux_new_fork): Renamed to
4649 x86_linux_new_fork. All uses updated.
4650 (amd64_linux_child_post_startup_inferior): Renamed to
4651 x86_linux_child_post_startup_inferior. All uses updated.
4652 (amd64_linux_enable_btrace): Renamed to
4653 x86_linux_enable_btrace. All uses updated.
4654 (amd64_linux_disable_btrace): Renamed to
4655 x86_linux_disable_btrace. All uses updated.
4656 (amd64_linux_teardown_btrace): Renamed to
4657 x86_linux_teardown_btrace. All uses updated.
4658 (amd64_linux_read_btrace): Renamed to
4659 x86_linux_read_btrace. All uses updated.
4660 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4661 x86_linux_dr_get. All uses updated.
4662 (i386_linux_dr_set): Renamed to
4663 x86_linux_dr_set. All uses updated.
4664 (i386_linux_dr_get_addr): Renamed to
4665 x86_linux_dr_get_addr. All uses updated.
4666 (i386_linux_dr_get_control): Renamed to
4667 x86_linux_dr_get_control. All uses updated.
4668 (i386_linux_dr_get_status): Renamed to
4669 x86_linux_dr_get_status. All uses updated.
4670 (i386_linux_dr_set_control): Renamed to
4671 x86_linux_dr_set_control. All uses updated.
4672 (i386_linux_dr_set_addr): Renamed to
4673 x86_linux_dr_set_addr. All uses updated.
4674 (i386_linux_prepare_to_resume): Renamed to
4675 x86_linux_prepare_to_resume. All uses updated.
4676 (i386_linux_new_thread): Renamed to
4677 x86_linux_new_thread. All uses updated.
4678 (i386_linux_new_fork): Renamed to
4679 x86_linux_new_fork. All uses updated.
4680 (i386_linux_child_post_startup_inferior): Renamed to
4681 x86_linux_child_post_startup_inferior. All uses updated.
4682 (i386_linux_enable_btrace): Renamed to
4683 x86_linux_enable_btrace. All uses updated.
4684 (i386_linux_disable_btrace): Renamed to
4685 x86_linux_disable_btrace. All uses updated.
4686 (i386_linux_teardown_btrace): Renamed to
4687 x86_linux_teardown_btrace. All uses updated.
4688 (i386_linux_read_btrace): Renamed to
4689 x86_linux_read_btrace. All uses updated.
4690
4691 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4692
4693 * remote.c (extended_remote_post_attach): New function.
4694 (init_extended_remote_ops): Install it as to_post_attach method.
4695
4696 2014-07-09 Pedro Alves <palves@redhat.com>
4697
4698 * infcmd.c (attach_command_post_wait): Don't call
4699 target_terminal_inferior here.
4700 (attach_command): Call it here instead.
4701
4702 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4703
4704 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4705 field.
4706 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4707 from varobj.c, with additional checks.
4708 (c_varobj_ops): Fill in is_path_expr_parent field.
4709 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4710 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4711 field.
4712 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4713 ops method.
4714 (varobj_default_is_path_expr_parent): New function.
4715 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4716 (varobj_default_is_path_expr_parent): Declare new function.
4717
4718 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4719
4720 * infcmd.c (finish_backward): Turn internal error into normal error.
4721
4722 2014-07-07 Pedro Alves <palves@redhat.com>
4723
4724 PR gdb/17096
4725 * remote.c (async_handle_remote_sigint)
4726 (async_handle_remote_sigint_twice): Call
4727 gdb_call_async_signal_handler instead of
4728 mark_async_signal_handler.
4729
4730 2014-07-07 Tom Tromey <tromey@redhat.com>
4731
4732 * target-delegates.c: Rebuild.
4733 * target.c (target_info_record): Remove.
4734 * record.c (info_record_command): Unconditionally call
4735 to_info_record.
4736 * target.h (struct target_ops) <to_info_record>: Use
4737 TARGET_DEFAULT_IGNORE.
4738 (target_info_record): Remove.
4739
4740 2014-07-07 Tom Tromey <tromey@redhat.com>
4741
4742 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4743 TARGET_DEFAULT_NORETURN.
4744 * target.c (generic_tls_error): New function.
4745 (target_translate_tls_address): Don't search target stack.
4746 * target-delegates.c: Rebuild.
4747 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4748 stack.
4749 * linux-thread-db.c (thread_db_get_thread_local_address):
4750 Unconditionally call beneath target.
4751
4752 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4753
4754 * cli/cli-logging.c (pop_output_files): Assign targerr to
4755 gdb_stdtargerr.
4756
4757 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4758
4759 * MAINTAINERS (Write After Approval): Update my email address.
4760
4761 2014-07-02 Gary Benson <gbenson@redhat.com>
4762
4763 * proc-service.c (ps_xfer_memory): Update comment.
4764 (ps_pstop): Remove unused function.
4765 (ps_pcontinue): Likewise.
4766 (ps_lstop): Likewise.
4767 (ps_lcontinue): Likewise.
4768 (ps_lgetxregsize): Likewise.
4769 (ps_lgetxregs): Likewise.
4770 (ps_lsetxregs): Likewise.
4771 (ps_plog): Likewise.
4772 (ps_ptread): Likewise.
4773 (ps_ptwrite): Likewise.
4774
4775 2014-07-01 Mark Wielaard <mjw@redhat.com>
4776
4777 * dwarf2read.c (add_array_cv_type): New function.
4778 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4779 (read_tag_volatile_type): Likewise.
4780
4781 2014-07-01 Tom Tromey <tromey@redhat.com>
4782
4783 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4784 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4785 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4786 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4787 * command.h (cmd_cfunc_ftype): Move earlier.
4788 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4789 (add_com, add_info): Use cmd_cfunc_ftype.
4790
4791 2014-06-30 Tom Tromey <tromey@redhat.com>
4792
4793 * symtab.c (operator_chars): Make parameters and return type
4794 const.
4795 (file_matches): Make "files" const.
4796 (struct search_symbols_data) <files>: Now const.
4797 (search_symbols): Make "regexp" and "files" parameters const.
4798 Update.
4799 (symtab_symbol_info): Remove cast.
4800 (rbreak_command): Update.
4801 * symtab.h (search_symbols): Update.
4802
4803 2014-06-27 Yao Qi <yao@codesourcery.com>
4804
4805 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4806 Change parameter type to 'struct thread_info *'. Caller
4807 updated.
4808 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4809 Update declaration.
4810 * dummy-frame.c (struct dummy_frame_id): New.
4811 (dummy_frame_id_eq): New function.
4812 (struct dummy_frame) <id>: Change its type to 'struct
4813 dummy_frame_id'.
4814 (dummy_frame_push): Add parameter ptid and save it in
4815 dummy_frame_id.
4816 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4817 inferior_ptid.
4818 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4819 to inferior_ptid.
4820 (lookup_dummy_frame): Change parameter type to 'struct
4821 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4822 instead of frame_id_eq.
4823 (dummy_frame_pop): Add parameter ptid. Callers updated.
4824 Update comments. Compose dummy_frame_id and pass it to
4825 lookup_dummy_frame.
4826 (dummy_frame_discard): Add parameter ptid.
4827 (dummy_frame_sniffer): Compose dummy_frame_id and call
4828 dummy_frame_id_eq instead of frame_id_eq.
4829 (fprint_dummy_frames): Print ptid.
4830 * dummy-frame.h: Remove comments.
4831 (dummy_frame_push): Add ptid in declaration.
4832 (dummy_frame_pop, dummy_frame_discard): Likewise.
4833
4834 2014-06-26 Tom Tromey <tromey@redhat.com>
4835
4836 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4837 * command.h (error_no_arg): Update.
4838
4839 2014-06-26 Tom Tromey <tromey@redhat.com>
4840
4841 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4842 (do_show_command): Make "arg" const.
4843 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4844
4845 2014-06-26 Tom Tromey <tromey@redhat.com>
4846
4847 * record-full.c (record_full_get_bookmark): Make "args" const.
4848 (record_full_goto_bookmark): Make "raw_bookmark" const.
4849 * record.c (record_goto): New function.
4850 (cmd_record_goto): Use it. Now static.
4851 * record.h (record_goto): Declare.
4852 (cmd_record_goto): Remove declaration.
4853 * target-delegates.c: Rebuild.
4854 * target.h (struct target_ops) <to_get_bookmark,
4855 to_goto_bookmark>: Make parameter const.
4856
4857 2014-06-26 Tom Tromey <tromey@redhat.com>
4858
4859 * defs.h (generic_load): Update.
4860 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4861 * monitor.c (monitor_load): Make "args" const.
4862 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4863 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4864 const.
4865 (mips_load): Make "file" const.
4866 * remote-sim.c (gdbsim_load): Make "args" const.
4867 * remote.c (remote_load): Make "name" const.
4868 * symfile.c (generic_load): Make "args" const.
4869 * target-delegates.c: Rebuild.
4870 * target.c (target_load): Make "arg" const.
4871 (debug_to_load): Make "args" const.
4872 * target.h (struct target_ops) <to_load>: Make parameter const.
4873 (target_load): Update.
4874
4875 2014-06-26 Tom Tromey <tromey@redhat.com>
4876
4877 PR symtab/16902:
4878 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4879 (dwarf2_physname, read_partial_die)
4880 (guess_partial_die_structure_name, fixup_partial_die)
4881 (guess_full_die_structure_name, anonymous_struct_prefix)
4882 (dwarf2_name): Use per-BFD obstack.
4883
4884 2014-06-26 Yao Qi <yao@codesourcery.com>
4885
4886 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4887 dummyframe and this_id into inner block below.
4888
4889 2014-06-26 Yao Qi <yao@codesourcery.com>
4890
4891 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4892 with "signal_pass[0]" in the initialization of signal_pass.
4893
4894 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4895
4896 * record-btrace.c (record_btrace_generating_corefile)
4897 (record_btrace_prepare_to_generate_core)
4898 (record_btrace_done_generating_core): New.
4899 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4900 (record_btrace_store_registers, record_btrace_prepare_to_store):
4901 Forward request when generating a core file.
4902 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4903 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4904 to_done_generating_core.
4905
4906 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4907
4908 * target.h (target_ops) <to_prepare_to_generate_core>
4909 <to_done_generating_core>: New.
4910 (target_prepare_to_generate_core, target_done_generating_core): New.
4911 * target.c (target_prepare_to_generate_core)
4912 (target_done_generating_core): New.
4913 * target-delegates.c: Regenerate.
4914 * gcore.c: (write_gcore_file): Rename to ...
4915 (write_gcore_file_1): ...this.
4916 (write_gcore_file): Call target_prepare_to_generate_core
4917 and target_done_generating_core.
4918
4919 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4920
4921 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4922 * gcore.c (write_gcore_file): Free memory returned from
4923 make_corefile_notes.
4924 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4925 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4926
4927 2014-06-24 Yao Qi <yao@codesourcery.com>
4928
4929 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4930 (arm_linux_init_abi): Set skip_trampoline_code with
4931 gdbarch_skip_trampoline_code instead of
4932 find_solib_trampoline_target.
4933
4934 2014-06-24 Yao Qi <yao@codesourcery.com>
4935
4936 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4937 arm_skip_bx_reg returns non-zero.
4938
4939 2014-06-24 Yao Qi <yao@codesourcery.com>
4940
4941 * arm-tdep.c (arm_skip_bx_reg): New function.
4942 (arm_skip_stub): Call arm_skip_bx_reg.
4943
4944 2014-06-23 Don Breazeal <donb@codesourcery.com>
4945
4946 * MAINTAINERS: Add myself as write-after-approval maintainer.
4947
4948 2014-06-23 Pedro Alves <palves@redhat.com>
4949
4950 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4951 DR_CONTROL before setting DR0..DR3.
4952 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4953 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4954 bits of DR_CONTROL related to the debug register slot being
4955 disabled. If all slots are vacant, clear local slowdown as well,
4956 and assert DR_CONTROL is 0.
4957
4958 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4959
4960 * python/lib/gdb/command/xmethods.py
4961 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4962 current progspace only if the string "progspace" matches LOCUS_RE.
4963
4964 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4965
4966 Fix --with-system-readline with readline-6.3 patch 5.
4967 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4968 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4969 types.
4970
4971 2014-06-20 Tom Tromey <tromey@redhat.com>
4972
4973 * dwarf2read.c (dw2_get_real_path): Use correct type in
4974 OBSTACK_CALLOC.
4975 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4976
4977 2014-06-20 Gary Benson <gbenson@redhat.com>
4978
4979 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4980 * common/glibc_thread_db.h: Likewise.
4981 * common/i386-cpuid.h: Likewise.
4982 * common/i386-gcc-cpuid.h: Likewise.
4983 * common/linux-btrace.h: Likewise.
4984 * common/linux-osdata.h: Likewise.
4985 * common/linux-procfs.h: Likewise.
4986 * common/linux-ptrace.h: Likewise.
4987 * common/mips-linux-watch.h: Likewise.
4988 * common/linux-btrace.c: Moved to nat.
4989 * common/linux-osdata.c: Likewise.
4990 * common/linux-procfs.c: Likewise.
4991 * common/linux-ptrace.c: Likewise.
4992 * common/mips-linux-watch.c: Likewise.
4993 * nat/gdb_thread_db.h: Moved from common.
4994 * nat/glibc_thread_db.h: Likewise.
4995 * nat/i386-cpuid.h: Likewise.
4996 * nat/i386-gcc-cpuid.h: Likewise.
4997 * nat/linux-btrace.c: Likewise.
4998 * nat/linux-btrace.h: Likewise.
4999 * nat/linux-osdata.c: Likewise.
5000 * nat/linux-osdata.h: Likewise.
5001 * nat/linux-procfs.c: Likewise.
5002 * nat/linux-procfs.h: Likewise.
5003 * nat/linux-ptrace.c: Likewise.
5004 * nat/linux-ptrace.h: Likewise.
5005 * nat/mips-linux-watch.c: Likewise.
5006 * nat/mips-linux-watch.h: Likewise.
5007 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5008 (object file files): Reordered.
5009 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5010 of glibc_thread_db.h.
5011
5012 2014-06-20 Gary Benson <gbenson@redhat.com>
5013
5014 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5015 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5016 (i386_dr_low): Likewise.
5017 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5018 (i386_dr_low_set_addr): Likewise.
5019 (i386_dr_low_get_addr): Likewise.
5020 (i386_dr_low_can_set_control): Likewise.
5021 (i386_dr_low_set_control): Likewise.
5022 (i386_dr_low_get_control): Likewise.
5023 (i386_dr_low_get_status): Likewise.
5024 (i386_get_debug_register_length): Likewise.
5025 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5026 (i386_dr_low): Likewise.
5027 * nat/i386-dregs.c (i386-low.h): Remove include.
5028 (i386-nat.h): Likewise.
5029 (nat/i386-dregs.h): New include.
5030 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5031 (i386_dr_low_set_addr): Likewise.
5032 (i386_dr_low_get_addr): Likewise.
5033 (i386_dr_low_can_set_control): Likewise.
5034 (i386_dr_low_set_control): Likewise.
5035 (i386_dr_low_get_control): Likewise.
5036 (i386_dr_low_get_status): Likewise.
5037 (i386_get_debug_register_length): Likewise.
5038 (debug_hw_points): Likewise.
5039
5040 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5041
5042 * Makefile.in (SFILES): Add d-exp.y.
5043 (YYFILES): Add d-exp.c.
5044 (YYOBJ): Add d-exp.o.
5045 (local-maintainer-clean): Delete d-exp.c.
5046 * d-exp.y: New file.
5047 * d-lang.h (d_parse): New declaration.
5048 (d_error): New declaration.
5049 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5050 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5051 PREC_ORDER operators.
5052 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5053
5054 2014-06-19 Yao Qi <yao@codesourcery.com>
5055
5056 * gdbthread.h (any_running): Remove the declaration.
5057 * thread.c (any_running): Remove.
5058
5059 2014-06-19 Yao Qi <yao@codesourcery.com>
5060
5061 * gdbthread.h (struct thread_info) <state>: Change its type to
5062 'enum thread_state'. Update comments.
5063
5064 2014-06-19 Pedro Alves <palves@redhat.com>
5065
5066 * gdbthread.h (ALL_THREADS): Delete.
5067 (ALL_NON_EXITED_THREADS): New macro.
5068 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5069 instead of ALL_THREADS.
5070 * infrun.c (find_thread_needs_step_over)
5071 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5072 instead of ALL_THREADS.
5073 * record-btrace.c (record_btrace_open)
5074 (record_btrace_stop_recording, record_btrace_close)
5075 (record_btrace_is_replaying, record_btrace_resume)
5076 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5077 * remote.c (append_pending_thread_resumptions): Likewise.
5078 * thread.c (thread_apply_all_command): Likewise.
5079
5080 2014-06-19 Gary Benson <gbenson@redhat.com>
5081
5082 * i386-nat.c (i386_stopped_by_watchpoint):
5083 Use i386_dr_stopped_by_watchpoint.
5084 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5085 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5086
5087 2014-06-19 Gary Benson <gbenson@redhat.com>
5088
5089 * nat/i386-dregs.c: New file.
5090 * Makefile.in (i386-dregs.o): New rule.
5091 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5092 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5093 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5094 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5095 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5096 * config/i386/go32.mh (NATDEPFILES): Likewise.
5097 * config/i386/linux.mh (NATDEPFILES): Likewise.
5098 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5099 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5100 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5101 * i386-nat.h (debug_hw_points): New declaration.
5102 * i386-nat.c (breakpoint.h): Remove include.
5103 (command.h): Likewise.
5104 (target.h): Likewise.
5105 (gdb_assert.h): Likewise.
5106 (debug_hw_points): Made nonstatic.
5107 (debug_printf): Now in i386-dregs.c.
5108 (TARGET_HAS_DR_LEN_8): Likewise.
5109 (DR_CONTROL_SHIFT): Likewise.
5110 (DR_CONTROL_SIZE): Likewise.
5111 (DR_RW_EXECUTE): Likewise.
5112 (DR_RW_WRITE): Likewise.
5113 (DR_RW_READ): Likewise.
5114 (DR_RW_IORW): Likewise.
5115 (DR_LEN_1): Likewise.
5116 (DR_LEN_2): Likewise.
5117 (DR_LEN_4): Likewise.
5118 (DR_LEN_8): Likewise.
5119 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5120 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5121 (DR_ENABLE_SIZE): Likewise.
5122 (DR_LOCAL_SLOWDOWN): Likewise.
5123 (DR_GLOBAL_SLOWDOWN): Likewise.
5124 (DR_CONTROL_RESERVED): Likewise.
5125 (I386_DR_CONTROL_MASK): Likewise.
5126 (I386_DR_VACANT): Likewise.
5127 (I386_DR_LOCAL_ENABLE): Likewise.
5128 (I386_DR_GLOBAL_ENABLE): Likewise.
5129 (I386_DR_DISABLE): Likewise.
5130 (I386_DR_SET_RW_LEN): Likewise.
5131 (I386_DR_GET_RW_LEN): Likewise.
5132 (I386_DR_WATCH_HIT): Likewise.
5133 (i386_wp_op_t): Likewise.
5134 (i386_show_dr): Likewise.
5135 (i386_length_and_rw_bits): Likewise.
5136 (i386_insert_aligned_watchpoint): Likewise.
5137 (i386_remove_aligned_watchpoint): Likewise.
5138 (i386_handle_nonaligned_watchpoint): Likewise.
5139 (i386_update_inferior_debug_regs): Likewise.
5140 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5141 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5142 (i386_region_ok_for_watchpoint):
5143 Use i386_dr_region_ok_for_watchpoint.
5144 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5145
5146 2014-06-19 Gary Benson <gbenson@redhat.com>
5147
5148 * i386-nat.c (i386_insert_hw_breakpoint): Use
5149 i386_insert_watchpoint.
5150 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5151
5152 2014-06-19 Gary Benson <gbenson@redhat.com>
5153
5154 * i386-nat.c (i386_dr_show): Renamed to
5155 i386_show_dr and made static. All uses updated.
5156 (i386_dr_length_and_rw_bits): Renamed to
5157 i386_length_and_rw_bits and made static.
5158 All uses updated.
5159 (i386_dr_insert_aligned_watchpoint): Renamed to
5160 i386_insert_aligned_watchpoint and made static.
5161 All uses updated.
5162 (i386_dr_remove_aligned_watchpoint): Renamed to
5163 i386_remove_aligned_watchpoint and made static.
5164 All uses updated.
5165 (i386_dr_update_inferior_debug_regs): Renamed to
5166 i386_update_inferior_debug_regs and made static.
5167 All uses updated.
5168 * nat/i386-dregs.h (i386_dr_show): Removed.
5169 (i386_dr_length_and_rw_bits): Likewise.
5170 (i386_dr_insert_aligned_watchpoint): Likewise.
5171 (i386_dr_remove_aligned_watchpoint): Likewise.
5172 (i386_dr_update_inferior_debug_regs): Likewise.
5173
5174 2014-06-19 Gary Benson <gbenson@redhat.com>
5175
5176 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5177 * configure: Regenerate.
5178 * config.in: Likewise.
5179 * main.c (signal.h): New include.
5180 (setup_alternate_signal_stack): New function.
5181 (captured_main): Call the above.
5182 * cp-support.c (signal.h): New include.
5183 (catch_demangler_crashes): New flag.
5184 (SIGJMP_BUF): New define.
5185 (SIGSETJMP): Likewise.
5186 (SIGLONGJMP): Likewise.
5187 (gdb_demangle_jmp_buf): New static global.
5188 (gdb_demangle_attempt_core_dump): Likewise.
5189 (gdb_demangle_signal_handler): New function.
5190 (gdb_demangle): If catch_demangler_crashes is set, install the
5191 above signal handler before calling bfd_demangle, and restore
5192 the original signal handler afterwards. Display the offending
5193 symbol and call demangler_warning the first time a segmentation
5194 fault is caught.
5195 (_initialize_cp_support): New maint set/show command.
5196
5197 2014-06-19 Gary Benson <gbenson@redhat.com>
5198
5199 * utils.h (resource_limit_kind): New enum.
5200 (can_dump_core): New declaration.
5201 (warn_cant_dump_core): Likewise.
5202 (dump_core): Likewise.
5203 * utils.c (dump_core): Made nonstatic. Added new
5204 parameter "limit_kind".
5205 (can_dump_core): Made nonstatic. Moved printing code to...
5206 (warn_cant_dump_core): New function.
5207 (can_dump_core_warn): Likewise.
5208 (internal_vproblem): Replace calls to can_dump_core with
5209 calls to can_dump_core_warn. Supply new argument to each.
5210
5211 2014-06-19 Gary Benson <gbenson@redhat.com>
5212
5213 * utils.h (demangler_vwarning): New declaration.
5214 (demangler_warning): Likewise.
5215 * utils.c (struct internal_problem)
5216 <user_settable_should_quit>: New field.
5217 <user_settable_should_dump_core>: Likewise
5218 (internal_error_problem): Add values for above new fields.
5219 (internal_warning_problem): Likewise.
5220 (demangler_warning_problem): New static global.
5221 (demangler_vwarning): New function.
5222 (demangler_warning): Likewise.
5223 (add_internal_problem_command): Selectively add commands.
5224 (_initialize_utils): New internal problem command.
5225 * maint.c (maintenance_demangler_warning): New function.
5226 (_initialize_maint_cmds): New command.
5227
5228 2014-06-18 Tom Tromey <tromey@redhat.com>
5229
5230 * f-valprint.c (info_common_command_for_block): Update.
5231 * symtab.h (struct general_symbol_info) <common_block>: Now
5232 const.
5233
5234 2014-06-18 Tom Tromey <tromey@redhat.com>
5235
5236 * symtab.h (struct symtab) <blockvector>: Now const.
5237 * ada-lang.c (ada_add_global_exceptions): Update.
5238 * buildsym.c (augment_type_symtab): Update.
5239 * dwarf2read.c (dw2_lookup_symbol): Update.
5240 * jit.c (finalize_symtab): Update.
5241 * jv-lang.c (add_class_symtab_symbol): Update.
5242 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5243 Update.
5244 * objfiles.c (objfile_relocate1): Update.
5245 * psymtab.c (lookup_symbol_aux_psymtabs)
5246 (maintenance_check_psymtabs): Update.
5247 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5248 Update.
5249 * spu-tdep.c (spu_catch_start): Update.
5250 * symmisc.c (dump_symtab_1): Update.
5251 * symtab.c (lookup_global_symbol_from_objfile)
5252 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5253 (basic_lookup_transparent_type_quick)
5254 (basic_lookup_transparent_type, find_pc_sect_symtab)
5255 (find_pc_sect_line, search_symbols): Update.
5256 * block.c (find_block_in_blockvector): Make "bl" const.
5257 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5258 const.
5259 (blockvector_contains_pc): Make "bv" const.
5260 (block_for_pc_sect): Update.
5261 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5262 (blockvector_contains_pc): Update.
5263 * breakpoint.c (resolve_sal_pc): Update.
5264 * inline-frame.c (block_starting_point_at): Update.
5265
5266 2014-06-18 Tom Tromey <tromey@redhat.com>
5267
5268 * completer.c (complete_line): Make "line_buffer" const.
5269 * completer.h (complete_line): Update.
5270
5271 2014-06-18 Tom Tromey <tromey@redhat.com>
5272
5273 * symtab.c (add_macro_name): Remove unneeded cast.
5274
5275 2014-06-18 Tom Tromey <tromey@redhat.com>
5276
5277 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5278 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5279
5280 2014-06-18 Tom Tromey <tromey@redhat.com>
5281
5282 * probe.c (info_probes_for_ops): Make "arg" const.
5283 * probe.h (info_probes_for_ops): Update.
5284
5285 2014-06-18 Tom Tromey <tromey@redhat.com>
5286
5287 * varobj.c (varobj_create): Update.
5288 * valops.c (value_of_this): Update.
5289 * tracepoint.c (add_local_symbols, scope_info): Update.
5290 * symtab.h (struct general_symbol_info) <block>: Now const.
5291 * symtab.c (skip_prologue_sal)
5292 (default_make_symbol_completion_list_break_on)
5293 (skip_prologue_using_sal): Update.
5294 * stack.h (iterate_over_block_locals)
5295 (iterate_over_block_local_vars): Update.
5296 * stack.c (print_frame_args): Update.
5297 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5298 parameter const.
5299 (get_selected_block): Make return type const.
5300 * python/py-frame.c (frapy_block): Update.
5301 * python/py-block.c (gdbpy_block_for_pc): Update.
5302 * p-exp.y (%union) <bval>: Now const.
5303 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5304 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5305 * m2-exp.y (%union) <bval>: Now const.
5306 * linespec.c (get_current_search_block): Make return type const.
5307 (create_sals_line_offset, find_label_symbols): Update.
5308 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5309 Update.
5310 (block_starting_point_at): Make "block" const.
5311 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5312 (check_exception_resume): Update.
5313 * guile/scm-frame.c (gdbscm_frame_block): Update.
5314 * guile/scm-block.c (gdbscm_lookup_block): Update.
5315 * frame.h (get_frame_block): Update.
5316 (get_selected_block): Make return type const.
5317 * frame.c (frame_id_inner): Update.
5318 * f-valprint.c (info_common_command_for_block)
5319 (info_common_command): Update.
5320 * dwarf2loc.c (dwarf2_find_location_expression)
5321 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5322 (locexpr_describe_location_piece): Update.
5323 * c-exp.y (%union) <bval>: Now const.
5324 * breakpoint.c (resolve_sal_pc): Update.
5325 * blockframe.c (get_frame_block):Make return type const.
5326 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5327 (block_innermost_frame): Update.
5328 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5329 (block_for_pc, block_for_pc_sect): Update.
5330 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5331 'pblock' const.
5332 (block_for_pc_sect, block_for_pc): Make return type const.
5333 * ax-gdb.c (gen_expr): Update.
5334 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5335 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5336 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5337 (ada_read_var_value): Update.
5338 * ada-exp.y (struct name_info) <block>: Now const.
5339 (%union): Likewise.
5340 (block_lookup): Constify.
5341
5342 2014-06-18 Gary Benson <gbenson@redhat.com>
5343
5344 * nat/i386-dregs.h: New file.
5345 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5346 * i386-nat.h (i386-dregs.h): New include.
5347 (DR_FIRSTADDR): Now in i386-dregs.h.
5348 (DR_LASTADDR): Likewise.
5349 (DR_NADDR): Likewise.
5350 (DR_STATUS): Likewise.
5351 (DR_CONTROL): Likewise.
5352 (i386_debug_reg_state): Likewise.
5353 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5354
5355 2014-06-18 Don Breazeal <donb@codesourcery.com>
5356
5357 * breakpoint.c (set_longjmp_breakpoint): Call
5358 momentary_breakpoint_from_master with additional argument.
5359 (set_longjmp_breakpoint_for_call_dummy): Call
5360 momentary_breakpoint_from_master with additional argument.
5361 (set_std_terminate_breakpoint): Call
5362 momentary_breakpoint_from_master with additional argument.
5363 (momentary_breakpoint_from_master): Add argument to function
5364 definition and use it to initialize structure member flag.
5365 (clone_momentary_breakpoint): Call
5366 momentary_breakpoint_from_master with additional argument.
5367 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5368 member flags set in momentary_breakpoint_from_master.
5369
5370 2014-06-18 Gary Benson <gbenson@redhat.com>
5371
5372 * i386-nat.c (i386_show_dr): Renamed to
5373 i386_dr_show and made nonstatic. All uses updated.
5374 (i386_length_and_rw_bits): Renamed to
5375 i386_dr_length_and_rw_bits and made nonstatic.
5376 All uses updated.
5377 (i386_insert_aligned_watchpoint): Renamed to
5378 i386_dr_insert_aligned_watchpoint and made nonstatic.
5379 All uses updated.
5380 (i386_remove_aligned_watchpoint): Renamed to
5381 i386_dr_remove_aligned_watchpoint and made nonstatic.
5382 All uses updated.
5383 (i386_update_inferior_debug_regs): Renamed to
5384 i386_dr_update_inferior_debug_regs and made nonstatic.
5385 All uses updated.
5386
5387 2014-06-18 Gary Benson <gbenson@redhat.com>
5388
5389 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5390 (i386_dr_low_can_set_control): Likewise.
5391 (i386_dr_low_set_addr): Likewise.
5392 (i386_dr_low_set_control): Likewise.
5393 (i386_dr_low_get_addr): Likewise.
5394 (i386_dr_low_get_status): Likewise.
5395 (i386_dr_low_get_control): Likewise.
5396 (i386_insert_aligned_watchpoint): Use new macros.
5397 (i386_update_inferior_debug_regs): Likewise.
5398 (i386_stopped_data_address): Likewise.
5399
5400 2014-06-18 Gary Benson <gbenson@redhat.com>
5401
5402 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5403 New parameter. All uses updated.
5404
5405 2014-06-18 Gary Benson <gbenson@redhat.com>
5406
5407 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5408 All uses updated.
5409
5410 2014-06-18 Gary Benson <gbenson@redhat.com>
5411
5412 * i386-nat.c (debug_printf): New macro.
5413 (i386_get_debug_register_length): Likewise.
5414 (TARGET_HAS_DR_LEN_8): Use above macro.
5415 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5416 and printf_unfiltered. Use phex to format values.
5417
5418 2014-06-18 Gary Benson <gbenson@redhat.com>
5419
5420 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5421 Make const.
5422
5423 2014-06-18 Gary Benson <gbenson@redhat.com>
5424
5425 * i386-nat.c: Comment changes.
5426
5427 2014-06-18 Gary Benson <gbenson@redhat.com>
5428
5429 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5430
5431 2014-06-18 Gary Benson <gbenson@redhat.com>
5432
5433 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5434 (i386_insert_aligned_watchpoint): Likewise.
5435 (i386_remove_aligned_watchpoint): Likewise.
5436 (i386_handle_nonaligned_watchpoint): Likewise.
5437
5438 2014-06-18 Gary Benson <gbenson@redhat.com>
5439
5440 * i386-nat.c: Whitespace changes.
5441
5442 2014-06-17 Samuel Bronson <naesten@gmail.com>
5443
5444 * MAINTAINERS: Update Roland McGrath's email address.
5445 Thanks to Sergio Durigan Junior for pointing out that he left
5446 Red Hat a while ago, and giving me a current address.
5447
5448 2014-06-17 Tom Tromey <tromey@redhat.com>
5449
5450 * utils.h (savestring): Remove declaration.
5451
5452 2014-06-17 Tom Tromey <tromey@redhat.com>
5453
5454 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5455
5456 2014-06-16 Keith Seitz <keiths@redhat.com>
5457
5458 PR mi/15863
5459 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5460 to update the varobj if inferior_ptid is null_ptid.
5461
5462 2014-06-16 Tom Tromey <tromey@redhat.com>
5463
5464 * target.h (struct target_ops) <to_info_proc>: Make parameter
5465 const.
5466 (target_info_proc): Update.
5467 * target.c (target_info_proc): Make "args" const.
5468 * procfs.c (procfs_info_proc): Update.
5469 * linux-tdep.c (linux_info_proc): Update.
5470 (linux_core_info_proc_mappings): Make "args" const.
5471 (linux_core_info_proc): Update.
5472 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5473 * gdbarch.c: Rebuild.
5474 * gdbarch.h: Rebuild.
5475 * corelow.c (core_info_proc): Update.
5476
5477 2014-06-16 Tom Tromey <tromey@redhat.com>
5478
5479 * target.h (struct target_ops) <to_disconnect>: Make parameter
5480 const.
5481 (target_disconnect): Update.
5482 * target.c (target_disconnect): Make "args" const.
5483 * target-delegates.c: Rebuild.
5484 * remote.c (remote_disconnect): Update.
5485 * record.h (record_disconnect): Update.
5486 * record.c (record_disconnect): Update.
5487 * inf-child.c (inf_child_disconnect): Update.
5488
5489 2014-06-16 Tom Tromey <tromey@redhat.com>
5490
5491 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5492 * target.c (debug_to_rcmd, default_rcmd): Update.
5493 * target-delegates.c: Rebuild.
5494 * remote.c (remote_rcmd): Update.
5495 * monitor.c (monitor_rcmd): Update.
5496
5497 2014-06-16 Pedro Alves <palves@redhat.com>
5498
5499 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5500 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5501 have OBJF_SHARED set.
5502 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5503 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5504 instead of OBJF_USERLOADED.
5505 * objfiles.h (OBJF_SHARED): Update comment.
5506 (userloaded_objfile_contains_address_p): Rename to ...
5507 (shared_objfile_contains_address_p): ... this, and update
5508 comments.
5509 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5510 new objfile.
5511 (remove_symbol_file_command): Skip objfiles that don't have
5512 OBJF_SHARED set.
5513
5514 2014-06-16 Tom Tromey <tromey@redhat.com>
5515
5516 * minsyms.h (prim_record_minimal_symbol)
5517 (prim_record_minimal_symbol_and_info): Update comments.
5518
5519 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5520
5521 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5522 or --without-guile, according to how GDB was built.
5523
5524 2014-06-13 Tom Tromey <tromey@redhat.com>
5525
5526 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5527 to help_list.
5528 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5529 to help_list.
5530 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5531 help_list.
5532 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5533 help_list.Pass all_commands, not -1, to help_list.
5534 * cli/cli-dump.c (dump_command, append_command)
5535 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5536 (binary_dump_command, binary_append_command): Pass all_commands,
5537 not -1, to help_list.
5538 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5539 -1, to help_list.
5540 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5541 -1, to help_list.
5542 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5543 help_list.
5544 * top.c (set_history): Pass all_commands, not -1, to help_list.
5545 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5546 all_commands, not -1, to help_list.
5547 * symfile.c (overlay_command): Pass all_commands, not -1, to
5548 help_list.
5549 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5550 help_list.
5551 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5552 help_list.
5553 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5554 -1, to help_list.
5555 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5556 not -1, to help_list.
5557 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5558 not -1, to help_list.
5559 * maint.c (maintenance_command, maintenance_info_command)
5560 (maintenance_print_command, maintenance_set_cmd): Pass
5561 all_commands, not -1, to help_list.
5562 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5563 help_list.
5564 * language.c (set_check): Pass all_commands, not -1, to help_list.
5565 * infcmd.c (unset_command): Pass all_commands, not -1, to
5566 help_list.
5567 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5568 help_list.
5569 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5570 help_list.
5571 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5572 help_list.
5573 * breakpoint.c (save_command): Pass all_commands, not -1, to
5574 help_list.
5575 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5576 all_commands, not -1, to help_list.
5577
5578 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5579
5580 * regcache.c (struct register_to_invalidate): New structure.
5581 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5582 functions.
5583 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5584
5585 2014-06-12 Yao Qi <yao@codesourcery.com>
5586
5587 * varobj.c (varobj_get_num_children): Call
5588 varobj_is_dynamic_p.
5589 (varobj_list_children): Likewise.
5590 (varobj_update): Likewise. Update comments.
5591
5592 2014-06-12 Yao Qi <yao@codesourcery.com>
5593
5594 * varobj.c (varobj_pretty_printed_p): Rename to ...
5595 (varobj_is_dynamic_p): ... this. New function.
5596 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5597 (varobj_is_dynamic_p): Declare.
5598 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5599 (mi_print_value_p, varobj_update_one): Likewise.
5600
5601 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5602 Yao Qi <yao@codesourcery.com>
5603
5604 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5605 (varobj_get_iterator): Wrap up code for pretty-printer by
5606 "#if HAVE_PYTHON" and "#endif".
5607 (update_dynamic_varobj_children): Likewise.
5608
5609 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5610 Yao Qi <yao@codesourcery.com>
5611
5612 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5613 gdb_python_initialized is false. Move some code from varobj.c.
5614 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5615 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5616 (struct varobj_item): Moved to varobj-iter.h".
5617 (varobj_clear_saved_item): New function.
5618 (update_dynamic_varobj_children): Move python-related code to
5619 py-varobj.c.
5620 (free_variable): Call varobj_clear_saved_item and
5621 varobj_iter_delete.
5622
5623 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5624 Yao Qi <yao@codesourcery.com>
5625
5626 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5627 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5628 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5629 (py-varobj.o): New rule.
5630 * python/py-varobj.c: New file.
5631 * python/python-internal.h (py_varobj_get_iterator): Declare.
5632 * varobj-iter.h: New file.
5633 * varobj.c: Include "varobj-iter.h"
5634 (struct varobj) <child_iter>: Change its type from "PyObject *"
5635 to "struct varobj_iter *".
5636 <saved_item>: Likewise.
5637 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5638 [HAVE_PYTHON] (varobj_get_iterator): New function.
5639 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5640 python-specific code to python/py-varobj.c.
5641 (install_visualizer): Call varobj_iter_delete instead of
5642 Py_XDECREF.
5643 * varobj.h (varobj_ensure_python_env): Declare.
5644
5645 2014-06-12 Yao Qi <yao@codesourcery.com>
5646
5647 * varobj.c (struct varobj_item): New structure.
5648 (create_child_with_value): Update declaration.
5649 (varobj_add_child): Replace arguments 'name' and 'value' with
5650 'item'. All callers updated.
5651 (install_dynamic_child): Likewise.
5652 (update_dynamic_varobj_children): Likewise.
5653 (varobj_add_child): Likewise.
5654 (create_child_with_value): Likewise.
5655
5656 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5657
5658 * NEWS: Create a new section for the next release branch.
5659 Rename the section of the current branch, now that it has
5660 been cut.
5661
5662 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5663
5664 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5665 * version.in: Bump version to 7.8.50.DATE-cvs.
5666
5667 2014-06-11 Pedro Alves <palves@redhat.com>
5668
5669 PR remote/17028
5670 * ser-mingw.c (net_windows_socket_check_pending): New function.
5671 (net_windows_select_thread): Ignore spurious wakeups. Use
5672 net_windows_socket_check_pending.
5673 (net_windows_wait_handle): Check for pending events with
5674 ioctlsocket, through net_windows_socket_check_pending, instead of
5675 checking the socket's event.
5676
5677 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5678
5679 * python/python-internal.h (gdb_PyObject_GetAttrString)
5680 (gdb_PyObject_HasAttrString): New inline function definitions.
5681 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5682 char * of the second argument to PyObject_GetAttrString.
5683
5684 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5685
5686 * serial.c (serial_write): Fix index of character to be printed
5687 in call to serial_logchar when serial debug traces are enabled.
5688
5689 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5690
5691 * gdbtypes (resolve_dynamic_range): Add function description.
5692
5693 2014-06-09 Pedro Alves <palves@redhat.com>
5694
5695 * linux-nat.c (linux_child_follow_fork): Initialize status with
5696 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5697 inner block. Only pass the signal to PTRACE_DETACH if in pass
5698 state.
5699
5700 2014-06-09 Gary Benson <gbenson@redhat.com>
5701
5702 * common/signals.c (gdb_signal_from_host): Reorder to separate
5703 the always-available ANSI-standard signals from the signals that
5704 require checking.
5705 (do_gdb_signal_to_host): Likewise.
5706 * proc-events.c (signal_table): Likewise.
5707
5708 2014-06-08 Hui Zhu <hui@codesourcery.com>
5709
5710 * common/linux-ptrace.c (linux_disable_event_reporting): New
5711 function.
5712 * common/linux-ptrace.h (linux_disable_event_reporting): New
5713 declaration.
5714 * linux-nat.c (linux_child_follow_fork): Do a single step before
5715 detach.
5716
5717 2014-06-07 Keith Seitz <keiths@redhat.com>
5718
5719 Revert:
5720 PR c++/16253
5721 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5722 from symbol_matches_domain in symtab.c. All local callers
5723 of symbol_matches_domain updated.
5724 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5725 search STRUCT_DOMAIN.
5726 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5727 independently. standard_lookup will do that automatically.
5728 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5729 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5730 (cp_lookup_symbol_in_namespace): Likewise.
5731 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5732 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5733 may return a STRUCT_DOMAIN match.
5734 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5735 * cp-support.c: Include language.h.
5736 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5737 VAR_DOMAIN.
5738 * psymtab.c (match_partial_symbol): Compare the requested
5739 domain with the symbol's domain directly.
5740 (lookup_partial_symbol): Likewise.
5741 * symtab.c (lookup_symbol_in_language): Explain when/why
5742 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5743 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5744 appropriate languages.
5745 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5746 and moved to ada-lang.c
5747 (lookup_block_symbol): Explain that this function only returns
5748 symbol matching the requested DOMAIN.
5749 Compare the requested domain with the symbol's domain directly.
5750 (iterate_over_symbols): Compare the requested domain with the
5751 symbol's domain directly.
5752 * symtab.h (symbol_matches_domain): Remove.
5753
5754 2014-06-06 Doug Evans <xdje42@gmail.com>
5755
5756 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5757 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5758 (gdbscm_guile_version_is_at_least): Declare.
5759 (gdbscm_scm_string_to_int): Declare.
5760 * guile/guile.c (gdbscm_guile_major_version): New global.
5761 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5762 (guile_datadir): New static global.
5763 (gdbscm_guile_data_directory): New function.
5764 (initialize_scheme_side): Update.
5765 (misc_guile_functions): Add guile-data-directory.
5766 (initialize_gdb_module): Fetch guile version number.
5767 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5768 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5769 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5770 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5771 comments.
5772 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5773 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5774 * guile/scm-value.c (gdbscm_value_to_string): Only call
5775 scm_port_conversion_strategy if Guile version >= 2.0.6.
5776
5777 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5778
5779 * main.c (print_gdb_help): Add -q and --silent.
5780
5781 2014-06-06 Gary Benson <gbenson@redhat.com>
5782
5783 * common/signals.c: Remove preprocessor conditionals for
5784 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5785 SIGSEGV and SIGTERM.
5786 * proc-events.c: Likewise.
5787
5788 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5789
5790 * symfile.c (symfile_free_objfile): Remove restriction to
5791 OBJF_USERLOADED.
5792 * symfile-mem.c (symbol_file_add_from_memory): Call
5793 add_target_sections_of_objfile.
5794
5795 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5796
5797 * guile/scm-value.c (gdbscm_history_append_x): Use
5798 'vlscm_get_value_smob_arg_unsafe' instead of
5799 'vlscm_scm_to_value'.
5800
5801 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5802
5803 PR mi/15806
5804 * utils.c (printchar): Don't escape at all if quoter is NUL.
5805 Update function documentation to clarify effect of parameter
5806 QUOTER.
5807 * remote.c (escape_buffer): Pass '\\' as the quoter to
5808 fputstrn_unfiltered.
5809 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5810 generate the output.
5811 (mi_solib_unloaded): Same.
5812
5813 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5814
5815 * development.sh: Delete.
5816 * Makefile.in (config.status): Adjust dependency on development.sh.
5817 * configure.ac: Adjust development.sh source call.
5818 * configure: Regenerate.
5819
5820 2014-06-04 Doug Evans <xdje42@gmail.com>
5821
5822 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5823 is_scheme_bkpt, spec.
5824 (bpscm_make_breakpoint_smob): Initialize new members.
5825 (gdbscm_create_breakpoint_x): Split into two ...
5826 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5827 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5828 (scheme_function breakpoint_functions): Update.
5829 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5830 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5831 register-breakpoint!.
5832
5833 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5834
5835 PR server/17023
5836 * mem-break.c (z_type_supported): Return zero if
5837 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5838
5839 2014-06-04 Tom Tromey <tromey@redhat.com>
5840
5841 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5842 value_from_contents_and_address_unresolved.
5843 (ada_template_to_fixed_record_type_1): Likewise.
5844 (ada_which_variant_applies): Likewise.
5845 * value.h (value_from_contents_and_address_unresolved): Declare.
5846 * value.c (value_from_contents_and_address_unresolved): New
5847 function.
5848 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5849 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5850 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5851
5852 2014-06-04 Tom Tromey <tromey@redhat.com>
5853
5854 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5855
5856 2014-06-04 Tom Tromey <tromey@redhat.com>
5857
5858 * procfs.c (procfs_attach): Make "args" const.
5859 * windows-nat.c (windows_attach): Make "args" const.
5860 * nto-procfs.c (procfs_attach): Make "args" const.
5861 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5862 * go32-nat.c (go32_attach): Make "args" const.
5863 * gnu-nat.c (gnu_attach): Make "args" const.
5864 * darwin-nat.c (darwin_attach): Make "args" const.
5865 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5866 * linux-nat.c (linux_nat_attach): Make "args" const.
5867 * remote.c (extended_remote_attach_1, extended_remote_attach):
5868 Make "args" const.
5869 * target.h (struct target_ops) <to_attach>: Make "args" const.
5870 (find_default_attach): Likewise.
5871 * utils.c (parse_pid_to_attach): Make "args" const.
5872 * utils.h (parse_pid_to_attach): Update.
5873
5874 2014-06-04 Tom Tromey <tromey@redhat.com>
5875
5876 * target-delegates.c: Rebuild.
5877 * target.c (default_thread_address_space): New function.
5878 (target_thread_address_space): Simplify.
5879 * target.h (struct target_ops) <to_thread_address_space>: Add
5880 TARGET_DEFAULT_FUNC.
5881
5882 2014-06-04 Doug Evans <xdje42@gmail.com>
5883
5884 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5885
5886 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5887
5888 * record-btrace.c: Include event-loop.h and inf-loop.h.
5889 (record_btrace_resume_exec_dir)
5890 (record_btrace_async_inferior_event_handler)
5891 (record_btrace_handle_async_inferior_event): New.
5892 (record_btrace_open): Create async event handler.
5893 (record_btrace_close): Delete async event handler.
5894 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5895 Mark async event handler.
5896 (record_btrace_execution_direction): New.
5897 (init_record_btrace_ops): Initialize to_execution_direction.
5898
5899 2014-06-03 Doug Evans <xdje42@gmail.com>
5900
5901 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5902 (gdbscm_make_parameter): Ditto.
5903
5904 2014-06-03 Doug Evans <dje@google.com>
5905
5906 * exec.c (exec_close_1): Call clear_section_table instead of
5907 resize_section_table.
5908 (clear_section_table): New function.
5909 (resize_section_table): Make static. Rename arg num_added to
5910 adjustment.
5911 * exec.h (clear_section_table): Declare.
5912 (resize_section_table): Delete.
5913 * progspace.c (release_program_space): Call clear_section_table
5914 instead of resize_section_table.
5915
5916 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5917
5918 * NEWS (Python Scripting): Add entry about the new xmethods
5919 feature.
5920
5921 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5922
5923 * python/py-xmethods.c: New file.
5924 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5925 (objfpy_dealloc): XDECREF on the new xmethods field.
5926 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5927 field.
5928 (objfpy_get_xmethods): New function.
5929 (objfile_getset): New entry 'xmethods'.
5930 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5931 (pspy_dealloc): XDECREF on the new xmethods field.
5932 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5933 field.
5934 (pspy_get_xmethods): New function.
5935 (pspace_getset): New entry 'xmethods'.
5936 * python/python-internal.h: Add declarations for new functions.
5937 * python/python.c (_initialize_python): Invoke
5938 gdbpy_initialize_xmethods.
5939 * python/lib/gdb/__init__.py (xmethods): New
5940 attribute.
5941 * python/lib/gdb/xmethod.py: New file.
5942 * python/lib/gdb/command/xmethods.py: New file.
5943
5944 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5945
5946 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5947 best match method returned by find_overload_match is an xmethod.
5948 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5949 the best matching operator returned by find_overload_match is an
5950 xmethod.
5951 * valops.c: #include "extension.h".
5952 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5953 Return void. The list of matching source methods is returned in
5954 "fn_list" and a vector of matching debug method workers is
5955 returned in "xm_worker_vec". Update all callers.
5956 (value_find_oload_method_list): Likewise.
5957 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5958 non-NULL, then the index of the best matching method in this
5959 vector is returned. Update all callers.
5960 (find_overload_match): Include xmethods while performing overload
5961 resolution.
5962
5963 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5964
5965 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5966 * extension-priv.h (struct extension_language_ops): Add the
5967 xmethod interface.
5968 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5969 get_matching_xmethod_workers, get_xmethod_argtypes,
5970 invoke_xmethod, free_xmethod_worker,
5971 free_xmethod_worker_vec): New functions.
5972 * extension.h: #include "common/vec.h".
5973 New function declarations.
5974 (struct xmethod_worker): New struct.
5975 (VEC (xmethod_worker_ptr)): New vector type.
5976 (xmethod_worker_ptr): New typedef.
5977 (xmethod_worker_vec): Likewise.
5978 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5979 builtin_type.
5980 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5981 (struct builtin_type): New field "xmethod".
5982 * valarith.c (value_ptradd): Assert that the value argument is not
5983 lval_xcallable.
5984 * valops.c (value_must_coerce_to_target): Return 0 for
5985 lval_xcallable values.
5986 * value.c (struct value): New field XM_WORKER in the field
5987 LOCATION.
5988 (value_address, value_raw_address): Return 0 for lval_xcallable
5989 values.
5990 (set_value_address): Assert that the value is not an
5991 lval_xcallable.
5992 (value_free): Free the associated xmethod worker when freeing
5993 lval_xcallable values.
5994 (set_value_component_location): Assert that the WHOLE value is not
5995 lval_xcallable.
5996 (value_of_xmethod, call_xmethod): New functions.
5997 * value.h: Declare "struct xmethod_worker".
5998 Declare new functions value_of_xmethod, call_xmethod.
5999
6000 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6001 Pedro Alves <palves@redhat.com>
6002
6003 PR breakpoints/17000
6004 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6005 New function, extracted from software_breakpoint_inserted_here_p.
6006 (software_breakpoint_inserted_here_p): Replace factored out code
6007 by call to find_non_raw_software_breakpoint_inserted_here.
6008 (bp_target_info_copy_insertion_state): New function.
6009 (bkpt_insert_location): Handle the case of a single-step
6010 breakpoint already inserted at the same address.
6011 (bkpt_remove_location): Handle the case of a single-step
6012 breakpoint still inserted at the same address.
6013 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6014 breakpoint already inserted at the same address.
6015 (deprecated_remove_raw_breakpoint): Handle the case of a
6016 non-raw breakpoint still inserted at the same address.
6017 (find_single_step_breakpoint): New function, extracted from
6018 single_step_breakpoint_inserted_here_p.
6019 (find_single_step_breakpoint): New function,
6020 factored out from single_step_breakpoint_inserted_here_p.
6021 (single_step_breakpoint_inserted_here_p): Reimplement.
6022
6023 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6024
6025 Pushed by Joel Brobecker <brobecker@adacore.com>
6026 * source.c (show_substitute_path_command): Fix display of matching
6027 substitution rules.
6028
6029 2014-06-03 Gary Benson <gbenson@redhat.com>
6030
6031 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6032
6033 2014-06-02 Doug Evans <xdje42@gmail.com>
6034
6035 Add parameter support for Guile.
6036 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6037 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6038 (scm-param.o): New rule.
6039 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6040 (gdbscm_misc_error): Declare.
6041 (gdbscm_canonicalize_command_name): Declare.
6042 (gdbscm_scm_to_host_string): Declare.
6043 (gdbscm_scm_from_host_string): Declare.
6044 (gdbscm_initialize_parameters): Declare.
6045 * guile/guile.c (initialize_gdb_module): Call
6046 gdbscm_initialize_parameters.
6047 * guile/lib/gdb.scm: Export parameter symbols.
6048 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6049 cmdscm_canonicalize_name and made public. All callers updated.
6050 * guile/scm-exception.c (gdbscm_misc_error): New function.
6051 * guile/scm-param.c: New file.
6052 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6053 (gdbscm_scm_to_host_string): New function.
6054 (gdbscm_scm_from_host_string): New function.
6055 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6056
6057 2014-06-02 Doug Evans <xdje42@gmail.com>
6058
6059 Add command support for Guile.
6060 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6061 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6062 (scm-cmd.o): New rule.
6063 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6064 (gdbscm_user_error_p): Declare.
6065 (gdbscm_parse_command_name): Declare.
6066 (gdbscm_valid_command_class_p): Declare.
6067 (gdbscm_initialize_commands): Declare.
6068 * guile/guile.c (initialize_gdb_module): Call
6069 gdbscm_initialize_commands.
6070 * guile/lib/gdb.scm: Export command symbols.
6071 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6072 (throw-user-error): New function.
6073 * guile/scm-cmd.c: New file.
6074 * guile/scm-exception.c (user_error_symbol): New static global.
6075 (gdbscm_user_error_p): New function.
6076 (gdbscm_initialize_exceptions): Set user_error_symbol.
6077 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6078
6079 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6080
6081 * top.c (command_loop): Handle comments here...
6082 (command_line_input): ... not here.
6083
6084 2014-06-02 Doug Evans <xdje42@gmail.com>
6085
6086 Add progspace support for Guile.
6087 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6088 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6089 (scm-progspace.o): New rule.
6090 * guile/guile-internal.h (pspace_smob): New typedef.
6091 (psscm_pspace_smob_pretty_printers): Declare.
6092 (psscm_pspace_smob_from_pspace): Declare.
6093 (psscm_scm_from_pspace): Declare.
6094 * guile/guile.c (initialize_gdb_module): Call
6095 gdbscm_initialize_pspaces.
6096 * guile/lib/gdb.scm: Export progspace symbols.
6097 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6098 support.
6099 (append-pretty-printer!): Ditto.
6100 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6101 Implement.
6102 * guile/scm-progspace.c: New file.
6103
6104 2014-06-03 Alan Modra <amodra@gmail.com>
6105
6106 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6107 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6108
6109 2014-06-02 Doug Evans <dje@google.com>
6110
6111 Add support for skeletonless type units.
6112 * dwarf2read.c (struct dwarf2_per_objfile): New member
6113 n_allocated_type_units.
6114 (struct dwarf2_per_objfile) <tu_stats>: New member
6115 nr_all_type_units_reallocs.
6116 (create_signatured_type_table_from_index): Initialize
6117 n_allocated_type_units
6118 (create_all_type_units): Ditto.
6119 (add_type_unit): Move up in file. New arg slot.
6120 All callers updated. Increase space for all_type_units more
6121 efficiently.
6122 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6123 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6124 (lookup_dwp_signatured_type): Ditto.
6125 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6126 All callers updated.
6127 (build_type_psymtabs_1): Leave type_unit_groups as
6128 NULL if no TUs present.
6129 (print_tu_stats): New function.
6130 (process_skeletonless_type_unit): New function.
6131 (process_dwo_file_for_skeletonless_type_units): New
6132 function.
6133 (process_skeletonless_type_units): New function.
6134 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6135 Call print tu_stats if debugging enabled.
6136
6137 2014-06-02 Pedro Alves <palves@redhat.com>
6138
6139 * breakpoint.c (build_target_command_list): Don't build a command
6140 list if we have any duplicate location that isn't a dprintf.
6141
6142 2014-06-02 Pedro Alves <palves@redhat.com>
6143
6144 * breakpoint.c (dprintf_breakpoint_hit): New function.
6145 (initialize_breakpoint_ops): Install it as dprintf's
6146 breakpoint_hit method.
6147
6148 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6149
6150 * source.c (substitute_path_rule_matches): Simplify using
6151 filename_ncmp instead of FILENAME_CMP.
6152
6153 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6154
6155 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6156
6157 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6158
6159 * configure.ac: When Guile is available, check for the
6160 availability of 'scm_new_smob'.
6161 * configure, config.h.in: Regenerate.
6162 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6163 function.
6164
6165 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6166
6167 * frame.c (struct frame_info): Add stop_string field.
6168 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6169 (get_prev_frame_always): Old content moved into
6170 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6171 TRY_CATCH, handle MEMORY_ERROR exceptions.
6172 (frame_stop_reason_string): New function definition.
6173 * frame.h (unwind_stop_reason_to_string): Extend comment to
6174 mention frame_stop_reason_string.
6175 (frame_stop_reason_string): New function declaration.
6176 * stack.c (frame_info): Switch to frame_stop_reason_string.
6177 (backtrace_command_1): Switch to frame_stop_reason_string.
6178 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6179 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6180 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6181
6182 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6183
6184 * frame.c (frame_stop_reason_string): Rename to ...
6185 (unwind_stop_reason_to_string): this.
6186 * frame.h (frame_stop_reason_string): Rename to ...
6187 (unwind_stop_reason_to_string): this.
6188 * stack.c (frame_info): Update call to frame_stop_reason_string.
6189 (backtrace_command_1): Likewise.
6190 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6191 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6192
6193 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6194
6195 * frame.c (remove_prev_frame): New function.
6196 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6197 remove_prev_frame.
6198
6199 2014-05-29 Pedro Alves <palves@redhat.com>
6200
6201 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6202 and make it const. When a single-step decays to a continue,
6203 clear 'step', not 'hw_step'. Pass whether the caller wanted
6204 to step to user_visible_resume_ptid, not what we ask the
6205 target to do.
6206
6207 2014-05-29 Pedro Alves <palves@redhat.com>
6208
6209 * infrun.c (process_event_stop_test, handle_step_into_function)
6210 (handle_step_into_function_backward): Adjust.
6211 Don't set the even thread's stop_step and call stop_waiting before
6212 calling end_stepping_range. Instead do that ...
6213 (end_stepping_range): ... here. Take an ecs pointer parameter.
6214
6215 2014-05-29 Pedro Alves <palves@redhat.com>
6216
6217 * infrun.c (stop_stepping): Rename to ...
6218 (stop_waiting): ... this.
6219 (proceed): Update comment.
6220 (process_event_stop_test, handle_inferior_event)
6221 (handle_signal_stop, handle_step_into_function)
6222 (handle_step_into_function_backward): Update.
6223
6224 2014-05-29 Pedro Alves <palves@redhat.com>
6225
6226 * infcall.c (run_inferior_call): Don't check whether the current
6227 thread is running after the proceed call.
6228
6229 2014-05-29 Pedro Alves <palves@redhat.com>
6230 Tom Tromey <tromey@redhat.com>
6231
6232 * NEWS: Mention "maint set target-async", "set mi-async", and that
6233 background execution commands are now always available.
6234 * target.h (target_async_permitted): Update comment.
6235 * target.c (target_async_permitted, target_async_permitted_1):
6236 Default to 1.
6237 (set_target_async_command): Rename to ...
6238 (maint_set_target_async_command): ... this.
6239 (show_target_async_command): Rename to ...
6240 (maint_show_target_async_command): ... this.
6241 (_initialize_target): Adjust.
6242 * infcmd.c (prepare_execution_command): Make extern.
6243 * inferior.h (prepare_execution_command): Declare.
6244 * infrun.c (set_observer_mode): Leave target async alone.
6245 * mi/mi-interp.c (mi_interpreter_init): Install
6246 mi_on_sync_execution_done as sync_execution_done observer.
6247 (mi_on_sync_execution_done): New function.
6248 (mi_execute_command_input_handler): Don't print the prompt if we
6249 just started a synchronous command with an async target.
6250 (mi_on_resume): Check sync_execution before printing prompt.
6251 * mi/mi-main.h (mi_async_p): Declare.
6252 * mi/mi-main.c: Include gdbcmd.h.
6253 (mi_async_p): New function.
6254 (mi_async, mi_async_1): New globals.
6255 (set_mi_async_command, show_mi_async_command, mi_async): New
6256 functions.
6257 (exec_continue): Call prepare_execution_command.
6258 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6259 (mi_execute_async_cli_command): Use mi_async_p.
6260 (_initialize_mi_main): Install "set mi-async". Make
6261 "target-async" a deprecated alias.
6262
6263 2014-05-29 Pedro Alves <palves@redhat.com>
6264
6265 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6266 (_initialize_cli_interp): Adjust.
6267 * event-loop.c: Include "observer.h".
6268 (start_event_loop): Notify 'command_error' observers instead of
6269 calling display_gdb_prompt. Remove FIXME comment.
6270 * event-top.c (display_gdb_prompt): Remove call into the
6271 interpreters.
6272 * inf-loop.c: Include "observer.h".
6273 (inferior_event_handler): Notify 'command_error' observers instead
6274 of calling display_gdb_prompt.
6275 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6276 observers instead of calling display_gdb_prompt.
6277 * interps.c (interp_set): Don't call display_gdb_prompt.
6278 (current_interp_display_prompt_p): Delete.
6279 * interps.h (interp_prompt_p): Delete declaration.
6280 (interp_prompt_p_ftype): Delete.
6281 (struct interp_procs) <prompt_proc_p>: Delete field.
6282 (current_interp_display_prompt_p): Delete declaration.
6283 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6284 (_initialize_mi_interp): Adjust.
6285 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6286 'command_error' observers.
6287 (tui_on_sync_execution_done, tui_on_command_error): New
6288 functions.
6289 (tui_display_prompt_p): Delete.
6290 (_initialize_tui_interp): Adjust.
6291
6292 2014-05-29 Pedro Alves <palves@redhat.com>
6293
6294 PR gdb/13860
6295 * cli/cli-interp.c: Include infrun.h and observer.h.
6296 (cli_uiout, cli_interp): New globals.
6297 (cli_on_signal_received, cli_on_end_stepping_range)
6298 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6299 functions.
6300 (cli_interpreter_init): Install them as 'end_stepping_range',
6301 'signal_received' 'signal_exited', 'exited' and 'no_history'
6302 observers.
6303 (_initialize_cli_interp): Remove cli_interp local.
6304 * infrun.c (handle_inferior_event): Call the several stop reason
6305 observers instead of printing the stop reason directly.
6306 (end_stepping_range): New function.
6307 (print_end_stepping_range_reason, print_signal_exited_reason)
6308 (print_exited_reason, print_signal_received_reason)
6309 (print_no_history_reason): Make static, and add an uiout
6310 parameter. Print to that instead of to CURRENT_UIOUT.
6311 * infrun.h (print_end_stepping_range_reason)
6312 (print_signal_exited_reason, print_exited_reason)
6313 (print_signal_received_reason print_no_history_reason): New
6314 declarations.
6315 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6316 'mi_uiout'.
6317 <cli_uiout>: New field.
6318 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6319 uiout for CLI output. Install 'signal_received',
6320 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6321 observers.
6322 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6323 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6324 (mi_on_no_history): New functions.
6325 (ui_out_free_cleanup): Delete function.
6326 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6327 instead use the one already stored in the MI interpreter data.
6328 (mi_ui_out): Adjust.
6329 * tui/tui-interp.c: Include infrun.h and observer.h.
6330 (tui_interp): New global.
6331 (tui_on_signal_received, tui_on_end_stepping_range)
6332 (tui_on_signal_exited, tui_on_exited)
6333 (tui_on_no_history): New functions.
6334 (tui_init): Install them as 'end_stepping_range',
6335 'signal_received' 'signal_exited', 'exited' and 'no_history'
6336 observers.
6337 (_initialize_tui_interp): Delete tui_interp local.
6338
6339 2014-05-29 Pedro Alves <palves@redhat.com>
6340
6341 PR gdb/15713
6342 * linux-nat.c (linux_nat_resume_callback): Rename the second
6343 parameter to 'except'. Skip LP if it points to EXCEPT.
6344 (linux_nat_resume): Don't mark the event lwp as not stopped
6345 before resuming sibling lwps. Instead ask
6346 linux_nat_resume_callback to skip the event lwp. Mark it as not
6347 stopped after actually resuming it.
6348 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6349 resuming it.
6350 (wait_lwp): Mark the lwp as stopped here.
6351 (stop_wait_callback): Mark the lwp as not stopped right after
6352 resuming it. Don't mark lwps as stopped here.
6353 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6354 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6355
6356 2014-05-29 Pedro Alves <palves@redhat.com>
6357
6358 PR PR15693
6359 * infrun.c (resume): Determine how much to resume depending on
6360 whether the caller wanted a step, not whether we can hardware step
6361 the target. Mark all threads that we intend to run as running,
6362 unless we're calling an inferior function.
6363 (normal_stop): If the thread is running an infcall, don't finish
6364 thread state.
6365 * target.c (target_resume): Don't mark threads as running here.
6366
6367 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6368
6369 * serial.c (_initialize_serial): Remove support for
6370 the "set remotebaud" and "show remotebaud" commands.
6371 * NEWS: Add entry documenting the removal of that command.
6372
6373 2014-05-28 Yao Qi <yao@codesourcery.com>
6374
6375 * charset.c: Fix typo in comments.
6376
6377 2014-05-27 Gary Benson <gbenson@redhat.com>
6378
6379 * utils.c (internal_vproblem): Prompt for a bug report.
6380
6381 2014-05-26 Andy Wingo <wingo@igalia.com>
6382
6383 * guile/scm-arch.c (arscm_mark_arch_smob):
6384 * guile/scm-block.c (bkscm_mark_block_smob)
6385 (bkscm_mark_block_syms_progress_smob):
6386 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6387 * guile/scm-exception.c (exscm_mark_exception_smob):
6388 * guile/scm-frame.c (frscm_mark_frame_smob):
6389 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6390 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6391 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6392 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6393 (ppscm_mark_pretty_printer_worker_smob):
6394 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6395 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6396 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6397 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6398 mark functions.
6399 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6400 function.
6401
6402 2014-05-26 Andy Wingo <wingo@igalia.com>
6403 Doug Evans <xdje42@gmail.com>
6404
6405 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6406 empty_base_class. All uses updated.
6407 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6408 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6409 Adapt all callers.
6410 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6411 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6412 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6413 (gdbscm_gsmob_has_property_p, add_property_name)
6414 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6415 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6416 (gdb-object-has-property?, gdb-object-properties): Remove.
6417 (gdb-object-kind): Renamed from gsmob-kind.
6418
6419 2014-05-26 Andy Wingo <wingo@igalia.com>
6420
6421 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6422 * configure: Regenerate.
6423
6424 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6425
6426 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6427
6428 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6429
6430 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6431 (replay_memory_access_read_only, replay_memory_access_read_write)
6432 (replay_memory_access_types, replay_memory_access)
6433 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6434 (cmd_set_record_btrace, cmd_show_record_btrace)
6435 (cmd_show_replay_memory_access): New.
6436 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6437 (record_btrace_remove_breakpoint): Replace
6438 record_btrace_allow_memory_access with replay_memory_access.
6439 (_initialize_record_btrace): Add commands.
6440 * NEWS: Announce it.
6441
6442 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6443
6444 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6445
6446 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6447
6448 * MAINTAINERS (Write After Approval): Move self back from
6449 paper trail.
6450
6451 2014-05-22 Pedro Alves <palves@redhat.com>
6452
6453 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6454 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6455 (disable_randomization, enum exec_direction_kind)
6456 (execution_direction, stop_registers, start_remote)
6457 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6458 (wait_for_inferior, normal_stop, get_last_target_status)
6459 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6460 (insert_step_resume_breakpoint_at_sal)
6461 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6462 (set_step_info, print_stop_event, signal_stop_state)
6463 (signal_print_state, signal_pass_state, signal_stop_update)
6464 (signal_print_update, signal_pass_update)
6465 (update_signals_program_target, clear_exit_convenience_vars)
6466 (displaced_step_dump_bytes, update_observer_mode)
6467 (signal_catch_update, gdb_signal_from_command): Move
6468 declarations ...
6469 * infrun.h: ... to this new file.
6470 * amd64-tdep.c: Include infrun.h.
6471 * annotate.c: Include infrun.h.
6472 * arch-utils.c: Include infrun.h.
6473 * arm-linux-tdep.c: Include infrun.h.
6474 * arm-tdep.c: Include infrun.h.
6475 * break-catch-sig.c: Include infrun.h.
6476 * breakpoint.c: Include infrun.h.
6477 * common/agent.c: Include infrun.h instead of inferior.h.
6478 * corelow.c: Include infrun.h.
6479 * event-top.c: Include infrun.h.
6480 * go32-nat.c: Include infrun.h.
6481 * i386-tdep.c: Include infrun.h.
6482 * inf-loop.c: Include infrun.h.
6483 * infcall.c: Include infrun.h.
6484 * infcmd.c: Include infrun.h.
6485 * infrun.c: Include infrun.h.
6486 * linux-fork.c: Include infrun.h.
6487 * linux-nat.c: Include infrun.h.
6488 * linux-thread-db.c: Include infrun.h.
6489 * monitor.c: Include infrun.h.
6490 * nto-tdep.c: Include infrun.h.
6491 * procfs.c: Include infrun.h.
6492 * record-btrace.c: Include infrun.h.
6493 * record-full.c: Include infrun.h.
6494 * remote-m32r-sdi.c: Include infrun.h.
6495 * remote-mips.c: Include infrun.h.
6496 * remote-notif.c: Include infrun.h.
6497 * remote-sim.c: Include infrun.h.
6498 * remote.c: Include infrun.h.
6499 * reverse.c: Include infrun.h.
6500 * rs6000-tdep.c: Include infrun.h.
6501 * s390-linux-tdep.c: Include infrun.h.
6502 * solib-irix.c: Include infrun.h.
6503 * solib-osf.c: Include infrun.h.
6504 * solib-svr4.c: Include infrun.h.
6505 * target.c: Include infrun.h.
6506 * top.c: Include infrun.h.
6507 * windows-nat.c: Include infrun.h.
6508 * mi/mi-interp.c: Include infrun.h.
6509 * mi/mi-main.c: Include infrun.h.
6510 * python/py-threadevent.c: Include infrun.h.
6511
6512 2014-05-22 Pedro Alves <palves@redhat.com>
6513
6514 * infrun.c (handle_inferior_event): Store the exit code for
6515 --return-child-result here, instead of ...
6516 (print_exited_reason): ... here.
6517
6518 2014-05-21 Pedro Alves <palves@redhat.com>
6519
6520 PR gdb/13860
6521 * gdbthread.h (struct thread_control_state): New field
6522 `command_interp'.
6523 * infrun.c (follow_fork): Copy the new thread control field to the
6524 child fork thread.
6525 (clear_proceed_status_thread): Clear the new thread control field.
6526 (proceed): Set the new thread control field.
6527 * interps.h (command_interp): Declare.
6528 * interps.c (command_interpreter): New global.
6529 (command_interp): New function.
6530 (interp_exec): Set `command_interpreter' while here.
6531 * cli-out.c (cli_uiout_dtor): New function.
6532 (cli_ui_out_impl): Install it.
6533 * mi/mi-interp.c: Include cli-out.h.
6534 (mi_cmd_interpreter_exec): Add comment.
6535 (restore_current_uiout_cleanup): New function.
6536 (ui_out_free_cleanup): New function.
6537 (mi_on_normal_stop): If finishing an execution command started by
6538 a CLI command, or any kind of breakpoint-like event triggered,
6539 print the stop event to the output (CLI) stream.
6540 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6541
6542 2014-05-21 Pedro Alves <palves@redhat.com>
6543
6544 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6545 current source line having changed.
6546 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6547 * infrun.c (normal_stop): Adjust call to
6548 set_current_sal_from_frame.
6549 * source.c (clear_lines_listed_range): New function.
6550 (set_current_source_symtab_and_line, identify_source_line): Clear
6551 the lines listed range.
6552 (line_info): Handle the first "info line" after the current source
6553 line having changed.
6554 * stack.c (print_stack_frame): Remove center handling.
6555 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6556 center sal.line.
6557
6558 2014-05-21 Pedro Alves <palves@redhat.com>
6559
6560 * inf-child.c (inf_child_mourn_inferior): New function.
6561 * inf-child.h (inf_child_mourn_inferior): New declaration.
6562 * darwin-nat.c (darwin_mourn_inferior): Use
6563 inf_child_mourn_inferior.
6564 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6565 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6566 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6567 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6568 * windows-nat.c (windows_mourn_inferior): Likewise.
6569
6570 2014-05-21 Doug Evans <xdje42@gmail.com>
6571
6572 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6573
6574 2014-05-21 Doug Evans <xdje42@gmail.com>
6575
6576 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6577 (gdbscm_out_of_range_error): Ditto.
6578 (gdbscm_memory_error): Ditto.
6579 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6580 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6581 (gdbscm_out_of_range_error): Update.
6582 (gdbscm_memory_error): Update.
6583 (gdbscm_scm_to_target_string_unsafe): Delete.
6584
6585 2014-05-21 Pedro Alves <palves@redhat.com>
6586
6587 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6588 globals.
6589 (inf_child_open_target): New function.
6590 (inf_child_open): Use inf_child_open_target to push the target
6591 instead of erroring out.
6592 (inf_child_disconnect, inf_child_close)
6593 (inf_child_maybe_unpush_target): New functions.
6594 (inf_child_target): Install inf_child_disconnect and
6595 inf_child_close. Store a pointer to the returned object.
6596 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6597 declarations.
6598 * target.c (auto_connect_native_target): New global.
6599 (show_default_run_target): New function.
6600 (find_default_run_target): Return NULL if automatically connecting
6601 to the native target is disabled.
6602 (_initialize_target): Install set/show auto-connect-native-target.
6603 * NEWS: Mention "set auto-connect-native-target", and "target
6604 native".
6605 * linux-nat.c (super_close): New global.
6606 (linux_nat_close): Call super_close.
6607 (linux_nat_add_target): Store a pointer to the base class's
6608 to_close method.
6609 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6610 inf_child_maybe_unpush.
6611 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6612 already pushed.
6613 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6614 the inferior. Use inf_child_maybe_unpush_target.
6615 (inf_ttrace_attach): Don't push the target if it is already
6616 pushed.
6617 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6618 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6619 after mourning the inferior. Use inf_child_maybe_unpush_target.
6620 (darwin_attach_pid): Don't push the target if it is already
6621 pushed.
6622 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6623 mourning the inferior. Use inf_child_maybe_unpush_target.
6624 (gnu_detach): Use inf_child_maybe_unpush_target.
6625 * go32-nat.c (go32_create_inferior): Don't push the target if it
6626 is already pushed.
6627 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6628 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6629 (procfs_open): Rename to ...
6630 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6631 comments. Can target_preopen before changing node. Call
6632 inf_child_open_target to push the target explicitly.
6633 (procfs_attach): Don't push the target if it is already pushed.
6634 (procfs_detach): Use inf_child_maybe_unpush_target.
6635 (procfs_create_inferior): Don't push the target if it is already
6636 pushed.
6637 (nto_native_ops): New global.
6638 (procfs_open): Reimplement.
6639 (procfs_native_open): New function.
6640 (init_procfs_targets): Install procfs_native_open as to_open of
6641 "target native". Store a pointer to the "native" target in
6642 nto_native_ops.
6643 * procfs.c (procfs_attach): Don't push the target if it is already
6644 pushed.
6645 (procfs_detach): Use inf_child_maybe_unpush_target.
6646 (procfs_mourn_inferior): Only unpush the target after mourning the
6647 inferior. Use inf_child_maybe_unpush_target.
6648 (procfs_init_inferior): Don't push the target if it is already
6649 pushed.
6650 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6651 if it is already pushed.
6652
6653 2014-05-21 Pedro Alves <palves@redhat.com>
6654
6655 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6656 and "procfs" targets are now called "native" instead.
6657
6658 2014-05-21 Pedro Alves <palves@redhat.com>
6659
6660 * go32-nat.c (go32_open): Delete.
6661 (go32_target): Don't override the to_open method.
6662
6663 2014-05-21 Pedro Alves <palves@redhat.com>
6664
6665 * nto-procfs.c (procfs_can_run): New function.
6666 (nto_procfs_ops): New global.
6667 (init_procfs_targets): New, based on procfs_target. Install
6668 "target native" in addition to "target procfs".
6669 (_initialize_procfs): Call init_procfs_targets instead of adding
6670 the target here.
6671
6672 2014-05-21 Pedro Alves <palves@redhat.com>
6673
6674 * windows-nat.c (windows_target): Don't override to_shortname,
6675 to_longname or to_doc.
6676
6677 2014-05-21 Pedro Alves <palves@redhat.com>
6678
6679 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6680 to_doc.
6681
6682 2014-05-21 Pedro Alves <palves@redhat.com>
6683
6684 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6685 to_shortname, to_longname or to_doc.
6686
6687 2014-05-21 Pedro Alves <palves@redhat.com>
6688
6689 * go32-nat.c (go32_target): Don't override to_shortname,
6690 to_longname or to_doc.
6691
6692 2014-05-21 Pedro Alves <palves@redhat.com>
6693
6694 * inf-child.c (inf_child_open): Remove mention of "child".
6695 (inf_child_target): Rename target to "native" instead of "child".
6696
6697 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6698
6699 * Makefile.in (SFILES): Delete "regset.c".
6700 (COMMON_OBS): Delete "regset.o".
6701 * regset.c: Remove.
6702 * regset.h (regset_alloc): Delete prototype.
6703
6704 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6705
6706 * sparc-linux-tdep.c (sparc32_linux_gregset)
6707 (sparc32_linux_fpregset): New static regset structures.
6708 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6709 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6710 'fpregset' fields.
6711 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6712 (sparc64_linux_fpregset): New static regset structures.
6713 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6714 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6715 New static regset structures.
6716 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6717 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6718 New static regset structures.
6719 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6720 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6721 New static regset structures.
6722 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6723 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6724 New static regset structures.
6725 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6726
6727 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6728
6729 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6730 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6731 register maps ("regmaps") from "*regset" to "*regmap". Do this
6732 for all regmap types and variables.
6733 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6734 (sparc32_linux_supply_core_gregset)
6735 (sparc32_linux_collect_core_gregset)
6736 (sparc32_linux_supply_core_fpregset)
6737 (sparc32_linux_collect_core_fpregset): Likewise.
6738 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6739 (sparc_gregmap, sparc_fpregmap): ... these.
6740 (sparc_supply_gregset, sparc_collect_gregset)
6741 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6742 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6743 (_initialize_sparc_nat): Rename regmaps.
6744 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6745 (sparc_gregmap, sparc_fpregmap): ... these.
6746 (sparc_supply_gregset, sparc_collect_gregset)
6747 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6748 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6749 Rename macros to...
6750 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6751 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6752 Likewise.
6753 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6754 Rename to...
6755 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6756 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6757 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6758 regmaps.
6759 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6760 (sparc32_bsd_fpregset): Rename to...
6761 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6762 (sparc32_bsd_fpregmap): ... these.
6763 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6764 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6765 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6766 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6767 (struct sparc_gregmap, struct sparc_fpregmap)
6768 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6769 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6770 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6771 (sparc32_supply_regset, sparc32_collect_gregset)
6772 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6773 prototypes.
6774 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6775 (sparc64_linux_ptrace_gregmap): ... this.
6776 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6777 (_initialize_sparc64_linux_nat): Rename regmaps.
6778 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6779 (sparc64_linux_core_gregmap): ... this.
6780 (sparc64_linux_supply_core_gregset)
6781 (sparc64_linux_collect_core_gregset)
6782 (sparc64_linux_supply_core_fpregset)
6783 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6784 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6785 (sparc64_sol2_fpregset): Rename to...
6786 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6787 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6788 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6789 regmaps.
6790 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6791 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6792 (sparc64_bsd_fpregset): Rename to...
6793 (struct sparc_gregmap, sparc64_sol2_gregmap)
6794 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6795 (sparc64_bsd_fpregmap): ... these.
6796 (sparc64_supply_gregset, sparc64_collect_gregset)
6797 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6798 prototypes.
6799 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6800 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6801 (sparc64fbsd_gregmap): ... this.
6802 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6803 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6804 Rename regmaps.
6805 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6806 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6807 (sparc64nbsd_collect_fpregset): Likewise.
6808 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6809 (sparc64nbsd_gregmap): ... this.
6810 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6811 regmaps.
6812 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6813 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6814 (sparc64obsd_gregmap): ... this.
6815 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6816 regmaps.
6817 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6818 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6819 (sparc32nbsd_gregmap): ... this.
6820 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6821 regmaps.
6822
6823 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6824
6825 * score-tdep.c (score7_linux_gregset): New static regset
6826 structure.
6827 (score7_linux_regset_from_core_section): Remove dynamic regset
6828 allocation.
6829 (score_gdbarch_init): Drop allocation of tdep structure.
6830 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6831
6832 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6833
6834 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6835 regset structures.
6836 (am33_regset_from_core_section): Remove dynamic regset
6837 allocations.
6838
6839 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6840
6841 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6842 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6843 structures.
6844 (mips_linux_regset_from_core_section): Remove dynamic regset
6845 allocations.
6846 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6847 'gregset64', 'fpregset', and 'fpregset64'.
6848 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6849 deleted tdep fields.
6850
6851 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6852
6853 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6854 regset structures.
6855 (amd64_regset_from_core_section): Remove dynamic regset
6856 allocations.
6857 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6858 structure.
6859 (amd64obsd_regset_from_core_section): Remove dynamic regset
6860 allocation.
6861 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6862 Likewise.
6863 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6864 x86-common regset supply function.
6865 * i386-tdep.c (i386_collect_gregset): Make static.
6866 (i386_gregset): New global regset structure.
6867 (i386_fpregset, i386_xstateregset): New static regset structures.
6868 (i386_regset_from_core_section): Remove dynamic regset
6869 allocations.
6870 (i386_gdbarch_init): Remove initialization of tdep fields
6871 'gregset', 'fpregset', and 'xstateregset'.
6872 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6873 'fpregset', and 'xstateregset'.
6874 (i386_collect_gregset): Remove prototype.
6875 (i386_gregset): New declaration.
6876 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6877 structure.
6878 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6879 allocation.
6880
6881 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6882
6883 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6884 (arm_linux_vfpregset): New static regset structures.
6885 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6886 regset structures.
6887 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6888 and 'vfpregset' fields.
6889
6890 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6891
6892 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6893 (aarch64_linux_fpregset): New static regset structures.
6894 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6895 of regset structures.
6896 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6897 'fpregset' fields.
6898
6899 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6900
6901 * regset.h (struct regset): Remove gdbarch field.
6902 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6903 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6904 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6905 Likewise.
6906 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6907 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6908 (ppc32_linux_vsxregset): Likewise.
6909 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6910 via the regcache instead of the regset.
6911 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6912 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6913 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6914 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6915 Likewise.
6916
6917 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6918
6919 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6920 Constify structures.
6921 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6922 (alphanbsd_aout_gregset): Likewise.
6923 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6924 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6925 Likewise.
6926 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6927 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6928 Likewise.
6929 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6930 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6931 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6932 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6933 * m88k-tdep.c (m88k_gregset): Likewise.
6934 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6935 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6936 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6937 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6938 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6939 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6940 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6941 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6942 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6943 Likewise.
6944 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6945 * sh-tdep.h (sh_corefile_gregset): Likewise.
6946 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6947 * vax-tdep.c (vax_gregset): Likewise.
6948
6949 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6950
6951 Fix TLS access for -static -pthread.
6952 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6953 (try_thread_db_load_1): Initialize it.
6954 (thread_db_get_thread_local_address): Call it if LM is zero.
6955 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6956 * target.h (struct target_ops) (to_get_thread_local_address): Add
6957 load_module_addr comment.
6958
6959 2014-05-21 Pedro Alves <palves@redhat.com>
6960
6961 * dcache.c (dcache_read_memory_partial): If reading the cache line
6962 fails, fallback to reading just the memory the caller wanted.
6963
6964 2014-05-20 Doug Evans <dje@google.com>
6965
6966 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6967 instead of get_current_arch.
6968
6969 2014-05-20 Pedro Alves <palves@redhat.com>
6970
6971 * NEWS: Mention that compare-sections now works with all targets.
6972
6973 * remote.c (PACKET_qCRC): New enum value.
6974 (remote_verify_memory): Don't send qCRC if the target has no
6975 execution. Use packet_support/packet_ok. If the target doesn't
6976 support the qCRC packet, fallback to a deep memory copy.
6977 (compare_sections_command): Say "target image" instead of "remote
6978 executable".
6979 (_initialize_remote): Add PACKET_qCRC to the list of config
6980 packets that have no associated command. Extend comment.
6981 * target.c (simple_verify_memory, default_verify_memory): New
6982 function.
6983 * target.h (struct target_ops) <to_verify_memory>: Default to
6984 default_verify_memory.
6985 (simple_verify_memory): New declaration.
6986 * target-delegates.c: Regenerate.
6987
6988 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6989
6990 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6991
6992 2014-05-20 Hui Zhu <hui@codesourcery.com>
6993 Yao Qi <yao@codesourcery.com>
6994
6995 PR backtrace/16558
6996 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6997 and change address of sp and pc.
6998
6999 2014-05-19 Tom Tromey <tromey@redhat.com>
7000
7001 * gdbtypes.c (rank_function): Use XNEWVEC.
7002 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7003
7004 2014-05-19 Doug Evans <dje@google.com>
7005
7006 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7007 build_type_unit_groups and moved closer to only caller. Remove
7008 arguments. All references updated. Remove outdated .gdb_index
7009 comment.
7010 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7011 build_type_psymtabs_1.
7012
7013 2014-05-19 Doug Evans <dje@google.com>
7014
7015 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7016 n_type_unit_groups, all_type_unit_groups. All uses removed.
7017 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7018 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7019 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7020 (add_type_unit_group_to_table): Delete.
7021
7022 2014-05-19 Doug Evans <dje@google.com>
7023
7024 * eval.c (evaluate_subexp_standard): Add some comments.
7025
7026 2014-05-17 Doug Evans <xdje42@gmail.com>
7027
7028 * progspace.c (remove_program_space): Delete, unused.
7029 * progspace.h (remove_program_space): Ditto.
7030
7031 2014-05-17 Doug Evans <xdje42@gmail.com>
7032
7033 * inferior.c (prune_inferiors): Fix comment.
7034 (remove_inferior_command): Call prune_program_spaces.
7035
7036 2014-05-16 Doug Evans <dje@google.com>
7037
7038 New command line option -D.
7039 * NEWS: Mention it.
7040 * main.c (set_gdb_data_directory): New function.
7041 (captured_main): Recognize -D. Flag error for --data-directory "".
7042 Call set_gdb_data_directory.
7043 (print_gdb_help): Print --data-directory, -D.
7044 * main.h (set_gdb_data_directory): Declare.
7045 * top.c (staged_gdb_datadir): New static global.
7046 (set_gdb_datadir): Call set_gdb_data_directory
7047 (show_gdb_datadir): New function.
7048 (init_main): Update init of data-directory parameter.
7049
7050 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7051
7052 Import the "dirfd" gnulib module.
7053 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7054 * gnulib/aclocal.m4: Update.
7055 * gnulib/config.in: Update.
7056 * gnulib/configure: Update.
7057 * gnulib/import/Makefile.am: Update.
7058 * gnulib/import/Makefile.in: Update.
7059 * gnulib/import/dirfd.c: New.
7060 * gnulib/import/m4/dirfd.m4: New.
7061 * gnulib/import/m4/gnulib-cache.m4: Update.
7062 * gnulib/import/m4/gnulib-comp.m4: Update.
7063
7064 2014-05-16 Pierre Muller <muller@sourceware.org>
7065 Yao Qi <yao@codesourcery.com>
7066
7067 * valprint.c (print_wchar): Move the code on checking whether
7068 W is a printable wide char to the default branch of switch
7069 statement below. Call wchar_printable instead of gdb_iswprint.
7070
7071 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7072
7073 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7074 ldr.w and ldrd instructions.
7075
7076 2014-05-15 Doug Evans <dje@google.com>
7077
7078 * dwarf2read.c (read_structure_type): Delete outdated comments.
7079
7080 2014-05-14 Tom Tromey <tromey@redhat.com>
7081
7082 * macrocmd.c (print_macro_definition): Reindent.
7083
7084 2014-05-13 Doug Evans <xdje42@gmail.com>
7085
7086 * python/py-cmd.c (cmdpy_completer): Add comment.
7087 (completers): Make const.
7088
7089 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7090
7091 * infrun.c (resume): Remove should_resume (unused). Move up
7092 declaration of resume_ptid.
7093
7094 2014-05-13 Tom Tromey <tromey@redhat.com>
7095
7096 * language.h (unop_type_check): Remove.
7097 (binop_type_check): Don't declare.
7098
7099 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7100
7101 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7102 call to regcache_raw_collect.
7103
7104 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7105
7106 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7107 mi_console->quote as the quoting character.
7108
7109 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7110
7111 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7112
7113 2014-04-29 Tom Tromey <tromey@redhat.com>
7114
7115 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7116 "show debug varobj".
7117
7118 2014-05-07 Kyle McMartin <kyle@redhat.com>
7119
7120 Pushed by Joel Brobecker <brobecker@adacore.com>.
7121 * aarch64-tdep.c (aarch64_software_single_step): New function.
7122 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7123 with aarch64_software_single_step.
7124
7125 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7126
7127 GDB 7.7.1 released.
7128
7129 2014-05-05 Keith Seitz <keiths@redhat.com>
7130
7131 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7132 variable or history value is successfully parsed.
7133
7134 2014-05-05 Yao Qi <yao@codesourcery.com>
7135 Pedro Alves <palves@redhat.com>
7136
7137 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7138 address of blocks that intersects the requested range. Trim
7139 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7140 sections.
7141 * ctf.c (ctf_xfer_partial): Likewise.
7142
7143 2014-05-05 Yao Qi <yao@codesourcery.com>
7144
7145 * printcmd.c (display_command): Remove the check to
7146 target_has_execution.
7147
7148 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7149
7150 * ppcobsd-nat.c: Include "obsd-nat.h".
7151 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7152 add_target.
7153 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7154
7155 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7156
7157 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7158 and 16-bit signed and unsigned arguments. Update comment.
7159 (stap_parse_probe_arguments): Extend code to handle such
7160 arguments. Use warning instead of complaint to notify about
7161 unrecognized bitness.
7162
7163 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7164
7165 PR breakpoints/16889
7166 * stap-probe.c (stap_parse_probe_arguments): Simplify
7167 check for non-prefixed probes (i.e., probes whose
7168 arguments do not start with "N@"). Always set the
7169 argument type to a sane value.
7170
7171 2014-05-01 David Taylor <dtaylor@emc.com>
7172
7173 * remote.c (compare_sections_command): Add -r option to compare
7174 all loadable read-only sections.
7175
7176 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7177
7178 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7179 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7180 Update all callers.
7181 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7182 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7183 Remove unused CORE_ADDR argument. Update all callers.
7184
7185 2014-04-29 Pedro Alves <palves@redhat.com>
7186
7187 * remote.c (struct packet_config) <detect>: Extend comment.
7188 (add_packet_config_cmd): Don't set the config's detect or support
7189 fields here.
7190 (init_all_packet_configs): Also initialize the config's 'detect'
7191 field.
7192 (reset_all_packet_configs_support): New function.
7193 (remote_open_1): Call reset_all_packet_configs_support instead of
7194 init_all_packet_configs.
7195 (_initialize_remote): Initialize all packet configs. Assert that
7196 all packets have an associated command, except a few known
7197 outliers.
7198
7199 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7200
7201 * dwarf2read.c (read_subrange_type): Handle dynamic
7202 DW_AT_lower_bound attributes.
7203
7204 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7205
7206 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7207 dynamic bounds before computing its upper bound.
7208 (ada_discrete_type_low_bound): Same as above with the lower bound.
7209
7210 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7211
7212 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7213 range types. Adjust the array handling implementation to
7214 take advantage of this change.
7215 (resolve_dynamic_range): New function, mostly extracted from
7216 resolve_dynamic_bounds.
7217 (resolve_dynamic_array): New function, mostly extracted from
7218 resolve_dynamic_bounds.
7219 (resolve_dynamic_bounds): Delete.
7220 (resolve_dynamic_type): Reimplement. Add handling of
7221 TYPE_CODE_RANGE types.
7222
7223 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7224
7225 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7226 handling of parallel ___XA types.
7227
7228 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7229
7230 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7231 unnecessary second call to static_unwrap_type.
7232
7233 2014-04-27 Hui Zhu <hui@codesourcery.com>
7234
7235 * stack.c (print_frame_info): Call do_gdb_disassembly with
7236 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7237
7238 2014-04-26 Doug Evans <xdje42@gmail.com>
7239
7240 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7241
7242 2014-04-25 Pedro Alves <palves@redhat.com>
7243
7244 PR server/16255
7245 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7246 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7247 and newline from built string.
7248 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7249 (linux_ptrace_attach_fail_reason): ... this.
7250 * linux-nat.c (linux_nat_attach): Adjust to use
7251 linux_ptrace_attach_fail_reason.
7252
7253 2014-04-25 Pedro Alves <palves@redhat.com>
7254
7255 * remote.c (struct remote_state): Remove multi_process_aware,
7256 non_stop_aware, cond_tracepoints, cond_breakpoints,
7257 breakpoint_commands, fast_tracepoints, static_tracepoints,
7258 install_in_trace, disconnected_tracing,
7259 enable_disable_tracepoints, string_tracing, and
7260 augmented_libraries_svr4_read fields.
7261 (remote_multi_process_p): Move further below in the file.
7262 (struct packet_config): Add comments.
7263 (update_packet_config): Delete function.
7264 (show_packet_config_cmd): Use packet_config_support.
7265 (add_packet_config_cmd): Use NULL as set callback.
7266 (packet_ok): "set remote foo-packet"-style commands no longer
7267 change config->supported -- adjust.
7268 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7269 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7270 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7271 (PACKET_QNonStop, PACKET_multiprocess_feature)
7272 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7273 (PACKET_DisconnectedTracing_feature)
7274 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7275 (set_remote_protocol_packet_cmd): Delete function.
7276 (packet_config_support, packet_support): New functions.
7277 (set_remote_protocol_Z_packet_cmd): Don't call
7278 update_packet_config.
7279 (remote_query_attached, remote_pass_signals)
7280 (remote_program_signals, remote_threads_info)
7281 (remote_threads_extra_info, remote_start_remote): Use
7282 packet_support.
7283 (remote_start_remote): Use packet_config_support and
7284 packet_support.
7285 (init_all_packet_configs): Set all packets to unknown support,
7286 instead of calling update_packet_config.
7287 (remote_check_symbols): Use packet_support.
7288 (remote_supported_packet): Unconditionally set the packet config's
7289 support status.
7290 (remote_multi_process_feature, remote_non_stop_feature)
7291 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7292 (remote_breakpoint_commands_feature)
7293 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7294 (remote_install_in_trace_feature)
7295 (remote_disconnected_tracing_feature)
7296 (remote_enable_disable_tracepoint_feature)
7297 (remote_string_tracing_feature)
7298 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7299 (remote_protocol_features): Adjust to use remote_supported_packet
7300 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7301 "ConditionalTracepoints", "ConditionalBreakpoints",
7302 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7303 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7304 "EnableDisableTracepoints", and "tracenz".
7305 (remote_query_supported): Use packet_support.
7306 (remote_open_1): Adjust.
7307 (extended_remote_attach_1): Use packet_support. Switch on the
7308 result of packet_ok instead of checking whether the packet ended
7309 up disabled.
7310 (remote_vcont_resume): Use packet_support.
7311 (remote_resume, remote_stop_ns, fetch_register_using_p)
7312 (remote_prepare_to_store, store_register_using_P)
7313 (check_binary_download, remote_write_bytes): Use packet_support.
7314 (remote_vkill): Use packet_support. Switch on the result of
7315 packet_ok instead of checking whether the packet ended up
7316 disabled.
7317 (extended_remote_supports_disable_randomization): Use
7318 packet_support.
7319 (extended_remote_run): Switch on the result of packet_ok instead
7320 of checking whether the packet ended up disabled.
7321 (remote_insert_breakpoint, remote_remove_breakpoint)
7322 (remote_insert_watchpoint, remote_remove_watchpoint)
7323 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7324 packet_support.
7325 (remote_search_memory): Use packet_config_support.
7326 (remote_get_thread_local_address, remote_get_tib_address)
7327 (remote_hostio_send_command, remote_can_execute_reverse): Use
7328 packet_support.
7329 (remote_supports_cond_tracepoints)
7330 (remote_supports_cond_breakpoints)
7331 (remote_supports_fast_tracepoints)
7332 (remote_supports_static_tracepoints)
7333 (remote_supports_install_in_trace)
7334 (remote_supports_enable_disable_tracepoint)
7335 (remote_supports_string_tracing)
7336 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7337 the packet config says the feature is enabled or disabled.
7338 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7339 (remote_get_trace_status): Use packet_support.
7340 (remote_set_disconnected_tracing): Adjust to check whether the
7341 feature is enabled with packet_support.
7342 (remote_set_trace_buffer_size, remote_use_agent)
7343 (remote_can_use_agent, remote_supports_btrace): Use
7344 packet_support.
7345 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7346 Use packet_config_support.
7347 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7348 the packet config says the feature is enabled or disabled.
7349 (set_range_stepping): Use packet_support.
7350
7351 2014-04-25 Tom Tromey <tromey@redhat.com>
7352
7353 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7354 argument.
7355
7356 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7357
7358 * NEWS: Mention support for C99 variable length arrays.
7359
7360 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7361
7362 * ada-lang.c (standard_exc): Expand introductory comment.
7363
7364 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7365 Walfred Tedeschi <walfred.tedeschi@intel.com>
7366
7367 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7368 AVX512 registers.
7369 (amd64_linux_read_description): Add code to handle AVX512 xstate
7370 mask and return respective tdesc.
7371 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7372 and features/i386/x32-avx512-linux.c.
7373 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7374 (amd64_linux_core_read_description): Add code to handle AVX512
7375 xstate mask and return respective tdesc.
7376 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7377 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7378 calculation.
7379 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7380 (tdesc_amd64_avx512_linux): New prototype.
7381 (tdesc_x32_avx512_linux): Likewise.
7382 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7383 features/i386/x32-avx512.c.
7384 (amd64_ymm_avx512_names): New register names for pseudo
7385 registers YMM16-31.
7386 (amd64_ymmh_avx512_names): New register names for raw registers
7387 YMMH16-31.
7388 (amd64_k_names): New register names for K registers.
7389 (amd64_zmmh_names): New register names for ZMM raw registers.
7390 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7391 (amd64_xmm_avx512_names): New register names for XMM16-31
7392 registers.
7393 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7394 registers.
7395 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7396 if feature is present.
7397 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7398 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7399 (AMD64_NUM_REGS): Adjust to new number of registers.
7400 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7401 registers supplied via XSTATE by AVX512 registers.
7402 (i386_linux_read_description): Add case for AVX512.
7403 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7404 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7405 (i386_linux_core_read_description): Add case for AVX512.
7406 (i386_linux_init_abi): Install supported register note section
7407 for AVX512.
7408 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7409 AVX512.
7410 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7411 registers to be number of zmm7h + 1.
7412 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7413 * i386-tdep.c: Include features/i386/i386-avx512.c.
7414 (i386_zmm_names): Add ZMM pseudo register names array.
7415 (i386_zmmh_names): Add ZMM raw register names array.
7416 (i386_k_names): Add K raw register names array.
7417 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7418 registers. AVX512 has 16 more ZMM registers than there are YMM
7419 registers.
7420 (i386_zmmh_regnum_p): Add function to look up register number of
7421 ZMM raw registers.
7422 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7423 (i386_k_regnum_p): Likewise for K raw registers.
7424 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7425 registers added by AVX512.
7426 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7427 registers added by AVX512.
7428 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7429 added by AVX512.
7430 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7431 (i386_pseudo_register_name): Add ZMM pseudo registers.
7432 (i386_zmm_type): Construct and return vector registers type for ZMM
7433 registers.
7434 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7435 ZMM0-31 pseudo registers and K registers.
7436 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7437 and YMM16-31 registers from register cache.
7438 (i386_pseudo_register_write): Add code to write K, ZMM and
7439 YMM16-31 registers.
7440 (i386_register_reggroup_p): Add code to include/exclude AVX512
7441 registers in/from respective register groups.
7442 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7443 registers if feature is present in xcr0.
7444 (i386_gdbarch_init): Add code to initialize AVX512 feature
7445 variables in tdep structure, wire in pseudo registers and call
7446 initialize_tdesc_i386_avx512.
7447 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7448 variables.
7449 (i386_regnum): Add AVX512 registers.
7450 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7451 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7452 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7453 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7454 512 bits wide.
7455 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7456 (i386_ymm_avx512_regnum_p): Likewise.
7457 (i386_k_regnum_p): Likewise.
7458 (i386_zmm_regnum_p): Likewise.
7459 (i386_zmmh_regnum_p): Likewise.
7460 * i387-tdep.c : Update year in copyright notice.
7461 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7462 XSAVE buffer.
7463 (XSAVE_YMM_AVX512_ADDR): New macro.
7464 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7465 XSAVE buffer.
7466 (XSAVE_XMM_AVX512_ADDR): New macro.
7467 (xsave_avx512_k_offset): New table for K register offsets in
7468 XSAVE buffer.
7469 (XSAVE_AVX512_K_ADDR): New macro.
7470 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7471 in XSAVE buffer.
7472 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7473 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7474 buffer.
7475 (i387_collect_xsave): Add code to collect AVX512 registers from
7476 XSAVE buffer.
7477 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7478 of XMM16-31 registers.
7479 (I387_NUM_K_REGS): New define for number of K registers.
7480 (I387_K0_REGNUM): New define for K0 register number.
7481 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7482 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7483 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7484 registers.
7485 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7486 (I387_XMM16_REGNUM): New define for XMM16 register number.
7487 (I387_YMM0_REGNUM): New define for YMM0 register number.
7488 (I387_KEND_REGNUM): New define for last K register number.
7489 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7490 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7491 number.
7492 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7493 number.
7494 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7495 size.
7496 * features/Makefile: Add AVX512 related files.
7497 * features/i386/32bit-avx512.xml: New file.
7498 * features/i386/64bit-avx512.xml: Likewise.
7499 * features/i386/amd64-avx512-linux.c: Likewise.
7500 * features/i386/amd64-avx512-linux.xml: Likewise.
7501 * features/i386/amd64-avx512.c: Likewise.
7502 * features/i386/amd64-avx512.xml: Likewise.
7503 * features/i386/i386-avx512-linux.c: Likewise.
7504 * features/i386/i386-avx512-linux.xml: Likewise.
7505 * features/i386/i386-avx512.c: Likewise.
7506 * features/i386/i386-avx512.xml: Likewise.
7507 * features/i386/x32-avx512-linux.c: Likewise.
7508 * features/i386/x32-avx512-linux.xml: Likewise.
7509 * features/i386/x32-avx512.c: Likewise.
7510 * features/i386/x32-avx512.xml: Likewise.
7511 * regformats/i386/amd64-avx512-linux.dat: New file.
7512 * regformats/i386/amd64-avx512.dat: Likewise.
7513 * regformats/i386/i386-avx512-linux.dat: Likewise.
7514 * regformats/i386/i386-avx512.dat: Likewise.
7515 * regformats/i386/x32-avx512-linux.dat: Likewise.
7516 * regformats/i386/x32-avx512.dat: Likewise.
7517 * NEWS: Add note about new support for AVX512.
7518
7519
7520 2014-04-23 Pedro Alves <palves@redhat.com>
7521
7522 * breakpoint.c (insert_bp_location): Tolerate errors if the
7523 breakpoint is set in a user-loaded objfile.
7524 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7525 location is marked shlib_disabled. If the breakpoint is set in a
7526 user-loaded objfile is a GDB-side memory breakpoint, validate it
7527 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7528 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7529 flag.
7530 * mem-break.c (memory_validate_breakpoint): New function.
7531 * objfiles.c (userloaded_objfile_contains_address_p): New
7532 function.
7533 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7534 * target.h (memory_validate_breakpoint): New declaration.
7535
7536 2014-04-23 Pedro Alves <palves@redhat.com>
7537
7538 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7539 the breakpoint is set in a shared library, only suppress
7540 errors for software breakpoints, not hardware breakpoints.
7541
7542 2014-04-22 Pedro Alves <palves@redhat.com>
7543
7544 * infrun.c (schedlock_applies): New function, factored out from
7545 find_thread_needs_step_over.
7546 (find_thread_needs_step_over): Use it.
7547 (switch_back_to_stepped_thread): Always clear trap_expected if the
7548 step over is finished. Return early if scheduler locking applies.
7549 Look for the stepping thread and a potential step-over thread with
7550 a single loop.
7551 (currently_stepping_or_nexting_callback): Delete.
7552
7553 2014-04-22 Nick Clifton <nickc@redhat.com>
7554
7555 * NEWS: Mention that ARM sim now supports tracing.
7556
7557 2014-04-22 Yao Qi <yao@codesourcery.com>
7558
7559 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7560 to ...
7561 * tracefile.c (tracefile_fetch_registers): ... it. New
7562 function.
7563 * tracefile.h (tracefile_fetch_registers): Declare.
7564 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7565 tracefile_fetch_registers.
7566
7567 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7568
7569 PR gdb/14018
7570 * windows-nat.c (thread_rec): Don't display a warning when
7571 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7572 fails for any reason, set th->suspended to -1, so that we don't
7573 try to resume such a thread. Also, don't return NULL in these
7574 cases, to avoid completely ruin the session due to "PC register is
7575 not available" error.
7576 (do_windows_fetch_inferior_registers): Check errors in
7577 GetThreadContext call.
7578 (windows_continue): Accept an additional argument KILLED; if not
7579 zero, ignore errors in the SetThreadContext call, since the
7580 inferior was killed and is shutting down.
7581 (windows_resume, get_windows_debug_event)
7582 (windows_create_inferior, windows_mourn_inferior)
7583 (windows_kill_inferior): All callers of windows_continue changed
7584 to adjust to its new calling sequence.
7585
7586 2014-04-19 Yao Qi <yao@codesourcery.com>
7587
7588 * ctf.c (ctf_open): Call post_create_inferior.
7589
7590 2014-04-19 Yao Qi <yao@codesourcery.com>
7591
7592 * ctf.c (handle_id): New static variable.
7593 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7594 value. Get the declaration of event "register" and get length
7595 of field "contents".
7596
7597 2014-04-19 Yao Qi <yao@codesourcery.com>
7598
7599 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7600
7601 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7602
7603 * valops.c (oload_method_static): Remove unnecessary argument
7604 METHOD. Update all callers.
7605
7606 2014-04-18 Pedro alves <palves@redhat.com>
7607 Tom Tromey <tromey@redhat.com>
7608
7609 PR backtrace/15558
7610 * frame.c (get_prev_frame_1): Rename to ...
7611 (get_prev_frame_always): ... this, and make extern. Adjust.
7612 (skip_artificial_frames): Use get_prev_frame_always.
7613 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7614 (get_frame_unwind_stop_reason): Adjust to rename.
7615 * frame.h (get_prev_frame_always): Declare.
7616 * inline-frame.c: Include frame.h.
7617 (inline_frame_this_id): Use get_prev_frame_always.
7618
7619 2014-04-18 Tristan Gingold <gingold@adacore.com>
7620
7621 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7622 code by using bfd_mach_o_get_base_address.
7623
7624 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7625
7626 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7627 (spu_ax_pseudo_register_collect): New function.
7628 (spu_ax_pseudo_register_push_stack): Likewise.
7629 (spu_dwarf_reg_to_regnum): Likewise.
7630 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7631
7632 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7633
7634 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7635 Replace FRAME argument with FRAME_ID.
7636 * gdbarch.c, gdbarch.h: Regenerate.
7637 * findvar.c (default_value_from_register): Add GDBARCH argument;
7638 replace FRAME by FRAME_ID. No longer call get_frame_id.
7639 (value_from_register): Update call to gdbarch_value_from_register.
7640 * value.h (default_value_from_register): Update prototype.
7641 * s390-linux-tdep.c (s390_value_from_register): Update interface
7642 and call to default_value_from_register.
7643 * spu-tdep.c (spu_value_from_register): Likewise.
7644
7645 * findvar.c (address_from_register): Remove TYPE argument.
7646 Do not call value_from_register; use gdbarch_value_from_register
7647 with null_frame_id instead.
7648 * value.h (address_from_register): Update prototype.
7649 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7650 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7651 address_from_register interface change.
7652
7653 2014-04-17 Yao Qi <yao@codesourcery.com>
7654
7655 * gdbtypes.h: Update comments to link to types and macros'
7656 definitions.
7657
7658 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7659
7660 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7661
7662 2014-04-16 Keith Seitz <keiths@redhat.com>
7663
7664 PR gdb/15827
7665 * dwarf2read.c (skip_one_die): Check that all relative-offset
7666 sibling DIEs fall within range of the current reader's buffer.
7667 (read_partial_die): Likewise.
7668
7669 2014-04-16 Keith Seitz <keiths@redhat.com>
7670
7671 PR c++/16597
7672 * cp-namespace.c (lookup_symbol_file): If the type name of
7673 `this' is NULL, return immediately.
7674
7675 2014-04-14 Keith Seitz <keiths@redhat.com>
7676
7677 PR c++/16253
7678 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7679 from symbol_matches_domain in symtab.c. All local callers
7680 of symbol_matches_domain updated.
7681 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7682 search STRUCT_DOMAIN.
7683 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7684 independently. standard_lookup will do that automatically.
7685 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7686 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7687 (cp_lookup_symbol_in_namespace): Likewise.
7688 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7689 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7690 may return a STRUCT_DOMAIN match.
7691 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7692 * cp-support.c: Include language.h.
7693 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7694 VAR_DOMAIN.
7695 * psymtab.c (match_partial_symbol): Compare the requested
7696 domain with the symbol's domain directly.
7697 (lookup_partial_symbol): Likewise.
7698 * symtab.c (lookup_symbol_in_language): Explain when/why
7699 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7700 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7701 appropriate languages.
7702 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7703 and moved to ada-lang.c
7704 (lookup_block_symbol): Explain that this function only returns
7705 symbol matching the requested DOMAIN.
7706 Compare the requested domain with the symbol's domain directly.
7707 (iterate_over_symbols): Compare the requested domain with the
7708 symbol's domain directly.
7709 * symtab.h (symbol_matches_domain): Remove.
7710
7711 2014-04-14 Tom Tromey <tromey@redhat.com>
7712
7713 PR c++/15246:
7714 * c-exp.y (type_aggregate_p): New function.
7715 (qualified_name, classify_inner_name): Use it.
7716 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7717 and TYPE_TARGET_TYPE of an enum type.
7718 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7719 an enum type.
7720 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7721 handle TYPE_DECLARED_CLASS.
7722 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7723 types.
7724 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7725 * valops.c (enum_constant_from_type): New function.
7726 (value_aggregate_elt): Use it.
7727 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7728 TYPE_CODE_ENUM.
7729
7730 2014-04-14 Tom Tromey <tromey@redhat.com>
7731
7732 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7733 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7734 const.
7735 * value.h (value_aggregate_elt): Update.
7736
7737 2014-04-14 Tom Tromey <tromey@redhat.com>
7738
7739 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7740
7741 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7742
7743 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7744 (evaluate_subexp_standard): Pass noside argument.
7745 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7746 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7747 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7748 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7749 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7750
7751 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7752
7753 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7754 points to a constant blob.
7755
7756 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7757
7758 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7759 property and store it as the high bound and flag the range accordingly.
7760 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7761 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7762 * gdbtypes.h (enum range_flags): New enum.
7763 (struct range_bounds): Add flags member.
7764
7765 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7766
7767 * c-typeprint.c (c_type_print_varspec_suffix): Added
7768 check for not yet resolved high bound. If unresolved, print
7769 "variable length" string to the console instead of random
7770 length.
7771
7772 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7773
7774 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7775 value.
7776 (ada_template_to_fixed_record_type_1): Likewise.
7777 (ada_to_fixed_type_1): Likewise.
7778 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7779 (cp_print_value): Likewise.
7780 * d-valprint.c (dynamic_array_type): Likewise.
7781 * findvar.c (address_of_variable): Likewise.
7782 * jv-valprint.c (java_value_print): Likewise.
7783 * valops.c (value_ind): Likewise.
7784 * value.c (coerce_ref): Likewise.
7785
7786 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7787
7788 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7789 value and retrieve the dynamic type size.
7790
7791 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7792
7793 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7794 passed to sizeof is dynamic evaluate the argument to compute the length.
7795
7796 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7797 Joel Brobecker <brobecker@adacore.com>
7798
7799 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7800 (dwarf2_evaluate_property): New function.
7801 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7802 * dwarf2read.c (attr_to_dynamic_prop): New function.
7803 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7804 attribute.
7805 * gdbtypes.c: Include dwarf2loc.h.
7806 (is_dynamic_type): New function.
7807 (resolve_dynamic_type): New function.
7808 (resolve_dynamic_bounds): New function.
7809 (get_type_length): New function.
7810 (check_typedef): Use get_type_length to compute type length.
7811 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7812 (TYPE_LOW_BOUND_KIND): New macro.
7813 (is_dynamic_type): New function prototype.
7814 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7815 to resolve dynamic properties of the type. Update comment.
7816 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7817
7818 2014-04-14 Richard Henderson <rth@redhat.com>
7819
7820 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7821
7822 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7823 Doug Evans <xdje42@gmail.com>
7824
7825 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7826 dereference TYPE_CODE_REF values.
7827
7828 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7829
7830 Revert the following changes due to regressions:
7831
7832 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7833 (dwarf2_evaluate_property): New function.
7834 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7835 * dwarf2read.c (attr_to_dynamic_prop): New function.
7836 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7837 attribute.
7838 * gdbtypes.c: Include dwarf2loc.h.
7839 (is_dynamic_type): New function.
7840 (resolve_dynamic_type): New function.
7841 (resolve_dynamic_bounds): New function.
7842 (get_type_length): New function.
7843 (check_typedef): Use get_type_length to compute type length.
7844 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7845 (TYPE_LOW_BOUND_KIND): New macro.
7846 (is_dynamic_type): New function prototype.
7847 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7848 to resolve dynamic properties of the type. Update comment.
7849 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7850
7851 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7852 passed to sizeof is dynamic evaluate the argument to compute the length.
7853
7854 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7855 value and retrieve the dynamic type size.
7856
7857 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7858 (ada_template_to_fixed_record_type_1): Likewise.
7859 (ada_to_fixed_type_1): Likewise.
7860 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7861 (cp_print_value): Likewise.
7862 * d-valprint.c (dynamic_array_type): Likewise.
7863 * eval.c (evaluate_subexp_with_coercion): Likewise.
7864 * findvar.c (address_of_variable): Likewise.
7865 * jv-valprint.c (java_value_print): Likewise.
7866 * valops.c (value_ind): Likewise.
7867 * value.c (coerce_ref): Likewise.
7868
7869 * c-typeprint.c (c_type_print_varspec_suffix): Added
7870 check for not yet resolved high bound. If unresolved, print
7871 "variable length" string to the console instead of random
7872 length.
7873
7874 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7875 property and store it as the high bound and flag the range accordingly.
7876 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7877 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7878 * gdbtypes.h (enum range_flags): New enum.
7879 (struct range_bounds): Add flags member.
7880
7881 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7882 points to a constant blob.
7883
7884 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7885 (evaluate_subexp_standard): Pass noside argument.
7886 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7887 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7888 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7889 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7890 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7891
7892 2014-04-11 Keith Seitz <keiths@redhat.com>
7893
7894 PR c++/16675
7895 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7896 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7897 reference types.
7898
7899 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7900
7901 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7902 (evaluate_subexp_standard): Pass noside argument.
7903 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7904 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7905 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7906 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7907 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7908
7909 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7910
7911 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7912 points to a constant blob.
7913
7914 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7915
7916 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7917 property and store it as the high bound and flag the range accordingly.
7918 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7919 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7920 * gdbtypes.h (enum range_flags): New enum.
7921 (struct range_bounds): Add flags member.
7922
7923 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7924
7925 * c-typeprint.c (c_type_print_varspec_suffix): Added
7926 check for not yet resolved high bound. If unresolved, print
7927 "variable length" string to the console instead of random
7928 length.
7929
7930 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7931
7932 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7933 (ada_template_to_fixed_record_type_1): Likewise.
7934 (ada_to_fixed_type_1): Likewise.
7935 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7936 (cp_print_value): Likewise.
7937 * d-valprint.c (dynamic_array_type): Likewise.
7938 * eval.c (evaluate_subexp_with_coercion): Likewise.
7939 * findvar.c (address_of_variable): Likewise.
7940 * jv-valprint.c (java_value_print): Likewise.
7941 * valops.c (value_ind): Likewise.
7942 * value.c (coerce_ref): Likewise.
7943
7944 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7945
7946 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7947 value and retrieve the dynamic type size.
7948
7949 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7950
7951 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7952 passed to sizeof is dynamic evaluate the argument to compute the length.
7953
7954 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7955
7956 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7957 (dwarf2_evaluate_property): New function.
7958 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7959 * dwarf2read.c (attr_to_dynamic_prop): New function.
7960 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7961 attribute.
7962 * gdbtypes.c: Include dwarf2loc.h.
7963 (is_dynamic_type): New function.
7964 (resolve_dynamic_type): New function.
7965 (resolve_dynamic_bounds): New function.
7966 (get_type_length): New function.
7967 (check_typedef): Use get_type_length to compute type length.
7968 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7969 (TYPE_LOW_BOUND_KIND): New macro.
7970 (is_dynamic_type): New function prototype.
7971 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7972 to resolve dynamic properties of the type. Update comment.
7973 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7974
7975 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7976
7977 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7978 declaring high/low bounds and change uses accordingly. Call
7979 create_range_type instead of create_static_range_type.
7980 * gdbtypes.c (create_range_type): New function.
7981 (create_range_type): Convert bounds into struct bound_prop and pass
7982 them to create_range_type.
7983 * gdbtypes.h (struct bound_prop): New struct.
7984 (create_range_type): New function prototype.
7985 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7986 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7987 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7988 part of the bound.
7989 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7990
7991 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7992
7993 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7994 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7995 * ada-lang.c: All uses of create_range_type updated.
7996 * coffread.c: All uses of create_range_type updated.
7997 * dwarf2read.c: All uses of create_range_type updated.
7998 * f-exp.y: All uses of create_range_type updated.
7999 * m2-valprint.c: All uses of create_range_type updated.
8000 * mdebugread.c: All uses of create_range_type updated.
8001 * stabsread.c: All uses of create_range_type updated.
8002 * valops.c: All uses of create_range_type updated.
8003 * valprint.c: All uses of create_range_type updated.
8004
8005 2014-04-10 Pedro Alves <palves@redhat.com>
8006
8007 * breakpoint.c (single_step_breakpoints)
8008 (single_step_gdbarch): Move up in the file.
8009 (one_breakpoint_xfer_memory): New function, factored out from ...
8010 (breakpoint_xfer_memory): ... here. Also process single-step
8011 breakpoints.
8012
8013 2014-04-09 Tristan Gingold <gingold@adacore.com>
8014
8015 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8016 comments.
8017 (darwin_decode_exception_message): Free port only after use.
8018
8019 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8020
8021 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8022 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8023 when setting the size of call_length.
8024
8025 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8026
8027 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8028 dereference TYPE_CODE_REF values.
8029
8030 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8031
8032 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8033 end of warning message.
8034
8035 2014-04-03 Doug Evans <dje@google.com>
8036
8037 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8038 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8039
8040 2014-04-02 Alan Modra <amodra@gmail.com>
8041
8042 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8043 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8044 (struct symbol_file_add_from_memory_args): Add size field.
8045 (find_vdso_size): New function.
8046 (add_vsyscall_page): Attempt to find vdso size.
8047
8048 2014-04-01 Doug Evans <dje@google.com>
8049
8050 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8051
8052 2014-04-01 Tristan Gingold <gingold@adacore.com>
8053
8054 * darwin-nat.c (darwin_encode_reply): Add prototype.
8055 (darwin_decode_exception_message): Reply to unknown inferiors.
8056 (darwin_decode_message): Handle message by id. Ignore message
8057 to unknown inferior.
8058 (darwin_wait): Discard unknown messages, add debug trace.
8059
8060 2014-03-31 Doug Evans <dje@google.com>
8061
8062 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8063 comp_dir_string.
8064
8065 2014-03-31 Doug Evans <dje@google.com>
8066
8067 New option "set print symbol-loading".
8068 * NEWS: Mention it.
8069 * solib.c (solib_read_symbols): Only print symbol loading messages
8070 if requested.
8071 (solib_add): If symbol loading is in "brief" mode, notify user
8072 symbols are being loaded.
8073 (reload_shared_libraries_1): Ditto.
8074 * symfile.c (print_symbol_loading_off): New static global.
8075 (print_symbol_loading_brief): New static global.
8076 (print_symbol_loading_full): New static global.
8077 (print_symbol_loading_enums): New static global.
8078 (print_symbol_loading): New static global.
8079 (print_symbol_loading_p): New function.
8080 (symbol_file_add_with_addrs): Only print symbol loading messages
8081 if requested.
8082 (_initialize_symfile): Register "print symbol-loading" set/show
8083 command.
8084 * symfile.h (print_symbol_loading_p): Declare.
8085
8086 2014-03-30 Doug Evans <xdje42@gmail.com>
8087
8088 * infrun.c (set_last_target_status): New function.
8089 (handle_inferior_event): Call it.
8090
8091 2014-03-30 Doug Evans <xdje42@gmail.com>
8092
8093 * inferior.h (enum stop_kind): Improve comment.
8094
8095 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8096
8097 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8098 a reference, strip the reference layer before calling
8099 the lang_ops value_has_mutated callback.
8100
8101 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8102
8103 Remove some globals from our parser.
8104 * language.c (unk_lang_parser): Add "struct parser_state"
8105 argument.
8106 * language.h (struct language_defn) <la_parser>: Likewise.
8107 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8108 (initialize_expout): Add "struct parser_state" argument.
8109 Rewrite function to use the parser state.
8110 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8111 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8112 write_exp_elt_longcst, write_exp_elt_dblcst,
8113 write_exp_elt_decfloatcst, write_exp_elt_type,
8114 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8115 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8116 write_dollar_variable): Likewise.
8117 (parse_exp_in_context_1): Use parser state.
8118 (insert_type_address_space): Add "struct parser_state" argument.
8119 Use parser state.
8120 (increase_expout_size): New function.
8121 * parser-defs.h: Forward declare "struct language_defn" and
8122 "struct parser_state".
8123 (expout, expout_size, expout_ptr): Remove extern declarations.
8124 (parse_gdbarch, parse_language): Rewrite macro declarations to
8125 accept the parser state.
8126 (struct parser_state): New struct.
8127 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8128 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8129 write_exp_elt_decfloatcst, write_exp_elt_type,
8130 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8131 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8132 write_exp_msymbol, write_dollar_variable,
8133 mark_struct_expression, insert_type_address_space): Add "struct
8134 parser_state" argument.
8135 (increase_expout_size): New function.
8136 * utils.c (do_clear_parser_state): New function.
8137 (make_cleanup_clear_parser_state): Likewise.
8138 * utils.h (make_cleanup_clear_parser_state): New function
8139 prototype.
8140 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8141 Update calls to write_exp* in order to pass the parser state.
8142 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8143 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8144 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8145 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8146 * stap-probe.c (stap_parse_register_operand): Likewise.
8147 (stap_parse_single_operand): Likewise.
8148 (stap_parse_argument_1): Likewise.
8149 (stap_parse_argument): Use parser state.
8150 * stap-probe.h: Include "parser-defs.h".
8151 (struct stap_parse_info) <pstate>: New field.
8152 * c-exp.y (parse_type): Rewrite to use parser state.
8153 (yyparse): Redefine to c_parse_internal.
8154 (pstate): New global variable.
8155 (parse_number): Add "struct parser_state" argument.
8156 (write_destructor_name): Likewise.
8157 (type_exp): Update calls to write_exp* and similars in order to
8158 use parser state.
8159 (exp1, exp, variable, qualified_name, space_identifier,
8160 typename, typebase): Likewise.
8161 (write_destructor_name, parse_number, lex_one_token,
8162 classify_name, classify_inner_name, c_parse): Add "struct
8163 parser_state" argument. Update function to use parser state.
8164 * c-lang.h: Forward declare "struct parser_state".
8165 (c_parse): Add "struct parser_state" argument.
8166 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8167 (yyparse): Redefine macro to ada_parse_internal.
8168 (pstate): New variable.
8169 (write_int, write_object_renaming, write_var_or_type,
8170 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8171 type_int, type_long, type_long_long, type_float, type_double,
8172 type_long_double, type_char, type_boolean, type_system_address):
8173 Add "struct parser_state" argument.
8174 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8175 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8176 var_or_type, aggregate, aggregate_component_list,
8177 positional_list, others, component_group,
8178 component_associations): Update calls to write_exp* and similar
8179 functions in order to use parser state.
8180 (ada_parse, write_var_from_sym, write_int,
8181 write_exp_op_with_string, write_object_renaming,
8182 find_primitive_type, write_selectors, write_ambiguous_var,
8183 write_var_or_type, write_name_assoc, type_int, type_long,
8184 type_long_long, type_float, type_double, type_long_double,
8185 type_char, type_boolean, type_system_address): Add "struct
8186 parser_state" argument. Adjust function to use parser state.
8187 * ada-lang.c (parse): Likewise.
8188 * ada-lang.h: Forward declare "struct parser_state".
8189 (ada_parse): Add "struct parser_state" argument.
8190 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8191 calls to both functions.
8192 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8193 parser state.
8194 (yyparse): Redefine macro to f_parse_internal.
8195 (pstate): New variable.
8196 (parse_number): Add "struct parser_state" argument.
8197 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8198 and similars in order to use parser state.
8199 (parse_number): Adjust code to use parser state.
8200 (yylex): Likewise.
8201 (f_parse): New function.
8202 * f-lang.h: Forward declare "struct parser_state".
8203 (f_parse): Add "struct parser_state" argument.
8204 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8205 parser state.
8206 (yyparse): Redefine macro for java_parse_internal.
8207 (pstate): New variable.
8208 (push_expression_name, push_expression_name, insert_exp): Add
8209 "struct parser_state" argument.
8210 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8211 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8212 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8213 PostIncrementExpression, PostDecrementExpression,
8214 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8215 UnaryExpressionNotPlusMinus, CastExpression,
8216 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8217 RelationalExpression, EqualityExpression, AndExpression,
8218 ExclusiveOrExpression, InclusiveOrExpression,
8219 ConditionalAndExpression, ConditionalOrExpression,
8220 ConditionalExpression, Assignment, LeftHandSide): Update
8221 calls to write_exp* and similars in order to use parser state.
8222 (parse_number): Ajust code to use parser state.
8223 (yylex): Likewise.
8224 (java_parse): New function.
8225 (push_variable): Add "struct parser_state" argument. Adjust
8226 code to user parser state.
8227 (push_fieldnames, push_qualified_expression_name,
8228 push_expression_name, insert_exp): Likewise.
8229 * jv-lang.h: Forward declare "struct parser_state".
8230 (java_parse): Add "struct parser_state" argument.
8231 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8232 parser state.
8233 (yyparse): Redefine macro to m2_parse_internal.
8234 (pstate): New variable.
8235 (type_exp, exp, fblock, variable, type): Update calls to
8236 write_exp* and similars to use parser state.
8237 (yylex): Likewise.
8238 (m2_parse): New function.
8239 * m2-lang.h: Forward declare "struct parser_state".
8240 (m2_parse): Add "struct parser_state" argument.
8241 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8242 * objc-lang.h: Forward declare "struct parser_state".
8243 (end_msglist): Add "struct parser_state" argument.
8244 * p-exp.y (parse_type): Rewrite macro to use parser state.
8245 (yyparse): Redefine macro to pascal_parse_internal.
8246 (pstate): New variable.
8247 (parse_number): Add "struct parser_state" argument.
8248 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8249 write_exp* and similars in order to use parser state.
8250 (parse_number, yylex): Adjust code to use parser state.
8251 (pascal_parse): New function.
8252 * p-lang.h: Forward declare "struct parser_state".
8253 (pascal_parse): Add "struct parser_state" argument.
8254 * go-exp.y (parse_type): Rewrite macro to use parser state.
8255 (yyparse): Redefine macro to go_parse_internal.
8256 (pstate): New variable.
8257 (parse_number): Add "struct parser_state" argument.
8258 (type_exp, exp1, exp, variable, type): Update calls to
8259 write_exp* and similars in order to use parser state.
8260 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8261 to use parser state.
8262 (go_parse): Likewise.
8263 * go-lang.h: Forward declare "struct parser_state".
8264 (go_parse): Add "struct parser_state" argument.
8265
8266 2014-03-27 Doug Evans <dje@google.com>
8267
8268 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8269
8270 2014-03-27 Doug Evans <dje@google.com>
8271
8272 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8273 Remove argument abbrev_section. All callers updated.
8274
8275 2014-03-27 Doug Evans <dje@google.com>
8276
8277 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8278 addr_base, ranges_base.
8279
8280 2014-03-26 Keith Seitz <keiths@redhat.com>
8281
8282 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8283 types, not VAR_DOMAIN.
8284
8285 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8286
8287 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8288 "ra" registers.
8289 * features/nios2-linux.c: Regenerated.
8290 * features/nios2.c: Regenerated.
8291
8292 2014-03-25 Pedro Alves <palves@redhat.com>
8293
8294 * cli/cli-script.c (script_from_file): Force the interpreter to
8295 sync mode.
8296
8297 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8298
8299 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8300 small stack allocation.
8301
8302 2014-03-24 Tristan Gingold <gingold@adacore.com>
8303
8304 * darwin-nat.c (exc_server): Remove unused prototype.
8305 (darwin_dump_message): Correctly display data on x86_64.
8306 (darwin_encode_reply): Fix style.
8307 Add comments and fix indentation.
8308
8309 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8310
8311 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8312
8313 2014-03-22 Doug Evans <xdje42@gmail.com>
8314
8315 * infcmd.c: Whitespace fixes.
8316 (interrupt_command): Merge two function comments into one.
8317
8318 2014-03-22 Doug Evans <xdje42@gmail.com>
8319
8320 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8321 All uses updated.
8322
8323 2014-03-22 Yao Qi <yao@codesourcery.com>
8324
8325 * remote.c (target_read_live_memory): Remove.
8326 (memory_xfer_live_readonly_partial): Rename it to
8327 remote_xfer_live_readonly_partial. Remove argument 'object'.
8328 All callers updated. Call remote_read_bytes_1
8329 instead of target_read_live_memory.
8330 * tracepoint.c (set_traceframe_number): Remove.
8331 (make_cleanup_restore_traceframe_number): Likewise .
8332 * tracepoint.h (set_traceframe_number): Remove declaration.
8333 (make_cleanup_restore_traceframe_number): Likewise.
8334
8335 2014-03-22 Yao Qi <yao@codesourcery.com>
8336
8337 * remote.c (remote_read_bytes): Move code on reading from the
8338 remote stub to ...
8339 (remote_read_bytes_1): ... here. New function.
8340
8341 2014-03-22 Yao Qi <yao@codesourcery.com>
8342
8343 * ctf.c (ctf_xfer_partial): Check the return value of
8344 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8345 return TARGET_XFER_UNAVAILABLE.
8346 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8347 * target.c (target_read_live_memory): Move it to remote.c.
8348 (memory_xfer_live_readonly_partial): Likewise.
8349 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8350 * remote.c (target_read_live_memory): Moved from target.c.
8351 (memory_xfer_live_readonly_partial): Likewise.
8352 (remote_read_bytes): Factored out from
8353 memory_xfer_partial_1.
8354
8355 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8356
8357 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8358 NULL pointer.
8359
8360 2014-03-21 Pedro Alves <palves@redhat.com>
8361
8362 * infrun.c (normal_stop): Extend comment.
8363
8364 2014-03-21 Hui Zhu <hui@codesourcery.com>
8365 Pedro Alves <palves@redhat.com>
8366
8367 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8368 static buffer.
8369 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8370 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8371 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8372
8373 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8374
8375 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8376 `z' formatted output modifier.
8377
8378 2014-03-20 Tom Tromey <tromey@redhat.com>
8379 Sergio Durigan Junior <sergiodj@redhat.com>
8380
8381 * probe.c (parse_probes): Turn assert into an ordinary error.
8382 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8383 exceptions when parsing probes. Rearrange the code for clarity.
8384
8385 2014-03-20 Tom Tromey <tromey@redhat.com>
8386
8387 PR gdb/14135
8388 * top.c (execute_command): Only dispatch events if the command
8389 started the target.
8390
8391 2014-03-20 Tom Tromey <tromey@redhat.com>
8392
8393 PR cli/15718
8394 * infcall.c: Include event-top.h.
8395 (run_inferior_call): Call async_disable_stdin if needed.
8396
8397 2014-03-20 Pedro Alves <palves@redhat.com>
8398
8399 * infrun.c (prepare_to_proceed): Delete.
8400 (thread_still_needs_step_over): New function.
8401 (find_thread_needs_step_over): New function.
8402 (proceed): If the current thread needs a step-over, set its
8403 steping_over_breakpoint flag. Adjust to use
8404 find_thread_needs_step_over instead of prepare_to_proceed.
8405 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8406 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8407 breakpoint.
8408 (switch_back_to_stepped_thread): Step over breakpoints of all
8409 threads not the stepping thread, before switching back to the
8410 stepping thread.
8411
8412 2014-03-20 Pedro Alves <palves@redhat.com>
8413
8414 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8415 extern.
8416 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8417 * infrun.c (saved_singlestep_ptid)
8418 (stepping_past_singlestep_breakpoint): Delete.
8419 (resume): Remove stepping_past_singlestep_breakpoint handling.
8420 (proceed): Store the prev_pc of the stepping thread too.
8421 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8422 singlestep_pc.
8423 (enum infwait_states): Delete infwait_thread_hop_state.
8424 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8425 field.
8426 (handle_inferior_event): Adjust.
8427 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8428 handling and the thread-hop code. Before removing single-step
8429 breakpoints, check whether the thread hit a single-step breakpoint
8430 of another thread. If it did, the trap is not a random signal.
8431 (switch_back_to_stepped_thread): If the event thread hit a
8432 single-step breakpoint, unblock it before switching to the
8433 stepping thread. Handle the case of the stepped thread having
8434 advanced already.
8435 (keep_going): Handle the case of the current thread moving past a
8436 single-step breakpoint.
8437
8438 2014-03-20 Pedro Alves <palves@redhat.com>
8439
8440 PR breakpoints/7143
8441 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8442 are being stepped over.
8443 (breakpoint_address_match): Make extern.
8444 * breakpoint.h (breakpoint_address_match): New declaration.
8445 * inferior.h (stepping_past_instruction_at): New declaration.
8446 * infrun.c (struct step_over_info): New type.
8447 (step_over_info): New global.
8448 (set_step_over_info, clear_step_over_info)
8449 (stepping_past_instruction_at): New functions.
8450 (handle_inferior_event): Clear the step-over info when
8451 trap_expected is cleared.
8452 (resume): Remove now stale comment.
8453 (clear_proceed_status): Clear step-over info.
8454 (proceed): Adjust step-over handling to set or clear the step-over
8455 info instead of removing all breakpoints.
8456 (handle_signal_stop): When setting up a thread-hop, don't remove
8457 breakpoints here.
8458 (stop_stepping): Clear step-over info.
8459 (keep_going): Adjust step-over handling to set or clear step-over
8460 info and then always inserting breakpoints, instead of removing
8461 all breakpoints when stepping over one.
8462
8463 2014-03-20 Pedro Alves <palves@redhat.com>
8464
8465 * infrun.c (previous_inferior_ptid): Adjust comment.
8466 (deferred_step_ptid): Delete.
8467 (infrun_thread_ptid_changed, prepare_to_proceed)
8468 (init_wait_for_inferior): Adjust.
8469 (handle_signal_stop): Delete deferred_step_ptid handling.
8470
8471 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8472
8473 PR gdb/15358
8474 * defs.h (sync_quit_force_run): New declaration.
8475 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8476 * event-top.c (async_sigterm_handler): New declaration.
8477 (async_sigterm_token): New variable.
8478 (async_init_signals): Create also async_sigterm_token.
8479 (async_sigterm_handler): New function.
8480 (sync_quit_force_run): New variable.
8481 (handle_sigterm): Replace quit_force call by other calls.
8482 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8483
8484 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8485
8486 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8487 offset into SPE pseudo registers.
8488
8489 2014-03-18 Pedro Alves <palves@redhat.com>
8490
8491 PR gdb/13860
8492 * inferior.h (print_stop_event): Declare.
8493 * infrun.c (print_stop_event): New, factored out from ...
8494 (normal_stop): ... this.
8495 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8496 of bpstat_print/print_stack_frame.
8497
8498 2014-03-17 Tom Tromey <tromey@redhat.com>
8499
8500 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8501
8502 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8503
8504 * ada-lang.c (decode_constrained_packed_array): Perform a
8505 minimal coercion for reference with coerce_ref instead of
8506 ada_coerce_ref.
8507
8508 2014-03-17 Tristan Gingold <gingold@adacore.com>
8509
8510 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8511 (darwin_solib_create_inferior_hook): Emit a warning if version
8512 is unhandled.
8513
8514 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8515
8516 * python/py-value.c (get_field_flag): Cast flag_name argument to
8517 PyObject_GetAttrString to support Python 2.4.
8518
8519 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8520
8521 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8522 (Global Maintainers): Remove Jan Kratochvil.
8523
8524 2014-03-14 Pedro Alves <palves@redhat.com>
8525
8526 * inferior.h (terminal_ours_for_output): Rename to ...
8527 (child_terminal_ours_for_output): ... this.
8528 (terminal_save_ours): Rename to ...
8529 (child_terminal_save_ours): ... this.
8530 (terminal_ours): Rename to ...
8531 (child_terminal_ours): ... this.
8532 (terminal_inferior): Rename to ...
8533 (child_terminal_inferior): ... this.
8534 (terminal_init_inferior): Rename to ...
8535 (child_terminal_init_inferior): ... this.
8536 (terminal_init_inferior_with_pgrp): Rename to ...
8537 (child_terminal_init_inferior_with_pgrp): ... this.
8538 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8539 (child_terminal_init_with_pgrp): ... this.
8540 (terminal_save_ours): Rename to ...
8541 (child_terminal_save_ours): ... this.
8542 (terminal_init_inferior): Rename to ...
8543 (child_terminal_init): ... this. Adjust.
8544 (terminal_inferior): Rename to ...
8545 (child_terminal_inferior): ... this.
8546 (terminal_ours_for_output): Rename to ...
8547 (child_terminal_ours_for_output): ... this. Adjust.
8548 (terminal_ours): Rename to ...
8549 (child_terminal_ours): ... this.
8550 (terminal_ours_1): Rename to ...
8551 (child_terminal_ours_1): ... this. Adjust.
8552 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8553 * windows-nat.c (do_initial_windows_stuff): Adjust.
8554 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8555 (gnu_terminal_init): ... this. Adjust.
8556 (gnu_target): Adjust.
8557 * inf-child.c (inf_child_target): Adjust.
8558
8559 2014-03-13 Doug Evans <xdje42@gmail.com>
8560
8561 PR guile/16612
8562 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8563 new eq?-hashtab.
8564
8565 2014-03-13 Doug Evans <xdje42@gmail.com>
8566
8567 * value.c (record_latest_value): Call release_value_or_incref
8568 instead of release_value.
8569
8570 2014-03-13 Pedro Alves <palves@redhat.com>
8571
8572 * procfs.c (procfs_target): Don't override to_shortname,
8573 to_longname or to_doc.
8574
8575 2014-03-13 Pedro Alves <palves@redhat.com>
8576
8577 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8578 Unix in user visible strings.
8579
8580 2014-03-12 Stan Shebs <stan@codesourcery.com>
8581
8582 * gdbtypes.h: Annotate comments for Doxygen, add a page
8583 block comment with some general info.
8584
8585 2014-03-12 Pedro Alves <palves@redhat.com>
8586
8587 * infcmd.c (prepare_execution_command): New function, factored out
8588 from several execution commands.
8589 (run_command_1, continue_command, step_1, jump_command)
8590 (signal_command, until_command, advance_command, finish_command)
8591 (attach_command): Use prepare_execution_command.
8592
8593 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8594
8595 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8596 (MAX_BPTS): Define.
8597 (MAX_WPTS): Define.
8598 (struct arm_linux_thread_points): Removed.
8599 (struct arm_linux_process_info): New.
8600 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8601 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8602 (arm_linux_find_breakpoints_by_tid): Removed.
8603 (struct arch_lwp_info): New.
8604 (arm_linux_find_process_pid): New functions.
8605 (arm_linux_add_process): New functions.
8606 (arm_linux_process_info_get): New functions.
8607 (arm_linux_forget_process): New function.
8608 (arm_linux_get_debug_reg_state): New function.
8609 (struct update_registers_data): New.
8610 (update_registers_callback): New function.
8611 (arm_linux_insert_hw_breakpoint1): Updated.
8612 (arm_linux_remove_hw_breakpoint1): Updated.
8613 (arm_linux_insert_hw_breakpoint): Updated.
8614 (arm_linux_remove_hw_breakpoint): Updated.
8615 (arm_linux_insert_watchpoint): Updated.
8616 (arm_linux_remove_watchpoint): Updated.
8617 (arm_linux_new_thread): Updated.
8618 (arm_linux_prepare_to_resume): New function.
8619 (arm_linux_new_fork): New function.
8620 (_initialize_arm_linux_nat): Updated.
8621
8622 2014-03-12 Pedro Alves <palves@redhat.com>
8623
8624 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8625
8626 2014-03-12 Tom Tromey <tromey@redhat.com>
8627
8628 * inf-child.c (return_zero): New function.
8629 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8630 * aix-thread.c (aix_thread_inferior_created): New function.
8631 (aix_thread_attach): Remove.
8632 (init_aix_thread_ops): Don't set to_attach.
8633 (_initialize_aix_thread): Register inferior_created observer.
8634 * corelow.c (init_core_ops): Don't set to_attach or
8635 to_create_inferior.
8636 * exec.c (init_exec_ops): Don't set to_attach or
8637 to_create_inferior.
8638 * infcmd.c (run_command_1): Use find_run_target. Make direct
8639 target calls.
8640 (attach_command): Use find_attach_target. Make direct target
8641 calls.
8642 * record-btrace.c (init_record_btrace_ops): Don't set
8643 to_create_inferior.
8644 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8645 Remove.
8646 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8647 set to_create_inferior.
8648 * target.c (complete_target_initialization): Add assertion.
8649 (target_create_inferior): Remove.
8650 (find_default_attach, find_default_create_inferior): Remove.
8651 (find_attach_target, find_run_target): New functions.
8652 (find_default_is_async_p, find_default_can_async_p)
8653 (target_supports_non_stop, target_attach): Remove.
8654 (init_dummy_target): Don't set to_create_inferior or
8655 to_supports_non_stop.
8656 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8657 TARGET_DEFAULT_FUNC.
8658 <to_create_inferior>: Add comment.
8659 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8660 TARGET_DEFAULT_RETURN.
8661 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8662 (find_attach_target, find_run_target): Declare.
8663 (target_create_inferior): Remove.
8664 (target_has_execution_1): Update comment.
8665 (target_supports_non_stop): Remove.
8666 * target-delegates.c: Rebuild.
8667
8668 2014-03-12 Pedro Alves <palves@redhat.com>
8669
8670 * inf-child.h: Update comment to not mention Unix.
8671
8672 2014-03-12 Pedro Alves <palves@redhat.com>
8673
8674 * inf-child.c: Update top comment to not mention Unix. Add
8675 generic comment describing how this target is meant to be used.
8676 (inf_child_post_attach, inf_child_post_startup_inferior)
8677 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8678 Unix in comment.
8679
8680 2014-03-12 Pedro Alves <palves@redhat.com>
8681
8682 * nto-procfs.c: Include inf-child.h.
8683 (procfs_ops): Delete global.
8684 (procfs_can_run): Delete method.
8685 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8686 target pointer instead of referencing procfs_ops.
8687 (procfs_prepare_to_store): Delete.
8688 (init_procfs_ops): Delete function.
8689 (procfs_target): New function, based on init_procfs_ops, but
8690 inherit inf_child_target.
8691 (_initialize_procfs): Use procfs_target.
8692
8693 2014-03-12 Pedro Alves <palves@redhat.com>
8694
8695 * windows-nat.c: Include inf-child.h.
8696 (windows_ops): Delete global.
8697 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8698 methods.
8699 (init_windows_ops): Delete function.
8700 (windows_target): New function, based on init_windows_ops, but
8701 inherit inf_child_target.
8702 (_initialize_windows_nat): Use windows_target. Install x86
8703 specific target methods here.
8704
8705 2014-03-10 Doug Evans <xdje42@gmail.com>
8706
8707 * guile/guile.c (call_initialize_gdb_module): New function.
8708 (initialize_guile): Replace call to scm_init_guile with call to
8709 scm_with_guile.
8710
8711 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8712
8713 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8714 in call to TYPE_CODE macro.
8715
8716 2014-03-10 Jerome Guitton <guitton@adacore.com>
8717
8718 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8719 Resolve tagged types to full view.
8720
8721 2014-03-10 Hui Zhu <hui@codesourcery.com>
8722
8723 * target.h (target_insert_breakpoint): Remove "hardware" from its
8724 comments.
8725
8726 2014-03-07 Doug Evans <dje@google.com>
8727
8728 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8729
8730 2014-03-07 Doug Evans <dje@google.com>
8731
8732 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8733 Remove unused local comp_dir_attr. Assert exactly one of
8734 stub_comp_unit_die, stub_comp_dir is non-NULL.
8735
8736 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8737
8738 * target.h (complete_target_initialization, add_target):
8739 Add comment.
8740
8741 2014-03-07 Pedro Alves <palves@redhat.com>
8742
8743 * go32-nat.c: Include inf-child.h.
8744 (go32_ops): Delete global.
8745 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8746 Delete methods.
8747 (go32_create_inferior): Push the passed in target pointer instead
8748 of referencing go32_ops.
8749 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8750 (go32_target): New function, based on init_go32_ops, but inherit
8751 inf_child_target.
8752 (_initialize_go32_nat): Use go32_target. Move parts of
8753 init_go32_ops here.
8754
8755 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8756
8757 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8758 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8759 SYMBOL_VALUE_ADDRESS.
8760 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8761
8762 2014-03-06 Yao Qi <yao@codesourcery.com>
8763
8764 * breakpoint.c (get_tracepoint_by_number): Remove argument
8765 optional_p. All callers updated. Adjust comments. Update
8766 output message.
8767 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8768
8769 2014-03-06 Yao Qi <yao@codesourcery.com>
8770
8771 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8772 early if get_number returns zero. Use 'p' instead of 'args'.
8773
8774 2014-03-06 Yao Qi <yao@codesourcery.com>
8775
8776 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8777 message.
8778
8779 2014-03-06 Yao Qi <yao@codesourcery.com>
8780
8781 PR breakpoints/16508
8782 * tracepoint.c (check_trace_running): New function.
8783 (trace_find_command): Move code to check_trace_running and
8784 call check_trace_running.
8785 (trace_find_pc_command): Likewise.
8786 (trace_find_tracepoint_command): Likewise.
8787 (trace_find_line_command): Likewise.
8788 (trace_find_range_command): Likewise.
8789 * tracepoint.h (check_trace_running): Likewise.
8790 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8791
8792 2014-03-06 Yao Qi <yao@codesourcery.com>
8793
8794 * target.h (struct target_ops) <to_traceframe_info>: Use
8795 TARGET_DEFAULT_NORETURN (tcomplain ()).
8796 * target-delegates.c: Regenerated.
8797
8798 2014-03-05 Pedro Alves <palves@redhat.com>
8799
8800 PR gdb/16575
8801 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8802 void. Update comment.
8803 (dcache_xfer_memory): Delete.
8804 (dcache_read_memory_partial): New, based on the read bits of
8805 dcache_xfer_memory.
8806 (dcache_update): Add status parameter. Use ULONGEST for len, and
8807 adjust. Discard cache lines if the reason for the update was
8808 error.
8809 * dcache.h (dcache_xfer_memory): Delete declaration.
8810 (dcache_read_memory_partial): New declaration.
8811 (dcache_update): Update prototype.
8812 * target.c (raw_memory_xfer_partial): Update the dcache here.
8813 (memory_xfer_partial_1): Don't handle dcache writes here.
8814
8815 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8816
8817 * remote-sim.c (gdbsim_load): Add const to prog.
8818
8819 2014-03-03 Tom Tromey <tromey@redhat.com>
8820
8821 * elfread.c (probe_key): Change to bfd_data.
8822 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8823 now per-BFD, not per-objfile.
8824 * stap-probe.c (stap_probe_destroy): Update comment.
8825 (handle_stap_probe): Allocate on the per-BFD obstack.
8826
8827 2014-03-03 Tom Tromey <tromey@redhat.com>
8828
8829 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8830 * breakpoint.c (create_longjmp_master_breakpoint): Use
8831 get_probe_address.
8832 (add_location_to_breakpoint, bkpt_probe_insert_location)
8833 (bkpt_probe_remove_location): Update.
8834 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8835 * elfread.c (elf_symfile_relocate_probe): Remove.
8836 (elf_probe_fns): Update.
8837 (insert_exception_resume_breakpoint): Change type of "probe"
8838 parameter to bound_probe.
8839 (check_exception_resume): Update.
8840 * objfiles.c (objfile_relocate1): Don't relocate probes.
8841 * probe.c (bound_probe_s): New typedef.
8842 (parse_probes): Use get_probe_address. Set sal's objfile.
8843 (find_probe_by_pc): Return a bound_probe.
8844 (collect_probes): Return a VEC(bound_probe_s).
8845 (compare_probes): Update.
8846 (gen_ui_out_table_header_info): Change type of "probes"
8847 parameter. Update.
8848 (info_probes_for_ops): Update.
8849 (get_probe_address): New function.
8850 (probe_safe_evaluate_at_pc): Update.
8851 * probe.h (struct probe_ops) <get_probe_address>: New field.
8852 <set_semaphore, clear_semaphore>: Add objfile parameter.
8853 (struct probe) <objfile>: Remove field.
8854 <arch>: New field.
8855 <address>: Update comment.
8856 (struct bound_probe): New.
8857 (find_probe_by_pc): Return a bound_probe.
8858 (get_probe_address): Declare.
8859 * solib-svr4.c (struct probe_and_action) <address>: New field.
8860 (hash_probe_and_action, equal_probe_and_action): Update.
8861 (register_solib_event_probe): Add address parameter.
8862 (solib_event_probe_at): Update.
8863 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8864 get_probe_address.
8865 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8866 (stap_get_probe_address): New function.
8867 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8868 (compile_probe_arg): Update.
8869 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8870 address.
8871 (handle_stap_probe): Don't relocate the probe.
8872 (stap_relocate): Remove.
8873 (stap_gen_info_probes_table_values): Update.
8874 (stap_probe_ops): Remove stap_relocate.
8875 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8876 (debug_sym_probe_fns): Update.
8877 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8878 * symtab.c (init_sal): Use memset.
8879 * symtab.h (struct symtab_and_line) <objfile>: New field.
8880 * tracepoint.c (start_tracing, stop_tracing): Update.
8881
8882 2014-03-03 Tom Tromey <tromey@redhat.com>
8883
8884 * probe.h (parse_probes, find_probe_by_pc)
8885 (find_probes_in_objfile): Fix comments.
8886
8887 2014-03-02 Doug Evans <xdje42@gmail.com>
8888
8889 * infrun.c (handle_signal_stop): Replace test for
8890 TARGET_WAITKIND_STOPPED with an assert.
8891
8892 2014-03-02 Doug Evans <xdje42@gmail.com>
8893
8894 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8895
8896 2014-03-02 Doug Evans <xdje42@gmail.com>
8897
8898 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8899
8900 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8901
8902 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8903
8904 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8905
8906 * i386obsd-nat.c: Include "obsd-nat.h".
8907 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8908 add_target.
8909 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8910
8911 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8912
8913 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8914
8915 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8916
8917 * mips64obsd-nat.c: Include "obsd-nath".
8918 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8919 add_target
8920 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8921
8922 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8923
8924 * amd64obsd-nat.c: Include "obsd-nat,h.
8925 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8926 add_target.
8927 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8928
8929 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8930
8931 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8932 (find_overload_match): Update call to find_oload_champ.
8933 (find_oload_champ_namespace_loop): Likewise
8934
8935 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8936
8937 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8938
8939 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8940 * config/sparc/obsd64.mh: New file.
8941 * sparc64obsd-nat.c: New file.
8942
8943 * obsd-nat.h: New file.
8944 * obsd-nat.c: New file.
8945 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8946 (ALLDEPFILES): Add obsd-nat.c.
8947
8948 2014-02-28 Tom Tromey <tromey@redhat.com>
8949
8950 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8951 * cli-out.h (cli_ui_out_impl): Now const.
8952 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8953 * ui-out.c (struct ui_out) <impl>: Now const.
8954 (default_ui_out_impl): Now const.
8955 (ui_out_new): Make 'impl' parameter const.
8956 * ui-out.h (ui_out_new): Update.
8957
8958 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8959
8960 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8961
8962 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8963
8964 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8965
8966 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8967
8968 Additional PR 8882 fix.
8969 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8970
8971 2014-02-27 Pedro Alves <palves@redhat.com>
8972
8973 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8974 isn't set.
8975
8976 2014-02-27 Pedro Alves <palves@redhat.com>
8977
8978 PR 12702
8979 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8980 * nat/linux-waitpid.c: Include string.h.
8981 (status_to_str): Moved here and made extern.
8982 * nat/linux-waitpid.h (status_to_str): New declaration.
8983
8984 2014-02-27 Hui Zhu <hui@codesourcery.com>
8985
8986 PR 12702
8987 * infrun.c (ptid_match): Move ...
8988 * common/ptid.c (ptid_match): ... here.
8989 * inferior.h (ptid_match): Move ...
8990 * common/ptid.h (ptid_match): ... here.
8991
8992 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8993
8994 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8995 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8996 gdb_target_obs.
8997
8998 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8999
9000 * obsd-tdep.c (obsd_auxv_parse): New function.
9001 (obsd_init_abi): Set auxv_parse.
9002
9003 * gdbarch.sh (auxv_parse): New.
9004 * gdbarch.h: Regenerated.
9005 * gdbarch.c: Regenerated.
9006 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9007
9008 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9009
9010 * guile/scm-value.c (gdbscm_history_append_x): New function.
9011 (value_functions): Add it.
9012
9013 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9014
9015 * dwarf2read.c (attr_value_as_address): New function.
9016 (dwarf2_find_base_address, read_call_site_scope): Use
9017 attr_value_as_address in place of DW_ADDR.
9018 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9019 the low and high addresses. Slight rework of the handling
9020 of the high pc being a constant form, and limit it to
9021 DWARF verson 4 or higher.
9022 (dwarf2_record_block_ranges): Likewise.
9023 (read_partial_die): Likewise.
9024 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9025
9026 2014-02-26 Tom Tromey <tromey@redhat.com>
9027
9028 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9029
9030 2014-02-26 Tom Tromey <tromey@redhat.com>
9031
9032 * elfread.c (elf_read_minimal_symbols): Return early if
9033 minimal symbols have already been read. Add "ei" parameter.
9034 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9035 * minsyms.c (prim_record_minimal_symbol_full): Update.
9036 * objfiles.h (struct objstats) <n_minsyms>: Move...
9037 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9038 * symmisc.c (print_objfile_statistics): Update.
9039
9040 2014-02-26 Tom Tromey <tromey@redhat.com>
9041
9042 * elfread.c (elf_read_minimal_symbols): New function, from
9043 elf_symfile_read.
9044 (elf_symfile_read): Call it.
9045
9046 2014-02-26 Tom Tromey <tromey@redhat.com>
9047
9048 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9049 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9050 (lookup_minimal_symbol_solib_trampoline)
9051 (lookup_minimal_symbol_by_pc_section_1)
9052 (lookup_minimal_symbol_and_objfile): Update.
9053 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9054 Don't allocate a minimal symbol if minsyms have already been read.
9055 (build_minimal_symbol_hash_tables): Update.
9056 (install_minimal_symbols): Do nothing if minsyms already read.
9057 Use the per-BFD obstack.
9058 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9059 * objfiles.c (allocate_objfile): Call
9060 terminate_minimal_symbol_table later.
9061 (have_minimal_symbols): Update.
9062 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9063 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9064 Move from struct objfile.
9065 <minsyms_read>: New field.
9066 (struct objfile) <msymbols, minimal_symbol_count,
9067 msymbol_hash, msymbol_demangled_hash>: Move.
9068 (ALL_OBJFILE_MSYMBOLS): Update.
9069 * symfile.c (read_symbols): Set minsyms_read.
9070 (reread_symbols): Update.
9071 * symmisc.c (dump_objfile, dump_msymbols): Update.
9072
9073 2014-02-26 Tom Tromey <tromey@redhat.com>
9074
9075 * minsyms.c (msymbols_sort): Remove.
9076 * minsyms.h (msymbols_sort): Remove.
9077 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9078 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9079 * elfread.c (elf_symtab_read): Don't add section offsets.
9080 * xcoffread.c (record_minimal_symbol): Don't add section offset
9081 to minimal symbol address.
9082 * somread.c (text_offset, data_offset): Remove.
9083 (som_symtab_read): Don't add section offsets to minimal symbol
9084 addresses.
9085 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9086 Don't add section offsets to minimal symbols.
9087 * coffread.c (coff_symtab_read): Don't add section offsets
9088 to minimal symbol addresses.
9089 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9090 to minimal symbol addresses.
9091 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9092 section offset to minimal symbol addresses.
9093 * mdebugread.c (parse_partial_symbols): Don't add section
9094 offset to minimal symbol addresses.
9095 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9096 offset to minimal symbol addresses.
9097
9098 2014-02-26 Tom Tromey <tromey@redhat.com>
9099
9100 * ada-lang.c (ada_main_name): Update.
9101 (ada_add_standard_exceptions): Update.
9102 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9103 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9104 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9105 * auxv.c (ld_so_xfer_auxv): Update.
9106 * avr-tdep.c (avr_scan_prologue): Update.
9107 * ax-gdb.c (gen_var_ref): Update.
9108 * blockframe.c (get_pc_function_start)
9109 (find_pc_partial_function_gnu_ifunc): Update.
9110 * breakpoint.c (create_overlay_event_breakpoint)
9111 (create_longjmp_master_breakpoint)
9112 (create_std_terminate_master_breakpoint)
9113 (create_exception_master_breakpoint): Update.
9114 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9115 * c-valprint.c (c_val_print): Update.
9116 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9117 * common/agent.c (agent_look_up_symbols): Update.
9118 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9119 * dwarf2loc.c (call_site_to_target_addr): Update.
9120 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9121 * elfread.c (elf_gnu_ifunc_record_cache)
9122 (elf_gnu_ifunc_resolve_by_got): Update.
9123 * findvar.c (default_read_var_value): Update.
9124 * frame.c (inside_main_func): Update.
9125 * frv-tdep.c (frv_frame_this_id): Update.
9126 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9127 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9128 Update.
9129 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9130 (hppa_hpux_find_dummy_bpaddr): Update.
9131 * hppa-tdep.c (hppa_symbol_address): Update.
9132 * infcmd.c (until_next_command): Update.
9133 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9134 Update.
9135 * linespec.c (minsym_found, add_minsym): Update.
9136 * linux-nat.c (get_signo): Update.
9137 * linux-thread-db.c (inferior_has_bug): Update.
9138 * m32c-tdep.c (m32c_return_value)
9139 (m32c_m16c_address_to_pointer): Update.
9140 * m32r-tdep.c (m32r_frame_this_id): Update.
9141 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9142 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9143 * maint.c (maintenance_translate_address): Update.
9144 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9145 (frob_address): New function.
9146 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9147 frob_address. Rename parameter to "pc_in".
9148 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9149 addresses.
9150 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9151 Update.
9152 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9153 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9154 * objc-lang.c (find_objc_msgsend): Update.
9155 * objfiles.c (objfile_relocate1): Update.
9156 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9157 * p-valprint.c (pascal_val_print): Update.
9158 * parse.c (write_exp_msymbol): Update.
9159 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9160 (ppc_elfv2_skip_entrypoint): Update.
9161 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9162 * printcmd.c (build_address_symbolic, msym_info)
9163 (address_info): Update.
9164 * proc-service.c (ps_pglobal_lookup): Update.
9165 * psymtab.c (find_pc_sect_psymtab_closer)
9166 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9167 Change msymbol parameter to bound_minimal_symbol.
9168 * ravenscar-thread.c (get_running_thread_id): Update.
9169 * remote.c (remote_check_symbols): Update.
9170 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9171 address.
9172 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9173 * solib-dsbt.c (lm_base): Update.
9174 * solib-frv.c (lm_base, main_got): Update.
9175 * solib-irix.c (locate_base): Update.
9176 * solib-som.c (som_solib_create_inferior_hook)
9177 (link_map_start): Update.
9178 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9179 * solib-svr4.c (elf_locate_base, enable_break): Update.
9180 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9181 (flush_ea_cache): Update.
9182 * stabsread.c (define_symbol, scan_file_globals): Update.
9183 * stack.c (find_frame_funname): Update.
9184 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9185 (debug_qf_find_pc_sect_symtab): Update.
9186 * symfile.c (simple_read_overlay_table)
9187 (simple_overlay_update): Update.
9188 * symfile.h (struct quick_symbol_functions)
9189 <find_pc_sect_symtab>: Change type of msymbol to
9190 bound_minimal_symbol.
9191 * symmisc.c (dump_msymbols): Update.
9192 * symtab.c (find_pc_sect_symtab_via_partial)
9193 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9194 (search_symbols, print_msymbol_info): Update.
9195 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9196 (MSYMBOL_VALUE_ADDRESS): Redefine.
9197 (BMSYMBOL_VALUE_ADDRESS): New macro.
9198 * tracepoint.c (scope_info): Update.
9199 * tui/tui-disasm.c (tui_find_disassembly_address)
9200 (tui_get_begin_asm_address): Update.
9201 * valops.c (find_function_in_inferior): Update.
9202 * value.c (value_static_field, value_fn_field): Update.
9203
9204 2014-02-26 Tom Tromey <tromey@redhat.com>
9205
9206 * ada-lang.c (ada_update_initial_language): Update.
9207 (ada_main_name, ada_has_this_exception_support): Update.
9208 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9209 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9210 * arm-tdep.c (arm_skip_stub): Update.
9211 * auxv.c (ld_so_xfer_auxv): Update.
9212 * avr-tdep.c (avr_scan_prologue): Update.
9213 * ax-gdb.c (gen_var_ref): Update.
9214 * breakpoint.c (struct breakpoint_objfile_data)
9215 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9216 type to bound_minimal_symbol.
9217 (create_overlay_event_breakpoint)
9218 (create_longjmp_master_breakpoint)
9219 (create_std_terminate_master_breakpoint)
9220 (create_exception_master_breakpoint): Update.
9221 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9222 * c-exp.y (classify_name): Update.
9223 * coffread.c (coff_symfile_read): Update.
9224 * common/agent.c (agent_look_up_symbols): Update.
9225 * d-lang.c (d_main_name): Update.
9226 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9227 * dec-thread.c (enable_dec_thread): Update.
9228 * dwarf2loc.c (call_site_to_target_addr): Update.
9229 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9230 * eval.c (evaluate_subexp_standard): Update.
9231 * findvar.c (struct minsym_lookup_data) <result>: Change type
9232 to bound_minimal_symbol.
9233 <objfile>: Remove.
9234 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9235 * frame.c (inside_main_func): Update.
9236 * frv-tdep.c (frv_frame_this_id): Update.
9237 * gcore.c (call_target_sbrk): Update.
9238 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9239 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9240 Update.
9241 * go-lang.c (go_main_name): Update.
9242 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9243 (hppa_hpux_find_import_stub_for_addr): Update.
9244 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9245 Update. Change return type.
9246 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9247 type.
9248 * jit.c (jit_breakpoint_re_set_internal): Update.
9249 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9250 Update.
9251 * linux-nat.c (get_signo): Update.
9252 * linux-thread-db.c (inferior_has_bug): Update
9253 * m32c-tdep.c (m32c_return_value)
9254 (m32c_m16c_address_to_pointer): Update.
9255 * m32r-tdep.c (m32r_frame_this_id): Update.
9256 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9257 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9258 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9259 lookup_minimal_symbol. Change return type.
9260 (lookup_minimal_symbol): Remove.
9261 (lookup_bound_minimal_symbol): Update.
9262 (lookup_minimal_symbol_text): Change return type.
9263 (lookup_minimal_symbol_solib_trampoline): Change return type.
9264 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9265 (lookup_minimal_symbol_solib_trampoline): Change return type.
9266 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9267 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9268 (value_nsstring, find_imps): Update.
9269 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9270 * p-lang.c (pascal_main_name): Update.
9271 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9272 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9273 * proc-service.c (ps_pglobal_lookup): Update.
9274 * ravenscar-thread.c (get_running_thread_msymbol): Change
9275 return type.
9276 (has_ravenscar_runtime, get_running_thread_id): Update.
9277 * remote.c (remote_check_symbols): Update.
9278 * sol-thread.c (ps_pglobal_lookup): Update.
9279 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9280 * solib-dsbt.c (lm_base): Update.
9281 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9282 Update.
9283 * solib-irix.c (locate_base): Update.
9284 * solib-som.c (som_solib_create_inferior_hook)
9285 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9286 Update.
9287 * solib-spu.c (spu_enable_break): Update.
9288 * solib-svr4.c (elf_locate_base, enable_break): Update.
9289 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9290 (flush_ea_cache): Update.
9291 * stabsread.c (define_symbol): Update.
9292 * symfile.c (simple_read_overlay_table): Update.
9293 * symtab.c (find_pc_sect_line): Update.
9294 * tracepoint.c (scope_info): Update.
9295 * tui-disasm.c (tui_get_begin_asm_address): Update.
9296 * value.c (value_static_field): Update.
9297
9298 2014-02-26 Tom Tromey <tromey@redhat.com>
9299
9300 * minsyms.c (prim_record_minimal_symbol_full): Use
9301 SET_MSYMBOL_VALUE_ADDRESS.
9302 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9303 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9304 SET_MSYMBOL_VALUE_ADDRESS.
9305 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9306 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9307
9308 2014-02-26 Tom Tromey <tromey@redhat.com>
9309
9310 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9311 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9312 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9313 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9314 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9315 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9316 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9317 * ada-lang.c (ada_main_name): Update.
9318 (ada_lookup_simple_minsym): Update.
9319 (ada_make_symbol_completion_list): Update.
9320 (ada_add_standard_exceptions): Update.
9321 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9322 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9323 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9324 * arm-tdep.c (skip_prologue_function): Update.
9325 (arm_skip_stack_protector, arm_skip_stub): Update.
9326 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9327 (arm_wince_skip_main_prologue): Update.
9328 * auxv.c (ld_so_xfer_auxv): Update.
9329 * avr-tdep.c (avr_scan_prologue): Update.
9330 * ax-gdb.c (gen_var_ref): Update.
9331 * block.c (call_site_for_pc): Update.
9332 * blockframe.c (get_pc_function_start): Update.
9333 (find_pc_partial_function_gnu_ifunc): Update.
9334 * breakpoint.c (create_overlay_event_breakpoint): Update.
9335 (create_longjmp_master_breakpoint): Update.
9336 (create_std_terminate_master_breakpoint): Update.
9337 (create_exception_master_breakpoint): Update.
9338 (resolve_sal_pc): Update.
9339 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9340 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9341 Update.
9342 * c-valprint.c (c_val_print): Update.
9343 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9344 * coffread.c (coff_symfile_read): Update.
9345 * common/agent.c (agent_look_up_symbols): Update.
9346 * dbxread.c (find_stab_function_addr): Update.
9347 (end_psymtab): Update.
9348 * dwarf2loc.c (call_site_to_target_addr): Update.
9349 (func_verify_no_selftailcall): Update.
9350 (tailcall_dump): Update.
9351 (call_site_find_chain_1): Update.
9352 (dwarf_expr_reg_to_entry_parameter): Update.
9353 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9354 (elf_gnu_ifunc_resolve_by_got): Update.
9355 * f-valprint.c (info_common_command): Update.
9356 * findvar.c (read_var_value): Update.
9357 * frame.c (get_prev_frame_1): Update.
9358 (inside_main_func): Update.
9359 * frv-tdep.c (frv_skip_main_prologue): Update.
9360 (frv_frame_this_id): Update.
9361 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9362 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9363 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9364 (gnuv3_skip_trampoline): Update.
9365 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9366 (hppa64_hpux_in_solib_call_trampoline): Update.
9367 (hppa_hpux_skip_trampoline_code): Update.
9368 (hppa64_hpux_search_dummy_call_sequence): Update.
9369 (hppa_hpux_find_import_stub_for_addr): Update.
9370 (hppa_hpux_find_dummy_bpaddr): Update.
9371 * hppa-tdep.c (hppa_symbol_address)
9372 (hppa_lookup_stub_minimal_symbol): Update.
9373 * i386-tdep.c (i386_skip_main_prologue): Update.
9374 (i386_pe_skip_trampoline_code): Update.
9375 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9376 * infcall.c (get_function_name): Update.
9377 * infcmd.c (until_next_command): Update.
9378 * jit.c (jit_breakpoint_re_set_internal): Update.
9379 (jit_inferior_init): Update.
9380 * linespec.c (minsym_found): Update.
9381 (add_minsym): Update.
9382 * linux-fork.c (info_checkpoints_command): Update.
9383 * linux-nat.c (get_signo): Update.
9384 * linux-thread-db.c (inferior_has_bug): Update.
9385 * m32c-tdep.c (m32c_return_value): Update.
9386 (m32c_m16c_address_to_pointer): Update.
9387 (m32c_m16c_pointer_to_address): Update.
9388 * m32r-tdep.c (m32r_frame_this_id): Update.
9389 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9390 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9391 * maint.c (maintenance_translate_address): Update.
9392 * minsyms.c (add_minsym_to_hash_table): Update.
9393 (add_minsym_to_demangled_hash_table): Update.
9394 (msymbol_objfile): Update.
9395 (lookup_minimal_symbol): Update.
9396 (iterate_over_minimal_symbols): Update.
9397 (lookup_minimal_symbol_text): Update.
9398 (lookup_minimal_symbol_by_pc_name): Update.
9399 (lookup_minimal_symbol_solib_trampoline): Update.
9400 (lookup_minimal_symbol_by_pc_section_1): Update.
9401 (lookup_minimal_symbol_and_objfile): Update.
9402 (prim_record_minimal_symbol_full): Update.
9403 (compare_minimal_symbols): Update.
9404 (compact_minimal_symbols): Update.
9405 (build_minimal_symbol_hash_tables): Update.
9406 (install_minimal_symbols): Update.
9407 (terminate_minimal_symbol_table): Update.
9408 (find_solib_trampoline_target): Update.
9409 (minimal_symbol_upper_bound): Update.
9410 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9411 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9412 (mips_skip_pic_trampoline_code): Update.
9413 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9414 * objc-lang.c (selectors_info): Update.
9415 (classes_info): Update.
9416 (find_methods): Update.
9417 (find_imps): Update.
9418 (find_objc_msgsend): Update.
9419 * objfiles.c (objfile_relocate1): Update.
9420 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9421 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9422 * p-valprint.c (pascal_val_print): Update.
9423 * parse.c (write_exp_msymbol): Update.
9424 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9425 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9426 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9427 * printcmd.c (build_address_symbolic): Update.
9428 (sym_info): Update.
9429 (address_info): Update.
9430 * proc-service.c (ps_pglobal_lookup): Update.
9431 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9432 (find_pc_sect_psymtab): Update.
9433 * python/py-framefilter.c (py_print_frame): Update.
9434 * ravenscar-thread.c (get_running_thread_id): Update.
9435 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9436 Update.
9437 * remote.c (remote_check_symbols): Update.
9438 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9439 (rs6000_skip_trampoline_code): Update.
9440 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9441 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9442 * solib-dsbt.c (lm_base): Update.
9443 * solib-frv.c (lm_base): Update.
9444 (main_got): Update.
9445 * solib-irix.c (locate_base): Update.
9446 * solib-som.c (som_solib_create_inferior_hook): Update.
9447 (som_solib_desire_dynamic_linker_symbols): Update.
9448 (link_map_start): Update.
9449 * solib-spu.c (spu_enable_break): Update.
9450 (ocl_enable_break): Update.
9451 * solib-svr4.c (elf_locate_base): Update.
9452 (enable_break): Update.
9453 * spu-tdep.c (spu_get_overlay_table): Update.
9454 (spu_catch_start): Update.
9455 (flush_ea_cache): Update.
9456 * stabsread.c (define_symbol): Update.
9457 (scan_file_globals): Update.
9458 * stack.c (find_frame_funname): Update.
9459 (frame_info): Update.
9460 * symfile.c (simple_read_overlay_table): Update.
9461 (simple_overlay_update): Update.
9462 * symmisc.c (dump_msymbols): Update.
9463 * symtab.c (fixup_section): Update.
9464 (find_pc_sect_line): Update.
9465 (skip_prologue_sal): Update.
9466 (search_symbols): Update.
9467 (print_msymbol_info): Update.
9468 (rbreak_command): Update.
9469 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9470 (completion_list_objc_symbol): Update.
9471 (default_make_symbol_completion_list_break_on): Update.
9472 * tracepoint.c (scope_info): Update.
9473 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9474 (tui_get_begin_asm_address): Update.
9475 * valops.c (find_function_in_inferior): Update.
9476 * value.c (value_static_field): Update.
9477 (value_fn_field): Update.
9478
9479 2014-02-26 Tom Tromey <tromey@redhat.com>
9480
9481 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9482 bound minimal symbols. Move code that knows about minsym
9483 table layout...
9484 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9485 function.
9486 * minsyms.h (minimal_symbol_upper_bound): Declare.
9487 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9488 minimal_symbol_upper_bound.
9489
9490 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9491
9492 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9493 Use the type's name if its basic type does not have a tag.
9494
9495 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9496
9497 * dwarf2read.c (read_subrange_type): Add comment.
9498
9499 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9500
9501 * dwarf2read.c (update_enumeration_type_from_children): New
9502 function, mostly extracted from process_structure_scope.
9503 (read_enumeration_type): Call update_enumeration_type_from_children.
9504 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9505 and flag_flag_enum fields.
9506
9507 2014-02-26 Pedro Alves <palves@redhat.com>
9508
9509 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9510 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9511 to_xfer_partial method.
9512
9513 2014-02-26 Pedro Alves <palves@redhat.com>
9514
9515 * target.c (complete_target_initialization): Don't install
9516 default_xfer_partial as to_xfer_partial hook.
9517 (nomemory): Delete.
9518 (update_current_target): Don't INHERIT nor de_fault
9519 deprecated_xfer_memory. Delete de_fault macro.
9520 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9521 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9522 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9523 field.
9524
9525 2014-02-26 Pedro Alves <palves@redhat.com>
9526
9527 * go32-nat.c (my_write_child): New function.
9528 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9529 (go32_xfer_partial): New function.
9530 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9531 Instead install a to_xfer_partial hook.
9532
9533 2014-02-26 Pedro Alves <palves@redhat.com>
9534
9535 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9536 to_xfer_partial helper. Rewrite.
9537 (procfs_xfer_partial): New function.
9538 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9539 Install a to_xfer_partial hook.
9540
9541 2014-02-26 Pedro Alves <palves@redhat.com>
9542
9543 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9544 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9545 (m32r_xfer_partial): New function.
9546 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9547 Install a to_xfer_partial hook.
9548
9549 2014-02-26 Pedro Alves <palves@redhat.com>
9550
9551 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9552 helper.
9553 (mips_xfer_partial): New function.
9554 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9555 hook. Install a to_xfer_partial hook.
9556
9557 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9558
9559 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9560 * gdbtypes.c (create_array_type_with_stride): New function,
9561 renaming create_array_type, but with an added parameter
9562 called "bit_stride".
9563 (create_array_type): Re-implement using
9564 create_array_type_with_stride.
9565 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9566 and DW_AT_bit_stride attributes.
9567
9568 2014-02-26 Pedro Alves <palves@redhat.com>
9569
9570 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9571 task-specific breakpoints.
9572
9573 2014-02-25 Pedro Alves <palves@redhat.com>
9574
9575 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9576 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9577
9578 2014-02-25 Stan Shebs <stan@codesourcery.com>
9579
9580 * defs.h: Annotate comments for Doxygen.
9581
9582 2014-02-25 Tom Tromey <tromey@redhat.com>
9583
9584 * target.h (target_ignore): Don't declare.
9585 * target.c (target_ignore): Remove.
9586
9587 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9588
9589 PR gdb/16626
9590 * auto-load.c (auto_load_objfile_script_1): Change filename to
9591 debugfile.
9592
9593 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9594
9595 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9596 documentation. Adjust prototype to match the target_ops
9597 to_xfer_partial method. Adjust implementation accordingly.
9598
9599 2014-02-25 Hui Zhu <hui@codesourcery.com>
9600
9601 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9602 to_traceframe_info.
9603
9604 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9605
9606 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9607 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9608 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9609 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9610 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9611 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9612 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9613 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9614 New constants.
9615 (rl78_register_type): Use a data pointer type for SP and
9616 new pseudo registers mentioned above. Use a 16 bit integer
9617 type for all other register pairs.
9618 (rl78_register_name, rl78_g10_register_name): Update for
9619 new pseudo registers.
9620 (rl78_pseudo_register_read): Likewise.
9621 (rl78_pseudo_register_write): Likewise.
9622 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9623 to the newly added pseudo registers.
9624
9625 2014-02-24 Doug Evans <dje@google.com>
9626
9627 * value.c (record_latest_value): Fix comment.
9628 * printcmd.c (print_command_1): Remove code to handle -1 return from
9629 record_latest_value.
9630
9631 2014-02-24 Pedro Alves <palves@redhat.com>
9632
9633 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9634 deprecated_xfer_memory hook.
9635 (procfs_xfer_partial): Call procfs_xfer_memory instead
9636 of the deprecated_xfer_memory target hook.
9637 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9638 helper.
9639
9640 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9641
9642 * windows-nat.c (windows_xfer_shared_libraries): Return
9643 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9644 requested object is TARGET_OBJECT_LIBRARIES.
9645
9646 2014-02-24 Yao Qi <yao@codesourcery.com>
9647
9648 * target.h (enum target_xfer_status)
9649 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9650 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9651 explicitly. New.
9652 * corefile.c (memory_error_message): User updated.
9653 * exec.c (section_table_read_available_memory): Likewise.
9654 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9655 * target.c (target_xfer_status_to_string): Likewise.
9656 (raw_memory_xfer_partial): Likewise.
9657 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9658 * valops.c (read_value_memory): Likewise.
9659 * exec.h: Update comments.
9660
9661 2014-02-24 Yao Qi <yao@codesourcery.com>
9662
9663 * target.c (target_xfer_status_to_string): Rename argument err
9664 to status.
9665 * target.h (target_xfer_status_to_string): Update declaration.
9666 Replace target_xfer_error_to_string with
9667 target_xfer_status_to_string in comment.
9668
9669 2014-02-24 Yao Qi <yao@codesourcery.com>
9670
9671 * mips-linux-nat.c (super_close): Update its type.
9672 (mips_linux_close): Pass 'self' to super_close.
9673
9674 2014-02-24 Yao Qi <yao@codesourcery.com>
9675
9676 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9677 * corefile.c (read_memory): Adjusted.
9678 * target.c (target_write_with_progress): Adjusted.
9679
9680 2014-02-23 Yao Qi <yao@codesourcery.com>
9681
9682 Revert two patches:
9683
9684 2013-10-25 Yao Qi <yao@codesourcery.com>
9685
9686 * remote.c (remote_traceframe_info): Return early if
9687 traceframe is not selected.
9688
9689 2013-07-19 Yao Qi <yao@codesourcery.com>
9690
9691 * target.c (update_current_target): Change the default action
9692 of 'to_traceframe_info' from tcomplain to return_zero.
9693 * target.h (struct target_ops) <to_traceframe_info>: Add more
9694 comments.
9695
9696 2014-02-23 Yao Qi <yao@codesourcery.com>
9697
9698 * valops.c (read_value_memory): Rewrite it. Call
9699 target_xfer_partial in a loop.
9700 * exec.h (section_table_available_memory): Remove declaration.
9701 Move comments to ...
9702 * exec.c (section_table_available_memory): ... here. Make it
9703 static.
9704
9705 2014-02-23 Yao Qi <yao@codesourcery.com>
9706
9707 * exec.c (section_table_read_available_memory): New function.
9708 * exec.h (section_table_read_available_memory): Declare.
9709 * ctf.c (ctf_xfer_partial): Call
9710 section_table_read_available_memory.
9711 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9712
9713 2014-02-23 Yao Qi <yao@codesourcery.com>
9714
9715 * ctf.c (ctf_xfer_partial): Move code to ...
9716 * exec.c (exec_read_partial_read_only): ... it. New function.
9717 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9718 * tracefile.c: Include "exec.h".
9719 * exec.h (exec_read_partial_read_only): Declare.
9720
9721 2014-02-23 Yao Qi <yao@codesourcery.com>
9722
9723 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9724 (tfile_has_memory): Remove.
9725 (init_tfile_ops): Don't set fields to_has_all_memory and
9726 to_has_memory of tfile_ops.
9727 * tracefile.c (tracefile_has_all_memory): New function.
9728 (tracefile_has_memory): New function.
9729 (init_tracefile_ops): Initialize fields to_has_all_memory and
9730 to_has_memory of 'ops'.
9731
9732 2014-02-23 Yao Qi <yao@codesourcery.com>
9733
9734 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9735 (ctf_thread_alive, ctf_get_trace_status): Remove.
9736 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9737 init_tracefile_ops.
9738 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9739 (tfile_has_stack, tfile_has_registers): Remove.
9740 (tfile_thread_alive): Remove.
9741 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9742 init_tracefile_ops.
9743 * tracefile.c (tracefile_has_stack): New function.
9744 (tracefile_has_registers): New function.
9745 (tracefile_thread_alive): New function.
9746 (tracefile_get_trace_status): New function.
9747 (init_tracefile_ops): New function.
9748 * tracefile.h (init_tracefile_ops): Declare.
9749
9750 2014-02-23 Yao Qi <yao@codesourcery.com>
9751
9752 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9753 (O_LARGEFILE): Likewise.
9754 (tfile_ops): Likewise.
9755 (TRACE_HEADER_SIZE): Likewise.
9756 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9757 (cur_data_size): Likewise.
9758 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9759 (tfile_close, tfile_files_info): Likewise.
9760 (tfile_get_trace_status): Likewise.
9761 (tfile_get_tracepoint_status): Likewise.
9762 (tfile_get_traceframe_address): Likewise.
9763 (tfile_trace_find, match_blocktype): Likewise.
9764 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9765 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9766 (tfile_get_trace_state_variable_value): Likewise.
9767 (tfile_has_all_memory, tfile_has_memory): Likewise.
9768 (tfile_has_stack, tfile_has_registers): Likewise.
9769 (tfile_thread_alive, build_traceframe_info): Likewise.
9770 (tfile_traceframe_info, init_tfile_ops): Likewise.
9771 (_initialize_tracepoint): Don't call init_tfile_ops
9772 and add_target_with_completer.
9773 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9774 exec.h, completer.h and filenames.h.
9775 (_initialize_tracefile_tfile): New function.
9776
9777 2014-02-23 Yao Qi <yao@codesourcery.com>
9778
9779 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9780 tracefile-tfile.o.
9781 (HFILES_NO_SRCDIR): Add tracefile.h.
9782 * ctf.c: Include "tracefile.h".
9783 * tracefile.h: New file.
9784 * tracefile.c: New file
9785 * tracefile-tfile.c: New file.
9786 * tracepoint.c: Include "tracefile.h".
9787 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9788 (stop_reason_names): Add const.
9789 (trace_file_writer_xfree): Move it to tracefile.c.
9790 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9791 (trace_save_ctf): Likewise.
9792 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9793 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9794 (tfile_write_header, tfile_write_regblock_type): Likewise.
9795 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9796 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9797 (tfile_write_raw_data, tfile_end): Likewise.
9798 (tfile_trace_file_writer_new): Likewise.
9799 (free_uploaded_tp): Make it extern.
9800 (free_uploaded_tsv): Make it extern.
9801 (_initialize_tracepoint): Move code to register command 'tsave'
9802 to tracefile.c.
9803 * tracepoint.h (stop_reason_names): Declare.
9804 (struct trace_frame_write_ops): Move it to tracefile.h.
9805 (struct trace_file_write_ops): Likewise.
9806 (struct trace_file_writer): Likewise.
9807 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9808
9809 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9810
9811 PR gdb/16594
9812 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9813 process name.
9814 (get_cores_used_by_process): New parameter num_cores, use it.
9815 (linux_xfer_osdata_processes): Pass num_cores to it.
9816 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9817 process name.
9818
9819 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9820
9821 * target.c (memory_xfer_partial): Fix length arg in call to
9822 breakpoint_xfer_memory.
9823
9824 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9825
9826 PR tdep/16397
9827 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9828 number comes after the + or - signs. Adjust length of register
9829 name to be extracted.
9830
9831 2014-02-20 Tom Tromey <tromey@redhat.com>
9832
9833 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9834 (ada_varobj_ops): Mark "extern".
9835
9836 2014-02-20 Tom Tromey <tromey@redhat.com>
9837
9838 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9839
9840 2014-02-20 Doug Evans <xdje42@gmail.com>
9841
9842 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9843 All callers updated.
9844 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9845 All callers updated.
9846 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9847 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9848
9849 2014-02-20 lin zuojian <manjian2006@gmail.com>
9850 Joel Brobecker <brobecker@adacore.com>
9851 Doug Evans <xdje42@gmail.com>
9852
9853 PR symtab/16581
9854 * dwarf2read.c (struct die_info): New member in_process.
9855 (reset_die_in_process): New function.
9856 (process_die): Set it at the start, reset when returning.
9857 (inherit_abstract_dies): Only call process_die if origin_child_die
9858 not already being processed.
9859
9860 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9861
9862 * windows-nat.c (handle_unload_dll): Add function documentation.
9863 (do_initial_windows_stuff): Add comment explaining why we wait
9864 until after inferior initialization has finished before
9865 processing all DLLs.
9866
9867 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9868
9869 * windows-nat.c (get_module_name): Delete.
9870 (windows_get_exec_module_filename): New function, mostly
9871 inspired from get_module_name.
9872 (windows_pid_to_exec_file): Replace call to get_module_name
9873 by call to windows_get_exec_module_filename.
9874
9875 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9876
9877 * windows-nat.c (handle_load_dll): Rewrite this function's
9878 introductory comment. Remove code using get_module_name
9879 to get the DLL's name.
9880
9881 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9882
9883 * windows-nat.c (get_windows_debug_event): Ignore
9884 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9885 if windows_initialization_done == 0.
9886 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9887 Adjust implementation to always load all DLLs.
9888 (do_initial_windows_stuff): Replace call to
9889 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9890
9891 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9892
9893 * windows-nat.c (_initialize_windows_nat): Deprecate the
9894 "dll-symbols" command. Turn the "add-shared-symbol-files"
9895 and "assf" aliases into commands, and deprecate them as well.
9896 * NEWS: Add entry explaining that "dll-symbols" and its two
9897 aliases are now deprecated.
9898
9899 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9900
9901 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9902 new-line in debug string. Remove trailing spaces.
9903
9904 2014-02-19 Stan Shebs <stan@codesourcery.com>
9905
9906 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9907
9908 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9909
9910 * NEWS: Add entry for the new feature
9911 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9912 and class values.
9913
9914 2014-02-19 Stan Shebs <stan@codesourcery.com>
9915
9916 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9917
9918 2014-02-19 Pedro Alves <palves@redhat.com>
9919
9920 * common/ptid.h (struct ptid): Mention that process_stratum
9921 targets should prefer ptid.lwp.
9922
9923 2014-02-19 Pedro Alves <palves@redhat.com>
9924
9925 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9926 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9927 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9928 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9929 store remote thread ids rather than ptid.tid.
9930 (_initialize_remote): Adjust.
9931
9932 2014-02-19 Tom Tromey <tromey@redhat.com>
9933
9934 * target.c (target_get_unwinder): Rewrite.
9935 (target_get_tailcall_unwinder): Rewrite.
9936 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9937 (record_btrace_to_get_tailcall_unwinder): New function.
9938 (init_record_btrace_ops): Update.
9939 * target.h (struct target_ops) <to_get_unwinder,
9940 to_get_tailcall_unwinder>: Now function pointers. Use
9941 TARGET_DEFAULT_RETURN.
9942
9943 2014-02-19 Tom Tromey <tromey@redhat.com>
9944
9945 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9946 argument.
9947 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9948
9949 2014-02-19 Tom Tromey <tromey@redhat.com>
9950
9951 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9952 directly.
9953 * target-delegates.c: Rebuild.
9954 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9955 TARGET_DEFAULT_FUNC.
9956 * target.c (default_target_decr_pc_after_break): Rename from
9957 forward_target_decr_pc_after_break. Simplify.
9958 (target_decr_pc_after_break): Rely on delegation.
9959
9960 2014-02-19 Tom Tromey <tromey@redhat.com>
9961
9962 * target.c (update_current_target): Do not INHERIT to_doc or
9963 to_magic. Do not de_fault to_open or to_close.
9964
9965 2014-02-19 Tom Tromey <tromey@redhat.com>
9966
9967 * gcore.h (objfile_find_memory_regions): Declare.
9968 * gcore.c (objfile_find_memory_regions): No longer static. Add
9969 "self" argument.
9970 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9971 * exec.c: Include gcore.h.
9972 (exec_set_find_memory_regions): Remove.
9973 (exec_find_memory_regions): Remove.
9974 (exec_do_find_memory_regions): Remove.
9975 (init_exec_ops): Update.
9976 * defs.h (exec_set_find_memory_regions): Remove.
9977
9978 2014-02-19 Tom Tromey <tromey@redhat.com>
9979
9980 * target-delegates.c: Rebuild.
9981 * target.h (struct target_ops) <to_extra_thread_info,
9982 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9983 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9984 not 0, in TARGET_DEFAULT_RETURN.
9985
9986 2014-02-19 Tom Tromey <tromey@redhat.com>
9987
9988 * target.c (complete_target_initialization): Remove casts. Use
9989 return_zero_has_execution.
9990 (return_zero): Add "ignore" argument.
9991 (return_zero_has_execution): New function.
9992 (init_dummy_target): Remove casts. Use
9993 return_zero_has_execution.
9994
9995 2014-02-19 Tom Tromey <tromey@redhat.com>
9996
9997 * target.c (update_current_target): Update comments. Do not
9998 INHERIT to_stratum.
9999
10000 2014-02-19 Tom Tromey <tromey@redhat.com>
10001
10002 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10003 needed.
10004 * corelow.c (core_read_description): Delegate when needed.
10005 * remote.c (remote_read_description): Delegate when needed.
10006 * target-delegates.c: Rebuild.
10007 * target.c (target_read_description): Rewrite.
10008 * target.h (struct target_ops) <to_read_description>: Update
10009 comment. Use TARGET_DEFAULT_RETURN.
10010
10011 2014-02-19 Tom Tromey <tromey@redhat.com>
10012
10013 * target-delegates.c: Rebuild.
10014 * target.c (update_current_target): Don't inherit or default
10015 to_can_run.
10016 (find_default_run_target): Check against delegate_can_run.
10017 * target.h (struct target_ops) <to_can_run>: Use
10018 TARGET_DEFAULT_RETURN.
10019
10020 2014-02-19 Tom Tromey <tromey@redhat.com>
10021
10022 * target-delegates.c: Rebuild.
10023 * target.c (target_disconnect): Unconditionally delegate.
10024 * target.h (struct target_ops) <to_disconnect>: Use
10025 TARGET_DEFAULT_NORETURN.
10026
10027 2014-02-19 Tom Tromey <tromey@redhat.com>
10028
10029 * record.c (record_stop): Unconditionally delegate.
10030 * target-delegates.c: Rebuild.
10031 * target.c (target_stop_recording): Unconditionally delegate.
10032 * target.h (struct target_ops) <to_stop_recording>: Use
10033 TARGET_DEFAULT_IGNORE.
10034
10035 2014-02-19 Tom Tromey <tromey@redhat.com>
10036
10037 * target-delegates.c: Rebuild.
10038 * target.c (target_enable_btrace): Unconditionally delegate.
10039 * target.h (struct target_ops) <to_enable_btrace>: Use
10040 TARGET_DEFAULT_NORETURN.
10041
10042 2014-02-19 Tom Tromey <tromey@redhat.com>
10043
10044 * target-delegates.c: Rebuild.
10045 * target.c (target_read_btrace): Unconditionally delegate.
10046 * target.h (struct target_ops) <to_read_btrace>: Use
10047 TARGET_DEFAULT_NORETURN.
10048
10049 2014-02-19 Tom Tromey <tromey@redhat.com>
10050
10051 * target-delegates.c: Rebuild.
10052 * target.c (target_teardown_btrace): Unconditionally delegate.
10053 * target.h (struct target_ops) <to_teardown_btrace>: Use
10054 TARGET_DEFAULT_NORETURN.
10055
10056 2014-02-19 Tom Tromey <tromey@redhat.com>
10057
10058 * target-delegates.c: Rebuild.
10059 * target.c (target_disable_btrace): Unconditionally delegate.
10060 * target.h (struct target_ops) <to_disable_btrace>: Use
10061 TARGET_DEFAULT_NORETURN.
10062
10063 2014-02-19 Tom Tromey <tromey@redhat.com>
10064
10065 * target-delegates.c: Rebuild.
10066 * target.c (default_search_memory): New function.
10067 (simple_search_memory): Update comment.
10068 (target_search_memory): Unconditionally delegate.
10069 * target.h (struct target_ops) <to_search_memory>: Use
10070 TARGET_DEFAULT_FUNC.
10071
10072 2014-02-19 Tom Tromey <tromey@redhat.com>
10073
10074 * auxv.c (default_auxv_parse): No longer static.
10075 (target_auxv_parse): Unconditionally delegate.
10076 * auxv.h (default_auxv_parse): Declare.
10077 * target-delegates.c: Rebuild.
10078 * target.c: Include auxv.h.
10079 * target.h (struct target_ops) <to_auxv_parse>: Use
10080 TARGET_DEFAULT_FUNC.
10081
10082 2014-02-19 Tom Tromey <tromey@redhat.com>
10083
10084 * target-delegates.c: Rebuild.
10085 * target.c (target_memory_map): Unconditionally delegate.
10086 * target.h (struct target_ops) <to_memory_map>: Use
10087 TARGET_DEFAULT_RETURN.
10088
10089 2014-02-19 Tom Tromey <tromey@redhat.com>
10090
10091 * target-delegates.c: Rebuild.
10092 * target.c (target_thread_alive): Unconditionally delegate.
10093 * target.h (struct target_ops) <to_thread_alive>: Use
10094 TARGET_DEFAULT_RETURN.
10095
10096 2014-02-19 Tom Tromey <tromey@redhat.com>
10097
10098 * target-delegates.c: Rebuild.
10099 * target.c (target_save_record): Unconditionally delegate.
10100 * target.h (struct target_ops) <to_save_record>: Use
10101 TARGET_DEFAULT_NORETURN.
10102
10103 2014-02-19 Tom Tromey <tromey@redhat.com>
10104
10105 * target-delegates.c: Rebuild.
10106 * target.c (target_delete_record): Unconditionally delegate.
10107 * target.h (struct target_ops) <to_delete_record>: Use
10108 TARGET_DEFAULT_NORETURN.
10109
10110 2014-02-19 Tom Tromey <tromey@redhat.com>
10111
10112 * target-delegates.c: Rebuild.
10113 * target.c (target_record_is_replaying): Unconditionally
10114 delegate.
10115 * target.h (struct target_ops) <to_record_is_replaying>: Use
10116 TARGET_DEFAULT_RETURN.
10117
10118 2014-02-19 Tom Tromey <tromey@redhat.com>
10119
10120 * target-delegates.c: Rebuild.
10121 * target.c (target_goto_record_begin): Unconditionally delegate.
10122 * target.h (struct target_ops) <to_goto_record_begin>: Use
10123 TARGET_DEFAULT_NORETURN.
10124
10125 2014-02-19 Tom Tromey <tromey@redhat.com>
10126
10127 * target-delegates.c: Rebuild.
10128 * target.c (target_goto_record_end): Unconditionally delegate.
10129 * target.h (struct target_ops) <to_goto_record_end>: Use
10130 TARGET_DEFAULT_NORETURN.
10131
10132 2014-02-19 Tom Tromey <tromey@redhat.com>
10133
10134 * target-delegates.c: Rebuild.
10135 * target.c (target_goto_record): Unconditionally delegate.
10136 * target.h (struct target_ops) <to_goto_record>: Use
10137 TARGET_DEFAULT_NORETURN.
10138
10139 2014-02-19 Tom Tromey <tromey@redhat.com>
10140
10141 * target-delegates.c: Rebuild.
10142 * target.c (target_insn_history): Unconditionally delegate.
10143 * target.h (struct target_ops) <to_insn_history>: Use
10144 TARGET_DEFAULT_NORETURN.
10145
10146 2014-02-19 Tom Tromey <tromey@redhat.com>
10147
10148 * target-delegates.c: Rebuild.
10149 * target.c (target_insn_history_from): Unconditionally delegate.
10150 * target.h (struct target_ops) <to_insn_history_from>: Use
10151 TARGET_DEFAULT_NORETURN.
10152
10153 2014-02-19 Tom Tromey <tromey@redhat.com>
10154
10155 * target-delegates.c: Rebuild.
10156 * target.c (target_insn_history_range): Unconditionally delegate.
10157 * target.h (struct target_ops) <to_insn_history_range>: Use
10158 TARGET_DEFAULT_NORETURN.
10159
10160 2014-02-19 Tom Tromey <tromey@redhat.com>
10161
10162 * target-delegates.c: Rebuild.
10163 * target.c (target_call_history): Unconditionally delegate.
10164 * target.h (struct target_ops) <to_call_history>: Use
10165 TARGET_DEFAULT_NORETURN.
10166
10167 2014-02-19 Tom Tromey <tromey@redhat.com>
10168
10169 * target-delegates.c: Rebuild.
10170 * target.c (target_call_history_from): Unconditionally delegate.
10171 * target.h (struct target_ops) <to_call_history_from>: Use
10172 TARGET_DEFAULT_NORETURN.
10173
10174 2014-02-19 Tom Tromey <tromey@redhat.com>
10175
10176 * target-delegates.c: Rebuild.
10177 * target.c (target_call_history_range): Unconditionally delegate.
10178 * target.h (struct target_ops) <to_call_history_range>: Use
10179 TARGET_DEFAULT_NORETURN.
10180
10181 2014-02-19 Tom Tromey <tromey@redhat.com>
10182
10183 * target-delegates.c: Rebuild.
10184 * target.c (target_verify_memory): Unconditionally delegate.
10185 * target.h (struct target_ops) <to_verify_memory>: Use
10186 TARGET_DEFAULT_NORETURN.
10187
10188 2014-02-19 Tom Tromey <tromey@redhat.com>
10189
10190 * target-delegates.c: Rebuild.
10191 * target.c (target_core_of_thread): Unconditionally delegate.
10192 * target.h (struct target_ops) <to_core_of_thread>: Use
10193 TARGET_DEFAULT_RETURN.
10194
10195 2014-02-19 Tom Tromey <tromey@redhat.com>
10196
10197 * target-delegates.c: Rebuild.
10198 * target.c (target_flash_done): Unconditionally delegate.
10199 * target.h (struct target_ops) <to_flash_done>: Use
10200 TARGET_DEFAULT_NORETURN.
10201
10202 2014-02-19 Tom Tromey <tromey@redhat.com>
10203
10204 * target-delegates.c: Rebuild.
10205 * target.c (target_flash_erase): Unconditionally delegate.
10206 * target.h (struct target_ops) <to_flash_erase>: Use
10207 TARGET_DEFAULT_NORETURN.
10208
10209 2014-02-19 Tom Tromey <tromey@redhat.com>
10210
10211 * target-delegates.c: Rebuild.
10212 * target.c (target_get_section_table): Unconditionally delegate.
10213 * target.h (struct target_ops) <to_get_section_table>: Use
10214 TARGET_DEFAULT_RETURN.
10215
10216 2014-02-19 Tom Tromey <tromey@redhat.com>
10217
10218 * target-delegates.c: Rebuild.
10219 * target.c (target_pid_to_str): Unconditionally delegate.
10220 (init_dummy_target): Don't initialize to_pid_to_str.
10221 (default_pid_to_str): Rename from dummy_pid_to_str.
10222 * target.h (struct target_ops) <to_pid_to_str>: Use
10223 TARGET_DEFAULT_FUNC.
10224
10225 2014-02-19 Tom Tromey <tromey@redhat.com>
10226
10227 * target-delegates.c: Rebuild.
10228 * target.c (target_find_new_threads): Unconditionally delegate.
10229 * target.h (struct target_ops) <to_find_new_threads>: Use
10230 TARGET_DEFAULT_RETURN.
10231
10232 2014-02-19 Tom Tromey <tromey@redhat.com>
10233
10234 * target-delegates.c: Rebuild.
10235 * target.c (target_program_signals): Unconditionally delegate.
10236 * target.h (struct target_ops) <to_program_signals>: Use
10237 TARGET_DEFAULT_IGNORE.
10238
10239 2014-02-19 Tom Tromey <tromey@redhat.com>
10240
10241 * target-delegates.c: Rebuild.
10242 * target.c (target_pass_signals): Unconditionally delegate.
10243 * target.h (struct target_ops) <to_pass_signals>: Use
10244 TARGET_DEFAULT_IGNORE.
10245
10246 2014-02-19 Tom Tromey <tromey@redhat.com>
10247
10248 * target-delegates.c: Rebuild.
10249 * target.c (default_mourn_inferior): New function.
10250 (target_mourn_inferior): Unconditionally delegate.
10251 * target.h (struct target_ops) <to_mourn_inferior>: Use
10252 TARGET_DEFAULT_FUNC.
10253
10254 2014-02-19 Tom Tromey <tromey@redhat.com>
10255
10256 * target-delegates.c: Rebuild.
10257 * target.c (default_follow_fork): New function.
10258 (target_follow_fork): Unconditionally delegate.
10259 * target.h (struct target_ops) <to_follow_fork>: Use
10260 TARGET_DEFAULT_FUNC.
10261
10262 2014-02-19 Tom Tromey <tromey@redhat.com>
10263
10264 * target-delegates.c: Rebuild.
10265 * target.c (target_kill): Unconditionally delegate.
10266 * target.h (struct target_ops) <to_kill>: Use
10267 TARGET_DEFAULT_NORETURN.
10268
10269 2014-02-19 Tom Tromey <tromey@redhat.com>
10270
10271 * target-delegates.c: Rebuild.
10272 * target.c (target_masked_watch_num_registers): Unconditionally
10273 delegate.
10274 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10275 Use TARGET_DEFAULT_RETURN.
10276
10277 2014-02-19 Tom Tromey <tromey@redhat.com>
10278
10279 * target-delegates.c: Rebuild.
10280 * target.c (target_remove_mask_watchpoint): Unconditionally
10281 delegate.
10282 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10283 TARGET_DEFAULT_RETURN.
10284
10285 2014-02-19 Tom Tromey <tromey@redhat.com>
10286
10287 * target-delegates.c: Rebuild.
10288 * target.c (target_insert_mask_watchpoint): Unconditionally
10289 delegate.
10290 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10291 TARGET_DEFAULT_RETURN.
10292
10293 2014-02-19 Tom Tromey <tromey@redhat.com>
10294
10295 * target-delegates.c: Rebuild.
10296 * target.c (target_ranged_break_num_registers): Unconditionally
10297 delegate.
10298 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10299 Use TARGET_DEFAULT_RETURN.
10300
10301 2014-02-19 Tom Tromey <tromey@redhat.com>
10302
10303 * target-delegates.c: Rebuild.
10304 * target.c (target_fetch_registers): Unconditionally delegate.
10305 * target.h (struct target_ops) <to_fetch_registers>: Use
10306 TARGET_DEFAULT_NORETURN.
10307
10308 2014-02-19 Tom Tromey <tromey@redhat.com>
10309
10310 * target-delegates.c: Rebuild.
10311 * target.c (update_current_target): Don't inherit or default
10312 to_stop.
10313 * target.h (struct target_ops) <to_stop>: Use
10314 TARGET_DEFAULT_IGNORE.
10315
10316 2014-02-19 Tom Tromey <tromey@redhat.com>
10317
10318 * target-delegates.c: Rebuild.
10319 * target.c (update_current_target): Don't inherit or default
10320 to_can_run_breakpoint_commands.
10321 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10322 Use TARGET_DEFAULT_RETURN.
10323
10324 2014-02-19 Tom Tromey <tromey@redhat.com>
10325
10326 * target-delegates.c: Rebuild.
10327 * target.c (update_current_target): Don't inherit or default
10328 to_supports_evaluation_of_breakpoint_conditions.
10329 * target.h (struct target_ops)
10330 <to_supports_evaluation_of_breakpoint_conditions>: Use
10331 TARGET_DEFAULT_RETURN.
10332
10333 2014-02-19 Tom Tromey <tromey@redhat.com>
10334
10335 * target-delegates.c: Rebuild.
10336 * target.c (update_current_target): Don't inherit or default
10337 to_augmented_libraries_svr4_read.
10338 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10339 Use TARGET_DEFAULT_RETURN.
10340
10341 2014-02-19 Tom Tromey <tromey@redhat.com>
10342
10343 * target-delegates.c: Rebuild.
10344 * target.c (update_current_target): Don't inherit or default
10345 to_can_use_agent.
10346 * target.h (struct target_ops) <to_can_use_agent>: Use
10347 TARGET_DEFAULT_RETURN.
10348
10349 2014-02-19 Tom Tromey <tromey@redhat.com>
10350
10351 * target-delegates.c: Rebuild.
10352 * target.c (update_current_target): Don't inherit or default
10353 to_use_agent.
10354 * target.h (struct target_ops) <to_use_agent>: Use
10355 TARGET_DEFAULT_NORETURN.
10356
10357 2014-02-19 Tom Tromey <tromey@redhat.com>
10358
10359 * target-delegates.c: Rebuild.
10360 * target.c (update_current_target): Don't inherit or default
10361 to_traceframe_info.
10362 (return_null): Remove.
10363 * target.h (struct target_ops) <to_traceframe_info>: Use
10364 TARGET_DEFAULT_RETURN.
10365
10366 2014-02-19 Tom Tromey <tromey@redhat.com>
10367
10368 * target-delegates.c: Rebuild.
10369 * target.c (update_current_target): Don't inherit or default
10370 to_static_tracepoint_markers_by_strid.
10371 * target.h (struct target_ops)
10372 <to_static_tracepoint_markers_by_strid>: Use
10373 TARGET_DEFAULT_NORETURN.
10374
10375 2014-02-19 Tom Tromey <tromey@redhat.com>
10376
10377 * target-delegates.c: Rebuild.
10378 * target.c (update_current_target): Don't inherit or default
10379 to_static_tracepoint_marker_at.
10380 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10381 Use TARGET_DEFAULT_RETURN.
10382
10383 2014-02-19 Tom Tromey <tromey@redhat.com>
10384
10385 * target-delegates.c: Rebuild.
10386 * target.c (update_current_target): Don't inherit or default
10387 to_set_permissions.
10388 * target.h (struct target_ops) <to_set_permissions>: Use
10389 TARGET_DEFAULT_IGNORE.
10390
10391 2014-02-19 Tom Tromey <tromey@redhat.com>
10392
10393 * target-delegates.c: Rebuild.
10394 * target.c (update_current_target): Don't inherit or default
10395 to_get_tib_address.
10396 * target.h (struct target_ops) <to_get_tib_address>: Use
10397 TARGET_DEFAULT_NORETURN.
10398
10399 2014-02-19 Tom Tromey <tromey@redhat.com>
10400
10401 * target-delegates.c: Rebuild.
10402 * target.c (update_current_target): Don't inherit or default
10403 to_set_trace_notes.
10404 * target.h (struct target_ops) <to_set_trace_notes>: Use
10405 TARGET_DEFAULT_RETURN.
10406
10407 2014-02-19 Tom Tromey <tromey@redhat.com>
10408
10409 * target-delegates.c: Rebuild.
10410 * target.c (update_current_target): Don't initialize
10411 to_set_trace_buffer_size.
10412 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10413 TARGET_DEFAULT_IGNORE.
10414
10415 2014-02-19 Tom Tromey <tromey@redhat.com>
10416
10417 * target-delegates.c: Rebuild.
10418 * target.c (update_current_target): Don't inherit or default
10419 to_set_circular_trace_buffer.
10420 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10421 TARGET_DEFAULT_IGNORE.
10422
10423 2014-02-19 Tom Tromey <tromey@redhat.com>
10424
10425 * target-delegates.c: Rebuild.
10426 * target.c (update_current_target): Don't inherit or default
10427 to_set_disconnected_tracing.
10428 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10429 TARGET_DEFAULT_IGNORE.
10430
10431 2014-02-19 Tom Tromey <tromey@redhat.com>
10432
10433 * target-delegates.c: Rebuild.
10434 * target.c (update_current_target): Don't inherit or default
10435 to_get_min_fast_tracepoint_insn_len.
10436 (return_minus_one): Remove.
10437 * target.h (struct target_ops)
10438 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10439
10440 2014-02-19 Tom Tromey <tromey@redhat.com>
10441
10442 * target-delegates.c: Rebuild.
10443 * target.c (update_current_target): Don't inherit or default
10444 to_get_raw_trace_data.
10445 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10446 TARGET_DEFAULT_NORETURN.
10447
10448 2014-02-19 Tom Tromey <tromey@redhat.com>
10449
10450 * target-delegates.c: Rebuild.
10451 * target.c (update_current_target): Don't inherit or default
10452 to_upload_trace_state_variables.
10453 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10454 Use TARGET_DEFAULT_RETURN.
10455
10456 2014-02-19 Tom Tromey <tromey@redhat.com>
10457
10458 * target-delegates.c: Rebuild.
10459 * target.c (update_current_target): Don't inherit or default
10460 to_upload_tracepoints.
10461 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10462 TARGET_DEFAULT_RETURN.
10463
10464 2014-02-19 Tom Tromey <tromey@redhat.com>
10465
10466 * target-delegates.c: Rebuild.
10467 * target.c (update_current_target): Don't inherit or default
10468 to_save_trace_data.
10469 * target.h (struct target_ops) <to_save_trace_data>: Use
10470 TARGET_DEFAULT_NORETURN.
10471
10472 2014-02-19 Tom Tromey <tromey@redhat.com>
10473
10474 * target-delegates.c: Rebuild.
10475 * target.c (update_current_target): Don't inherit or default
10476 to_get_trace_state_variable_value.
10477 * target.h (struct target_ops)
10478 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10479
10480 2014-02-19 Tom Tromey <tromey@redhat.com>
10481
10482 * target-delegates.c: Rebuild.
10483 * target.c (update_current_target): Don't inherit or default
10484 to_trace_find.
10485 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10486
10487 2014-02-19 Tom Tromey <tromey@redhat.com>
10488
10489 * target-delegates.c: Rebuild.
10490 * target.c (update_current_target): Don't inherit or default
10491 to_trace_stop.
10492 * target.h (struct target_ops) <to_trace_stop>: Use
10493 TARGET_DEFAULT_NORETURN.
10494
10495 2014-02-19 Tom Tromey <tromey@redhat.com>
10496
10497 * target-delegates.c: Rebuild.
10498 * target.c (update_current_target): Don't inherit or default
10499 to_get_tracepoint_status.
10500 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10501 TARGET_DEFAULT_NORETURN.
10502
10503 2014-02-19 Tom Tromey <tromey@redhat.com>
10504
10505 * target-delegates.c: Rebuild.
10506 * target.c (update_current_target): Don't inherit or default
10507 to_get_trace_status.
10508 * target.h (struct target_ops) <to_get_trace_status>: Use
10509 TARGET_DEFAULT_RETURN.
10510
10511 2014-02-19 Tom Tromey <tromey@redhat.com>
10512
10513 * target-delegates.c: Rebuild.
10514 * target.c (update_current_target): Don't inherit or default
10515 to_trace_start.
10516 * target.h (struct target_ops) <to_trace_start>: Use
10517 TARGET_DEFAULT_NORETURN.
10518
10519 2014-02-19 Tom Tromey <tromey@redhat.com>
10520
10521 * target-delegates.c: Rebuild.
10522 * target.c (update_current_target): Don't inherit or default
10523 to_trace_set_readonly_regions.
10524 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10525 Use TARGET_DEFAULT_NORETURN.
10526
10527 2014-02-19 Tom Tromey <tromey@redhat.com>
10528
10529 * target-delegates.c: Rebuild.
10530 * target.c (update_current_target): Don't inherit or default
10531 to_disable_tracepoint.
10532 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10533 TARGET_DEFAULT_NORETURN.
10534
10535 2014-02-19 Tom Tromey <tromey@redhat.com>
10536
10537 * target-delegates.c: Rebuild.
10538 * target.c (update_current_target): Don't inherit or default
10539 to_enable_tracepoint.
10540 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10541 TARGET_DEFAULT_NORETURN.
10542
10543 2014-02-19 Tom Tromey <tromey@redhat.com>
10544
10545 * target-delegates.c: Rebuild.
10546 * target.c (update_current_target): Don't inherit or default
10547 to_download_trace_state_variable.
10548 * target.h (struct target_ops) <to_download_trace_state_variable>:
10549 Use TARGET_DEFAULT_NORETURN.
10550
10551 2014-02-19 Tom Tromey <tromey@redhat.com>
10552
10553 * target-delegates.c: Rebuild.
10554 * target.c (update_current_target): Don't inherit or default
10555 to_can_download_tracepoint.
10556 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10557 TARGET_DEFAULT_RETURN.
10558
10559 2014-02-19 Tom Tromey <tromey@redhat.com>
10560
10561 * target-delegates.c: Rebuild.
10562 * target.c (update_current_target): Don't inherit or default
10563 to_download_tracepoint.
10564 * target.h (struct target_ops) <to_download_tracepoint>: Use
10565 TARGET_DEFAULT_NORETURN.
10566
10567 2014-02-19 Tom Tromey <tromey@redhat.com>
10568
10569 * target-delegates.c: Rebuild.
10570 * target.c (update_current_target): Don't inherit or default
10571 to_trace_init.
10572 * target.h (struct target_ops) <to_trace_init>: Use
10573 TARGET_DEFAULT_RETURN.
10574
10575 2014-02-19 Tom Tromey <tromey@redhat.com>
10576
10577 * target-delegates.c: Rebuild.
10578 * target.c (update_current_target): Don't inherit or default
10579 to_supports_string_tracing.
10580 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10581 TARGET_DEFAULT_RETURN.
10582
10583 2014-02-19 Tom Tromey <tromey@redhat.com>
10584
10585 * target-delegates.c: Rebuild.
10586 * target.c (update_current_target): Don't inherit or default
10587 to_supports_enable_disable_tracepoint.
10588 * target.h (struct target_ops)
10589 <to_supports_enable_disable_tracepoint>: Use
10590 TARGET_DEFAULT_RETURN.
10591
10592 2014-02-19 Tom Tromey <tromey@redhat.com>
10593
10594 * target-delegates.c: Rebuild.
10595 * target.c (update_current_target): Don't inherit or default
10596 to_supports_multi_process.
10597 * target.h (struct target_ops) <to_supports_multi_process>: Use
10598 TARGET_DEFAULT_RETURN.
10599
10600 2014-02-19 Tom Tromey <tromey@redhat.com>
10601
10602 * target-delegates.c: Rebuild.
10603 * target.c (update_current_target): Don't inherit or default
10604 to_get_ada_task_ptid.
10605 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10606 TARGET_DEFAULT_FUNC.
10607
10608 2014-02-19 Tom Tromey <tromey@redhat.com>
10609
10610 * target-delegates.c: Rebuild.
10611 * target.c (update_current_target): Don't inherit or default
10612 to_thread_architecture.
10613 * target.h (struct target_ops) <to_thread_architecture>: Use
10614 TARGET_DEFAULT_FUNC.
10615
10616 2014-02-19 Tom Tromey <tromey@redhat.com>
10617
10618 * target-delegates.c: Rebuild.
10619 * target.c (update_current_target): Don't inherit or default
10620 to_execution_direction.
10621 * target.h (struct target_ops) <to_execution_direction>: Use
10622 TARGET_DEFAULT_FUNC.
10623
10624 2014-02-19 Tom Tromey <tromey@redhat.com>
10625
10626 * target-delegates.c: Rebuild.
10627 * target.c (update_current_target): Don't inherit or default
10628 to_can_execute_reverse.
10629 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10630 TARGET_DEFAULT_RETURN.
10631 (target_can_execute_reverse): Unconditionally delegate.
10632
10633 2014-02-19 Tom Tromey <tromey@redhat.com>
10634
10635 * target-delegates.c: Rebuild.
10636 * target.c (update_current_target): Don't inherit or default
10637 to_goto_bookmark.
10638 (dummy_goto_bookmark): Remove.
10639 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10640 * target.h (struct target_ops) <to_goto_bookmark>: Use
10641 TARGET_DEFAULT_NORETURN.
10642
10643 2014-02-19 Tom Tromey <tromey@redhat.com>
10644
10645 * target-delegates.c: Rebuild.
10646 * target.c (update_current_target): Don't inherit or default
10647 to_get_bookmark.
10648 (dummy_get_bookmark): Remove.
10649 (init_dummy_target): Don't inherit or default to_get_bookmark.
10650 * target.h (struct target_ops) <to_get_bookmark>: Use
10651 TARGET_DEFAULT_NORETURN
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_make_corefile_notes.
10658 (init_dummy_target): Don't initialize to_make_corefile_notes.
10659 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10660 TARGET_DEFAULT_FUNC.
10661
10662 2014-02-19 Tom Tromey <tromey@redhat.com>
10663
10664 * target-delegates.c: Rebuild.
10665 * target.c (update_current_target): Don't inherit or default
10666 to_find_memory_regions.
10667 (init_dummy_target): Don't initialize to_find_memory_regions.
10668 * target.h (struct target_ops) <to_find_memory_regions>: Use
10669 TARGET_DEFAULT_FUNC.
10670
10671 2014-02-19 Tom Tromey <tromey@redhat.com>
10672
10673 * target-delegates.c: Rebuild.
10674 * target.c (update_current_target): Don't inherit or default
10675 to_log_command.
10676 * target.h (struct target_ops) <to_log_command>: Use
10677 TARGET_DEFAULT_IGNORE.
10678 (target_log_command): Unconditionally delegate.
10679
10680 2014-02-19 Tom Tromey <tromey@redhat.com>
10681
10682 * target-delegates.c: Rebuild.
10683 * target.c (update_current_target): Don't inherit or default
10684 to_pid_to_exec_file.
10685 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10686 TARGET_DEFAULT_RETURN.
10687
10688 2014-02-19 Tom Tromey <tromey@redhat.com>
10689
10690 * target-delegates.c: Rebuild.
10691 * target.c (update_current_target): Don't inherit or default
10692 to_thread_name.
10693 (target_thread_name): Unconditionally delegate.
10694 * target.h (struct target_ops) <to_thread_name>: Use
10695 TARGET_DEFAULT_RETURN.
10696
10697 2014-02-19 Tom Tromey <tromey@redhat.com>
10698
10699 * target-delegates.c: Rebuild.
10700 * target.c (update_current_target): Don't inherit or default
10701 to_extra_thread_info.
10702 * target.h (struct target_ops) <to_extra_thread_info>: Use
10703 TARGET_DEFAULT_RETURN.
10704
10705 2014-02-19 Tom Tromey <tromey@redhat.com>
10706
10707 * target-delegates.c: Rebuild.
10708 * target.c (update_current_target): Don't inherit or default
10709 to_has_exited.
10710 * target.h (struct target_ops) <to_has_exited>: Use
10711 TARGET_DEFAULT_RETURN..
10712
10713 2014-02-19 Tom Tromey <tromey@redhat.com>
10714
10715 * target-delegates.c: Rebuild.
10716 * target.c (update_current_target): Don't inherit or default
10717 to_set_syscall_catchpoint.
10718 (return_one): Remove.
10719 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10720 TARGET_DEFAULT_RETURN.
10721
10722 2014-02-19 Tom Tromey <tromey@redhat.com>
10723
10724 * target-delegates.c: Rebuild.
10725 * target.c (update_current_target): Don't inherit or default
10726 to_insert_exec_catchpoint.
10727 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10728 TARGET_DEFAULT_RETURN.
10729
10730 2014-01-08 Tom Tromey <tromey@redhat.com>
10731
10732 * target-delegates.c: Rebuild.
10733 * target.c (update_current_target): Don't inherit or default
10734 to_insert_exec_catchpoint.
10735 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10736 TARGET_DEFAULT_RETURN.
10737
10738 2014-02-19 Tom Tromey <tromey@redhat.com>
10739
10740 * target-delegates.c: Rebuild.
10741 * target.c (update_current_target): Don't inherit or default
10742 to_remove_vfork_catchpoint.
10743 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10744 TARGET_DEFAULT_RETURN.
10745
10746 2014-02-19 Tom Tromey <tromey@redhat.com>
10747
10748 * target-delegates.c: Rebuild.
10749 * target.c (update_current_target): Don't inherit or default
10750 to_insert_vfork_catchpoint.
10751 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10752 TARGET_DEFAULT_RETURN.
10753
10754 2014-02-19 Tom Tromey <tromey@redhat.com>
10755
10756 * target-delegates.c: Rebuild.
10757 * target.c (update_current_target): Don't inherit or default
10758 to_remove_fork_catchpoint.
10759 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10760 TARGET_DEFAULT_RETURN.
10761
10762 2014-02-19 Tom Tromey <tromey@redhat.com>
10763
10764 * target-delegates.c: Rebuild.
10765 * target.c (update_current_target): Don't inherit or default
10766 to_insert_fork_catchpoint.
10767 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10768 TARGET_DEFAULT_RETURN.
10769
10770 2014-02-19 Tom Tromey <tromey@redhat.com>
10771
10772 * target-delegates.c: Rebuild.
10773 * target.c (update_current_target): Don't inherit or default
10774 to_post_startup_inferior.
10775 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10776 TARGET_DEFAULT_IGNORE.
10777
10778 2014-02-19 Tom Tromey <tromey@redhat.com>
10779
10780 * target-delegates.c: Rebuild.
10781 * target.c (update_current_target): Don't inherit or default
10782 to_load.
10783 * target.h (struct target_ops) <to_load>: Use
10784 TARGET_DEFAULT_NORETURN.
10785
10786 2014-02-19 Tom Tromey <tromey@redhat.com>
10787
10788 * target-delegates.c: Rebuild.
10789 * target.c (update_current_target): Don't inherit or default
10790 to_terminal_info.
10791 * target.h (struct target_ops) <to_terminal_info>: Use
10792 TARGET_DEFAULT_FUNC.
10793
10794 2014-02-19 Tom Tromey <tromey@redhat.com>
10795
10796 * target-delegates.c: Rebuild.
10797 * target.c (update_current_target): Don't inherit or default
10798 to_terminal_save_ours.
10799 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10800 TARGET_DEFAULT_IGNORE.
10801
10802 2014-02-19 Tom Tromey <tromey@redhat.com>
10803
10804 * target-delegates.c: Rebuild.
10805 * target.c (update_current_target): Don't inherit or default
10806 to_terminal_ours.
10807 * target.h (struct target_ops) <to_terminal_ours>: Use
10808 TARGET_DEFAULT_IGNORE.
10809
10810 2014-02-19 Tom Tromey <tromey@redhat.com>
10811
10812 * target-delegates.c: Rebuild.
10813 * target.c (update_current_target): Don't inherit or default
10814 to_terminal_ours_for_output.
10815 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10816 TARGET_DEFAULT_IGNORE.
10817
10818 2014-02-19 Tom Tromey <tromey@redhat.com>
10819
10820 * target-delegates.c: Rebuild.
10821 * target.c (update_current_target): Don't inherit or default
10822 to_terminal_inferior.
10823 * target.h (struct target_ops) <to_terminal_inferior>: Use
10824 TARGET_DEFAULT_IGNORE.
10825
10826 2014-02-19 Tom Tromey <tromey@redhat.com>
10827
10828 * target-delegates.c: Rebuild.
10829 * target.c (update_current_target): Don't inherit or default
10830 to_terminal_init.
10831 * target.h (struct target_ops) <to_terminal_init>: Use
10832 TARGET_DEFAULT_IGNORE.
10833
10834 2014-02-19 Tom Tromey <tromey@redhat.com>
10835
10836 * target-delegates.c: Rebuild.
10837 * target.c (update_current_target): Don't inherit or default
10838 to_can_accel_watchpoint_condition.
10839 * target.h (struct target_ops)
10840 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10841
10842 2014-02-19 Tom Tromey <tromey@redhat.com>
10843
10844 * target-delegates.c: Rebuild.
10845 * target.c (update_current_target): Don't inherit or default
10846 to_region_ok_for_hw_watchpoint.
10847 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10848 Use TARGET_DEFAULT_FUNC.
10849
10850 2014-02-19 Tom Tromey <tromey@redhat.com>
10851
10852 * target-delegates.c: Rebuild.
10853 * target.c (update_current_target): Don't inherit or default
10854 to_watchpoint_addr_within_range.
10855 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10856 Use TARGET_DEFAULT_FUNC.
10857
10858 2014-02-19 Tom Tromey <tromey@redhat.com>
10859
10860 * target-delegates.c: Rebuild.
10861 * target.c (update_current_target): Don't inherit or default
10862 to_remove_watchpoint.
10863 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10864 TARGET_DEFAULT_NORETURN.
10865
10866 2014-02-19 Tom Tromey <tromey@redhat.com>
10867
10868 * target-delegates.c: Rebuild.
10869 * target.c (update_current_target): Don't inherit or default
10870 to_insert_watchpoint.
10871 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10872 TARGET_DEFAULT_RETURN.
10873
10874 2014-02-19 Tom Tromey <tromey@redhat.com>
10875
10876 * target-delegates.c: Rebuild.
10877 * target.c (update_current_target): Don't inherit or default
10878 to_remove_hw_breakpoint.
10879 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10880 TARGET_DEFAULT_RETURN.
10881
10882 2014-02-19 Tom Tromey <tromey@redhat.com>
10883
10884 * target-delegates.c: Rebuild.
10885 * target.c (update_current_target): Don't inherit or default
10886 to_insert_hw_breakpoint.
10887 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10888 TARGET_DEFAULT_RETURN.
10889
10890 2014-02-19 Tom Tromey <tromey@redhat.com>
10891
10892 * target-delegates.c: Rebuild.
10893 * target.c (update_current_target): Don't inherit or default
10894 to_can_use_hw_breakpoint.
10895 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10896 TARGET_DEFAULT_RETURN.
10897
10898 2014-02-19 Tom Tromey <tromey@redhat.com>
10899
10900 * target-delegates.c: Rebuild.
10901 * target.c (update_current_target): Don't inherit or default
10902 to_files_info.
10903 * target.h (struct target_ops) <to_files_info>: Use
10904 TARGET_DEFAULT_IGNORE.
10905
10906 2014-02-19 Tom Tromey <tromey@redhat.com>
10907
10908 * target-delegates.c: Rebuild.
10909 * target.c (update_current_target): Don't inherit or default
10910 to_store.
10911 * target.h (struct target_ops) <to_store>: Use
10912 TARGET_DEFAULT_NORETURN.
10913
10914 2014-02-19 Tom Tromey <tromey@redhat.com>
10915
10916 * target-delegates.c: Rebuild.
10917 * target.c (update_current_target): Don't inherit or default
10918 to_post_attach.
10919 * target.h (struct target_ops) <to_post_attach>: Use
10920 TARGET_DEFAULT_IGNORE.
10921
10922 2014-02-19 Tom Tromey <tromey@redhat.com>
10923
10924 * target-delegates.c: Rebuild.
10925 * target.c (update_current_target): Don't inherit or default
10926 to_rcmd.
10927 (default_rcmd): New function.
10928 (do_monitor_command): Unconditionally delegate.
10929 * target.h (struct target_ops) <to_rmcd>: Use
10930 TARGET_DEFAULT_FUNC.
10931
10932 2014-02-19 Tom Tromey <tromey@redhat.com>
10933
10934 * target-delegates.c: Rebuild.
10935 * target.c (init_dummy_target): Don't initialize to_attach.
10936 (target_attach): Unconditionally delegate.
10937 * target.h (struct target_ops) <to_attach>: Use
10938 TARGET_DEFAULT_FUNC.
10939
10940 2014-02-19 Tom Tromey <tromey@redhat.com>
10941
10942 * target-delegates.c: Rebuild.
10943 * target.c (target_detach): Unconditionally delegate.
10944 (init_dummy_target): Don't initialize to_detach.
10945 * target.h (struct target_ops) <to_detach>: Use
10946 TARGET_DEFAULT_IGNORE.
10947
10948 2014-02-19 Tom Tromey <tromey@redhat.com>
10949
10950 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10951 Add argument.
10952 (target_augmented_libraries_svr4_read): Add argument.
10953 * target.c (update_current_target): Update.
10954 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10955 argument.
10956
10957 2014-02-19 Tom Tromey <tromey@redhat.com>
10958
10959 * target.h (struct target_ops) <to_call_history_range>: Add
10960 argument.
10961 * target.c (target_call_history_range): Add argument.
10962 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10963 argument.
10964 (record_btrace_call_history_from): Update.
10965
10966 2014-02-19 Tom Tromey <tromey@redhat.com>
10967
10968 * target.h (struct target_ops) <to_call_history_from>: Add
10969 argument.
10970 * target.c (target_call_history_from): Add argument.
10971 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10972 argument.
10973
10974 2014-02-19 Tom Tromey <tromey@redhat.com>
10975
10976 * target.h (struct target_ops) <to_call_history>: Add argument.
10977 * target.c (target_call_history): Add argument.
10978 * record-btrace.c (record_btrace_call_history): Add 'self'
10979 argument.
10980
10981 2014-02-19 Tom Tromey <tromey@redhat.com>
10982
10983 * target.h (struct target_ops) <to_insn_history_range>: Add
10984 argument.
10985 * target.c (target_insn_history_range): Add argument.
10986 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10987 argument.
10988 (record_btrace_insn_history_from): Update.
10989
10990 2014-02-19 Tom Tromey <tromey@redhat.com>
10991
10992 * target.h (struct target_ops) <to_insn_history_from>: Add
10993 argument.
10994 * target.c (target_insn_history_from): Add argument.
10995 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10996 argument.
10997
10998 2014-02-19 Tom Tromey <tromey@redhat.com>
10999
11000 * target.h (struct target_ops) <to_insn_history>: Add argument.
11001 * target.c (target_insn_history): Add argument.
11002 * record-btrace.c (record_btrace_insn_history): Add 'self'
11003 argument.
11004
11005 2014-02-19 Tom Tromey <tromey@redhat.com>
11006
11007 * target.h (struct target_ops) <to_goto_record>: Add argument.
11008 * target.c (target_goto_record): Add argument.
11009 * record-full.c (record_full_goto): Add 'self' argument.
11010 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11011
11012 2014-02-19 Tom Tromey <tromey@redhat.com>
11013
11014 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11015 * target.c (target_goto_record_end): Add argument.
11016 * record-full.c (record_full_goto_end): Add 'self' argument.
11017 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11018
11019 2014-02-19 Tom Tromey <tromey@redhat.com>
11020
11021 * target.h (struct target_ops) <to_goto_record_begin>: Add
11022 argument.
11023 * target.c (target_goto_record_begin): Add argument.
11024 * record-full.c (record_full_goto_begin): Add 'self' argument.
11025 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11026 argument.
11027
11028 2014-02-19 Tom Tromey <tromey@redhat.com>
11029
11030 * target.h (struct target_ops) <to_record_is_replaying>: Add
11031 argument.
11032 * target.c (target_record_is_replaying): Add argument.
11033 * record-full.c (record_full_is_replaying): Add 'self' argument.
11034 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11035 argument.
11036 (record_btrace_xfer_partial, record_btrace_store_registers)
11037 (record_btrace_prepare_to_store, record_btrace_resume)
11038 (record_btrace_wait, record_btrace_decr_pc_after_break)
11039 (record_btrace_find_new_threads, record_btrace_thread_alive):
11040 Update.
11041
11042 2014-02-19 Tom Tromey <tromey@redhat.com>
11043
11044 * target.h (struct target_ops) <to_delete_record>: Add argument.
11045 * target.c (target_delete_record): Add argument.
11046 * record-full.c (record_full_delete): Add 'self' argument.
11047
11048 2014-02-19 Tom Tromey <tromey@redhat.com>
11049
11050 * target.h (struct target_ops) <to_save_record>: Add argument.
11051 * target.c (target_save_record): Add argument.
11052 * record-full.c (record_full_save): Add 'self' argument.
11053 (record_full_save): Add 'self' argument.
11054
11055 2014-02-19 Tom Tromey <tromey@redhat.com>
11056
11057 * target.h (struct target_ops) <to_info_record>: Add argument.
11058 * target.c (target_info_record): Add argument.
11059 * record.c (info_record_command): Add argument.
11060 * record-full.c (record_full_info): Add 'self' argument.
11061 * record-btrace.c (record_btrace_info): Add 'self' argument.
11062
11063 2014-02-19 Tom Tromey <tromey@redhat.com>
11064
11065 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11066 * target.c (target_stop_recording): Add argument.
11067 * record.c (record_stop): Add argument.
11068 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11069 argument.
11070
11071 2014-02-19 Tom Tromey <tromey@redhat.com>
11072
11073 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11074 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11075 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11076 argument.
11077 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11078 (_initialize_amd64_linux_nat): Use it.
11079 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11080 (_initialize_i386_linux_nat): Use it.
11081
11082 2014-02-19 Tom Tromey <tromey@redhat.com>
11083
11084 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11085 * target.c (target_teardown_btrace): Add argument.
11086 * remote.c (remote_teardown_btrace): Add 'self' argument.
11087 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11088 argument.
11089 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11090 argument.
11091
11092 2014-02-19 Tom Tromey <tromey@redhat.com>
11093
11094 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11095 * target.c (target_disable_btrace): Add argument.
11096 * remote.c (remote_disable_btrace): Add 'self' argument.
11097 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11098 argument.
11099 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11100 argument.
11101
11102 2014-02-19 Tom Tromey <tromey@redhat.com>
11103
11104 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11105 * target.c (target_enable_btrace): Add argument.
11106 * remote.c (remote_enable_btrace): Add 'self' argument.
11107 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11108 argument.
11109 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11110 argument.
11111
11112 2014-02-19 Tom Tromey <tromey@redhat.com>
11113
11114 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11115 (target_can_use_agent): Add argument.
11116 * target.c (update_current_target): Update.
11117 * remote.c (remote_can_use_agent): Add 'self' argument.
11118 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11119
11120 2014-02-19 Tom Tromey <tromey@redhat.com>
11121
11122 * target.h (struct target_ops) <to_use_agent>: Add argument.
11123 (target_use_agent): Add argument.
11124 * target.c (update_current_target): Update.
11125 * remote.c (remote_use_agent): Add 'self' argument.
11126 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11127
11128 2014-02-19 Tom Tromey <tromey@redhat.com>
11129
11130 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11131 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11132 (target_traceframe_info): Add argument.
11133 * target.c (update_current_target): Update.
11134 * remote.c (remote_traceframe_info): Add 'self' argument.
11135 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11136
11137 2014-02-19 Tom Tromey <tromey@redhat.com>
11138
11139 * target.h (target_static_tracepoint_markers_by_strid): Add
11140 argument.
11141 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11142 'self' argument.
11143 * target.c (update_current_target): Update.
11144 * remote.c (struct target_ops)
11145 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11146 * linux-nat.c (struct target_ops)
11147 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11148
11149 2014-02-19 Tom Tromey <tromey@redhat.com>
11150
11151 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11152 Add argument.
11153 (target_static_tracepoint_marker_at): Add argument.
11154 * target.c (update_current_target): Update.
11155 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11156 argument.
11157
11158 2014-02-19 Tom Tromey <tromey@redhat.com>
11159
11160 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11161 (target_set_permissions): Add argument.
11162 * target.c (update_current_target): Update.
11163 * remote.c (remote_set_permissions): Add 'self' argument.
11164 (remote_start_remote): Update.
11165
11166 2014-02-19 Tom Tromey <tromey@redhat.com>
11167
11168 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11169 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11170 (target_get_tib_address): Add argument.
11171 * target.c (update_current_target): Update.
11172 * remote.c (remote_get_tib_address): Add 'self' argument.
11173
11174 2014-02-19 Tom Tromey <tromey@redhat.com>
11175
11176 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11177 (target_set_trace_notes): Add argument.
11178 * target.c (update_current_target): Update.
11179 * remote.c (remote_set_trace_notes): Add 'self' argument.
11180
11181 2014-02-19 Tom Tromey <tromey@redhat.com>
11182
11183 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11184 argument.
11185 (target_set_trace_buffer_size): Add argument.
11186 * target.c (update_current_target): Update.
11187 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11188
11189 2014-02-19 Tom Tromey <tromey@redhat.com>
11190
11191 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11192 argument.
11193 (target_set_circular_trace_buffer): Add argument.
11194 * target.c (update_current_target): Update.
11195 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11196 argument.
11197
11198 2014-02-19 Tom Tromey <tromey@redhat.com>
11199
11200 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11201 argument.
11202 (target_set_disconnected_tracing): Add argument.
11203 * target.c (update_current_target): Update.
11204 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11205
11206 2014-02-19 Tom Tromey <tromey@redhat.com>
11207
11208 * target.h (struct target_ops)
11209 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11210 (target_get_min_fast_tracepoint_insn_len): Add argument.
11211 * target.c (update_current_target): Update.
11212 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11213 argument.
11214
11215 2014-02-19 Tom Tromey <tromey@redhat.com>
11216
11217 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11218 argument.
11219 (target_get_raw_trace_data): Add argument.
11220 * target.c (update_current_target): Update.
11221 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11222
11223 2014-02-19 Tom Tromey <tromey@redhat.com>
11224
11225 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11226 Add argument.
11227 (target_upload_trace_state_variables): Add argument.
11228 * target.c (update_current_target): Update.
11229 * remote.c (remote_upload_trace_state_variables): Add 'self'
11230 argument.
11231 (remote_start_remote): Update.
11232
11233 2014-02-19 Tom Tromey <tromey@redhat.com>
11234
11235 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11236 argument.
11237 (target_upload_tracepoints): Add argument.
11238 * target.c (update_current_target): Update.
11239 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11240 (remote_start_remote): Update.
11241
11242 2014-02-19 Tom Tromey <tromey@redhat.com>
11243
11244 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11245 (target_save_trace_data): Add argument.
11246 * target.c (update_current_target): Update.
11247 * remote.c (remote_save_trace_data): Add 'self' argument.
11248
11249 2014-02-19 Tom Tromey <tromey@redhat.com>
11250
11251 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11252 argument.
11253 * target.h (struct target_ops)
11254 <to_get_trace_state_variable_value>: Add argument.
11255 (target_get_trace_state_variable_value): Add argument.
11256 * target.c (update_current_target): Update.
11257 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11258 argument.
11259 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11260
11261 2014-02-19 Tom Tromey <tromey@redhat.com>
11262
11263 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11264 * target.h (struct target_ops) <to_trace_find>: Add argument.
11265 (target_trace_find): Add argument.
11266 * target.c (update_current_target): Update.
11267 * remote.c (remote_trace_find): Add 'self' argument.
11268 * ctf.c (ctf_trace_find): Add 'self' argument.
11269
11270 2014-02-19 Tom Tromey <tromey@redhat.com>
11271
11272 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11273 (target_trace_stop): Add argument.
11274 * target.c (update_current_target): Update.
11275 * remote.c (remote_trace_stop): Add 'self' argument.
11276
11277 2014-02-19 Tom Tromey <tromey@redhat.com>
11278
11279 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11280 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11281 argument.
11282 (target_get_tracepoint_status): Add argument.
11283 * target.c (update_current_target): Update.
11284 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11285
11286 2014-02-19 Tom Tromey <tromey@redhat.com>
11287
11288 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11289 * target.h (struct target_ops) <to_get_trace_status>: Add
11290 argument.
11291 (target_get_trace_status): Add argument.
11292 * target.c (update_current_target): Update.
11293 * remote.c (remote_get_trace_status): Add 'self' argument.
11294 (remote_start_remote, remote_can_download_tracepoint): Update.
11295 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11296
11297 2014-02-19 Tom Tromey <tromey@redhat.com>
11298
11299 * target.h (struct target_ops) <to_trace_start>: Add argument.
11300 (target_trace_start): Add argument.
11301 * target.c (update_current_target): Update.
11302 * remote.c (remote_trace_start): Add 'self' argument.
11303
11304 2014-02-19 Tom Tromey <tromey@redhat.com>
11305
11306 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11307 Add argument.
11308 (target_trace_set_readonly_regions): Add argument.
11309 * target.c (update_current_target): Update.
11310 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11311 argument.
11312
11313 2014-02-19 Tom Tromey <tromey@redhat.com>
11314
11315 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11316 argument.
11317 (target_disable_tracepoint): Add argument.
11318 * target.c (update_current_target): Update.
11319 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11320
11321 2014-02-19 Tom Tromey <tromey@redhat.com>
11322
11323 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11324 argument.
11325 (target_enable_tracepoint): Add argument.
11326 * target.c (update_current_target): Update.
11327 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11328
11329 2014-02-19 Tom Tromey <tromey@redhat.com>
11330
11331 * target.h (struct target_ops) <to_download_trace_state_variable>:
11332 Add argument.
11333 (target_download_trace_state_variable): Add argument.
11334 * target.c (update_current_target): Update.
11335 * remote.c (remote_download_trace_state_variable): Add 'self'
11336 argument.
11337
11338 2014-02-19 Tom Tromey <tromey@redhat.com>
11339
11340 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11341 argument.
11342 (target_can_download_tracepoint): Add argument.
11343 * target.c (update_current_target): Update.
11344 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11345
11346 2014-02-19 Tom Tromey <tromey@redhat.com>
11347
11348 * target.h (struct target_ops) <to_download_tracepoint>: Add
11349 argument.
11350 (target_download_tracepoint): Add argument.
11351 * target.c (update_current_target): Update.
11352 * remote.c (remote_download_tracepoint): Add 'self' argument.
11353
11354 2014-02-19 Tom Tromey <tromey@redhat.com>
11355
11356 * target.h (struct target_ops) <to_trace_init>: Add argument.
11357 (target_trace_init): Add argument.
11358 * target.c (update_current_target): Update.
11359 * remote.c (remote_trace_init): Add 'self' argument.
11360
11361 2014-02-19 Tom Tromey <tromey@redhat.com>
11362
11363 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11364 * target.c (target_fileio_readlink): Add argument.
11365 * remote.c (remote_hostio_readlink): Add 'self' argument.
11366 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11367
11368 2014-02-19 Tom Tromey <tromey@redhat.com>
11369
11370 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11371 * target.c (target_fileio_unlink): Add argument.
11372 * remote.c (remote_hostio_unlink): Add 'self' argument.
11373 (remote_file_delete): Update.
11374 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11375
11376 2014-02-19 Tom Tromey <tromey@redhat.com>
11377
11378 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11379 * target.c (target_fileio_close): Add argument.
11380 * remote.c (remote_hostio_close): Add 'self' argument.
11381 (remote_hostio_close_cleanup): Update.
11382 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11383 Update.
11384 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11385
11386 2014-02-19 Tom Tromey <tromey@redhat.com>
11387
11388 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11389 * target.c (target_fileio_pread): Add argument.
11390 * remote.c (remote_hostio_pread): Add 'self' argument.
11391 (remote_bfd_iovec_pread, remote_file_get): Update.
11392 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11393
11394 2014-02-19 Tom Tromey <tromey@redhat.com>
11395
11396 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11397 * target.c (target_fileio_pwrite): Add argument.
11398 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11399 (remote_file_put): Update.
11400 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11401
11402 2014-02-19 Tom Tromey <tromey@redhat.com>
11403
11404 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11405 * target.c (target_fileio_open): Add argument.
11406 * remote.c (remote_hostio_open): Add 'self' argument.
11407 (remote_bfd_iovec_open): Add 'self' argument.
11408 (remote_file_put): Add 'self' argument.
11409 (remote_file_get): Add 'self' argument.
11410 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11411
11412 2014-02-19 Tom Tromey <tromey@redhat.com>
11413
11414 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11415 Add argument.
11416 (target_can_run_breakpoint_commands): Add argument.
11417 * target.c (update_current_target): Update.
11418 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11419 argument.
11420 (remote_insert_breakpoint): Add 'self' argument.
11421 (remote_insert_hw_breakpoint): Add 'self' argument.
11422 (remote_can_run_breakpoint_commands): Add 'self' argument.
11423
11424 2014-02-19 Tom Tromey <tromey@redhat.com>
11425
11426 * target.h (struct target_ops)
11427 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11428 (target_supports_evaluation_of_breakpoint_conditions): Add
11429 argument.
11430 * target.c (update_current_target): Update.
11431 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11432 argument.
11433 (remote_insert_breakpoint): Add 'self' argument.
11434 (remote_insert_hw_breakpoint): Add 'self' argument.
11435 (remote_supports_cond_breakpoints): Add 'self' argument.
11436
11437 2014-02-19 Tom Tromey <tromey@redhat.com>
11438
11439 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11440 argument.
11441 (target_supports_string_tracing): Add argument.
11442 * target.c (update_current_target): Update.
11443 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11444
11445 2014-02-19 Tom Tromey <tromey@redhat.com>
11446
11447 * target.h (struct target_ops)
11448 <to_supports_disable_randomization>: Add argument.
11449 * target.c (find_default_supports_disable_randomization): Add
11450 argument.
11451 (target_supports_disable_randomization): Add argument.
11452 (find_default_supports_disable_randomization): Add 'self'
11453 argument.
11454 * remote.c (extended_remote_supports_disable_randomization): Add
11455 'self' argument.
11456 (remote_supports_disable_randomization): Add 'self' argument.
11457 (extended_remote_create_inferior): Update.
11458 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11459 'self' argument.
11460
11461 2014-02-19 Tom Tromey <tromey@redhat.com>
11462
11463 * target.h (struct target_ops)
11464 <to_supports_enable_disable_tracepoint>: Add argument.
11465 (target_supports_enable_disable_tracepoint): Add argument.
11466 * target.c (update_current_target): Update.
11467 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11468 argument.
11469
11470 2014-02-19 Tom Tromey <tromey@redhat.com>
11471
11472 * target.h (struct target_ops) <to_supports_multi_process>: Add
11473 argument.
11474 (target_supports_multi_process): Add argument.
11475 * target.c (update_current_target): Update.
11476 * remote.c (remote_supports_multi_process): Add 'self' argument.
11477 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11478 argument.
11479 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11480 argument.
11481
11482 2014-02-19 Tom Tromey <tromey@redhat.com>
11483
11484 * target.h (struct target_ops) <to_execution_direction>: Add
11485 argument.
11486 (target_execution_direction): Add argument.
11487 * target.c (default_execution_direction): Add 'self' argument.
11488 * record-full.c (record_full_execution_direction): Add 'self'
11489 argument.
11490
11491 2014-02-19 Tom Tromey <tromey@redhat.com>
11492
11493 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11494 argument.
11495 (target_can_execute_reverse): Add argument.
11496 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11497 * record-full.c (record_full_can_execute_reverse): Add 'self'
11498 argument.
11499 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11500 argument.
11501
11502 2014-02-19 Tom Tromey <tromey@redhat.com>
11503
11504 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11505 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11506 argument.
11507 (target_get_ada_task_ptid): Add argument.
11508 * target.c (update_current_target): Update.
11509 (default_get_ada_task_ptid): Add 'self' argument.
11510 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11511 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11512 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11513 argument.
11514 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11515 argument.
11516 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11517 argument.
11518 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11519 argument.
11520 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11521 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11522 argument.
11523
11524 2014-02-19 Tom Tromey <tromey@redhat.com>
11525
11526 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11527 (target_goto_bookmark): Add argument.
11528 * target.c (dummy_goto_bookmark): Add 'self' argument.
11529 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11530
11531 2014-02-19 Tom Tromey <tromey@redhat.com>
11532
11533 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11534 (target_get_bookmark): Add argument.
11535 * target.c (dummy_get_bookmark): Add 'self' argument.
11536 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11537
11538 2014-02-19 Tom Tromey <tromey@redhat.com>
11539
11540 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11541 argument.
11542 (target_make_corefile_notes): Add argument.
11543 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11544 * procfs.c (procfs_make_note_section): Add 'self' argument.
11545 (procfs_make_note_section): Add 'self' argument.
11546 (procfs_make_note_section): Add 'self' argument.
11547 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11548 argument.
11549 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11550 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11551 * exec.c (exec_make_note_section): Add 'self' argument.
11552 (exec_make_note_section): Add 'self' argument.
11553
11554 2014-02-19 Tom Tromey <tromey@redhat.com>
11555
11556 * target.h (struct target_ops) <to_find_memory_regions>: Add
11557 argument.
11558 (target_find_memory_regions): Add argument.
11559 * target.c (dummy_find_memory_regions): Add 'self' argument.
11560 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11561 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11562 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11563 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11564 * exec. (exec_do_find_memory_regions): New global.
11565 (exec_set_find_memory_regions): Rewrite.
11566 (exec_find_memory_regions): New function.
11567 (init_exec_ops): Use exec_find_memory_regions.
11568
11569 2014-02-19 Tom Tromey <tromey@redhat.com>
11570
11571 * target.h (struct target_ops) <to_supports_non_stop>: Add
11572 argument.
11573 * target.c (find_default_supports_non_stop): Add argument.
11574 (target_supports_non_stop): Add argument.
11575 (find_default_supports_non_stop): Add 'self' argument.
11576 * remote.c (remote_supports_non_stop): Add 'self' argument.
11577 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11578
11579 2014-02-19 Tom Tromey <tromey@redhat.com>
11580
11581 * target.h (struct target_ops) <to_log_command>: Add argument.
11582 (target_log_command): Add argument.
11583 * serial.h (serial_log_command): Add 'self' argument.
11584 * serial.c (serial_log_command): Add 'self' argument.
11585
11586 2014-02-19 Tom Tromey <tromey@redhat.com>
11587
11588 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11589 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11590 argument.
11591 (target_pid_to_exec_file): Add argument.
11592 * target.c (debug_to_pid_to_exec_file): Add argument.
11593 (update_current_target): Update.
11594 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11595 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11596 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11597 (linux_handle_extended_wait): Update.
11598 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11599 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11600 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11601 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11602
11603 2014-02-19 Tom Tromey <tromey@redhat.com>
11604
11605 * target.h (struct target_ops) <to_rcmd>: Add argument.
11606 (target_rcmd): Add argument.
11607 * target.c (debug_to_rcmd): Add argument.
11608 (update_current_target, do_monitor_command): Update.
11609 * remote.c (remote_rcmd): Add 'self' argument.
11610 * monitor.c (monitor_rcmd): Add 'self' argument.
11611
11612 2014-02-19 Tom Tromey <tromey@redhat.com>
11613
11614 * windows-nat.c (windows_stop): Add 'self' argument.
11615 * target.h (struct target_ops) <to_stop>: Add argument.
11616 * target.c (target_stop): Add argument.
11617 (debug_to_stop): Add argument.
11618 (update_current_target): Update.
11619 * remote.c (remote_stop): Add 'self' argument.
11620 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11621 (gdbsim_cntrl_c): Update.
11622 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11623 * procfs.c (procfs_stop): Add 'self' argument.
11624 * nto-procfs.c (procfs_stop): Add 'self' argument.
11625 * monitor.c (monitor_stop): Add 'self' argument.
11626 (monitor_open): Update.
11627 * linux-nat.c (linux_nat_stop): Add argument.
11628 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11629 * gnu-nat.c (gnu_stop): Add 'self' argument.
11630 * darwin-nat.c (darwin_stop): Add 'self' argument.
11631
11632 2014-02-19 Tom Tromey <tromey@redhat.com>
11633
11634 * target.h (struct target_ops) <to_thread_name>: Add argument.
11635 * target.c (target_thread_name): Add argument.
11636 (update_current_target): Update.
11637 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11638
11639 2014-02-19 Tom Tromey <tromey@redhat.com>
11640
11641 * target.h (struct target_ops) <to_extra_thread_info>: Add
11642 argument.
11643 (target_extra_thread_info): Add argument.
11644 * target.c (update_current_target): Update.
11645 * remote.c (remote_threads_extra_info): Add 'self' argument.
11646 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11647 argument.
11648 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11649 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11650 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11651 argument.
11652 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11653 argument.
11654 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11655 argument.
11656 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11657 argument.
11658
11659 2014-02-19 Tom Tromey <tromey@redhat.com>
11660
11661 * target.h (struct target_ops) <to_program_signals>: Add argument.
11662 * target.c (target_program_signals): Add argument.
11663 * remote.c (remote_program_signals): Add 'self' argument.
11664
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11666
11667 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11668 * target.c (target_pass_signals): Add argument.
11669 * remote.c (remote_pass_signals): Add 'self' argument.
11670 (remote_start_remote): Update.
11671 * procfs.c (procfs_pass_signals): Add 'self' argument.
11672 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11673 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11674 (linux_nat_create_inferior, linux_nat_attach): Update.
11675
11676 2014-02-19 Tom Tromey <tromey@redhat.com>
11677
11678 * windows-nat.c (windows_can_run): Add 'self' argument.
11679 * target.h (struct target_ops) <to_can_run>: Add argument.
11680 (target_can_run): Add argument.
11681 * target.c (debug_to_can_run): Add argument.
11682 (update_current_target): Update.
11683 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11684 * inf-child.c (inf_child_can_run): Add 'self' argument.
11685 * go32-nat.c (go32_can_run): Add 'self' argument.
11686
11687 2014-02-19 Tom Tromey <tromey@redhat.com>
11688
11689 * target.h (struct target_ops) <to_has_exited>: Add argument.
11690 (target_has_exited): Add argument.
11691 * target.c (debug_to_has_exited): Add argument.
11692 (update_current_target): Update.
11693
11694 2014-02-19 Tom Tromey <tromey@redhat.com>
11695
11696 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11697 argument.
11698 (target_set_syscall_catchpoint): Add argument.
11699 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11700 argument.
11701 * target.c (update_current_target): Update.
11702
11703 2014-02-19 Tom Tromey <tromey@redhat.com>
11704
11705 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11706 argument.
11707 (target_remove_exec_catchpoint): Add argument.
11708 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11709 (update_current_target): Update.
11710 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11711 argument.
11712
11713 2014-02-19 Tom Tromey <tromey@redhat.com>
11714
11715 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11716 argument.
11717 (target_insert_exec_catchpoint): Add argument.
11718 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11719 (update_current_target): Update.
11720 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11721 argument.
11722
11723 2014-02-19 Tom Tromey <tromey@redhat.com>
11724
11725 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11726 argument.
11727 (target_remove_vfork_catchpoint): Add argument.
11728 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11729 (update_current_target): Update.
11730 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11731 argument.
11732
11733 2014-02-19 Tom Tromey <tromey@redhat.com>
11734
11735 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11736 argument.
11737 (target_insert_vfork_catchpoint): Add argument.
11738 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11739 (update_current_target): Update.
11740 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11741 argument.
11742
11743 2014-02-19 Tom Tromey <tromey@redhat.com>
11744
11745 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11746 argument.
11747 (target_remove_fork_catchpoint): Add argument.
11748 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11749 (update_current_target): Update.
11750 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11751 argument.
11752
11753 2014-02-19 Tom Tromey <tromey@redhat.com>
11754
11755 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11756 argument.
11757 (target_insert_fork_catchpoint): Add argument.
11758 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11759 (update_current_target): Update.
11760 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11761 argument.
11762
11763 2014-02-19 Tom Tromey <tromey@redhat.com>
11764
11765 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11766 argument.
11767 (target_post_startup_inferior): Add argument.
11768 * target.c (debug_to_post_startup_inferior): Add argument.
11769 (update_current_target): Update.
11770 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11771 argument.
11772 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11773 argument.
11774 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11775 argument.
11776 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11777 argument.
11778 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11779 'self' argument.
11780 (super_post_startup_inferior): Likewise.
11781 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11782 'self' argument.
11783 (super_post_startup_inferior): Likewise.
11784 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11785 Add 'self' argument.
11786 (super_post_startup_inferior): Likewise.
11787
11788 2014-02-19 Tom Tromey <tromey@redhat.com>
11789
11790 * target.h (struct target_ops) <to_load>: Add argument.
11791 * target.c (target_load): Add argument.
11792 (debug_to_load): Add argument.
11793 (update_current_target): Update.
11794 * remote.c (remote_load): Add 'self' argument.
11795 * remote-sim.c (gdbsim_load): Add 'self' argument.
11796 * remote-mips.c (mips_load): Add 'self' argument.
11797 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11798 * monitor.c (monitor_load): Add 'self' argument.
11799 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11800
11801 2014-02-19 Tom Tromey <tromey@redhat.com>
11802
11803 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11804 (target_terminal_info): Add argument.
11805 * target.c (debug_to_terminal_info): Add argument.
11806 (default_terminal_info): Likewise.
11807 * inflow.c (child_terminal_info): Add 'self' argument.
11808 * inferior.h (child_terminal_info): Add 'self' argument.
11809 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11810
11811 2014-02-19 Tom Tromey <tromey@redhat.com>
11812
11813 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11814 argument.
11815 (target_terminal_save_ours): Add argument.
11816 * target.c (debug_to_terminal_save_ours): Add argument.
11817 (update_current_target): Update.
11818 * inflow.c (terminal_save_ours): Add 'self' argument.
11819 * inferior.h (terminal_save_ours): Add 'self' argument.
11820
11821 2014-02-19 Tom Tromey <tromey@redhat.com>
11822
11823 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11824 (target_terminal_ours): Add argument.
11825 * target.c (debug_to_terminal_ours): Add argument.
11826 (update_current_target): Update.
11827 * remote.c (remote_terminal_ours): Add 'self' argument.
11828 (remote_close): Update.
11829 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11830 * inflow.c (terminal_ours): Add 'self' argument.
11831 * inferior.h (terminal_ours): Add 'self' argument.
11832 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11833
11834 2014-02-19 Pedro Alves <palves@redhat.com>
11835 Tom Tromey <tromey@redhat.com>
11836
11837 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11838 argument.
11839 (target_terminal_ours_for_output): Add argument.
11840 * target.c (debug_to_terminal_ours_for_output): Add argument.
11841 (update_current_target): Update.
11842 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11843 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11844 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11845
11846 2014-02-19 Tom Tromey <tromey@redhat.com>
11847
11848 * target.h (struct target_ops) <to_terminal_inferior>: Add
11849 argument.
11850 * target.c (target_terminal_inferior): Add argument.
11851 (update_current_target): Update.
11852 * remote.c (remote_terminal_inferior): Add 'self' argument.
11853 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11854 * inflow.c (terminal_inferior): Add 'self' argument.
11855 * inferior.h (terminal_inferior): Add 'self' argument.
11856 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11857 (go32_terminal_inferior): Add 'self' argument.
11858
11859 2014-02-19 Tom Tromey <tromey@redhat.com>
11860
11861 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11862 (target_terminal_init): Add argument.
11863 * target.c (debug_to_terminal_init): Add argument.
11864 (update_current_target): Update.
11865 * inflow.c (terminal_init_inferior): Add 'self' argument.
11866 * inferior.h (terminal_init_inferior): Add 'self' argument.
11867 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11868 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11869
11870 2014-02-19 Tom Tromey <tromey@redhat.com>
11871
11872 * target.h (struct target_ops)
11873 <to_can_accel_watchpoint_condition>: Add argument.
11874 (target_can_accel_watchpoint_condition): Add argument.
11875 * target.c (debug_to_can_accel_watchpoint_condition): Add
11876 argument.
11877 (update_current_target): Update.
11878 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11879 'self' argument.
11880
11881 2014-02-19 Tom Tromey <tromey@redhat.com>
11882
11883 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11884 Add argument.
11885 (target_region_ok_for_hw_watchpoint): Add argument.
11886 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11887 (default_region_ok_for_hw_watchpoint): Add argument.
11888 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11889 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11890 argument.
11891 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11892 argument.
11893 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11894 argument.
11895 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11896 'self' argument.
11897 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11898 'self' argument.
11899 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11900 'self' argument.
11901 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11902 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11903 'self' argument.
11904 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11905 Add 'self' argument.
11906
11907 2014-02-19 Tom Tromey <tromey@redhat.com>
11908
11909 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11910 argument.
11911 (target_insert_watchpoint): Add argument.
11912 * target.c (debug_to_insert_watchpoint): Add argument.
11913 (update_current_target): Update.
11914 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11915 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11916 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11917 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11918 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11919 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11920 argument.
11921 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11922 (procfs_insert_hw_watchpoint): Add 'self' argument.
11923 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11924 argument.
11925 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11926 argument.
11927 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11928 argument.
11929 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11930 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11931 argument.
11932 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11933 'self' argument.
11934
11935 2014-02-19 Tom Tromey <tromey@redhat.com>
11936
11937 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11938 argument.
11939 (target_remove_watchpoint): Add argument.
11940 * target.c (debug_to_remove_watchpoint): Add argument.
11941 (update_current_target): Update.
11942 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11943 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11944 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11945 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11946 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11947 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11948 argument.
11949 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11950 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11951 argument.
11952 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11953 argument.
11954 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11955 argument.
11956 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11957 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11958 argument.
11959 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11960 'self' argument.
11961
11962 2014-02-19 Tom Tromey <tromey@redhat.com>
11963
11964 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11965 argument.
11966 (target_remove_hw_breakpoint): Add argument.
11967 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11968 (update_current_target): Update.
11969 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11970 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11971 argument.
11972 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11973 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11974 argument.
11975 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11976 'self' argument.
11977
11978 2014-02-19 Tom Tromey <tromey@redhat.com>
11979
11980 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11981 argument.
11982 (target_insert_hw_breakpoint): Add argument.
11983 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11984 (update_current_target): Update.
11985 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11986 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11987 argument.
11988 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11989 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11990 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11991 argument.
11992 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11993 'self' argument.
11994
11995 2014-02-19 Tom Tromey <tromey@redhat.com>
11996
11997 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11998 argument.
11999 (target_can_use_hardware_watchpoint): Add argument.
12000 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12001 (update_current_target): Update.
12002 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12003 argument.
12004 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12005 argument.
12006 * remote.c (remote_check_watch_resources): Add 'self' argument.
12007 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12008 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12009 argument.
12010 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12011 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12012 argument.
12013 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12014 argument.
12015 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12016 argument.
12017 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12018 argument.
12019 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12020 argument.
12021 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12022 argument.
12023 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12024 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12025 argument.
12026 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12027 'self' argument.
12028
12029 2014-02-19 Tom Tromey <tromey@redhat.com>
12030
12031 * target.h (struct target_ops) <to_post_attach>: Add argument.
12032 (target_post_attach): Add argument.
12033 * target.c (debug_to_post_attach): Add argument.
12034 (update_current_target): Update.
12035 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12036 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12037 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12038 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12039 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12040
12041 2014-02-19 Tom Tromey <tromey@redhat.com>
12042
12043 * windows-nat.c (windows_close): Add 'self' argument.
12044 * tracepoint.c (tfile_close): Add 'self' argument.
12045 * target.h (struct target_ops) <to_close>: Add argument.
12046 * target.c (target_close): Add argument.
12047 (update_current_target): Update.
12048 * remote.c (remote_close): Add 'self' argument.
12049 * remote-sim.c (gdbsim_close): Add 'self' argument.
12050 * remote-mips.c (mips_close): Add 'self' argument.
12051 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12052 * record-full.c (record_full_close): Add 'self' argument.
12053 * record-btrace.c (record_btrace_close): Add 'self' argument.
12054 * monitor.h (monitor_close): Add 'self' argument.
12055 * monitor.c (monitor_close): Add 'self' argument.
12056 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12057 * linux-nat.c (linux_nat_close): Add argument.
12058 * go32-nat.c (go32_close): Add 'self' argument.
12059 * exec.c (exec_close_1): Add 'self' argument.
12060 * ctf.c (ctf_close): Add 'self' argument.
12061 * corelow.c (core_close): Add 'self' argument.
12062 (core_close_cleanup): Update.
12063 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12064 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12065
12066 2014-02-19 Tom Tromey <tromey@redhat.com>
12067
12068 * remote.c (remote_load): New function.
12069 (init_remote_ops): Use it.
12070
12071 2014-02-19 Tom Tromey <tromey@redhat.com>
12072
12073 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12074 argument.
12075 * common/linux-btrace.h (linux_supports_btrace): Update.
12076 * remote.c (remote_supports_btrace): Add "self" argument.
12077 * target-delegates.c: Rebuild.
12078 * target.c (target_supports_btrace): Remove.
12079 * target.h (struct target_ops) <to_supports_btrace>: Add
12080 target_ops argument.
12081 (target_supports_btrace): New define.
12082
12083 2014-02-19 Tom Tromey <tromey@redhat.com>
12084
12085 * record-full.c (record_full_beneath_to_resume_ops)
12086 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12087 (record_full_beneath_to_wait)
12088 (record_full_beneath_to_store_registers_ops)
12089 (record_full_beneath_to_store_registers)
12090 (record_full_beneath_to_xfer_partial_ops)
12091 (record_full_beneath_to_xfer_partial)
12092 (record_full_beneath_to_insert_breakpoint_ops)
12093 (record_full_beneath_to_insert_breakpoint)
12094 (record_full_beneath_to_remove_breakpoint_ops)
12095 (record_full_beneath_to_remove_breakpoint)
12096 (record_full_beneath_to_stopped_by_watchpoint)
12097 (record_full_beneath_to_stopped_data_address)
12098 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12099 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12100 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12101 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12102 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12103 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12104 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12105 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12106 (record_full_resume, record_full_wait_1)
12107 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12108 (record_full_store_registers, record_full_xfer_partial)
12109 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12110 (record_full_async, record_full_core_xfer_partial): Use target
12111 delegation.
12112 * target-delegates.c: Rebuild.
12113 * target.c (current_xfer_partial): Remove.
12114 (update_current_target): Do not INHERIT or de_fault
12115 to_insert_breakpoint, to_remove_breakpoint,
12116 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12117 to_is_async_p, to_async. Do not set to_xfer_partial field.
12118 (default_xfer_partial): Simplify.
12119 (current_xfer_partial): Remove.
12120 (target_wait, target_resume): Simplify.
12121 (find_default_can_async_p, find_default_is_async_p): Update.
12122 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12123 to_xfer_partial, to_stopped_by_watchpoint,
12124 to_stopped_data_address.
12125 (target_store_registers): Simplify.
12126 (forward_target_remove_breakpoint)
12127 (forward_target_insert_breakpoint): Remove.
12128 (target_remove_breakpoint, target_insert_breakpoint)
12129 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12130 * target.h (struct target_ops) <to_resume, to_wait,
12131 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12132 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12133 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12134 markup.
12135 (forward_target_remove_breakpoint)
12136 (forward_target_insert_breakpoint): Remove.
12137 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12138 directly.
12139 (record_btrace_insert_breakpoint): Delegate directly.
12140
12141 2014-02-19 Tom Tromey <tromey@redhat.com>
12142
12143 PR build/7701:
12144 * target-delegates.c: New file.
12145 * target.c: Include target-delegates.c.
12146 (init_dummy_target): Call install_dummy_methods.
12147 (complete_target_initialization): Call install_delegators.
12148 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12149 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12150 * make-target-delegates: New file.
12151
12152 2014-02-19 Tom Tromey <tromey@redhat.com>
12153
12154 * record.c (find_record_target): Use find_target_at.
12155 * target.c (find_target_at): New function.
12156 * target.h (find_target_at): Declare.
12157
12158 2014-02-19 Tom Tromey <tromey@redhat.com>
12159
12160 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12161 Add 'ops' argument.
12162 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12163 'ops' argument.
12164 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12165 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12166 'ops' argument.
12167 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12168 argument.
12169 * linux-nat.c (save_sigtrap): Update.
12170 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12171 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12172 (linux_nat_close): Update.
12173 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12174 argument.
12175 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12176 argument.
12177 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12178 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12179 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12180 (tmp_to_async): Add 'ops' argument.
12181 (record_full_stopped_by_watchpoint, record_full_async)
12182 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12183 argument.
12184 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12185 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12186 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12187 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12188 (remote_is_async_p, remote_async): Add 'ops' argument.
12189 (remote_stopped_data_address): Update.
12190 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12191 * target.c (update_current_target)
12192 (find_default_can_async_p, find_default_is_async_p): Update.
12193 (init_dummy_target): Update.
12194 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12195 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12196 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12197 (target_can_async_p, target_is_async_p, target_async)
12198 (target_stopped_by_watchpoint): Update.
12199
12200 2014-02-19 Yao Qi <yao@codesourcery.com>
12201
12202 PR gdb/16220
12203 * gdbarch.sh: Remove startup_gdbarch.
12204 * gdbarch.c: Regenerated.
12205 * gdbarch.h: Likewise.
12206
12207 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12208
12209 * rl78-tdep.c (rl78_g10_register_name): New function.
12210 (rl78_return_value): Add g10 support.
12211 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12212 g10.
12213
12214 2014-02-17 Doug Evans <xdje42@gmail.com>
12215
12216 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12217 (SUBDIR_GUILE_SRCS): Ditto.
12218 (scm-gsmob.o): Ditto.
12219
12220 2014-02-17 Yao Qi <yao@codesourcery.com>
12221
12222 * gnu-nat.c (ILL_RPC): Declare defined function.
12223
12224 2014-02-17 Yao Qi <yao@codesourcery.com>
12225
12226 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12227 mach_msg_type_number_t.
12228 (gnu_write_inferior): Likewise.
12229
12230 2014-02-17 Yao Qi <yao@codesourcery.com>
12231
12232 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12233 in format string.
12234 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12235 (inf_validate_procs, inf_signal): Likewise.
12236 (S_exception_raise_request): Likewise.
12237 (do_mach_notify_dead_name): Likewise.
12238 (steal_exc_port): Likewise.
12239 (gnu_read_inferior): Change 'copy_count''s type to
12240 mach_msg_type_number_t.
12241 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12242 format string.
12243
12244 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12245
12246 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12247 flag. Adjust all users; in particular...
12248 (gnu_wait): ..., don't decrement its value in here...
12249 (gnu_create_inferior): ..., and instead set the flag in here,
12250 around the startup_inferior call, and call that one with
12251 START_INFERIOR_TRAPS_EXPECTED.
12252
12253 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12254 (ILL_RPC): ... new macro.
12255 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12256 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12257 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12258 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12259 functions with ILL_RPC macro.
12260 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12261 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12262 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12263 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12264 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12265 (S_proc_getlogin_reply, S_proc_getsid_reply)
12266 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12267 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12268 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12269 (S_proc_getnports_reply, S_proc_is_important_reply)
12270 (S_proc_get_code_reply): New stub functions, generated with
12271 ILL_RPC macro.
12272
12273 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12274 collected the type check structures.
12275
12276 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12277
12278 2014-02-14 Doug Evans <dje@google.com>
12279
12280 * target.c (target_write_partial): Fix result type.
12281
12282 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12283
12284 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12285 the proper offsets to access fpregset_t.
12286
12287 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12288
12289 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12290 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12291 * h8300-tdep.c (setmachinelist): Remove global.
12292 * hppa-tdep.c (hppa_sigtramp): Remove global.
12293 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12294 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12295 * ravenscar-thread.c (update_target_observer): Remove global.
12296 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12297
12298 2014-02-12 Tom Tromey <tromey@redhat.com>
12299
12300 * common/rsp-low.c: Update comments.
12301 * common/rsp-low.h: Update comments.
12302
12303 2014-02-12 Tom Tromey <tromey@redhat.com>
12304
12305 * common/rsp-low.c (convert_ascii_to_int): Remove.
12306 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12307
12308 2014-02-12 Tom Tromey <tromey@redhat.com>
12309
12310 * common/rsp-low.h (unhexify): Don't declare.
12311 * common/rsp-low.c (unhexify): Remove.
12312
12313 2014-02-12 Tom Tromey <tromey@redhat.com>
12314
12315 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12316 * common/rsp-low.c (convert_int_to_ascii): Remove.
12317
12318 2014-02-12 Tom Tromey <tromey@redhat.com>
12319
12320 * common/rsp-low.h (hexify): Don't declare.
12321 * common/rsp-low.c (hexify): Remove.
12322
12323 2014-02-12 Tom Tromey <tromey@redhat.com>
12324
12325 * common/rsp-low.c (hexify): Never take strlen of argument.
12326
12327 2014-02-12 Tom Tromey <tromey@redhat.com>
12328
12329 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12330 * remote.c (extended_remote_run, remote_rcmd)
12331 (remote_download_trace_state_variable, remote_save_trace_data)
12332 (remote_set_trace_notes): Update.
12333 * tracepoint.c (encode_source_string, tfile_write_status)
12334 (tfile_write_uploaded_tsv): Update.
12335
12336 2014-02-12 Tom Tromey <tromey@redhat.com>
12337
12338 * tracepoint.c: Include rsp-low.h.
12339 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12340 * remote.c: Include rsp-low.h.
12341 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12342 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12343 (remote_unescape_input): Move to common/rsp-low.c.
12344 * common/rsp-low.h: New file.
12345 * common/rsp-low.c: New file.
12346 * Makefile.in (SFILES): Add common/rsp-low.c.
12347 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12348 (COMMON_OBS): Add rsp-low.o.
12349 (rsp-low.o): New target.
12350
12351 2014-02-12 Tom Tromey <tromey@redhat.com>
12352
12353 * utils.h: Include print-utils.h.
12354 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12355 (int_string, core_addr_to_string, core_addr_to_string_nz)
12356 (hex_string, hex_string_custom): Don't declare.
12357 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12358 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12359 (hex_string_custom, int_string, core_addr_to_string)
12360 (core_addr_to_string_nz, host_address_to_string): Move to
12361 common/print-utils.c.
12362 * common/print-utils.h: New file.
12363 * common/print-utils.c: New file
12364 * Makefile.in (SFILES): Add common/print-utils.c.
12365 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12366 (COMMON_OBS): Add print-utils.o.
12367 (print-utils.o): New target.
12368
12369 2014-02-12 Tom Tromey <tromey@redhat.com>
12370
12371 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12372
12373 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12374
12375 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12376
12377 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12378
12379 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12380 if a PT_IO ptrace request returns sucessfully but indicates that 0
12381 bytes were transferred.
12382
12383 2014-02-12 Pedro Alves <palves@redhat.com>
12384 Kevin Buettner <kevinb@redhat.com>
12385
12386 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12387 TYPE_INSTANCE_FLAG_CODE_SPACE.
12388
12389 2014-02-12 Pedro Alves <palves@redhat.com>
12390
12391 * h8300-tdep.c (pseudo_from_raw_register)
12392 (raw_from_pseudo_register): New functions.
12393 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12394 them.
12395
12396 2014-02-12 Pedro Alves <palves@redhat.com>
12397
12398 * h8300-tdep.c (h8300_register_sim_regno): New function.
12399 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12400 gdbarch_register_sim_regno hook.
12401
12402 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12403
12404 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12405
12406 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12407
12408 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12409
12410 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12411
12412 * obsd-tdep.h (obsd_init_abi): New prototype.
12413 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12414 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12415 (obsd_init_abi): New functions.
12416 * i386obsd-tdep.c: Include "obsd-tdep.h".
12417 (i386obsd_init_abi): Call obsd_init_abi.
12418 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12419 (amd64obsd_init_abi): Call obsd_init_abi.
12420 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12421 obsd-tdep.c to gdb_target_obs.
12422
12423 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12424
12425 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12426 double float arguments to 16-byte in the argument slots.
12427
12428 2014-02-11 Doug Evans <xdje42@gmail.com>
12429
12430 * configure.ac: Don't crash if pkg-config is not found and guile
12431 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12432 in guile checks.
12433 * configure: Regenerate.
12434
12435 2014-02-11 Yao Qi <yao@codesourcery.com>
12436
12437 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12438 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12439 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12440 * gnu-nat.c (gnu_xfer_memory): Likewise.
12441 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12442 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12443 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12444 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12445
12446 2014-02-11 Yao Qi <yao@codesourcery.com>
12447
12448 * target.h (enum target_xfer_error): Rename to ...
12449 (enum target_xfer_status): ... it. New. All users updated.
12450 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12451 New.
12452 (TARGET_XFER_STATUS_ERROR_P): New macro.
12453 (target_xfer_error_to_string): Remove declaration.
12454 (target_xfer_status_to_string): Declare.
12455 (target_xfer_partial_ftype): Adjust it.
12456 (struct target_ops) <to_xfer_partial>: Return
12457 target_xfer_status. Add argument xfered_len. Update
12458 comments.
12459 * target.c (target_xfer_error_to_string): Rename to ...
12460 (target_xfer_status_to_string): ... it. New. All callers
12461 updated.
12462 (target_read_live_memory): Likewise. Call target_xfer_partial
12463 instead of target_read.
12464 (memory_xfer_live_readonly_partial): Return
12465 target_xfer_status. Add argument xfered_len.
12466 (raw_memory_xfer_partial): Likewise.
12467 (memory_xfer_partial_1): Likewise.
12468 (memory_xfer_partial): Likewise.
12469 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12470 properly. Update debug message.
12471 (default_xfer_partial, current_xfer_partial): Likewise.
12472 (target_write_partial): Likewise.
12473 (target_read_partial): Likewise. All callers updated.
12474 (read_whatever_is_readable): Likewise.
12475 (target_write_with_progress): Likewise.
12476 (target_read_alloc_1): Likewise.
12477
12478 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12479 * auxv.c (procfs_xfer_auxv): Likewise.
12480 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12481 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12482 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12483 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12484 * corefile.c (read_memory): Adjust.
12485 * corelow.c (core_xfer_partial): Likewise.
12486 * ctf.c (ctf_xfer_partial): Likewise.
12487 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12488 updated.
12489 (darwin_xfer_partial): Likewise.
12490 * exec.c (section_table_xfer_memory_partial): Likewise. All
12491 callers updated.
12492 (exec_xfer_partial): Likewise.
12493 * exec.h (section_table_xfer_memory_partial): Update
12494 declaration.
12495 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12496 negative.
12497 (gnu_xfer_partial): Likewise.
12498 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12499 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12500 (ia64_hpux_xfer_solib_got): Likewise.
12501 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12502 type of 'partial_len' to ULONGEST.
12503 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12504 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12505 (linux_nat_xfer_partial): Likewise.
12506 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12507 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12508 * monitor.c (monitor_xfer_memory): Likewise.
12509 (monitor_xfer_partial): Likewise.
12510 * procfs.c (procfs_xfer_partial): Likewise.
12511 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12512 * record-full.c (record_full_xfer_partial): Likewise.
12513 (record_full_core_xfer_partial): Likewise.
12514 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12515 (gdbsim_xfer_partial): Likewise.
12516 * remote.c (remote_write_bytes_aux): Likewise. All callers
12517 updated.
12518 (remote_write_bytes, remote_read_bytes): Likewise. All
12519 callers updated.
12520 (remote_flash_erase): Likewise. All callers updated.
12521 (remote_write_qxfer): Likewise. All callers updated.
12522 (remote_read_qxfer): Likewise. All callers updated.
12523 (remote_xfer_partial): Likewise.
12524 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12525 (rs6000_xfer_shared_libraries): Likewise.
12526 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12527 (sol_thread_xfer_partial): Likewise.
12528 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12529 (sparc_xfer_partial): Likewise.
12530 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12531 updated.
12532 (spu_xfer_partial): Likewise.
12533 * spu-multiarch.c (spu_xfer_partial): Likewise.
12534 * tracepoint.c (tfile_xfer_partial): Likewise.
12535 * windows-nat.c (windows_xfer_memory): Likewise.
12536 (windows_xfer_shared_libraries): Likewise.
12537 (windows_xfer_partial): Likewise.
12538 * valprint.c: Replace 'target_xfer_error' with
12539 'target_xfer_status' in comments.
12540
12541 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12542
12543 Checked in by Joel Brobecker <brobecker@adacore.com>.
12544 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12545
12546 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12547
12548 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12549 function parameters.
12550
12551 2014-02-10 Will Newton <will.newton@linaro.org>
12552
12553 * elfread.c (elf_rel_plt_read): Look for a .got section if
12554 looking up .got.plt fails.
12555 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12556 on address passed to elf_gnu_ifunc_record_cache.
12557 (elf_gnu_ifunc_resolve_addr): Likewise.
12558 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12559
12560 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12561
12562 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12563 (X_RETTURN): New macro.
12564 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12565
12566 * sparc64-tdep.c (sparc64_init_abi): Hook
12567 sparc_in_function_epilogue_p.
12568
12569 2014-02-10 Gary Benson <gbenson@redhat.com>
12570
12571 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12572 Rename name_matcher to symbol_matcher.
12573
12574 2014-02-10 Gary Benson <gbenson@redhat.com>
12575
12576 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12577 Use expand_symtabs_file_matcher_ftype and
12578 expand_symtabs_symbol_matcher_ftype.
12579
12580 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12581
12582 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12583 (struct ada_symbol_cache): New.
12584 (ada_free_symbol_cache): Forward declare.
12585 (struct ada_pspace_data): New.
12586 (ada_pspace_data_handle): New static global.
12587 (get_ada_pspace_data, ada_pspace_data_cleanup)
12588 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12589 (cache_space, cache): Delete, now folded inside struct
12590 ada_pspace_data.
12591 (ada_get_symbol_cache): New function.
12592 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12593 implementation.
12594 (_initialize_ada_language): Remove initialization of cache_space.
12595 Move call to observer_attach_inferior_exit up, grouping it
12596 with the other observer registrations inside this function.
12597 Rename command to be more general. Add call to
12598 register_program_space_data_with_cleanup.
12599
12600 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12601
12602 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12603 ada_new_objfile_observer.
12604 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12605 (_initialize_tasks): Update uses of ada_new_objfile_observer
12606 and ada_tasks_normal_stop_observer.
12607
12608 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12609
12610 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12611 returned by the 'Length attribute to integer.
12612
12613 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12614
12615 * ada-lang.c (_initialize_ada_language): Initialize
12616 cache_space obstack.
12617
12618 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12619
12620 * ada-lang.c (HASH_SIZE): New macro.
12621 (struct cache_entry): New type.
12622 (cache_space, cache): New static globals.
12623 (ada_clear_symbol_cache, find_entry): New functions.
12624 (lookup_cached_symbol, cache_symbol): Implement.
12625 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12626 (_initialize_ada_language): Attach ada_new_objfile_observer
12627 and ada_free_objfile_observer.
12628
12629 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12630
12631 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12632 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12633 struct block * parameter.
12634 (ada_lookup_symbol_list_worker): Constify local variable "block".
12635 Remove cast which is no longer necessary.
12636
12637 2014-02-10 Doug Evans <xdje42@gmail.com>
12638
12639 Add Guile as an extension language.
12640 * NEWS: Mention Guile scripting.
12641 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12642 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12643 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12644 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12645 (CLIBS): Add GUILE_LIBS.
12646 (install-guile): New rule.
12647 (guile.o): New rule.
12648 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12649 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12650 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12651 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12652 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12653 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12654 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12655 * configure.ac: New option --with-guile.
12656 * configure: Regenerate.
12657 * config.in: Regenerate.
12658 * auto-load.c: Remove #include "python/python.h". Add #include
12659 "gdb/section-scripts.h".
12660 (source_section_scripts): Handle Guile scripts.
12661 (_initialize_auto_load): Add name of Guile objfile script to
12662 scripts-directory help text.
12663 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12664 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12665 (struct breakpoint): New member scm_bp_object.
12666 * defs.h (enum command_control_type): New value guile_control.
12667 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12668 "extension.h".
12669 (show_user): Update comment.
12670 (_initialize_cli_cmds): Update help text for "show user". Update help
12671 text for max-user-call-depth.
12672 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12673 "extension.h".
12674 (multi_line_command_p): Add guile_control.
12675 (print_command_lines): Handle guile_control.
12676 (execute_control_command, recurse_read_control_structure): Ditto.
12677 (process_next_line): Recognize "guile" commands.
12678 * disasm.c (gdb_disassemble_info): Make non-static.
12679 * disasm.h: #include "dis-asm.h".
12680 (struct gdbarch): Add forward decl.
12681 (gdb_disassemble_info): Declare.
12682 * extension.c: #include "guile/guile.h".
12683 (extension_languages): Add guile.
12684 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12685 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12686 * gdbtypes.c (get_unsigned_type_max): New function.
12687 (get_signed_type_minmax): New function.
12688 * gdbtypes.h (get_unsigned_type_max): Declare.
12689 (get_signed_type_minmax): Declare.
12690 * guile/README: New file.
12691 * guile/guile-internal.h: New file.
12692 * guile/guile.c: New file.
12693 * guile/guile.h: New file.
12694 * guile/scm-arch.c: New file.
12695 * guile/scm-auto-load.c: New file.
12696 * guile/scm-block.c: New file.
12697 * guile/scm-breakpoint.c: New file.
12698 * guile/scm-disasm.c: New file.
12699 * guile/scm-exception.c: New file.
12700 * guile/scm-frame.c: New file.
12701 * guile/scm-gsmob.c: New file.
12702 * guile/scm-iterator.c: New file.
12703 * guile/scm-lazy-string.c: New file.
12704 * guile/scm-math.c: New file.
12705 * guile/scm-objfile.c: New file.
12706 * guile/scm-ports.c: New file.
12707 * guile/scm-pretty-print.c: New file.
12708 * guile/scm-safe-call.c: New file.
12709 * guile/scm-string.c: New file.
12710 * guile/scm-symbol.c: New file.
12711 * guile/scm-symtab.c: New file.
12712 * guile/scm-type.c: New file.
12713 * guile/scm-utils.c: New file.
12714 * guile/scm-value.c: New file.
12715 * guile/lib/gdb.scm: New file.
12716 * guile/lib/gdb/boot.scm: New file.
12717 * guile/lib/gdb/experimental.scm: New file.
12718 * guile/lib/gdb/init.scm: New file.
12719 * guile/lib/gdb/iterator.scm: New file.
12720 * guile/lib/gdb/printing.scm: New file.
12721 * guile/lib/gdb/types.scm: New file.
12722 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12723 (VPATH): Add $(GUILE_SRCDIR).
12724 (GUILE_DIR): New variable.
12725 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12726 (all): Add stamp-guile dependency.
12727 (stamp-guile): New rule.
12728 (clean-guile, install-guile, uninstall-guile): New rules.
12729 (install-only): Add install-guile dependency.
12730 (uninstall): Add uninstall-guile dependency.
12731 (clean): Add clean-guile dependency.
12732
12733 2014-02-09 Doug Evans <xdje42@gmail.com>
12734
12735 Revert this patch (which I approved, mea culpa).
12736
12737 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12738
12739 * Makefile.in (all-lib): Remove.
12740 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12741
12742 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12743
12744 Fix Python stack corruption.
12745 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12746 gdb_py_longest.
12747
12748 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12749
12750 * Makefile.in (all-lib): Remove.
12751 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12752
12753 2014-02-07 Doug Evans <dje@google.com>
12754
12755 * extension-priv.h (extension_language_script_ops): Add comment.
12756 (extension_language_ops): Add comment.
12757 (active_ext_lang_state): Fix typo in comment.
12758
12759 2014-02-07 Pedro Alves <palves@redhat.com>
12760
12761 PR breakpoints/16292
12762 * infrun.c (handle_signal_stop) <signal arrives while stepping
12763 over a breakpoint>: Switch back to the stepping thread.
12764
12765 2014-02-07 Yao Qi <yao@codesourcery.com>
12766
12767 * target.c (target_xfer_partial): Return zero if LEN is zero.
12768
12769 2014-02-07 Yao Qi <yao@codesourcery.com>
12770
12771 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12772 (ld_so_xfer_auxv): Likewise.
12773 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12774 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12775 * corelow.c (core_xfer_partial): Likewise.
12776 * ctf.c (ctf_xfer_partial): Likewise.
12777 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12778 (darwin_xfer_partial): Likewise.
12779 * exec.c (exec_xfer_partial): Likewise.
12780 * gnu-nat.c (gnu_xfer_partial): Likewise.
12781 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12782 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12783 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12784 * linux-nat.c (linux_xfer_siginfo): Likewise.
12785 (linux_proc_xfer_spu): Likewise.
12786 * procfs.c (procfs_xfer_partial): Likewise.
12787 * record-full.c (record_full_xfer_partial): Likewise.
12788 (record_full_core_xfer_partial): Likewise.
12789 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12790 * remote.c (remote_write_qxfer): Likewise.
12791 (remote_write_qxfer, remote_read_qxfer): Likewise.
12792 (remote_xfer_partial): Likewise.
12793 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12794 (rs6000_xfer_shared_libraries): Likewise.
12795 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12796 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12797 (spu_xfer_partial): Likewise.
12798 * target.c (memory_xfer_partial_1): Likewise.
12799 * tracepoint.c (tfile_xfer_partial): Likewise.
12800 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12801 (windows_xfer_partial): Likewise.
12802
12803 2014-02-07 Yao Qi <yao@codesourcery.com>
12804
12805 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12806 comments.
12807 (core_xfer_shared_libraries_aix): Likewise.
12808 * gdbarch.c, gdbarch.h: Regenerated.
12809 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12810 ULONGEST. Change 'len_avail' type to ULONGEST.
12811 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12812 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12813 declaration.
12814 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12815
12816 2014-02-07 Yao Qi <yao@codesourcery.com>
12817
12818 * corefile.c (memory_error): Get 'exception' from ERR and pass
12819 'exception' to throw_error.
12820
12821 2014-02-06 Doug Evans <xdje42@gmail.com>
12822
12823 * configure.ac (libpython checking): Remove all but python.o from
12824 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12825 * configure: Regenerate.
12826
12827 * Makefile.in (SFILES): Add extension.c.
12828 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12829 (COMMON_OBS): Add extension.o.
12830 * extension.h: New file.
12831 * extension-priv.h: New file.
12832 * extension.c: New file.
12833
12834 * python/python-internal.h: #include "extension.h".
12835 (gdbpy_auto_load_enabled): Declare.
12836 (gdbpy_apply_val_pretty_printer): Declare.
12837 (gdbpy_apply_frame_filter): Declare.
12838 (gdbpy_preserve_values): Declare.
12839 (gdbpy_breakpoint_cond_says_stop): Declare.
12840 (gdbpy_breakpoint_has_cond): Declare.
12841 (void source_python_script_for_objfile): Delete.
12842 * python/python.c: #include "extension-priv.h".
12843 Delete inclusion of "observer.h".
12844 (extension_language_python): Moved here and renamed from
12845 script_language_python in py-auto-load.c.
12846 Redefined to be of type extension_language_defn.
12847 (python_extension_script_ops): New global.
12848 (python_extension_ops): New global.
12849 (struct python_env): New member previous_active.
12850 (restore_python_env): Call restore_active_ext_lang.
12851 (ensure_python_env): Call set_active_ext_lang.
12852 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12853 New arg extlang.
12854 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12855 New arg extlang.
12856 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12857 New arg extlang.
12858 (gdbpy_eval_from_control_command): Renamed from
12859 eval_python_from_control_command, made static. New arg extlang.
12860 (gdbpy_source_script) Renamed from source_python_script, made static.
12861 New arg extlang.
12862 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12863 result to int. New arg extlang.
12864 (gdbpy_source_objfile_script): Renamed from
12865 source_python_script_for_objfile, made static. New arg extlang.
12866 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12867 static. New args extlang, extlang_printers. Change result type to
12868 "void".
12869 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12870 static. New arg extlang. Rename arg printers to extlang_printers
12871 and change type to ext_lang_type_printers *.
12872 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12873 static. Replace argument arg with extlang, extlang_printers.
12874 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12875 (!HAVE_PYTHON, source_python_script): Delete.
12876 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12877 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12878 (!HAVE_PYTHON, start_type_printers): Delete.
12879 (!HAVE_PYTHON, apply_type_printers): Delete.
12880 (!HAVE_PYTHON, free_type_printers): Delete.
12881 (_initialize_python): Delete call to observer_attach_before_prompt.
12882 (finalize_python): Set/restore active extension language.
12883 (gdbpy_finish_initialization) Renamed from
12884 finish_python_initialization, made static. New arg extlang.
12885 (gdbpy_initialized): New function.
12886 * python/python.h: #include "extension.h". Delete #include
12887 "value.h", "mi/mi-cmds.h".
12888 (extension_language_python): Declare.
12889 (GDBPY_AUTO_FILE_NAME): Delete.
12890 (enum py_bt_status): Moved to extension.h and renamed to
12891 ext_lang_bt_status.
12892 (enum frame_filter_flags): Moved to extension.h.
12893 (enum py_frame_args): Moved to extension.h and renamed to
12894 ext_lang_frame_args.
12895 (finish_python_initialization): Delete.
12896 (eval_python_from_control_command): Delete.
12897 (source_python_script): Delete.
12898 (apply_val_pretty_printer): Delete.
12899 (apply_frame_filter): Delete.
12900 (preserve_python_values): Delete.
12901 (gdbpy_script_language_defn): Delete.
12902 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12903 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12904
12905 * auto-load.c: #include "extension.h".
12906 (GDB_AUTO_FILE_NAME): Delete.
12907 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12908 (script_language_gdb): Delete, moved to extension.c and renamed to
12909 extension_language_gdb.
12910 (source_gdb_script_for_objfile): Delete.
12911 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12912 (loaded_script): Change type of language member to
12913 struct extension_language_defn *.
12914 (init_loaded_scripts_info): Initialize
12915 unsupported_script_warning_printed.
12916 (maybe_add_script): Make static. Change type of language arg to
12917 struct extension_language_defn *.
12918 (clear_section_scripts): Reset unsupported_script_warning_printed.
12919 (auto_load_objfile_script_1): Rewrite to use extension language API.
12920 (auto_load_objfile_script): Make public. Remove support-compiled-in
12921 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12922 (source_section_scripts): Rewrite to use extension language API.
12923 (load_auto_scripts_for_objfile): Rewrite to use
12924 auto_load_scripts_for_objfile.
12925 (collect_matching_scripts_data): Change type of language member to
12926 struct extension_language_defn *.
12927 (auto_load_info_scripts): Change type of language arg to
12928 struct extension_language_defn *.
12929 (unsupported_script_warning_print): New function.
12930 (script_not_found_warning_print): Make static.
12931 (_initialize_auto_load): Rewrite construction of scripts-directory
12932 help.
12933 * auto-load.h (struct objfile): Add forward decl.
12934 (struct script_language): Delete.
12935 (struct auto_load_pspace_info): Add forward decl.
12936 (struct extension_language_defn): Add forward decl.
12937 (maybe_add_script): Delete.
12938 (auto_load_objfile_script): Declare.
12939 (script_not_found_warning_print): Delete.
12940 (auto_load_info_scripts): Update prototype.
12941 (auto_load_gdb_scripts_enabled): Declare.
12942 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12943 auto_load_python_scripts_enabled and made public.
12944 (script_language_python): Delete, moved to python.c.
12945 (gdbpy_script_language_defn): Delete.
12946 (info_auto_load_python_scripts): Update to use
12947 extension_language_python.
12948
12949 * breakpoint.c (condition_command): Replace call to
12950 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12951 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12952 with call to breakpoint_ext_lang_cond_says_stop.
12953 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12954 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12955 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12956 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12957 New arg slang.
12958 (local_setattro): Print name of extension language with existing
12959 stop condition.
12960
12961 * valprint.c (val_print, value_print): Update to call
12962 apply_ext_lang_val_pretty_printer.
12963 * cp-valprint.c (cp_print_value): Update call to
12964 apply_ext_lang_val_pretty_printer.
12965 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12966 (gdbpy_apply_val_pretty_printer): Renamed from
12967 apply_val_pretty_printer. New arg extlang.
12968 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12969
12970 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12971 extension language API.
12972 * cli/cli-script.c (execute_control_command): Update to call
12973 eval_ext_lang_from_control_command.
12974
12975 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12976 enum ext_lang_bt_status values. Update call to
12977 apply_ext_lang_frame_filter.
12978 (mi_cmd_stack_list_locals): Ditto.
12979 (mi_cmd_stack_list_args): Ditto.
12980 (mi_cmd_stack_list_variables): Ditto.
12981 * mi/mi-main.c: Delete #include "python/python-internal.h".
12982 Add #include "extension.h".
12983 (mi_cmd_list_features): Replace reference to python internal variable
12984 gdb_python_initialized with call to ext_lang_initialized_p.
12985
12986 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12987 Update to use enum ext_lang_frame_args. Update to call
12988 apply_ext_lang_frame_filter.
12989 * python/py-framefilter.c (extract_sym): Update to use enum
12990 ext_lang_bt_status.
12991 (extract_value, py_print_type, py_print_value): Ditto.
12992 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12993 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12994 (py_print_frame): Ditto.
12995 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12996 New arg extlang. Update to use enum ext_lang_bt_status.
12997
12998 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12999 finish_python_initialization. Replace with call to
13000 finish_ext_lang_initialization.
13001
13002 * typeprint.c (do_free_global_table): Update to call
13003 free_ext_lang_type_printers.
13004 (create_global_typedef_table): Update to call
13005 start_ext_lang_type_printers.
13006 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13007 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13008 (type_print_options): Change type of global_printers from "void *"
13009 to "struct ext_lang_type_printers *".
13010
13011 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13012 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13013 (gdbpy_preserve_values): Renamed from preserve_python_values.
13014 New arg extlang.
13015 (!HAVE_PYTHON, preserve_python_values): Delete.
13016
13017 * utils.c (quit_flag): Delete, moved to extension.c.
13018 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13019 extension.c.
13020
13021 * eval.c: Delete #include "python/python.h".
13022 * main.c: Delete #include "python/python.h".
13023
13024 * defs.h: Update comment.
13025
13026 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13027
13028 GDB 7.7 released.
13029
13030 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13031
13032 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13033 defined.
13034
13035 2014-02-05 Yao Qi <yao@codesourcery.com>
13036
13037 * remote.c (remote_pass_signals): Remove local 'buf' and use
13038 rs->buf.
13039 (remote_program_signals): Likewise.
13040
13041 2014-02-05 Yao Qi <yao@codesourcery.com>
13042
13043 * ctf.c: Include "inferior.h" and "gdbthread.h".
13044 (CTF_PID): A new macro.
13045 (ctf_open): Call inferior_appeared and add_thread_silent.
13046 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13047 (ctf_thread_alive): New function.
13048 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13049
13050 2014-02-05 Yao Qi <yao@codesourcery.com>
13051
13052 Revert this patch:
13053
13054 2013-05-24 Yao Qi <yao@codesourcery.com>
13055
13056 * tracepoint.c (TFILE_PID): Remove.
13057 (tfile_open): Don't add thread and inferior.
13058 (tfile_close): Don't set 'inferior_ptid'. Don't call
13059 exit_inferior_silent.
13060 (tfile_thread_alive): Remove.
13061 (init_tfile_ops): Don't set field 'to_thread_alive' of
13062 tfile_ops.
13063
13064 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13065
13066 * remote.c (remote_start_remote): Call remote_check_symbols even
13067 if only symbol-file (not file) has been given.
13068
13069 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13070
13071 * gdbarch.sh (skip_entrypoint): New callback.
13072 * gdbarch.c, gdbarch.h: Regenerate.
13073 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13074 * infrun.c (fill_in_stop_func): Likewise.
13075 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13076 (ppc_elfv2_elf_make_msymbol_special): New function.
13077 (ppc_elfv2_skip_entrypoint): Likewise.
13078 (ppc_linux_init_abi): Install them for ELFv2.
13079
13080 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13081
13082 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13083 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13084 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13085 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13086 structures returned in GPRs.
13087
13088 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13089
13090 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13091 offset to the stack parameter list for the ELFv2 ABI.
13092
13093 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13094
13095 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13096 set_gdbarch_convert_from_func_ptr_addr and
13097 set_gdbarch_elf_make_msymbol_special for ELFv1.
13098 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13099 function descriptors on ELFv1.
13100 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13101 set up r12 at function entry.
13102
13103 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13104
13105 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13106 (struct gdbarch_tdep): New member elf_abi.
13107
13108 * rs6000-tdep.c: Include "elf/ppc64.h".
13109 (rs6000_gdbarch_init): Detect ELF ABI version.
13110
13111 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13112
13113 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13114 within a register pair holding a DFP 128-bit value on little-endian.
13115 (ppc64_sysv_abi_return_value_base): Likewise.
13116 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13117 (dfp_pseudo_register_write): Likewise.
13118
13119 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13120
13121 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13122 offset on little-endian when passing _Decimal32.
13123 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13124
13125 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13126
13127 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13128 of the overlapped FP register within the VSX register on little-
13129 endian platforms.
13130 (efpr_pseudo_register_write): Likewise.
13131
13132 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13133
13134 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13135 offset on little-endian when passing small structures.
13136
13137 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13138
13139 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13140 (struct ppc64_sysv_argpos): New data structure.
13141 (ppc64_sysv_abi_push_float): Remove.
13142 (ppc64_sysv_abi_push_val): New function.
13143 (ppc64_sysv_abi_push_integer): Likewise.
13144 (ppc64_sysv_abi_push_freg): Likewise.
13145 (ppc64_sysv_abi_push_vreg): Likewise.
13146 (ppc64_sysv_abi_push_param): Likewise.
13147 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13148 (ppc64_sysv_abi_return_value_base): New function.
13149 (ppc64_sysv_abi_return_value): Refactor to use it.
13150
13151 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13152
13153 * NEWS: Document new target powerpc64le-*-linux*.
13154
13155 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13156
13157 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13158 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13159 core dumps.
13160 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13161 register set used in ELF core dumps. Add floating-point register set.
13162
13163 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13164
13165 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13166 dwarf2_to_gdb[] table using symbolic constants. Adjust
13167 penultimate entry from number representing the PC register
13168 to symbolic constant representing the MDR register. Add
13169 constant for the PC register to the end of the table.
13170
13171 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13172
13173 * bsd-kvm.c: Include <sys/param.h>
13174
13175 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13176
13177 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13178
13179 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13180
13181 * ada-lang.h (clear_ada_sym_cache): Delete.
13182
13183 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13184
13185 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13186
13187 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13188
13189 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13190 the sigreturn register save area only if the syscall is
13191 sigreturn.
13192
13193 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13194
13195 * valops.c (value_slice): Minor reformatting.
13196
13197 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13198
13199 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13200
13201 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13202
13203 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13204 New static globals.
13205 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13206 (ada_ignore_descriptive_types_p): New static global.
13207 (find_parallel_type_by_descriptive_type): Return immediately
13208 if ada_ignore_descriptive_types_p is set.
13209 (_initialize_ada_language): Register new commands "maintenance
13210 set ada", "maintenance show ada", "maintenance set ada
13211 ignore-descriptive-types" and "maintenance show ada
13212 ignore-descriptive-types".
13213 * NEWS: Add entry for new "maint ada set/show
13214 ignore-descriptive-types" commands.
13215
13216 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13217
13218 * record-btrace.c (record_btrace_close): Call btrace_teardown
13219 for all threads.
13220
13221 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13222
13223 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13224 "ui-out.h".
13225
13226 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13227
13228 * ada-typeprint (type_is_full_subrange_of_target_type):
13229 New function.
13230 (print_range): Add parameter bounds_prefered_p. If not set,
13231 try printing range types using the name of their base type.
13232 (print_range_type): Add parameter bounds_prefered_p.
13233 Use it in call to print_range.
13234 (print_array_type, ada_print_type): Update calls to print_range
13235 and print_range_type.
13236
13237 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13238
13239 * ada-typeprint.c (print_array_type, print_choices, print_range)
13240 (print_range_bound, print_dynamic_range_bound, print_range_type):
13241 Remove declaration.
13242
13243 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13244
13245 * ada-typeprint.c (print_range): Add missing empty line
13246 after local declaration.
13247
13248 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13249
13250 * ada-valprint.c (print_optional_low_bound): Get index_type's
13251 target type for as long as it is a TYPE_CODE_RANGE.
13252
13253 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13254
13255 * procfs.c (procfs_make_note_section): Remove assertion and
13256 associated comment.
13257
13258 2014-01-24 Yao Qi <yao@codesourcery.com>
13259
13260 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13261 * corelow.c (get_core_siginfo): Likewise.
13262
13263 2014-01-24 Yao Qi <yao@codesourcery.com>
13264
13265 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13266 ULONGEST. Don't check 'len' is negative.
13267 (remote_write_bytes): Change type of 'len' to ULONGEST.
13268
13269 2014-01-23 Tom Tromey <tromey@redhat.com>
13270
13271 PR python/16485:
13272 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13273 Handle exception from frame.block.
13274 (FrameVars.fetch_frame_locals): Likewise.
13275
13276 2014-01-23 Tom Tromey <tromey@redhat.com>
13277
13278 PR python/16487:
13279 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13280 on a NULL pointer. Move "goto error" to correct place.
13281
13282 2014-01-23 Tom Tromey <tromey@redhat.com>
13283
13284 PR python/16491:
13285 * python/py-framefilter.c (apply_frame_filter): Call
13286 ensure_python_env after computing gdbarch.
13287
13288 2014-01-23 Yao Qi <yao@codesourcery.com>
13289
13290 * target.c (raw_memory_xfer_partial): Change argument type
13291 from void * to gdb_byte *.
13292 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13293
13294 2014-01-22 Doug Evans <dje@google.com>
13295
13296 New gdbserver option --debug-format=timestamp.
13297 * NEWS: Mention it.
13298
13299 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13300
13301 * syscalls/s390x-linux.xml: New file.
13302 * syscalls/s390-linux.xml: New file.
13303 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13304 (XML_SYSCALL_FILENAME_S390X): Likewise.
13305 (op_svc): New enum value for SVC opcode.
13306 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13307 (s390_linux_get_syscall_number): New function.
13308 (s390_gdbarch_init): Register '*get_syscall_number' and the
13309 syscall xml file name.
13310 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13311 "s390-linux.xml" and "s390x-linux.xml".
13312 * NEWS: Announce new feature.
13313
13314 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13315
13316 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13317
13318 2014-01-22 Pedro Alves <palves@redhat.com>
13319
13320 * xtensa-config.c: Include defs.h.
13321
13322 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13323
13324 * common/common-utils.h: Add "ARI:" comment beside __func__
13325 reference.
13326
13327 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13328
13329 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13330 documentation a bit.
13331
13332 2014-01-21 Roland McGrath <mcgrathr@google.com>
13333
13334 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13335 * configure: Regenerate.
13336 * aclocal.m4: Regenerate.
13337 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13338 New substituted variables.
13339 (install-strip): New target.
13340 (INSTALL_SCRIPT): New substituted variable.
13341 (FLAGS_TO_PASS): Add it.
13342 (install-only): Use $(INSTALL_SCRIPT) rather than
13343 $(INSTALL_PROGRAM) for gcore.
13344
13345 2014-01-20 Tom Tromey <tromey@redhat.com>
13346
13347 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13348 together.
13349
13350 2014-01-20 Tom Tromey <tromey@redhat.com>
13351
13352 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13353 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13354 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13355 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13356 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13357 (struct cmd_list_element) <flags>: Remove.
13358 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13359 doc_allocated>: New fields.
13360 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13361 bitfields.
13362 * maint.c (maintenance_do_deprecate): Update.
13363 * top.c (execute_command): Update.
13364
13365 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13366
13367 * xtensa-linux-nat.c: Include asm/ptrace.h.
13368
13369 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13370
13371 * Makefile.in (SFILES): Add d-support.c.
13372 (COMMON_OBS): Add d-support.o.
13373 * d-lang.h (d_parse_symbol): Add comment, now defined in
13374 d-support.c.
13375 * d-lang.c (parse_call_convention)
13376 (parse_attributes, parse_function_types)
13377 (parse_function_args, parse_type, parse_identifier)
13378 (call_convention_p, d_parse_symbol): Move functions to ...
13379 * d-support.c: ... New file.
13380
13381 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13382
13383 * d-lang.h (d_parse_symbol): Add declaration.
13384 * d-lang.c (extract_identifiers)
13385 (extract_type_info): Remove functions.
13386 (parse_call_convention, parse_attributes)
13387 (parse_function_types, parse_function_args)
13388 (parse_type, parse_identifier, call_convention_p)
13389 (d_parse_symbol): New functions.
13390 (d_demangle): Use d_parse_symbol to demangle D symbols.
13391
13392 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13393
13394 * d-lang.h (struct builtin_d_type): New data type.
13395 (builtin_d_type): Add declaration.
13396 * d-lang.c (d_language_arch_info, build_d_types)
13397 (builtin_d_type): New functions.
13398 (enum d_primitive_types): New data type.
13399 (d_language_defn): Change c_language_arch_info to
13400 d_language_arch_info.
13401 (d_type_data): New static variable.
13402 (_initialize_d_language): Initialize d_type_data.
13403
13404 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13405
13406 * d-lang.h (d_main_name): Add declaration.
13407 * d-lang.c (d_main_name): New function.
13408 * symtab.c (find_main_name): Add call to d_main_name.
13409
13410 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13411
13412 * d-lang.c (d_language_defn): Change macro_expansion_c to
13413 macro_expansion_no.
13414
13415 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13416
13417 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13418
13419 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13420
13421 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13422 gdb_exception" declaration.
13423 * remote.c (getpkt_or_notif_sane): Likewise.
13424
13425 2014-01-17 Doug Evans <dje@google.com>
13426
13427 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13428 function, contents of dirnames_to_char_ptr_vec_append moved here.
13429 (delim_string_to_char_ptr_vec): New function.
13430 (dirnames_to_char_ptr_vec_append): Rewrite.
13431 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13432
13433 2014-01-17 Doug Evans <dje@google.com>
13434
13435 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13436 and moved here ...
13437 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13438 #include "common-utils.h".
13439 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13440 * common/vec.h (VEC_ASSERT_PASS): Update.
13441 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13442 (MACH_CHECK_ERROR): Update.
13443
13444 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13445
13446 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13447 comments.
13448 * gdbarch.h: Regenerate.
13449
13450 2014-01-16 Tom Tromey <tromey@redhat.com>
13451
13452 * value.c (struct value) <regnum>: Move earlier.
13453
13454 2014-01-16 Tom Tromey <tromey@redhat.com>
13455
13456 * remote.c (extended_remote_create_inferior): Rename from
13457 extended_remote_create_inferior_1. Add "ops" argument. Remove
13458 old implementation.
13459
13460 2014-01-16 Pedro Alves <palves@redhat.com>
13461
13462 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13463 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13464 the backchain.
13465
13466 2014-01-16 Doug Evans <dje@google.com>
13467
13468 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13469
13470 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13471
13472 * btrace.h (btrace_thread_flag): New.
13473 (struct btrace_thread_info) <flags>: New.
13474 * record-btrace.c (record_btrace_resume_thread)
13475 (record_btrace_find_thread_to_move, btrace_step_no_history)
13476 (btrace_step_stopped, record_btrace_start_replaying)
13477 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13478 (record_btrace_find_resume_thread): New.
13479 (record_btrace_resume, record_btrace_wait): Extend.
13480 (record_btrace_can_execute_reverse): New.
13481 (record_btrace_open): Fail in non-stop mode.
13482 (record_btrace_set_replay): Split into this, ...
13483 (record_btrace_stop_replaying): ... this, ...
13484 (record_btrace_clear_histories): ... and this.
13485 (init_record_btrace_ops): Init to_can_execute_reverse.
13486 * NEWS: Announce it.
13487
13488 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13489
13490 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13491 (forward_target_decr_pc_after_break)
13492 (target_decr_pc_after_break): New.
13493 * target.c (forward_target_decr_pc_after_break)
13494 (target_decr_pc_after_break): New.
13495 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13496 instead of gdbarch_decr_pc_after_break.
13497 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13498 instead of gdbarch_decr_pc_after_break.
13499 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13500 instead of gdbarch_decr_pc_after_break.
13501 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13502 instead of gdbarch_decr_pc_after_break.
13503 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13504 instead of gdbarch_decr_pc_after_break.
13505 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13506 instead of gdbarch_decr_pc_after_break.
13507
13508 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13509
13510 * btrace.c: Include regcache.h.
13511 (btrace_add_pc): New.
13512 (btrace_enable): Call btrace_add_pc.
13513 (btrace_is_empty): New.
13514 * btrace.h (btrace_is_empty): New.
13515 * record-btrace.c (require_btrace, record_btrace_info): Call
13516 btrace_is_empty.
13517
13518 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13519
13520 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13521 Support delta reads.
13522 (linux_disable_btrace): Change return type.
13523 * common/linux-btrace.h (linux_read_btrace): Change parameters
13524 and return type to allow error reporting. Update users.
13525 (linux_disable_btrace): Change return type. Update users.
13526 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13527 New.
13528 (btrace_error): New.
13529 (btrace_block) <begin>: Comment on BEGIN == 0.
13530 * btrace.c (btrace_compute_ftrace): Start from the end of
13531 the current trace.
13532 (btrace_stitch_trace, btrace_clear_history): New.
13533 (btrace_fetch): Read delta trace, return if replaying.
13534 (btrace_clear): Move clear history code to btrace_clear_history.
13535 (parse_xml_btrace): Throw an error if parsing failed.
13536 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13537 and return type to allow error reporting.
13538 (target_read_btrace): Change parameters and return type to allow
13539 error reporting.
13540 * target.c (target_read_btrace): Update.
13541 * remote.c (remote_read_btrace): Support delta reads. Pass
13542 errors on.
13543 * NEWS: Announce it.
13544
13545 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13546
13547 * record.h (record_btrace_frame_unwind)
13548 (record_btrace_tailcall_frame_unwind): New declarations.
13549 * dwarf2-frame: Include record.h
13550 (dwarf2_frame_cfa): Throw an error for btrace frames.
13551 * record-btrace.c: Include hashtab.h.
13552 (btrace_get_bfun_name): New.
13553 (btrace_call_history): Call btrace_get_bfun_name.
13554 (struct btrace_frame_cache): New.
13555 (bfcache): New.
13556 (bfcache_hash, bfcache_eq, bfcache_new): New.
13557 (btrace_get_frame_function): New.
13558 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13559 (record_btrace_frame_this_id): Compute own id.
13560 (record_btrace_frame_prev_register): Provide PC, throw_error
13561 for all other registers.
13562 (record_btrace_frame_sniffer): Detect btrace frames.
13563 (record_btrace_tailcall_frame_sniffer): New.
13564 (record_btrace_frame_dealloc_cache): New.
13565 (record_btrace_frame_unwind): Add new functions.
13566 (record_btrace_tailcall_frame_unwind): New.
13567 (_initialize_record_btrace): Allocate cache.
13568 * btrace.c (btrace_clear): Call reinit_frame_cache.
13569 * NEWS: Announce it.
13570
13571 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13572
13573 * record-btrace.c (record_btrace_set_replay)
13574 (record_btrace_goto_begin, record_btrace_goto_end)
13575 (record_btrace_goto): New.
13576 (init_record_btrace_ops): Initialize them.
13577 * NEWS: Announce it.
13578
13579 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13580
13581 * record-btrace.c (record_btrace_find_new_threads)
13582 (record_btrace_thread_alive): New.
13583 (init_record_btrace_ops): Initialize to_find_new_threads and
13584 to_thread_alive.
13585
13586 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13587
13588 * record-btrace.c (record_btrace_resume): New.
13589 (record_btrace_wait): New.
13590 (init_record_btrace_ops): Initialize to_wait and to_resume.
13591
13592 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13593
13594 * record-btrace.c (record_btrace_xfer_partial)
13595 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13596 (record_btrace_allow_memory_access): New.
13597 (init_record_btrace_ops): Initialize new methods.
13598 * target.c (raw_memory_xfer_partial): Bail out if target reports
13599 that this memory is not available.
13600
13601 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13602
13603 * target.h (target_ops) <to_insert_breakpoint>
13604 <to_remove_breakpoint>: Add target_ops parameter.
13605 (forward_target_insert_breakpoint): New.
13606 (forward_target_remove_breakpoint): New.
13607 (memory_remove_breakpoint, memory_insert_breakpoint):
13608 Add target_ops parameter.
13609 * target.c (target_insert_breakpoint): Split into this and ...
13610 (forward_target_insert_breakpoint): ... this.
13611 (target_remove_breakpoint): Split into this and ...
13612 (forward_target_remove_breakpoint): ... this.
13613 (debug_to_insert_breakpoint): Add target_ops parameter.
13614 Call forward_target_insert_breakpoint.
13615 (debug_to_remove_breakpoint): Add target_ops parameter.
13616 Call forward_target_remove_breakpoint.
13617 (update_current_target): Do not inherit or default to_insert_breakpoint
13618 and to_remove_breakpoint.
13619 * corelow.c (ignore): Add target_ops parameter.
13620 * exec.c (ignore): Add target_ops parameter.
13621 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13622 Add target_ops parameter.
13623 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13624 Add target_ops parameter.
13625 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13626 Add target_ops parameter.
13627 * record-full.c (record_full_beneath_to_insert_breakpoint)
13628 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13629 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13630 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13631 (record_full_core_remove_breakpoint): Add target_ops parameter.
13632 Update users.
13633 (record_full_beneath_to_insert_breakpoint_ops)
13634 (record_full_beneath_to_remove_breakpoint_ops)
13635 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13636 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13637 tmp_to_remove_breakpoint_ops,
13638 record_full_beneath_to_insert_breakpoint_ops, and
13639 record_full_beneath_to_remove_breakpoint_ops.
13640 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13641 (m32r_remove_breakpoint): Add target_ops parameter.
13642 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13643 Add target_ops parameter.
13644 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13645 Add target_ops parameter.
13646
13647 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13648 Markus Metzger <markus.t.metzger@intel.com>
13649
13650 * record-btrace.c: Include frame-unwind.h.
13651 (record_btrace_frame_unwind_stop_reason)
13652 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13653 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13654 New.
13655 (init_record_btrace_ops): Install it.
13656
13657 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13658
13659 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13660 get_prev_frame_1.
13661
13662 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13663
13664 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13665 earlier.
13666
13667 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13668
13669 * frame-unwind.c: Include target.h.
13670 (frame_unwind_try_unwinder): New function with code from ...
13671 (frame_unwind_find_by_frame): ... here. New variable
13672 unwinder_from_target, call also target_get_unwinder)
13673 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13674 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13675 * target.h (struct target_ops): New fields to_get_unwinder and
13676 to_get_tailcall_unwinder.
13677 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13678
13679 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13680
13681 * record-btrace.c (record_btrace_fetch_registers)
13682 (record_btrace_store_registers)
13683 (record_btrace_to_prepare_to_store): New.
13684 (init_record_btrace_ops): Add the above.
13685
13686 2014-01-16 Tom Tromey <tromey@redhat.com>
13687
13688 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13689 * target.h (struct target_ops) <to_prepare_to_store>: Add
13690 argument.
13691 (target_prepare_to_store): Add argument.
13692 * target.c (debug_to_prepare_to_store): Add argument.
13693 (update_current_target): Update.
13694 * remote.c (remote_prepare_to_store): Add 'self' argument.
13695 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13696 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13697 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13698 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13699 argument.
13700 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13701 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13702 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13703 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13704 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13705
13706 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13707
13708 * btrace.h (replay) <replay>: New.
13709 (btrace_is_replaying): New.
13710 * btrace.c (btrace_clear): Free replay iterator.
13711 (btrace_is_replaying): New.
13712 * record-btrace.c (record_btrace_is_replaying): New.
13713 (record_btrace_info): Print insn number if replaying.
13714 (record_btrace_insn_history): Start at replay position.
13715 (record_btrace_call_history): Start at replay position.
13716 (init_record_btrace_ops): Init to_record_is_replaying.
13717
13718 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13719
13720 * record-btrace.c (record_btrace_insn_history_range): Include
13721 end.
13722 (record_btrace_insn_history_from): Adjust range.
13723 (record_btrace_call_history_range): Include
13724 end.
13725 (record_btrace_call_history_from): Adjust range.
13726 * NEWS: Announce changes.
13727
13728 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13729
13730 * record.h (enum record_print_flag)
13731 <record_print_indent_calls>: New.
13732 * record.c (get_call_history_modifiers): Recognize /c modifier.
13733 (_initialize_record): Document /c modifier.
13734 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13735 Reorder fields. Optionally indent the function name. Update
13736 all users.
13737 * NEWS: Announce changes.
13738
13739 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13740
13741 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13742
13743 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13744
13745 * btrace.c (ftrace_new_function): Start counting at one.
13746 * record-btrace.c (record_btrace_info): Adjust number of calls
13747 and insns.
13748 * NEWS: Announce it.
13749
13750 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13751
13752 * record-btrace.c (btrace_call_history_insn_range): Print
13753 insn range as [begin, end].
13754
13755 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13756
13757 * btrace.h (struct btrace_func_link): New.
13758 (enum btrace_function_flag): New.
13759 (struct btrace_inst): Rename to ...
13760 (struct btrace_insn): ...this. Update all users.
13761 (struct btrace_func) <ibegin, iend>: Remove.
13762 (struct btrace_func_link): New.
13763 (struct btrace_func): Rename to ...
13764 (struct btrace_function): ...this. Update all users.
13765 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13766 (number, level, flags>: New.
13767 (struct btrace_insn_iterator): Rename to ...
13768 (struct btrace_insn_history): ...this.
13769 Update all users.
13770 (struct btrace_insn_iterator, btrace_call_iterator): New.
13771 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13772 (struct btrace_target_info) <begin, end, level>
13773 <insn_history, call_history>: New.
13774 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13775 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13776 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13777 (btrace_call_number, btrace_call_begin, btrace_call_end)
13778 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13779 (btrace_find_function_by_number, btrace_set_insn_history)
13780 (btrace_set_call_history): New.
13781 * btrace.c (btrace_init_insn_iterator)
13782 (btrace_init_func_iterator, compute_itrace): Remove.
13783 (ftrace_print_function_name, ftrace_print_filename)
13784 (ftrace_skip_file): Change
13785 parameter to const.
13786 (ftrace_init_func): Remove.
13787 (ftrace_debug): Use new btrace_function fields.
13788 (ftrace_function_switched): Also consider gaining and
13789 losing symbol information).
13790 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13791 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13792 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13793 New.
13794 (ftrace_new_function): Move. Remove debug print.
13795 (ftrace_update_lines, ftrace_update_insns): New.
13796 (ftrace_update_function): Check for call, ret, and jump.
13797 (compute_ftrace): Renamed to ...
13798 (btrace_compute_ftrace): ...this. Rewritten to compute call
13799 stack.
13800 (btrace_fetch, btrace_clear): Updated.
13801 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13802 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13803 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13804 (btrace_call_number, btrace_call_begin, btrace_call_end)
13805 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13806 (btrace_find_function_by_number, btrace_set_insn_history)
13807 (btrace_set_call_history): New.
13808 * record-btrace.c (require_btrace): Use new btrace thread
13809 info fields.
13810 (record_btrace_info, btrace_insn_history)
13811 (record_btrace_insn_history, record_btrace_insn_history_range):
13812 Use new btrace thread info fields and new iterator.
13813 (btrace_func_history_src_line): Rename to ...
13814 (btrace_call_history_src_line): ...this. Use new btrace
13815 thread info fields.
13816 (btrace_func_history): Rename to ...
13817 (btrace_call_history): ...this. Use new btrace thread info
13818 fields and new iterator.
13819 (record_btrace_call_history, record_btrace_call_history_range):
13820 Use new btrace thread info fields and new iterator.
13821
13822 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13823
13824 * frame.h (frame_id_build_unavailable_stack_special): New.
13825 * frame.c (frame_id_build_unavailable_stack_special): New.
13826
13827 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13828
13829 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13830 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13831 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13832 to gdbarch.
13833 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13834 (i386_insn_is_jump, i386_jmp_p): New.
13835 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13836 insn_is_jump to gdbarch.
13837 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13838 * gdbarch.h: Regenerated.
13839 * gdbarch.c: Regenerated.
13840 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13841 (default_insn_is_jump): New.
13842 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13843 (default_insn_is_jump): New.
13844
13845 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13846
13847 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13848 Change to ...
13849 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13850 (btrace_read_type) <btrace_read_new>: Change to ...
13851 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13852
13853 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13854
13855 * common/linux-btrace.c (linux_read_btrace): Free trace from
13856 previous iteration.
13857
13858 2014-01-15 Doug Evans <dje@google.com>
13859
13860 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13861 uint32_t.
13862
13863 2014-01-15 Tom Tromey <tromey@redhat.com>
13864
13865 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13866 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13867 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13868 (set_objfile_main_name): New function.
13869 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13870 language_of_main>: New fields.
13871 (set_objfile_main_name): Declare.
13872 * symtab.c (find_main_name): Loop over objfiles to find the main
13873 name and language.
13874 (set_main_name): Now static.
13875 (get_main_info): Add comment.
13876 * symtab.h (set_main_name): Don't declare.
13877
13878 2014-01-15 Tom Tromey <tromey@redhat.com>
13879
13880 * symtab.c (main_progspace_key): New global.
13881 (struct main_info): New.
13882 (name_of_main, language_of_main): Remove.
13883 (get_main_info, main_info_cleanup): New function.
13884 (set_main_name, main_name, main_language): Use get_main_info.
13885 (_initialize_symtab): Initialize main_progspace_key.
13886
13887 2014-01-15 Tom Tromey <tromey@redhat.com>
13888
13889 * dbxread.c (process_one_symbol): Update.
13890 * dwarf2read.c (read_partial_die): Update.
13891 * symfile.c (set_initial_language): Call main_language.
13892 * symtab.c (language_of_main): Now static.
13893 (set_main_name): Add 'lang' parameter.
13894 (find_main_name): Update.
13895 (main_language): New function.
13896 (symtab_observer_executable_changed): Update.
13897 * symtab.h (set_main_name): Update.
13898 (language_of_main): Remove.
13899 (main_language): Declare.
13900
13901 2014-01-15 Tom Tromey <tromey@redhat.com>
13902
13903 * symfile.c (init_entry_point_info): Use new "initialized" field.
13904 Update.
13905 * objfiles.h (struct entry_point) <initialized>: New field.
13906 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13907 (struct objfile) <ei>: ...here. Remove.
13908 * objfiles.c (entry_point_address_query): Update.
13909
13910 2014-01-15 Tom Tromey <tromey@redhat.com>
13911
13912 * objfiles.c (entry_point_address_query): Relocate entry point
13913 address.
13914 (objfile_relocate1): Do not relocate entry point address.
13915 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13916 <the_bfd_section_index>: New field.
13917 * symfile.c (init_entry_point_info): Find the entry point's
13918 section.
13919
13920 2014-01-15 Tom Tromey <tromey@redhat.com>
13921
13922 * solib-frv.c (enable_break): Use entry_point_address_query.
13923
13924 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13925
13926 * NEWS: Add note on improved process record-replay on
13927 arm*-linux* targets.
13928
13929 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13930
13931 * arm-tdep.c (enum arm_record_result): New enum.
13932 (arm_record_unsupported_insn): New function.
13933 (arm_record_coproc_data_proc): Removed.
13934 (thumb2_record_ld_st_multiple): New function.
13935 (thumb2_record_ld_st_dual_ex_tbb): New function.
13936 (thumb2_record_data_proc_sreg_mimm): New function.
13937 (thumb2_record_ps_dest_generic): New function.
13938 (thumb2_record_branch_misc_cntrl): New function.
13939 (thumb2_record_str_single_data): New function.
13940 (thumb2_record_ld_mem_hints): New function.
13941 (thumb2_record_ld_word): New function.
13942 (thumb2_record_lmul_lmla_div): New function.
13943 (thumb2_record_decode_insn_handler): New function.
13944 (decode_insn): Add thumb32 instruction handlers.
13945
13946 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13947
13948 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13949 (struct arm_linux_record_tdep): Declare.
13950 (arm_canonicalize_syscall): New function.
13951 (arm_all_but_pc_registers_record): New function.
13952 (arm_linux_syscall_record): New function.
13953 (arm_linux_init_abi): Add syscall recording constructs.
13954 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13955 decoding. (arm_record_coproc_data_proc): Update arm syscall
13956 decoding.
13957 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13958 <arm_syscall_record>: New field.
13959 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13960 gdb_target_obs.
13961
13962 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13963
13964 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13965 register for push instruction recording.
13966
13967 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13968
13969 * arm-tdep.c (thumb_record_misc): Update to correct logical
13970 error while recording ldm, ldmia and pop instructions.
13971
13972 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13973
13974 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13975
13976 2014-01-15 Pedro Alves <palves@redhat.com>
13977
13978 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13979 (go32_resume, go32_fetch_registers, store_register)
13980 (go32_store_registers, go32_prepare_to_store)
13981 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13982 (go32_create_inferior, go32_can_run, go32_terminal_init)
13983 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13984 declarations.
13985
13986 2014-01-15 Tom Tromey <tromey@redhat.com>
13987
13988 * target.h (async_callback_ftype): New typedef.
13989 (struct target_ops) <to_async>: Use it.
13990
13991 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13992
13993 * python/py-value.c (get_field_type): Remove unnecessary curly
13994 braces for single-statement if block.
13995
13996 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13997
13998 * python/py-type.c (convert_field): Add missing empty line
13999 after declarations.
14000
14001 2014-01-14 Doug Evans <dje@google.com>
14002
14003 * symfile.h (expand_symtabs_matching): Renamed from
14004 expand_partial_symbol_names. Update prototype.
14005 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14006 * symfile.c (expand_symtabs_matching): Renamed from
14007 expand_partial_symbol_names. New args file_matcher, kind.
14008 Rename arg fun to symbol_matcher.
14009 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14010 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14011 ada_expand_partial_symbol_name.
14012 (ada_make_symbol_completion_list): Update to call
14013 expand_symtabs_matching.
14014 (ada_add_global_exceptions): Call expand_symtabs_matching.
14015 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14016 call map_symbol_filenames.
14017 * symtab.c (sources_info): Update to call map_symbol_filenames.
14018 (search_symbols): Call expand_symtabs_matching.
14019 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14020 (default_make_symbol_completion_list_break_on): Update to call
14021 expand_symtabs_matching.
14022 (make_source_files_completion_list): Update to call
14023 map_symbol_filenames.
14024
14025 2014-01-14 Doug Evans <dje@google.com>
14026
14027 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14028 (expand_symtabs_symbol_matcher_ftype): New typedef.
14029 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14030 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14031 * symfile.c (expand_partial_symbol_names): Update to use
14032 expand_symtabs_symbol_matcher_ftype.
14033 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14034 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14035 Arg name_matcher renamed to symbol_matcher.
14036 * psymtab.c (recursively_search_psymtabs): Update to use
14037 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14038 sym_matcher.
14039 (expand_symtabs_matching_via_partial): Update to use
14040 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14041 Arg name_matcher renamed to symbol_matcher.
14042
14043 2014-01-14 Doug Evans <dje@google.com>
14044
14045 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14046 (map_partial_symbol_filenames): Ditto.
14047 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14048 (map_partial_symbol_filenames): Ditto.
14049 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14050 (map_partial_symbol_filenames): Ditto.
14051 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14052 (map_partial_symbol_filenames): Ditto.
14053 * symtab.c: Delete #include "psymtab.h".
14054
14055 2014-01-14 Pedro Alves <palves@redhat.com>
14056 Tom Tromey <tromey@redhat.com>
14057
14058 * infrun.c (use_displaced_stepping): Use find_record_target
14059 instead of RECORD_IS_USED.
14060 (adjust_pc_after_break): Use record_full_is_used instead of
14061 RECORD_IS_USED.
14062 * record-btrace.c (record_btrace_open): Call record_preopen
14063 instead of checking RECORD_IS_USED.
14064 * record-full.c (record_full_shortname)
14065 (record_full_core_shortname): New globals.
14066 (record_full_is_used): New function.
14067 (find_full_open): Call record_preopen instead of checking
14068 RECORD_IS_USED.
14069 (init_record_full_ops): Set the target's shortname to
14070 record_full_shortname.
14071 (init_record_full_core_ops): Set the target's shortname to
14072 record_full_core_shortname.
14073 * record-full.h (record_full_is_used): Declare.
14074 * record.c (find_record_target): Make extern.
14075 (record_preopen): New function.
14076 * record.h (RECORD_IS_USED): Delete macro.
14077 (find_record_target, record_preopen): Declare functions.
14078
14079 2014-01-14 Yao Qi <yao@codesourcery.com>
14080
14081 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14082 'len''s type to ULONGEST.
14083 (core_xfer_shared_libraries_aix): Likewise.
14084 * gdbarch.c, gdbarch.h: Regenerated.
14085 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14086 Change type of 'len' to ULONGEST.
14087 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14088 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14089
14090 2014-01-14 Yao Qi <yao@codesourcery.com>
14091
14092 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14093 type of 'len' to ULONGEST.
14094 (linux_xfer_osdata_processgroups): Likewise.
14095 (linux_xfer_osdata_threads): Likewise.
14096 (linux_xfer_osdata_fds): Likewise.
14097 (linux_xfer_osdata_isockets): Likewise.
14098 (linux_xfer_osdata_shm): Likewise.
14099 (linux_xfer_osdata_sem): Likewise.
14100 (linux_xfer_osdata_msg): Likewise.
14101 (linux_common_xfer_osdata): Likewise.
14102 (struct osdata_type) <getter>: Likewise.
14103 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14104 the declaration.
14105
14106 2014-01-14 Yao Qi <yao@codesourcery.com>
14107
14108 * target.h (target_xfer_partial_ftype): Update.
14109 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14110 ULONGEST.
14111 * aix-thread.c (aix_thread_xfer_partial): Change type of
14112 argument 'len' to ULONGEST.
14113 * auxv.c (procfs_xfer_auxv): Likewise.
14114 (ld_so_xfer_auxv): Likewise.
14115 (memory_xfer_auxv): Likewise.
14116 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14117 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14118 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14119 * corelow.c (core_xfer_partial): Likewise.
14120 * ctf.c (ctf_xfer_partial): Likewise.
14121 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14122 '%u'.
14123 (darwin_read_dyld_info): Likewise.
14124 (darwin_xfer_partial): Likewise.
14125 * exec.c (section_table_xfer_memory_partial): Likewise.
14126 (exec_xfer_partial): Likewise.
14127 * exec.h (section_table_xfer_memory_partial): Update
14128 declaration.
14129 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14130 instead of plongest.
14131 (gnu_xfer_partial): Likewise.
14132 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14133 (ia64_hpux_xfer_solib_got): Likewise.
14134 (ia64_hpux_xfer_partial): Likewise.
14135 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14136 * inf-ptrace.c (inf_ptrace_xfer_partial):
14137 * inf-ttrace.c (inf_ttrace_xfer_partial):
14138 * linux-nat.c (linux_xfer_siginfo): Likewise.
14139 (linux_nat_xfer_partial): Likewise.
14140 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14141 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14142 * monitor.c (monitor_xfer_memory): Likewise.
14143 (monitor_xfer_partial): Likewise.
14144 * procfs.c (procfs_xfer_partial): Likewise.
14145 * record-full.c (record_full_xfer_partial): Likewise.
14146 (record_full_core_xfer_partial): Likewise.
14147 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14148 instead of plongest.
14149 (gdbsim_xfer_partial): Likewise.
14150 * remote.c (remote_xfer_partial): Likewise.
14151 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14152 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14153 declaration.
14154 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14155 (rs6000_xfer_shared_libraries): Likewise.
14156 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14157 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14158 (sparc_xfer_partial): Likewise.
14159 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14160 (spu_xfer_partial): Likewise.
14161 * spu-multiarch.c (spu_xfer_partial): Likewise.
14162 * target.c (target_read_live_memory): Likewise.
14163 (memory_xfer_live_readonly_partial): Likewise.
14164 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14165 (target_xfer_partial, default_xfer_partial): Likewise.
14166 (current_xfer_partial): Likewise.
14167 * tracepoint.c (tfile_xfer_partial): Likewise.
14168 * windows-nat.c (windows_xfer_memory): Likewise. Call
14169 pulongest instead of plongest.
14170 (windows_xfer_partial): Likewise.
14171 (windows_xfer_shared_libraries): Likewise.
14172
14173 2014-01-14 Yao Qi <yao@codesourcery.com>
14174
14175 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14176 target_xfer_partial_ftype.
14177
14178 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14179
14180 PR python/15464
14181 PR python/16113
14182 * valops.c (value_struct_elt_bitpos): New function
14183 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14184 object to 'None' if the field name is an empty string ("").
14185 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14186 attribute to look for a field when 'name' is 'None'.
14187 (get_field_type): New function
14188
14189 2014-01-13 Doug Evans <dje@google.com>
14190
14191 PR symtab/16426
14192 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14193 (try_open_dwop_file): Ditto.
14194 * gdb_bfd.c: #include "vec.h".
14195 (bfdp): New typedef.
14196 (struct gdb_bfd_data): New member included_bfds.
14197 (gdb_bfd_unref): Unref all included bfds.
14198 (gdb_bfd_record_inclusion): New function.
14199 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14200
14201 2014-01-13 Tom Tromey <tromey@redhat.com>
14202
14203 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14204
14205 2014-01-13 Tom Tromey <tromey@redhat.com>
14206
14207 * defs.h (use_windows): Remove.
14208 * gdb.c (main): Update.
14209 * main.c (captured_main, gdb_main): Update.
14210 * main.h (struct captured_main_args) <use_windows>: Remove.
14211 * top.c (use_windows): Remove.
14212
14213 2014-01-13 Tom Tromey <tromey@redhat.com>
14214
14215 * defs.h (deprecated_flush_hook): Remove.
14216
14217 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14218
14219 PR threads/16216
14220 * linux-thread-db.c (try_thread_db_load): Add parameter
14221 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14222 (try_thread_db_load_from_pdir_1): Move it there from here.
14223 (try_thread_db_load_from_sdir): Update caller.
14224 (try_thread_db_load_from_dir): Move it there from here.
14225
14226 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14227
14228 * regformats/regdat.sh: Always rewrite the register file.
14229
14230 2014-01-13 Pedro Alves <palves@redhat.com>
14231
14232 * Makefile.in (CHECK_HEADERS): New variable.
14233 (check-headers:): New rule.
14234
14235 2014-01-13 Tom Tromey <tromey@redhat.com>
14236
14237 * cli/cli-setshow.c (do_set_command): Update.
14238 * defs.h (deprecated_set_hook): Remove.
14239 * top.c (deprecated_set_hook): Remove.
14240
14241 2014-01-13 Pedro Alves <palves@redhat.com>
14242
14243 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14244 the tracepoint if the PC is a pseudo-register.
14245
14246 2014-01-13 Tom Tromey <tromey@redhat.com>
14247
14248 * defs.h (XCALLOC): Remove.
14249 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14250 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14251 * dwarf2loc.c (allocate_piece_closure): Likewise.
14252 * elfread.c (elf_symfile_segments): Likewise.
14253 (elf_symfile_segments): Likewise.
14254 * gdbtypes.c (copy_type_recursive): Likewise.
14255 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14256 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14257 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14258 XCALLOC.
14259 * mt-tdep.c (mt_gdbarch_init): Likewise.
14260 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14261 XCALLOC.
14262 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14263 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14264 * registry.c (registry_alloc_data): Likewise.
14265 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14266 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14267 * serial.c (serial_fdopen_ops): Likewise.
14268 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14269 XCALLOC.
14270 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14271 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14272 not XCALLOC.
14273
14274 2014-01-13 Tom Tromey <tromey@redhat.com>
14275
14276 * defs.h (XMALLOC): Remove.
14277 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14278 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14279 * cli-out.c (struct ui_out *): Likewise.
14280 * cli/cli-dump.c (add_dump_command): Likewise.
14281 (add_dump_command): Likewise.
14282 * complaints.c (get_complaints): Likewise.
14283 (find_complaint): Likewise.
14284 * dwarf2-frame.c (execute_cfa_program): Likewise.
14285 * dwarf2read.c (abbrev_table_read_table): Likewise.
14286 * gdbarch.sh: Likewise.
14287 * gdbarch.c: Rebuild.
14288 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14289 * interps.c (interp_new): Likewise.
14290 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14291 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14292 * mi/mi-console.c (mi_console_file_new): Likewise.
14293 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14294 * mi/mi-out.c (mi_out_new): Likewise.
14295 * mi/mi-parse.c (mi_parse): Likewise.
14296 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14297 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14298 * observer.c (xalloc_observer_list_node): Likewise.
14299 * regcache.c (regcache_xmalloc_1): Likewise.
14300 * reggroups.c (reggroup_new): Likewise.
14301 (_initialize_reggroup): Likewise.
14302 * registry.c (register_data_with_cleanup): Likewise.
14303 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14304 * ser-base.c (serial_ttystate): Likewise.
14305 * ser-mingw.c (make_pipe_state): Likewise.
14306 * ser-pipe.c (pipe_open): Likewise.
14307 * serial.c (serial_open): Likewise.
14308 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14309 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14310 (tui_alloc_win_info): Likewise.
14311 (tui_add_content_elements): Likewise.
14312 * tui/tui-file.c (tui_file_new): Likewise.
14313 * tui/tui-out.c (tui_out_new): Likewise.
14314 * ui-file.c (mem_file_new): Likewise.
14315 * ui-out.c (push_level): Likewise.
14316 (make_cleanup_ui_out_end): Likewise.
14317 (append_header_to_list): Likewise.
14318 (ui_out_new): Likewise.
14319 * user-regs.c (user_reg_add_builtin): Likewise.
14320
14321 2014-01-13 Tom Tromey <tromey@redhat.com>
14322
14323 * defs.h (XZALLOC): Remove.
14324 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14325 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14326 (get_ada_tasks_inferior_data): Likewise.
14327 * auto-load.c (get_auto_load_pspace_data): Likewise.
14328 * auxv.c (get_auxv_inferior_data): Likewise.
14329 * bfd-target.c (target_bfd_reopen): Likewise.
14330 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14331 (deprecated_insert_raw_breakpoint): Likewise.
14332 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14333 * corelow.c (core_open): Likewise.
14334 * darwin-nat.c (darwin_check_new_threads): Likewise.
14335 (darwin_attach_pid): Likewise.
14336 * dummy-frame.c (dummy_frame_push): Likewise.
14337 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14338 * dwarf2loc.c (allocate_piece_closure): Likewise.
14339 * elfread.c (elf_symfile_segments): Likewise.
14340 * eval.c (ptrmath_type_p): Likewise.
14341 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14342 * gdbtypes.c (alloc_type_arch): Likewise.
14343 (alloc_type_instance): Likewise.
14344 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14345 * inf-child.c (inf_child_can_use_agent): Likewise.
14346 * inflow.c (get_inflow_inferior_data): Likewise.
14347 * infrun.c (save_infcall_suspend_state): Likewise.
14348 * jit.c (jit_reader_load): Likewise.
14349 (get_jit_objfile_data): Likewise.
14350 (get_jit_program_space_data): Likewise.
14351 (jit_object_open_impl): Likewise.
14352 (jit_symtab_open_impl): Likewise.
14353 (jit_block_open_impl): Likewise.
14354 (jit_frame_sniffer): Likewise.
14355 * linux-fork.c (add_fork): Likewise.
14356 * maint.c (make_command_stats_cleanup): Likewise.
14357 * objfiles.c (get_objfile_pspace_data): Likewise.
14358 * opencl-lang.c (struct lval_closure): Likewise.
14359 * osdata.c (osdata_start_osdata): Likewise.
14360 * progspace.c (new_address_space): Likewise.
14361 (add_program_space): Likewise.
14362 * remote-sim.c (get_sim_inferior_data): Likewise.
14363 * sh-tdep.c (sh_gdbarch_init): Likewise.
14364 * skip.c (Ignore): Likewise.
14365 (skip_delete_command): Likewise.
14366 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14367 (library_list_start_library): Likewise.
14368 (solib_aix_current_sos): Likewise.
14369 * solib-darwin.c (get_darwin_info): Likewise.
14370 (darwin_current_sos): Likewise.
14371 * solib-dsbt.c (get_dsbt_info): Likewise.
14372 * solib-ia64-hpux.c (new_so_list): Likewise.
14373 (ia64_hpux_get_solib_linkage_addr): Likewise.
14374 * solib-spu.c (append_ocl_sos): Likewise.
14375 (spu_current_sos): Likewise.
14376 * solib-svr4.c (get_svr4_info): Likewise.
14377 (svr4_keep_data_in_core): Likewise.
14378 (library_list_start_library): Likewise.
14379 (svr4_default_sos): Likewise.
14380 (svr4_read_so_list): Likewise.
14381 * solib-target.c (library_list_start_library): Likewise.
14382 (solib_target_current_sos): Likewise.
14383 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14384 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14385 * symfile.c (default_symfile_segments): Likewise.
14386 * target-descriptions.c (tdesc_data_init): Likewise.
14387 (tdesc_create_reg): Likewise.
14388 (struct tdesc_type *): Likewise.
14389 (tdesc_create_vector): Likewise.
14390 (tdesc_set_struct_size): Likewise.
14391 (struct tdesc_type *): Likewise.
14392 (tdesc_free_feature): Likewise.
14393 (tdesc_create_feature): Likewise.
14394 * windows-nat.c (windows_add_thread): Likewise.
14395 (windows_make_so): Likewise.
14396 * xml-support.c (gdb_xml_body_text): Likewise.
14397 (gdb_xml_create_parser_and_cleanup): Likewise.
14398 (xml_process_xincludes): Likewise.
14399 * xml-syscall.c (allocate_syscalls_info): Likewise.
14400 (syscall_create_syscall_desc): Likewise.
14401
14402 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14403
14404 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14405 function, with code from i386_stap_parse_special_token.
14406 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14407 (i386_stap_parse_special_token): Move code to the two functions
14408 above; simplify it.
14409
14410 2014-01-09 Pedro Alves <palves@redhat.com>
14411 Hui Zhu <hui@codesourcery.com>
14412
14413 PR gdb/16101
14414 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14415 bp_err_string. Don't mark the location shlib_disabled if the
14416 error thrown wasn't a generic or memory error. Catch errors
14417 thrown while inserting breakpoints in overlayed code. Output
14418 error message of software breakpoints.
14419 * remote.c (remote_insert_breakpoint): If this breakpoint has
14420 target-side commands but this stub doesn't support Z0 packets,
14421 throw NOT_SUPPORTED_ERROR error.
14422 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14423 * target.h (target_insert_breakpoint): Extend comment.
14424 (target_insert_hw_breakpoint): Add comment.
14425
14426 2014-01-08 Pedro Alves <palves@redhat.com>
14427
14428 * remote.c (remote_add_thread): Add threads silently if starting
14429 up.
14430 (remote_notice_new_inferior): If in all-stop, and starting up,
14431 don't call notice_new_inferior.
14432 (get_current_thread): New function, factored out from ...
14433 (add_current_inferior_and_thread): ... this. Adjust.
14434 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14435 found any thread, then select the remote's current thread as GDB's
14436 current thread too.
14437
14438 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14439
14440 * NEWS: Create a new section for the next release branch.
14441 Rename the section of the current branch, now that it has
14442 been cut.
14443
14444 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14445
14446 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14447 * version.in: Bump version to 7.7.50.DATE-cvs.
14448
14449 2014-01-08 Yao Qi <yao@codesourcery.com>
14450
14451 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14452 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14453 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14454
14455 2014-01-08 Yao Qi <yao@codesourcery.com>
14456
14457 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14458 return value of bfd_get_filename to symbol_file_add_from_bfd.
14459
14460 2014-01-08 Pierre Muller <muller@sourceware.org>
14461
14462 Fix PR16201.
14463 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14464 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14465 to prim_record_mininal_symbol_and_info.
14466 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14467 in call to prim_record_minimal_symbol_and_info.
14468 (read_pe_exported_syms): Set index field of section_data.
14469
14470 2014-01-07 Andrew Pinski <apinski@cavium.com>
14471
14472 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14473 * features/aarch64.c: Regenerate.
14474
14475 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14476
14477 * target.c (return_null): Define.
14478 (update_current_target): Use it instead of return_zero for
14479 functions that return a pointer.
14480
14481 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14482
14483 * source.c (add_path): Fix check for duplicated paths in the previously
14484 included paths.
14485
14486 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14487
14488 * ada-lang.c: Remove duplicated include statements.
14489 * alphabsd-nat.c: Ditto.
14490 * amd64-darwin-tdep.c: Ditto.
14491 * amd64fbsd-nat.c: Ditto.
14492 * auto-load.c: Ditto.
14493 * ax-gdb.c: Ditto.
14494 * breakpoint.c: Ditto.
14495 * dbxread.c: Ditto.
14496 * fork-child.c: Ditto.
14497 * gdb_usleep.c: Ditto.
14498 * i386-darwin-tdep.c: Ditto.
14499 * i386fbsd-nat.c: Ditto.
14500 * infcmd.c: Ditto.
14501 * inferior.c: Ditto.
14502 * jv-lang.c: Ditto.
14503 * linux-nat.c: Ditto.
14504 * linux-tdep.c: Ditto.
14505 * m68kbsd-nat.c: Ditto.
14506 * m68klinux-nat.c: Ditto.
14507 * microblaze-tdep.c: Ditto.
14508 * mips-linux-tdep.c: Ditto.
14509 * mn10300-tdep.c: Ditto.
14510 * nto-tdep.c: Ditto.
14511 * opencl-lang.c: Ditto.
14512 * osdata.c: Ditto.
14513 * printcmd.c: Ditto.
14514 * regcache.c: Ditto.
14515 * remote-m32r-sdi.c: Ditto.
14516 * remote.c: Ditto.
14517 * symfile.c: Ditto.
14518 * symtab.c: Ditto.
14519 * tilegx-linux-nat.c: Ditto.
14520 * tilegx-tdep.c: Ditto.
14521 * tracepoint.c: Ditto.
14522 * valops.c: Ditto.
14523 * vaxbsd-nat.c: Ditto.
14524 * windows-nat.c: Ditto.
14525 * xtensa-tdep.c: Ditto.
14526
14527 2014-01-07 Yao Qi <yao@codesourcery.com>
14528
14529 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14530
14531 2014-01-07 Yao Qi <yao@codesourcery.com>
14532 Joel Brobecker <brobecker@adacore.com>
14533
14534 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14535 (pdc_write_regs): Likewise.
14536 (fetch_regs_kernel_thread): Likewise.
14537 (store_regs_kernel_thread): Likewise.
14538
14539 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14540
14541 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14542 tagged type objects to their actual type.
14543
14544 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14545
14546 * ada-valprint.c (print_field_values): Add "language" parameter.
14547 Update calls to print_field_values and print_variant_part.
14548 Pass new parameter "language" in call to val_print instead
14549 of "current_language". Replace call to ada_val_print by call
14550 to val_print.
14551 (print_variant_part): Add "language" parameter.
14552 (ada_val_print_struct_union): Update call to print_field_values.
14553
14554 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14555
14556 * ada-valprint.c (ui_memcpy): Delete.
14557 (ada_print_floating): Update documentation. Add empty line
14558 between between function documentation and implementation.
14559 Delete variable "buffer". Use ui_file_xstrdup in place of
14560 ui_file_put. Minor adjustments following this change.
14561
14562 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14563
14564 * ada-valprint.c (ada_val_print_string): New function,
14565 extracted from ada_val_print_array.
14566 (ada_val_print_array): Replace extracted code by call
14567 to ada_val_print_string followed by a return. Move
14568 "else" branch to the function's top block.
14569
14570 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14571
14572 * ada-valprint.c (ada_val_print_array): Move implementation
14573 down. Rename parameter "offset" and "val" into "offset_aligned"
14574 and "original_value" respectively. Add parameter "offset".
14575
14576 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14577
14578 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14579 re-organizing the code. Change the "???" message printed
14580 when target type is a TYPE_CODE_UNDEF into
14581 "<ref to undefined type>".
14582
14583 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14584
14585 * ada-valprint.c (print_record): Delete, implementation inlined...
14586 (ada_val_print_struct_union): ... here. Remove call to
14587 ada_check_typedef in inlined implementation.
14588
14589 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14590
14591 * ada-valprint.c (ada_val_print_gnat_array): New function,
14592 extracted from ada_val_print_1;
14593 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14594 (ada_val_print_flt, ada_val_print_struct_union)
14595 (ada_val_print_ref): Likewise.
14596 (ada_val_print_1): Delete variables i and elttype.
14597 Replace extracted-out code by call to corresponding
14598 new functions.
14599
14600 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14601
14602 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14603
14604 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14605
14606 * ada-valprint.c (ada_val_print_1): Replace calls to
14607 ada_val_print_1 by calls to val_print.
14608
14609 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14610
14611 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14612 Update calls to self accordingly. Replace calls to c_val_print
14613 by calls to val_print.
14614
14615 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14616
14617 * ada-valprint.c (print_record): Delete declaration.
14618 (adjust_type_signedness, ada_val_print_1): Likewise.
14619 (ada_val_print): Move function implementation down.
14620 (print_variant_part, print_field_values, print_record):
14621 Move function implementation up.
14622
14623 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14624
14625 * python/py-type.c (typy_get_name): New function.
14626 (type_object_getset): Add entry for attribute "name".
14627 * NEWS: Add entry mentioning this new attribute.
14628
14629 2014-01-07 Yao Qi <yao@codesourcery.com>
14630
14631 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14632 statement.
14633
14634 2014-01-07 Yao Qi <yao@codesourcery.com>
14635
14636 * gnu-nat.c (info_port_rights): Add qualifier const to
14637 argument args.
14638
14639 2014-01-07 Yao Qi <yao@codesourcery.com>
14640
14641 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14642
14643 2014-01-07 Yao Qi <yao@codesourcery.com>
14644
14645 * gnu-nat.c (make_inf) Update declaration.
14646 (make_inf): Make it static.
14647 (inf_set_traced): Likewise.
14648 (inf_port_to_thread, inf_task_died_status): Likewise.
14649
14650 2014-01-07 Yao Qi <yao@codesourcery.com>
14651
14652 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14653
14654 2014-01-07 Yao Qi <yao@codesourcery.com>
14655
14656 * gnu-nat.c (_initialize_gnu_nat): Declare.
14657
14658 2014-01-07 Yao Qi <yao@codesourcery.com>
14659
14660 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14661 'enum bfd_endian'.
14662 (struct gdbarch_info) <byte_order>: Change type to
14663 'enum bfd_endian'.
14664 <byte_order_for_code>: Likewise.
14665 * gdbarch.c, gdbarch.h: Regenerated.
14666
14667 2014-01-06 Sasha Smundak <asmundak@google.com>
14668
14669 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14670
14671 2014-01-06 Tom Tromey <tromey@redhat.com>
14672
14673 * doublest.c (convert_doublest_to_floatformat): Use const, not
14674 CONST.
14675 * somread.c (som_symtab_read): Likewise.
14676
14677 2014-01-07 Hui Zhu <hui@codesourcery.com>
14678
14679 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14680 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14681 (gdb_bfd_fopen): Ditto.
14682 (gdb_bfd_openr): Ditto.
14683 (gdb_bfd_openw): Ditto.
14684 (gdb_bfd_openr_iovec): Ditto.
14685 (gdb_bfd_fdopenr): Ditto.
14686 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14687 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14688 with xstrdup.
14689 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14690 with xstrdup.
14691 * symfile-mem.c (symbol_file_add_from_memory): Removed
14692 gdb_bfd_stash_filename.
14693
14694 2014-01-03 Doug Evans <dje@google.com>
14695
14696 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14697 output.
14698
14699 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14700
14701 Update year range in copyright notice of all files.
14702
14703 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14704
14705 * top.c (print_gdb_version): Set copyright year to 2014.
14706
14707 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14708
14709 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14710
14711 For older changes see ChangeLog-2013.
14712 \f
14713 Local Variables:
14714 mode: change-log
14715 left-margin: 8
14716 fill-column: 74
14717 version-control: never
14718 coding: utf-8
14719 End:
This page took 0.325648 seconds and 3 git commands to generate.