add a default method for gdbarch_skip_permanent_breakpoint
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-11-12 Pedro Alves <palves@redhat.com>
2
3 * arch-utils.c (default_skip_permanent_breakpoint): New function.
4 * arch-utils.h (default_skip_permanent_breakpoint): New
5 declaration.
6 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
7 Install default_skip_permanent_breakpoint as default method.
8 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
9 (i386_gdbarch_init): Don't install it.
10 * infrun.c (resume): Assume there's always a
11 gdbarch_skip_permanent_breakpoint implementation.
12 * gdbarch.h, gdbarch.c: Regenerate.
13
14 2014-11-11 Daniel Colascione <dancol@dancol.org>
15
16 Warn about cross-PID-namespace debugging.
17 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
18 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
19 * linux-thread-db.c (check_pid_namespace_match): New function.
20 (thread_db_inferior_created): Call it.
21
22 2014-11-10 Doug Evans <xdje42@gmail.com>
23
24 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
25 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
26
27 2014-11-10 Doug Evans <xdje42@gmail.com>
28
29 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
30
31 2014-11-10 Doug Evans <xdje42@gmail.com>
32
33 PR symtab/17564
34 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
35 (lookup_static_symbol): Move definition to new location and rewrite.
36 (lookup_symbol_in_objfile): New function.
37 (lookup_symbol_global_iterator_cb): Call it.
38
39 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
40
41 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
42
43 2014-11-07 Pedro Alves <palves@redhat.com>
44
45 * infrun.c (process_event_stop_test) <subroutine check>: Don't
46 check if we did a "nexti" inside a prologue.
47 * symtab.c (in_prologue): Delete function.
48 * symtab.h (in_prologue): Delete declaration.
49
50 2014-11-06 Doug Evans <xdje42@gmail.com>
51
52 * symtab.h (lookup_global_symbol): Improve function comment.
53
54 2014-11-06 Doug Evans <xdje42@gmail.com>
55
56 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
57 All callers updated.
58 * symtab.h (lookup_global_symbol): Update decl.
59 (lookup_static_symbol): Move decl to better location.
60
61 2014-11-06 Doug Evans <xdje42@gmail.com>
62
63 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
64
65 2014-11-06 Doug Evans <xdje42@gmail.com>
66
67 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
68 All callers updated.
69 (lookup_symbol_in_all_objfiles): Renamed from
70 lookup_symbol_aux_symtabs. All callers updated.
71 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
72 All callers updated.
73 (lookup_symbol_in_objfile_symtabs): Renamed from
74 lookup_symbol_aux_objfile. All callers updated.
75
76 2014-11-06 Doug Evans <xdje42@gmail.com>
77
78 * symtab.c (lookup_symbol_in_block): Renamed from
79 lookup_symbol_aux_block. All callers updated.
80
81 2014-11-06 Doug Evans <xdje42@gmail.com>
82
83 * symtab.c (lookup_static_symbol): Renamed from
84 lookup_static_symbol_aux. All callers updated.
85 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
86 All callers updated.
87
88 2014-11-06 Doug Evans <xdje42@gmail.com>
89
90 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
91 * block.c (block_lookup_symbol): Use it.
92 * cp-support.c (make_symbol_overload_list_block): Use it.
93 * symtab.c (iterate_over_symbols): Use it.
94
95 2014-11-06 Doug Evans <xdje42@gmail.com>
96
97 * symtab.c (lookup_block_symbol): Moved to ...
98 * block.c (block_lookup_symbol): ... here and renamed.
99 All callers updated.
100 * block.h (block_lookup_symbol): Declare.
101 * symtab.h (lookup_block_symbol): Delete.
102
103 2014-11-06 Doug Evans <xdje42@gmail.com>
104
105 * ada-lang.c (ada_make_symbol_completion_list): Use
106 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
107 * symtab.c (lookup_objfile_from_block): Ditto.
108
109 2014-11-06 Doug Evans <xdje42@gmail.com>
110
111 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
112 TYPE_CODE_STRUCT.
113
114 2014-11-06 Doug Evans <xdje42@gmail.com>
115
116 * objfiles.c (get_objfile_arch): Constify.
117 * objfiles.h (get_objfile_arch): Update prototype.
118 * solib.c (solib_global_lookup): Fetch arch from objfile,
119 not target_gdbarch.
120
121 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
122
123 * nios2-tdep.c (wild_insn): Delete.
124 (profiler_insn, irqentry_insn): Delete.
125 (nios2_match_sequence): Delete.
126 (nios2_analyze_prologue): Update comments. Remove matching
127 of obsolete profiler_insn and irqentry_insn sequences.
128
129 2014-11-05 Alan Modra <amodra@gmail.com>
130
131 * charset.c (convert_between_encodings): Shrink obstack using
132 obstack_blank_fast.
133 * minsyms.c (install_minimal_symbols): Likewise.
134 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
135 to char* before doing pointer arithmetic.
136
137 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
138
139 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
140
141 2014-11-04 Pedro Alves <palves@redhat.com>
142
143 * breakpoint.c (breakpoint_thread_match): Delete function.
144 * breakpoint.h (breakpoint_thread_match): Delete declaration.
145
146 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
147
148 PR c++/17494
149 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
150 the method args also under EVAL_SKIP when evaluating method
151 calls under EVAL_SKIP.
152
153 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
154
155 * dwarf2loc.c (read_pieced_value): Do big endian
156 processing only if gdb_regnum is not -1.
157 (write_pieced_value): Ditto.
158
159 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
160
161 * arm-linux-tdep.c (arm_linux_init_abi): Use
162 info.byte_order_for_code to choose endianity of breakpoint
163 instructions snippets.
164
165 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
166
167 * arm-tdep.c (extract_arm_insn): Use
168 gdbarch_byte_order_for_code to read arm instruction.
169
170 2014-11-02 Doug Evans <xdje42@gmail.com>
171
172 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
173
174 2014-11-02 Doug Evans <xdje42@gmail.com>
175
176 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
177 main_subfile before returning.
178
179 2014-10-31 Doug Evans <xdje42@gmail.com>
180
181 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
182 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
183
184 2014-10-31 Doug Evans <xdje42@gmail.com>
185
186 * valops.c (value_cast_pointers): Fix whitespace.
187 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
188 Ditto.
189
190 2014-10-30 Doug Evans <dje@google.com>
191
192 * NEWS: Mention ability add attributes to gdb.Objfile and
193 gdb.Progspace objects.
194 * python/py-objfile.c (objfile_object): New member dict.
195 (objfpy_dealloc): Py_XDECREF dict.
196 (objfpy_initialize): Initialize dict.
197 (objfile_getset): Add __dict__.
198 (objfile_object_type): Set tp_dictoffset member.
199 * python/py-progspace.c (progspace_object): New member dict.
200 (pspy_dealloc): Py_XDECREF dict.
201 (pspy_initialize): Initialize dict.
202 (pspace_getset): Add __dict__.
203 (pspace_object_type): Set tp_dictoffset member.
204
205 2014-10-30 Yao Qi <yao@codesourcery.com>
206
207 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
208 replace '\\' with '\\\\'.
209
210 2014-10-29 Joel Brobecker <brobecker@adacore.com>
211
212 GDB 7.8.1 released.
213
214 2014-10-29 Pedro Alves <palves@redhat.com>
215
216 PR gdb/17408
217 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
218 instead of assuming a thread with a stepping range is always
219 stepping.
220
221 2014-10-29 Pedro Alves <palves@redhat.com>
222
223 PR python/17372
224 * event-top.c (change_line_handler): Call
225 gdb_rl_callback_handler_remove instead of
226 rl_callback_handler_remove.
227 (callback_handler_installed): New global.
228 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
229 (gdb_rl_callback_handler_reinstall): New functions.
230 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
231 gdb_rl_callback_handler_install instead of
232 rl_callback_handler_remove and rl_callback_handler_install.
233 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
234 instead of rl_callback_handler_remove.
235 * event-top.h (gdb_rl_callback_handler_remove)
236 (gdb_rl_callback_handler_install)
237 (gdb_rl_callback_handler_reinstall): New declarations.
238 * infrun.c (reinstall_readline_callback_handler_cleanup): New
239 cleanup function.
240 (fetch_inferior_event): Install it.
241 * top.c (gdb_readline_wrapper_line) Call
242 gdb_rl_callback_handler_remove instead of
243 rl_callback_handler_remove.
244 (gdb_readline_wrapper_cleanup): Don't call
245 rl_callback_handler_install.
246
247 2014-10-29 Pedro Alves <palves@redhat.com>
248
249 * event-top.c (command_line_handler): Clear the first byte of
250 linebuffer, when it is first allocated.
251
252 2014-10-29 Pedro Alves <palves@redhat.com>
253
254 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
255 TRY_CATCH.
256
257 2014-10-29 Pedro Alves <palves@redhat.com>
258
259 PR tui/16138
260 PR tui/17519
261 * tui/tui-interp.c (tui_is_toplevel): Delete global.
262 (tui_allowed_p): Delete function.
263 * tui/tui.c: Include "interps.h".
264 (tui_enable): Don't use tui_allowed_p. Error out here with
265 detailed error messages if the TUI is the top level interpreter,
266 or if output is not a terminal. Use newterm instead of initscr,
267 and error out if initializing the terminal fails. Also error out if
268 the terminal doesn't support cursor addressing.
269 * tui/tui.h (tui_allowed_p): Delete declaration.
270
271 2014-10-29 Joel Brobecker <brobecker@adacore.com>
272
273 * arm-tdep.c (arm_skip_stack_protector): Return early if
274 address loaded by first "ldr" instruction does not have
275 a corresponding minimal symbol. Update comment.
276
277 2014-10-29 Yao Qi <yao@codesourcery.com>
278
279 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
280 loaded address correctly of ldr instruction.
281
282 2014-10-28 Pedro Alves <palves@redhat.com>
283
284 PR gdb/12623
285 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
286 field.
287 * infrun.c (resume) <stepping breakpoint instruction>: Set the
288 thread's stepped_breakpoint field. Skip if reverse debugging.
289 Add comment.
290 (init_thread_stepping_state, handle_signal_stop): Clear the
291 thread's stepped_breakpoint field.
292
293 2014-10-27 Pedro Alves <palves@redhat.com>
294
295 * remote.c (remote_thread_alive): New, factored out from ...
296 (remote_thread_alive): ... this.
297 (remote_update_thread_list): Bail out before deleting threads if
298 the target returned an empty list, and, the current thread has a
299 magic/fake ptid.
300
301 2014-10-27 Pedro Alves <palves@redhat.com>
302
303 * infrun.c (handle_signal_stop): Also skip handlers when a random
304 signal arrives while handling a "stepi" or a "nexti". Set the
305 thread's 'step_after_step_resume_breakpoint' flag.
306
307 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
308
309 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
310 (arm_record_ld_st_imm_offset): Reimplement to cover all
311 load/store cases for ARM opcode 010.
312 (arm_record_ld_st_multiple): Reimplement to cover all
313 load/store cases for ARM opcode 100.
314
315 2014-10-26 Doug Evans <xdje42@gmail.com>
316
317 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
318
319 2014-10-26 Doug Evans <xdje42@gmail.com>
320
321 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
322 parameter "kind" to "block_index".
323 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
324 "block_index".
325 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
326
327 2014-10-26 Doug Evans <xdje42@gmail.com>
328
329 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
330
331 2014-10-26 Doug Evans <xdje42@gmail.com>
332
333 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
334 obstack_alloc.
335
336 2014-10-26 Doug Evans <xdje42@gmail.com>
337
338 * parser-defs.h (block_found): Move decl from here ...
339 * symtab.h (block_found): ... to here.
340
341 2014-10-26 Doug Evans <xdje42@gmail.com>
342
343 * symtab.h (struct field_of_this_result): Fix typo in comment.
344 (lookup_symbol_in_language): Move function comment here.
345 (lookup_symbol): Improve function comment.
346 (basic_lookup_symbol_nonlocal): Ditto.
347 (lookup_symbol_static, lookup_symbol_global): Ditto.
348 (lookup_symbol_aux_block): Ditto.
349 (lookup_language_this): Add function comment.
350 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
351 function comment.
352 (lookup_block_symbol): Improve function comment.
353 (lookup_struct): Fix capitalization in function comment.
354 (lookup_transparent_type): Add function comment.
355 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
356 Improve function comment.
357 (lookup_objfile_from_block): Add function comment.
358 * symtab.c (lookup_symbol_in_language): Update function comment.
359 (lookup_symbol, lookup_language_this): Ditto.
360 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
361 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
362 (basic_lookup_symbol_nonlocal): Ditto.
363 (lookup_symbol_static, lookup_symbol_global): Ditto.
364 (lookup_transparent_type, lookup_block_symbol): Ditto.
365
366 2014-10-25 Doug Evans <xdje42@gmail.com>
367
368 * symtab.c (types_info): Delete forward decl.
369 (functions_info, variables_info, sources_info): Ditto.
370 (_initialize_symtab): Rewrite forward decl to use
371 initialize_file_ftype.
372
373 2014-10-25 Doug Evans <xdje42@gmail.com>
374
375 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
376
377 2014-10-25 Doug Evans <xdje42@gmail.com>
378
379 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
380 of local var child_die.
381
382 2014-10-24 Don Breazeal <donb@codesourcery.com>
383
384 * infrun.c (follow_fork_inferior): Update fork message printing
385 to use target_terminal_ours_for_output instead of
386 target_terminal_ours, to use _() for all format strings, to print
387 "vfork" instead of "fork" for vforks, and to add a detach message.
388 (handle_vfork_child_exec_or_exit): Update message printing to use
389 target_terminal_ours_for_output instead of target_terminal_ours, to
390 use _() for all format strings, and to fix some formatting.
391
392 2014-10-24 Pedro Alves <palves@redhat.com>
393
394 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
395 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
396 * config/vax/vax.mh: Delete.
397 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
398 obsolete configurations section.
399 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
400 * vax-nat.c: Delete file.
401
402 2014-10-24 Pedro Alves <palves@redhat.com>
403
404 * NEWS (Removed targets): Add OS/arch column.
405
406 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
407
408 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
409 on the arg type of a constructor only if it is of reference type.
410
411 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
412
413 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
414 accessors and constants from nios2 opcodes update.
415 (nios2_get_next_pc): Likewise.
416
417 2014-10-19 Doug Evans <xdje42@gmail.com>
418
419 * gdbthread.h (set_running): Fix comment.
420 (set_executing, finish_thread_state): Fix comment.
421
422 2014-10-18 Doug Evans <xdje42@gmail.com>
423
424 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
425
426 2014-10-17 Doug Evans <dje@google.com>
427
428 * NEWS: Mention new event gdb.clear_objfiles.
429 * python/py-event.h (emit_clear_objfiles_event): Clear
430 * python/py-events.h (events_object): New member clear_objfiles.
431 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
432 event.
433 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
434 emit clear_objfiles event.
435 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
436 function.
437 (emit_clear_objfiles_event): New function.
438 (clear_objfiles): New event.
439 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
440 Declare.
441 * python/python.c (_initialize_python): Call
442 gdbpy_initialize_clear_objfiles_event.
443
444 2014-10-17 Doug Evans <dje@google.com>
445
446 * NEWS: Mention new gdb.Objfile.progspace attribute.
447 * python/py-objfile.c (objfpy_get_progspace): New function.
448 (objfile_getset): New entry for "progspace".
449
450 2014-10-17 Pedro Alves <palves@redhat.com>
451
452 PR gdb/17471
453 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
454 returns a copy of the input.
455 (run_command_1, continue_command, step_1, jump_command)
456 (signal_command, until_command, advance_command, finish_command)
457 (attach_command): Adjust and install a cleanup to free the
458 stripped args.
459
460 2014-10-17 Pedro Alves <palves@redhat.com>
461
462 PR gdb/17300
463 * infcmd.c (continue_1): If continuing all threads in the
464 foreground, make sure the inferior's terminal settings are put in
465 effect.
466
467 2014-10-17 Pedro Alves <palves@redhat.com>
468
469 PR gdb/17472
470 * annotate.c (annotate_breakpoints_invalid): Use
471 target_terminal_our_for_output instead of target_terminal_ours.
472 Give back the terminal to the target.
473 (annotate_frames_invalid): Likewise.
474
475 2014-10-17 Pedro Alves <palves@redhat.com>
476
477 * target.c (enum terminal_state): New enum.
478 (terminal_state): New global.
479 (target_terminal_init): New function.
480 (target_terminal_inferior): Skip if inferior already owns the
481 terminal.
482 (target_terminal_ours, target_terminal_ours_for_output): New
483 functions.
484 * target.h (target_terminal_init): Convert to function prototype.
485 (target_terminal_ours_for_output): Convert to function prototype
486 and tweak comment.
487 (target_terminal_ours): Convert to function prototype and tweak
488 comment.
489 * windows-nat.c (do_initial_windows_stuff): Call
490 target_terminal_init instead of child_terminal_init_with_pgrp.
491
492 2014-10-17 Pedro Alves <palves@redhat.com>
493
494 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
495 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
496 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
497 solib-osf.c.
498 * NEWS: Mention that support for alpha*-*-osf* has been removed.
499 * ada-lang.h [__alpha__ && __osf__]
500 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
501 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
502 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
503 GDB_OSABI_OSF1.
504 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
505 files.
506 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
507 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
508 * configure: Regenerate.
509 * configure.ac: Remove references to osf.
510 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
511 section. Remove all other references to osf.
512 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
513 Remove all other references to osf.
514 * dec-thread.c: Delete file.
515 * defs.h (GDB_OSABI_OSF1): Delete.
516 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
517 defined.
518 * osabi.c (gdb_osabi_names): Delete "OSF/1".
519 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
520 Delete code.
521 (unconditionally_kill_inferior)
522 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
523 * solib-osf.c: Delete file.
524
525 2014-10-17 Pedro Alves <palves@redhat.com>
526
527 * remote.c (clear_threads_listing_context): Move higher up, out of
528 the HAVE_LIBEXPAT guard.
529
530 2014-10-16 Tristan Gingold <gingold@adacore.com>
531
532 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
533 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
534 on amd64.
535
536 2014-10-15 Pedro Alves <palves@redhat.com>
537
538 * dec-thread.c (dec_thread_count_gdb_threads)
539 (dec_thread_add_gdb_thread): Delete.
540 (dec_thread_update_thread_list): Delete.
541 (dec_thread_find_new_threads): Rename to ...
542 (dec_thread_update_thread_list): ... this. Delete GDB-size
543 threads that are no longer found in dec_thread_list.
544 (resync_thread_list): Delete.
545 (dec_thread_wait): Call dec_thread_update_thread_list instead of
546 resync_thread_list.
547
548 2014-10-15 Pedro Alves <palves@redhat.com>
549
550 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
551 * remote.c (remote_update_thread_list): Skip calling prune_threads
552 if any thread listing method is supported, and instead walk over
553 the set of remote threads listed, deleting those that are not
554 found in GDB's thread list.
555
556 2014-10-15 Pedro Alves <palves@redhat.com>
557
558 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
559 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
560 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
561 (bsd_uthread_target): Adjust.
562 * corelow.c (core_open): Adjust.
563 * dec-thread.c (dec_thread_find_new_threads): Update comment.
564 (dec_thread_update_thread_list): New function.
565 (init_dec_thread_ops): Adjust.
566 * gdbthread.h (prune_threads): New declaration.
567 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
568 (thread_db_update_thread_list): ... this. Call prune_threads.
569 (init_thread_db_ops): Adjust.
570 * nto-procfs.c (procfs_find_new_threads): Rename to ...
571 (procfs_update_thread_list): ... this. Call prune_threads.
572 (procfs_attach, procfs_create_inferior, init_procfs_targets):
573 Adjust.
574 * obsd-nat.c (obsd_find_new_threads): Rename to ...
575 (obsd_update_thread_list): ... this. Call prune_threads.
576 (obsd_add_target): Adjust.
577 * procfs.c (procfs_target): Adjust.
578 (procfs_notice_thread): Update comment.
579 (procfs_find_new_threads): Rename to ...
580 (procfs_update_thread_list): ... this. Call prune_threads.
581 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
582 comment.
583 (ravenscar_wait): Adjust.
584 (ravenscar_find_new_threads): Rename to ...
585 (ravenscar_update_thread_list): ... this. Call prune_threads.
586 (init_ravenscar_thread_ops): Adjust.
587 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
588 (record_btrace_update_thread_list): ... this. Adjust comment.
589 (init_record_btrace_ops): Adjust.
590 * remote.c (remote_threads_info): Rename to ...
591 (remote_update_thread_list): ... this. Call prune_threads.
592 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
593 Adjust.
594 * sol-thread.c (check_for_thread_db): Adjust.
595 (sol_find_new_threads_callback): Rename to ...
596 (sol_update_thread_list_callback): ... this.
597 (sol_find_new_threads): Rename to ...
598 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
599 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
600 * target-delegates.c: Regenerate.
601 * target.c (target_find_new_threads): Rename to ...
602 (target_update_thread_list): ... this.
603 * target.h (struct target_ops): Rename to_find_new_threads field
604 to to_update_thread_list.
605 (target_find_new_threads): Rename to ...
606 (target_update_thread_list): ... this.
607 * thread.c (prune_threads): Make extern.
608 (update_thread_list): Adjust.
609
610 2014-10-15 Pedro Alves <palves@redhat.com>
611
612 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
613 Add describing comment. Return -1 if the qL packet is not
614 supported.
615 (struct thread_item, thread_item_t): Move higher up in
616 the file. Add comments.
617 (struct threads_parsing_context): Move higher up in
618 the file, add comments, and remote to ...
619 (struct threads_listing_context): ... this.
620 (remote_newthread_step): Don't add the thread to GDB's thread
621 database here. Instead push it to the thread_listing_context
622 list.
623 (remote_find_new_threads): Rename to ...
624 (remote_get_threads_with_ql): ... this. Add target_ops and
625 targets_listing_context parameters. Pass down context.
626 (start_thread): Adjust.
627 (clear_threads_parsing_context): Rename to ...
628 (clear_threads_listing_context): ... this.
629 (remote_get_threads_with_qxfer): New, with parts salvaged from old
630 remote_threads_info.
631 (remote_get_threads_with_qthreadinfo): Ditto.
632 (remote_threads_info): Reimplement.
633
634 2014-10-15 Pedro Alves <palves@redhat.com>
635
636 * infrun.c (resume): Don't force displaced-stepping for all
637 single-steps on software single-stepping archs.
638
639 2014-10-15 Pedro Alves <palves@redhat.com>
640
641 * breakpoint.c (single_step_breakpoints): Delete global.
642 (insert_single_step_breakpoint): Adjust to store the breakpoint
643 pointer in the current thread.
644 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
645 (cancel_single_step_breakpoints): Delete functions.
646 (breakpoint_has_location_inserted_here): Make extern.
647 (single_step_breakpoint_inserted_here_p): Adjust to walk the
648 breakpoint list.
649 * breakpoint.h (breakpoint_has_location_inserted_here): New
650 declaration.
651 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
652 (cancel_single_step_breakpoints): Remove declarations.
653 * gdbthread.h (struct thread_control_state)
654 <single_step_breakpoints>: New field.
655 (delete_single_step_breakpoints)
656 (thread_has_single_step_breakpoints_set)
657 (thread_has_single_step_breakpoint_here): New declarations.
658 * infrun.c (follow_exec): Also clear the single-step breakpoints.
659 (singlestep_breakpoints_inserted_p, singlestep_ptid)
660 (singlestep_pc): Delete globals.
661 (infrun_thread_ptid_changed): Remove references to removed
662 globals.
663 (resume_cleanups): Delete the current thread's single-step
664 breakpoints.
665 (maybe_software_singlestep): Remove references to removed globals.
666 (resume): Adjust to use thread_has_single_step_breakpoints_set and
667 delete_single_step_breakpoints.
668 (init_wait_for_inferior): Remove references to removed globals.
669 (delete_thread_infrun_breakpoints): Delete the thread's
670 single-step breakpoints too.
671 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
672 single-step breakpoints here.
673 (delete_stopped_threads_single_step_breakpoints): New function.
674 (adjust_pc_after_break): Adjust to use
675 thread_has_single_step_breakpoints_set.
676 (handle_inferior_event): Remove references to removed globals.
677 Use delete_stopped_threads_single_step_breakpoints.
678 (handle_signal_stop): Adjust to per-thread single-step
679 breakpoints. Swap test order to do cheaper tests first.
680 (switch_back_to_stepped_thread): Extend debug output. Remove
681 references to removed globals.
682 * record-full.c (record_full_wait_1): Adjust to per-thread
683 single-step breakpoints.
684 * thread.c (delete_single_step_breakpoints)
685 (thread_has_single_step_breakpoints_set)
686 (thread_has_single_step_breakpoint_here): New functions.
687 (clear_thread_inferior_resources): Also delete the thread's
688 single-step breakpoints.
689
690 2014-10-15 Pedro Alves <palves@redhat.com>
691
692 * thread.c (delete_thread_breakpoint): New function.
693 (delete_step_resume_breakpoint)
694 (delete_exception_resume_breakpoint): Use it.
695 (delete_at_next_stop): New function.
696 (clear_thread_inferior_resources): Use delete_at_next_stop.
697
698 2014-10-15 Pedro Alves <palves@redhat.com>
699
700 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
701 (breakpoint_inserted_here_p): ... here. Remove special case for
702 software single-step breakpoints.
703 (find_non_raw_software_breakpoint_inserted_here): Inline ...
704 (software_breakpoint_inserted_here_p): ... here. Remove special
705 case for software single-step breakpoints.
706 (bp_target_info_copy_insertion_state)
707 (deprecated_insert_raw_breakpoint)
708 (deprecated_remove_raw_breakpoint): Delete functions.
709 * breakpoint.h (deprecated_insert_raw_breakpoint)
710 (deprecated_remove_raw_breakpoint): Remove declarations.
711
712 2014-10-15 Pedro Alves <palves@redhat.com>
713
714 PR breakpoints/9649
715 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
716 Delete array globals.
717 (single_step_breakpoints): New global.
718 (breakpoint_xfer_memory): Remove special handling for single-step
719 breakpoints.
720 (update_breakpoints_after_exec): Delete bp_single_step
721 breakpoints.
722 (detach_breakpoints): Remove special handling for single-step
723 breakpoints.
724 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
725 (bpstat_stop_status): Add comment.
726 (bpstat_what, bptype_string, print_one_breakpoint_location)
727 (adjust_breakpoint_address, init_bp_location): Handle
728 bp_single_step.
729 (new_single_step_breakpoint): New function.
730 (set_momentary_breakpoint, bkpt_remove_location): Remove special
731 handling for single-step breakpoints.
732 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
733 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
734 Rewrite.
735 (detach_single_step_breakpoints, find_single_step_breakpoint):
736 Delete functions.
737 (breakpoint_has_location_inserted_here): New function.
738 (single_step_breakpoint_inserted_here_p): Rewrite.
739 * breakpoint.h: Remove FIXME.
740 (enum bptype) <bp_single_step>: New enum value.
741 (insert_single_step_breakpoint): Update comment.
742 * infrun.c (resume_cleanups)
743 (delete_step_thread_step_resume_breakpoint): Remove single-step
744 breakpoints.
745 (fetch_inferior_event): Install a cleanup that removes infrun
746 breakpoints.
747 (switch_back_to_stepped_thread) <expect thread advanced also>:
748 Clear step-over info.
749
750 2014-10-15 Pedro Alves <palves@redhat.com>
751
752 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
753 (delete_thread_infrun_breakpoints): New function, with parts
754 salvaged from delete_step_resume_breakpoint_callback.
755 (delete_step_thread_step_resume_breakpoint): Delete.
756 (for_each_just_stopped_thread_callback_func): New typedef.
757 (for_each_just_stopped_thread): New function.
758 (delete_just_stopped_threads_infrun_breakpoints): New function.
759 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
760 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
761 ... this. Adjust.
762 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
763
764 2014-10-15 Pedro Alves <palves@redhat.com>
765
766 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
767 trying to step past a non-steppable watchpoint.
768 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
769 field.
770 * infrun.c (struct step_over_info): Add new field
771 'nonsteppable_watchpoint_p' and adjust comments.
772 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
773 Adjust.
774 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
775 (stepping_past_nonsteppable_watchpoint): New function.
776 (step_over_info_valid_p): Also return true if stepping past a
777 nonsteppable watchpoint.
778 (proceed): Adjust call to set_step_over_info. Remove reference to
779 init_infwait_state.
780 (init_wait_for_inferior): Remove reference to init_infwait_state.
781 (waiton_ptid): Delete global.
782 (struct execution_control_state)
783 <stepped_after_stopped_by_watchpoint>: Delete field.
784 (wait_for_inferior, fetch_inferior_event): Always pass
785 minus_one_ptid to target_wait.
786 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
787 field.
788 (init_infwait_state): Delete function.
789 (handle_inferior_event): Remove infwait_state handling.
790 (handle_signal_stop) <watchpoints handling>: Adjust after
791 stepped_after_stopped_by_watchpoint removal. Don't remove
792 breakpoints here nor set infwait_state. Set the thread's
793 stepping_over_watchpoint flag, and call keep_going instead.
794 (keep_going): Handle stepping_over_watchpoint. Adjust
795 set_step_over_info calls.
796 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
797 function.
798
799 2014-10-15 Pedro Alves <palves@redhat.com>
800
801 * infrun.c (step_over_info_valid_p): New function.
802 (resume): Use step_over_info_valid_p instead of checking the
803 threads's trap_expected flag.
804
805 2014-10-15 Doug Evans <dje@google.com>
806 Walfred Tedeschi <walfred.tedeschi@intel.com>
807
808 PR python/17364
809 * python/lib/gdb/__init__.py (packages): Add "printer".
810 * python/lib/gdb/command/bound_registers.py: Moved to ...
811 * python/lib/gdb/printer/bound_registers.py: ... here.
812 Add printer to global set of builtin printers. Rename printer from
813 "bound" to "mpx_bound128".
814 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
815 registered as global "builtin" printer.
816 (add_builtin_pretty_printer): New function.
817 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
818 gdb/printer/__init__.py.
819
820 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
821
822 * Makefile.in (SFILES): Remove d-support.c.
823 (COMMON_OBS): Remove d-support.o.
824 * d-lang.h (d_parse_symbol): Remove declaration.
825 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
826 * d-support.c: Remove file.
827
828 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
829
830 * gdb/infrun.c (process_event_stop_test): Apply
831 gdbarch_addr_bits_remove to longjmp resume address.
832
833 2014-10-15 Pedro Alves <palves@redhat.com>
834
835 * regformats/microblaze.dat: Delete file.
836
837 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
838
839 * features/Makefile (microblaze-expedite): Replace pc with rpc.
840 * regformats/microblaze-with-stack-protect.dat: Regenerate.
841
842 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
843
844 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
845 as non-trivial.
846
847 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
848
849 PR c++/13403
850 PR c++/15154
851 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
852 with qualified args.
853
854 2014-10-14 Joel Brobecker <brobecker@adacore.com>
855
856 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
857 of the case where the second operand is a pointer.
858 <BINOP_SUB>: Likewise.
859
860 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
861
862 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
863 only if it is not NULL.
864 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
865 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
866 (struct probe_ops) <clear_semaphore>: Likewise.
867 * tracepoint.c (start_tracing): Call set_semaphore only if it is
868 not NULL.
869 (stop_tracing): Likewise, for clear_semaphore.
870
871 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
872
873 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
874 using language_c, instead of current_language.
875
876 2014-10-13 Doug Evans <dje@google.com>
877
878 * python/py-objfile.c (objfpy_initialize): New function.
879 (objfpy_new, objfile_to_objfile_object): Call it.
880 * python/py-progspace.c (pspy_initialize): New function.
881 (pspy_new, pspace_to_pspace_object): Call it.
882
883 2014-10-13 Miroslav Franc <mfranc@redhat.com>
884 Jan Kratochvil <jan.kratochvil@redhat.com>
885
886 Fix "save breakpoints" for "catch" command.
887 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
888 newline.
889
890 2014-10-12 Miroslav Franc <mfranc@redhat.com>
891
892 Fix "save breakpoints" for "disable $bpnum" command.
893 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
894
895 2014-10-10 Pedro Alves <palves@redhat.com>
896
897 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
898 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
899 (HFILES_NO_SRCDIR): Remove solib-irix.h.
900 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
901 and been removed.
902 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
903 * configure.ac: Remove references to IRIX.
904 * configure.host: Add *-*-irix* to the obsolete hosts section.
905 Remove all other references to irix.
906 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
907 Delete files.
908
909 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
910
911 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
912 isn't valid, release the tdesc arch data and return NULL.
913
914 2014-10-10 Pedro Alves <palves@redhat.com>
915
916 * linux-tdep.c: Include observer.h.
917 (linux_inferior_data): New global.
918 (struct linux_info): New structure.
919 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
920 (get_linux_inferior_data): New functions.
921 (linux_vsyscall_range): Rename to ...
922 (linux_vsyscall_range_raw): ... this.
923 (linux_vsyscall_range): New function; handles caching.
924 (_initialize_linux_tdep): Register linux_inferior_data. Install
925 inferior_exit and inferior_appeared observers.
926
927 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
928 Pedro Alves <palves@redhat.com>
929
930 PR symtab/14466
931 * solib-svr4.c (svr4_read_so_list): Rename to ...
932 (svr4_current_sos_1): ... this and change the function comment.
933 (svr4_current_sos): New function.
934
935 2014-10-10 Pedro Alves <palves@redhat.com>
936
937 * arch-utils.c (default_vsyscall_range): New function.
938 * arch-utils.h (default_vsyscall_range): New declaration.
939 * gdbarch.sh (vsyscall_range): New hook.
940 * gdbarch.h, gdbarch.c: Regenerate.
941 * linux-tdep.c (linux_vsyscall_range): New function.
942 (linux_init_abi): Install linux_vsyscall_range as
943 vsyscall_range gdbarch hook.
944 * memrange.c (address_in_mem_range): New function.
945 * memrange.h (address_in_mem_range): New declaration.
946 * symfile-mem.c (find_vdso_size): Delete function.
947 (add_vsyscall_page): Use gdbarch_vsyscall_range.
948
949 2014-10-10 Pedro Alves <palves@redhat.com>
950
951 * infrun.c (normal_stop): Fix typo in comment.
952
953 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
954
955 PR tdep/9390
956 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
957 typo when using logical AND to determine instruction type.
958
959 2014-10-09 Yao Qi <yao@codesourcery.com>
960
961 * infrun.c (handle_signal_stop): Remove local variable
962 'printed'.
963
964 2014-10-08 Stan Shebs <stan@codesourcery.com>
965
966 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
967
968 2014-10-08 Gary Benson <gbenson@redhat.com>
969
970 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
971
972 2014-10-08 Gary Benson <gbenson@redhat.com>
973
974 * common/common-defs.h: Include common-exceptions.h.
975 * exceptions.h: Do not include common-exceptions.h.
976
977 2014-10-08 Gary Benson <gbenson@redhat.com>
978
979 * common/common-defs.h: Include cleanups.h.
980 * common/common-exceptions.c: Do not include cleanups.h.
981 * utils.h: Likewise.
982
983 2014-10-08 Gary Benson <gbenson@redhat.com>
984
985 * ada-lang.c: Do not include exceptions.h.
986 * ada-valprint.c: Likewise.
987 * amd64-tdep.c: Likewise.
988 * auto-load.c: Likewise.
989 * block.c: Likewise.
990 * break-catch-throw.c: Likewise.
991 * breakpoint.c: Likewise.
992 * btrace.c: Likewise.
993 * c-lang.c: Likewise.
994 * cli/cli-cmds.c: Likewise.
995 * cli/cli-interp.c: Likewise.
996 * cli/cli-script.c: Likewise.
997 * completer.c: Likewise.
998 * corefile.c: Likewise.
999 * corelow.c: Likewise.
1000 * cp-abi.c: Likewise.
1001 * cp-support.c: Likewise.
1002 * cp-valprint.c: Likewise.
1003 * darwin-nat.c: Likewise.
1004 * dwarf2-frame-tailcall.c: Likewise.
1005 * dwarf2-frame.c: Likewise.
1006 * dwarf2loc.c: Likewise.
1007 * dwarf2read.c: Likewise.
1008 * eval.c: Likewise.
1009 * event-loop.c: Likewise.
1010 * event-top.c: Likewise.
1011 * f-valprint.c: Likewise.
1012 * frame-unwind.c: Likewise.
1013 * frame.c: Likewise.
1014 * gdbtypes.c: Likewise.
1015 * gnu-v2-abi.c: Likewise.
1016 * gnu-v3-abi.c: Likewise.
1017 * guile/scm-auto-load.c: Likewise.
1018 * guile/scm-breakpoint.c: Likewise.
1019 * guile/scm-cmd.c: Likewise.
1020 * guile/scm-frame.c: Likewise.
1021 * guile/scm-lazy-string.c: Likewise.
1022 * guile/scm-param.c: Likewise.
1023 * guile/scm-symbol.c: Likewise.
1024 * guile/scm-type.c: Likewise.
1025 * hppa-hpux-tdep.c: Likewise.
1026 * i386-tdep.c: Likewise.
1027 * inf-loop.c: Likewise.
1028 * infcall.c: Likewise.
1029 * infcmd.c: Likewise.
1030 * infrun.c: Likewise.
1031 * interps.c: Likewise.
1032 * interps.h: Likewise.
1033 * jit.c: Likewise.
1034 * linespec.c: Likewise.
1035 * linux-nat.c: Likewise.
1036 * linux-thread-db.c: Likewise.
1037 * m32r-rom.c: Likewise.
1038 * main.c: Likewise.
1039 * memory-map.c: Likewise.
1040 * mi/mi-cmd-break.c: Likewise.
1041 * mi/mi-cmd-stack.c: Likewise.
1042 * mi/mi-interp.c: Likewise.
1043 * mi/mi-main.c: Likewise.
1044 * monitor.c: Likewise.
1045 * nto-procfs.c: Likewise.
1046 * objc-lang.c: Likewise.
1047 * p-valprint.c: Likewise.
1048 * parse.c: Likewise.
1049 * ppc-linux-tdep.c: Likewise.
1050 * printcmd.c: Likewise.
1051 * probe.c: Likewise.
1052 * python/py-auto-load.c: Likewise.
1053 * python/py-breakpoint.c: Likewise.
1054 * python/py-cmd.c: Likewise.
1055 * python/py-finishbreakpoint.c: Likewise.
1056 * python/py-frame.c: Likewise.
1057 * python/py-framefilter.c: Likewise.
1058 * python/py-function.c: Likewise.
1059 * python/py-gdb-readline.c: Likewise.
1060 * python/py-inferior.c: Likewise.
1061 * python/py-infthread.c: Likewise.
1062 * python/py-lazy-string.c: Likewise.
1063 * python/py-linetable.c: Likewise.
1064 * python/py-param.c: Likewise.
1065 * python/py-prettyprint.c: Likewise.
1066 * python/py-symbol.c: Likewise.
1067 * python/py-type.c: Likewise.
1068 * python/py-value.c: Likewise.
1069 * python/python-internal.h: Likewise.
1070 * python/python.c: Likewise.
1071 * record-btrace.c: Likewise.
1072 * record-full.c: Likewise.
1073 * regcache.c: Likewise.
1074 * remote-fileio.c: Likewise.
1075 * remote-mips.c: Likewise.
1076 * remote.c: Likewise.
1077 * rs6000-aix-tdep.c: Likewise.
1078 * rs6000-nat.c: Likewise.
1079 * skip.c: Likewise.
1080 * solib-darwin.c: Likewise.
1081 * solib-dsbt.c: Likewise.
1082 * solib-frv.c: Likewise.
1083 * solib-ia64-hpux.c: Likewise.
1084 * solib-spu.c: Likewise.
1085 * solib-svr4.c: Likewise.
1086 * solib.c: Likewise.
1087 * spu-tdep.c: Likewise.
1088 * stack.c: Likewise.
1089 * stap-probe.c: Likewise.
1090 * symfile-mem.c: Likewise.
1091 * symmisc.c: Likewise.
1092 * target.c: Likewise.
1093 * thread.c: Likewise.
1094 * top.c: Likewise.
1095 * tracepoint.c: Likewise.
1096 * tui/tui-interp.c: Likewise.
1097 * typeprint.c: Likewise.
1098 * utils.c: Likewise.
1099 * valarith.c: Likewise.
1100 * valops.c: Likewise.
1101 * valprint.c: Likewise.
1102 * value.c: Likewise.
1103 * varobj.c: Likewise.
1104 * windows-nat.c: Likewise.
1105 * xml-support.c: Likewise.
1106
1107 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1108
1109 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1110 name implies.
1111 (extended_mips16_next_pc): Update accordingly.
1112
1113 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1114
1115 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1116 function.
1117 (micromips_instruction_is_compact_branch): Likewise.
1118 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1119 or a compact jump, reaching a jump delay slot, or seeing a
1120 second non-prologue instruction.
1121 (micromips_scan_prologue): Also terminate scanning upon seeing a
1122 compact branch or jump, or reaching a branch or jump delay slot.
1123 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1124 or jump delay slot, or seeing a second non-prologue instruction.
1125 (mips32_instruction_has_delay_slot): Retain instruction
1126 examination code only, update arguments accordingly and move
1127 instruction fetch pieces to...
1128 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1129 (micromips_instruction_has_delay_slot): Likewise and to...
1130 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1131 (mips16_instruction_has_delay_slot): Likewise and to...
1132 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1133 (mips_single_step_through_delay): Update accordingly.
1134 (mips_adjust_breakpoint_address): Likewise.
1135
1136 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1137
1138 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1139 !mustbe32 also return 1 for 32-bit instructions.
1140 (mips16_instruction_has_delay_slot): Likewise. Add an
1141 explanatory comment.
1142
1143 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1144
1145 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1146 symbols special.
1147
1148 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1149
1150 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1151 update comments.
1152 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1153 for the breakpoint's address. Don't preinitialize `placed_size'.
1154 (insert_bp_location): Set `reqstd_address' rather than
1155 `placed_address'.
1156 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1157 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1158 address.
1159 (bkpt_remove_location): Likewise.
1160 (deprecated_insert_raw_breakpoint): Likewise.
1161 (deprecated_remove_raw_breakpoint): Likewise.
1162 (find_single_step_breakpoint): Likewise.
1163 * mem-break.c (default_memory_insert_breakpoint): Use
1164 `reqstd_address' for the breakpoint's address. Don't set
1165 `placed_address' or `placed_size' if breakpoint contents couldn't
1166 have been determined.
1167 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1168 the breakpoint's address.
1169 (remote_insert_hw_breakpoint): Likewise. Don't set
1170 `placed_address' or `placed_size' if breakpoint couldn't have been
1171 set.
1172 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1173 `reqstd_address' for the breakpoint's address.
1174 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1175 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1176 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1177 * microblaze-linux-tdep.c
1178 (microblaze_linux_memory_remove_breakpoint): Likewise.
1179 * monitor.c (monitor_insert_breakpoint): Likewise.
1180 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1181 (procfs_insert_hw_breakpoint): Likewise.
1182 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1183 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1184 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1185 * remote-mips.c (mips_insert_breakpoint): Likewise.
1186 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1187
1188 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1189
1190 * valops.c (value_assign): Check for bit field assignments
1191 before calling architecture-specific register value
1192 conversion functions.
1193
1194 2014-10-03 Pierre Muller <muller@sourceware.org>
1195
1196 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1197
1198 2014-10-02 Pedro Alves <palves@redhat.com>
1199
1200 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1201 threads_are_executing.
1202 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1203 describing comment.
1204 * gdbthread.h (threads_are_executing): Declare.
1205 (handle_signal_stop) <random signals>: Don't print about the
1206 signal here if stopping.
1207 (end_stepping_range): Don't notify observers here.
1208 (normal_stop): Update the thread list. If stopped by a random
1209 signal or a stepping range ended, notify observers.
1210 * thread.c (threads_executing): New global.
1211 (init_thread_list): Clear 'threads_executing'.
1212 (set_executing): Set or clear 'threads_executing'.
1213 (threads_are_executing): New function.
1214 (update_threads_executing): New function.
1215 (update_thread_list): Use it.
1216
1217 2014-10-02 Pedro Alves <palves@redhat.com>
1218
1219 PR breakpoints/17431
1220 * breakpoint.c (update_breakpoints_after_exec): Don't create
1221 overlay, longjmp, std terminate nor exception breakpoints here.
1222
1223 2014-10-02 Pedro Alves <palves@redhat.com>
1224
1225 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1226 Adjust comments.
1227 * inferior.c (find_inferior_for_program_space): Give preference to
1228 the current inferior.
1229 * inferior.h (find_inferior_for_program_space): Update comment.
1230 * progspace.c (switch_to_program_space_and_thread): Prefer the
1231 current inferior if it's bound to the program space requested. If
1232 the inferior found doesn't have a PID yet, don't bother looking up
1233 a thread.
1234 * progspace.h (switch_to_program_space_and_thread): Adjust
1235 comment.
1236 * thread.c (any_thread_of_process, any_live_thread_of_process):
1237 Give preference to the current thread.
1238
1239 2014-10-01 Pedro Alves <palves@redhat.com>
1240
1241 * breakpoint.c (insert_bp_location): Error out if inserting a
1242 software breakpoint at a read-only address.
1243 * target.c (memory_xfer_check_region): New function, factored out
1244 from ...
1245 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1246 ULONGEST.
1247 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1248 against the memory region attributes.
1249
1250 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1251
1252 * NEWS: Announce new exit-code field in -list-thread-groups
1253 output.
1254 * inferior.c (exit_inferior_1): Don't clear exit code.
1255 (inferior_appeared): Clear exit code.
1256 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1257 code.
1258
1259 2014-10-01 Pedro Alves <palves@redhat.com>
1260
1261 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1262 GENERATED" along with emacs/vi read-only markers.
1263 * regformats/aarch64.dat: Regenerate.
1264 * regformats/arm-with-iwmmxt.dat: Regenerate.
1265 * regformats/arm-with-neon.dat: Regenerate.
1266 * regformats/arm-with-vfpv2.dat: Regenerate.
1267 * regformats/arm-with-vfpv3.dat: Regenerate.
1268 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1269 * regformats/i386/amd64-avx.dat: Regenerate.
1270 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1271 * regformats/i386/amd64-avx512.dat: Regenerate.
1272 * regformats/i386/amd64-linux.dat: Regenerate.
1273 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1274 * regformats/i386/amd64-mpx.dat: Regenerate.
1275 * regformats/i386/amd64.dat: Regenerate.
1276 * regformats/i386/i386-avx-linux.dat: Regenerate.
1277 * regformats/i386/i386-avx.dat: Regenerate.
1278 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1279 * regformats/i386/i386-avx512.dat: Regenerate.
1280 * regformats/i386/i386-linux.dat: Regenerate.
1281 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1282 * regformats/i386/i386-mmx.dat: Regenerate.
1283 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1284 * regformats/i386/i386-mpx.dat: Regenerate.
1285 * regformats/i386/i386.dat: Regenerate.
1286 * regformats/i386/x32-avx-linux.dat: Regenerate.
1287 * regformats/i386/x32-avx.dat: Regenerate.
1288 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1289 * regformats/i386/x32-avx512.dat: Regenerate.
1290 * regformats/i386/x32-linux.dat: Regenerate.
1291 * regformats/i386/x32.dat: Regenerate.
1292 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1293 * regformats/mips-dsp-linux.dat: Regenerate.
1294 * regformats/mips-linux.dat: Regenerate.
1295 * regformats/mips64-dsp-linux.dat: Regenerate.
1296 * regformats/mips64-linux.dat: Regenerate.
1297 * regformats/nios2-linux.dat: Regenerate.
1298 * regformats/rs6000/powerpc-32.dat: Regenerate.
1299 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1300 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1301 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1302 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1303 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1304 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1305 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1306 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1307 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1308 * regformats/s390-linux32.dat: Regenerate.
1309 * regformats/s390-linux32v1.dat: Regenerate.
1310 * regformats/s390-linux32v2.dat: Regenerate.
1311 * regformats/s390-linux64.dat: Regenerate.
1312 * regformats/s390-linux64v1.dat: Regenerate.
1313 * regformats/s390-linux64v2.dat: Regenerate.
1314 * regformats/s390-te-linux64.dat: Regenerate.
1315 * regformats/s390x-linux64.dat: Regenerate.
1316 * regformats/s390x-linux64v1.dat: Regenerate.
1317 * regformats/s390x-linux64v2.dat: Regenerate.
1318 * regformats/s390x-te-linux64.dat: Regenerate.
1319 * regformats/tic6x-c62x-linux.dat: Regenerate.
1320 * regformats/tic6x-c62x.dat: Regenerate.
1321 * regformats/tic6x-c64x-linux.dat: Regenerate.
1322 * regformats/tic6x-c64x.dat: Regenerate.
1323 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1324 * regformats/tic6x-c64xp.dat: Regenerate.
1325
1326 2014-10-01 Pedro Alves <palves@redhat.com>
1327
1328 * features/Makefile: Update comments.
1329 (XMLTOC): List all xml files we build C files from.
1330 (clean-cfiles): New rule.
1331
1332 2014-10-01 Pedro Alves <palves@redhat.com>
1333
1334 * features/i386/amd64-avx512-linux.c: Regenerate.
1335 * features/i386/amd64-avx512.c: Regenerate.
1336 * features/i386/x32-avx512-linux.c: Regenerate.
1337 * features/i386/x32-avx512.c: Regenerate.
1338
1339 2014-10-01 Pedro Alves <palves@redhat.com>
1340
1341 * features/Makefile (WHICH): Remove arm-with-m,
1342 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1343
1344 2014-10-01 Pedro Alves <palves@redhat.com>
1345
1346 * features/Makefile (clean): New rule.
1347
1348 2014-10-01 Pedro Alves <palves@redhat.com>
1349
1350 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1351 (zmm14h): Add missing end quotes.
1352
1353 2014-10-01 Pedro Alves <palves@redhat.com>
1354
1355 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1356 * features/aarch64.c: Regenerate.
1357
1358 2014-09-30 Don Breazeal <donb@codesourcery.com>
1359
1360 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1361 code so as to work with follow_fork_inferior.
1362 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1363 (inf_ttrace_create_inferior): Remove reference to
1364 inf_ttrace_vfork_ppid.
1365 (inf_ttrace_attach): Ditto.
1366 (inf_ttrace_detach): Ditto.
1367 (inf_ttrace_kill): Use current_inferior instead of
1368 inf_ttrace_vfork_ppid.
1369 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1370 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1371 inferior away from the parent.
1372 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1373 target_follow_fork.
1374 (follow_fork_inferior): New function.
1375 (follow_inferior_reset_breakpoints): Make function static.
1376 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1377 * linux-nat.c (linux_child_follow_fork): Move target-independent
1378 code to infrun.c:follow_fork_inferior.
1379
1380 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1381
1382 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1383 * gdbarch.c: Regenerate.
1384 * gdbarch.h: Likewise.
1385 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1386 gdbarch method 'regset_from_core_section'.
1387 (get_core_register_section): Remove handling for the case that
1388 regset == NULL and regset_from_core_section is defined.
1389 (get_core_registers): Drop check for deleted method.
1390 * procfs.c (procfs_do_thread_registers): Adjust comment.
1391
1392 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1393
1394 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1395 (linux_nat_make_corefile_notes): Remove.
1396 (linux_target_install_ops): Do not set target method
1397 'make_corefile_notes'.
1398 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1399 Remove field.
1400 (linux_corefile_thread_callback): Instead of args->collect, call
1401 linux_collect_thread_registers.
1402 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1403 NULL unless there is a regset iterator.
1404 (linux_make_corefile_notes_1): Remove.
1405 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1406 by linux_make_corefile_notes.
1407 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1408
1409 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1410
1411 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1412 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1413 Remove.
1414 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1415
1416 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1417
1418 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1419 (xtensa_iterate_over_regset_sections): New.
1420 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1421
1422 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1423
1424 * vax-tdep.c (vax_regset_from_core_section): Remove.
1425 (vax_iterate_over_regset_sections): New.
1426 (vax_gdbarch_init): Adjust gdbarch initialization.
1427
1428 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1429
1430 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1431 (tilegx_regset_from_core_section): Remove.
1432 (tilegx_iterate_over_regset_sections): New.
1433 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1434
1435 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1436
1437 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1438 (sparc_iterate_over_regset_sections): New.
1439 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1440 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1441 targets.
1442 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1443 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1444 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1445 target method 'make_corefile_notes'.
1446
1447 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1448
1449 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1450 'sizeof_gregset' and 'sizeof_fpregset'.
1451 * sh-tdep.c (sh_regset_from_core_section): Remove.
1452 (sh_iterate_over_regset_sections): New.
1453 (sh_gdbarch_init): Adjust gdbarch initialization.
1454 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1455 sizeof_fpregset.
1456 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1457 'sizeof_gregset'.
1458
1459 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1460
1461 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1462 (score7_linux_iterate_over_regset_sections): New.
1463 (score_gdbarch_init): Adjust gdbarch initialization.
1464
1465 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1466
1467 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1468 FreeBSD targets.
1469 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1470 method 'make_corefile_notes'.
1471 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1472 (ppcfbsd_regset_from_core_section): Remove.
1473 (ppcfbsd_iterate_over_regset_sections): New.
1474 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1475 initialization.
1476 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1477 (ppcnbsd_iterate_over_regset_sections): New.
1478 (ppcnbsd_init_abi): Adjust.
1479 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1480 (ppcobsd_iterate_over_regset_sections): New.
1481 (ppcobsd_init_abi): Adjust.
1482 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1483 (rs6000_aix_iterate_over_regset_sections): New.
1484 (rs6000_aix_init_osabi): Adjust.
1485
1486 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1487
1488 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1489 (nios2_regset_from_core_section): Remove.
1490 (nios2_iterate_over_regset_sections): New.
1491 (nios2_linux_init_abi): Adjust gdbarch initialization.
1492
1493 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1494
1495 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1496 (am33_iterate_over_regset_sections): New.
1497 (am33_linux_init_osabi): Adjust gdbarch initialization.
1498
1499 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1500
1501 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1502 (mips_linux_iterate_over_regset_sections): New.
1503 (mips_linux_init_abi): Adjust gdbarch initialization.
1504 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1505 (mips64obsd_iterate_over_regset_sections): New.
1506 (mips64obsd_init_abi): Adjust.
1507 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1508 (mipsnbsd_iterate_over_regset_sections): New.
1509 (mipsnbsd_init_abi): Adjust.
1510
1511 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1512
1513 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1514 (m88k_iterate_over_regset_sections): New.
1515 (m88k_gdbarch_init): Adjust gdbarch initialization.
1516
1517 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1518
1519 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1520 (ia64_linux_iterate_over_regset_sections): New.
1521 (ia64_linux_init_abi): Adjust gdbarch initialization.
1522
1523 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1524
1525 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1526 (m68kbsd_iterate_over_regset_sections): New.
1527 (m68kbsd_init_abi): Adjust gdbarch initialization.
1528 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1529 (m68k_linux_iterate_over_regset_sections): New.
1530 (m68k_linux_init_abi): Adjust gdbarch initialization.
1531
1532 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1533
1534 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1535 (m32r_linux_regset_from_core_section): Remove.
1536 (m32r_linux_iterate_over_regset_sections): New.
1537 (m32r_linux_init_abi): Adjust gdbarch initialization.
1538
1539 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1540
1541 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1542 (amd64obsd_iterate_over_regset_sections): New.
1543 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1544 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1545 Remove.
1546 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1547 regset_from_core_section initialization.
1548 * i386-tdep.c (i386_regset_from_core_section): Remove.
1549 (i386_iterate_over_regset_sections): New.
1550 (i386_gdbarch_init): Adjust gdbarch initialization.
1551 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1552 (i386_iterate_over_regset_sections): New prototype.
1553 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1554 Remove.
1555 (i386obsd_aout_iterate_over_regset_sections): New.
1556 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1557 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1558 targets.
1559 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1560 (amd64fbsd_init_abi): Call fbsd_init_abi.
1561 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1562 (i386fbsd4_init_abi): Call fbsd_init_abi.
1563 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1564 target method 'make_corefile_notes'.
1565 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1566
1567 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1568
1569 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1570 (hppa_hpux_iterate_over_regset_sections): New.
1571 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1572 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1573 (hppa_linux_iterate_over_regset_sections): New.
1574 (hppa_linux_init_abi): Adjust.
1575 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1576 (hppanbsd_iterate_over_regset_sections): New.
1577 (hppanbsd_init_abi): Adjust.
1578 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1579 (hppaobsd_iterate_over_regset_sections): New.
1580 (hppaobsd_init_abi): Adjust.
1581
1582 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1583
1584 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1585 (frv_linux_iterate_over_regset_sections): New.
1586 (frv_linux_init_abi): Adjust gdbarch initialization.
1587
1588 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1589
1590 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1591 (armbsd_iterate_over_regset_sections): New prototype.
1592 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1593 (armbsd_iterate_over_regset_sections): New.
1594 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1595 initialization.
1596
1597 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1598
1599 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1600 (alpha_linux_iterate_over_regset_sections): New.
1601 (alpha_linux_init_abi): Adjust gdbarch initialization.
1602 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1603 prototype.
1604 (alphanbsd_iterate_over_regset_sections): New prototype.
1605
1606 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1607
1608 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1609 Remove.
1610 (aarch64_linux_iterate_over_regset_sections): New.
1611 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1612
1613 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1614
1615 * fbsd-tdep.c: New file.
1616 * fbsd-tdep.h: New file.
1617 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1618 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1619 (ALLDEPFILES): Add fbsd-tdep.c.
1620
1621 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1622
1623 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1624 parameter.
1625 * gdbarch.h: Regenerate.
1626 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1627 iterator.
1628 (get_core_register_section): Add parameter 'regset' and use it, if
1629 set. Add parameter 'min_size' and verify the bfd section size
1630 against it.
1631 (get_core_registers_cb): Add parameter 'regset' and pass it to
1632 get_core_register section. For the "standard" register sections
1633 ".reg" and ".reg2", set an appropriate default for human_name.
1634 (get_core_registers): Don't abort when the gdbarch has an iterator
1635 but no regset_from_core_section. Add NULL/0 for parameters
1636 'regset'/'min_size' in calls to get_core_register_section.
1637 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1638 'regset' and use it instead of calling the
1639 regset_from_core_section gdbarch method.
1640 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1641 * i386-tdep.c (i386_supply_xstateregset)
1642 (i386_collect_xstateregset, i386_xstateregset): Moved to
1643 i386-linux-tdep.c.
1644 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1645 .reg-xstate.
1646 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1647 core file support only if the regset iterator hasn't been set.
1648 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1649 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1650 Moved from i386-tdep.c and renamed to *_linux*.
1651 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1652 each callback invocation. Allow any .reg-xstate size when reading
1653 from a core file.
1654 * amd64-tdep.c (amd64_supply_xstateregset)
1655 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1656 amd64-linux-tdep.c.
1657 (amd64_regset_from_core_section): Remove.
1658 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1659 install an amd64-specific regset_from_core_section gdbarch method.
1660 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1661 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1662 Moved from amd64-tdep.c and renamed to *_linux*.
1663 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1664 to each callback invocation. Allow any .reg-xstate size when
1665 reading from a core file.
1666 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1667 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1668 each callback invocation.
1669 (arm_linux_init_abi): No longer set the regset_from_core_section
1670 gdbarch method.
1671 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1672 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1673 each callback invocation.
1674 (ppc_linux_init_abi): No longer set the regset_from_core_section
1675 gdbarch method.
1676 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1677 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1678 (s390_regset_from_core_section): Remove.
1679 (s390_iterate_over_regset_sections): Add regset parameter to each
1680 callback invocation.
1681 (s390_gdbarch_init): No longer set the regset_from_core_section
1682 gdbarch method. Drop initialization of deleted tdep fields.
1683
1684 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1685
1686 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1687 (amd64_linux_iterate_over_regset_sections): New.
1688 (amd64_linux_init_abi_common): Don't install the regset section
1689 list, but the new iterator in gdbarch.
1690 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1691 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1692 (arm_linux_iterate_over_regset_sections): ...here. New function.
1693 (arm_linux_init_abi): Set iterator instead of section list.
1694 * corelow.c (get_core_registers_cb): New function, logic moved
1695 from...
1696 (get_core_registers): ...loop body here. Use new iterator method
1697 instead of walking through the regset section list.
1698 * gdbarch.sh: Remove 'core_regset_sections'. New method
1699 'iterate_over_regset_sections'. New typedef
1700 'iterate_over_regset_sections_cb'.
1701 * gdbarch.c: Regenerate.
1702 * gdbarch.h: Likewise.
1703 * i386-linux-tdep.c (i386_linux_regset_sections)
1704 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1705 Remove.
1706 (i386_linux_iterate_over_regset_sections): New.
1707 (i386_linux_init_abi): Don't choose a regset section list, but
1708 install new iterator in gdbarch.
1709 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1710 (linux_collect_regset_section_cb): New function, logic moved
1711 from...
1712 (linux_collect_thread_registers): ...loop body here. Use iterator
1713 method instead of walking through list.
1714 (linux_make_corefile_notes_1): Check for presence of iterator
1715 method instead of regset section list.
1716 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1717 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1718 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1719 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1720 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1721 (ppc_linux_init_abi): Don't choose from above regset section
1722 lists, but install new iterator in gdbarch.
1723 * regset.h (struct core_regset_section): Remove.
1724 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1725 have_linux_v1, have_linux_v2, and have_tdb.
1726 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1727 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1728 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1729 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1730 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1731 (s390_iterate_over_regset_sections): ...here. New function. Use
1732 new tdep fields.
1733 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1734 regset section lists, but install new iterator.
1735
1736 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1737
1738 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1739
1740 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1741
1742 * progspace.c (print_program_space): Don't prune program spaces
1743 before printing them.
1744
1745 2014-09-25 Pedro Alves <palves@redhat.com>
1746
1747 * infrun.c (user_visible_resume_ptid): Don't check
1748 singlestep_breakpoints_inserted_p.
1749
1750 2014-09-25 Pedro Alves <palves@redhat.com>
1751
1752 * breakpoint.c (should_be_inserted): Add debug output.
1753
1754 2014-09-25 Pedro Alves <palves@redhat.com>
1755
1756 * infrun.c (stepping_past_instruction_at)
1757 (clear_exit_convenience_vars): Point at infrun.h instead of
1758 inferior.h.
1759 (handle_signal_stop): Fix typo.
1760
1761 2014-09-24 Yao Qi <yao@codesourcery.com>
1762
1763 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1764 bitmask.
1765
1766 2014-09-22 Gary Benson <gbenson@redhat.com>
1767
1768 * target.c (target_stop): Updated comment.
1769
1770 2014-09-22 Gary Benson <gbenson@redhat.com>
1771
1772 * target/target.h (target_stop_ptid): Renamed as...
1773 (target_stop_and_wait): New function. Updated comment.
1774 All uses updated.
1775 (target_continue_ptid): Renamed as...
1776 (target_continue_no_signal): New function. Updated comment.
1777 All uses updated.
1778
1779 2014-09-22 Pedro Alves <palves@redhat.com>
1780
1781 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1782 and "auto" merged.
1783 * breakpoint.c (enum ugll_insert_mode): New enum.
1784 (always_inserted_mode): Now a plain boolean.
1785 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1786 (breakpoints_always_inserted_mode): Delete.
1787 (breakpoints_should_be_inserted_now): New function.
1788 (insert_breakpoints): Pass UGLL_INSERT to
1789 update_global_location_list instead of calling
1790 insert_breakpoint_locations manually.
1791 (create_solib_event_breakpoint_1): New, factored out from ...
1792 (create_solib_event_breakpoint): ... this.
1793 (create_and_insert_solib_event_breakpoint): Use
1794 create_solib_event_breakpoint_1 instead of calling
1795 insert_breakpoint_locations manually.
1796 (update_global_location_list): Change parameter type from boolean
1797 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1798 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1799 (update_global_location_list_nothrow): Change parameter type from
1800 boolean to enum ugll_insert_mode.
1801 (_initialize_breakpoint): "breakpoint always-inserted" option is
1802 now a boolean command. Update help text.
1803 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1804 (breakpoints_should_be_inserted_now): New declaration.
1805 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1806 Remove breakpoints_always_inserted_mode check.
1807 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1808 * remote.c (remote_start_remote): Likewise.
1809
1810 2014-09-22 Pedro Alves <palves@redhat.com>
1811
1812 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1813 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1814 Instead, pass UGLL_INSERT to update_global_location_list.
1815 (update_global_location_list): Change parameter type from boolean
1816 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1817 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1818 (create_solib_event_breakpoint_1): New, factored out from ...
1819 (create_solib_event_breakpoint): ... this.
1820 (create_and_insert_solib_event_breakpoint): Use
1821 create_solib_event_breakpoint_1 instead of calling
1822 insert_breakpoint_locations manually.
1823 (update_global_location_list): Handle UGLL_INSERT.
1824
1825 2014-09-22 Pedro Alves <palves@redhat.com>
1826
1827 * breakpoint.c (enum ugll_insert_mode): New enum.
1828 (update_global_location_list)
1829 (update_global_location_list_nothrow): Change parameter type from
1830 boolean to enum ugll_insert_mode. All callers adjusted.
1831
1832 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1833
1834 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1835 SystemTap support in GDB.
1836
1837 2014-09-19 Don Breazeal <donb@codesourcery.com>
1838
1839 * linux-nat.c (linux_handle_extended_wait): Call
1840 linux_ptrace_get_extended_event.
1841 (wait_lwp): Call linux_is_extended_waitstatus.
1842 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1843 and linux_is_extended_waitstatus.
1844 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1845 linux_ptrace_get_extended_event.
1846 (linux_ptrace_get_extended_event): New function.
1847 (linux_is_extended_waitstatus): New function.
1848 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1849 (linux_is_extended_waitstatus): New declarations.
1850
1851 2014-09-19 Yao Qi <yao@codesourcery.com>
1852
1853 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1854 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1855 comments. Callers update.
1856 (dwarf_decode_lines): Likewise.
1857 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1858 comments. Skip the line table if 'lowpc' is greater than
1859 'address'. Don't check
1860 dwarf2_per_objfile->has_section_at_zero.
1861
1862 2014-09-18 Doug Evans <dje@google.com>
1863
1864 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1865 * python/py-symtab.c (stpy_get_producer): New function.
1866 (symtab_object_getset): Add "producer" attribute.
1867
1868 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1869
1870 PR gdb/17384
1871 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1872 (do_captured_read_memory_integer): Remove.
1873 (safe_read_memory_integer): Use target_read_memory directly instead
1874 of catching errors in do_captured_read_memory_integer.
1875
1876 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1877
1878 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1879 not gdb/doc.
1880
1881 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1882
1883 * objc-lang.c (find_implementation_from_class): Remove dead code.
1884
1885 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1886
1887 PR cli/7233
1888 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1889 "fprintf_unfiltered (gdb_stdlog...)".
1890
1891 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1892
1893 PR breakpoints/12526
1894 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1895 val_bitsize.
1896 * breakpoint.c (watch_command_1): Use these fields to retain
1897 bitfield information.
1898 (extract_bitfield_from_watchpoint_value): New function.
1899 (watchpoint_check): Use it.
1900 (update_watchpoint): Use it. Optimize the address and length of a
1901 HW watchpoint pointing to a bitfield.
1902 * value.h (unpack_value_bitfield): New prototype.
1903 * value.c (unpack_value_bitfield): Make extern.
1904
1905 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1906
1907 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1908 x86-dregs.o.
1909 * gnu-nat.c (inf_threads): New function.
1910 * gnu-nat.h (inf_threads_ftype): New typedef.
1911 (inf_threads): New declaration.
1912 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1913 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1914 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1915 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1916 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1917 (i386_gnu_dr_get_control): New functions.
1918 (reg_addr): New structure.
1919 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1920 i386 debugging register hooks.
1921 * NEWS: Mention this.
1922
1923 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1924
1925 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1926 vector data transfer instructions.
1927 (arm_record_coproc_data_proc): Updated.
1928
1929 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1930
1931 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1932 arm_record_exreg_ld_st_insn.
1933 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1934 load/store insns.
1935
1936 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1937
1938 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1939 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1940 processing instructions.
1941
1942 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1943
1944 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1945 for advance SIMD struct ld/st insn.
1946 (thumb2_record_decode_insn_handler): Replace stub handler with
1947 thumb2_record_asimd_struct_ld_st.
1948
1949 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1950
1951 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1952 for asimd, vfp and coprocessor insns.
1953 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1954 and coprocessor insns.
1955 (thumb2_record_coproc_insn): New function.
1956 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1957 handlers.
1958 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1959 opcode 110 insns.
1960
1961 2014-09-13 Doug Evans <xdje42@gmail.com>
1962
1963 * NEWS: Mention new "queue-signal" command.
1964 * infcmd.c (queue_signal_command): New function.
1965 (_initialize_infcmd): Add new queue-signal command.
1966
1967 2014-09-13 Doug Evans <xdje42@gmail.com>
1968
1969 * linux-nat.c (wait_lwp): Add debugging printf.
1970 (linux_nat_wait_1): Ditto.
1971
1972 2014-09-12 Pedro Alves <palves@redhat.com>
1973
1974 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1975 (create_and_insert_solib_event_breakpoint): New functions.
1976 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1977 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1978 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1979 (remove_dbx_link_breakpoint): Delete function.
1980 (insert_dbx_link_bpt_in_file): Use
1981 create_and_insert_solib_event_breakpoint instead of
1982 deprecated_insert_raw_breakpoint.
1983 (procfs_wait): Don't check whether we hit __dbx_link here.
1984 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1985 here.
1986 * solib-irix.c (base_breakpoint): Delete global.
1987 (disable_break): Delete function.
1988 (enable_break): Use create_solib_event_breakpoint
1989 instead of deprecated_insert_raw_breakpoint.
1990 (irix_solib_handle_event): New function.
1991 (irix_solib_create_inferior_hook): Don't run the target or disable
1992 the mapping-complete breakpoint here.
1993 (_initialize_irix_solib): Install irix_solib_handle_event as
1994 so_ops->handle_event hook.
1995
1996 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1997 Ulrich Weigand  <uweigand@de.ibm.com>
1998
1999 PR tdep/17379
2000 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2001 instead of read_memory_unsigned_integer.
2002
2003 2014-09-12 Gary Benson <gbenson@redhat.com>
2004
2005 * nat/linux-waitpid.c: Include common-defs.h.
2006 [GDBSERVER]: Add FIXME comment.
2007 [!GDBSERVER]: Don't include defs.h or signal.h.
2008 (linux_debug) [!GDBSERVER]: Remove empty block.
2009
2010 2014-09-12 Gary Benson <gbenson@redhat.com>
2011
2012 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2013 Don't include defs.h or server.h.
2014
2015 2014-09-12 Gary Benson <gbenson@redhat.com>
2016
2017 * nat/linux-btrace.c: Include common-defs.h.
2018 Don't include defs.h, server.h or gdbthread.h.
2019 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2020
2021 2014-09-12 Gary Benson <gbenson@redhat.com>
2022
2023 * common/agent.c: Include common-defs.h.
2024 Don't include defs.h or server.h.
2025 * common/buffer.c: Likewise.
2026 * common/common-debug.c: Likewise.
2027 * common/common-utils.c: Likewise.
2028 * common/errors.c: Likewise.
2029 * common/filestuff.c: Likewise.
2030 * common/format.c: Likewise.
2031 * common/gdb_vecs.c: Likewise.
2032 * common/print-utils.c: Likewise.
2033 * common/ptid.c: Likewise.
2034 * common/rsp-low.c: Likewise.
2035 * common/signals.c: Likewise.
2036 * common/vec.c: Likewise.
2037 * common/xml-utils.c: Likewise.
2038 * nat/linux-osdata.c: Likewise.
2039 * nat/linux-procfs.c: Likewise.
2040 * nat/linux-ptrace.c: Likewise.
2041 * nat/mips-linux-watch.c: Likewise.
2042 * target/waitstatus.c: Likewise.
2043
2044 2014-09-12 Tom Tromey <tromey@redhat.com>
2045 Gary Benson <gbenson@redhat.com>
2046
2047 * common/common-regcache.h: New file.
2048 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2049 * regcache.h: Include common-regcache.h.
2050 (regcache_read_pc): Don't declare.
2051 * regcache.c (get_thread_regcache_for_ptid): New function.
2052 * nat/linux-btrace.c: Don't include regcache.h.
2053 Include common-regcache.h.
2054 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2055
2056 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2057
2058 * regcache.h (struct regset): Declare.
2059
2060 2014-09-11 Pedro Alves <palves@redhat.com>
2061
2062 PR gdb/17347
2063 * main.c: Include "infrun.h".
2064 (catch_command_errors, catch_command_errors_const): Wait for the
2065 foreground command to complete.
2066 * top.c (maybe_wait_sync_command_done): New function, factored out
2067 from ...
2068 (maybe_wait_sync_command_done): ... here.
2069 * top.h (maybe_wait_sync_command_done): New declaration.
2070
2071 2014-09-11 Tom Tromey <tromey@redhat.com>
2072 Gary Benson <gbenson@redhat.com>
2073
2074 * common/symbol.h: New file.
2075 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2076 * minsyms.c (find_minimal_symbol_address): New function.
2077 * common/agent.c: Include common/symbol.h.
2078 [!GDBSERVER]: Don't include objfiles.h.
2079 (agent_look_up_symbols): Use find_minimal_symbol_address.
2080
2081 2014-09-11 Gary Benson <gbenson@redhat.com>
2082
2083 * target/target.h (target_stop_ptid, target_continue_ptid):
2084 Declare.
2085 * target.c (target_stop_ptid, target_continue_ptid): New
2086 functions.
2087 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2088 (agent_run_command): Always use target_stop_ptid and
2089 target_continue_ptid.
2090
2091 2014-09-11 Tom Tromey <tromey@redhat.com>
2092 Gary Benson <gbenson@redhat.com>
2093
2094 * target/target.h: New file.
2095 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2096 * target.h: Include target/target.h.
2097 (target_read_memory, target_write_memory): Don't declare.
2098 * target.c (target_read_uint32): New function.
2099 * common/agent.c: Include target/target.h.
2100 [!GDBSERVER]: Don't include target.h.
2101 (helper_thread_id): Type changed to uint32_t.
2102 (agent_get_helper_thread_id): Use target_read_uint32.
2103 (agent_run_command): Always use target_read_memory and
2104 target_write_memory.
2105 (agent_capability): Type changed to uint32_t.
2106 (agent_capability_check): Use target_read_uint32.
2107
2108 2014-09-11 Gary Benson <gbenson@redhat.com>
2109
2110 * common/common-debug.h (show_debug_regs): Declare.
2111 * common/common-debug.c (show_debug_regs): Define.
2112 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2113 all uses with show_debug_regs. Replace all uses that considered
2114 debug_hw_points as a multi-value integer with straight boolean
2115 uses.
2116 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2117 with show_debug_regs.
2118 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2119 all uses with show_debug_regs.
2120 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2121 uses with show_debug_regs.
2122
2123 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2124
2125 * findvar.c (address_from_register): Handle targets requiring
2126 a special conversion routine even for plain pointer types.
2127
2128 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2129
2130 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2131 (store_register): Do not call exec_one_dummy_insn.
2132
2133 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2134
2135 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2136 dereference it first. Use value_enclosing_type instead of
2137 value_type.
2138 (ada_array_length): Likewise.
2139
2140 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2141
2142 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2143 Adjust function implementation and documentation accordingly.
2144 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2145 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2146 Update call to ada_value_ptr_subscript.
2147
2148 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2149
2150 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2151 instead of VAL's type.
2152
2153 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2154
2155 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2156
2157 2014-09-09 Doug Evans <xdje42@gmail.com>
2158
2159 PR guile/17367
2160 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2161 last parameter to pkg-config, not first.
2162 * configure.ac: Pass --with-guile provided pkg-config path to
2163 GDB_GUILE_PROGRAM_NAMES.
2164 * configure: Regenerate.
2165
2166 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2167
2168 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2169 Bertazi".
2170
2171 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2172
2173 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2174 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2175 the list of sections determining GDB_OSABI_IRIX.
2176
2177 2014-09-09 James Hogan <james.hogan@imgtec.com>
2178
2179 * MAINTAINERS (Write After Approval): Add "James Hogan".
2180
2181 2014-09-09 James Hogan <james.hogan@imgtec.com>
2182
2183 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2184
2185 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2186
2187 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2188
2189 2014-09-08 Doug Evans <xdje42@gmail.com>
2190
2191 PR 17247
2192 * guile.c: #include <signal.h>.
2193 (_initialize_guile): Block SIGCHLD while initializing Guile.
2194
2195 Replaces the following, which is reverted.
2196
2197 2014-07-26 Doug Evans <xdje42@gmail.com>
2198
2199 PR 17185
2200 * configure.ac: Add check for header gc/gc.h.
2201 Add check for function setenv.
2202 * configure: Regenerate.
2203 * config.in: Regenerate.
2204 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2205
2206 2014-09-08 Doug Evans <xdje42@gmail.com>
2207
2208 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2209 with named constant. Fix style of pointer comparison.
2210 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2211
2212 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2213
2214 PR gdb/17035
2215 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2216 decide whether we display the command on "show user".
2217 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2218 printing command name.
2219 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2220 * cli/cli-decode.c (cli_user_command_p): Create helper function
2221 to verify whether cmd_list_element is a user-defined command.
2222
2223 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2224
2225 PR python/17355
2226 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2227 Fix goto out of TRY_CATCH.
2228
2229 2014-09-06 Doug Evans <xdje42@gmail.com>
2230 Tom Tromey <tromey@redhat.com>
2231
2232 PR 15276
2233 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2234 $_any_caller_matches.
2235 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2236 * python/lib/gdb/function/caller_is.py: New file.
2237
2238 2014-09-06 Doug Evans <xdje42@gmail.com>
2239
2240 * infcmd.c (program_info): Fix typo.
2241
2242 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2243
2244 PR gdb/17235
2245 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2246 'number'. New variable 'has_digit'. Rewrite code to deal with
2247 subexpressions on SDT probes.
2248
2249 2014-09-04 Pedro Alves <palves@redhat.com>
2250
2251 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2252 the input is only one character long.
2253
2254 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2255
2256 PR fortran/17237
2257 * f-valprint.c (f_val_print): Specify the correct print option to
2258 use when printing integer values.
2259
2260 2014-09-04 Gary Benson <gbenson@redhat.com>
2261
2262 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2263 Remove code to cope with LWPs wrapped as PIDs.
2264 Add assertions to ensure no wrapped LWPs are passed.
2265
2266 2014-09-04 Pedro Alves <palves@redhat.com>
2267
2268 * value.c (value_ranges_copy_adjusted): New function, factored out
2269 from ...
2270 (value_contents_copy_raw): ... here.
2271 (unpack_value_bits_as_long_1): Rename back to ...
2272 (unpack_bits_as_long): ... this. Remove 'original_value' and
2273 'result' parameters. Change return type to LONGEST.
2274 (unpack_value_bits_as_long): Delete.
2275 (unpack_value_field_as_long_1): Delete.
2276 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2277 (unpack_value_bitfield): New function.
2278 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2279 (value_fetch_lazy): Use unpack_value_bitfield.
2280 * value.h (unpack_value_bits_as_long): Delete declaration.
2281
2282 2014-09-03 Sasha Smundak <asmundak@google.com>
2283
2284 * python/py-frame.c (frapy_read_register): New function.
2285
2286 2014-09-03 James Hogan <james.hogan@imgtec.com>
2287
2288 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2289 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2290
2291 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2292
2293 PR python/16699
2294 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2295 function.
2296 (add_cmd): Set "completer_handle_brkchars" to NULL.
2297 * cli/cli-decode.h (struct cmd_list_element)
2298 <completer_handle_brkchars>: New field.
2299 * command.h (completer_ftype_void): New typedef.
2300 (set_cmd_completer_handle_brkchars): New prototype.
2301 * completer.c (set_gdb_completion_word_break_characters): New
2302 function.
2303 (complete_line_internal): Call "completer_handle_brkchars"
2304 callback from command.
2305 * completer.h: Include "command.h".
2306 (set_gdb_completion_word_break_characters): New prototype.
2307 * python/py-cmd.c (cmdpy_completer_helper): New function.
2308 (cmdpy_completer_handle_brkchars): New function.
2309 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2310 (cmdpy_init): Set completer_handle_brkchars to
2311 cmdpy_completer_handle_brkchars.
2312
2313 2014-09-03 Gary Benson <gbenson@redhat.com>
2314
2315 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2316 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2317 Loop conditions changed to equivalent form.
2318 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2319 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2320 ALL_DEBUG_ADDRESS_REGISTERS.
2321
2322 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2323
2324 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2325 description fix.
2326
2327 2014-09-02 Doug Evans <dje@google.com>
2328
2329 * typeprint.c (find_global_typedef): Fix comment.
2330
2331 2014-09-02 Gary Benson <gbenson@redhat.com>
2332
2333 * i386-nat.h: Renamed as...
2334 * x86-nat.h: New file. All type, function and variable name
2335 prefixes changed from "i386_" to "x86_". All references updated.
2336 * i386-nat.c: Renamed as...
2337 * x86-nat.c: New file. All type, function and variable name
2338 prefixes changed from "i386_" to "x86_". All references updated.
2339 * common/i386-xstate.h: Renamed as...
2340 * common/x86-xstate.h: New file. All type, function and variable
2341 name prefixes changed from "i386_" to "x86_". All references
2342 updated.
2343 * nat/i386-cpuid.h: Renamed as...
2344 * nat/x86-cpuid.h: New file. All type, function and variable name
2345 prefixes changed from "i386_" to "x86_". All references updated.
2346 * nat/i386-gcc-cpuid.h: Renamed as...
2347 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2348 name prefixes changed from "i386_" to "x86_". All references
2349 updated.
2350 * nat/i386-dregs.h: Renamed as...
2351 * nat/x86-dregs.h: New file. All type, function and variable name
2352 prefixes changed from "i386_" to "x86_". All references updated.
2353 * nat/i386-dregs.c: Renamed as...
2354 * nat/x86-dregs.c: New file. All type, function and variable name
2355 prefixes changed from "i386_" to "x86_". All references updated.
2356
2357 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2358
2359 * varobj.c (_initialize_varobj): Move to the end of file.
2360
2361 2014-08-29 Gary Benson <gbenson@redhat.com>
2362
2363 * common/common-exceptions.h: New file.
2364 * common/common-exceptions.c: Likewise.
2365 * Makefile.in (SFILES): Add common/common-exceptions.c.
2366 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2367 (COMMON_OBS): Add common-exceptions.o.
2368 (common-exceptions.o): New rule.
2369 * exceptions.h (common-exceptions.h): Include.
2370 (gdb_setjmp.h): Do not include.
2371 (return_reason): Moved to common-exceptions.h.
2372 (enum return_reason): Likewise.
2373 (RETURN_MASK): Likewise.
2374 (typedef return_mask): Likewise.
2375 (enum errors): Likewise.
2376 (struct gdb_exception): Likewise.
2377 (exceptions_state_mc_init): Likewise.
2378 (exceptions_state_mc_action_iter): Likewise.
2379 (exceptions_state_mc_action_iter_1): Likewise.
2380 (TRY_CATCH): Likewise.
2381 (throw_exception): Likewise.
2382 (throw_verror): Likewise.
2383 (throw_vquit): Likewise.
2384 (throw_error): Likewise.
2385 (throw_quit): Likewise.
2386 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2387 (enum catcher_action): Likewise.
2388 (struct catcher): Likewise.
2389 (current_catcher): Likewise.
2390 (catcher_list_size): Likewise.
2391 (exceptions_state_mc_init): Likewise.
2392 (catcher_pop): Likewise.
2393 (exceptions_state_mc): Likewise.
2394 (exceptions_state_mc_action_iter): Likewise.
2395 (exceptions_state_mc_action_iter_1): Likewise.
2396 (throw_exception): Likewise.
2397 (exception_messages): Likewise.
2398 (exception_messages_size): Likewise.
2399 (throw_it): Likewise.
2400 (throw_verror): Likewise.
2401 (throw_vquit): Likewise.
2402 (throw_error): Likewise.
2403 (throw_quit): Likewise.
2404 (prepare_to_throw_exception): New function.
2405
2406 2014-08-29 Gary Benson <gbenson@redhat.com>
2407
2408 * common/gdb_setjmp.h: New file.
2409 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2410 * configure.ac: Move sigsetjmp check...
2411 * common/common.m4: ...here.
2412 * configure: Regenerate.
2413 * cp-support.c (SIGJMP_BUF): Delete.
2414 (SIGSETJMP): Likewise.
2415 (SIGLONGJMP): Likewise.
2416 * exceptions.h (gdb_setjmp.h): Include.
2417 (setjmp.h): Do not include.
2418 (EXCEPTIONS_SIGJMP_BUF): Delete.
2419 (EXCEPTIONS_SIGSETJMP): Likewise.
2420 (EXCEPTIONS_SIGLONGJMP): Likewise.
2421 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2422 from gdb_setjmp.h.
2423 * exceptions.c: Likewise.
2424
2425 2014-08-29 Gary Benson <gbenson@redhat.com>
2426
2427 * cleanups.h: Moved to...
2428 * common/cleanups.h: New file.
2429 * cleanups.c: Moved to...
2430 * common/cleanups.c: New file. Include common-defs.h and
2431 cleanups.h. Do not include defs.h.
2432 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2433 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2434 (cleanups.o): New rule.
2435
2436 2014-08-29 Gary Benson <gbenson@redhat.com>
2437
2438 * common/errors.h (internal_warning): New declaration.
2439 (internal_vwarning): Likewise.
2440 * common/errors.c (internal_warning): New function.
2441 * utils.h (internal_warning): Don't declare.
2442 (internal_vwarning): Likewise.
2443 * utils.c (internal_warning): Removed.
2444
2445 2014-08-29 Gary Benson <gbenson@redhat.com>
2446
2447 * main.c (captured_main): Use warning during startup.
2448 Prefix startup warning messages with command name.
2449
2450 2014-08-29 Gary Benson <gbenson@redhat.com>
2451
2452 * main.c (captured_main): Handle usage errors with error.
2453
2454 2014-08-29 Gary Benson <gbenson@redhat.com>
2455
2456 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2457 exit pair with a call to error. Wrap the message with _().
2458
2459 2014-08-29 Gary Benson <gbenson@redhat.com>
2460
2461 * main.c (captured_main): Replace a fprintf/exit
2462 pair with a call to error. Wrap the message with _().
2463
2464 2014-08-29 Gary Benson <gbenson@redhat.com>
2465
2466 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2467 pairs with calls to error. Wrap the message with _().
2468
2469 2014-08-29 Gary Benson <gbenson@redhat.com>
2470
2471 * utils.c (vwarning): Protect calls to target_terminal_ours
2472 and wrap_here.
2473
2474 2014-08-29 Gary Benson <gbenson@redhat.com>
2475
2476 * exceptions.c (print_flush): Protect calls to
2477 target_terminal_ours and wrap_here.
2478
2479 2014-08-29 Gary Benson <gbenson@redhat.com>
2480
2481 * utils.h (filtered_printing_initialized): New declaration.
2482 * utils.c (abort_with_message): New function.
2483 (internal_vproblem): Use abort_with_message for first level
2484 recursive internal problems, and if gdb_stderr is not set up.
2485 Protect calls to target_terminal_ours, begin_line and query.
2486
2487 2014-08-28 Doug Evans <dje@google.com>
2488
2489 * symtab.c (in_prologue): Move definition to better spot.
2490 (skip_prologue_using_sal): Ditto.
2491
2492 2014-08-28 Doug Evans <dje@google.com>
2493
2494 * symtab.c (find_function_start_sal): Move definition to better spot.
2495
2496 2014-08-28 Yao Qi <yao@codesourcery.com>
2497
2498 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2499 found_stack_adjust in forward scan. Remove condition check
2500 on found_stack_adjust which is always true. Indent the code.
2501
2502 2014-08-28 Yao Qi <yao@codesourcery.com>
2503
2504 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2505 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2506 (dwarf_decode_lines): Remove argument
2507 want_line_info. Remove condition check on want_line_info.
2508 Callers update.
2509
2510 2014-08-27 Doug Evans <dje@google.com>
2511
2512 * dwarf2read.c (dwarf_record_line): Fix typo.
2513
2514 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2515
2516 * target.h (struct target_ops::to_terminal_save_ours): Remove
2517 declaration.
2518 (target_terminal_save_ours): Remove macro.
2519 * target-delegates.c: Regenerate.
2520 * inf-child.c (inf_child_target): Don't set the nonexistent
2521 field to_terminal_save_ours.
2522 * inferior.h (child_terminal_save_ours): Remove declaration.
2523 * terminal.h (gdb_save_tty_state): New declaration.
2524 * inflow.c (child_terminal_save_ours): Rename to ...
2525 (gdb_save_tty_state): ... this.
2526 * tui/tui.c: Include terminal.h.
2527 (tui_enable): Use gdb_save_tty_state instead of
2528 target_terminal_save_ours.
2529 (tui_disable): Likewise.
2530
2531 2014-08-25 Doug Evans <dje@google.com>
2532
2533 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2534 Pass NULL instead of 0 for context pointer.
2535
2536 2014-08-25 Yao Qi <yao@codesourcery.com>
2537
2538 * dwarf2read.c: Fix grammatical error.
2539
2540 2014-08-24 Yao Qi <yao@codesourcery.com>
2541
2542 * dwarf2read.c (scan_partial_symbols): Update comments.
2543 Rename argument 'need_pc' with 'set_addrmap'.
2544 (add_partial_namespace): Rename argument 'need_pc' with
2545 'set_addrmap'.
2546 (add_partial_module): Likewise.
2547 (add_partial_subprogram): Likewise. Update comments.
2548 (dwarf2_name): Fix typo.
2549
2550 2014-08-22 Doug Evans <dje@google.com>
2551
2552 PR 17276
2553 * dwarf2read.c (dwarf_record_line_p): New function.
2554 (dwarf_decode_lines_1): Ignore subsequent line number entries
2555 for the same line if any entry had a non-zero discriminator.
2556
2557 2014-08-22 Doug Evans <dje@google.com>
2558
2559 * buildsym.h (record_line_ftype): New typedef.
2560 (record_line): Use it.
2561 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2562 (dwarf_decode_lines_1): Call them.
2563
2564 2014-08-22 Yao Qi <yao@codesourcery.com>
2565
2566 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2567 (ctf_end): Remove code.
2568
2569 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2570
2571 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2572 (linux_make_corefile_notes): call update_thread_list, protected against
2573 exceptions.
2574
2575 2014-08-21 Pedro Alves <palves@redhat.com>
2576
2577 * infcmd.c (attach_command): Remove comment.
2578
2579 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2580
2581 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2582 unsigned LONGEST to ULONGEST.
2583
2584 2014-08-20 Pedro Alves <palves@redhat.com>
2585
2586 * Makefile.in (check-read1): New rule.
2587
2588 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2589
2590 * value.c (value_from_contents_and_address): Strip resolved_type's
2591 typedef layers before checking its TYPE_DATA_LOCATION.
2592
2593 2014-08-20 Pedro Alves <palves@redhat.com>
2594
2595 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2596
2597 2014-08-20 Yao Qi <yao@codesourcery.com>
2598
2599 * amd64-tdep.c (amd64_classify): Add a blank line after the
2600 example. Move "*/" to a new line.
2601 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2602 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2603 * dwarf2read.c (psymtab_include_file_name): Likewise.
2604
2605 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2606 Pedro Alves <palves@redhat.com>
2607
2608 PR symtab/14604
2609 PR symtab/14605
2610 * ada-lang.c (coerce_unspec_val_to_type): Use
2611 value_contents_copy_raw.
2612 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2613 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2614 * cp-valprint.c (cp_print_value_fields): Let the common printing
2615 code handle optimized out values.
2616 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2617 * d-valprint.c (dynamic_array_type): Use
2618 value_bits_any_optimized_out.
2619 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2620 check_any_valid fields.
2621 (check_pieced_value_bits): Delete and inline ...
2622 (check_pieced_synthetic_pointer): ... here.
2623 (check_pieced_value_validity): Delete.
2624 (check_pieced_value_invalid): Delete.
2625 (pieced_value_funcs): Remove check_validity and check_any_valid
2626 fields.
2627 (read_pieced_value): Use mark_value_bits_optimized_out.
2628 (write_pieced_value): Switch to use
2629 mark_value_bytes_optimized_out.
2630 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2631 of assuming the whole value is optimized out.
2632 * findvar.c (read_frame_register_value): Remove special handling
2633 of optimized out registers.
2634 (value_from_register): Use mark_value_bytes_optimized_out.
2635 * frame-unwind.c (frame_unwind_got_optimized): Use
2636 mark_value_bytes_optimized_out.
2637 * jv-valprint.c (java_value_print): Adjust.
2638 (java_print_value_fields): Let the common printing code handle
2639 optimized out values.
2640 * mips-tdep.c (mips_print_register): Remove special handling of
2641 optimized out registers.
2642 * opencl-lang.c (lval_func_check_validity): Delete.
2643 (lval_func_check_any_valid): Delete.
2644 (opencl_value_funcs): Remove check_validity and check_any_valid
2645 fields.
2646 * p-valprint.c (pascal_object_print_value_fields): Let the common
2647 printing code handle optimized out values.
2648 * stack.c (read_frame_arg): Remove special handling of optimized
2649 out values. Fetch both VAL and ENTRYVAL before comparing
2650 contents. Adjust to value_available_contents_eq rename.
2651 * valprint.c (valprint_check_validity)
2652 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2653 (val_print_array_elements): Adjust.
2654 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2655 (value_bits_any_optimized_out): New function.
2656 (value_entirely_covered_by_range_vector): New function, factored
2657 out from value_entirely_unavailable.
2658 (value_entirely_unavailable): Reimplement.
2659 (value_entirely_optimized_out): New function.
2660 (insert_into_bit_range_vector): New function, factored out from
2661 mark_value_bits_unavailable.
2662 (mark_value_bits_unavailable): Reimplement.
2663 (struct ranges_and_idx): New struct.
2664 (find_first_range_overlap_and_match): New function, factored out
2665 from value_available_contents_bits_eq.
2666 (value_available_contents_bits_eq): Rename to ...
2667 (value_contents_bits_eq): ... this. Check both unavailable
2668 contents and optimized out contents.
2669 (value_available_contents_eq): Rename to ...
2670 (value_contents_eq): ... this.
2671 (allocate_value_lazy): Remove reference to the old optimized_out
2672 boolean.
2673 (allocate_optimized_out_value): Use
2674 mark_value_bytes_optimized_out.
2675 (require_not_optimized_out): Adjust to check whether the
2676 optimized_out vec is empty.
2677 (ranges_copy_adjusted): New function, factored out from
2678 value_contents_copy_raw.
2679 (value_contents_copy_raw): Also copy the optimized out ranges.
2680 Assert the destination ranges aren't optimized out.
2681 (value_contents_copy): Update comment, remove call to
2682 require_not_optimized_out.
2683 (value_contents_equal): Adjust to check whether the optimized_out
2684 vec is empty.
2685 (set_value_optimized_out, value_optimized_out_const): Delete.
2686 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2687 New functions.
2688 (value_entirely_optimized_out, value_bits_valid): Delete.
2689 (value_copy): Take a VEC copy of the 'optimized_out' field.
2690 (value_primitive_field): Remove special handling of optimized out.
2691 (value_fetch_lazy): Assert that lazy values have no unavailable
2692 regions. Use value_bits_any_optimized_out. Remove some special
2693 handling for optimized out values.
2694 * value.h: Add intro comment about <optimized out> and
2695 <unavailable>.
2696 (struct lval_funcs): Remove check_validity and check_any_valid
2697 fields.
2698 (set_value_optimized_out, value_optimized_out_const): Remove.
2699 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2700 New declarations.
2701 (value_bits_any_optimized_out): New declaration.
2702 (value_bits_valid): Delete declaration.
2703 (value_available_contents_eq): Rename to ...
2704 (value_contents_eq): ... this, and extend comments.
2705
2706 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2707
2708 Fix -fsanitize=address on unreadable inferior strings.
2709 * valprint.c (val_print_string): Fix access before BUFFER.
2710
2711 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2712
2713 * target.c (target_struct_size): Remove.
2714 (target_struct_allocsize): Remove.
2715 (DEFAULT_ALLOCSIZE): Remove.
2716 (target_ops_p): New typedef.
2717 (DEF_VEC_P (target_ops_p)): New vector type.
2718 (target_structs): Change type to VEC (target_ops_p).
2719 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2720 (find_default_run_target): Rewrite for loop following changes to
2721 target_structs.
2722
2723 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2724
2725 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2726 Adjust code accordingly. Adjust function description comment.
2727
2728 2014-08-19 Yao Qi <yao@codesourcery.com>
2729
2730 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2731 types.
2732
2733 2014-08-19 Alan Modra <amodra@gmail.com>
2734
2735 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2736 * config.in: Regenerate.
2737 * configure: Regenerate.
2738
2739 2014-08-19 Tom Tromey <tromey@redhat.com>
2740 Gary Benson <gbenson@redhat.com>
2741
2742 * common/common-debug.h: New file.
2743 * common/common-debug.c: Likewise.
2744 * debug.c: Likewise.
2745 * Makefile.in (SFILES): Add common/common-debug.c.
2746 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2747 (COMMON_OBS): Add common-debug.o and debug.o.
2748 (common-debug.o): New rule.
2749 * common/common-defs.h: Include common-debug.h.
2750 * common/agent.c (debug_agent_printf): New function.
2751 (DEBUG_AGENT): Redefine.
2752 * nat/i386-dregs.c (debug_printf): Undefine.
2753
2754 2014-08-19 Gary Benson <gbenson@redhat.com>
2755
2756 * common/common-defs.h: Include print-utils.h.
2757 * utils.h: Do not include print-utils.h.
2758
2759 2014-08-19 Tom Tromey <tromey@redhat.com>
2760 Gary Benson <gbenson@redhat.com>
2761
2762 * common/common-types.h: New file.
2763 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2764 * common/common-defs.h: Include common-types.h.
2765 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2766 (ULONGEST): Remove.
2767
2768 2014-08-19 Tom Tromey <tromey@redhat.com>
2769 Gary Benson <gbenson@redhat.com>
2770
2771 * common/errors.h: New file.
2772 * common/errors.c: Likewise.
2773 * Makefile.in (SFILES): Add common/errors.c.
2774 (HFILES_NO_SRCDIR): Add common/errors.h.
2775 (COMMON_OBS): Add errors.o.
2776 (errors.o): New rule.
2777 * common/common-defs.h: Include errors.h.
2778 * utils.h (perror_with_name, error, verror, warning, vwarning):
2779 Don't declare.
2780 * common/common-utils.h: (malloc_failure, internal_error):
2781 Likewise.
2782
2783 2014-08-19 Gary Benson <gbenson@redhat.com>
2784
2785 * utils.c (internal_vproblem): Always print the message.
2786
2787 2014-08-18 Doug Evans <dje@google.com>
2788
2789 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2790
2791 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2792
2793 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2794 Return 0 if TYPE is dynamic.
2795 (print_range): Add handling of dynamic ranges.
2796
2797 2014-08-18 Keven Boell <keven.boell@intel.com>
2798 Joel Brobecker <brobecker@adacore.com>
2799
2800 * gdbtypes.h (struct main_type): Add field "data_location".
2801 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2802 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2803 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2804 a dynamic data location.
2805 (resolve_dynamic_type): Add DW_AT_data_location handling.
2806 (copy_recursive, copy_type): Copy the data_location information
2807 when present.
2808 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2809 * value.c (value_from_contents_and_address): Add
2810 DW_AT_data_location handling.
2811
2812 2014-08-18 Keven Boell <keven.boell@intel.com>
2813 Joel Brobecker <brobecker@adacore.com>
2814
2815 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2816 field "get_object_address".
2817 * dwarf2expr.c (execute_stack_op): Add handling for
2818 DW_OP_push_object_address.
2819 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2820 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2821 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2822 (dwarf_expr_get_obj_addr): New function.
2823 (dwarf_expr_ctx_funcs): Add get_object_address field.
2824 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2825 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2826 (dwarf2_evaluate_property): Add parameter "address". Use it.
2827 (needs_get_obj_addr): New function.
2828 (needs_frame_ctx_funcs): Add get_object_address field.
2829 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2830 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2831 (resolve_dynamic_array): Likewise.
2832
2833 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2834
2835 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2836 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2837 fixed value for records and unions for which some GNAT encodings
2838 are present.
2839
2840 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2841
2842 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2843 rewrite to avoid "else if" and "else" constructs. Should be
2844 a no-op in practice.
2845
2846 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2847
2848 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2849 of lexical block.
2850
2851 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2852
2853 PR c++/17132
2854 * eval.c: Update all calls to find_overload_match.
2855 * valarith.c: Likewise.
2856 (value_user_defined_cpp_op, value_user_defined_op): New
2857 argument NOSIDE. Update all callers.
2858 * valops.c (find_overload_match): New argument NOSIDE.
2859 * value.h (find_overload_match): Update signature.
2860
2861 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2862
2863 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2864 'items' methods instead of 'iteritems' method on dictionaries.
2865
2866 2014-08-15 Doug Evans <dje@google.com>
2867
2868 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2869 closer to use.
2870
2871 2014-08-15 Doug Evans <dje@google.com>
2872
2873 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2874
2875 2014-08-15 Doug Evans <dje@google.com>
2876
2877 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2878
2879 2014-08-15 Doug Evans <dje@google.com>
2880
2881 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2882 unused.
2883
2884 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2885
2886 * dcache.h: Include target.h, to avoid compile time warnings.
2887
2888 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2889
2890 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2891 frame_info" partial declaration.
2892 * gdbarch.h: Regenerate.
2893
2894 2014-08-15 Yao Qi <yao@codesourcery.com>
2895
2896 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2897 Add parameter 'decode_for_pst_p'. Callers update.
2898
2899 2014-08-13 Yao Qi <yao@codesourcery.com>
2900
2901 PR build/17104
2902 * configure.ac: Use local variable 'pos'.
2903 * configure: Regenerated.
2904
2905 2014-08-11 Doug Evans <dje@google.com>
2906
2907 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2908 message, it is redundant with "Reading symbols from ..." message.
2909
2910 2014-08-10 Doug Evans <xdje42@gmail.com>
2911
2912 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2913
2914 2014-08-09 Yao Qi <yao@codesourcery.com>
2915
2916 PR remote/9053
2917 * remote.c (remote_xfer_partial): Remove dead code.
2918
2919 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2920
2921 * ia64-linux-tdep.c: Include "regset.h".
2922 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2923 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2924 (ia64_linux_supply_fpregset): New function.
2925 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2926 (ia64_linux_regset_from_core_section): New function.
2927 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2928 method.
2929
2930 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2931
2932 * m68klinux-tdep.c: Include "regset.h".
2933 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2934 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2935 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2936 (m68k_linux_regset_from_core_section): New function.
2937 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2938 method.
2939
2940 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2941
2942 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2943 function. Move logic to...
2944 (tilegx_linux_regmap): ... this new register map.
2945 (tilegx_linux_regset): Refer to register map, replace supply
2946 method by regcache_supply_regset, and add collect method.
2947 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2948 TILEGX_FIRST_EASY_REGNUM.
2949
2950 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2951
2952 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2953 that calls regcache_supply_regset and handles the EPC register
2954 separately. Move main logic to...
2955 (score7_linux_gregmap): ... this new register map.
2956 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2957 (score7_linux_gregset): Refer to register map. Add collect method.
2958 (score7_linux_regset_from_core_section): Replace
2959 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2960 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2961 (struct regset): Delete unused forward declaraction.
2962 (struct pt_regs): Delete structure definition.
2963 (elf_gregset_t): Delete typedef.
2964
2965 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2966
2967 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2968 (nios2_core_regset): Add collect method.
2969
2970 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2971
2972 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2973 platform-independent and don't write to read-only input buffer.
2974 (m32r_linux_collect_gregset): New function.
2975 (m32r_linux_gregset): Add collect method.
2976
2977 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2978
2979 * hppa-linux-tdep.c (greg_map): Rename to...
2980 (hppa_linux_gregmap): ... this. Also convert to
2981 regcache_map_entry format.
2982 (hppa_linux_supply_regset): Delete function.
2983 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2984 (hppa_linux_fpregmap): ... this new register map.
2985 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2986 register map, replace supply method by regcache_supply_regset, and
2987 add collect method regcache_collect_regset.
2988
2989 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2990
2991 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2992 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2993 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2994 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2995 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2996 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2997 (frv_linux_supply_gregset): Replace main logic by call to
2998 regcache_supply_regset, but keep clearing gr32-gr63.
2999 (frv_linux_supply_fpregset): Delete function.
3000 (frv_linux_gregset): Refer to appropriate register map and add
3001 regcache_collect_regset as the collect method.
3002 (frv_linux_fpregset): Likewise. Also exchange the supply method
3003 by regcache_supply_regset.
3004
3005 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3006
3007 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3008 by call to alpha_supply_int_regs.
3009 (alpha_linux_collect_gregset): New function.
3010 (alpha_linux_supply_fpregset): Replace logic by call to
3011 alpha_supply_fp_regs.
3012 (alpha_linux_collect_fpregset): New function.
3013 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3014
3015 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3016
3017 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3018 by call to regcache_collect_regset.
3019 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3020 instead of aarch64_linux_supply_gregset/_fpregset.
3021 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3022 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3023 header file instead.
3024 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3025 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3026 functions. Move logic to ...
3027 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3028 register maps.
3029 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3030 refer to new register maps, replace *_regset_from_core by
3031 regcache_supply_regset, and also use regcache_collect_regset.
3032 * aarch64-linux-tdep.h: Include "regset.h".
3033 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3034 Delete prototypes.
3035 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3036 macros, moved from C source file.
3037 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3038 variable declarations.
3039
3040 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3041
3042 * s390-linux-nat.c: Include "regset.h".
3043 (regmap_gregset): Delete macro.
3044 (s390_64_regmap_gregset): New register map for
3045 regcache_supply/_collect_regset.
3046 (s390_64_gregset): New regset.
3047 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3048 (regmap_fpregset): Delete macro.
3049 (s390_native_supply, s390_native_collect): Delete functions.
3050 (supply_gregset, fill_gregset): Replace s390-specific regmap
3051 handling by a call to regcache_supply/_collect_regset.
3052 (supply_fpregset, fill_fpregset): Call regcache_supply/
3053 _collect_regset instead of s390_native_supply/_collect.
3054 (fetch_regset, store_regset): Likewise. Also change the last
3055 parameter to a regset instead of a regmap.
3056 (s390_linux_fetch_inferior_registers)
3057 (390_linux_store_inferior_registers): Adjust last parameter in
3058 calls to fetch_regset and store_regset.
3059 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3060 (s390_gregmap): ... this. Also make static const and convert to
3061 regcache_map_entry format.
3062 (s390x_regmap_gregset): Delete.
3063 (s390_regmap_fpregset): Rename to...
3064 (s390_fpregmap): ... this. Make static const and convert to
3065 regcache_map_entry format.
3066 (s390_regmap_upper, s390_regmap_last_break)
3067 (s390x_regmap_last_break, s390_regmap_system_call)
3068 (s390_regmap_tdb): Likewise.
3069 (s390_supply_regset, s390_collect_regset): Remove functions.
3070 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3071 s390_supply_regset.
3072 (s390_gregset, s390_fpregset, s390_upper_regset)
3073 (s390_last_break_regset, s390x_last_break_regset)
3074 (s390_system_call_regset, s390_tdb_regset): Make global and
3075 replace s390_supply/_collect_regset by regcache_supply/
3076 _collect_regset.
3077 (s390x_gregset): Delete.
3078 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3079 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3080 (s390_regmap_fpregset, s390_regmap_last_break)
3081 (s390x_regmap_last_break, s390_regmap_system_call)
3082 (s390_regmap_tdb): Delete global variable declarations.
3083 (s390_gregset, s390_fpregset, s390_last_break_regset)
3084 (s390x_last_break_regset, s390_system_call_regset)
3085 (s390_tdb_regset): New global variable declarations.
3086
3087 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3088
3089 * regcache.c: Include "regset.h".
3090 (regcache_transfer_regset): New local function.
3091 (regcache_supply_regset, regcache_collect_regset): New functions.
3092 * regcache.h (struct regcache_map_entry): New structure.
3093 (REGCACHE_MAP_SKIP): New enum value.
3094 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3095
3096 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3097
3098 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3099 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3100 (ppc_linux_collect_gregset ): Likewise.
3101 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3102 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3103 (ppc_collect_vrregset): Likewise.
3104 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3105 Likewise.
3106
3107 2014-08-07 Yao Qi <yao@codesourcery.com>
3108
3109 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3110 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3111 * remote.c (remote_read_bytes): Likewise.
3112
3113 2014-08-07 Yao Qi <yao@codesourcery.com>
3114
3115 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3116
3117 2014-08-07 Yao Qi <yao@codesourcery.com>
3118
3119 PR remote/17230
3120 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3121 TARGET_XFER_OK instead of 0.
3122
3123 2014-08-07 Gary Benson <gbenson@redhat.com>
3124
3125 * common/common-defs.h: Include errno.h.
3126 * defs.h: Do not include errno.h.
3127 * ada-typeprint.c: Likewise.
3128 * c-typeprint.c: Likewise.
3129 * core-regset.c: Likewise.
3130 * corefile.c: Likewise.
3131 * corelow.c: Likewise.
3132 * event-loop.c: Likewise.
3133 * f-typeprint.c: Likewise.
3134 * gnu-nat.c: Likewise.
3135 * go32-nat.c: Likewise.
3136 * i386gnu-nat.c: Likewise.
3137 * m2-typeprint.c: Likewise.
3138 * nat/linux-btrace.c: Likewise.
3139 * p-typeprint.c: Likewise.
3140 * procfs.c: Likewise.
3141 * remote-sim.c: Likewise.
3142 * rs6000-nat.c: Likewise.
3143 * target.c: Likewise.
3144 * typeprint.c: Likewise.
3145 * ui-file.c: Likewise.
3146 * valops.c: Likewise.
3147 * valprint.c: Likewise.
3148
3149 2014-08-07 Gary Benson <gbenson@redhat.com>
3150
3151 * common/common-defs.h: Include string.h.
3152 * aarch64-tdep.c: Do not include string.h.
3153 * ada-exp.y: Likewise.
3154 * ada-lang.c: Likewise.
3155 * ada-lex.l: Likewise.
3156 * ada-typeprint.c: Likewise.
3157 * ada-valprint.c: Likewise.
3158 * aix-thread.c: Likewise.
3159 * alpha-linux-tdep.c: Likewise.
3160 * alpha-mdebug-tdep.c: Likewise.
3161 * alpha-nat.c: Likewise.
3162 * alpha-osf1-tdep.c: Likewise.
3163 * alpha-tdep.c: Likewise.
3164 * alphanbsd-tdep.c: Likewise.
3165 * amd64-dicos-tdep.c: Likewise.
3166 * amd64-linux-tdep.c: Likewise.
3167 * amd64-nat.c: Likewise.
3168 * amd64-sol2-tdep.c: Likewise.
3169 * amd64fbsd-tdep.c: Likewise.
3170 * amd64obsd-tdep.c: Likewise.
3171 * arch-utils.c: Likewise.
3172 * arm-linux-nat.c: Likewise.
3173 * arm-linux-tdep.c: Likewise.
3174 * arm-tdep.c: Likewise.
3175 * arm-wince-tdep.c: Likewise.
3176 * armbsd-tdep.c: Likewise.
3177 * armnbsd-nat.c: Likewise.
3178 * armnbsd-tdep.c: Likewise.
3179 * armobsd-tdep.c: Likewise.
3180 * avr-tdep.c: Likewise.
3181 * ax-gdb.c: Likewise.
3182 * ax-general.c: Likewise.
3183 * bcache.c: Likewise.
3184 * bfin-tdep.c: Likewise.
3185 * breakpoint.c: Likewise.
3186 * build-id.c: Likewise.
3187 * buildsym.c: Likewise.
3188 * c-exp.y: Likewise.
3189 * c-lang.c: Likewise.
3190 * c-typeprint.c: Likewise.
3191 * c-valprint.c: Likewise.
3192 * charset.c: Likewise.
3193 * cli-out.c: Likewise.
3194 * cli/cli-cmds.c: Likewise.
3195 * cli/cli-decode.c: Likewise.
3196 * cli/cli-dump.c: Likewise.
3197 * cli/cli-interp.c: Likewise.
3198 * cli/cli-logging.c: Likewise.
3199 * cli/cli-script.c: Likewise.
3200 * cli/cli-setshow.c: Likewise.
3201 * cli/cli-utils.c: Likewise.
3202 * coffread.c: Likewise.
3203 * common/agent.c: Likewise.
3204 * common/buffer.c: Likewise.
3205 * common/buffer.h: Likewise.
3206 * common/common-utils.c: Likewise.
3207 * common/filestuff.c: Likewise.
3208 * common/filestuff.c: Likewise.
3209 * common/format.c: Likewise.
3210 * common/print-utils.c: Likewise.
3211 * common/rsp-low.c: Likewise.
3212 * common/signals.c: Likewise.
3213 * common/vec.h: Likewise.
3214 * common/xml-utils.c: Likewise.
3215 * core-regset.c: Likewise.
3216 * corefile.c: Likewise.
3217 * corelow.c: Likewise.
3218 * cp-abi.c: Likewise.
3219 * cp-name-parser.y: Likewise.
3220 * cp-support.c: Likewise.
3221 * cp-valprint.c: Likewise.
3222 * cris-tdep.c: Likewise.
3223 * d-exp.y: Likewise.
3224 * darwin-nat.c: Likewise.
3225 * dbxread.c: Likewise.
3226 * dcache.c: Likewise.
3227 * demangle.c: Likewise.
3228 * dicos-tdep.c: Likewise.
3229 * disasm.c: Likewise.
3230 * doublest.c: Likewise.
3231 * dsrec.c: Likewise.
3232 * dummy-frame.c: Likewise.
3233 * dwarf2-frame.c: Likewise.
3234 * dwarf2loc.c: Likewise.
3235 * dwarf2read.c: Likewise.
3236 * elfread.c: Likewise.
3237 * environ.c: Likewise.
3238 * eval.c: Likewise.
3239 * event-loop.c: Likewise.
3240 * exceptions.c: Likewise.
3241 * exec.c: Likewise.
3242 * expprint.c: Likewise.
3243 * f-exp.y: Likewise.
3244 * f-lang.c: Likewise.
3245 * f-typeprint.c: Likewise.
3246 * f-valprint.c: Likewise.
3247 * fbsd-nat.c: Likewise.
3248 * findcmd.c: Likewise.
3249 * findvar.c: Likewise.
3250 * fork-child.c: Likewise.
3251 * frame.c: Likewise.
3252 * frv-linux-tdep.c: Likewise.
3253 * frv-tdep.c: Likewise.
3254 * gdb.c: Likewise.
3255 * gdb_bfd.c: Likewise.
3256 * gdbarch.c: Likewise.
3257 * gdbarch.sh: Likewise.
3258 * gdbtypes.c: Likewise.
3259 * gnu-nat.c: Likewise.
3260 * gnu-v2-abi.c: Likewise.
3261 * gnu-v3-abi.c: Likewise.
3262 * go-exp.y: Likewise.
3263 * go-lang.c: Likewise.
3264 * go32-nat.c: Likewise.
3265 * guile/guile.c: Likewise.
3266 * guile/scm-auto-load.c: Likewise.
3267 * hppa-hpux-tdep.c: Likewise.
3268 * hppa-linux-nat.c: Likewise.
3269 * hppanbsd-tdep.c: Likewise.
3270 * hppaobsd-tdep.c: Likewise.
3271 * i386-cygwin-tdep.c: Likewise.
3272 * i386-dicos-tdep.c: Likewise.
3273 * i386-linux-tdep.c: Likewise.
3274 * i386-nto-tdep.c: Likewise.
3275 * i386-sol2-tdep.c: Likewise.
3276 * i386-tdep.c: Likewise.
3277 * i386bsd-tdep.c: Likewise.
3278 * i386gnu-nat.c: Likewise.
3279 * i386nbsd-tdep.c: Likewise.
3280 * i386obsd-tdep.c: Likewise.
3281 * i387-tdep.c: Likewise.
3282 * ia64-libunwind-tdep.c: Likewise.
3283 * ia64-linux-nat.c: Likewise.
3284 * inf-child.c: Likewise.
3285 * inf-ptrace.c: Likewise.
3286 * inf-ttrace.c: Likewise.
3287 * infcall.c: Likewise.
3288 * infcmd.c: Likewise.
3289 * inflow.c: Likewise.
3290 * infrun.c: Likewise.
3291 * interps.c: Likewise.
3292 * iq2000-tdep.c: Likewise.
3293 * irix5-nat.c: Likewise.
3294 * jv-exp.y: Likewise.
3295 * jv-lang.c: Likewise.
3296 * jv-typeprint.c: Likewise.
3297 * jv-valprint.c: Likewise.
3298 * language.c: Likewise.
3299 * linux-fork.c: Likewise.
3300 * linux-nat.c: Likewise.
3301 * lm32-tdep.c: Likewise.
3302 * m2-exp.y: Likewise.
3303 * m2-typeprint.c: Likewise.
3304 * m32c-tdep.c: Likewise.
3305 * m32r-linux-nat.c: Likewise.
3306 * m32r-linux-tdep.c: Likewise.
3307 * m32r-rom.c: Likewise.
3308 * m32r-tdep.c: Likewise.
3309 * m68hc11-tdep.c: Likewise.
3310 * m68k-tdep.c: Likewise.
3311 * m68kbsd-tdep.c: Likewise.
3312 * m68klinux-nat.c: Likewise.
3313 * m68klinux-tdep.c: Likewise.
3314 * m88k-tdep.c: Likewise.
3315 * machoread.c: Likewise.
3316 * macrocmd.c: Likewise.
3317 * main.c: Likewise.
3318 * mdebugread.c: Likewise.
3319 * mem-break.c: Likewise.
3320 * memattr.c: Likewise.
3321 * memory-map.c: Likewise.
3322 * mep-tdep.c: Likewise.
3323 * mi/mi-cmd-break.c: Likewise.
3324 * mi/mi-cmd-disas.c: Likewise.
3325 * mi/mi-cmd-env.c: Likewise.
3326 * mi/mi-cmd-stack.c: Likewise.
3327 * mi/mi-cmd-var.c: Likewise.
3328 * mi/mi-cmds.c: Likewise.
3329 * mi/mi-console.c: Likewise.
3330 * mi/mi-getopt.c: Likewise.
3331 * mi/mi-interp.c: Likewise.
3332 * mi/mi-main.c: Likewise.
3333 * mi/mi-parse.c: Likewise.
3334 * microblaze-rom.c: Likewise.
3335 * microblaze-tdep.c: Likewise.
3336 * mingw-hdep.c: Likewise.
3337 * minidebug.c: Likewise.
3338 * minsyms.c: Likewise.
3339 * mips-irix-tdep.c: Likewise.
3340 * mips-linux-tdep.c: Likewise.
3341 * mips-tdep.c: Likewise.
3342 * mips64obsd-tdep.c: Likewise.
3343 * mipsnbsd-tdep.c: Likewise.
3344 * mipsread.c: Likewise.
3345 * mn10300-linux-tdep.c: Likewise.
3346 * mn10300-tdep.c: Likewise.
3347 * monitor.c: Likewise.
3348 * moxie-tdep.c: Likewise.
3349 * mt-tdep.c: Likewise.
3350 * nat/linux-btrace.c: Likewise.
3351 * nat/linux-osdata.c: Likewise.
3352 * nat/linux-procfs.c: Likewise.
3353 * nat/linux-ptrace.c: Likewise.
3354 * nat/linux-waitpid.c: Likewise.
3355 * nbsd-tdep.c: Likewise.
3356 * nios2-linux-tdep.c: Likewise.
3357 * nto-procfs.c: Likewise.
3358 * nto-tdep.c: Likewise.
3359 * objc-lang.c: Likewise.
3360 * objfiles.c: Likewise.
3361 * opencl-lang.c: Likewise.
3362 * osabi.c: Likewise.
3363 * osdata.c: Likewise.
3364 * p-exp.y: Likewise.
3365 * p-lang.c: Likewise.
3366 * p-typeprint.c: Likewise.
3367 * parse.c: Likewise.
3368 * posix-hdep.c: Likewise.
3369 * ppc-linux-nat.c: Likewise.
3370 * ppc-sysv-tdep.c: Likewise.
3371 * ppcfbsd-tdep.c: Likewise.
3372 * ppcnbsd-tdep.c: Likewise.
3373 * ppcobsd-tdep.c: Likewise.
3374 * printcmd.c: Likewise.
3375 * procfs.c: Likewise.
3376 * prologue-value.c: Likewise.
3377 * python/py-auto-load.c: Likewise.
3378 * python/py-gdb-readline.c: Likewise.
3379 * ravenscar-thread.c: Likewise.
3380 * regcache.c: Likewise.
3381 * registry.c: Likewise.
3382 * remote-fileio.c: Likewise.
3383 * remote-m32r-sdi.c: Likewise.
3384 * remote-mips.c: Likewise.
3385 * remote-notif.c: Likewise.
3386 * remote-sim.c: Likewise.
3387 * remote.c: Likewise.
3388 * reverse.c: Likewise.
3389 * rs6000-aix-tdep.c: Likewise.
3390 * ser-base.c: Likewise.
3391 * ser-go32.c: Likewise.
3392 * ser-mingw.c: Likewise.
3393 * ser-pipe.c: Likewise.
3394 * ser-tcp.c: Likewise.
3395 * ser-unix.c: Likewise.
3396 * serial.c: Likewise.
3397 * sh-tdep.c: Likewise.
3398 * sh64-tdep.c: Likewise.
3399 * shnbsd-tdep.c: Likewise.
3400 * skip.c: Likewise.
3401 * sol-thread.c: Likewise.
3402 * solib-dsbt.c: Likewise.
3403 * solib-frv.c: Likewise.
3404 * solib-osf.c: Likewise.
3405 * solib-som.c: Likewise.
3406 * solib-spu.c: Likewise.
3407 * solib-target.c: Likewise.
3408 * solib.c: Likewise.
3409 * somread.c: Likewise.
3410 * source.c: Likewise.
3411 * sparc-nat.c: Likewise.
3412 * sparc-sol2-tdep.c: Likewise.
3413 * sparc-tdep.c: Likewise.
3414 * sparc64-tdep.c: Likewise.
3415 * sparc64fbsd-tdep.c: Likewise.
3416 * sparc64nbsd-tdep.c: Likewise.
3417 * sparcnbsd-tdep.c: Likewise.
3418 * spu-linux-nat.c: Likewise.
3419 * spu-multiarch.c: Likewise.
3420 * spu-tdep.c: Likewise.
3421 * stabsread.c: Likewise.
3422 * stack.c: Likewise.
3423 * std-regs.c: Likewise.
3424 * symfile.c: Likewise.
3425 * symmisc.c: Likewise.
3426 * symtab.c: Likewise.
3427 * target.c: Likewise.
3428 * thread.c: Likewise.
3429 * tilegx-linux-nat.c: Likewise.
3430 * tilegx-tdep.c: Likewise.
3431 * top.c: Likewise.
3432 * tracepoint.c: Likewise.
3433 * tui/tui-command.c: Likewise.
3434 * tui/tui-data.c: Likewise.
3435 * tui/tui-disasm.c: Likewise.
3436 * tui/tui-file.c: Likewise.
3437 * tui/tui-layout.c: Likewise.
3438 * tui/tui-out.c: Likewise.
3439 * tui/tui-regs.c: Likewise.
3440 * tui/tui-source.c: Likewise.
3441 * tui/tui-stack.c: Likewise.
3442 * tui/tui-win.c: Likewise.
3443 * tui/tui-windata.c: Likewise.
3444 * tui/tui-winsource.c: Likewise.
3445 * typeprint.c: Likewise.
3446 * ui-file.c: Likewise.
3447 * ui-out.c: Likewise.
3448 * user-regs.c: Likewise.
3449 * utils.c: Likewise.
3450 * v850-tdep.c: Likewise.
3451 * valarith.c: Likewise.
3452 * valops.c: Likewise.
3453 * valprint.c: Likewise.
3454 * value.c: Likewise.
3455 * varobj.c: Likewise.
3456 * vax-tdep.c: Likewise.
3457 * vaxnbsd-tdep.c: Likewise.
3458 * vaxobsd-tdep.c: Likewise.
3459 * windows-nat.c: Likewise.
3460 * xcoffread.c: Likewise.
3461 * xml-support.c: Likewise.
3462 * xstormy16-tdep.c: Likewise.
3463 * xtensa-linux-nat.c: Likewise.
3464
3465 2014-08-07 Gary Benson <gbenson@redhat.com>
3466
3467 * common/common-defs.h: Include gdb_assert.h.
3468 * aarch64-tdep.c: Do not include gdb_assert.h.
3469 * addrmap.c: Likewise.
3470 * aix-thread.c: Likewise.
3471 * alpha-linux-tdep.c: Likewise.
3472 * alpha-mdebug-tdep.c: Likewise.
3473 * alphanbsd-tdep.c: Likewise.
3474 * amd64-nat.c: Likewise.
3475 * amd64-tdep.c: Likewise.
3476 * amd64bsd-nat.c: Likewise.
3477 * amd64fbsd-nat.c: Likewise.
3478 * amd64fbsd-tdep.c: Likewise.
3479 * amd64nbsd-nat.c: Likewise.
3480 * amd64nbsd-tdep.c: Likewise.
3481 * amd64obsd-nat.c: Likewise.
3482 * amd64obsd-tdep.c: Likewise.
3483 * arch-utils.c: Likewise.
3484 * arm-tdep.c: Likewise.
3485 * armbsd-tdep.c: Likewise.
3486 * auxv.c: Likewise.
3487 * bcache.c: Likewise.
3488 * bfin-tdep.c: Likewise.
3489 * blockframe.c: Likewise.
3490 * breakpoint.c: Likewise.
3491 * bsd-kvm.c: Likewise.
3492 * bsd-uthread.c: Likewise.
3493 * buildsym.c: Likewise.
3494 * c-exp.y: Likewise.
3495 * c-lang.c: Likewise.
3496 * charset.c: Likewise.
3497 * cleanups.c: Likewise.
3498 * cli-out.c: Likewise.
3499 * cli/cli-decode.c: Likewise.
3500 * cli/cli-dump.c: Likewise.
3501 * cli/cli-logging.c: Likewise.
3502 * cli/cli-script.c: Likewise.
3503 * cli/cli-utils.c: Likewise.
3504 * coffread.c: Likewise.
3505 * common/common-utils.c: Likewise.
3506 * common/queue.h: Likewise.
3507 * common/signals.c: Likewise.
3508 * common/vec.h: Likewise.
3509 * complaints.c: Likewise.
3510 * completer.c: Likewise.
3511 * corelow.c: Likewise.
3512 * cp-abi.c: Likewise.
3513 * cp-name-parser.y: Likewise.
3514 * cp-namespace.c: Likewise.
3515 * cp-support.c: Likewise.
3516 * cris-tdep.c: Likewise.
3517 * dbxread.c: Likewise.
3518 * dictionary.c: Likewise.
3519 * doublest.c: Likewise.
3520 * dsrec.c: Likewise.
3521 * dummy-frame.c: Likewise.
3522 * dwarf2-frame-tailcall.c: Likewise.
3523 * dwarf2-frame.c: Likewise.
3524 * dwarf2expr.c: Likewise.
3525 * dwarf2loc.c: Likewise.
3526 * dwarf2read.c: Likewise.
3527 * eval.c: Likewise.
3528 * event-loop.c: Likewise.
3529 * exceptions.c: Likewise.
3530 * expprint.c: Likewise.
3531 * f-valprint.c: Likewise.
3532 * fbsd-nat.c: Likewise.
3533 * findvar.c: Likewise.
3534 * frame-unwind.c: Likewise.
3535 * frame.c: Likewise.
3536 * frv-tdep.c: Likewise.
3537 * gcore.c: Likewise.
3538 * gdb-dlfcn.c: Likewise.
3539 * gdb_bfd.c: Likewise.
3540 * gdbarch.c: Likewise.
3541 * gdbarch.sh: Likewise.
3542 * gdbtypes.c: Likewise.
3543 * gnu-nat.c: Likewise.
3544 * gnu-v3-abi.c: Likewise.
3545 * go-lang.c: Likewise.
3546 * guile/scm-exception.c: Likewise.
3547 * guile/scm-gsmob.c: Likewise.
3548 * guile/scm-lazy-string.c: Likewise.
3549 * guile/scm-math.c: Likewise.
3550 * guile/scm-pretty-print.c: Likewise.
3551 * guile/scm-safe-call.c: Likewise.
3552 * guile/scm-utils.c: Likewise.
3553 * guile/scm-value.c: Likewise.
3554 * h8300-tdep.c: Likewise.
3555 * hppa-hpux-nat.c: Likewise.
3556 * hppa-tdep.c: Likewise.
3557 * hppanbsd-tdep.c: Likewise.
3558 * hppaobsd-tdep.c: Likewise.
3559 * i386-darwin-nat.c: Likewise.
3560 * i386-darwin-tdep.c: Likewise.
3561 * i386-nto-tdep.c: Likewise.
3562 * i386-tdep.c: Likewise.
3563 * i386bsd-nat.c: Likewise.
3564 * i386fbsd-tdep.c: Likewise.
3565 * i386gnu-nat.c: Likewise.
3566 * i386nbsd-tdep.c: Likewise.
3567 * i386obsd-tdep.c: Likewise.
3568 * i387-tdep.c: Likewise.
3569 * ia64-libunwind-tdep.c: Likewise.
3570 * ia64-tdep.c: Likewise.
3571 * inf-ptrace.c: Likewise.
3572 * inf-ttrace.c: Likewise.
3573 * infcall.c: Likewise.
3574 * infcmd.c: Likewise.
3575 * infrun.c: Likewise.
3576 * inline-frame.c: Likewise.
3577 * interps.c: Likewise.
3578 * jv-lang.c: Likewise.
3579 * jv-typeprint.c: Likewise.
3580 * linux-fork.c: Likewise.
3581 * linux-nat.c: Likewise.
3582 * linux-thread-db.c: Likewise.
3583 * m32c-tdep.c: Likewise.
3584 * m32r-linux-nat.c: Likewise.
3585 * m32r-tdep.c: Likewise.
3586 * m68k-tdep.c: Likewise.
3587 * m68kbsd-nat.c: Likewise.
3588 * m68kbsd-tdep.c: Likewise.
3589 * m88k-tdep.c: Likewise.
3590 * machoread.c: Likewise.
3591 * macroexp.c: Likewise.
3592 * macrotab.c: Likewise.
3593 * maint.c: Likewise.
3594 * mdebugread.c: Likewise.
3595 * memory-map.c: Likewise.
3596 * mep-tdep.c: Likewise.
3597 * mi/mi-common.c: Likewise.
3598 * microblaze-tdep.c: Likewise.
3599 * mingw-hdep.c: Likewise.
3600 * mips-linux-nat.c: Likewise.
3601 * mips-linux-tdep.c: Likewise.
3602 * mips-tdep.c: Likewise.
3603 * mips64obsd-tdep.c: Likewise.
3604 * mipsnbsd-tdep.c: Likewise.
3605 * mn10300-linux-tdep.c: Likewise.
3606 * mn10300-tdep.c: Likewise.
3607 * moxie-tdep.c: Likewise.
3608 * mt-tdep.c: Likewise.
3609 * nat/linux-btrace.c: Likewise.
3610 * nat/linux-osdata.c: Likewise.
3611 * nat/linux-ptrace.c: Likewise.
3612 * nat/mips-linux-watch.c: Likewise.
3613 * nios2-linux-tdep.c: Likewise.
3614 * nios2-tdep.c: Likewise.
3615 * objc-lang.c: Likewise.
3616 * objfiles.c: Likewise.
3617 * obsd-nat.c: Likewise.
3618 * opencl-lang.c: Likewise.
3619 * osabi.c: Likewise.
3620 * parse.c: Likewise.
3621 * ppc-linux-nat.c: Likewise.
3622 * ppc-sysv-tdep.c: Likewise.
3623 * ppcfbsd-nat.c: Likewise.
3624 * ppcfbsd-tdep.c: Likewise.
3625 * ppcnbsd-nat.c: Likewise.
3626 * ppcnbsd-tdep.c: Likewise.
3627 * ppcobsd-nat.c: Likewise.
3628 * ppcobsd-tdep.c: Likewise.
3629 * printcmd.c: Likewise.
3630 * procfs.c: Likewise.
3631 * prologue-value.c: Likewise.
3632 * psymtab.c: Likewise.
3633 * python/py-lazy-string.c: Likewise.
3634 * python/py-value.c: Likewise.
3635 * regcache.c: Likewise.
3636 * reggroups.c: Likewise.
3637 * registry.c: Likewise.
3638 * remote-sim.c: Likewise.
3639 * remote.c: Likewise.
3640 * rs6000-aix-tdep.c: Likewise.
3641 * rs6000-tdep.c: Likewise.
3642 * s390-linux-tdep.c: Likewise.
3643 * score-tdep.c: Likewise.
3644 * ser-base.c: Likewise.
3645 * ser-mingw.c: Likewise.
3646 * sh-tdep.c: Likewise.
3647 * sh64-tdep.c: Likewise.
3648 * solib-darwin.c: Likewise.
3649 * solib-spu.c: Likewise.
3650 * solib-svr4.c: Likewise.
3651 * source.c: Likewise.
3652 * sparc-nat.c: Likewise.
3653 * sparc-sol2-tdep.c: Likewise.
3654 * sparc-tdep.c: Likewise.
3655 * sparc64-sol2-tdep.c: Likewise.
3656 * sparc64-tdep.c: Likewise.
3657 * sparc64fbsd-tdep.c: Likewise.
3658 * sparc64nbsd-tdep.c: Likewise.
3659 * sparc64obsd-tdep.c: Likewise.
3660 * sparcnbsd-tdep.c: Likewise.
3661 * sparcobsd-tdep.c: Likewise.
3662 * spu-multiarch.c: Likewise.
3663 * spu-tdep.c: Likewise.
3664 * stabsread.c: Likewise.
3665 * stack.c: Likewise.
3666 * symfile.c: Likewise.
3667 * symtab.c: Likewise.
3668 * target-descriptions.c: Likewise.
3669 * target-memory.c: Likewise.
3670 * target.c: Likewise.
3671 * tic6x-linux-tdep.c: Likewise.
3672 * tic6x-tdep.c: Likewise.
3673 * tilegx-linux-nat.c: Likewise.
3674 * tilegx-tdep.c: Likewise.
3675 * top.c: Likewise.
3676 * tramp-frame.c: Likewise.
3677 * tui/tui-out.c: Likewise.
3678 * tui/tui-winsource.c: Likewise.
3679 * ui-out.c: Likewise.
3680 * user-regs.c: Likewise.
3681 * utils.c: Likewise.
3682 * v850-tdep.c: Likewise.
3683 * valops.c: Likewise.
3684 * value.c: Likewise.
3685 * varobj.c: Likewise.
3686 * vax-nat.c: Likewise.
3687 * xml-syscall.c: Likewise.
3688 * xml-tdesc.c: Likewise.
3689 * xstormy16-tdep.c: Likewise.
3690 * xtensa-linux-nat.c: Likewise.
3691 * xtensa-tdep.c: Likewise.
3692
3693 2014-08-07 Gary Benson <gbenson@redhat.com>
3694
3695 * common/common-defs.h: Include common-utils.h.
3696 * defs.h: Do not include common-utils.h.
3697 * common/gdb_assert.h: Likewise.
3698 * darwin-nat.h: Likewise.
3699 * nat/linux-btrace.c: Likewise.
3700 * target/waitstatus.h: Likewise.
3701
3702 2014-08-07 Gary Benson <gbenson@redhat.com>
3703
3704 * common/common-defs.h: Include ptid.h.
3705 * defs.h: Do not include ptid.h.
3706 * inferior.h: Likewise.
3707 * infrun.h: Likewise.
3708 * nat/linux-btrace.h: Likewise.
3709 * nat/linux-osdata.h: Likewise.
3710 * target/waitstatus.h: Likewise.
3711
3712 2014-08-07 Gary Benson <gbenson@redhat.com>
3713
3714 * common/common-defs.h: Include gdb_locale.h.
3715 * defs.h: Do not include gdb_locale.h.
3716
3717 2014-08-07 Gary Benson <gbenson@redhat.com>
3718
3719 * common/common-defs.h: Include gdb/signals.h.
3720 * defs.h: Do not include gdb/signals.h.
3721
3722 2014-08-07 Gary Benson <gbenson@redhat.com>
3723
3724 * common/common-defs.h: Include pathmax.h.
3725 * defs.h: Do not include pathmax.h.
3726
3727 2014-08-07 Gary Benson <gbenson@redhat.com>
3728
3729 * common/common-defs.h: Include libiberty.h.
3730 * defs.h: Do not include libiberty.h.
3731 * common/queue.h: Likewise.
3732 * cp-name-parser.y: Likewise.
3733 * mi/mi-cmd-catch.c: Likewise.
3734 * python/python.c: Likewise.
3735
3736 2014-08-07 Gary Benson <gbenson@redhat.com>
3737
3738 * common/common-defs.h: Include ansidecl.h.
3739 * defs.h: Do not include ansidecl.h.
3740 * common/buffer.h: Likewise.
3741 * common/common-utils.h: Likewise.
3742
3743 2014-08-07 Gary Benson <gbenson@redhat.com>
3744
3745 * common/common-defs.h: Include stddef.h.
3746 * defs.h: Do not include stddef.h.
3747 * common/common-utils.h: Likewise.
3748 * amd64fbsd-nat.c: Likewise.
3749 * bcache.c: Likewise.
3750 * charset.c: Likewise.
3751 * common/buffer.h: Likewise.
3752 * common/vec.h: Likewise.
3753 * i386bsd-nat.c: Likewise.
3754 * nat/linux-btrace.h: Likewise.
3755 * ppcfbsd-nat.c: Likewise.
3756 * ppcnbsd-tdep.h: Likewise.
3757 * ppcobsd-nat.c: Likewise.
3758 * ppcobsd-tdep.h: Likewise.
3759 * python/py-gdb-readline.c: Likewise.
3760
3761 2014-08-07 Gary Benson <gbenson@redhat.com>
3762
3763 * common/common-defs.h: Include stdarg.h.
3764 * defs.h: Do not include stdarg.h.
3765 * ada-lang.c: Likewise.
3766 * common/common-utils.h: Likewise.
3767 * guile/scm-string.c: Likewise.
3768 * guile/scm-utils.c: Likewise.
3769 * m32c-tdep.c: Likewise.
3770
3771 2014-08-07 Gary Benson <gbenson@redhat.com>
3772
3773 * common/common-defs.h: Include stdlib.h.
3774 * defs.h: Do not include stdlib.h.
3775 * addrmap.c: Likewise.
3776 * bcache.c: Likewise.
3777 * common/buffer.c: Likewise.
3778 * common/common-utils.c: Likewise.
3779 * cp-name-parser.y: Likewise.
3780 * go32-nat.c: Likewise.
3781 * mn10300-linux-tdep.c: Likewise.
3782 * nat/linux-osdata.c: Likewise.
3783 * tui/tui.c: Likewise.
3784 * windows-nat.c: Likewise.
3785
3786 2014-08-07 Gary Benson <gbenson@redhat.com>
3787
3788 * common/common-defs.h: Include stdio.h.
3789 * defs.h: Do not include stdio.h.
3790 * ada-lang.c: Likewise.
3791 * common/buffer.c: Likewise.
3792 * common/common-utils.c: Likewise.
3793 * cp-name-parser.y: Likewise.
3794 * gnu-nat.c: Likewise.
3795 * go32-nat.c: Likewise.
3796 * i386gnu-nat.c: Likewise.
3797 * proc-api.c: Likewise.
3798 * proc-events.c: Likewise.
3799 * proc-flags.c: Likewise.
3800 * proc-why.c: Likewise.
3801 * python/python-internal.h: Likewise.
3802 * target-memory.c: Likewise.
3803 * tui/tui-io.c: Likewise.
3804 * tui/tui.c: Likewise.
3805
3806 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3807
3808 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3809 (scan_dyntag_auxv): Same.
3810
3811 2014-08-06 Yao Qi <yao@codesourcery.com>
3812
3813 * amd64-linux-nat.c: Remove duplicated include
3814 "x86-linux-nat.h".
3815 * i386-linux-nat.c: Likewise.
3816
3817 2014-08-06 Yao Qi <yao@codesourcery.com>
3818
3819 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3820 operand" with "Special opcode" in comments.
3821
3822 2014-08-05 Gary Benson <gbenson@redhat.com>
3823
3824 * interps.c (initialize_interps): Remove prototype.
3825 (interpreter_initialized): Remove static global.
3826 (interp_add): Do not call initialize_interps.
3827 (initialize_interps): Remove function.
3828
3829 2014-08-05 Gary Benson <gbenson@redhat.com>
3830
3831 * utils.c (vwarning): Remove spurious va_end.
3832
3833 2014-08-05 Alan Modra <amodra@gmail.com>
3834
3835 * charset.c (convert_between_encodings): Cast result of obstack_base.
3836 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3837 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3838 (read_unwind_info): Use size_t for some locals.
3839 * jit.c (finalize_symtab): Likewise.
3840 * utils.c (hashtab_obstack_allocate): Likewise.
3841 * symmisc.c (print_objfile_statistics): Update format strings.
3842
3843 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3844
3845 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3846 (Changes in GDB 7.8): ... here.
3847
3848 2014-08-04 Tom Tromey <tromey@redhat.com>
3849
3850 * target.c (set_targetdebug): New function.
3851 (initialize_targets): Pass set_targetdebug when creating "set
3852 debug target".
3853
3854 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3855
3856 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3857 if detecting a variable-sized field that is not the last field.
3858 Fix struct type length computation.
3859
3860 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3861
3862 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3863 Add debug trace.
3864
3865 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3866
3867 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3868 Remove "+ 8" offset in computation of CHAIN_VMA.
3869
3870 2014-07-31 Doug Evans <dje@google.com>
3871
3872 * inflow.c (child_terminal_inferior): Add comment.
3873 (child_terminal_ours_for_output): Add comment.
3874 (child_terminal_ours): Add comment.
3875 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3876 (linux_nat_terminal_ours): Add comment.
3877
3878 2014-07-31 Gary Benson <gbenson@redhat.com>
3879
3880 * common/btrace-common.h: Do not include defs.h or server.h.
3881 * nat/mips-linux-watch.h: Likewise.
3882 * gdb-dlfcn.h: Do not include defs.h.
3883 * tracefile.h: Likewise.
3884
3885 2014-07-30 Roland McGrath <mcgrathr@google.com>
3886
3887 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3888
3889 2014-07-30 Tom Tromey <tromey@redhat.com>
3890
3891 * bsd-kvm.c (bsd_kvm_open): Constify.
3892 * corelow.c (core_open): Constify.
3893 * ctf.c (ctf_open): Constify.
3894 * dbug-rom.c (dbug_open): Constify.
3895 * exec.c (exec_open): Constify.
3896 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3897 * microblaze-rom.c (picobug_open): Constify.
3898 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3899 Constify.
3900 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3901 * record-btrace.c (record_btrace_open): Constify.
3902 * record-full.c (record_full_core_open_1, record_full_open_1)
3903 (record_full_open): Constify.
3904 * remote-m32r-sdi.c (m32r_open): Constify.
3905 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3906 (rockhopper_open, lsi_open): Constify.
3907 * remote-sim.c (gdbsim_open): Constify.
3908 * remote.c (remote_open, extended_remote_open, remote_open_1):
3909 Constify.
3910 * target.h (struct target_ops) <to_open>: Make "arg" const.
3911 * tracefile-tfile.c (tfile_open): Constify.
3912
3913 2014-07-30 Tom Tromey <tromey@redhat.com>
3914
3915 * breakpoint.c (map_breakpoint_numbers): Update.
3916 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3917 (get_number_const): New function.
3918 (get_number): Rewrite using get_number_const.
3919 (init_number_or_range): Make "string" const.
3920 (number_is_in_list): Make "list" const.
3921 * cli/cli-utils.h (get_number_const): Declare.
3922 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3923 (init_number_or_range, number_is_in_list): Update.
3924 * printcmd.c (map_display_numbers): Update.
3925 * value.c (value_from_history_ref): Constify.
3926 * value.h (value_from_history_ref): Update.
3927
3928 2014-07-30 Tom Tromey <tromey@redhat.com>
3929
3930 * corefile.c (hook_type, call_extra_exec_file_hooks)
3931 (specify_exec_file_hook): Constify.
3932 * exec.c (exec_file_attach): Make "filename" const.
3933 * gdbcore.h (deprecated_exec_file_display_hook)
3934 (specify_exec_file_hook, exec_file_attach): Constify.
3935 * main.c (captured_main): Use catch_command_errors_const.
3936
3937 2014-07-30 Tom Tromey <tromey@redhat.com>
3938
3939 * target.c (open_target): New function.
3940 (add_target_with_completer, add_deprecated_target_alias): Use
3941 set_cmd_sfunc, set_cmd_context.
3942 (debug_to_open): Remove.
3943 (setup_target_debug): Update.
3944
3945 2014-07-30 Yao Qi <yao@codesourcery.com>
3946
3947 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3948 comments.
3949 * parse.c (exp_iterate): Update comments.
3950
3951 2014-07-30 Gary Benson <gbenson@redhat.com>
3952
3953 * common/common-defs.h: New file.
3954 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3955 * defs.h: Include common-defs.h.
3956 Do not include config.h or build-gnulib/config.h.
3957
3958 2014-07-30 Gary Benson <gbenson@redhat.com>
3959
3960 * common/common-utils.h: Do not include config.h.
3961 * nat/linux-btrace.h: Likewise.
3962
3963 2014-07-30 Gary Benson <gbenson@redhat.com>
3964
3965 * btrace.c: Include defs.h.
3966 * common/ptid.c: Include defs.h or server.h as appropriate.
3967 * nat/mips-linux-watch.c: Likewise.
3968
3969 2014-07-29 Tom Tromey <tromey@redhat.com>
3970
3971 * target.c (target_is_pushed): Simplify.
3972
3973 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3974
3975 GDB 7.8 released.
3976
3977 2014-07-29 Yao Qi <yao@codesourcery.com>
3978
3979 PR gdb/17206
3980 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3981
3982 2014-07-28 Doug Evans <xdje42@gmail.com>
3983
3984 PR guile/17203
3985 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3986 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3987 parameters.
3988
3989 2014-07-28 Will Newton <will.newton@linaro.org>
3990
3991 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3992 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3993 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3994 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3995 (THUMB2_EABI_SYSCALL): Likewise.
3996 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3997 struct tramp_frame.
3998 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3999 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4000
4001 2014-07-27 Doug Evans <xdje42@gmail.com>
4002
4003 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4004
4005 2014-07-27 Doug Evans <xdje42@gmail.com>
4006
4007 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4008
4009 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4010 Doug Evans <xdje42@gmail.com>
4011
4012 PR guile/17146
4013 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4014 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4015 * configure.ac: Try to use guild to compile an scm file, if it fails
4016 then disable guile support.
4017 * configure: Regenerate.
4018 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4019 GUILE_FILE_LIST.
4020 (GUILE_COMPILED_FILES): New variable.
4021 (GUILE_FILES) Update.
4022 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4023 (stamp-guile): Compile scm files.
4024 * guile/guile.c (boot_guile_support): New function.
4025 (standard_throw_args_p): New function.
4026 (print_standard_throw_error, print_throw_error): New functions.
4027 (handle_boot_error): New function.
4028 (initialize_scheme_side): Rewrite to call boot_guile_support.
4029 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4030 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4031
4032 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4033 Doug Evans <xdje42@gmail.com>
4034
4035 PR guile/17146
4036 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4037 * guile/lib/gdb/support.scm: New file.
4038 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4039 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4040 All uses updated.
4041 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4042 All uses updated.
4043 (%assert-type): Ditto, and renamed to assert-type.
4044 (%exception-print-style): Delete.
4045
4046 2014-07-26 Doug Evans <xdje42@gmail.com>
4047
4048 PR build/17105
4049 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4050 * configure: Regenerate.
4051 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4052 PYTHON_FILES.
4053 (PYTHON_FILES): New variable.
4054 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4055 (GUILE_FILES): New variable.
4056 (stamp-python, install-python, uninstall-python): Handle empty
4057 file list.
4058 (stamp-guile, install-guile, uninstall-guile): Ditto.
4059
4060 2014-07-26 Doug Evans <xdje42@gmail.com>
4061
4062 PR guile/17177
4063 * guile/lib/gdb.scm (pretty-printers): Export.
4064 (set-pretty-printers!): Export.
4065 * guile/lib/gdb/printing.scm (gdb module): Update.
4066 (prepend-pretty-printer!, append-pretty-printer!): Update.
4067 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4068 (pretty_printer_list_var): Delete.
4069 (pretty_printer_list): New static global.
4070 (gdbscm_pretty_printers): New function.
4071 (gdbscm_set_pretty_printers_x): New function.
4072 (ppscm_find_pretty_printer_from_gdb): Update.
4073 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4074 (gdbscm_initialize_pretty_printers): Update.
4075
4076 2014-07-26 Doug Evans <xdje42@gmail.com>
4077
4078 PR 17185
4079 * configure.ac: Add check for header gc/gc.h.
4080 Add check for function setenv.
4081 * configure: Regenerate.
4082 * config.in: Regenerate.
4083 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4084
4085 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4086
4087 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4088 variation in gdbarch matching.
4089
4090 2014-07-25 Tom Tromey <tromey@redhat.com>
4091
4092 * exec.c (using_exec_ops): Remove.
4093 (exec_close_1): Update. Remove extraneous block, reindent.
4094 (add_target_sections): Use target_is_pushed.
4095
4096 2014-07-25 Pedro Alves <palves@redhat.com>
4097
4098 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4099 * monitor.c (monitor_create_inferior): Likewise.
4100 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4101 * remote-sim.c (gdbsim_create_inferior): Likewise.
4102 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4103 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4104 * windows-nat.c (do_initial_windows_stuff): Likewise.
4105
4106 2014-07-25 Pedro Alves <palves@redhat.com>
4107
4108 * NEWS: Mention signal passing and "signal" command changes.
4109 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4110 comment.
4111 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4112 call.
4113 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4114 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4115 (jump_command): Adjust clear_proceed_status call.
4116 (signal_command): Warn if other thread that are resumed have
4117 signals that will be delivered. Adjust clear_proceed_status call.
4118 (until_next_command, finish_command)
4119 (proceed_after_attach_callback, attach_command_post_wait)
4120 (attach_command): Adjust clear_proceed_status call.
4121 * infrun.c (proceed_after_vfork_done): Likewise.
4122 (proceed_after_attach_callback): Adjust comment.
4123 (clear_proceed_status_thread): Clear stop_signal if not in pass
4124 state.
4125 (clear_proceed_status_callback): Delete.
4126 (clear_proceed_status): New 'step' parameter. Only clear the
4127 proceed status of threads the command being prepared is about to
4128 resume.
4129 (proceed): If passed in an explicit signal, override stop_signal
4130 with it. Don't pass the last stop signal to the thread we're
4131 resuming.
4132 (init_wait_for_inferior): Adjust clear_proceed_status call.
4133 (switch_back_to_stepped_thread): Clear the signal if it should not
4134 be passed.
4135 * infrun.h (clear_proceed_status): New 'step' parameter.
4136 (user_visible_resume_ptid): Add comment.
4137 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4138 signal is in pass state.
4139 * remote.c (append_pending_thread_resumptions): Likewise.
4140 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4141
4142 2014-07-25 Tom Tromey <tromey@redhat.com>
4143
4144 * target.h (target_stopped_data_address)
4145 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4146 parentheses.
4147
4148 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4149
4150 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4151 comments.
4152 (avr_pointer_to_address): Likewise.
4153
4154 2014-07-24 Tom Tromey <tromey@redhat.com>
4155
4156 * monitor.c (compile_pattern): Update.
4157 * target.h (struct target_ops) <to_shortname, to_longname,
4158 to_doc>: Now const.
4159
4160 2014-07-24 Tom Tromey <tromey@redhat.com>
4161
4162 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4163 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4164 (add_info_alias, add_com): Make "doc" const.
4165 (print_doc_line): Make "str" const.
4166 (delete_cmd): Update.
4167 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4168 (print_doc_line): Update.
4169 * cli/cli-script.c (document_command): Update.
4170 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4171 (add_com, add_info, add_info_alias): Update.
4172 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4173 * python/py-cmd.c (cmdpy_destroyer): Update.
4174
4175 2014-07-24 Tom Tromey <tromey@redhat.com>
4176
4177 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4178 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4179 (help_cmd_list): Constify.
4180 (lookup_cmd): Update.
4181 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4182 const.
4183 (help_cmd_list, apropos_cmd): Update.
4184 * cli/cli-script.c (show_user): Update.
4185 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4186 * cli/cli-setshow.h (cmd_show_list): Update.
4187 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4188 (cmd_show_list): Update.
4189 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4190 * python/py-cmd.c (cmdpy_destroyer): Update.
4191
4192 2014-07-24 Tom Tromey <tromey@redhat.com>
4193
4194 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4195 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4196 const.
4197 * command.h (deprecate_cmd): Update.
4198 * maint.c (maintenance_do_deprecate): Add casts.
4199
4200 2014-07-24 Tom Tromey <tromey@redhat.com>
4201
4202 * cli/cli-decode.c (help_cmd): Make parameter "const".
4203 * cli/cli-decode.h (help_cmd): Update.
4204
4205 2014-07-24 Tom Tromey <tromey@redhat.com>
4206
4207 * stack.c (up_silently_base, down_silently_base): Make argument
4208 const.
4209
4210 2014-07-24 Tom Tromey <tromey@redhat.com>
4211
4212 * solib.c (solib_add): Make "pattern" const.
4213 * solib.h (solib_add): Update.
4214
4215 2014-07-24 Tom Tromey <tromey@redhat.com>
4216
4217 * remote.c (remote_serial_open, print_packet, putpkt)
4218 (putpkt_binary): Constify.
4219 * remote.h (putpkt): Update.
4220
4221 2014-07-24 Tom Tromey <tromey@redhat.com>
4222
4223 * monitor.c (monitor_open): Make "args" const.
4224 * monitor.h (monitor_open): Update.
4225
4226 2014-07-24 Tom Tromey <tromey@redhat.com>
4227
4228 * maint.c (match_bfd_flags): Make "string" const.
4229 (print_bfd_section_info): Remove casts.
4230 (print_objfile_section_info): Make "string" const.
4231
4232 2014-07-24 Tom Tromey <tromey@redhat.com>
4233
4234 * inf-child.c (inf_child_open_target): Make "arg" const.
4235 * inf-child.h (inf_child_open_target): Update.
4236
4237 2014-07-24 Tom Tromey <tromey@redhat.com>
4238
4239 * environ.c (unset_in_environ): Make "var" const.
4240 * environ.h (unset_in_environ): Update.
4241
4242 2014-07-24 Tom Tromey <tromey@redhat.com>
4243
4244 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4245 Make "cmd" const.
4246 (scan_filename_with_cleanup): Likewise.
4247 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4248 Make arguments const.
4249 (restore_command): Update.
4250
4251 2014-07-24 Pedro Alves <palves@redhat.com>
4252
4253 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4254
4255 2014-07-24 Tom Tromey <tromey@redhat.com>
4256 Gary Benson <gbenson@redhat.com>
4257
4258 * nat/linux-ptrace.c (additional_flags): New global.
4259 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4260 additional_flags; don't check GDBSERVER.
4261 (linux_ptrace_set_additional_flags): New function.
4262 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4263 Declare.
4264 * linux-nat.c (_initialize_linux_nat): Call
4265 linux_ptrace_set_additional_flags.
4266
4267 2014-07-24 Tom Tromey <tromey@redhat.com>
4268
4269 * make-target-delegates (munge_type, write_debugmethod): New
4270 functions.
4271 (debug_names): New global.
4272 ($TARGET_DEBUG_PRINTER): New global.
4273 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4274 name.
4275 Write debug methods. Generate init_debug_target.
4276 * target-debug.h: New file.
4277 * target-delegates.c: Rebuild.
4278 * target.c: Include target-debug.h.
4279 (debug_target): Hoist definition.
4280 (target_kill, target_get_section_table, target_memory_map)
4281 (target_flash_erase, target_flash_done, target_detach)
4282 (target_disconnect, target_wait, target_resume)
4283 (target_pass_signals, target_program_signals, target_follow_fork)
4284 (target_mourn_inferior, target_search_memory)
4285 (target_thread_address_space, target_close)
4286 (target_find_new_threads, target_core_of_thread)
4287 (target_verify_memory, target_insert_mask_watchpoint)
4288 (target_remove_mask_watchpoint): Remove targetdebug code.
4289 (debug_to_post_attach, debug_to_prepare_to_store)
4290 (debug_to_files_info, debug_to_insert_breakpoint)
4291 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4292 (debug_to_region_ok_for_hw_watchpoint)
4293 (debug_to_can_accel_watchpoint_condition)
4294 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4295 (debug_to_watchpoint_addr_within_range)
4296 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4297 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4298 (debug_to_terminal_init, debug_to_terminal_inferior)
4299 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4300 (debug_to_terminal_save_ours, debug_to_terminal_info)
4301 (debug_to_load, debug_to_post_startup_inferior)
4302 (debug_to_insert_fork_catchpoint)
4303 (debug_to_remove_fork_catchpoint)
4304 (debug_to_insert_vfork_catchpoint)
4305 (debug_to_remove_vfork_catchpoint)
4306 (debug_to_insert_exec_catchpoint)
4307 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4308 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4309 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4310 (setup_target_debug): Call init_debug_target.
4311 * target.h (TARGET_DEBUG_PRINTER): New macro.
4312 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4313 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4314
4315 2014-07-24 Gary Benson <gbenson@redhat.com>
4316
4317 * exceptions.h (throw_vfatal): Renamed to...
4318 (throw_vquit): New declaration.
4319 (throw_quit): Likewise.
4320 * exceptions.c (throw_vfatal): Renamed to...
4321 (throw_vquit): New function.
4322 (throw_quit): Likewise.
4323 (throw_error): Call throw_verror rather than throw_it.
4324 * utils.h (vfatal): Removed.
4325 (fatal): Likewise.
4326 * utils.c (vfatal): Removed.
4327 (fatal): Likewise.
4328 (internal_verror): Replaced call to fatal with call to throw_quit.
4329 (quit): Replaced calls to fatal with calls to throw_quit.
4330
4331 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4332
4333 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4334 target_read_code.
4335
4336 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4337
4338 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4339 less than zero in conditional expression.
4340
4341 2014-07-23 Tom Tromey <tromey@redhat.com>
4342
4343 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4344 ($INTRO_PART): Don't match whitespace.
4345 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4346 argument matching.
4347 ($METHOD): Add $METHOD_TRAILER.
4348 (trim): Rewrite.
4349 (scan_target_h): New sub.
4350 Change main loop not to collect state.
4351 * target-delegates.c: Rebuild.
4352
4353 2014-07-23 Gary Benson <gbenson@redhat.com>
4354
4355 * cp-support.c (gdb_demangle): Fix build on systems without
4356 sigaltstack.
4357
4358 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4359
4360 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4361 for reference entry value target data value.
4362
4363 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4364
4365 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4366 value_available_contents_eq.
4367
4368 2014-07-22 Pedro Alves <palves@redhat.com>
4369
4370 * value.c (allocate_optimized_out_value): Don't mark value as
4371 non-lazy.
4372
4373 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4374
4375 * MAINTAINERS (Write After Approval): Update my email address.
4376
4377 2014-07-20 Doug Evans <dje@google.com>
4378
4379 PR server/17147
4380 * remote.c (putpkt_binary): Add text to error message.
4381
4382 2014-07-20 Yao Qi <yao@codesourcery.com>
4383
4384 * eval.c: Remove "Chill" from comments.
4385 * gdbtypes.h: Likewise.
4386 * symtab.h: Likewise.
4387
4388 2014-07-20 Yao Qi <yao@codesourcery.com>
4389
4390 * std-operator.def: Update comments to TERNOP_SLICE.
4391
4392 2014-07-20 Yao Qi <yao@codesourcery.com>
4393
4394 * std-operator.def: Remove BINOP_RANGE.
4395 * breakpoint.c (watchpoint_exp_is_const): Update.
4396 * expprint.c (dump_subexp_body_standard): Likewise.
4397 * eval.c (init_array_element): Remove dead code.
4398 (evaluate_subexp_standard): Likewise.
4399
4400 2014-07-20 Yao Qi <yao@codesourcery.com>
4401
4402 * std-operator.def: Remove BINOP_IN.
4403 * breakpoint.c (watchpoint_exp_is_const): Update.
4404 * eval.c (evaluate_subexp_standard): Likewise.
4405 * expprint.c (dump_subexp_body_standard): Likewise.
4406
4407 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4408
4409 * microblaze-tdep.c (microblaze_register_names): Add
4410 the rshr and rslr register names.
4411 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4412 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4413 Use of tdesc_numbered_register. Use of
4414 microblaze_register_g_packet_guesses. Use of
4415 tdesc_use_registers. Use of set_gdbarch_register_type.
4416 (microblaze_register_g_packet_guesses): New.
4417 * microblaze-tdep.h (microblaze_reg_num): Add
4418 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4419 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4420 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4421 * features/microblaze-core.xml: New file.
4422 * features/microblaze-stack-protect.xml: New file.
4423 * features/microblaze-with-stack-protect.c: New file.
4424 * features/microblaze-with-stack-protect.xml: New file.
4425 * features/microblaze.xml: New file.
4426 * features/microblaze.c: New file.
4427 * features/Makefile (microblaze-with-stack-protect): Add
4428 microblaze-with-stack-protect microblaze and microblaze-expedite.
4429 * regformats/microblaze-with-stack-protect.dat: New file.
4430 * regformats/microblaze.dat: New file.
4431 * doc/gdb.texinfo (MicroBlaze Features): Added.
4432
4433 2014-07-18 Tom Tromey <tromey@redhat.com>
4434
4435 * exec.c (exec_ops): Now static.
4436 * exec.h (exec_ops): Don't declare.
4437
4438 2014-07-18 Tom Tromey <tromey@redhat.com>
4439
4440 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4441 to find_target_beneath.
4442 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4443 find_target_beneath.
4444 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4445
4446 2014-07-18 Tom Tromey <tromey@redhat.com>
4447
4448 PR gdb/17130:
4449 * utils.c (quit): Use target_supports_terminal_ours.
4450 * target.h (target_supports_terminal_ours): Declare.
4451 * target.c (target_supports_delete_record): Don't check
4452 to_delete_record against NULL.
4453 (target_supports_terminal_ours): New function.
4454
4455 2014-07-18 Tom Tromey <tromey@redhat.com>
4456
4457 PR gdb/17130:
4458 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4459 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4460 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4461 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4462 * windows-nat.c (windows_xfer_partial): Always delegate.
4463 * record-btrace.c (record_btrace_xfer_partial): Simplify
4464 delegation.
4465 (record_btrace_fetch_registers, record_btrace_store_registers)
4466 (record_btrace_prepare_to_store, record_btrace_resume)
4467 (record_btrace_wait, record_btrace_find_new_threads)
4468 (record_btrace_thread_alive): Likewise.
4469 * procfs.c (procfs_xfer_partial): Always delegate.
4470 * corelow.c (core_xfer_partial): Always delegate.
4471 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4472
4473 2014-07-18 Tom Tromey <tromey@redhat.com>
4474
4475 * exec.c (exec_make_note_section): Move earlier.
4476
4477 2014-07-17 Doug Evans <dje@google.com>
4478
4479 PR gdb/17170
4480 * maint.c (count_symtabs_and_blocks): Handle NULL
4481 current_program_space.
4482 (report_command_stats): Check global enabled flag in addition to
4483 recorded enabled flag.
4484 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4485
4486 2014-07-16 Pedro Alves <palves@redhat.com>
4487
4488 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4489
4490 2014-07-16 Tom Tromey <tromey@redhat.com>
4491
4492 * target.h (struct target_ops) <to_delete_record>: Reformat
4493 comment.
4494
4495 2014-07-16 Tom Tromey <tromey@redhat.com>
4496
4497 * target-delegates.c: Rebuild.
4498
4499 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4500
4501 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4502 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4503 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4504 (avr_pointer_to_address): Likewise.
4505 (avr_address_class_type_flags): New function.
4506 (avr_address_class_type_flags_to_name): Likewise.
4507 (avr_address_class_name_to_type_flags): Likewise.
4508 (avr_gdbarch_init): Set address_class_type_flags,
4509 address_class_type_flags_to_name and
4510 address_class_name_to_type_flags.
4511
4512 2014-07-15 Pedro Alves <palves@redhat.com>
4513
4514 * linux-nat.c (kill_callback): Save errno and work with saved
4515 copy.
4516
4517 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4518
4519 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4520
4521 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4522
4523 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4524 breakpoint support correctly.
4525
4526 2014-07-14 Pedro Alves <palves@redhat.com>
4527
4528 * utils.c (prompt_for_continue): Call target_terminal_ours.
4529
4530 2014-07-14 Pedro Alves <palves@redhat.com>
4531
4532 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4533 catch_errors. Don't re-enable stdin or notify observers where,
4534 and rethrow error.
4535 (fetch_inferior_event_wrapper): Delete.
4536
4537 2014-07-14 Pedro Alves <palves@redhat.com>
4538
4539 PR gdb/17072
4540 * top.c: Include "inf-loop.h".
4541 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4542 field.
4543 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4544 was async before.
4545 (gdb_readline_wrapper): Store whether the target is async, and
4546 make it sync.
4547
4548 2014-07-14 Pedro Alves <palves@redhat.com>
4549
4550 PR gdb/17072
4551 * top.c (gdb_readline_wrapper_line): Tweak comment.
4552 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4553 the input handler callback.
4554
4555 2014-07-14 Pedro Alves <palves@redhat.com>
4556
4557 PR gdb/17072
4558 * main.c: Include event-top.h.
4559 (handle_command_errors): New function.
4560 (catch_command_errors, catch_command_errors_const): Use it.
4561
4562 2014-07-14 Pedro Alves <palves@redhat.com>
4563
4564 * exceptions.c (catch_command_errors, catch_command_errors_const):
4565 Moved to main.c.
4566 * exceptions.h (catch_command_errors_ftype)
4567 (catch_command_errors_const_ftype): Moved to main.c.
4568 (catch_command_errors, catch_command_errors_const): Delete
4569 declarations.
4570 * main.c (catch_command_errors_ftype)
4571 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4572 (catch_command_errors, catch_command_errors_const)): Moved here
4573 from exceptions.c and make static.
4574
4575 2014-07-14 Pedro Alves <palves@redhat.com>
4576
4577 * exceptions.c (print_any_exception): Delete.
4578 (catch_exceptions_with_msg): Use exception_print instead of
4579 print_any_exception.
4580 (catch_errors): Use exception_fprintf instead of
4581 print_any_exception.
4582 (catch_command_errors, catch_command_errors_const): Use
4583 exception_print instead of print_any_exception.
4584
4585 2014-07-14 Pedro Alves <palves@redhat.com>
4586
4587 * infcall.c (run_inferior_call): Set 'sync_execution' while
4588 running the inferior call.
4589
4590 2014-07-14 Pedro Alves <palves@redhat.com>
4591
4592 * value.c (value_contents_equal): Delete function.
4593 * value.h (value_contents_equal): Delete declaration.
4594
4595 2014-07-14 Tom Tromey <tromey@redhat.com>
4596
4597 PR exp/17106:
4598 * gdbtypes.c (is_dynamic_type_internal): New function, from
4599 is_dynamic_type.
4600 (is_dynamic_type): Rewrite.
4601 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4602 (resolve_dynamic_struct): Likewise.
4603 (resolve_dynamic_type_internal): New function, from
4604 resolve_dynamic_type.
4605 (resolve_dynamic_type): Rewrite.
4606
4607 2014-07-14 Tom Tromey <tromey@redhat.com>
4608
4609 * target.c (target_require_runnable): Also check record_stratum.
4610 Update comment.
4611
4612 2014-07-11 Yao Qi <yao@codesourcery.com>
4613
4614 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4615 thumb_instruction_restores_sp return true.
4616
4617 2014-07-11 Yao Qi <yao@codesourcery.com>
4618
4619 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4620 (thumb_in_function_epilogue_p): Call
4621 thumb_instruction_restores_sp.
4622
4623 2014-07-11 Yao Qi <yao@codesourcery.com>
4624
4625 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4626 'add sp, #imm'.
4627 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4628
4629 2014-07-11 Gary Benson <gbenson@redhat.com>
4630
4631 * amd64-linux-nat.c (gdbcore.h): Remove include.
4632 (regset.h): Likewise.
4633 (nat/linux-btrace.h): Likewise.
4634 (btrace.h): Likewise.
4635 (gdb_assert.h): Likewise.
4636 (string.h): Likewise.
4637 (sys/uio.h): Likewise.
4638 (sys/debugreg.h): Likewise.
4639 (sys/syscall.h): Likewise.
4640 (sys/procfs.h): Likewise.
4641 (sys/user.h): Likewise.
4642 (asm/ptrace.h): Likewise.
4643 (i386-nat.h): Likewise.
4644 * i386-linux-nat.c (i386-nat.h): Likewise.
4645 (regset.h): Likewise.
4646 (target.h): Likewise.
4647 (linux-nat.h): Likewise.
4648 (nat/linux-btrace.h): Likewise.
4649 (btrace.h): Likewise.
4650 (gdb_assert.h): Likewise.
4651 (string.h): Likewise.
4652 (sys/uio.h): Likewise.
4653 (sys/user.h): Likewise.
4654 (sys/procfs.h): Likewise.
4655 (sys/reg.h): Likewise.
4656 (sys/debugreg.h): Likewise.
4657 (ORIG_EAX): Remove definition.
4658
4659 2014-07-11 Gary Benson <gbenson@redhat.com>
4660
4661 * i386-linux-nat.h: New file.
4662 * x86-linux-nat.h: Likewise.
4663 * x86-linux-nat.c: Likewise.
4664 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4665 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4666 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4667 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4668 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4669 (PTRACE_SETREGSET): Likewise.
4670 (arch_lwp_info): Now in x86-linux-nat.c.
4671 (have_ptrace_getregset): Now in x86-linux-nat.h.
4672 (x86_linux_dr_get): Now in x86-linux-nat.c.
4673 (x86_linux_dr_set): Likewise.
4674 (x86_linux_dr_get_addr): Likewise.
4675 (x86_linux_dr_get_control): Likewise.
4676 (x86_linux_dr_get_status): Likewise.
4677 (update_debug_registers_callback): Likewise.
4678 (x86_linux_dr_set_control): Likewise.
4679 (x86_linux_dr_set_addr): Likewise.
4680 (x86_linux_prepare_to_resume): Likewise.
4681 (x86_linux_new_thread): Likewise.
4682 (x86_linux_new_fork): Likewise.
4683 (x86_linux_get_thread_area): Likewise.
4684 (super_post_startup_inferior): Likewise.
4685 (x86_linux_child_post_startup_inferior): Likewise.
4686 (AMD64_LINUX_USER64_CS): Likewise.
4687 (AMD64_LINUX_X32_DS): Likewise.
4688 (x86_linux_read_description): Likewise.
4689 (x86_linux_enable_btrace): Likewise.
4690 (x86_linux_disable_btrace): Likewise.
4691 (x86_linux_teardown_btrace): Likewise.
4692 (x86_linux_read_btrace): Likewise.
4693 (x86_linux_create_target): Likewise.
4694 (x86_linux_add_target): Likewise.
4695 * i386-linux-nat.c (x86-linux-nat.h): New include.
4696 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4697 (PTRACE_SETREGSET): Likewise.
4698 (arch_lwp_info): Now in x86-linux-nat.c.
4699 (have_ptrace_getregset): Now in x86-linux-nat.h.
4700 (x86_linux_dr_get): Now in x86-linux-nat.c.
4701 (x86_linux_dr_set): Likewise.
4702 (x86_linux_dr_get_addr): Likewise.
4703 (x86_linux_dr_get_control): Likewise.
4704 (x86_linux_dr_get_status): Likewise.
4705 (update_debug_registers_callback): Likewise.
4706 (x86_linux_dr_set_control): Likewise.
4707 (x86_linux_dr_set_addr): Likewise.
4708 (x86_linux_prepare_to_resume): Likewise.
4709 (x86_linux_new_thread): Likewise.
4710 (x86_linux_new_fork): Likewise.
4711 (x86_linux_get_thread_area): Likewise.
4712 (super_post_startup_inferior): Likewise.
4713 (x86_linux_child_post_startup_inferior): Likewise.
4714 (AMD64_LINUX_USER64_CS): Likewise.
4715 (AMD64_LINUX_X32_DS): Likewise.
4716 (x86_linux_read_description): Likewise.
4717 (x86_linux_enable_btrace): Likewise.
4718 (x86_linux_disable_btrace): Likewise.
4719 (x86_linux_teardown_btrace): Likewise.
4720 (x86_linux_read_btrace): Likewise.
4721 (x86_linux_create_target): Likewise.
4722 (x86_linux_add_target): Likewise.
4723
4724 2014-07-11 Gary Benson <gbenson@redhat.com>
4725
4726 * amd64-linux-nat.c: Comment and whitespace changes.
4727 * i386-linux-nat.c: Comment and whitespace changes.
4728
4729 2014-07-11 Gary Benson <gbenson@redhat.com>
4730
4731 * amd64-linux-nat.c (x86_linux_create_target): New function.
4732 (x86_linux_add_target): Likewise.
4733 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4734 * i386-linux-nat.c (x86_linux_create_target): New function.
4735 (x86_linux_add_target): Likewise.
4736 (_initialize_i386_linux_nat): Delegate to the above new functions.
4737
4738 2014-07-11 Gary Benson <gbenson@redhat.com>
4739
4740 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4741 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4742 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4743 (ps_get_thread_area): Delegate to the above.
4744
4745 2014-07-11 Gary Benson <gbenson@redhat.com>
4746
4747 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4748 x86_linux_read_description. All uses updated. amd64-specific
4749 code conditionalized. Conditionalized i386-specific code added.
4750 Redundant cast removed.
4751 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4752 x86_linux_read_description. All uses updated. i386-specific
4753 code conditionalized. Conditionalized amd64-specific code added.
4754 One sizeof replaced with the actual type it is describing.
4755
4756 2014-07-11 Gary Benson <gbenson@redhat.com>
4757
4758 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4759 x86_linux_dr_get. All uses updated.
4760 (amd64_linux_dr_set): Renamed to
4761 x86_linux_dr_set. All uses updated.
4762 (amd64_linux_dr_get_addr): Renamed to
4763 x86_linux_dr_get_addr. All uses updated.
4764 (amd64_linux_dr_get_control): Renamed to
4765 x86_linux_dr_get_control. All uses updated.
4766 (amd64_linux_dr_get_status): Renamed to
4767 x86_linux_dr_get_status. All uses updated.
4768 (amd64_linux_dr_set_control): Renamed to
4769 x86_linux_dr_set_control. All uses updated.
4770 (amd64_linux_dr_set_addr): Renamed to
4771 x86_linux_dr_set_addr. All uses updated.
4772 (amd64_linux_prepare_to_resume): Renamed to
4773 x86_linux_prepare_to_resume. All uses updated.
4774 (amd64_linux_new_thread): Renamed to
4775 x86_linux_new_thread. All uses updated.
4776 (amd64_linux_new_fork): Renamed to
4777 x86_linux_new_fork. All uses updated.
4778 (amd64_linux_child_post_startup_inferior): Renamed to
4779 x86_linux_child_post_startup_inferior. All uses updated.
4780 (amd64_linux_enable_btrace): Renamed to
4781 x86_linux_enable_btrace. All uses updated.
4782 (amd64_linux_disable_btrace): Renamed to
4783 x86_linux_disable_btrace. All uses updated.
4784 (amd64_linux_teardown_btrace): Renamed to
4785 x86_linux_teardown_btrace. All uses updated.
4786 (amd64_linux_read_btrace): Renamed to
4787 x86_linux_read_btrace. All uses updated.
4788 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4789 x86_linux_dr_get. All uses updated.
4790 (i386_linux_dr_set): Renamed to
4791 x86_linux_dr_set. All uses updated.
4792 (i386_linux_dr_get_addr): Renamed to
4793 x86_linux_dr_get_addr. All uses updated.
4794 (i386_linux_dr_get_control): Renamed to
4795 x86_linux_dr_get_control. All uses updated.
4796 (i386_linux_dr_get_status): Renamed to
4797 x86_linux_dr_get_status. All uses updated.
4798 (i386_linux_dr_set_control): Renamed to
4799 x86_linux_dr_set_control. All uses updated.
4800 (i386_linux_dr_set_addr): Renamed to
4801 x86_linux_dr_set_addr. All uses updated.
4802 (i386_linux_prepare_to_resume): Renamed to
4803 x86_linux_prepare_to_resume. All uses updated.
4804 (i386_linux_new_thread): Renamed to
4805 x86_linux_new_thread. All uses updated.
4806 (i386_linux_new_fork): Renamed to
4807 x86_linux_new_fork. All uses updated.
4808 (i386_linux_child_post_startup_inferior): Renamed to
4809 x86_linux_child_post_startup_inferior. All uses updated.
4810 (i386_linux_enable_btrace): Renamed to
4811 x86_linux_enable_btrace. All uses updated.
4812 (i386_linux_disable_btrace): Renamed to
4813 x86_linux_disable_btrace. All uses updated.
4814 (i386_linux_teardown_btrace): Renamed to
4815 x86_linux_teardown_btrace. All uses updated.
4816 (i386_linux_read_btrace): Renamed to
4817 x86_linux_read_btrace. All uses updated.
4818
4819 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4820
4821 * remote.c (extended_remote_post_attach): New function.
4822 (init_extended_remote_ops): Install it as to_post_attach method.
4823
4824 2014-07-09 Pedro Alves <palves@redhat.com>
4825
4826 * infcmd.c (attach_command_post_wait): Don't call
4827 target_terminal_inferior here.
4828 (attach_command): Call it here instead.
4829
4830 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4831
4832 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4833 field.
4834 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4835 from varobj.c, with additional checks.
4836 (c_varobj_ops): Fill in is_path_expr_parent field.
4837 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4838 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4839 field.
4840 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4841 ops method.
4842 (varobj_default_is_path_expr_parent): New function.
4843 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4844 (varobj_default_is_path_expr_parent): Declare new function.
4845
4846 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4847
4848 * infcmd.c (finish_backward): Turn internal error into normal error.
4849
4850 2014-07-07 Pedro Alves <palves@redhat.com>
4851
4852 PR gdb/17096
4853 * remote.c (async_handle_remote_sigint)
4854 (async_handle_remote_sigint_twice): Call
4855 gdb_call_async_signal_handler instead of
4856 mark_async_signal_handler.
4857
4858 2014-07-07 Tom Tromey <tromey@redhat.com>
4859
4860 * target-delegates.c: Rebuild.
4861 * target.c (target_info_record): Remove.
4862 * record.c (info_record_command): Unconditionally call
4863 to_info_record.
4864 * target.h (struct target_ops) <to_info_record>: Use
4865 TARGET_DEFAULT_IGNORE.
4866 (target_info_record): Remove.
4867
4868 2014-07-07 Tom Tromey <tromey@redhat.com>
4869
4870 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4871 TARGET_DEFAULT_NORETURN.
4872 * target.c (generic_tls_error): New function.
4873 (target_translate_tls_address): Don't search target stack.
4874 * target-delegates.c: Rebuild.
4875 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4876 stack.
4877 * linux-thread-db.c (thread_db_get_thread_local_address):
4878 Unconditionally call beneath target.
4879
4880 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4881
4882 * cli/cli-logging.c (pop_output_files): Assign targerr to
4883 gdb_stdtargerr.
4884
4885 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4886
4887 * MAINTAINERS (Write After Approval): Update my email address.
4888
4889 2014-07-02 Gary Benson <gbenson@redhat.com>
4890
4891 * proc-service.c (ps_xfer_memory): Update comment.
4892 (ps_pstop): Remove unused function.
4893 (ps_pcontinue): Likewise.
4894 (ps_lstop): Likewise.
4895 (ps_lcontinue): Likewise.
4896 (ps_lgetxregsize): Likewise.
4897 (ps_lgetxregs): Likewise.
4898 (ps_lsetxregs): Likewise.
4899 (ps_plog): Likewise.
4900 (ps_ptread): Likewise.
4901 (ps_ptwrite): Likewise.
4902
4903 2014-07-01 Mark Wielaard <mjw@redhat.com>
4904
4905 * dwarf2read.c (add_array_cv_type): New function.
4906 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4907 (read_tag_volatile_type): Likewise.
4908
4909 2014-07-01 Tom Tromey <tromey@redhat.com>
4910
4911 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4912 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4913 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4914 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4915 * command.h (cmd_cfunc_ftype): Move earlier.
4916 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4917 (add_com, add_info): Use cmd_cfunc_ftype.
4918
4919 2014-06-30 Tom Tromey <tromey@redhat.com>
4920
4921 * symtab.c (operator_chars): Make parameters and return type
4922 const.
4923 (file_matches): Make "files" const.
4924 (struct search_symbols_data) <files>: Now const.
4925 (search_symbols): Make "regexp" and "files" parameters const.
4926 Update.
4927 (symtab_symbol_info): Remove cast.
4928 (rbreak_command): Update.
4929 * symtab.h (search_symbols): Update.
4930
4931 2014-06-27 Yao Qi <yao@codesourcery.com>
4932
4933 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4934 Change parameter type to 'struct thread_info *'. Caller
4935 updated.
4936 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4937 Update declaration.
4938 * dummy-frame.c (struct dummy_frame_id): New.
4939 (dummy_frame_id_eq): New function.
4940 (struct dummy_frame) <id>: Change its type to 'struct
4941 dummy_frame_id'.
4942 (dummy_frame_push): Add parameter ptid and save it in
4943 dummy_frame_id.
4944 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4945 inferior_ptid.
4946 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4947 to inferior_ptid.
4948 (lookup_dummy_frame): Change parameter type to 'struct
4949 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4950 instead of frame_id_eq.
4951 (dummy_frame_pop): Add parameter ptid. Callers updated.
4952 Update comments. Compose dummy_frame_id and pass it to
4953 lookup_dummy_frame.
4954 (dummy_frame_discard): Add parameter ptid.
4955 (dummy_frame_sniffer): Compose dummy_frame_id and call
4956 dummy_frame_id_eq instead of frame_id_eq.
4957 (fprint_dummy_frames): Print ptid.
4958 * dummy-frame.h: Remove comments.
4959 (dummy_frame_push): Add ptid in declaration.
4960 (dummy_frame_pop, dummy_frame_discard): Likewise.
4961
4962 2014-06-26 Tom Tromey <tromey@redhat.com>
4963
4964 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4965 * command.h (error_no_arg): Update.
4966
4967 2014-06-26 Tom Tromey <tromey@redhat.com>
4968
4969 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4970 (do_show_command): Make "arg" const.
4971 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4972
4973 2014-06-26 Tom Tromey <tromey@redhat.com>
4974
4975 * record-full.c (record_full_get_bookmark): Make "args" const.
4976 (record_full_goto_bookmark): Make "raw_bookmark" const.
4977 * record.c (record_goto): New function.
4978 (cmd_record_goto): Use it. Now static.
4979 * record.h (record_goto): Declare.
4980 (cmd_record_goto): Remove declaration.
4981 * target-delegates.c: Rebuild.
4982 * target.h (struct target_ops) <to_get_bookmark,
4983 to_goto_bookmark>: Make parameter const.
4984
4985 2014-06-26 Tom Tromey <tromey@redhat.com>
4986
4987 * defs.h (generic_load): Update.
4988 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4989 * monitor.c (monitor_load): Make "args" const.
4990 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4991 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4992 const.
4993 (mips_load): Make "file" const.
4994 * remote-sim.c (gdbsim_load): Make "args" const.
4995 * remote.c (remote_load): Make "name" const.
4996 * symfile.c (generic_load): Make "args" const.
4997 * target-delegates.c: Rebuild.
4998 * target.c (target_load): Make "arg" const.
4999 (debug_to_load): Make "args" const.
5000 * target.h (struct target_ops) <to_load>: Make parameter const.
5001 (target_load): Update.
5002
5003 2014-06-26 Tom Tromey <tromey@redhat.com>
5004
5005 PR symtab/16902:
5006 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5007 (dwarf2_physname, read_partial_die)
5008 (guess_partial_die_structure_name, fixup_partial_die)
5009 (guess_full_die_structure_name, anonymous_struct_prefix)
5010 (dwarf2_name): Use per-BFD obstack.
5011
5012 2014-06-26 Yao Qi <yao@codesourcery.com>
5013
5014 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5015 dummyframe and this_id into inner block below.
5016
5017 2014-06-26 Yao Qi <yao@codesourcery.com>
5018
5019 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5020 with "signal_pass[0]" in the initialization of signal_pass.
5021
5022 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5023
5024 * record-btrace.c (record_btrace_generating_corefile)
5025 (record_btrace_prepare_to_generate_core)
5026 (record_btrace_done_generating_core): New.
5027 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5028 (record_btrace_store_registers, record_btrace_prepare_to_store):
5029 Forward request when generating a core file.
5030 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5031 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5032 to_done_generating_core.
5033
5034 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5035
5036 * target.h (target_ops) <to_prepare_to_generate_core>
5037 <to_done_generating_core>: New.
5038 (target_prepare_to_generate_core, target_done_generating_core): New.
5039 * target.c (target_prepare_to_generate_core)
5040 (target_done_generating_core): New.
5041 * target-delegates.c: Regenerate.
5042 * gcore.c: (write_gcore_file): Rename to ...
5043 (write_gcore_file_1): ...this.
5044 (write_gcore_file): Call target_prepare_to_generate_core
5045 and target_done_generating_core.
5046
5047 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5048
5049 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5050 * gcore.c (write_gcore_file): Free memory returned from
5051 make_corefile_notes.
5052 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5053 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5054
5055 2014-06-24 Yao Qi <yao@codesourcery.com>
5056
5057 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5058 (arm_linux_init_abi): Set skip_trampoline_code with
5059 gdbarch_skip_trampoline_code instead of
5060 find_solib_trampoline_target.
5061
5062 2014-06-24 Yao Qi <yao@codesourcery.com>
5063
5064 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5065 arm_skip_bx_reg returns non-zero.
5066
5067 2014-06-24 Yao Qi <yao@codesourcery.com>
5068
5069 * arm-tdep.c (arm_skip_bx_reg): New function.
5070 (arm_skip_stub): Call arm_skip_bx_reg.
5071
5072 2014-06-23 Don Breazeal <donb@codesourcery.com>
5073
5074 * MAINTAINERS: Add myself as write-after-approval maintainer.
5075
5076 2014-06-23 Pedro Alves <palves@redhat.com>
5077
5078 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5079 DR_CONTROL before setting DR0..DR3.
5080 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5081 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5082 bits of DR_CONTROL related to the debug register slot being
5083 disabled. If all slots are vacant, clear local slowdown as well,
5084 and assert DR_CONTROL is 0.
5085
5086 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5087
5088 * python/lib/gdb/command/xmethods.py
5089 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5090 current progspace only if the string "progspace" matches LOCUS_RE.
5091
5092 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5093
5094 Fix --with-system-readline with readline-6.3 patch 5.
5095 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5096 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5097 types.
5098
5099 2014-06-20 Tom Tromey <tromey@redhat.com>
5100
5101 * dwarf2read.c (dw2_get_real_path): Use correct type in
5102 OBSTACK_CALLOC.
5103 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5104
5105 2014-06-20 Gary Benson <gbenson@redhat.com>
5106
5107 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5108 * common/glibc_thread_db.h: Likewise.
5109 * common/i386-cpuid.h: Likewise.
5110 * common/i386-gcc-cpuid.h: Likewise.
5111 * common/linux-btrace.h: Likewise.
5112 * common/linux-osdata.h: Likewise.
5113 * common/linux-procfs.h: Likewise.
5114 * common/linux-ptrace.h: Likewise.
5115 * common/mips-linux-watch.h: Likewise.
5116 * common/linux-btrace.c: Moved to nat.
5117 * common/linux-osdata.c: Likewise.
5118 * common/linux-procfs.c: Likewise.
5119 * common/linux-ptrace.c: Likewise.
5120 * common/mips-linux-watch.c: Likewise.
5121 * nat/gdb_thread_db.h: Moved from common.
5122 * nat/glibc_thread_db.h: Likewise.
5123 * nat/i386-cpuid.h: Likewise.
5124 * nat/i386-gcc-cpuid.h: Likewise.
5125 * nat/linux-btrace.c: Likewise.
5126 * nat/linux-btrace.h: Likewise.
5127 * nat/linux-osdata.c: Likewise.
5128 * nat/linux-osdata.h: Likewise.
5129 * nat/linux-procfs.c: Likewise.
5130 * nat/linux-procfs.h: Likewise.
5131 * nat/linux-ptrace.c: Likewise.
5132 * nat/linux-ptrace.h: Likewise.
5133 * nat/mips-linux-watch.c: Likewise.
5134 * nat/mips-linux-watch.h: Likewise.
5135 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5136 (object file files): Reordered.
5137 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5138 of glibc_thread_db.h.
5139
5140 2014-06-20 Gary Benson <gbenson@redhat.com>
5141
5142 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5143 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5144 (i386_dr_low): Likewise.
5145 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5146 (i386_dr_low_set_addr): Likewise.
5147 (i386_dr_low_get_addr): Likewise.
5148 (i386_dr_low_can_set_control): Likewise.
5149 (i386_dr_low_set_control): Likewise.
5150 (i386_dr_low_get_control): Likewise.
5151 (i386_dr_low_get_status): Likewise.
5152 (i386_get_debug_register_length): Likewise.
5153 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5154 (i386_dr_low): Likewise.
5155 * nat/i386-dregs.c (i386-low.h): Remove include.
5156 (i386-nat.h): Likewise.
5157 (nat/i386-dregs.h): New include.
5158 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5159 (i386_dr_low_set_addr): Likewise.
5160 (i386_dr_low_get_addr): Likewise.
5161 (i386_dr_low_can_set_control): Likewise.
5162 (i386_dr_low_set_control): Likewise.
5163 (i386_dr_low_get_control): Likewise.
5164 (i386_dr_low_get_status): Likewise.
5165 (i386_get_debug_register_length): Likewise.
5166 (debug_hw_points): Likewise.
5167
5168 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5169
5170 * Makefile.in (SFILES): Add d-exp.y.
5171 (YYFILES): Add d-exp.c.
5172 (YYOBJ): Add d-exp.o.
5173 (local-maintainer-clean): Delete d-exp.c.
5174 * d-exp.y: New file.
5175 * d-lang.h (d_parse): New declaration.
5176 (d_error): New declaration.
5177 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5178 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5179 PREC_ORDER operators.
5180 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5181
5182 2014-06-19 Yao Qi <yao@codesourcery.com>
5183
5184 * gdbthread.h (any_running): Remove the declaration.
5185 * thread.c (any_running): Remove.
5186
5187 2014-06-19 Yao Qi <yao@codesourcery.com>
5188
5189 * gdbthread.h (struct thread_info) <state>: Change its type to
5190 'enum thread_state'. Update comments.
5191
5192 2014-06-19 Pedro Alves <palves@redhat.com>
5193
5194 * gdbthread.h (ALL_THREADS): Delete.
5195 (ALL_NON_EXITED_THREADS): New macro.
5196 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5197 instead of ALL_THREADS.
5198 * infrun.c (find_thread_needs_step_over)
5199 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5200 instead of ALL_THREADS.
5201 * record-btrace.c (record_btrace_open)
5202 (record_btrace_stop_recording, record_btrace_close)
5203 (record_btrace_is_replaying, record_btrace_resume)
5204 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5205 * remote.c (append_pending_thread_resumptions): Likewise.
5206 * thread.c (thread_apply_all_command): Likewise.
5207
5208 2014-06-19 Gary Benson <gbenson@redhat.com>
5209
5210 * i386-nat.c (i386_stopped_by_watchpoint):
5211 Use i386_dr_stopped_by_watchpoint.
5212 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5213 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5214
5215 2014-06-19 Gary Benson <gbenson@redhat.com>
5216
5217 * nat/i386-dregs.c: New file.
5218 * Makefile.in (i386-dregs.o): New rule.
5219 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5220 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5221 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5222 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5223 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5224 * config/i386/go32.mh (NATDEPFILES): Likewise.
5225 * config/i386/linux.mh (NATDEPFILES): Likewise.
5226 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5227 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5228 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5229 * i386-nat.h (debug_hw_points): New declaration.
5230 * i386-nat.c (breakpoint.h): Remove include.
5231 (command.h): Likewise.
5232 (target.h): Likewise.
5233 (gdb_assert.h): Likewise.
5234 (debug_hw_points): Made nonstatic.
5235 (debug_printf): Now in i386-dregs.c.
5236 (TARGET_HAS_DR_LEN_8): Likewise.
5237 (DR_CONTROL_SHIFT): Likewise.
5238 (DR_CONTROL_SIZE): Likewise.
5239 (DR_RW_EXECUTE): Likewise.
5240 (DR_RW_WRITE): Likewise.
5241 (DR_RW_READ): Likewise.
5242 (DR_RW_IORW): Likewise.
5243 (DR_LEN_1): Likewise.
5244 (DR_LEN_2): Likewise.
5245 (DR_LEN_4): Likewise.
5246 (DR_LEN_8): Likewise.
5247 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5248 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5249 (DR_ENABLE_SIZE): Likewise.
5250 (DR_LOCAL_SLOWDOWN): Likewise.
5251 (DR_GLOBAL_SLOWDOWN): Likewise.
5252 (DR_CONTROL_RESERVED): Likewise.
5253 (I386_DR_CONTROL_MASK): Likewise.
5254 (I386_DR_VACANT): Likewise.
5255 (I386_DR_LOCAL_ENABLE): Likewise.
5256 (I386_DR_GLOBAL_ENABLE): Likewise.
5257 (I386_DR_DISABLE): Likewise.
5258 (I386_DR_SET_RW_LEN): Likewise.
5259 (I386_DR_GET_RW_LEN): Likewise.
5260 (I386_DR_WATCH_HIT): Likewise.
5261 (i386_wp_op_t): Likewise.
5262 (i386_show_dr): Likewise.
5263 (i386_length_and_rw_bits): Likewise.
5264 (i386_insert_aligned_watchpoint): Likewise.
5265 (i386_remove_aligned_watchpoint): Likewise.
5266 (i386_handle_nonaligned_watchpoint): Likewise.
5267 (i386_update_inferior_debug_regs): Likewise.
5268 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5269 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5270 (i386_region_ok_for_watchpoint):
5271 Use i386_dr_region_ok_for_watchpoint.
5272 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5273
5274 2014-06-19 Gary Benson <gbenson@redhat.com>
5275
5276 * i386-nat.c (i386_insert_hw_breakpoint): Use
5277 i386_insert_watchpoint.
5278 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5279
5280 2014-06-19 Gary Benson <gbenson@redhat.com>
5281
5282 * i386-nat.c (i386_dr_show): Renamed to
5283 i386_show_dr and made static. All uses updated.
5284 (i386_dr_length_and_rw_bits): Renamed to
5285 i386_length_and_rw_bits and made static.
5286 All uses updated.
5287 (i386_dr_insert_aligned_watchpoint): Renamed to
5288 i386_insert_aligned_watchpoint and made static.
5289 All uses updated.
5290 (i386_dr_remove_aligned_watchpoint): Renamed to
5291 i386_remove_aligned_watchpoint and made static.
5292 All uses updated.
5293 (i386_dr_update_inferior_debug_regs): Renamed to
5294 i386_update_inferior_debug_regs and made static.
5295 All uses updated.
5296 * nat/i386-dregs.h (i386_dr_show): Removed.
5297 (i386_dr_length_and_rw_bits): Likewise.
5298 (i386_dr_insert_aligned_watchpoint): Likewise.
5299 (i386_dr_remove_aligned_watchpoint): Likewise.
5300 (i386_dr_update_inferior_debug_regs): Likewise.
5301
5302 2014-06-19 Gary Benson <gbenson@redhat.com>
5303
5304 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5305 * configure: Regenerate.
5306 * config.in: Likewise.
5307 * main.c (signal.h): New include.
5308 (setup_alternate_signal_stack): New function.
5309 (captured_main): Call the above.
5310 * cp-support.c (signal.h): New include.
5311 (catch_demangler_crashes): New flag.
5312 (SIGJMP_BUF): New define.
5313 (SIGSETJMP): Likewise.
5314 (SIGLONGJMP): Likewise.
5315 (gdb_demangle_jmp_buf): New static global.
5316 (gdb_demangle_attempt_core_dump): Likewise.
5317 (gdb_demangle_signal_handler): New function.
5318 (gdb_demangle): If catch_demangler_crashes is set, install the
5319 above signal handler before calling bfd_demangle, and restore
5320 the original signal handler afterwards. Display the offending
5321 symbol and call demangler_warning the first time a segmentation
5322 fault is caught.
5323 (_initialize_cp_support): New maint set/show command.
5324
5325 2014-06-19 Gary Benson <gbenson@redhat.com>
5326
5327 * utils.h (resource_limit_kind): New enum.
5328 (can_dump_core): New declaration.
5329 (warn_cant_dump_core): Likewise.
5330 (dump_core): Likewise.
5331 * utils.c (dump_core): Made nonstatic. Added new
5332 parameter "limit_kind".
5333 (can_dump_core): Made nonstatic. Moved printing code to...
5334 (warn_cant_dump_core): New function.
5335 (can_dump_core_warn): Likewise.
5336 (internal_vproblem): Replace calls to can_dump_core with
5337 calls to can_dump_core_warn. Supply new argument to each.
5338
5339 2014-06-19 Gary Benson <gbenson@redhat.com>
5340
5341 * utils.h (demangler_vwarning): New declaration.
5342 (demangler_warning): Likewise.
5343 * utils.c (struct internal_problem)
5344 <user_settable_should_quit>: New field.
5345 <user_settable_should_dump_core>: Likewise
5346 (internal_error_problem): Add values for above new fields.
5347 (internal_warning_problem): Likewise.
5348 (demangler_warning_problem): New static global.
5349 (demangler_vwarning): New function.
5350 (demangler_warning): Likewise.
5351 (add_internal_problem_command): Selectively add commands.
5352 (_initialize_utils): New internal problem command.
5353 * maint.c (maintenance_demangler_warning): New function.
5354 (_initialize_maint_cmds): New command.
5355
5356 2014-06-18 Tom Tromey <tromey@redhat.com>
5357
5358 * f-valprint.c (info_common_command_for_block): Update.
5359 * symtab.h (struct general_symbol_info) <common_block>: Now
5360 const.
5361
5362 2014-06-18 Tom Tromey <tromey@redhat.com>
5363
5364 * symtab.h (struct symtab) <blockvector>: Now const.
5365 * ada-lang.c (ada_add_global_exceptions): Update.
5366 * buildsym.c (augment_type_symtab): Update.
5367 * dwarf2read.c (dw2_lookup_symbol): Update.
5368 * jit.c (finalize_symtab): Update.
5369 * jv-lang.c (add_class_symtab_symbol): Update.
5370 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5371 Update.
5372 * objfiles.c (objfile_relocate1): Update.
5373 * psymtab.c (lookup_symbol_aux_psymtabs)
5374 (maintenance_check_psymtabs): Update.
5375 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5376 Update.
5377 * spu-tdep.c (spu_catch_start): Update.
5378 * symmisc.c (dump_symtab_1): Update.
5379 * symtab.c (lookup_global_symbol_from_objfile)
5380 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5381 (basic_lookup_transparent_type_quick)
5382 (basic_lookup_transparent_type, find_pc_sect_symtab)
5383 (find_pc_sect_line, search_symbols): Update.
5384 * block.c (find_block_in_blockvector): Make "bl" const.
5385 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5386 const.
5387 (blockvector_contains_pc): Make "bv" const.
5388 (block_for_pc_sect): Update.
5389 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5390 (blockvector_contains_pc): Update.
5391 * breakpoint.c (resolve_sal_pc): Update.
5392 * inline-frame.c (block_starting_point_at): Update.
5393
5394 2014-06-18 Tom Tromey <tromey@redhat.com>
5395
5396 * completer.c (complete_line): Make "line_buffer" const.
5397 * completer.h (complete_line): Update.
5398
5399 2014-06-18 Tom Tromey <tromey@redhat.com>
5400
5401 * symtab.c (add_macro_name): Remove unneeded cast.
5402
5403 2014-06-18 Tom Tromey <tromey@redhat.com>
5404
5405 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5406 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5407
5408 2014-06-18 Tom Tromey <tromey@redhat.com>
5409
5410 * probe.c (info_probes_for_ops): Make "arg" const.
5411 * probe.h (info_probes_for_ops): Update.
5412
5413 2014-06-18 Tom Tromey <tromey@redhat.com>
5414
5415 * varobj.c (varobj_create): Update.
5416 * valops.c (value_of_this): Update.
5417 * tracepoint.c (add_local_symbols, scope_info): Update.
5418 * symtab.h (struct general_symbol_info) <block>: Now const.
5419 * symtab.c (skip_prologue_sal)
5420 (default_make_symbol_completion_list_break_on)
5421 (skip_prologue_using_sal): Update.
5422 * stack.h (iterate_over_block_locals)
5423 (iterate_over_block_local_vars): Update.
5424 * stack.c (print_frame_args): Update.
5425 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5426 parameter const.
5427 (get_selected_block): Make return type const.
5428 * python/py-frame.c (frapy_block): Update.
5429 * python/py-block.c (gdbpy_block_for_pc): Update.
5430 * p-exp.y (%union) <bval>: Now const.
5431 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5432 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5433 * m2-exp.y (%union) <bval>: Now const.
5434 * linespec.c (get_current_search_block): Make return type const.
5435 (create_sals_line_offset, find_label_symbols): Update.
5436 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5437 Update.
5438 (block_starting_point_at): Make "block" const.
5439 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5440 (check_exception_resume): Update.
5441 * guile/scm-frame.c (gdbscm_frame_block): Update.
5442 * guile/scm-block.c (gdbscm_lookup_block): Update.
5443 * frame.h (get_frame_block): Update.
5444 (get_selected_block): Make return type const.
5445 * frame.c (frame_id_inner): Update.
5446 * f-valprint.c (info_common_command_for_block)
5447 (info_common_command): Update.
5448 * dwarf2loc.c (dwarf2_find_location_expression)
5449 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5450 (locexpr_describe_location_piece): Update.
5451 * c-exp.y (%union) <bval>: Now const.
5452 * breakpoint.c (resolve_sal_pc): Update.
5453 * blockframe.c (get_frame_block):Make return type const.
5454 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5455 (block_innermost_frame): Update.
5456 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5457 (block_for_pc, block_for_pc_sect): Update.
5458 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5459 'pblock' const.
5460 (block_for_pc_sect, block_for_pc): Make return type const.
5461 * ax-gdb.c (gen_expr): Update.
5462 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5463 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5464 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5465 (ada_read_var_value): Update.
5466 * ada-exp.y (struct name_info) <block>: Now const.
5467 (%union): Likewise.
5468 (block_lookup): Constify.
5469
5470 2014-06-18 Gary Benson <gbenson@redhat.com>
5471
5472 * nat/i386-dregs.h: New file.
5473 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5474 * i386-nat.h (i386-dregs.h): New include.
5475 (DR_FIRSTADDR): Now in i386-dregs.h.
5476 (DR_LASTADDR): Likewise.
5477 (DR_NADDR): Likewise.
5478 (DR_STATUS): Likewise.
5479 (DR_CONTROL): Likewise.
5480 (i386_debug_reg_state): Likewise.
5481 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5482
5483 2014-06-18 Don Breazeal <donb@codesourcery.com>
5484
5485 * breakpoint.c (set_longjmp_breakpoint): Call
5486 momentary_breakpoint_from_master with additional argument.
5487 (set_longjmp_breakpoint_for_call_dummy): Call
5488 momentary_breakpoint_from_master with additional argument.
5489 (set_std_terminate_breakpoint): Call
5490 momentary_breakpoint_from_master with additional argument.
5491 (momentary_breakpoint_from_master): Add argument to function
5492 definition and use it to initialize structure member flag.
5493 (clone_momentary_breakpoint): Call
5494 momentary_breakpoint_from_master with additional argument.
5495 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5496 member flags set in momentary_breakpoint_from_master.
5497
5498 2014-06-18 Gary Benson <gbenson@redhat.com>
5499
5500 * i386-nat.c (i386_show_dr): Renamed to
5501 i386_dr_show and made nonstatic. All uses updated.
5502 (i386_length_and_rw_bits): Renamed to
5503 i386_dr_length_and_rw_bits and made nonstatic.
5504 All uses updated.
5505 (i386_insert_aligned_watchpoint): Renamed to
5506 i386_dr_insert_aligned_watchpoint and made nonstatic.
5507 All uses updated.
5508 (i386_remove_aligned_watchpoint): Renamed to
5509 i386_dr_remove_aligned_watchpoint and made nonstatic.
5510 All uses updated.
5511 (i386_update_inferior_debug_regs): Renamed to
5512 i386_dr_update_inferior_debug_regs and made nonstatic.
5513 All uses updated.
5514
5515 2014-06-18 Gary Benson <gbenson@redhat.com>
5516
5517 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5518 (i386_dr_low_can_set_control): Likewise.
5519 (i386_dr_low_set_addr): Likewise.
5520 (i386_dr_low_set_control): Likewise.
5521 (i386_dr_low_get_addr): Likewise.
5522 (i386_dr_low_get_status): Likewise.
5523 (i386_dr_low_get_control): Likewise.
5524 (i386_insert_aligned_watchpoint): Use new macros.
5525 (i386_update_inferior_debug_regs): Likewise.
5526 (i386_stopped_data_address): Likewise.
5527
5528 2014-06-18 Gary Benson <gbenson@redhat.com>
5529
5530 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5531 New parameter. All uses updated.
5532
5533 2014-06-18 Gary Benson <gbenson@redhat.com>
5534
5535 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5536 All uses updated.
5537
5538 2014-06-18 Gary Benson <gbenson@redhat.com>
5539
5540 * i386-nat.c (debug_printf): New macro.
5541 (i386_get_debug_register_length): Likewise.
5542 (TARGET_HAS_DR_LEN_8): Use above macro.
5543 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5544 and printf_unfiltered. Use phex to format values.
5545
5546 2014-06-18 Gary Benson <gbenson@redhat.com>
5547
5548 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5549 Make const.
5550
5551 2014-06-18 Gary Benson <gbenson@redhat.com>
5552
5553 * i386-nat.c: Comment changes.
5554
5555 2014-06-18 Gary Benson <gbenson@redhat.com>
5556
5557 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5558
5559 2014-06-18 Gary Benson <gbenson@redhat.com>
5560
5561 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5562 (i386_insert_aligned_watchpoint): Likewise.
5563 (i386_remove_aligned_watchpoint): Likewise.
5564 (i386_handle_nonaligned_watchpoint): Likewise.
5565
5566 2014-06-18 Gary Benson <gbenson@redhat.com>
5567
5568 * i386-nat.c: Whitespace changes.
5569
5570 2014-06-17 Samuel Bronson <naesten@gmail.com>
5571
5572 * MAINTAINERS: Update Roland McGrath's email address.
5573 Thanks to Sergio Durigan Junior for pointing out that he left
5574 Red Hat a while ago, and giving me a current address.
5575
5576 2014-06-17 Tom Tromey <tromey@redhat.com>
5577
5578 * utils.h (savestring): Remove declaration.
5579
5580 2014-06-17 Tom Tromey <tromey@redhat.com>
5581
5582 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5583
5584 2014-06-16 Keith Seitz <keiths@redhat.com>
5585
5586 PR mi/15863
5587 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5588 to update the varobj if inferior_ptid is null_ptid.
5589
5590 2014-06-16 Tom Tromey <tromey@redhat.com>
5591
5592 * target.h (struct target_ops) <to_info_proc>: Make parameter
5593 const.
5594 (target_info_proc): Update.
5595 * target.c (target_info_proc): Make "args" const.
5596 * procfs.c (procfs_info_proc): Update.
5597 * linux-tdep.c (linux_info_proc): Update.
5598 (linux_core_info_proc_mappings): Make "args" const.
5599 (linux_core_info_proc): Update.
5600 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5601 * gdbarch.c: Rebuild.
5602 * gdbarch.h: Rebuild.
5603 * corelow.c (core_info_proc): Update.
5604
5605 2014-06-16 Tom Tromey <tromey@redhat.com>
5606
5607 * target.h (struct target_ops) <to_disconnect>: Make parameter
5608 const.
5609 (target_disconnect): Update.
5610 * target.c (target_disconnect): Make "args" const.
5611 * target-delegates.c: Rebuild.
5612 * remote.c (remote_disconnect): Update.
5613 * record.h (record_disconnect): Update.
5614 * record.c (record_disconnect): Update.
5615 * inf-child.c (inf_child_disconnect): Update.
5616
5617 2014-06-16 Tom Tromey <tromey@redhat.com>
5618
5619 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5620 * target.c (debug_to_rcmd, default_rcmd): Update.
5621 * target-delegates.c: Rebuild.
5622 * remote.c (remote_rcmd): Update.
5623 * monitor.c (monitor_rcmd): Update.
5624
5625 2014-06-16 Pedro Alves <palves@redhat.com>
5626
5627 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5628 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5629 have OBJF_SHARED set.
5630 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5631 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5632 instead of OBJF_USERLOADED.
5633 * objfiles.h (OBJF_SHARED): Update comment.
5634 (userloaded_objfile_contains_address_p): Rename to ...
5635 (shared_objfile_contains_address_p): ... this, and update
5636 comments.
5637 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5638 new objfile.
5639 (remove_symbol_file_command): Skip objfiles that don't have
5640 OBJF_SHARED set.
5641
5642 2014-06-16 Tom Tromey <tromey@redhat.com>
5643
5644 * minsyms.h (prim_record_minimal_symbol)
5645 (prim_record_minimal_symbol_and_info): Update comments.
5646
5647 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5648
5649 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5650 or --without-guile, according to how GDB was built.
5651
5652 2014-06-13 Tom Tromey <tromey@redhat.com>
5653
5654 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5655 to help_list.
5656 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5657 to help_list.
5658 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5659 help_list.
5660 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5661 help_list.Pass all_commands, not -1, to help_list.
5662 * cli/cli-dump.c (dump_command, append_command)
5663 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5664 (binary_dump_command, binary_append_command): Pass all_commands,
5665 not -1, to help_list.
5666 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5667 -1, to help_list.
5668 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5669 -1, to help_list.
5670 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5671 help_list.
5672 * top.c (set_history): Pass all_commands, not -1, to help_list.
5673 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5674 all_commands, not -1, to help_list.
5675 * symfile.c (overlay_command): Pass all_commands, not -1, to
5676 help_list.
5677 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5678 help_list.
5679 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5680 help_list.
5681 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5682 -1, to help_list.
5683 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5684 not -1, to help_list.
5685 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5686 not -1, to help_list.
5687 * maint.c (maintenance_command, maintenance_info_command)
5688 (maintenance_print_command, maintenance_set_cmd): Pass
5689 all_commands, not -1, to help_list.
5690 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5691 help_list.
5692 * language.c (set_check): Pass all_commands, not -1, to help_list.
5693 * infcmd.c (unset_command): Pass all_commands, not -1, to
5694 help_list.
5695 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5696 help_list.
5697 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5698 help_list.
5699 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5700 help_list.
5701 * breakpoint.c (save_command): Pass all_commands, not -1, to
5702 help_list.
5703 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5704 all_commands, not -1, to help_list.
5705
5706 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5707
5708 * regcache.c (struct register_to_invalidate): New structure.
5709 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5710 functions.
5711 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5712
5713 2014-06-12 Yao Qi <yao@codesourcery.com>
5714
5715 * varobj.c (varobj_get_num_children): Call
5716 varobj_is_dynamic_p.
5717 (varobj_list_children): Likewise.
5718 (varobj_update): Likewise. Update comments.
5719
5720 2014-06-12 Yao Qi <yao@codesourcery.com>
5721
5722 * varobj.c (varobj_pretty_printed_p): Rename to ...
5723 (varobj_is_dynamic_p): ... this. New function.
5724 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5725 (varobj_is_dynamic_p): Declare.
5726 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5727 (mi_print_value_p, varobj_update_one): Likewise.
5728
5729 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5730 Yao Qi <yao@codesourcery.com>
5731
5732 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5733 (varobj_get_iterator): Wrap up code for pretty-printer by
5734 "#if HAVE_PYTHON" and "#endif".
5735 (update_dynamic_varobj_children): Likewise.
5736
5737 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5738 Yao Qi <yao@codesourcery.com>
5739
5740 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5741 gdb_python_initialized is false. Move some code from varobj.c.
5742 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5743 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5744 (struct varobj_item): Moved to varobj-iter.h".
5745 (varobj_clear_saved_item): New function.
5746 (update_dynamic_varobj_children): Move python-related code to
5747 py-varobj.c.
5748 (free_variable): Call varobj_clear_saved_item and
5749 varobj_iter_delete.
5750
5751 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5752 Yao Qi <yao@codesourcery.com>
5753
5754 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5755 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5756 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5757 (py-varobj.o): New rule.
5758 * python/py-varobj.c: New file.
5759 * python/python-internal.h (py_varobj_get_iterator): Declare.
5760 * varobj-iter.h: New file.
5761 * varobj.c: Include "varobj-iter.h"
5762 (struct varobj) <child_iter>: Change its type from "PyObject *"
5763 to "struct varobj_iter *".
5764 <saved_item>: Likewise.
5765 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5766 [HAVE_PYTHON] (varobj_get_iterator): New function.
5767 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5768 python-specific code to python/py-varobj.c.
5769 (install_visualizer): Call varobj_iter_delete instead of
5770 Py_XDECREF.
5771 * varobj.h (varobj_ensure_python_env): Declare.
5772
5773 2014-06-12 Yao Qi <yao@codesourcery.com>
5774
5775 * varobj.c (struct varobj_item): New structure.
5776 (create_child_with_value): Update declaration.
5777 (varobj_add_child): Replace arguments 'name' and 'value' with
5778 'item'. All callers updated.
5779 (install_dynamic_child): Likewise.
5780 (update_dynamic_varobj_children): Likewise.
5781 (varobj_add_child): Likewise.
5782 (create_child_with_value): Likewise.
5783
5784 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5785
5786 * NEWS: Create a new section for the next release branch.
5787 Rename the section of the current branch, now that it has
5788 been cut.
5789
5790 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5791
5792 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5793 * version.in: Bump version to 7.8.50.DATE-cvs.
5794
5795 2014-06-11 Pedro Alves <palves@redhat.com>
5796
5797 PR remote/17028
5798 * ser-mingw.c (net_windows_socket_check_pending): New function.
5799 (net_windows_select_thread): Ignore spurious wakeups. Use
5800 net_windows_socket_check_pending.
5801 (net_windows_wait_handle): Check for pending events with
5802 ioctlsocket, through net_windows_socket_check_pending, instead of
5803 checking the socket's event.
5804
5805 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5806
5807 * python/python-internal.h (gdb_PyObject_GetAttrString)
5808 (gdb_PyObject_HasAttrString): New inline function definitions.
5809 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5810 char * of the second argument to PyObject_GetAttrString.
5811
5812 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5813
5814 * serial.c (serial_write): Fix index of character to be printed
5815 in call to serial_logchar when serial debug traces are enabled.
5816
5817 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5818
5819 * gdbtypes (resolve_dynamic_range): Add function description.
5820
5821 2014-06-09 Pedro Alves <palves@redhat.com>
5822
5823 * linux-nat.c (linux_child_follow_fork): Initialize status with
5824 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5825 inner block. Only pass the signal to PTRACE_DETACH if in pass
5826 state.
5827
5828 2014-06-09 Gary Benson <gbenson@redhat.com>
5829
5830 * common/signals.c (gdb_signal_from_host): Reorder to separate
5831 the always-available ANSI-standard signals from the signals that
5832 require checking.
5833 (do_gdb_signal_to_host): Likewise.
5834 * proc-events.c (signal_table): Likewise.
5835
5836 2014-06-08 Hui Zhu <hui@codesourcery.com>
5837
5838 * common/linux-ptrace.c (linux_disable_event_reporting): New
5839 function.
5840 * common/linux-ptrace.h (linux_disable_event_reporting): New
5841 declaration.
5842 * linux-nat.c (linux_child_follow_fork): Do a single step before
5843 detach.
5844
5845 2014-06-07 Keith Seitz <keiths@redhat.com>
5846
5847 Revert:
5848 PR c++/16253
5849 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5850 from symbol_matches_domain in symtab.c. All local callers
5851 of symbol_matches_domain updated.
5852 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5853 search STRUCT_DOMAIN.
5854 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5855 independently. standard_lookup will do that automatically.
5856 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5857 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5858 (cp_lookup_symbol_in_namespace): Likewise.
5859 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5860 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5861 may return a STRUCT_DOMAIN match.
5862 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5863 * cp-support.c: Include language.h.
5864 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5865 VAR_DOMAIN.
5866 * psymtab.c (match_partial_symbol): Compare the requested
5867 domain with the symbol's domain directly.
5868 (lookup_partial_symbol): Likewise.
5869 * symtab.c (lookup_symbol_in_language): Explain when/why
5870 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5871 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5872 appropriate languages.
5873 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5874 and moved to ada-lang.c
5875 (lookup_block_symbol): Explain that this function only returns
5876 symbol matching the requested DOMAIN.
5877 Compare the requested domain with the symbol's domain directly.
5878 (iterate_over_symbols): Compare the requested domain with the
5879 symbol's domain directly.
5880 * symtab.h (symbol_matches_domain): Remove.
5881
5882 2014-06-06 Doug Evans <xdje42@gmail.com>
5883
5884 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5885 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5886 (gdbscm_guile_version_is_at_least): Declare.
5887 (gdbscm_scm_string_to_int): Declare.
5888 * guile/guile.c (gdbscm_guile_major_version): New global.
5889 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5890 (guile_datadir): New static global.
5891 (gdbscm_guile_data_directory): New function.
5892 (initialize_scheme_side): Update.
5893 (misc_guile_functions): Add guile-data-directory.
5894 (initialize_gdb_module): Fetch guile version number.
5895 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5896 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5897 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5898 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5899 comments.
5900 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5901 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5902 * guile/scm-value.c (gdbscm_value_to_string): Only call
5903 scm_port_conversion_strategy if Guile version >= 2.0.6.
5904
5905 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5906
5907 * main.c (print_gdb_help): Add -q and --silent.
5908
5909 2014-06-06 Gary Benson <gbenson@redhat.com>
5910
5911 * common/signals.c: Remove preprocessor conditionals for
5912 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5913 SIGSEGV and SIGTERM.
5914 * proc-events.c: Likewise.
5915
5916 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5917
5918 * symfile.c (symfile_free_objfile): Remove restriction to
5919 OBJF_USERLOADED.
5920 * symfile-mem.c (symbol_file_add_from_memory): Call
5921 add_target_sections_of_objfile.
5922
5923 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5924
5925 * guile/scm-value.c (gdbscm_history_append_x): Use
5926 'vlscm_get_value_smob_arg_unsafe' instead of
5927 'vlscm_scm_to_value'.
5928
5929 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5930
5931 PR mi/15806
5932 * utils.c (printchar): Don't escape at all if quoter is NUL.
5933 Update function documentation to clarify effect of parameter
5934 QUOTER.
5935 * remote.c (escape_buffer): Pass '\\' as the quoter to
5936 fputstrn_unfiltered.
5937 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5938 generate the output.
5939 (mi_solib_unloaded): Same.
5940
5941 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5942
5943 * development.sh: Delete.
5944 * Makefile.in (config.status): Adjust dependency on development.sh.
5945 * configure.ac: Adjust development.sh source call.
5946 * configure: Regenerate.
5947
5948 2014-06-04 Doug Evans <xdje42@gmail.com>
5949
5950 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5951 is_scheme_bkpt, spec.
5952 (bpscm_make_breakpoint_smob): Initialize new members.
5953 (gdbscm_create_breakpoint_x): Split into two ...
5954 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5955 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5956 (scheme_function breakpoint_functions): Update.
5957 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5958 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5959 register-breakpoint!.
5960
5961 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5962
5963 PR server/17023
5964 * mem-break.c (z_type_supported): Return zero if
5965 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5966
5967 2014-06-04 Tom Tromey <tromey@redhat.com>
5968
5969 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5970 value_from_contents_and_address_unresolved.
5971 (ada_template_to_fixed_record_type_1): Likewise.
5972 (ada_which_variant_applies): Likewise.
5973 * value.h (value_from_contents_and_address_unresolved): Declare.
5974 * value.c (value_from_contents_and_address_unresolved): New
5975 function.
5976 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5977 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5978 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5979
5980 2014-06-04 Tom Tromey <tromey@redhat.com>
5981
5982 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5983
5984 2014-06-04 Tom Tromey <tromey@redhat.com>
5985
5986 * procfs.c (procfs_attach): Make "args" const.
5987 * windows-nat.c (windows_attach): Make "args" const.
5988 * nto-procfs.c (procfs_attach): Make "args" const.
5989 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5990 * go32-nat.c (go32_attach): Make "args" const.
5991 * gnu-nat.c (gnu_attach): Make "args" const.
5992 * darwin-nat.c (darwin_attach): Make "args" const.
5993 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5994 * linux-nat.c (linux_nat_attach): Make "args" const.
5995 * remote.c (extended_remote_attach_1, extended_remote_attach):
5996 Make "args" const.
5997 * target.h (struct target_ops) <to_attach>: Make "args" const.
5998 (find_default_attach): Likewise.
5999 * utils.c (parse_pid_to_attach): Make "args" const.
6000 * utils.h (parse_pid_to_attach): Update.
6001
6002 2014-06-04 Tom Tromey <tromey@redhat.com>
6003
6004 * target-delegates.c: Rebuild.
6005 * target.c (default_thread_address_space): New function.
6006 (target_thread_address_space): Simplify.
6007 * target.h (struct target_ops) <to_thread_address_space>: Add
6008 TARGET_DEFAULT_FUNC.
6009
6010 2014-06-04 Doug Evans <xdje42@gmail.com>
6011
6012 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6013
6014 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6015
6016 * record-btrace.c: Include event-loop.h and inf-loop.h.
6017 (record_btrace_resume_exec_dir)
6018 (record_btrace_async_inferior_event_handler)
6019 (record_btrace_handle_async_inferior_event): New.
6020 (record_btrace_open): Create async event handler.
6021 (record_btrace_close): Delete async event handler.
6022 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6023 Mark async event handler.
6024 (record_btrace_execution_direction): New.
6025 (init_record_btrace_ops): Initialize to_execution_direction.
6026
6027 2014-06-03 Doug Evans <xdje42@gmail.com>
6028
6029 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6030 (gdbscm_make_parameter): Ditto.
6031
6032 2014-06-03 Doug Evans <dje@google.com>
6033
6034 * exec.c (exec_close_1): Call clear_section_table instead of
6035 resize_section_table.
6036 (clear_section_table): New function.
6037 (resize_section_table): Make static. Rename arg num_added to
6038 adjustment.
6039 * exec.h (clear_section_table): Declare.
6040 (resize_section_table): Delete.
6041 * progspace.c (release_program_space): Call clear_section_table
6042 instead of resize_section_table.
6043
6044 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6045
6046 * NEWS (Python Scripting): Add entry about the new xmethods
6047 feature.
6048
6049 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6050
6051 * python/py-xmethods.c: New file.
6052 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6053 (objfpy_dealloc): XDECREF on the new xmethods field.
6054 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6055 field.
6056 (objfpy_get_xmethods): New function.
6057 (objfile_getset): New entry 'xmethods'.
6058 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6059 (pspy_dealloc): XDECREF on the new xmethods field.
6060 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6061 field.
6062 (pspy_get_xmethods): New function.
6063 (pspace_getset): New entry 'xmethods'.
6064 * python/python-internal.h: Add declarations for new functions.
6065 * python/python.c (_initialize_python): Invoke
6066 gdbpy_initialize_xmethods.
6067 * python/lib/gdb/__init__.py (xmethods): New
6068 attribute.
6069 * python/lib/gdb/xmethod.py: New file.
6070 * python/lib/gdb/command/xmethods.py: New file.
6071
6072 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6073
6074 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6075 best match method returned by find_overload_match is an xmethod.
6076 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6077 the best matching operator returned by find_overload_match is an
6078 xmethod.
6079 * valops.c: #include "extension.h".
6080 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6081 Return void. The list of matching source methods is returned in
6082 "fn_list" and a vector of matching debug method workers is
6083 returned in "xm_worker_vec". Update all callers.
6084 (value_find_oload_method_list): Likewise.
6085 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6086 non-NULL, then the index of the best matching method in this
6087 vector is returned. Update all callers.
6088 (find_overload_match): Include xmethods while performing overload
6089 resolution.
6090
6091 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6092
6093 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6094 * extension-priv.h (struct extension_language_ops): Add the
6095 xmethod interface.
6096 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6097 get_matching_xmethod_workers, get_xmethod_argtypes,
6098 invoke_xmethod, free_xmethod_worker,
6099 free_xmethod_worker_vec): New functions.
6100 * extension.h: #include "common/vec.h".
6101 New function declarations.
6102 (struct xmethod_worker): New struct.
6103 (VEC (xmethod_worker_ptr)): New vector type.
6104 (xmethod_worker_ptr): New typedef.
6105 (xmethod_worker_vec): Likewise.
6106 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6107 builtin_type.
6108 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6109 (struct builtin_type): New field "xmethod".
6110 * valarith.c (value_ptradd): Assert that the value argument is not
6111 lval_xcallable.
6112 * valops.c (value_must_coerce_to_target): Return 0 for
6113 lval_xcallable values.
6114 * value.c (struct value): New field XM_WORKER in the field
6115 LOCATION.
6116 (value_address, value_raw_address): Return 0 for lval_xcallable
6117 values.
6118 (set_value_address): Assert that the value is not an
6119 lval_xcallable.
6120 (value_free): Free the associated xmethod worker when freeing
6121 lval_xcallable values.
6122 (set_value_component_location): Assert that the WHOLE value is not
6123 lval_xcallable.
6124 (value_of_xmethod, call_xmethod): New functions.
6125 * value.h: Declare "struct xmethod_worker".
6126 Declare new functions value_of_xmethod, call_xmethod.
6127
6128 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6129 Pedro Alves <palves@redhat.com>
6130
6131 PR breakpoints/17000
6132 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6133 New function, extracted from software_breakpoint_inserted_here_p.
6134 (software_breakpoint_inserted_here_p): Replace factored out code
6135 by call to find_non_raw_software_breakpoint_inserted_here.
6136 (bp_target_info_copy_insertion_state): New function.
6137 (bkpt_insert_location): Handle the case of a single-step
6138 breakpoint already inserted at the same address.
6139 (bkpt_remove_location): Handle the case of a single-step
6140 breakpoint still inserted at the same address.
6141 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6142 breakpoint already inserted at the same address.
6143 (deprecated_remove_raw_breakpoint): Handle the case of a
6144 non-raw breakpoint still inserted at the same address.
6145 (find_single_step_breakpoint): New function, extracted from
6146 single_step_breakpoint_inserted_here_p.
6147 (find_single_step_breakpoint): New function,
6148 factored out from single_step_breakpoint_inserted_here_p.
6149 (single_step_breakpoint_inserted_here_p): Reimplement.
6150
6151 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6152
6153 Pushed by Joel Brobecker <brobecker@adacore.com>
6154 * source.c (show_substitute_path_command): Fix display of matching
6155 substitution rules.
6156
6157 2014-06-03 Gary Benson <gbenson@redhat.com>
6158
6159 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6160
6161 2014-06-02 Doug Evans <xdje42@gmail.com>
6162
6163 Add parameter support for Guile.
6164 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6165 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6166 (scm-param.o): New rule.
6167 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6168 (gdbscm_misc_error): Declare.
6169 (gdbscm_canonicalize_command_name): Declare.
6170 (gdbscm_scm_to_host_string): Declare.
6171 (gdbscm_scm_from_host_string): Declare.
6172 (gdbscm_initialize_parameters): Declare.
6173 * guile/guile.c (initialize_gdb_module): Call
6174 gdbscm_initialize_parameters.
6175 * guile/lib/gdb.scm: Export parameter symbols.
6176 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6177 cmdscm_canonicalize_name and made public. All callers updated.
6178 * guile/scm-exception.c (gdbscm_misc_error): New function.
6179 * guile/scm-param.c: New file.
6180 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6181 (gdbscm_scm_to_host_string): New function.
6182 (gdbscm_scm_from_host_string): New function.
6183 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6184
6185 2014-06-02 Doug Evans <xdje42@gmail.com>
6186
6187 Add command support for Guile.
6188 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6189 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6190 (scm-cmd.o): New rule.
6191 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6192 (gdbscm_user_error_p): Declare.
6193 (gdbscm_parse_command_name): Declare.
6194 (gdbscm_valid_command_class_p): Declare.
6195 (gdbscm_initialize_commands): Declare.
6196 * guile/guile.c (initialize_gdb_module): Call
6197 gdbscm_initialize_commands.
6198 * guile/lib/gdb.scm: Export command symbols.
6199 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6200 (throw-user-error): New function.
6201 * guile/scm-cmd.c: New file.
6202 * guile/scm-exception.c (user_error_symbol): New static global.
6203 (gdbscm_user_error_p): New function.
6204 (gdbscm_initialize_exceptions): Set user_error_symbol.
6205 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6206
6207 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6208
6209 * top.c (command_loop): Handle comments here...
6210 (command_line_input): ... not here.
6211
6212 2014-06-02 Doug Evans <xdje42@gmail.com>
6213
6214 Add progspace support for Guile.
6215 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6216 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6217 (scm-progspace.o): New rule.
6218 * guile/guile-internal.h (pspace_smob): New typedef.
6219 (psscm_pspace_smob_pretty_printers): Declare.
6220 (psscm_pspace_smob_from_pspace): Declare.
6221 (psscm_scm_from_pspace): Declare.
6222 * guile/guile.c (initialize_gdb_module): Call
6223 gdbscm_initialize_pspaces.
6224 * guile/lib/gdb.scm: Export progspace symbols.
6225 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6226 support.
6227 (append-pretty-printer!): Ditto.
6228 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6229 Implement.
6230 * guile/scm-progspace.c: New file.
6231
6232 2014-06-03 Alan Modra <amodra@gmail.com>
6233
6234 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6235 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6236
6237 2014-06-02 Doug Evans <dje@google.com>
6238
6239 Add support for skeletonless type units.
6240 * dwarf2read.c (struct dwarf2_per_objfile): New member
6241 n_allocated_type_units.
6242 (struct dwarf2_per_objfile) <tu_stats>: New member
6243 nr_all_type_units_reallocs.
6244 (create_signatured_type_table_from_index): Initialize
6245 n_allocated_type_units
6246 (create_all_type_units): Ditto.
6247 (add_type_unit): Move up in file. New arg slot.
6248 All callers updated. Increase space for all_type_units more
6249 efficiently.
6250 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6251 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6252 (lookup_dwp_signatured_type): Ditto.
6253 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6254 All callers updated.
6255 (build_type_psymtabs_1): Leave type_unit_groups as
6256 NULL if no TUs present.
6257 (print_tu_stats): New function.
6258 (process_skeletonless_type_unit): New function.
6259 (process_dwo_file_for_skeletonless_type_units): New
6260 function.
6261 (process_skeletonless_type_units): New function.
6262 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6263 Call print tu_stats if debugging enabled.
6264
6265 2014-06-02 Pedro Alves <palves@redhat.com>
6266
6267 * breakpoint.c (build_target_command_list): Don't build a command
6268 list if we have any duplicate location that isn't a dprintf.
6269
6270 2014-06-02 Pedro Alves <palves@redhat.com>
6271
6272 * breakpoint.c (dprintf_breakpoint_hit): New function.
6273 (initialize_breakpoint_ops): Install it as dprintf's
6274 breakpoint_hit method.
6275
6276 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6277
6278 * source.c (substitute_path_rule_matches): Simplify using
6279 filename_ncmp instead of FILENAME_CMP.
6280
6281 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6282
6283 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6284
6285 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6286
6287 * configure.ac: When Guile is available, check for the
6288 availability of 'scm_new_smob'.
6289 * configure, config.h.in: Regenerate.
6290 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6291 function.
6292
6293 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6294
6295 * frame.c (struct frame_info): Add stop_string field.
6296 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6297 (get_prev_frame_always): Old content moved into
6298 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6299 TRY_CATCH, handle MEMORY_ERROR exceptions.
6300 (frame_stop_reason_string): New function definition.
6301 * frame.h (unwind_stop_reason_to_string): Extend comment to
6302 mention frame_stop_reason_string.
6303 (frame_stop_reason_string): New function declaration.
6304 * stack.c (frame_info): Switch to frame_stop_reason_string.
6305 (backtrace_command_1): Switch to frame_stop_reason_string.
6306 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6307 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6308 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6309
6310 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6311
6312 * frame.c (frame_stop_reason_string): Rename to ...
6313 (unwind_stop_reason_to_string): this.
6314 * frame.h (frame_stop_reason_string): Rename to ...
6315 (unwind_stop_reason_to_string): this.
6316 * stack.c (frame_info): Update call to frame_stop_reason_string.
6317 (backtrace_command_1): Likewise.
6318 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6319 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6320
6321 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6322
6323 * frame.c (remove_prev_frame): New function.
6324 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6325 remove_prev_frame.
6326
6327 2014-05-29 Pedro Alves <palves@redhat.com>
6328
6329 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6330 and make it const. When a single-step decays to a continue,
6331 clear 'step', not 'hw_step'. Pass whether the caller wanted
6332 to step to user_visible_resume_ptid, not what we ask the
6333 target to do.
6334
6335 2014-05-29 Pedro Alves <palves@redhat.com>
6336
6337 * infrun.c (process_event_stop_test, handle_step_into_function)
6338 (handle_step_into_function_backward): Adjust.
6339 Don't set the even thread's stop_step and call stop_waiting before
6340 calling end_stepping_range. Instead do that ...
6341 (end_stepping_range): ... here. Take an ecs pointer parameter.
6342
6343 2014-05-29 Pedro Alves <palves@redhat.com>
6344
6345 * infrun.c (stop_stepping): Rename to ...
6346 (stop_waiting): ... this.
6347 (proceed): Update comment.
6348 (process_event_stop_test, handle_inferior_event)
6349 (handle_signal_stop, handle_step_into_function)
6350 (handle_step_into_function_backward): Update.
6351
6352 2014-05-29 Pedro Alves <palves@redhat.com>
6353
6354 * infcall.c (run_inferior_call): Don't check whether the current
6355 thread is running after the proceed call.
6356
6357 2014-05-29 Pedro Alves <palves@redhat.com>
6358 Tom Tromey <tromey@redhat.com>
6359
6360 * NEWS: Mention "maint set target-async", "set mi-async", and that
6361 background execution commands are now always available.
6362 * target.h (target_async_permitted): Update comment.
6363 * target.c (target_async_permitted, target_async_permitted_1):
6364 Default to 1.
6365 (set_target_async_command): Rename to ...
6366 (maint_set_target_async_command): ... this.
6367 (show_target_async_command): Rename to ...
6368 (maint_show_target_async_command): ... this.
6369 (_initialize_target): Adjust.
6370 * infcmd.c (prepare_execution_command): Make extern.
6371 * inferior.h (prepare_execution_command): Declare.
6372 * infrun.c (set_observer_mode): Leave target async alone.
6373 * mi/mi-interp.c (mi_interpreter_init): Install
6374 mi_on_sync_execution_done as sync_execution_done observer.
6375 (mi_on_sync_execution_done): New function.
6376 (mi_execute_command_input_handler): Don't print the prompt if we
6377 just started a synchronous command with an async target.
6378 (mi_on_resume): Check sync_execution before printing prompt.
6379 * mi/mi-main.h (mi_async_p): Declare.
6380 * mi/mi-main.c: Include gdbcmd.h.
6381 (mi_async_p): New function.
6382 (mi_async, mi_async_1): New globals.
6383 (set_mi_async_command, show_mi_async_command, mi_async): New
6384 functions.
6385 (exec_continue): Call prepare_execution_command.
6386 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6387 (mi_execute_async_cli_command): Use mi_async_p.
6388 (_initialize_mi_main): Install "set mi-async". Make
6389 "target-async" a deprecated alias.
6390
6391 2014-05-29 Pedro Alves <palves@redhat.com>
6392
6393 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6394 (_initialize_cli_interp): Adjust.
6395 * event-loop.c: Include "observer.h".
6396 (start_event_loop): Notify 'command_error' observers instead of
6397 calling display_gdb_prompt. Remove FIXME comment.
6398 * event-top.c (display_gdb_prompt): Remove call into the
6399 interpreters.
6400 * inf-loop.c: Include "observer.h".
6401 (inferior_event_handler): Notify 'command_error' observers instead
6402 of calling display_gdb_prompt.
6403 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6404 observers instead of calling display_gdb_prompt.
6405 * interps.c (interp_set): Don't call display_gdb_prompt.
6406 (current_interp_display_prompt_p): Delete.
6407 * interps.h (interp_prompt_p): Delete declaration.
6408 (interp_prompt_p_ftype): Delete.
6409 (struct interp_procs) <prompt_proc_p>: Delete field.
6410 (current_interp_display_prompt_p): Delete declaration.
6411 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6412 (_initialize_mi_interp): Adjust.
6413 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6414 'command_error' observers.
6415 (tui_on_sync_execution_done, tui_on_command_error): New
6416 functions.
6417 (tui_display_prompt_p): Delete.
6418 (_initialize_tui_interp): Adjust.
6419
6420 2014-05-29 Pedro Alves <palves@redhat.com>
6421
6422 PR gdb/13860
6423 * cli/cli-interp.c: Include infrun.h and observer.h.
6424 (cli_uiout, cli_interp): New globals.
6425 (cli_on_signal_received, cli_on_end_stepping_range)
6426 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6427 functions.
6428 (cli_interpreter_init): Install them as 'end_stepping_range',
6429 'signal_received' 'signal_exited', 'exited' and 'no_history'
6430 observers.
6431 (_initialize_cli_interp): Remove cli_interp local.
6432 * infrun.c (handle_inferior_event): Call the several stop reason
6433 observers instead of printing the stop reason directly.
6434 (end_stepping_range): New function.
6435 (print_end_stepping_range_reason, print_signal_exited_reason)
6436 (print_exited_reason, print_signal_received_reason)
6437 (print_no_history_reason): Make static, and add an uiout
6438 parameter. Print to that instead of to CURRENT_UIOUT.
6439 * infrun.h (print_end_stepping_range_reason)
6440 (print_signal_exited_reason, print_exited_reason)
6441 (print_signal_received_reason print_no_history_reason): New
6442 declarations.
6443 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6444 'mi_uiout'.
6445 <cli_uiout>: New field.
6446 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6447 uiout for CLI output. Install 'signal_received',
6448 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6449 observers.
6450 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6451 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6452 (mi_on_no_history): New functions.
6453 (ui_out_free_cleanup): Delete function.
6454 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6455 instead use the one already stored in the MI interpreter data.
6456 (mi_ui_out): Adjust.
6457 * tui/tui-interp.c: Include infrun.h and observer.h.
6458 (tui_interp): New global.
6459 (tui_on_signal_received, tui_on_end_stepping_range)
6460 (tui_on_signal_exited, tui_on_exited)
6461 (tui_on_no_history): New functions.
6462 (tui_init): Install them as 'end_stepping_range',
6463 'signal_received' 'signal_exited', 'exited' and 'no_history'
6464 observers.
6465 (_initialize_tui_interp): Delete tui_interp local.
6466
6467 2014-05-29 Pedro Alves <palves@redhat.com>
6468
6469 PR gdb/15713
6470 * linux-nat.c (linux_nat_resume_callback): Rename the second
6471 parameter to 'except'. Skip LP if it points to EXCEPT.
6472 (linux_nat_resume): Don't mark the event lwp as not stopped
6473 before resuming sibling lwps. Instead ask
6474 linux_nat_resume_callback to skip the event lwp. Mark it as not
6475 stopped after actually resuming it.
6476 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6477 resuming it.
6478 (wait_lwp): Mark the lwp as stopped here.
6479 (stop_wait_callback): Mark the lwp as not stopped right after
6480 resuming it. Don't mark lwps as stopped here.
6481 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6482 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6483
6484 2014-05-29 Pedro Alves <palves@redhat.com>
6485
6486 PR PR15693
6487 * infrun.c (resume): Determine how much to resume depending on
6488 whether the caller wanted a step, not whether we can hardware step
6489 the target. Mark all threads that we intend to run as running,
6490 unless we're calling an inferior function.
6491 (normal_stop): If the thread is running an infcall, don't finish
6492 thread state.
6493 * target.c (target_resume): Don't mark threads as running here.
6494
6495 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6496
6497 * serial.c (_initialize_serial): Remove support for
6498 the "set remotebaud" and "show remotebaud" commands.
6499 * NEWS: Add entry documenting the removal of that command.
6500
6501 2014-05-28 Yao Qi <yao@codesourcery.com>
6502
6503 * charset.c: Fix typo in comments.
6504
6505 2014-05-27 Gary Benson <gbenson@redhat.com>
6506
6507 * utils.c (internal_vproblem): Prompt for a bug report.
6508
6509 2014-05-26 Andy Wingo <wingo@igalia.com>
6510
6511 * guile/scm-arch.c (arscm_mark_arch_smob):
6512 * guile/scm-block.c (bkscm_mark_block_smob)
6513 (bkscm_mark_block_syms_progress_smob):
6514 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6515 * guile/scm-exception.c (exscm_mark_exception_smob):
6516 * guile/scm-frame.c (frscm_mark_frame_smob):
6517 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6518 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6519 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6520 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6521 (ppscm_mark_pretty_printer_worker_smob):
6522 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6523 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6524 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6525 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6526 mark functions.
6527 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6528 function.
6529
6530 2014-05-26 Andy Wingo <wingo@igalia.com>
6531 Doug Evans <xdje42@gmail.com>
6532
6533 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6534 empty_base_class. All uses updated.
6535 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6536 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6537 Adapt all callers.
6538 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6539 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6540 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6541 (gdbscm_gsmob_has_property_p, add_property_name)
6542 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6543 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6544 (gdb-object-has-property?, gdb-object-properties): Remove.
6545 (gdb-object-kind): Renamed from gsmob-kind.
6546
6547 2014-05-26 Andy Wingo <wingo@igalia.com>
6548
6549 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6550 * configure: Regenerate.
6551
6552 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6553
6554 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6555
6556 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6557
6558 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6559 (replay_memory_access_read_only, replay_memory_access_read_write)
6560 (replay_memory_access_types, replay_memory_access)
6561 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6562 (cmd_set_record_btrace, cmd_show_record_btrace)
6563 (cmd_show_replay_memory_access): New.
6564 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6565 (record_btrace_remove_breakpoint): Replace
6566 record_btrace_allow_memory_access with replay_memory_access.
6567 (_initialize_record_btrace): Add commands.
6568 * NEWS: Announce it.
6569
6570 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6571
6572 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6573
6574 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6575
6576 * MAINTAINERS (Write After Approval): Move self back from
6577 paper trail.
6578
6579 2014-05-22 Pedro Alves <palves@redhat.com>
6580
6581 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6582 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6583 (disable_randomization, enum exec_direction_kind)
6584 (execution_direction, stop_registers, start_remote)
6585 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6586 (wait_for_inferior, normal_stop, get_last_target_status)
6587 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6588 (insert_step_resume_breakpoint_at_sal)
6589 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6590 (set_step_info, print_stop_event, signal_stop_state)
6591 (signal_print_state, signal_pass_state, signal_stop_update)
6592 (signal_print_update, signal_pass_update)
6593 (update_signals_program_target, clear_exit_convenience_vars)
6594 (displaced_step_dump_bytes, update_observer_mode)
6595 (signal_catch_update, gdb_signal_from_command): Move
6596 declarations ...
6597 * infrun.h: ... to this new file.
6598 * amd64-tdep.c: Include infrun.h.
6599 * annotate.c: Include infrun.h.
6600 * arch-utils.c: Include infrun.h.
6601 * arm-linux-tdep.c: Include infrun.h.
6602 * arm-tdep.c: Include infrun.h.
6603 * break-catch-sig.c: Include infrun.h.
6604 * breakpoint.c: Include infrun.h.
6605 * common/agent.c: Include infrun.h instead of inferior.h.
6606 * corelow.c: Include infrun.h.
6607 * event-top.c: Include infrun.h.
6608 * go32-nat.c: Include infrun.h.
6609 * i386-tdep.c: Include infrun.h.
6610 * inf-loop.c: Include infrun.h.
6611 * infcall.c: Include infrun.h.
6612 * infcmd.c: Include infrun.h.
6613 * infrun.c: Include infrun.h.
6614 * linux-fork.c: Include infrun.h.
6615 * linux-nat.c: Include infrun.h.
6616 * linux-thread-db.c: Include infrun.h.
6617 * monitor.c: Include infrun.h.
6618 * nto-tdep.c: Include infrun.h.
6619 * procfs.c: Include infrun.h.
6620 * record-btrace.c: Include infrun.h.
6621 * record-full.c: Include infrun.h.
6622 * remote-m32r-sdi.c: Include infrun.h.
6623 * remote-mips.c: Include infrun.h.
6624 * remote-notif.c: Include infrun.h.
6625 * remote-sim.c: Include infrun.h.
6626 * remote.c: Include infrun.h.
6627 * reverse.c: Include infrun.h.
6628 * rs6000-tdep.c: Include infrun.h.
6629 * s390-linux-tdep.c: Include infrun.h.
6630 * solib-irix.c: Include infrun.h.
6631 * solib-osf.c: Include infrun.h.
6632 * solib-svr4.c: Include infrun.h.
6633 * target.c: Include infrun.h.
6634 * top.c: Include infrun.h.
6635 * windows-nat.c: Include infrun.h.
6636 * mi/mi-interp.c: Include infrun.h.
6637 * mi/mi-main.c: Include infrun.h.
6638 * python/py-threadevent.c: Include infrun.h.
6639
6640 2014-05-22 Pedro Alves <palves@redhat.com>
6641
6642 * infrun.c (handle_inferior_event): Store the exit code for
6643 --return-child-result here, instead of ...
6644 (print_exited_reason): ... here.
6645
6646 2014-05-21 Pedro Alves <palves@redhat.com>
6647
6648 PR gdb/13860
6649 * gdbthread.h (struct thread_control_state): New field
6650 `command_interp'.
6651 * infrun.c (follow_fork): Copy the new thread control field to the
6652 child fork thread.
6653 (clear_proceed_status_thread): Clear the new thread control field.
6654 (proceed): Set the new thread control field.
6655 * interps.h (command_interp): Declare.
6656 * interps.c (command_interpreter): New global.
6657 (command_interp): New function.
6658 (interp_exec): Set `command_interpreter' while here.
6659 * cli-out.c (cli_uiout_dtor): New function.
6660 (cli_ui_out_impl): Install it.
6661 * mi/mi-interp.c: Include cli-out.h.
6662 (mi_cmd_interpreter_exec): Add comment.
6663 (restore_current_uiout_cleanup): New function.
6664 (ui_out_free_cleanup): New function.
6665 (mi_on_normal_stop): If finishing an execution command started by
6666 a CLI command, or any kind of breakpoint-like event triggered,
6667 print the stop event to the output (CLI) stream.
6668 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6669
6670 2014-05-21 Pedro Alves <palves@redhat.com>
6671
6672 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6673 current source line having changed.
6674 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6675 * infrun.c (normal_stop): Adjust call to
6676 set_current_sal_from_frame.
6677 * source.c (clear_lines_listed_range): New function.
6678 (set_current_source_symtab_and_line, identify_source_line): Clear
6679 the lines listed range.
6680 (line_info): Handle the first "info line" after the current source
6681 line having changed.
6682 * stack.c (print_stack_frame): Remove center handling.
6683 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6684 center sal.line.
6685
6686 2014-05-21 Pedro Alves <palves@redhat.com>
6687
6688 * inf-child.c (inf_child_mourn_inferior): New function.
6689 * inf-child.h (inf_child_mourn_inferior): New declaration.
6690 * darwin-nat.c (darwin_mourn_inferior): Use
6691 inf_child_mourn_inferior.
6692 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6693 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6694 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6695 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6696 * windows-nat.c (windows_mourn_inferior): Likewise.
6697
6698 2014-05-21 Doug Evans <xdje42@gmail.com>
6699
6700 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6701
6702 2014-05-21 Doug Evans <xdje42@gmail.com>
6703
6704 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6705 (gdbscm_out_of_range_error): Ditto.
6706 (gdbscm_memory_error): Ditto.
6707 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6708 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6709 (gdbscm_out_of_range_error): Update.
6710 (gdbscm_memory_error): Update.
6711 (gdbscm_scm_to_target_string_unsafe): Delete.
6712
6713 2014-05-21 Pedro Alves <palves@redhat.com>
6714
6715 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6716 globals.
6717 (inf_child_open_target): New function.
6718 (inf_child_open): Use inf_child_open_target to push the target
6719 instead of erroring out.
6720 (inf_child_disconnect, inf_child_close)
6721 (inf_child_maybe_unpush_target): New functions.
6722 (inf_child_target): Install inf_child_disconnect and
6723 inf_child_close. Store a pointer to the returned object.
6724 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6725 declarations.
6726 * target.c (auto_connect_native_target): New global.
6727 (show_default_run_target): New function.
6728 (find_default_run_target): Return NULL if automatically connecting
6729 to the native target is disabled.
6730 (_initialize_target): Install set/show auto-connect-native-target.
6731 * NEWS: Mention "set auto-connect-native-target", and "target
6732 native".
6733 * linux-nat.c (super_close): New global.
6734 (linux_nat_close): Call super_close.
6735 (linux_nat_add_target): Store a pointer to the base class's
6736 to_close method.
6737 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6738 inf_child_maybe_unpush.
6739 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6740 already pushed.
6741 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6742 the inferior. Use inf_child_maybe_unpush_target.
6743 (inf_ttrace_attach): Don't push the target if it is already
6744 pushed.
6745 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6746 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6747 after mourning the inferior. Use inf_child_maybe_unpush_target.
6748 (darwin_attach_pid): Don't push the target if it is already
6749 pushed.
6750 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6751 mourning the inferior. Use inf_child_maybe_unpush_target.
6752 (gnu_detach): Use inf_child_maybe_unpush_target.
6753 * go32-nat.c (go32_create_inferior): Don't push the target if it
6754 is already pushed.
6755 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6756 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6757 (procfs_open): Rename to ...
6758 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6759 comments. Can target_preopen before changing node. Call
6760 inf_child_open_target to push the target explicitly.
6761 (procfs_attach): Don't push the target if it is already pushed.
6762 (procfs_detach): Use inf_child_maybe_unpush_target.
6763 (procfs_create_inferior): Don't push the target if it is already
6764 pushed.
6765 (nto_native_ops): New global.
6766 (procfs_open): Reimplement.
6767 (procfs_native_open): New function.
6768 (init_procfs_targets): Install procfs_native_open as to_open of
6769 "target native". Store a pointer to the "native" target in
6770 nto_native_ops.
6771 * procfs.c (procfs_attach): Don't push the target if it is already
6772 pushed.
6773 (procfs_detach): Use inf_child_maybe_unpush_target.
6774 (procfs_mourn_inferior): Only unpush the target after mourning the
6775 inferior. Use inf_child_maybe_unpush_target.
6776 (procfs_init_inferior): Don't push the target if it is already
6777 pushed.
6778 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6779 if it is already pushed.
6780
6781 2014-05-21 Pedro Alves <palves@redhat.com>
6782
6783 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6784 and "procfs" targets are now called "native" instead.
6785
6786 2014-05-21 Pedro Alves <palves@redhat.com>
6787
6788 * go32-nat.c (go32_open): Delete.
6789 (go32_target): Don't override the to_open method.
6790
6791 2014-05-21 Pedro Alves <palves@redhat.com>
6792
6793 * nto-procfs.c (procfs_can_run): New function.
6794 (nto_procfs_ops): New global.
6795 (init_procfs_targets): New, based on procfs_target. Install
6796 "target native" in addition to "target procfs".
6797 (_initialize_procfs): Call init_procfs_targets instead of adding
6798 the target here.
6799
6800 2014-05-21 Pedro Alves <palves@redhat.com>
6801
6802 * windows-nat.c (windows_target): Don't override to_shortname,
6803 to_longname or to_doc.
6804
6805 2014-05-21 Pedro Alves <palves@redhat.com>
6806
6807 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6808 to_doc.
6809
6810 2014-05-21 Pedro Alves <palves@redhat.com>
6811
6812 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6813 to_shortname, to_longname or to_doc.
6814
6815 2014-05-21 Pedro Alves <palves@redhat.com>
6816
6817 * go32-nat.c (go32_target): Don't override to_shortname,
6818 to_longname or to_doc.
6819
6820 2014-05-21 Pedro Alves <palves@redhat.com>
6821
6822 * inf-child.c (inf_child_open): Remove mention of "child".
6823 (inf_child_target): Rename target to "native" instead of "child".
6824
6825 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6826
6827 * Makefile.in (SFILES): Delete "regset.c".
6828 (COMMON_OBS): Delete "regset.o".
6829 * regset.c: Remove.
6830 * regset.h (regset_alloc): Delete prototype.
6831
6832 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6833
6834 * sparc-linux-tdep.c (sparc32_linux_gregset)
6835 (sparc32_linux_fpregset): New static regset structures.
6836 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6837 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6838 'fpregset' fields.
6839 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6840 (sparc64_linux_fpregset): New static regset structures.
6841 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6842 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6843 New static regset structures.
6844 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6845 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6846 New static regset structures.
6847 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6848 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6849 New static regset structures.
6850 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6851 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6852 New static regset structures.
6853 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6854
6855 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6856
6857 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6858 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6859 register maps ("regmaps") from "*regset" to "*regmap". Do this
6860 for all regmap types and variables.
6861 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6862 (sparc32_linux_supply_core_gregset)
6863 (sparc32_linux_collect_core_gregset)
6864 (sparc32_linux_supply_core_fpregset)
6865 (sparc32_linux_collect_core_fpregset): Likewise.
6866 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6867 (sparc_gregmap, sparc_fpregmap): ... these.
6868 (sparc_supply_gregset, sparc_collect_gregset)
6869 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6870 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6871 (_initialize_sparc_nat): Rename regmaps.
6872 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6873 (sparc_gregmap, sparc_fpregmap): ... these.
6874 (sparc_supply_gregset, sparc_collect_gregset)
6875 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6876 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6877 Rename macros to...
6878 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6879 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6880 Likewise.
6881 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6882 Rename to...
6883 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6884 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6885 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6886 regmaps.
6887 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6888 (sparc32_bsd_fpregset): Rename to...
6889 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6890 (sparc32_bsd_fpregmap): ... these.
6891 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6892 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6893 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6894 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6895 (struct sparc_gregmap, struct sparc_fpregmap)
6896 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6897 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6898 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6899 (sparc32_supply_regset, sparc32_collect_gregset)
6900 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6901 prototypes.
6902 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6903 (sparc64_linux_ptrace_gregmap): ... this.
6904 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6905 (_initialize_sparc64_linux_nat): Rename regmaps.
6906 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6907 (sparc64_linux_core_gregmap): ... this.
6908 (sparc64_linux_supply_core_gregset)
6909 (sparc64_linux_collect_core_gregset)
6910 (sparc64_linux_supply_core_fpregset)
6911 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6912 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6913 (sparc64_sol2_fpregset): Rename to...
6914 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6915 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6916 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6917 regmaps.
6918 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6919 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6920 (sparc64_bsd_fpregset): Rename to...
6921 (struct sparc_gregmap, sparc64_sol2_gregmap)
6922 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6923 (sparc64_bsd_fpregmap): ... these.
6924 (sparc64_supply_gregset, sparc64_collect_gregset)
6925 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6926 prototypes.
6927 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6928 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6929 (sparc64fbsd_gregmap): ... this.
6930 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6931 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6932 Rename regmaps.
6933 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6934 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6935 (sparc64nbsd_collect_fpregset): Likewise.
6936 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6937 (sparc64nbsd_gregmap): ... this.
6938 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6939 regmaps.
6940 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6941 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6942 (sparc64obsd_gregmap): ... this.
6943 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6944 regmaps.
6945 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6946 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6947 (sparc32nbsd_gregmap): ... this.
6948 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6949 regmaps.
6950
6951 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6952
6953 * score-tdep.c (score7_linux_gregset): New static regset
6954 structure.
6955 (score7_linux_regset_from_core_section): Remove dynamic regset
6956 allocation.
6957 (score_gdbarch_init): Drop allocation of tdep structure.
6958 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6959
6960 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6961
6962 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6963 regset structures.
6964 (am33_regset_from_core_section): Remove dynamic regset
6965 allocations.
6966
6967 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6968
6969 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6970 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6971 structures.
6972 (mips_linux_regset_from_core_section): Remove dynamic regset
6973 allocations.
6974 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6975 'gregset64', 'fpregset', and 'fpregset64'.
6976 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6977 deleted tdep fields.
6978
6979 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6980
6981 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6982 regset structures.
6983 (amd64_regset_from_core_section): Remove dynamic regset
6984 allocations.
6985 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6986 structure.
6987 (amd64obsd_regset_from_core_section): Remove dynamic regset
6988 allocation.
6989 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6990 Likewise.
6991 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6992 x86-common regset supply function.
6993 * i386-tdep.c (i386_collect_gregset): Make static.
6994 (i386_gregset): New global regset structure.
6995 (i386_fpregset, i386_xstateregset): New static regset structures.
6996 (i386_regset_from_core_section): Remove dynamic regset
6997 allocations.
6998 (i386_gdbarch_init): Remove initialization of tdep fields
6999 'gregset', 'fpregset', and 'xstateregset'.
7000 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7001 'fpregset', and 'xstateregset'.
7002 (i386_collect_gregset): Remove prototype.
7003 (i386_gregset): New declaration.
7004 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7005 structure.
7006 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7007 allocation.
7008
7009 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7010
7011 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7012 (arm_linux_vfpregset): New static regset structures.
7013 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7014 regset structures.
7015 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7016 and 'vfpregset' fields.
7017
7018 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7019
7020 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7021 (aarch64_linux_fpregset): New static regset structures.
7022 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7023 of regset structures.
7024 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7025 'fpregset' fields.
7026
7027 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7028
7029 * regset.h (struct regset): Remove gdbarch field.
7030 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7031 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7032 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7033 Likewise.
7034 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7035 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7036 (ppc32_linux_vsxregset): Likewise.
7037 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7038 via the regcache instead of the regset.
7039 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7040 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7041 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7042 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7043 Likewise.
7044
7045 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7046
7047 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7048 Constify structures.
7049 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7050 (alphanbsd_aout_gregset): Likewise.
7051 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7052 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7053 Likewise.
7054 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7055 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7056 Likewise.
7057 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7058 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7059 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7060 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7061 * m88k-tdep.c (m88k_gregset): Likewise.
7062 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7063 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7064 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7065 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7066 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7067 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7068 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7069 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7070 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7071 Likewise.
7072 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7073 * sh-tdep.h (sh_corefile_gregset): Likewise.
7074 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7075 * vax-tdep.c (vax_gregset): Likewise.
7076
7077 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7078
7079 Fix TLS access for -static -pthread.
7080 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7081 (try_thread_db_load_1): Initialize it.
7082 (thread_db_get_thread_local_address): Call it if LM is zero.
7083 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7084 * target.h (struct target_ops) (to_get_thread_local_address): Add
7085 load_module_addr comment.
7086
7087 2014-05-21 Pedro Alves <palves@redhat.com>
7088
7089 * dcache.c (dcache_read_memory_partial): If reading the cache line
7090 fails, fallback to reading just the memory the caller wanted.
7091
7092 2014-05-20 Doug Evans <dje@google.com>
7093
7094 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7095 instead of get_current_arch.
7096
7097 2014-05-20 Pedro Alves <palves@redhat.com>
7098
7099 * NEWS: Mention that compare-sections now works with all targets.
7100
7101 * remote.c (PACKET_qCRC): New enum value.
7102 (remote_verify_memory): Don't send qCRC if the target has no
7103 execution. Use packet_support/packet_ok. If the target doesn't
7104 support the qCRC packet, fallback to a deep memory copy.
7105 (compare_sections_command): Say "target image" instead of "remote
7106 executable".
7107 (_initialize_remote): Add PACKET_qCRC to the list of config
7108 packets that have no associated command. Extend comment.
7109 * target.c (simple_verify_memory, default_verify_memory): New
7110 function.
7111 * target.h (struct target_ops) <to_verify_memory>: Default to
7112 default_verify_memory.
7113 (simple_verify_memory): New declaration.
7114 * target-delegates.c: Regenerate.
7115
7116 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7117
7118 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7119
7120 2014-05-20 Hui Zhu <hui@codesourcery.com>
7121 Yao Qi <yao@codesourcery.com>
7122
7123 PR backtrace/16558
7124 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7125 and change address of sp and pc.
7126
7127 2014-05-19 Tom Tromey <tromey@redhat.com>
7128
7129 * gdbtypes.c (rank_function): Use XNEWVEC.
7130 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7131
7132 2014-05-19 Doug Evans <dje@google.com>
7133
7134 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7135 build_type_unit_groups and moved closer to only caller. Remove
7136 arguments. All references updated. Remove outdated .gdb_index
7137 comment.
7138 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7139 build_type_psymtabs_1.
7140
7141 2014-05-19 Doug Evans <dje@google.com>
7142
7143 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7144 n_type_unit_groups, all_type_unit_groups. All uses removed.
7145 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7146 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7147 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7148 (add_type_unit_group_to_table): Delete.
7149
7150 2014-05-19 Doug Evans <dje@google.com>
7151
7152 * eval.c (evaluate_subexp_standard): Add some comments.
7153
7154 2014-05-17 Doug Evans <xdje42@gmail.com>
7155
7156 * progspace.c (remove_program_space): Delete, unused.
7157 * progspace.h (remove_program_space): Ditto.
7158
7159 2014-05-17 Doug Evans <xdje42@gmail.com>
7160
7161 * inferior.c (prune_inferiors): Fix comment.
7162 (remove_inferior_command): Call prune_program_spaces.
7163
7164 2014-05-16 Doug Evans <dje@google.com>
7165
7166 New command line option -D.
7167 * NEWS: Mention it.
7168 * main.c (set_gdb_data_directory): New function.
7169 (captured_main): Recognize -D. Flag error for --data-directory "".
7170 Call set_gdb_data_directory.
7171 (print_gdb_help): Print --data-directory, -D.
7172 * main.h (set_gdb_data_directory): Declare.
7173 * top.c (staged_gdb_datadir): New static global.
7174 (set_gdb_datadir): Call set_gdb_data_directory
7175 (show_gdb_datadir): New function.
7176 (init_main): Update init of data-directory parameter.
7177
7178 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7179
7180 Import the "dirfd" gnulib module.
7181 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7182 * gnulib/aclocal.m4: Update.
7183 * gnulib/config.in: Update.
7184 * gnulib/configure: Update.
7185 * gnulib/import/Makefile.am: Update.
7186 * gnulib/import/Makefile.in: Update.
7187 * gnulib/import/dirfd.c: New.
7188 * gnulib/import/m4/dirfd.m4: New.
7189 * gnulib/import/m4/gnulib-cache.m4: Update.
7190 * gnulib/import/m4/gnulib-comp.m4: Update.
7191
7192 2014-05-16 Pierre Muller <muller@sourceware.org>
7193 Yao Qi <yao@codesourcery.com>
7194
7195 * valprint.c (print_wchar): Move the code on checking whether
7196 W is a printable wide char to the default branch of switch
7197 statement below. Call wchar_printable instead of gdb_iswprint.
7198
7199 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7200
7201 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7202 ldr.w and ldrd instructions.
7203
7204 2014-05-15 Doug Evans <dje@google.com>
7205
7206 * dwarf2read.c (read_structure_type): Delete outdated comments.
7207
7208 2014-05-14 Tom Tromey <tromey@redhat.com>
7209
7210 * macrocmd.c (print_macro_definition): Reindent.
7211
7212 2014-05-13 Doug Evans <xdje42@gmail.com>
7213
7214 * python/py-cmd.c (cmdpy_completer): Add comment.
7215 (completers): Make const.
7216
7217 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7218
7219 * infrun.c (resume): Remove should_resume (unused). Move up
7220 declaration of resume_ptid.
7221
7222 2014-05-13 Tom Tromey <tromey@redhat.com>
7223
7224 * language.h (unop_type_check): Remove.
7225 (binop_type_check): Don't declare.
7226
7227 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7228
7229 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7230 call to regcache_raw_collect.
7231
7232 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7233
7234 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7235 mi_console->quote as the quoting character.
7236
7237 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7238
7239 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7240
7241 2014-04-29 Tom Tromey <tromey@redhat.com>
7242
7243 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7244 "show debug varobj".
7245
7246 2014-05-07 Kyle McMartin <kyle@redhat.com>
7247
7248 Pushed by Joel Brobecker <brobecker@adacore.com>.
7249 * aarch64-tdep.c (aarch64_software_single_step): New function.
7250 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7251 with aarch64_software_single_step.
7252
7253 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7254
7255 GDB 7.7.1 released.
7256
7257 2014-05-05 Keith Seitz <keiths@redhat.com>
7258
7259 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7260 variable or history value is successfully parsed.
7261
7262 2014-05-05 Yao Qi <yao@codesourcery.com>
7263 Pedro Alves <palves@redhat.com>
7264
7265 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7266 address of blocks that intersects the requested range. Trim
7267 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7268 sections.
7269 * ctf.c (ctf_xfer_partial): Likewise.
7270
7271 2014-05-05 Yao Qi <yao@codesourcery.com>
7272
7273 * printcmd.c (display_command): Remove the check to
7274 target_has_execution.
7275
7276 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7277
7278 * ppcobsd-nat.c: Include "obsd-nat.h".
7279 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7280 add_target.
7281 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7282
7283 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7284
7285 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7286 and 16-bit signed and unsigned arguments. Update comment.
7287 (stap_parse_probe_arguments): Extend code to handle such
7288 arguments. Use warning instead of complaint to notify about
7289 unrecognized bitness.
7290
7291 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7292
7293 PR breakpoints/16889
7294 * stap-probe.c (stap_parse_probe_arguments): Simplify
7295 check for non-prefixed probes (i.e., probes whose
7296 arguments do not start with "N@"). Always set the
7297 argument type to a sane value.
7298
7299 2014-05-01 David Taylor <dtaylor@emc.com>
7300
7301 * remote.c (compare_sections_command): Add -r option to compare
7302 all loadable read-only sections.
7303
7304 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7305
7306 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7307 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7308 Update all callers.
7309 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7310 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7311 Remove unused CORE_ADDR argument. Update all callers.
7312
7313 2014-04-29 Pedro Alves <palves@redhat.com>
7314
7315 * remote.c (struct packet_config) <detect>: Extend comment.
7316 (add_packet_config_cmd): Don't set the config's detect or support
7317 fields here.
7318 (init_all_packet_configs): Also initialize the config's 'detect'
7319 field.
7320 (reset_all_packet_configs_support): New function.
7321 (remote_open_1): Call reset_all_packet_configs_support instead of
7322 init_all_packet_configs.
7323 (_initialize_remote): Initialize all packet configs. Assert that
7324 all packets have an associated command, except a few known
7325 outliers.
7326
7327 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7328
7329 * dwarf2read.c (read_subrange_type): Handle dynamic
7330 DW_AT_lower_bound attributes.
7331
7332 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7333
7334 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7335 dynamic bounds before computing its upper bound.
7336 (ada_discrete_type_low_bound): Same as above with the lower bound.
7337
7338 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7339
7340 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7341 range types. Adjust the array handling implementation to
7342 take advantage of this change.
7343 (resolve_dynamic_range): New function, mostly extracted from
7344 resolve_dynamic_bounds.
7345 (resolve_dynamic_array): New function, mostly extracted from
7346 resolve_dynamic_bounds.
7347 (resolve_dynamic_bounds): Delete.
7348 (resolve_dynamic_type): Reimplement. Add handling of
7349 TYPE_CODE_RANGE types.
7350
7351 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7352
7353 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7354 handling of parallel ___XA types.
7355
7356 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7357
7358 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7359 unnecessary second call to static_unwrap_type.
7360
7361 2014-04-27 Hui Zhu <hui@codesourcery.com>
7362
7363 * stack.c (print_frame_info): Call do_gdb_disassembly with
7364 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7365
7366 2014-04-26 Doug Evans <xdje42@gmail.com>
7367
7368 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7369
7370 2014-04-25 Pedro Alves <palves@redhat.com>
7371
7372 PR server/16255
7373 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7374 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7375 and newline from built string.
7376 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7377 (linux_ptrace_attach_fail_reason): ... this.
7378 * linux-nat.c (linux_nat_attach): Adjust to use
7379 linux_ptrace_attach_fail_reason.
7380
7381 2014-04-25 Pedro Alves <palves@redhat.com>
7382
7383 * remote.c (struct remote_state): Remove multi_process_aware,
7384 non_stop_aware, cond_tracepoints, cond_breakpoints,
7385 breakpoint_commands, fast_tracepoints, static_tracepoints,
7386 install_in_trace, disconnected_tracing,
7387 enable_disable_tracepoints, string_tracing, and
7388 augmented_libraries_svr4_read fields.
7389 (remote_multi_process_p): Move further below in the file.
7390 (struct packet_config): Add comments.
7391 (update_packet_config): Delete function.
7392 (show_packet_config_cmd): Use packet_config_support.
7393 (add_packet_config_cmd): Use NULL as set callback.
7394 (packet_ok): "set remote foo-packet"-style commands no longer
7395 change config->supported -- adjust.
7396 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7397 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7398 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7399 (PACKET_QNonStop, PACKET_multiprocess_feature)
7400 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7401 (PACKET_DisconnectedTracing_feature)
7402 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7403 (set_remote_protocol_packet_cmd): Delete function.
7404 (packet_config_support, packet_support): New functions.
7405 (set_remote_protocol_Z_packet_cmd): Don't call
7406 update_packet_config.
7407 (remote_query_attached, remote_pass_signals)
7408 (remote_program_signals, remote_threads_info)
7409 (remote_threads_extra_info, remote_start_remote): Use
7410 packet_support.
7411 (remote_start_remote): Use packet_config_support and
7412 packet_support.
7413 (init_all_packet_configs): Set all packets to unknown support,
7414 instead of calling update_packet_config.
7415 (remote_check_symbols): Use packet_support.
7416 (remote_supported_packet): Unconditionally set the packet config's
7417 support status.
7418 (remote_multi_process_feature, remote_non_stop_feature)
7419 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7420 (remote_breakpoint_commands_feature)
7421 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7422 (remote_install_in_trace_feature)
7423 (remote_disconnected_tracing_feature)
7424 (remote_enable_disable_tracepoint_feature)
7425 (remote_string_tracing_feature)
7426 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7427 (remote_protocol_features): Adjust to use remote_supported_packet
7428 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7429 "ConditionalTracepoints", "ConditionalBreakpoints",
7430 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7431 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7432 "EnableDisableTracepoints", and "tracenz".
7433 (remote_query_supported): Use packet_support.
7434 (remote_open_1): Adjust.
7435 (extended_remote_attach_1): Use packet_support. Switch on the
7436 result of packet_ok instead of checking whether the packet ended
7437 up disabled.
7438 (remote_vcont_resume): Use packet_support.
7439 (remote_resume, remote_stop_ns, fetch_register_using_p)
7440 (remote_prepare_to_store, store_register_using_P)
7441 (check_binary_download, remote_write_bytes): Use packet_support.
7442 (remote_vkill): Use packet_support. Switch on the result of
7443 packet_ok instead of checking whether the packet ended up
7444 disabled.
7445 (extended_remote_supports_disable_randomization): Use
7446 packet_support.
7447 (extended_remote_run): Switch on the result of packet_ok instead
7448 of checking whether the packet ended up disabled.
7449 (remote_insert_breakpoint, remote_remove_breakpoint)
7450 (remote_insert_watchpoint, remote_remove_watchpoint)
7451 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7452 packet_support.
7453 (remote_search_memory): Use packet_config_support.
7454 (remote_get_thread_local_address, remote_get_tib_address)
7455 (remote_hostio_send_command, remote_can_execute_reverse): Use
7456 packet_support.
7457 (remote_supports_cond_tracepoints)
7458 (remote_supports_cond_breakpoints)
7459 (remote_supports_fast_tracepoints)
7460 (remote_supports_static_tracepoints)
7461 (remote_supports_install_in_trace)
7462 (remote_supports_enable_disable_tracepoint)
7463 (remote_supports_string_tracing)
7464 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7465 the packet config says the feature is enabled or disabled.
7466 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7467 (remote_get_trace_status): Use packet_support.
7468 (remote_set_disconnected_tracing): Adjust to check whether the
7469 feature is enabled with packet_support.
7470 (remote_set_trace_buffer_size, remote_use_agent)
7471 (remote_can_use_agent, remote_supports_btrace): Use
7472 packet_support.
7473 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7474 Use packet_config_support.
7475 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7476 the packet config says the feature is enabled or disabled.
7477 (set_range_stepping): Use packet_support.
7478
7479 2014-04-25 Tom Tromey <tromey@redhat.com>
7480
7481 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7482 argument.
7483
7484 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7485
7486 * NEWS: Mention support for C99 variable length arrays.
7487
7488 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7489
7490 * ada-lang.c (standard_exc): Expand introductory comment.
7491
7492 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7493 Walfred Tedeschi <walfred.tedeschi@intel.com>
7494
7495 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7496 AVX512 registers.
7497 (amd64_linux_read_description): Add code to handle AVX512 xstate
7498 mask and return respective tdesc.
7499 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7500 and features/i386/x32-avx512-linux.c.
7501 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7502 (amd64_linux_core_read_description): Add code to handle AVX512
7503 xstate mask and return respective tdesc.
7504 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7505 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7506 calculation.
7507 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7508 (tdesc_amd64_avx512_linux): New prototype.
7509 (tdesc_x32_avx512_linux): Likewise.
7510 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7511 features/i386/x32-avx512.c.
7512 (amd64_ymm_avx512_names): New register names for pseudo
7513 registers YMM16-31.
7514 (amd64_ymmh_avx512_names): New register names for raw registers
7515 YMMH16-31.
7516 (amd64_k_names): New register names for K registers.
7517 (amd64_zmmh_names): New register names for ZMM raw registers.
7518 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7519 (amd64_xmm_avx512_names): New register names for XMM16-31
7520 registers.
7521 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7522 registers.
7523 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7524 if feature is present.
7525 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7526 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7527 (AMD64_NUM_REGS): Adjust to new number of registers.
7528 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7529 registers supplied via XSTATE by AVX512 registers.
7530 (i386_linux_read_description): Add case for AVX512.
7531 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7532 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7533 (i386_linux_core_read_description): Add case for AVX512.
7534 (i386_linux_init_abi): Install supported register note section
7535 for AVX512.
7536 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7537 AVX512.
7538 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7539 registers to be number of zmm7h + 1.
7540 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7541 * i386-tdep.c: Include features/i386/i386-avx512.c.
7542 (i386_zmm_names): Add ZMM pseudo register names array.
7543 (i386_zmmh_names): Add ZMM raw register names array.
7544 (i386_k_names): Add K raw register names array.
7545 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7546 registers. AVX512 has 16 more ZMM registers than there are YMM
7547 registers.
7548 (i386_zmmh_regnum_p): Add function to look up register number of
7549 ZMM raw registers.
7550 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7551 (i386_k_regnum_p): Likewise for K raw registers.
7552 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7553 registers added by AVX512.
7554 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7555 registers added by AVX512.
7556 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7557 added by AVX512.
7558 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7559 (i386_pseudo_register_name): Add ZMM pseudo registers.
7560 (i386_zmm_type): Construct and return vector registers type for ZMM
7561 registers.
7562 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7563 ZMM0-31 pseudo registers and K registers.
7564 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7565 and YMM16-31 registers from register cache.
7566 (i386_pseudo_register_write): Add code to write K, ZMM and
7567 YMM16-31 registers.
7568 (i386_register_reggroup_p): Add code to include/exclude AVX512
7569 registers in/from respective register groups.
7570 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7571 registers if feature is present in xcr0.
7572 (i386_gdbarch_init): Add code to initialize AVX512 feature
7573 variables in tdep structure, wire in pseudo registers and call
7574 initialize_tdesc_i386_avx512.
7575 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7576 variables.
7577 (i386_regnum): Add AVX512 registers.
7578 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7579 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7580 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7581 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7582 512 bits wide.
7583 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7584 (i386_ymm_avx512_regnum_p): Likewise.
7585 (i386_k_regnum_p): Likewise.
7586 (i386_zmm_regnum_p): Likewise.
7587 (i386_zmmh_regnum_p): Likewise.
7588 * i387-tdep.c : Update year in copyright notice.
7589 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7590 XSAVE buffer.
7591 (XSAVE_YMM_AVX512_ADDR): New macro.
7592 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7593 XSAVE buffer.
7594 (XSAVE_XMM_AVX512_ADDR): New macro.
7595 (xsave_avx512_k_offset): New table for K register offsets in
7596 XSAVE buffer.
7597 (XSAVE_AVX512_K_ADDR): New macro.
7598 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7599 in XSAVE buffer.
7600 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7601 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7602 buffer.
7603 (i387_collect_xsave): Add code to collect AVX512 registers from
7604 XSAVE buffer.
7605 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7606 of XMM16-31 registers.
7607 (I387_NUM_K_REGS): New define for number of K registers.
7608 (I387_K0_REGNUM): New define for K0 register number.
7609 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7610 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7611 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7612 registers.
7613 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7614 (I387_XMM16_REGNUM): New define for XMM16 register number.
7615 (I387_YMM0_REGNUM): New define for YMM0 register number.
7616 (I387_KEND_REGNUM): New define for last K register number.
7617 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7618 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7619 number.
7620 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7621 number.
7622 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7623 size.
7624 * features/Makefile: Add AVX512 related files.
7625 * features/i386/32bit-avx512.xml: New file.
7626 * features/i386/64bit-avx512.xml: Likewise.
7627 * features/i386/amd64-avx512-linux.c: Likewise.
7628 * features/i386/amd64-avx512-linux.xml: Likewise.
7629 * features/i386/amd64-avx512.c: Likewise.
7630 * features/i386/amd64-avx512.xml: Likewise.
7631 * features/i386/i386-avx512-linux.c: Likewise.
7632 * features/i386/i386-avx512-linux.xml: Likewise.
7633 * features/i386/i386-avx512.c: Likewise.
7634 * features/i386/i386-avx512.xml: Likewise.
7635 * features/i386/x32-avx512-linux.c: Likewise.
7636 * features/i386/x32-avx512-linux.xml: Likewise.
7637 * features/i386/x32-avx512.c: Likewise.
7638 * features/i386/x32-avx512.xml: Likewise.
7639 * regformats/i386/amd64-avx512-linux.dat: New file.
7640 * regformats/i386/amd64-avx512.dat: Likewise.
7641 * regformats/i386/i386-avx512-linux.dat: Likewise.
7642 * regformats/i386/i386-avx512.dat: Likewise.
7643 * regformats/i386/x32-avx512-linux.dat: Likewise.
7644 * regformats/i386/x32-avx512.dat: Likewise.
7645 * NEWS: Add note about new support for AVX512.
7646
7647
7648 2014-04-23 Pedro Alves <palves@redhat.com>
7649
7650 * breakpoint.c (insert_bp_location): Tolerate errors if the
7651 breakpoint is set in a user-loaded objfile.
7652 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7653 location is marked shlib_disabled. If the breakpoint is set in a
7654 user-loaded objfile is a GDB-side memory breakpoint, validate it
7655 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7656 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7657 flag.
7658 * mem-break.c (memory_validate_breakpoint): New function.
7659 * objfiles.c (userloaded_objfile_contains_address_p): New
7660 function.
7661 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7662 * target.h (memory_validate_breakpoint): New declaration.
7663
7664 2014-04-23 Pedro Alves <palves@redhat.com>
7665
7666 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7667 the breakpoint is set in a shared library, only suppress
7668 errors for software breakpoints, not hardware breakpoints.
7669
7670 2014-04-22 Pedro Alves <palves@redhat.com>
7671
7672 * infrun.c (schedlock_applies): New function, factored out from
7673 find_thread_needs_step_over.
7674 (find_thread_needs_step_over): Use it.
7675 (switch_back_to_stepped_thread): Always clear trap_expected if the
7676 step over is finished. Return early if scheduler locking applies.
7677 Look for the stepping thread and a potential step-over thread with
7678 a single loop.
7679 (currently_stepping_or_nexting_callback): Delete.
7680
7681 2014-04-22 Nick Clifton <nickc@redhat.com>
7682
7683 * NEWS: Mention that ARM sim now supports tracing.
7684
7685 2014-04-22 Yao Qi <yao@codesourcery.com>
7686
7687 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7688 to ...
7689 * tracefile.c (tracefile_fetch_registers): ... it. New
7690 function.
7691 * tracefile.h (tracefile_fetch_registers): Declare.
7692 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7693 tracefile_fetch_registers.
7694
7695 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7696
7697 PR gdb/14018
7698 * windows-nat.c (thread_rec): Don't display a warning when
7699 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7700 fails for any reason, set th->suspended to -1, so that we don't
7701 try to resume such a thread. Also, don't return NULL in these
7702 cases, to avoid completely ruin the session due to "PC register is
7703 not available" error.
7704 (do_windows_fetch_inferior_registers): Check errors in
7705 GetThreadContext call.
7706 (windows_continue): Accept an additional argument KILLED; if not
7707 zero, ignore errors in the SetThreadContext call, since the
7708 inferior was killed and is shutting down.
7709 (windows_resume, get_windows_debug_event)
7710 (windows_create_inferior, windows_mourn_inferior)
7711 (windows_kill_inferior): All callers of windows_continue changed
7712 to adjust to its new calling sequence.
7713
7714 2014-04-19 Yao Qi <yao@codesourcery.com>
7715
7716 * ctf.c (ctf_open): Call post_create_inferior.
7717
7718 2014-04-19 Yao Qi <yao@codesourcery.com>
7719
7720 * ctf.c (handle_id): New static variable.
7721 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7722 value. Get the declaration of event "register" and get length
7723 of field "contents".
7724
7725 2014-04-19 Yao Qi <yao@codesourcery.com>
7726
7727 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7728
7729 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7730
7731 * valops.c (oload_method_static): Remove unnecessary argument
7732 METHOD. Update all callers.
7733
7734 2014-04-18 Pedro alves <palves@redhat.com>
7735 Tom Tromey <tromey@redhat.com>
7736
7737 PR backtrace/15558
7738 * frame.c (get_prev_frame_1): Rename to ...
7739 (get_prev_frame_always): ... this, and make extern. Adjust.
7740 (skip_artificial_frames): Use get_prev_frame_always.
7741 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7742 (get_frame_unwind_stop_reason): Adjust to rename.
7743 * frame.h (get_prev_frame_always): Declare.
7744 * inline-frame.c: Include frame.h.
7745 (inline_frame_this_id): Use get_prev_frame_always.
7746
7747 2014-04-18 Tristan Gingold <gingold@adacore.com>
7748
7749 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7750 code by using bfd_mach_o_get_base_address.
7751
7752 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7753
7754 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7755 (spu_ax_pseudo_register_collect): New function.
7756 (spu_ax_pseudo_register_push_stack): Likewise.
7757 (spu_dwarf_reg_to_regnum): Likewise.
7758 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7759
7760 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7761
7762 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7763 Replace FRAME argument with FRAME_ID.
7764 * gdbarch.c, gdbarch.h: Regenerate.
7765 * findvar.c (default_value_from_register): Add GDBARCH argument;
7766 replace FRAME by FRAME_ID. No longer call get_frame_id.
7767 (value_from_register): Update call to gdbarch_value_from_register.
7768 * value.h (default_value_from_register): Update prototype.
7769 * s390-linux-tdep.c (s390_value_from_register): Update interface
7770 and call to default_value_from_register.
7771 * spu-tdep.c (spu_value_from_register): Likewise.
7772
7773 * findvar.c (address_from_register): Remove TYPE argument.
7774 Do not call value_from_register; use gdbarch_value_from_register
7775 with null_frame_id instead.
7776 * value.h (address_from_register): Update prototype.
7777 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7778 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7779 address_from_register interface change.
7780
7781 2014-04-17 Yao Qi <yao@codesourcery.com>
7782
7783 * gdbtypes.h: Update comments to link to types and macros'
7784 definitions.
7785
7786 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7787
7788 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7789
7790 2014-04-16 Keith Seitz <keiths@redhat.com>
7791
7792 PR gdb/15827
7793 * dwarf2read.c (skip_one_die): Check that all relative-offset
7794 sibling DIEs fall within range of the current reader's buffer.
7795 (read_partial_die): Likewise.
7796
7797 2014-04-16 Keith Seitz <keiths@redhat.com>
7798
7799 PR c++/16597
7800 * cp-namespace.c (lookup_symbol_file): If the type name of
7801 `this' is NULL, return immediately.
7802
7803 2014-04-14 Keith Seitz <keiths@redhat.com>
7804
7805 PR c++/16253
7806 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7807 from symbol_matches_domain in symtab.c. All local callers
7808 of symbol_matches_domain updated.
7809 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7810 search STRUCT_DOMAIN.
7811 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7812 independently. standard_lookup will do that automatically.
7813 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7814 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7815 (cp_lookup_symbol_in_namespace): Likewise.
7816 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7817 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7818 may return a STRUCT_DOMAIN match.
7819 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7820 * cp-support.c: Include language.h.
7821 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7822 VAR_DOMAIN.
7823 * psymtab.c (match_partial_symbol): Compare the requested
7824 domain with the symbol's domain directly.
7825 (lookup_partial_symbol): Likewise.
7826 * symtab.c (lookup_symbol_in_language): Explain when/why
7827 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7828 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7829 appropriate languages.
7830 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7831 and moved to ada-lang.c
7832 (lookup_block_symbol): Explain that this function only returns
7833 symbol matching the requested DOMAIN.
7834 Compare the requested domain with the symbol's domain directly.
7835 (iterate_over_symbols): Compare the requested domain with the
7836 symbol's domain directly.
7837 * symtab.h (symbol_matches_domain): Remove.
7838
7839 2014-04-14 Tom Tromey <tromey@redhat.com>
7840
7841 PR c++/15246:
7842 * c-exp.y (type_aggregate_p): New function.
7843 (qualified_name, classify_inner_name): Use it.
7844 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7845 and TYPE_TARGET_TYPE of an enum type.
7846 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7847 an enum type.
7848 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7849 handle TYPE_DECLARED_CLASS.
7850 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7851 types.
7852 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7853 * valops.c (enum_constant_from_type): New function.
7854 (value_aggregate_elt): Use it.
7855 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7856 TYPE_CODE_ENUM.
7857
7858 2014-04-14 Tom Tromey <tromey@redhat.com>
7859
7860 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7861 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7862 const.
7863 * value.h (value_aggregate_elt): Update.
7864
7865 2014-04-14 Tom Tromey <tromey@redhat.com>
7866
7867 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7868
7869 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7870
7871 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7872 (evaluate_subexp_standard): Pass noside argument.
7873 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7874 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7875 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7876 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7877 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7878
7879 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7880
7881 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7882 points to a constant blob.
7883
7884 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7885
7886 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7887 property and store it as the high bound and flag the range accordingly.
7888 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7889 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7890 * gdbtypes.h (enum range_flags): New enum.
7891 (struct range_bounds): Add flags member.
7892
7893 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7894
7895 * c-typeprint.c (c_type_print_varspec_suffix): Added
7896 check for not yet resolved high bound. If unresolved, print
7897 "variable length" string to the console instead of random
7898 length.
7899
7900 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7901
7902 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7903 value.
7904 (ada_template_to_fixed_record_type_1): Likewise.
7905 (ada_to_fixed_type_1): Likewise.
7906 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7907 (cp_print_value): Likewise.
7908 * d-valprint.c (dynamic_array_type): Likewise.
7909 * findvar.c (address_of_variable): Likewise.
7910 * jv-valprint.c (java_value_print): Likewise.
7911 * valops.c (value_ind): Likewise.
7912 * value.c (coerce_ref): Likewise.
7913
7914 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7915
7916 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7917 value and retrieve the dynamic type size.
7918
7919 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7920
7921 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7922 passed to sizeof is dynamic evaluate the argument to compute the length.
7923
7924 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7925 Joel Brobecker <brobecker@adacore.com>
7926
7927 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7928 (dwarf2_evaluate_property): New function.
7929 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7930 * dwarf2read.c (attr_to_dynamic_prop): New function.
7931 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7932 attribute.
7933 * gdbtypes.c: Include dwarf2loc.h.
7934 (is_dynamic_type): New function.
7935 (resolve_dynamic_type): New function.
7936 (resolve_dynamic_bounds): New function.
7937 (get_type_length): New function.
7938 (check_typedef): Use get_type_length to compute type length.
7939 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7940 (TYPE_LOW_BOUND_KIND): New macro.
7941 (is_dynamic_type): New function prototype.
7942 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7943 to resolve dynamic properties of the type. Update comment.
7944 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7945
7946 2014-04-14 Richard Henderson <rth@redhat.com>
7947
7948 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7949
7950 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7951 Doug Evans <xdje42@gmail.com>
7952
7953 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7954 dereference TYPE_CODE_REF values.
7955
7956 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7957
7958 Revert the following changes due to regressions:
7959
7960 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7961 (dwarf2_evaluate_property): New function.
7962 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7963 * dwarf2read.c (attr_to_dynamic_prop): New function.
7964 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7965 attribute.
7966 * gdbtypes.c: Include dwarf2loc.h.
7967 (is_dynamic_type): New function.
7968 (resolve_dynamic_type): New function.
7969 (resolve_dynamic_bounds): New function.
7970 (get_type_length): New function.
7971 (check_typedef): Use get_type_length to compute type length.
7972 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7973 (TYPE_LOW_BOUND_KIND): New macro.
7974 (is_dynamic_type): New function prototype.
7975 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7976 to resolve dynamic properties of the type. Update comment.
7977 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7978
7979 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7980 passed to sizeof is dynamic evaluate the argument to compute the length.
7981
7982 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7983 value and retrieve the dynamic type size.
7984
7985 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7986 (ada_template_to_fixed_record_type_1): Likewise.
7987 (ada_to_fixed_type_1): Likewise.
7988 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7989 (cp_print_value): Likewise.
7990 * d-valprint.c (dynamic_array_type): Likewise.
7991 * eval.c (evaluate_subexp_with_coercion): Likewise.
7992 * findvar.c (address_of_variable): Likewise.
7993 * jv-valprint.c (java_value_print): Likewise.
7994 * valops.c (value_ind): Likewise.
7995 * value.c (coerce_ref): Likewise.
7996
7997 * c-typeprint.c (c_type_print_varspec_suffix): Added
7998 check for not yet resolved high bound. If unresolved, print
7999 "variable length" string to the console instead of random
8000 length.
8001
8002 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8003 property and store it as the high bound and flag the range accordingly.
8004 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8005 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8006 * gdbtypes.h (enum range_flags): New enum.
8007 (struct range_bounds): Add flags member.
8008
8009 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8010 points to a constant blob.
8011
8012 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8013 (evaluate_subexp_standard): Pass noside argument.
8014 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8015 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8016 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8017 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8018 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8019
8020 2014-04-11 Keith Seitz <keiths@redhat.com>
8021
8022 PR c++/16675
8023 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8024 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8025 reference types.
8026
8027 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8028
8029 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8030 (evaluate_subexp_standard): Pass noside argument.
8031 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8032 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8033 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8034 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8035 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8036
8037 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8038
8039 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8040 points to a constant blob.
8041
8042 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8043
8044 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8045 property and store it as the high bound and flag the range accordingly.
8046 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8047 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8048 * gdbtypes.h (enum range_flags): New enum.
8049 (struct range_bounds): Add flags member.
8050
8051 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8052
8053 * c-typeprint.c (c_type_print_varspec_suffix): Added
8054 check for not yet resolved high bound. If unresolved, print
8055 "variable length" string to the console instead of random
8056 length.
8057
8058 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8059
8060 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8061 (ada_template_to_fixed_record_type_1): Likewise.
8062 (ada_to_fixed_type_1): Likewise.
8063 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8064 (cp_print_value): Likewise.
8065 * d-valprint.c (dynamic_array_type): Likewise.
8066 * eval.c (evaluate_subexp_with_coercion): Likewise.
8067 * findvar.c (address_of_variable): Likewise.
8068 * jv-valprint.c (java_value_print): Likewise.
8069 * valops.c (value_ind): Likewise.
8070 * value.c (coerce_ref): Likewise.
8071
8072 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8073
8074 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8075 value and retrieve the dynamic type size.
8076
8077 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8078
8079 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8080 passed to sizeof is dynamic evaluate the argument to compute the length.
8081
8082 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8083
8084 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8085 (dwarf2_evaluate_property): New function.
8086 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8087 * dwarf2read.c (attr_to_dynamic_prop): New function.
8088 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8089 attribute.
8090 * gdbtypes.c: Include dwarf2loc.h.
8091 (is_dynamic_type): New function.
8092 (resolve_dynamic_type): New function.
8093 (resolve_dynamic_bounds): New function.
8094 (get_type_length): New function.
8095 (check_typedef): Use get_type_length to compute type length.
8096 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8097 (TYPE_LOW_BOUND_KIND): New macro.
8098 (is_dynamic_type): New function prototype.
8099 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8100 to resolve dynamic properties of the type. Update comment.
8101 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8102
8103 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8104
8105 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8106 declaring high/low bounds and change uses accordingly. Call
8107 create_range_type instead of create_static_range_type.
8108 * gdbtypes.c (create_range_type): New function.
8109 (create_range_type): Convert bounds into struct bound_prop and pass
8110 them to create_range_type.
8111 * gdbtypes.h (struct bound_prop): New struct.
8112 (create_range_type): New function prototype.
8113 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8114 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8115 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8116 part of the bound.
8117 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8118
8119 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8120
8121 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8122 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8123 * ada-lang.c: All uses of create_range_type updated.
8124 * coffread.c: All uses of create_range_type updated.
8125 * dwarf2read.c: All uses of create_range_type updated.
8126 * f-exp.y: All uses of create_range_type updated.
8127 * m2-valprint.c: All uses of create_range_type updated.
8128 * mdebugread.c: All uses of create_range_type updated.
8129 * stabsread.c: All uses of create_range_type updated.
8130 * valops.c: All uses of create_range_type updated.
8131 * valprint.c: All uses of create_range_type updated.
8132
8133 2014-04-10 Pedro Alves <palves@redhat.com>
8134
8135 * breakpoint.c (single_step_breakpoints)
8136 (single_step_gdbarch): Move up in the file.
8137 (one_breakpoint_xfer_memory): New function, factored out from ...
8138 (breakpoint_xfer_memory): ... here. Also process single-step
8139 breakpoints.
8140
8141 2014-04-09 Tristan Gingold <gingold@adacore.com>
8142
8143 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8144 comments.
8145 (darwin_decode_exception_message): Free port only after use.
8146
8147 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8148
8149 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8150 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8151 when setting the size of call_length.
8152
8153 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8154
8155 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8156 dereference TYPE_CODE_REF values.
8157
8158 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8159
8160 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8161 end of warning message.
8162
8163 2014-04-03 Doug Evans <dje@google.com>
8164
8165 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8166 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8167
8168 2014-04-02 Alan Modra <amodra@gmail.com>
8169
8170 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8171 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8172 (struct symbol_file_add_from_memory_args): Add size field.
8173 (find_vdso_size): New function.
8174 (add_vsyscall_page): Attempt to find vdso size.
8175
8176 2014-04-01 Doug Evans <dje@google.com>
8177
8178 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8179
8180 2014-04-01 Tristan Gingold <gingold@adacore.com>
8181
8182 * darwin-nat.c (darwin_encode_reply): Add prototype.
8183 (darwin_decode_exception_message): Reply to unknown inferiors.
8184 (darwin_decode_message): Handle message by id. Ignore message
8185 to unknown inferior.
8186 (darwin_wait): Discard unknown messages, add debug trace.
8187
8188 2014-03-31 Doug Evans <dje@google.com>
8189
8190 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8191 comp_dir_string.
8192
8193 2014-03-31 Doug Evans <dje@google.com>
8194
8195 New option "set print symbol-loading".
8196 * NEWS: Mention it.
8197 * solib.c (solib_read_symbols): Only print symbol loading messages
8198 if requested.
8199 (solib_add): If symbol loading is in "brief" mode, notify user
8200 symbols are being loaded.
8201 (reload_shared_libraries_1): Ditto.
8202 * symfile.c (print_symbol_loading_off): New static global.
8203 (print_symbol_loading_brief): New static global.
8204 (print_symbol_loading_full): New static global.
8205 (print_symbol_loading_enums): New static global.
8206 (print_symbol_loading): New static global.
8207 (print_symbol_loading_p): New function.
8208 (symbol_file_add_with_addrs): Only print symbol loading messages
8209 if requested.
8210 (_initialize_symfile): Register "print symbol-loading" set/show
8211 command.
8212 * symfile.h (print_symbol_loading_p): Declare.
8213
8214 2014-03-30 Doug Evans <xdje42@gmail.com>
8215
8216 * infrun.c (set_last_target_status): New function.
8217 (handle_inferior_event): Call it.
8218
8219 2014-03-30 Doug Evans <xdje42@gmail.com>
8220
8221 * inferior.h (enum stop_kind): Improve comment.
8222
8223 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8224
8225 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8226 a reference, strip the reference layer before calling
8227 the lang_ops value_has_mutated callback.
8228
8229 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8230
8231 Remove some globals from our parser.
8232 * language.c (unk_lang_parser): Add "struct parser_state"
8233 argument.
8234 * language.h (struct language_defn) <la_parser>: Likewise.
8235 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8236 (initialize_expout): Add "struct parser_state" argument.
8237 Rewrite function to use the parser state.
8238 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8239 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8240 write_exp_elt_longcst, write_exp_elt_dblcst,
8241 write_exp_elt_decfloatcst, write_exp_elt_type,
8242 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8243 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8244 write_dollar_variable): Likewise.
8245 (parse_exp_in_context_1): Use parser state.
8246 (insert_type_address_space): Add "struct parser_state" argument.
8247 Use parser state.
8248 (increase_expout_size): New function.
8249 * parser-defs.h: Forward declare "struct language_defn" and
8250 "struct parser_state".
8251 (expout, expout_size, expout_ptr): Remove extern declarations.
8252 (parse_gdbarch, parse_language): Rewrite macro declarations to
8253 accept the parser state.
8254 (struct parser_state): New struct.
8255 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8256 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8257 write_exp_elt_decfloatcst, write_exp_elt_type,
8258 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8259 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8260 write_exp_msymbol, write_dollar_variable,
8261 mark_struct_expression, insert_type_address_space): Add "struct
8262 parser_state" argument.
8263 (increase_expout_size): New function.
8264 * utils.c (do_clear_parser_state): New function.
8265 (make_cleanup_clear_parser_state): Likewise.
8266 * utils.h (make_cleanup_clear_parser_state): New function
8267 prototype.
8268 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8269 Update calls to write_exp* in order to pass the parser state.
8270 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8271 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8272 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8273 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8274 * stap-probe.c (stap_parse_register_operand): Likewise.
8275 (stap_parse_single_operand): Likewise.
8276 (stap_parse_argument_1): Likewise.
8277 (stap_parse_argument): Use parser state.
8278 * stap-probe.h: Include "parser-defs.h".
8279 (struct stap_parse_info) <pstate>: New field.
8280 * c-exp.y (parse_type): Rewrite to use parser state.
8281 (yyparse): Redefine to c_parse_internal.
8282 (pstate): New global variable.
8283 (parse_number): Add "struct parser_state" argument.
8284 (write_destructor_name): Likewise.
8285 (type_exp): Update calls to write_exp* and similars in order to
8286 use parser state.
8287 (exp1, exp, variable, qualified_name, space_identifier,
8288 typename, typebase): Likewise.
8289 (write_destructor_name, parse_number, lex_one_token,
8290 classify_name, classify_inner_name, c_parse): Add "struct
8291 parser_state" argument. Update function to use parser state.
8292 * c-lang.h: Forward declare "struct parser_state".
8293 (c_parse): Add "struct parser_state" argument.
8294 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8295 (yyparse): Redefine macro to ada_parse_internal.
8296 (pstate): New variable.
8297 (write_int, write_object_renaming, write_var_or_type,
8298 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8299 type_int, type_long, type_long_long, type_float, type_double,
8300 type_long_double, type_char, type_boolean, type_system_address):
8301 Add "struct parser_state" argument.
8302 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8303 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8304 var_or_type, aggregate, aggregate_component_list,
8305 positional_list, others, component_group,
8306 component_associations): Update calls to write_exp* and similar
8307 functions in order to use parser state.
8308 (ada_parse, write_var_from_sym, write_int,
8309 write_exp_op_with_string, write_object_renaming,
8310 find_primitive_type, write_selectors, write_ambiguous_var,
8311 write_var_or_type, write_name_assoc, type_int, type_long,
8312 type_long_long, type_float, type_double, type_long_double,
8313 type_char, type_boolean, type_system_address): Add "struct
8314 parser_state" argument. Adjust function to use parser state.
8315 * ada-lang.c (parse): Likewise.
8316 * ada-lang.h: Forward declare "struct parser_state".
8317 (ada_parse): Add "struct parser_state" argument.
8318 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8319 calls to both functions.
8320 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8321 parser state.
8322 (yyparse): Redefine macro to f_parse_internal.
8323 (pstate): New variable.
8324 (parse_number): Add "struct parser_state" argument.
8325 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8326 and similars in order to use parser state.
8327 (parse_number): Adjust code to use parser state.
8328 (yylex): Likewise.
8329 (f_parse): New function.
8330 * f-lang.h: Forward declare "struct parser_state".
8331 (f_parse): Add "struct parser_state" argument.
8332 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8333 parser state.
8334 (yyparse): Redefine macro for java_parse_internal.
8335 (pstate): New variable.
8336 (push_expression_name, push_expression_name, insert_exp): Add
8337 "struct parser_state" argument.
8338 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8339 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8340 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8341 PostIncrementExpression, PostDecrementExpression,
8342 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8343 UnaryExpressionNotPlusMinus, CastExpression,
8344 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8345 RelationalExpression, EqualityExpression, AndExpression,
8346 ExclusiveOrExpression, InclusiveOrExpression,
8347 ConditionalAndExpression, ConditionalOrExpression,
8348 ConditionalExpression, Assignment, LeftHandSide): Update
8349 calls to write_exp* and similars in order to use parser state.
8350 (parse_number): Ajust code to use parser state.
8351 (yylex): Likewise.
8352 (java_parse): New function.
8353 (push_variable): Add "struct parser_state" argument. Adjust
8354 code to user parser state.
8355 (push_fieldnames, push_qualified_expression_name,
8356 push_expression_name, insert_exp): Likewise.
8357 * jv-lang.h: Forward declare "struct parser_state".
8358 (java_parse): Add "struct parser_state" argument.
8359 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8360 parser state.
8361 (yyparse): Redefine macro to m2_parse_internal.
8362 (pstate): New variable.
8363 (type_exp, exp, fblock, variable, type): Update calls to
8364 write_exp* and similars to use parser state.
8365 (yylex): Likewise.
8366 (m2_parse): New function.
8367 * m2-lang.h: Forward declare "struct parser_state".
8368 (m2_parse): Add "struct parser_state" argument.
8369 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8370 * objc-lang.h: Forward declare "struct parser_state".
8371 (end_msglist): Add "struct parser_state" argument.
8372 * p-exp.y (parse_type): Rewrite macro to use parser state.
8373 (yyparse): Redefine macro to pascal_parse_internal.
8374 (pstate): New variable.
8375 (parse_number): Add "struct parser_state" argument.
8376 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8377 write_exp* and similars in order to use parser state.
8378 (parse_number, yylex): Adjust code to use parser state.
8379 (pascal_parse): New function.
8380 * p-lang.h: Forward declare "struct parser_state".
8381 (pascal_parse): Add "struct parser_state" argument.
8382 * go-exp.y (parse_type): Rewrite macro to use parser state.
8383 (yyparse): Redefine macro to go_parse_internal.
8384 (pstate): New variable.
8385 (parse_number): Add "struct parser_state" argument.
8386 (type_exp, exp1, exp, variable, type): Update calls to
8387 write_exp* and similars in order to use parser state.
8388 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8389 to use parser state.
8390 (go_parse): Likewise.
8391 * go-lang.h: Forward declare "struct parser_state".
8392 (go_parse): Add "struct parser_state" argument.
8393
8394 2014-03-27 Doug Evans <dje@google.com>
8395
8396 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8397
8398 2014-03-27 Doug Evans <dje@google.com>
8399
8400 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8401 Remove argument abbrev_section. All callers updated.
8402
8403 2014-03-27 Doug Evans <dje@google.com>
8404
8405 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8406 addr_base, ranges_base.
8407
8408 2014-03-26 Keith Seitz <keiths@redhat.com>
8409
8410 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8411 types, not VAR_DOMAIN.
8412
8413 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8414
8415 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8416 "ra" registers.
8417 * features/nios2-linux.c: Regenerated.
8418 * features/nios2.c: Regenerated.
8419
8420 2014-03-25 Pedro Alves <palves@redhat.com>
8421
8422 * cli/cli-script.c (script_from_file): Force the interpreter to
8423 sync mode.
8424
8425 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8426
8427 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8428 small stack allocation.
8429
8430 2014-03-24 Tristan Gingold <gingold@adacore.com>
8431
8432 * darwin-nat.c (exc_server): Remove unused prototype.
8433 (darwin_dump_message): Correctly display data on x86_64.
8434 (darwin_encode_reply): Fix style.
8435 Add comments and fix indentation.
8436
8437 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8438
8439 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8440
8441 2014-03-22 Doug Evans <xdje42@gmail.com>
8442
8443 * infcmd.c: Whitespace fixes.
8444 (interrupt_command): Merge two function comments into one.
8445
8446 2014-03-22 Doug Evans <xdje42@gmail.com>
8447
8448 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8449 All uses updated.
8450
8451 2014-03-22 Yao Qi <yao@codesourcery.com>
8452
8453 * remote.c (target_read_live_memory): Remove.
8454 (memory_xfer_live_readonly_partial): Rename it to
8455 remote_xfer_live_readonly_partial. Remove argument 'object'.
8456 All callers updated. Call remote_read_bytes_1
8457 instead of target_read_live_memory.
8458 * tracepoint.c (set_traceframe_number): Remove.
8459 (make_cleanup_restore_traceframe_number): Likewise .
8460 * tracepoint.h (set_traceframe_number): Remove declaration.
8461 (make_cleanup_restore_traceframe_number): Likewise.
8462
8463 2014-03-22 Yao Qi <yao@codesourcery.com>
8464
8465 * remote.c (remote_read_bytes): Move code on reading from the
8466 remote stub to ...
8467 (remote_read_bytes_1): ... here. New function.
8468
8469 2014-03-22 Yao Qi <yao@codesourcery.com>
8470
8471 * ctf.c (ctf_xfer_partial): Check the return value of
8472 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8473 return TARGET_XFER_UNAVAILABLE.
8474 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8475 * target.c (target_read_live_memory): Move it to remote.c.
8476 (memory_xfer_live_readonly_partial): Likewise.
8477 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8478 * remote.c (target_read_live_memory): Moved from target.c.
8479 (memory_xfer_live_readonly_partial): Likewise.
8480 (remote_read_bytes): Factored out from
8481 memory_xfer_partial_1.
8482
8483 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8484
8485 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8486 NULL pointer.
8487
8488 2014-03-21 Pedro Alves <palves@redhat.com>
8489
8490 * infrun.c (normal_stop): Extend comment.
8491
8492 2014-03-21 Hui Zhu <hui@codesourcery.com>
8493 Pedro Alves <palves@redhat.com>
8494
8495 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8496 static buffer.
8497 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8498 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8499 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8500
8501 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8502
8503 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8504 `z' formatted output modifier.
8505
8506 2014-03-20 Tom Tromey <tromey@redhat.com>
8507 Sergio Durigan Junior <sergiodj@redhat.com>
8508
8509 * probe.c (parse_probes): Turn assert into an ordinary error.
8510 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8511 exceptions when parsing probes. Rearrange the code for clarity.
8512
8513 2014-03-20 Tom Tromey <tromey@redhat.com>
8514
8515 PR gdb/14135
8516 * top.c (execute_command): Only dispatch events if the command
8517 started the target.
8518
8519 2014-03-20 Tom Tromey <tromey@redhat.com>
8520
8521 PR cli/15718
8522 * infcall.c: Include event-top.h.
8523 (run_inferior_call): Call async_disable_stdin if needed.
8524
8525 2014-03-20 Pedro Alves <palves@redhat.com>
8526
8527 * infrun.c (prepare_to_proceed): Delete.
8528 (thread_still_needs_step_over): New function.
8529 (find_thread_needs_step_over): New function.
8530 (proceed): If the current thread needs a step-over, set its
8531 steping_over_breakpoint flag. Adjust to use
8532 find_thread_needs_step_over instead of prepare_to_proceed.
8533 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8534 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8535 breakpoint.
8536 (switch_back_to_stepped_thread): Step over breakpoints of all
8537 threads not the stepping thread, before switching back to the
8538 stepping thread.
8539
8540 2014-03-20 Pedro Alves <palves@redhat.com>
8541
8542 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8543 extern.
8544 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8545 * infrun.c (saved_singlestep_ptid)
8546 (stepping_past_singlestep_breakpoint): Delete.
8547 (resume): Remove stepping_past_singlestep_breakpoint handling.
8548 (proceed): Store the prev_pc of the stepping thread too.
8549 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8550 singlestep_pc.
8551 (enum infwait_states): Delete infwait_thread_hop_state.
8552 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8553 field.
8554 (handle_inferior_event): Adjust.
8555 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8556 handling and the thread-hop code. Before removing single-step
8557 breakpoints, check whether the thread hit a single-step breakpoint
8558 of another thread. If it did, the trap is not a random signal.
8559 (switch_back_to_stepped_thread): If the event thread hit a
8560 single-step breakpoint, unblock it before switching to the
8561 stepping thread. Handle the case of the stepped thread having
8562 advanced already.
8563 (keep_going): Handle the case of the current thread moving past a
8564 single-step breakpoint.
8565
8566 2014-03-20 Pedro Alves <palves@redhat.com>
8567
8568 PR breakpoints/7143
8569 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8570 are being stepped over.
8571 (breakpoint_address_match): Make extern.
8572 * breakpoint.h (breakpoint_address_match): New declaration.
8573 * inferior.h (stepping_past_instruction_at): New declaration.
8574 * infrun.c (struct step_over_info): New type.
8575 (step_over_info): New global.
8576 (set_step_over_info, clear_step_over_info)
8577 (stepping_past_instruction_at): New functions.
8578 (handle_inferior_event): Clear the step-over info when
8579 trap_expected is cleared.
8580 (resume): Remove now stale comment.
8581 (clear_proceed_status): Clear step-over info.
8582 (proceed): Adjust step-over handling to set or clear the step-over
8583 info instead of removing all breakpoints.
8584 (handle_signal_stop): When setting up a thread-hop, don't remove
8585 breakpoints here.
8586 (stop_stepping): Clear step-over info.
8587 (keep_going): Adjust step-over handling to set or clear step-over
8588 info and then always inserting breakpoints, instead of removing
8589 all breakpoints when stepping over one.
8590
8591 2014-03-20 Pedro Alves <palves@redhat.com>
8592
8593 * infrun.c (previous_inferior_ptid): Adjust comment.
8594 (deferred_step_ptid): Delete.
8595 (infrun_thread_ptid_changed, prepare_to_proceed)
8596 (init_wait_for_inferior): Adjust.
8597 (handle_signal_stop): Delete deferred_step_ptid handling.
8598
8599 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8600
8601 PR gdb/15358
8602 * defs.h (sync_quit_force_run): New declaration.
8603 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8604 * event-top.c (async_sigterm_handler): New declaration.
8605 (async_sigterm_token): New variable.
8606 (async_init_signals): Create also async_sigterm_token.
8607 (async_sigterm_handler): New function.
8608 (sync_quit_force_run): New variable.
8609 (handle_sigterm): Replace quit_force call by other calls.
8610 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8611
8612 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8613
8614 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8615 offset into SPE pseudo registers.
8616
8617 2014-03-18 Pedro Alves <palves@redhat.com>
8618
8619 PR gdb/13860
8620 * inferior.h (print_stop_event): Declare.
8621 * infrun.c (print_stop_event): New, factored out from ...
8622 (normal_stop): ... this.
8623 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8624 of bpstat_print/print_stack_frame.
8625
8626 2014-03-17 Tom Tromey <tromey@redhat.com>
8627
8628 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8629
8630 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8631
8632 * ada-lang.c (decode_constrained_packed_array): Perform a
8633 minimal coercion for reference with coerce_ref instead of
8634 ada_coerce_ref.
8635
8636 2014-03-17 Tristan Gingold <gingold@adacore.com>
8637
8638 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8639 (darwin_solib_create_inferior_hook): Emit a warning if version
8640 is unhandled.
8641
8642 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8643
8644 * python/py-value.c (get_field_flag): Cast flag_name argument to
8645 PyObject_GetAttrString to support Python 2.4.
8646
8647 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8648
8649 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8650 (Global Maintainers): Remove Jan Kratochvil.
8651
8652 2014-03-14 Pedro Alves <palves@redhat.com>
8653
8654 * inferior.h (terminal_ours_for_output): Rename to ...
8655 (child_terminal_ours_for_output): ... this.
8656 (terminal_save_ours): Rename to ...
8657 (child_terminal_save_ours): ... this.
8658 (terminal_ours): Rename to ...
8659 (child_terminal_ours): ... this.
8660 (terminal_inferior): Rename to ...
8661 (child_terminal_inferior): ... this.
8662 (terminal_init_inferior): Rename to ...
8663 (child_terminal_init_inferior): ... this.
8664 (terminal_init_inferior_with_pgrp): Rename to ...
8665 (child_terminal_init_inferior_with_pgrp): ... this.
8666 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8667 (child_terminal_init_with_pgrp): ... this.
8668 (terminal_save_ours): Rename to ...
8669 (child_terminal_save_ours): ... this.
8670 (terminal_init_inferior): Rename to ...
8671 (child_terminal_init): ... this. Adjust.
8672 (terminal_inferior): Rename to ...
8673 (child_terminal_inferior): ... this.
8674 (terminal_ours_for_output): Rename to ...
8675 (child_terminal_ours_for_output): ... this. Adjust.
8676 (terminal_ours): Rename to ...
8677 (child_terminal_ours): ... this.
8678 (terminal_ours_1): Rename to ...
8679 (child_terminal_ours_1): ... this. Adjust.
8680 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8681 * windows-nat.c (do_initial_windows_stuff): Adjust.
8682 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8683 (gnu_terminal_init): ... this. Adjust.
8684 (gnu_target): Adjust.
8685 * inf-child.c (inf_child_target): Adjust.
8686
8687 2014-03-13 Doug Evans <xdje42@gmail.com>
8688
8689 PR guile/16612
8690 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8691 new eq?-hashtab.
8692
8693 2014-03-13 Doug Evans <xdje42@gmail.com>
8694
8695 * value.c (record_latest_value): Call release_value_or_incref
8696 instead of release_value.
8697
8698 2014-03-13 Pedro Alves <palves@redhat.com>
8699
8700 * procfs.c (procfs_target): Don't override to_shortname,
8701 to_longname or to_doc.
8702
8703 2014-03-13 Pedro Alves <palves@redhat.com>
8704
8705 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8706 Unix in user visible strings.
8707
8708 2014-03-12 Stan Shebs <stan@codesourcery.com>
8709
8710 * gdbtypes.h: Annotate comments for Doxygen, add a page
8711 block comment with some general info.
8712
8713 2014-03-12 Pedro Alves <palves@redhat.com>
8714
8715 * infcmd.c (prepare_execution_command): New function, factored out
8716 from several execution commands.
8717 (run_command_1, continue_command, step_1, jump_command)
8718 (signal_command, until_command, advance_command, finish_command)
8719 (attach_command): Use prepare_execution_command.
8720
8721 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8722
8723 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8724 (MAX_BPTS): Define.
8725 (MAX_WPTS): Define.
8726 (struct arm_linux_thread_points): Removed.
8727 (struct arm_linux_process_info): New.
8728 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8729 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8730 (arm_linux_find_breakpoints_by_tid): Removed.
8731 (struct arch_lwp_info): New.
8732 (arm_linux_find_process_pid): New functions.
8733 (arm_linux_add_process): New functions.
8734 (arm_linux_process_info_get): New functions.
8735 (arm_linux_forget_process): New function.
8736 (arm_linux_get_debug_reg_state): New function.
8737 (struct update_registers_data): New.
8738 (update_registers_callback): New function.
8739 (arm_linux_insert_hw_breakpoint1): Updated.
8740 (arm_linux_remove_hw_breakpoint1): Updated.
8741 (arm_linux_insert_hw_breakpoint): Updated.
8742 (arm_linux_remove_hw_breakpoint): Updated.
8743 (arm_linux_insert_watchpoint): Updated.
8744 (arm_linux_remove_watchpoint): Updated.
8745 (arm_linux_new_thread): Updated.
8746 (arm_linux_prepare_to_resume): New function.
8747 (arm_linux_new_fork): New function.
8748 (_initialize_arm_linux_nat): Updated.
8749
8750 2014-03-12 Pedro Alves <palves@redhat.com>
8751
8752 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8753
8754 2014-03-12 Tom Tromey <tromey@redhat.com>
8755
8756 * inf-child.c (return_zero): New function.
8757 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8758 * aix-thread.c (aix_thread_inferior_created): New function.
8759 (aix_thread_attach): Remove.
8760 (init_aix_thread_ops): Don't set to_attach.
8761 (_initialize_aix_thread): Register inferior_created observer.
8762 * corelow.c (init_core_ops): Don't set to_attach or
8763 to_create_inferior.
8764 * exec.c (init_exec_ops): Don't set to_attach or
8765 to_create_inferior.
8766 * infcmd.c (run_command_1): Use find_run_target. Make direct
8767 target calls.
8768 (attach_command): Use find_attach_target. Make direct target
8769 calls.
8770 * record-btrace.c (init_record_btrace_ops): Don't set
8771 to_create_inferior.
8772 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8773 Remove.
8774 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8775 set to_create_inferior.
8776 * target.c (complete_target_initialization): Add assertion.
8777 (target_create_inferior): Remove.
8778 (find_default_attach, find_default_create_inferior): Remove.
8779 (find_attach_target, find_run_target): New functions.
8780 (find_default_is_async_p, find_default_can_async_p)
8781 (target_supports_non_stop, target_attach): Remove.
8782 (init_dummy_target): Don't set to_create_inferior or
8783 to_supports_non_stop.
8784 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8785 TARGET_DEFAULT_FUNC.
8786 <to_create_inferior>: Add comment.
8787 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8788 TARGET_DEFAULT_RETURN.
8789 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8790 (find_attach_target, find_run_target): Declare.
8791 (target_create_inferior): Remove.
8792 (target_has_execution_1): Update comment.
8793 (target_supports_non_stop): Remove.
8794 * target-delegates.c: Rebuild.
8795
8796 2014-03-12 Pedro Alves <palves@redhat.com>
8797
8798 * inf-child.h: Update comment to not mention Unix.
8799
8800 2014-03-12 Pedro Alves <palves@redhat.com>
8801
8802 * inf-child.c: Update top comment to not mention Unix. Add
8803 generic comment describing how this target is meant to be used.
8804 (inf_child_post_attach, inf_child_post_startup_inferior)
8805 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8806 Unix in comment.
8807
8808 2014-03-12 Pedro Alves <palves@redhat.com>
8809
8810 * nto-procfs.c: Include inf-child.h.
8811 (procfs_ops): Delete global.
8812 (procfs_can_run): Delete method.
8813 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8814 target pointer instead of referencing procfs_ops.
8815 (procfs_prepare_to_store): Delete.
8816 (init_procfs_ops): Delete function.
8817 (procfs_target): New function, based on init_procfs_ops, but
8818 inherit inf_child_target.
8819 (_initialize_procfs): Use procfs_target.
8820
8821 2014-03-12 Pedro Alves <palves@redhat.com>
8822
8823 * windows-nat.c: Include inf-child.h.
8824 (windows_ops): Delete global.
8825 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8826 methods.
8827 (init_windows_ops): Delete function.
8828 (windows_target): New function, based on init_windows_ops, but
8829 inherit inf_child_target.
8830 (_initialize_windows_nat): Use windows_target. Install x86
8831 specific target methods here.
8832
8833 2014-03-10 Doug Evans <xdje42@gmail.com>
8834
8835 * guile/guile.c (call_initialize_gdb_module): New function.
8836 (initialize_guile): Replace call to scm_init_guile with call to
8837 scm_with_guile.
8838
8839 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8840
8841 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8842 in call to TYPE_CODE macro.
8843
8844 2014-03-10 Jerome Guitton <guitton@adacore.com>
8845
8846 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8847 Resolve tagged types to full view.
8848
8849 2014-03-10 Hui Zhu <hui@codesourcery.com>
8850
8851 * target.h (target_insert_breakpoint): Remove "hardware" from its
8852 comments.
8853
8854 2014-03-07 Doug Evans <dje@google.com>
8855
8856 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8857
8858 2014-03-07 Doug Evans <dje@google.com>
8859
8860 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8861 Remove unused local comp_dir_attr. Assert exactly one of
8862 stub_comp_unit_die, stub_comp_dir is non-NULL.
8863
8864 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8865
8866 * target.h (complete_target_initialization, add_target):
8867 Add comment.
8868
8869 2014-03-07 Pedro Alves <palves@redhat.com>
8870
8871 * go32-nat.c: Include inf-child.h.
8872 (go32_ops): Delete global.
8873 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8874 Delete methods.
8875 (go32_create_inferior): Push the passed in target pointer instead
8876 of referencing go32_ops.
8877 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8878 (go32_target): New function, based on init_go32_ops, but inherit
8879 inf_child_target.
8880 (_initialize_go32_nat): Use go32_target. Move parts of
8881 init_go32_ops here.
8882
8883 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8884
8885 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8886 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8887 SYMBOL_VALUE_ADDRESS.
8888 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8889
8890 2014-03-06 Yao Qi <yao@codesourcery.com>
8891
8892 * breakpoint.c (get_tracepoint_by_number): Remove argument
8893 optional_p. All callers updated. Adjust comments. Update
8894 output message.
8895 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8896
8897 2014-03-06 Yao Qi <yao@codesourcery.com>
8898
8899 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8900 early if get_number returns zero. Use 'p' instead of 'args'.
8901
8902 2014-03-06 Yao Qi <yao@codesourcery.com>
8903
8904 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8905 message.
8906
8907 2014-03-06 Yao Qi <yao@codesourcery.com>
8908
8909 PR breakpoints/16508
8910 * tracepoint.c (check_trace_running): New function.
8911 (trace_find_command): Move code to check_trace_running and
8912 call check_trace_running.
8913 (trace_find_pc_command): Likewise.
8914 (trace_find_tracepoint_command): Likewise.
8915 (trace_find_line_command): Likewise.
8916 (trace_find_range_command): Likewise.
8917 * tracepoint.h (check_trace_running): Likewise.
8918 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8919
8920 2014-03-06 Yao Qi <yao@codesourcery.com>
8921
8922 * target.h (struct target_ops) <to_traceframe_info>: Use
8923 TARGET_DEFAULT_NORETURN (tcomplain ()).
8924 * target-delegates.c: Regenerated.
8925
8926 2014-03-05 Pedro Alves <palves@redhat.com>
8927
8928 PR gdb/16575
8929 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8930 void. Update comment.
8931 (dcache_xfer_memory): Delete.
8932 (dcache_read_memory_partial): New, based on the read bits of
8933 dcache_xfer_memory.
8934 (dcache_update): Add status parameter. Use ULONGEST for len, and
8935 adjust. Discard cache lines if the reason for the update was
8936 error.
8937 * dcache.h (dcache_xfer_memory): Delete declaration.
8938 (dcache_read_memory_partial): New declaration.
8939 (dcache_update): Update prototype.
8940 * target.c (raw_memory_xfer_partial): Update the dcache here.
8941 (memory_xfer_partial_1): Don't handle dcache writes here.
8942
8943 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8944
8945 * remote-sim.c (gdbsim_load): Add const to prog.
8946
8947 2014-03-03 Tom Tromey <tromey@redhat.com>
8948
8949 * elfread.c (probe_key): Change to bfd_data.
8950 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8951 now per-BFD, not per-objfile.
8952 * stap-probe.c (stap_probe_destroy): Update comment.
8953 (handle_stap_probe): Allocate on the per-BFD obstack.
8954
8955 2014-03-03 Tom Tromey <tromey@redhat.com>
8956
8957 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8958 * breakpoint.c (create_longjmp_master_breakpoint): Use
8959 get_probe_address.
8960 (add_location_to_breakpoint, bkpt_probe_insert_location)
8961 (bkpt_probe_remove_location): Update.
8962 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8963 * elfread.c (elf_symfile_relocate_probe): Remove.
8964 (elf_probe_fns): Update.
8965 (insert_exception_resume_breakpoint): Change type of "probe"
8966 parameter to bound_probe.
8967 (check_exception_resume): Update.
8968 * objfiles.c (objfile_relocate1): Don't relocate probes.
8969 * probe.c (bound_probe_s): New typedef.
8970 (parse_probes): Use get_probe_address. Set sal's objfile.
8971 (find_probe_by_pc): Return a bound_probe.
8972 (collect_probes): Return a VEC(bound_probe_s).
8973 (compare_probes): Update.
8974 (gen_ui_out_table_header_info): Change type of "probes"
8975 parameter. Update.
8976 (info_probes_for_ops): Update.
8977 (get_probe_address): New function.
8978 (probe_safe_evaluate_at_pc): Update.
8979 * probe.h (struct probe_ops) <get_probe_address>: New field.
8980 <set_semaphore, clear_semaphore>: Add objfile parameter.
8981 (struct probe) <objfile>: Remove field.
8982 <arch>: New field.
8983 <address>: Update comment.
8984 (struct bound_probe): New.
8985 (find_probe_by_pc): Return a bound_probe.
8986 (get_probe_address): Declare.
8987 * solib-svr4.c (struct probe_and_action) <address>: New field.
8988 (hash_probe_and_action, equal_probe_and_action): Update.
8989 (register_solib_event_probe): Add address parameter.
8990 (solib_event_probe_at): Update.
8991 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8992 get_probe_address.
8993 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8994 (stap_get_probe_address): New function.
8995 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8996 (compile_probe_arg): Update.
8997 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8998 address.
8999 (handle_stap_probe): Don't relocate the probe.
9000 (stap_relocate): Remove.
9001 (stap_gen_info_probes_table_values): Update.
9002 (stap_probe_ops): Remove stap_relocate.
9003 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9004 (debug_sym_probe_fns): Update.
9005 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9006 * symtab.c (init_sal): Use memset.
9007 * symtab.h (struct symtab_and_line) <objfile>: New field.
9008 * tracepoint.c (start_tracing, stop_tracing): Update.
9009
9010 2014-03-03 Tom Tromey <tromey@redhat.com>
9011
9012 * probe.h (parse_probes, find_probe_by_pc)
9013 (find_probes_in_objfile): Fix comments.
9014
9015 2014-03-02 Doug Evans <xdje42@gmail.com>
9016
9017 * infrun.c (handle_signal_stop): Replace test for
9018 TARGET_WAITKIND_STOPPED with an assert.
9019
9020 2014-03-02 Doug Evans <xdje42@gmail.com>
9021
9022 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9023
9024 2014-03-02 Doug Evans <xdje42@gmail.com>
9025
9026 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9027
9028 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9029
9030 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9031
9032 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9033
9034 * i386obsd-nat.c: Include "obsd-nat.h".
9035 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9036 add_target.
9037 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9038
9039 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9040
9041 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9042
9043 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9044
9045 * mips64obsd-nat.c: Include "obsd-nath".
9046 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9047 add_target
9048 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9049
9050 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9051
9052 * amd64obsd-nat.c: Include "obsd-nat,h.
9053 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9054 add_target.
9055 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9056
9057 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9058
9059 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9060 (find_overload_match): Update call to find_oload_champ.
9061 (find_oload_champ_namespace_loop): Likewise
9062
9063 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9064
9065 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9066
9067 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9068 * config/sparc/obsd64.mh: New file.
9069 * sparc64obsd-nat.c: New file.
9070
9071 * obsd-nat.h: New file.
9072 * obsd-nat.c: New file.
9073 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9074 (ALLDEPFILES): Add obsd-nat.c.
9075
9076 2014-02-28 Tom Tromey <tromey@redhat.com>
9077
9078 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9079 * cli-out.h (cli_ui_out_impl): Now const.
9080 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9081 * ui-out.c (struct ui_out) <impl>: Now const.
9082 (default_ui_out_impl): Now const.
9083 (ui_out_new): Make 'impl' parameter const.
9084 * ui-out.h (ui_out_new): Update.
9085
9086 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9087
9088 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9089
9090 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9091
9092 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9093
9094 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9095
9096 Additional PR 8882 fix.
9097 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9098
9099 2014-02-27 Pedro Alves <palves@redhat.com>
9100
9101 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9102 isn't set.
9103
9104 2014-02-27 Pedro Alves <palves@redhat.com>
9105
9106 PR 12702
9107 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9108 * nat/linux-waitpid.c: Include string.h.
9109 (status_to_str): Moved here and made extern.
9110 * nat/linux-waitpid.h (status_to_str): New declaration.
9111
9112 2014-02-27 Hui Zhu <hui@codesourcery.com>
9113
9114 PR 12702
9115 * infrun.c (ptid_match): Move ...
9116 * common/ptid.c (ptid_match): ... here.
9117 * inferior.h (ptid_match): Move ...
9118 * common/ptid.h (ptid_match): ... here.
9119
9120 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9121
9122 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9123 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9124 gdb_target_obs.
9125
9126 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9127
9128 * obsd-tdep.c (obsd_auxv_parse): New function.
9129 (obsd_init_abi): Set auxv_parse.
9130
9131 * gdbarch.sh (auxv_parse): New.
9132 * gdbarch.h: Regenerated.
9133 * gdbarch.c: Regenerated.
9134 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9135
9136 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9137
9138 * guile/scm-value.c (gdbscm_history_append_x): New function.
9139 (value_functions): Add it.
9140
9141 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9142
9143 * dwarf2read.c (attr_value_as_address): New function.
9144 (dwarf2_find_base_address, read_call_site_scope): Use
9145 attr_value_as_address in place of DW_ADDR.
9146 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9147 the low and high addresses. Slight rework of the handling
9148 of the high pc being a constant form, and limit it to
9149 DWARF verson 4 or higher.
9150 (dwarf2_record_block_ranges): Likewise.
9151 (read_partial_die): Likewise.
9152 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9153
9154 2014-02-26 Tom Tromey <tromey@redhat.com>
9155
9156 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9157
9158 2014-02-26 Tom Tromey <tromey@redhat.com>
9159
9160 * elfread.c (elf_read_minimal_symbols): Return early if
9161 minimal symbols have already been read. Add "ei" parameter.
9162 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9163 * minsyms.c (prim_record_minimal_symbol_full): Update.
9164 * objfiles.h (struct objstats) <n_minsyms>: Move...
9165 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9166 * symmisc.c (print_objfile_statistics): Update.
9167
9168 2014-02-26 Tom Tromey <tromey@redhat.com>
9169
9170 * elfread.c (elf_read_minimal_symbols): New function, from
9171 elf_symfile_read.
9172 (elf_symfile_read): Call it.
9173
9174 2014-02-26 Tom Tromey <tromey@redhat.com>
9175
9176 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9177 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9178 (lookup_minimal_symbol_solib_trampoline)
9179 (lookup_minimal_symbol_by_pc_section_1)
9180 (lookup_minimal_symbol_and_objfile): Update.
9181 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9182 Don't allocate a minimal symbol if minsyms have already been read.
9183 (build_minimal_symbol_hash_tables): Update.
9184 (install_minimal_symbols): Do nothing if minsyms already read.
9185 Use the per-BFD obstack.
9186 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9187 * objfiles.c (allocate_objfile): Call
9188 terminate_minimal_symbol_table later.
9189 (have_minimal_symbols): Update.
9190 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9191 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9192 Move from struct objfile.
9193 <minsyms_read>: New field.
9194 (struct objfile) <msymbols, minimal_symbol_count,
9195 msymbol_hash, msymbol_demangled_hash>: Move.
9196 (ALL_OBJFILE_MSYMBOLS): Update.
9197 * symfile.c (read_symbols): Set minsyms_read.
9198 (reread_symbols): Update.
9199 * symmisc.c (dump_objfile, dump_msymbols): Update.
9200
9201 2014-02-26 Tom Tromey <tromey@redhat.com>
9202
9203 * minsyms.c (msymbols_sort): Remove.
9204 * minsyms.h (msymbols_sort): Remove.
9205 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9206 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9207 * elfread.c (elf_symtab_read): Don't add section offsets.
9208 * xcoffread.c (record_minimal_symbol): Don't add section offset
9209 to minimal symbol address.
9210 * somread.c (text_offset, data_offset): Remove.
9211 (som_symtab_read): Don't add section offsets to minimal symbol
9212 addresses.
9213 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9214 Don't add section offsets to minimal symbols.
9215 * coffread.c (coff_symtab_read): Don't add section offsets
9216 to minimal symbol addresses.
9217 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9218 to minimal symbol addresses.
9219 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9220 section offset to minimal symbol addresses.
9221 * mdebugread.c (parse_partial_symbols): Don't add section
9222 offset to minimal symbol addresses.
9223 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9224 offset to minimal symbol addresses.
9225
9226 2014-02-26 Tom Tromey <tromey@redhat.com>
9227
9228 * ada-lang.c (ada_main_name): Update.
9229 (ada_add_standard_exceptions): Update.
9230 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9231 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9232 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9233 * auxv.c (ld_so_xfer_auxv): Update.
9234 * avr-tdep.c (avr_scan_prologue): Update.
9235 * ax-gdb.c (gen_var_ref): Update.
9236 * blockframe.c (get_pc_function_start)
9237 (find_pc_partial_function_gnu_ifunc): Update.
9238 * breakpoint.c (create_overlay_event_breakpoint)
9239 (create_longjmp_master_breakpoint)
9240 (create_std_terminate_master_breakpoint)
9241 (create_exception_master_breakpoint): Update.
9242 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9243 * c-valprint.c (c_val_print): Update.
9244 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9245 * common/agent.c (agent_look_up_symbols): Update.
9246 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9247 * dwarf2loc.c (call_site_to_target_addr): Update.
9248 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9249 * elfread.c (elf_gnu_ifunc_record_cache)
9250 (elf_gnu_ifunc_resolve_by_got): Update.
9251 * findvar.c (default_read_var_value): Update.
9252 * frame.c (inside_main_func): Update.
9253 * frv-tdep.c (frv_frame_this_id): Update.
9254 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9255 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9256 Update.
9257 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9258 (hppa_hpux_find_dummy_bpaddr): Update.
9259 * hppa-tdep.c (hppa_symbol_address): Update.
9260 * infcmd.c (until_next_command): Update.
9261 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9262 Update.
9263 * linespec.c (minsym_found, add_minsym): Update.
9264 * linux-nat.c (get_signo): Update.
9265 * linux-thread-db.c (inferior_has_bug): Update.
9266 * m32c-tdep.c (m32c_return_value)
9267 (m32c_m16c_address_to_pointer): Update.
9268 * m32r-tdep.c (m32r_frame_this_id): Update.
9269 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9270 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9271 * maint.c (maintenance_translate_address): Update.
9272 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9273 (frob_address): New function.
9274 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9275 frob_address. Rename parameter to "pc_in".
9276 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9277 addresses.
9278 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9279 Update.
9280 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9281 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9282 * objc-lang.c (find_objc_msgsend): Update.
9283 * objfiles.c (objfile_relocate1): Update.
9284 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9285 * p-valprint.c (pascal_val_print): Update.
9286 * parse.c (write_exp_msymbol): Update.
9287 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9288 (ppc_elfv2_skip_entrypoint): Update.
9289 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9290 * printcmd.c (build_address_symbolic, msym_info)
9291 (address_info): Update.
9292 * proc-service.c (ps_pglobal_lookup): Update.
9293 * psymtab.c (find_pc_sect_psymtab_closer)
9294 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9295 Change msymbol parameter to bound_minimal_symbol.
9296 * ravenscar-thread.c (get_running_thread_id): Update.
9297 * remote.c (remote_check_symbols): Update.
9298 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9299 address.
9300 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9301 * solib-dsbt.c (lm_base): Update.
9302 * solib-frv.c (lm_base, main_got): Update.
9303 * solib-irix.c (locate_base): Update.
9304 * solib-som.c (som_solib_create_inferior_hook)
9305 (link_map_start): Update.
9306 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9307 * solib-svr4.c (elf_locate_base, enable_break): Update.
9308 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9309 (flush_ea_cache): Update.
9310 * stabsread.c (define_symbol, scan_file_globals): Update.
9311 * stack.c (find_frame_funname): Update.
9312 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9313 (debug_qf_find_pc_sect_symtab): Update.
9314 * symfile.c (simple_read_overlay_table)
9315 (simple_overlay_update): Update.
9316 * symfile.h (struct quick_symbol_functions)
9317 <find_pc_sect_symtab>: Change type of msymbol to
9318 bound_minimal_symbol.
9319 * symmisc.c (dump_msymbols): Update.
9320 * symtab.c (find_pc_sect_symtab_via_partial)
9321 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9322 (search_symbols, print_msymbol_info): Update.
9323 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9324 (MSYMBOL_VALUE_ADDRESS): Redefine.
9325 (BMSYMBOL_VALUE_ADDRESS): New macro.
9326 * tracepoint.c (scope_info): Update.
9327 * tui/tui-disasm.c (tui_find_disassembly_address)
9328 (tui_get_begin_asm_address): Update.
9329 * valops.c (find_function_in_inferior): Update.
9330 * value.c (value_static_field, value_fn_field): Update.
9331
9332 2014-02-26 Tom Tromey <tromey@redhat.com>
9333
9334 * ada-lang.c (ada_update_initial_language): Update.
9335 (ada_main_name, ada_has_this_exception_support): Update.
9336 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9337 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9338 * arm-tdep.c (arm_skip_stub): Update.
9339 * auxv.c (ld_so_xfer_auxv): Update.
9340 * avr-tdep.c (avr_scan_prologue): Update.
9341 * ax-gdb.c (gen_var_ref): Update.
9342 * breakpoint.c (struct breakpoint_objfile_data)
9343 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9344 type to bound_minimal_symbol.
9345 (create_overlay_event_breakpoint)
9346 (create_longjmp_master_breakpoint)
9347 (create_std_terminate_master_breakpoint)
9348 (create_exception_master_breakpoint): Update.
9349 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9350 * c-exp.y (classify_name): Update.
9351 * coffread.c (coff_symfile_read): Update.
9352 * common/agent.c (agent_look_up_symbols): Update.
9353 * d-lang.c (d_main_name): Update.
9354 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9355 * dec-thread.c (enable_dec_thread): Update.
9356 * dwarf2loc.c (call_site_to_target_addr): Update.
9357 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9358 * eval.c (evaluate_subexp_standard): Update.
9359 * findvar.c (struct minsym_lookup_data) <result>: Change type
9360 to bound_minimal_symbol.
9361 <objfile>: Remove.
9362 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9363 * frame.c (inside_main_func): Update.
9364 * frv-tdep.c (frv_frame_this_id): Update.
9365 * gcore.c (call_target_sbrk): Update.
9366 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9367 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9368 Update.
9369 * go-lang.c (go_main_name): Update.
9370 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9371 (hppa_hpux_find_import_stub_for_addr): Update.
9372 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9373 Update. Change return type.
9374 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9375 type.
9376 * jit.c (jit_breakpoint_re_set_internal): Update.
9377 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9378 Update.
9379 * linux-nat.c (get_signo): Update.
9380 * linux-thread-db.c (inferior_has_bug): Update
9381 * m32c-tdep.c (m32c_return_value)
9382 (m32c_m16c_address_to_pointer): Update.
9383 * m32r-tdep.c (m32r_frame_this_id): Update.
9384 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9385 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9386 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9387 lookup_minimal_symbol. Change return type.
9388 (lookup_minimal_symbol): Remove.
9389 (lookup_bound_minimal_symbol): Update.
9390 (lookup_minimal_symbol_text): Change return type.
9391 (lookup_minimal_symbol_solib_trampoline): Change return type.
9392 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9393 (lookup_minimal_symbol_solib_trampoline): Change return type.
9394 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9395 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9396 (value_nsstring, find_imps): Update.
9397 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9398 * p-lang.c (pascal_main_name): Update.
9399 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9400 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9401 * proc-service.c (ps_pglobal_lookup): Update.
9402 * ravenscar-thread.c (get_running_thread_msymbol): Change
9403 return type.
9404 (has_ravenscar_runtime, get_running_thread_id): Update.
9405 * remote.c (remote_check_symbols): Update.
9406 * sol-thread.c (ps_pglobal_lookup): Update.
9407 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9408 * solib-dsbt.c (lm_base): Update.
9409 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9410 Update.
9411 * solib-irix.c (locate_base): Update.
9412 * solib-som.c (som_solib_create_inferior_hook)
9413 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9414 Update.
9415 * solib-spu.c (spu_enable_break): Update.
9416 * solib-svr4.c (elf_locate_base, enable_break): Update.
9417 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9418 (flush_ea_cache): Update.
9419 * stabsread.c (define_symbol): Update.
9420 * symfile.c (simple_read_overlay_table): Update.
9421 * symtab.c (find_pc_sect_line): Update.
9422 * tracepoint.c (scope_info): Update.
9423 * tui-disasm.c (tui_get_begin_asm_address): Update.
9424 * value.c (value_static_field): Update.
9425
9426 2014-02-26 Tom Tromey <tromey@redhat.com>
9427
9428 * minsyms.c (prim_record_minimal_symbol_full): Use
9429 SET_MSYMBOL_VALUE_ADDRESS.
9430 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9431 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9432 SET_MSYMBOL_VALUE_ADDRESS.
9433 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9434 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9435
9436 2014-02-26 Tom Tromey <tromey@redhat.com>
9437
9438 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9439 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9440 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9441 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9442 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9443 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9444 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9445 * ada-lang.c (ada_main_name): Update.
9446 (ada_lookup_simple_minsym): Update.
9447 (ada_make_symbol_completion_list): Update.
9448 (ada_add_standard_exceptions): Update.
9449 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9450 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9451 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9452 * arm-tdep.c (skip_prologue_function): Update.
9453 (arm_skip_stack_protector, arm_skip_stub): Update.
9454 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9455 (arm_wince_skip_main_prologue): Update.
9456 * auxv.c (ld_so_xfer_auxv): Update.
9457 * avr-tdep.c (avr_scan_prologue): Update.
9458 * ax-gdb.c (gen_var_ref): Update.
9459 * block.c (call_site_for_pc): Update.
9460 * blockframe.c (get_pc_function_start): Update.
9461 (find_pc_partial_function_gnu_ifunc): Update.
9462 * breakpoint.c (create_overlay_event_breakpoint): Update.
9463 (create_longjmp_master_breakpoint): Update.
9464 (create_std_terminate_master_breakpoint): Update.
9465 (create_exception_master_breakpoint): Update.
9466 (resolve_sal_pc): Update.
9467 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9468 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9469 Update.
9470 * c-valprint.c (c_val_print): Update.
9471 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9472 * coffread.c (coff_symfile_read): Update.
9473 * common/agent.c (agent_look_up_symbols): Update.
9474 * dbxread.c (find_stab_function_addr): Update.
9475 (end_psymtab): Update.
9476 * dwarf2loc.c (call_site_to_target_addr): Update.
9477 (func_verify_no_selftailcall): Update.
9478 (tailcall_dump): Update.
9479 (call_site_find_chain_1): Update.
9480 (dwarf_expr_reg_to_entry_parameter): Update.
9481 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9482 (elf_gnu_ifunc_resolve_by_got): Update.
9483 * f-valprint.c (info_common_command): Update.
9484 * findvar.c (read_var_value): Update.
9485 * frame.c (get_prev_frame_1): Update.
9486 (inside_main_func): Update.
9487 * frv-tdep.c (frv_skip_main_prologue): Update.
9488 (frv_frame_this_id): Update.
9489 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9490 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9491 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9492 (gnuv3_skip_trampoline): Update.
9493 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9494 (hppa64_hpux_in_solib_call_trampoline): Update.
9495 (hppa_hpux_skip_trampoline_code): Update.
9496 (hppa64_hpux_search_dummy_call_sequence): Update.
9497 (hppa_hpux_find_import_stub_for_addr): Update.
9498 (hppa_hpux_find_dummy_bpaddr): Update.
9499 * hppa-tdep.c (hppa_symbol_address)
9500 (hppa_lookup_stub_minimal_symbol): Update.
9501 * i386-tdep.c (i386_skip_main_prologue): Update.
9502 (i386_pe_skip_trampoline_code): Update.
9503 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9504 * infcall.c (get_function_name): Update.
9505 * infcmd.c (until_next_command): Update.
9506 * jit.c (jit_breakpoint_re_set_internal): Update.
9507 (jit_inferior_init): Update.
9508 * linespec.c (minsym_found): Update.
9509 (add_minsym): Update.
9510 * linux-fork.c (info_checkpoints_command): Update.
9511 * linux-nat.c (get_signo): Update.
9512 * linux-thread-db.c (inferior_has_bug): Update.
9513 * m32c-tdep.c (m32c_return_value): Update.
9514 (m32c_m16c_address_to_pointer): Update.
9515 (m32c_m16c_pointer_to_address): Update.
9516 * m32r-tdep.c (m32r_frame_this_id): Update.
9517 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9518 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9519 * maint.c (maintenance_translate_address): Update.
9520 * minsyms.c (add_minsym_to_hash_table): Update.
9521 (add_minsym_to_demangled_hash_table): Update.
9522 (msymbol_objfile): Update.
9523 (lookup_minimal_symbol): Update.
9524 (iterate_over_minimal_symbols): Update.
9525 (lookup_minimal_symbol_text): Update.
9526 (lookup_minimal_symbol_by_pc_name): Update.
9527 (lookup_minimal_symbol_solib_trampoline): Update.
9528 (lookup_minimal_symbol_by_pc_section_1): Update.
9529 (lookup_minimal_symbol_and_objfile): Update.
9530 (prim_record_minimal_symbol_full): Update.
9531 (compare_minimal_symbols): Update.
9532 (compact_minimal_symbols): Update.
9533 (build_minimal_symbol_hash_tables): Update.
9534 (install_minimal_symbols): Update.
9535 (terminate_minimal_symbol_table): Update.
9536 (find_solib_trampoline_target): Update.
9537 (minimal_symbol_upper_bound): Update.
9538 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9539 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9540 (mips_skip_pic_trampoline_code): Update.
9541 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9542 * objc-lang.c (selectors_info): Update.
9543 (classes_info): Update.
9544 (find_methods): Update.
9545 (find_imps): Update.
9546 (find_objc_msgsend): Update.
9547 * objfiles.c (objfile_relocate1): Update.
9548 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9549 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9550 * p-valprint.c (pascal_val_print): Update.
9551 * parse.c (write_exp_msymbol): Update.
9552 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9553 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9554 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9555 * printcmd.c (build_address_symbolic): Update.
9556 (sym_info): Update.
9557 (address_info): Update.
9558 * proc-service.c (ps_pglobal_lookup): Update.
9559 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9560 (find_pc_sect_psymtab): Update.
9561 * python/py-framefilter.c (py_print_frame): Update.
9562 * ravenscar-thread.c (get_running_thread_id): Update.
9563 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9564 Update.
9565 * remote.c (remote_check_symbols): Update.
9566 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9567 (rs6000_skip_trampoline_code): Update.
9568 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9569 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9570 * solib-dsbt.c (lm_base): Update.
9571 * solib-frv.c (lm_base): Update.
9572 (main_got): Update.
9573 * solib-irix.c (locate_base): Update.
9574 * solib-som.c (som_solib_create_inferior_hook): Update.
9575 (som_solib_desire_dynamic_linker_symbols): Update.
9576 (link_map_start): Update.
9577 * solib-spu.c (spu_enable_break): Update.
9578 (ocl_enable_break): Update.
9579 * solib-svr4.c (elf_locate_base): Update.
9580 (enable_break): Update.
9581 * spu-tdep.c (spu_get_overlay_table): Update.
9582 (spu_catch_start): Update.
9583 (flush_ea_cache): Update.
9584 * stabsread.c (define_symbol): Update.
9585 (scan_file_globals): Update.
9586 * stack.c (find_frame_funname): Update.
9587 (frame_info): Update.
9588 * symfile.c (simple_read_overlay_table): Update.
9589 (simple_overlay_update): Update.
9590 * symmisc.c (dump_msymbols): Update.
9591 * symtab.c (fixup_section): Update.
9592 (find_pc_sect_line): Update.
9593 (skip_prologue_sal): Update.
9594 (search_symbols): Update.
9595 (print_msymbol_info): Update.
9596 (rbreak_command): Update.
9597 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9598 (completion_list_objc_symbol): Update.
9599 (default_make_symbol_completion_list_break_on): Update.
9600 * tracepoint.c (scope_info): Update.
9601 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9602 (tui_get_begin_asm_address): Update.
9603 * valops.c (find_function_in_inferior): Update.
9604 * value.c (value_static_field): Update.
9605 (value_fn_field): Update.
9606
9607 2014-02-26 Tom Tromey <tromey@redhat.com>
9608
9609 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9610 bound minimal symbols. Move code that knows about minsym
9611 table layout...
9612 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9613 function.
9614 * minsyms.h (minimal_symbol_upper_bound): Declare.
9615 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9616 minimal_symbol_upper_bound.
9617
9618 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9619
9620 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9621 Use the type's name if its basic type does not have a tag.
9622
9623 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9624
9625 * dwarf2read.c (read_subrange_type): Add comment.
9626
9627 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9628
9629 * dwarf2read.c (update_enumeration_type_from_children): New
9630 function, mostly extracted from process_structure_scope.
9631 (read_enumeration_type): Call update_enumeration_type_from_children.
9632 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9633 and flag_flag_enum fields.
9634
9635 2014-02-26 Pedro Alves <palves@redhat.com>
9636
9637 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9638 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9639 to_xfer_partial method.
9640
9641 2014-02-26 Pedro Alves <palves@redhat.com>
9642
9643 * target.c (complete_target_initialization): Don't install
9644 default_xfer_partial as to_xfer_partial hook.
9645 (nomemory): Delete.
9646 (update_current_target): Don't INHERIT nor de_fault
9647 deprecated_xfer_memory. Delete de_fault macro.
9648 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9649 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9650 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9651 field.
9652
9653 2014-02-26 Pedro Alves <palves@redhat.com>
9654
9655 * go32-nat.c (my_write_child): New function.
9656 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9657 (go32_xfer_partial): New function.
9658 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9659 Instead install a to_xfer_partial hook.
9660
9661 2014-02-26 Pedro Alves <palves@redhat.com>
9662
9663 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9664 to_xfer_partial helper. Rewrite.
9665 (procfs_xfer_partial): New function.
9666 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9667 Install a to_xfer_partial hook.
9668
9669 2014-02-26 Pedro Alves <palves@redhat.com>
9670
9671 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9672 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9673 (m32r_xfer_partial): New function.
9674 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9675 Install a to_xfer_partial hook.
9676
9677 2014-02-26 Pedro Alves <palves@redhat.com>
9678
9679 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9680 helper.
9681 (mips_xfer_partial): New function.
9682 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9683 hook. Install a to_xfer_partial hook.
9684
9685 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9686
9687 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9688 * gdbtypes.c (create_array_type_with_stride): New function,
9689 renaming create_array_type, but with an added parameter
9690 called "bit_stride".
9691 (create_array_type): Re-implement using
9692 create_array_type_with_stride.
9693 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9694 and DW_AT_bit_stride attributes.
9695
9696 2014-02-26 Pedro Alves <palves@redhat.com>
9697
9698 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9699 task-specific breakpoints.
9700
9701 2014-02-25 Pedro Alves <palves@redhat.com>
9702
9703 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9704 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9705
9706 2014-02-25 Stan Shebs <stan@codesourcery.com>
9707
9708 * defs.h: Annotate comments for Doxygen.
9709
9710 2014-02-25 Tom Tromey <tromey@redhat.com>
9711
9712 * target.h (target_ignore): Don't declare.
9713 * target.c (target_ignore): Remove.
9714
9715 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9716
9717 PR gdb/16626
9718 * auto-load.c (auto_load_objfile_script_1): Change filename to
9719 debugfile.
9720
9721 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9722
9723 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9724 documentation. Adjust prototype to match the target_ops
9725 to_xfer_partial method. Adjust implementation accordingly.
9726
9727 2014-02-25 Hui Zhu <hui@codesourcery.com>
9728
9729 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9730 to_traceframe_info.
9731
9732 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9733
9734 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9735 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9736 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9737 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9738 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9739 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9740 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9741 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9742 New constants.
9743 (rl78_register_type): Use a data pointer type for SP and
9744 new pseudo registers mentioned above. Use a 16 bit integer
9745 type for all other register pairs.
9746 (rl78_register_name, rl78_g10_register_name): Update for
9747 new pseudo registers.
9748 (rl78_pseudo_register_read): Likewise.
9749 (rl78_pseudo_register_write): Likewise.
9750 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9751 to the newly added pseudo registers.
9752
9753 2014-02-24 Doug Evans <dje@google.com>
9754
9755 * value.c (record_latest_value): Fix comment.
9756 * printcmd.c (print_command_1): Remove code to handle -1 return from
9757 record_latest_value.
9758
9759 2014-02-24 Pedro Alves <palves@redhat.com>
9760
9761 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9762 deprecated_xfer_memory hook.
9763 (procfs_xfer_partial): Call procfs_xfer_memory instead
9764 of the deprecated_xfer_memory target hook.
9765 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9766 helper.
9767
9768 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9769
9770 * windows-nat.c (windows_xfer_shared_libraries): Return
9771 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9772 requested object is TARGET_OBJECT_LIBRARIES.
9773
9774 2014-02-24 Yao Qi <yao@codesourcery.com>
9775
9776 * target.h (enum target_xfer_status)
9777 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9778 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9779 explicitly. New.
9780 * corefile.c (memory_error_message): User updated.
9781 * exec.c (section_table_read_available_memory): Likewise.
9782 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9783 * target.c (target_xfer_status_to_string): Likewise.
9784 (raw_memory_xfer_partial): Likewise.
9785 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9786 * valops.c (read_value_memory): Likewise.
9787 * exec.h: Update comments.
9788
9789 2014-02-24 Yao Qi <yao@codesourcery.com>
9790
9791 * target.c (target_xfer_status_to_string): Rename argument err
9792 to status.
9793 * target.h (target_xfer_status_to_string): Update declaration.
9794 Replace target_xfer_error_to_string with
9795 target_xfer_status_to_string in comment.
9796
9797 2014-02-24 Yao Qi <yao@codesourcery.com>
9798
9799 * mips-linux-nat.c (super_close): Update its type.
9800 (mips_linux_close): Pass 'self' to super_close.
9801
9802 2014-02-24 Yao Qi <yao@codesourcery.com>
9803
9804 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9805 * corefile.c (read_memory): Adjusted.
9806 * target.c (target_write_with_progress): Adjusted.
9807
9808 2014-02-23 Yao Qi <yao@codesourcery.com>
9809
9810 Revert two patches:
9811
9812 2013-10-25 Yao Qi <yao@codesourcery.com>
9813
9814 * remote.c (remote_traceframe_info): Return early if
9815 traceframe is not selected.
9816
9817 2013-07-19 Yao Qi <yao@codesourcery.com>
9818
9819 * target.c (update_current_target): Change the default action
9820 of 'to_traceframe_info' from tcomplain to return_zero.
9821 * target.h (struct target_ops) <to_traceframe_info>: Add more
9822 comments.
9823
9824 2014-02-23 Yao Qi <yao@codesourcery.com>
9825
9826 * valops.c (read_value_memory): Rewrite it. Call
9827 target_xfer_partial in a loop.
9828 * exec.h (section_table_available_memory): Remove declaration.
9829 Move comments to ...
9830 * exec.c (section_table_available_memory): ... here. Make it
9831 static.
9832
9833 2014-02-23 Yao Qi <yao@codesourcery.com>
9834
9835 * exec.c (section_table_read_available_memory): New function.
9836 * exec.h (section_table_read_available_memory): Declare.
9837 * ctf.c (ctf_xfer_partial): Call
9838 section_table_read_available_memory.
9839 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9840
9841 2014-02-23 Yao Qi <yao@codesourcery.com>
9842
9843 * ctf.c (ctf_xfer_partial): Move code to ...
9844 * exec.c (exec_read_partial_read_only): ... it. New function.
9845 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9846 * tracefile.c: Include "exec.h".
9847 * exec.h (exec_read_partial_read_only): Declare.
9848
9849 2014-02-23 Yao Qi <yao@codesourcery.com>
9850
9851 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9852 (tfile_has_memory): Remove.
9853 (init_tfile_ops): Don't set fields to_has_all_memory and
9854 to_has_memory of tfile_ops.
9855 * tracefile.c (tracefile_has_all_memory): New function.
9856 (tracefile_has_memory): New function.
9857 (init_tracefile_ops): Initialize fields to_has_all_memory and
9858 to_has_memory of 'ops'.
9859
9860 2014-02-23 Yao Qi <yao@codesourcery.com>
9861
9862 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9863 (ctf_thread_alive, ctf_get_trace_status): Remove.
9864 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9865 init_tracefile_ops.
9866 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9867 (tfile_has_stack, tfile_has_registers): Remove.
9868 (tfile_thread_alive): Remove.
9869 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9870 init_tracefile_ops.
9871 * tracefile.c (tracefile_has_stack): New function.
9872 (tracefile_has_registers): New function.
9873 (tracefile_thread_alive): New function.
9874 (tracefile_get_trace_status): New function.
9875 (init_tracefile_ops): New function.
9876 * tracefile.h (init_tracefile_ops): Declare.
9877
9878 2014-02-23 Yao Qi <yao@codesourcery.com>
9879
9880 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9881 (O_LARGEFILE): Likewise.
9882 (tfile_ops): Likewise.
9883 (TRACE_HEADER_SIZE): Likewise.
9884 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9885 (cur_data_size): Likewise.
9886 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9887 (tfile_close, tfile_files_info): Likewise.
9888 (tfile_get_trace_status): Likewise.
9889 (tfile_get_tracepoint_status): Likewise.
9890 (tfile_get_traceframe_address): Likewise.
9891 (tfile_trace_find, match_blocktype): Likewise.
9892 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9893 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9894 (tfile_get_trace_state_variable_value): Likewise.
9895 (tfile_has_all_memory, tfile_has_memory): Likewise.
9896 (tfile_has_stack, tfile_has_registers): Likewise.
9897 (tfile_thread_alive, build_traceframe_info): Likewise.
9898 (tfile_traceframe_info, init_tfile_ops): Likewise.
9899 (_initialize_tracepoint): Don't call init_tfile_ops
9900 and add_target_with_completer.
9901 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9902 exec.h, completer.h and filenames.h.
9903 (_initialize_tracefile_tfile): New function.
9904
9905 2014-02-23 Yao Qi <yao@codesourcery.com>
9906
9907 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9908 tracefile-tfile.o.
9909 (HFILES_NO_SRCDIR): Add tracefile.h.
9910 * ctf.c: Include "tracefile.h".
9911 * tracefile.h: New file.
9912 * tracefile.c: New file
9913 * tracefile-tfile.c: New file.
9914 * tracepoint.c: Include "tracefile.h".
9915 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9916 (stop_reason_names): Add const.
9917 (trace_file_writer_xfree): Move it to tracefile.c.
9918 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9919 (trace_save_ctf): Likewise.
9920 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9921 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9922 (tfile_write_header, tfile_write_regblock_type): Likewise.
9923 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9924 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9925 (tfile_write_raw_data, tfile_end): Likewise.
9926 (tfile_trace_file_writer_new): Likewise.
9927 (free_uploaded_tp): Make it extern.
9928 (free_uploaded_tsv): Make it extern.
9929 (_initialize_tracepoint): Move code to register command 'tsave'
9930 to tracefile.c.
9931 * tracepoint.h (stop_reason_names): Declare.
9932 (struct trace_frame_write_ops): Move it to tracefile.h.
9933 (struct trace_file_write_ops): Likewise.
9934 (struct trace_file_writer): Likewise.
9935 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9936
9937 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9938
9939 PR gdb/16594
9940 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9941 process name.
9942 (get_cores_used_by_process): New parameter num_cores, use it.
9943 (linux_xfer_osdata_processes): Pass num_cores to it.
9944 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9945 process name.
9946
9947 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9948
9949 * target.c (memory_xfer_partial): Fix length arg in call to
9950 breakpoint_xfer_memory.
9951
9952 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9953
9954 PR tdep/16397
9955 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9956 number comes after the + or - signs. Adjust length of register
9957 name to be extracted.
9958
9959 2014-02-20 Tom Tromey <tromey@redhat.com>
9960
9961 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9962 (ada_varobj_ops): Mark "extern".
9963
9964 2014-02-20 Tom Tromey <tromey@redhat.com>
9965
9966 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9967
9968 2014-02-20 Doug Evans <xdje42@gmail.com>
9969
9970 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9971 All callers updated.
9972 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9973 All callers updated.
9974 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9975 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9976
9977 2014-02-20 lin zuojian <manjian2006@gmail.com>
9978 Joel Brobecker <brobecker@adacore.com>
9979 Doug Evans <xdje42@gmail.com>
9980
9981 PR symtab/16581
9982 * dwarf2read.c (struct die_info): New member in_process.
9983 (reset_die_in_process): New function.
9984 (process_die): Set it at the start, reset when returning.
9985 (inherit_abstract_dies): Only call process_die if origin_child_die
9986 not already being processed.
9987
9988 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9989
9990 * windows-nat.c (handle_unload_dll): Add function documentation.
9991 (do_initial_windows_stuff): Add comment explaining why we wait
9992 until after inferior initialization has finished before
9993 processing all DLLs.
9994
9995 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9996
9997 * windows-nat.c (get_module_name): Delete.
9998 (windows_get_exec_module_filename): New function, mostly
9999 inspired from get_module_name.
10000 (windows_pid_to_exec_file): Replace call to get_module_name
10001 by call to windows_get_exec_module_filename.
10002
10003 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10004
10005 * windows-nat.c (handle_load_dll): Rewrite this function's
10006 introductory comment. Remove code using get_module_name
10007 to get the DLL's name.
10008
10009 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10010
10011 * windows-nat.c (get_windows_debug_event): Ignore
10012 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10013 if windows_initialization_done == 0.
10014 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10015 Adjust implementation to always load all DLLs.
10016 (do_initial_windows_stuff): Replace call to
10017 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10018
10019 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10020
10021 * windows-nat.c (_initialize_windows_nat): Deprecate the
10022 "dll-symbols" command. Turn the "add-shared-symbol-files"
10023 and "assf" aliases into commands, and deprecate them as well.
10024 * NEWS: Add entry explaining that "dll-symbols" and its two
10025 aliases are now deprecated.
10026
10027 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10028
10029 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10030 new-line in debug string. Remove trailing spaces.
10031
10032 2014-02-19 Stan Shebs <stan@codesourcery.com>
10033
10034 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10035
10036 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10037
10038 * NEWS: Add entry for the new feature
10039 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10040 and class values.
10041
10042 2014-02-19 Stan Shebs <stan@codesourcery.com>
10043
10044 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10045
10046 2014-02-19 Pedro Alves <palves@redhat.com>
10047
10048 * common/ptid.h (struct ptid): Mention that process_stratum
10049 targets should prefer ptid.lwp.
10050
10051 2014-02-19 Pedro Alves <palves@redhat.com>
10052
10053 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10054 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10055 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10056 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10057 store remote thread ids rather than ptid.tid.
10058 (_initialize_remote): Adjust.
10059
10060 2014-02-19 Tom Tromey <tromey@redhat.com>
10061
10062 * target.c (target_get_unwinder): Rewrite.
10063 (target_get_tailcall_unwinder): Rewrite.
10064 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10065 (record_btrace_to_get_tailcall_unwinder): New function.
10066 (init_record_btrace_ops): Update.
10067 * target.h (struct target_ops) <to_get_unwinder,
10068 to_get_tailcall_unwinder>: Now function pointers. Use
10069 TARGET_DEFAULT_RETURN.
10070
10071 2014-02-19 Tom Tromey <tromey@redhat.com>
10072
10073 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10074 argument.
10075 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10076
10077 2014-02-19 Tom Tromey <tromey@redhat.com>
10078
10079 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10080 directly.
10081 * target-delegates.c: Rebuild.
10082 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10083 TARGET_DEFAULT_FUNC.
10084 * target.c (default_target_decr_pc_after_break): Rename from
10085 forward_target_decr_pc_after_break. Simplify.
10086 (target_decr_pc_after_break): Rely on delegation.
10087
10088 2014-02-19 Tom Tromey <tromey@redhat.com>
10089
10090 * target.c (update_current_target): Do not INHERIT to_doc or
10091 to_magic. Do not de_fault to_open or to_close.
10092
10093 2014-02-19 Tom Tromey <tromey@redhat.com>
10094
10095 * gcore.h (objfile_find_memory_regions): Declare.
10096 * gcore.c (objfile_find_memory_regions): No longer static. Add
10097 "self" argument.
10098 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10099 * exec.c: Include gcore.h.
10100 (exec_set_find_memory_regions): Remove.
10101 (exec_find_memory_regions): Remove.
10102 (exec_do_find_memory_regions): Remove.
10103 (init_exec_ops): Update.
10104 * defs.h (exec_set_find_memory_regions): Remove.
10105
10106 2014-02-19 Tom Tromey <tromey@redhat.com>
10107
10108 * target-delegates.c: Rebuild.
10109 * target.h (struct target_ops) <to_extra_thread_info,
10110 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10111 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10112 not 0, in TARGET_DEFAULT_RETURN.
10113
10114 2014-02-19 Tom Tromey <tromey@redhat.com>
10115
10116 * target.c (complete_target_initialization): Remove casts. Use
10117 return_zero_has_execution.
10118 (return_zero): Add "ignore" argument.
10119 (return_zero_has_execution): New function.
10120 (init_dummy_target): Remove casts. Use
10121 return_zero_has_execution.
10122
10123 2014-02-19 Tom Tromey <tromey@redhat.com>
10124
10125 * target.c (update_current_target): Update comments. Do not
10126 INHERIT to_stratum.
10127
10128 2014-02-19 Tom Tromey <tromey@redhat.com>
10129
10130 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10131 needed.
10132 * corelow.c (core_read_description): Delegate when needed.
10133 * remote.c (remote_read_description): Delegate when needed.
10134 * target-delegates.c: Rebuild.
10135 * target.c (target_read_description): Rewrite.
10136 * target.h (struct target_ops) <to_read_description>: Update
10137 comment. Use TARGET_DEFAULT_RETURN.
10138
10139 2014-02-19 Tom Tromey <tromey@redhat.com>
10140
10141 * target-delegates.c: Rebuild.
10142 * target.c (update_current_target): Don't inherit or default
10143 to_can_run.
10144 (find_default_run_target): Check against delegate_can_run.
10145 * target.h (struct target_ops) <to_can_run>: Use
10146 TARGET_DEFAULT_RETURN.
10147
10148 2014-02-19 Tom Tromey <tromey@redhat.com>
10149
10150 * target-delegates.c: Rebuild.
10151 * target.c (target_disconnect): Unconditionally delegate.
10152 * target.h (struct target_ops) <to_disconnect>: Use
10153 TARGET_DEFAULT_NORETURN.
10154
10155 2014-02-19 Tom Tromey <tromey@redhat.com>
10156
10157 * record.c (record_stop): Unconditionally delegate.
10158 * target-delegates.c: Rebuild.
10159 * target.c (target_stop_recording): Unconditionally delegate.
10160 * target.h (struct target_ops) <to_stop_recording>: Use
10161 TARGET_DEFAULT_IGNORE.
10162
10163 2014-02-19 Tom Tromey <tromey@redhat.com>
10164
10165 * target-delegates.c: Rebuild.
10166 * target.c (target_enable_btrace): Unconditionally delegate.
10167 * target.h (struct target_ops) <to_enable_btrace>: Use
10168 TARGET_DEFAULT_NORETURN.
10169
10170 2014-02-19 Tom Tromey <tromey@redhat.com>
10171
10172 * target-delegates.c: Rebuild.
10173 * target.c (target_read_btrace): Unconditionally delegate.
10174 * target.h (struct target_ops) <to_read_btrace>: Use
10175 TARGET_DEFAULT_NORETURN.
10176
10177 2014-02-19 Tom Tromey <tromey@redhat.com>
10178
10179 * target-delegates.c: Rebuild.
10180 * target.c (target_teardown_btrace): Unconditionally delegate.
10181 * target.h (struct target_ops) <to_teardown_btrace>: Use
10182 TARGET_DEFAULT_NORETURN.
10183
10184 2014-02-19 Tom Tromey <tromey@redhat.com>
10185
10186 * target-delegates.c: Rebuild.
10187 * target.c (target_disable_btrace): Unconditionally delegate.
10188 * target.h (struct target_ops) <to_disable_btrace>: Use
10189 TARGET_DEFAULT_NORETURN.
10190
10191 2014-02-19 Tom Tromey <tromey@redhat.com>
10192
10193 * target-delegates.c: Rebuild.
10194 * target.c (default_search_memory): New function.
10195 (simple_search_memory): Update comment.
10196 (target_search_memory): Unconditionally delegate.
10197 * target.h (struct target_ops) <to_search_memory>: Use
10198 TARGET_DEFAULT_FUNC.
10199
10200 2014-02-19 Tom Tromey <tromey@redhat.com>
10201
10202 * auxv.c (default_auxv_parse): No longer static.
10203 (target_auxv_parse): Unconditionally delegate.
10204 * auxv.h (default_auxv_parse): Declare.
10205 * target-delegates.c: Rebuild.
10206 * target.c: Include auxv.h.
10207 * target.h (struct target_ops) <to_auxv_parse>: Use
10208 TARGET_DEFAULT_FUNC.
10209
10210 2014-02-19 Tom Tromey <tromey@redhat.com>
10211
10212 * target-delegates.c: Rebuild.
10213 * target.c (target_memory_map): Unconditionally delegate.
10214 * target.h (struct target_ops) <to_memory_map>: Use
10215 TARGET_DEFAULT_RETURN.
10216
10217 2014-02-19 Tom Tromey <tromey@redhat.com>
10218
10219 * target-delegates.c: Rebuild.
10220 * target.c (target_thread_alive): Unconditionally delegate.
10221 * target.h (struct target_ops) <to_thread_alive>: Use
10222 TARGET_DEFAULT_RETURN.
10223
10224 2014-02-19 Tom Tromey <tromey@redhat.com>
10225
10226 * target-delegates.c: Rebuild.
10227 * target.c (target_save_record): Unconditionally delegate.
10228 * target.h (struct target_ops) <to_save_record>: Use
10229 TARGET_DEFAULT_NORETURN.
10230
10231 2014-02-19 Tom Tromey <tromey@redhat.com>
10232
10233 * target-delegates.c: Rebuild.
10234 * target.c (target_delete_record): Unconditionally delegate.
10235 * target.h (struct target_ops) <to_delete_record>: Use
10236 TARGET_DEFAULT_NORETURN.
10237
10238 2014-02-19 Tom Tromey <tromey@redhat.com>
10239
10240 * target-delegates.c: Rebuild.
10241 * target.c (target_record_is_replaying): Unconditionally
10242 delegate.
10243 * target.h (struct target_ops) <to_record_is_replaying>: Use
10244 TARGET_DEFAULT_RETURN.
10245
10246 2014-02-19 Tom Tromey <tromey@redhat.com>
10247
10248 * target-delegates.c: Rebuild.
10249 * target.c (target_goto_record_begin): Unconditionally delegate.
10250 * target.h (struct target_ops) <to_goto_record_begin>: Use
10251 TARGET_DEFAULT_NORETURN.
10252
10253 2014-02-19 Tom Tromey <tromey@redhat.com>
10254
10255 * target-delegates.c: Rebuild.
10256 * target.c (target_goto_record_end): Unconditionally delegate.
10257 * target.h (struct target_ops) <to_goto_record_end>: Use
10258 TARGET_DEFAULT_NORETURN.
10259
10260 2014-02-19 Tom Tromey <tromey@redhat.com>
10261
10262 * target-delegates.c: Rebuild.
10263 * target.c (target_goto_record): Unconditionally delegate.
10264 * target.h (struct target_ops) <to_goto_record>: Use
10265 TARGET_DEFAULT_NORETURN.
10266
10267 2014-02-19 Tom Tromey <tromey@redhat.com>
10268
10269 * target-delegates.c: Rebuild.
10270 * target.c (target_insn_history): Unconditionally delegate.
10271 * target.h (struct target_ops) <to_insn_history>: Use
10272 TARGET_DEFAULT_NORETURN.
10273
10274 2014-02-19 Tom Tromey <tromey@redhat.com>
10275
10276 * target-delegates.c: Rebuild.
10277 * target.c (target_insn_history_from): Unconditionally delegate.
10278 * target.h (struct target_ops) <to_insn_history_from>: Use
10279 TARGET_DEFAULT_NORETURN.
10280
10281 2014-02-19 Tom Tromey <tromey@redhat.com>
10282
10283 * target-delegates.c: Rebuild.
10284 * target.c (target_insn_history_range): Unconditionally delegate.
10285 * target.h (struct target_ops) <to_insn_history_range>: Use
10286 TARGET_DEFAULT_NORETURN.
10287
10288 2014-02-19 Tom Tromey <tromey@redhat.com>
10289
10290 * target-delegates.c: Rebuild.
10291 * target.c (target_call_history): Unconditionally delegate.
10292 * target.h (struct target_ops) <to_call_history>: Use
10293 TARGET_DEFAULT_NORETURN.
10294
10295 2014-02-19 Tom Tromey <tromey@redhat.com>
10296
10297 * target-delegates.c: Rebuild.
10298 * target.c (target_call_history_from): Unconditionally delegate.
10299 * target.h (struct target_ops) <to_call_history_from>: Use
10300 TARGET_DEFAULT_NORETURN.
10301
10302 2014-02-19 Tom Tromey <tromey@redhat.com>
10303
10304 * target-delegates.c: Rebuild.
10305 * target.c (target_call_history_range): Unconditionally delegate.
10306 * target.h (struct target_ops) <to_call_history_range>: Use
10307 TARGET_DEFAULT_NORETURN.
10308
10309 2014-02-19 Tom Tromey <tromey@redhat.com>
10310
10311 * target-delegates.c: Rebuild.
10312 * target.c (target_verify_memory): Unconditionally delegate.
10313 * target.h (struct target_ops) <to_verify_memory>: Use
10314 TARGET_DEFAULT_NORETURN.
10315
10316 2014-02-19 Tom Tromey <tromey@redhat.com>
10317
10318 * target-delegates.c: Rebuild.
10319 * target.c (target_core_of_thread): Unconditionally delegate.
10320 * target.h (struct target_ops) <to_core_of_thread>: Use
10321 TARGET_DEFAULT_RETURN.
10322
10323 2014-02-19 Tom Tromey <tromey@redhat.com>
10324
10325 * target-delegates.c: Rebuild.
10326 * target.c (target_flash_done): Unconditionally delegate.
10327 * target.h (struct target_ops) <to_flash_done>: Use
10328 TARGET_DEFAULT_NORETURN.
10329
10330 2014-02-19 Tom Tromey <tromey@redhat.com>
10331
10332 * target-delegates.c: Rebuild.
10333 * target.c (target_flash_erase): Unconditionally delegate.
10334 * target.h (struct target_ops) <to_flash_erase>: Use
10335 TARGET_DEFAULT_NORETURN.
10336
10337 2014-02-19 Tom Tromey <tromey@redhat.com>
10338
10339 * target-delegates.c: Rebuild.
10340 * target.c (target_get_section_table): Unconditionally delegate.
10341 * target.h (struct target_ops) <to_get_section_table>: Use
10342 TARGET_DEFAULT_RETURN.
10343
10344 2014-02-19 Tom Tromey <tromey@redhat.com>
10345
10346 * target-delegates.c: Rebuild.
10347 * target.c (target_pid_to_str): Unconditionally delegate.
10348 (init_dummy_target): Don't initialize to_pid_to_str.
10349 (default_pid_to_str): Rename from dummy_pid_to_str.
10350 * target.h (struct target_ops) <to_pid_to_str>: Use
10351 TARGET_DEFAULT_FUNC.
10352
10353 2014-02-19 Tom Tromey <tromey@redhat.com>
10354
10355 * target-delegates.c: Rebuild.
10356 * target.c (target_find_new_threads): Unconditionally delegate.
10357 * target.h (struct target_ops) <to_find_new_threads>: Use
10358 TARGET_DEFAULT_RETURN.
10359
10360 2014-02-19 Tom Tromey <tromey@redhat.com>
10361
10362 * target-delegates.c: Rebuild.
10363 * target.c (target_program_signals): Unconditionally delegate.
10364 * target.h (struct target_ops) <to_program_signals>: Use
10365 TARGET_DEFAULT_IGNORE.
10366
10367 2014-02-19 Tom Tromey <tromey@redhat.com>
10368
10369 * target-delegates.c: Rebuild.
10370 * target.c (target_pass_signals): Unconditionally delegate.
10371 * target.h (struct target_ops) <to_pass_signals>: Use
10372 TARGET_DEFAULT_IGNORE.
10373
10374 2014-02-19 Tom Tromey <tromey@redhat.com>
10375
10376 * target-delegates.c: Rebuild.
10377 * target.c (default_mourn_inferior): New function.
10378 (target_mourn_inferior): Unconditionally delegate.
10379 * target.h (struct target_ops) <to_mourn_inferior>: Use
10380 TARGET_DEFAULT_FUNC.
10381
10382 2014-02-19 Tom Tromey <tromey@redhat.com>
10383
10384 * target-delegates.c: Rebuild.
10385 * target.c (default_follow_fork): New function.
10386 (target_follow_fork): Unconditionally delegate.
10387 * target.h (struct target_ops) <to_follow_fork>: Use
10388 TARGET_DEFAULT_FUNC.
10389
10390 2014-02-19 Tom Tromey <tromey@redhat.com>
10391
10392 * target-delegates.c: Rebuild.
10393 * target.c (target_kill): Unconditionally delegate.
10394 * target.h (struct target_ops) <to_kill>: Use
10395 TARGET_DEFAULT_NORETURN.
10396
10397 2014-02-19 Tom Tromey <tromey@redhat.com>
10398
10399 * target-delegates.c: Rebuild.
10400 * target.c (target_masked_watch_num_registers): Unconditionally
10401 delegate.
10402 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10403 Use TARGET_DEFAULT_RETURN.
10404
10405 2014-02-19 Tom Tromey <tromey@redhat.com>
10406
10407 * target-delegates.c: Rebuild.
10408 * target.c (target_remove_mask_watchpoint): Unconditionally
10409 delegate.
10410 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10411 TARGET_DEFAULT_RETURN.
10412
10413 2014-02-19 Tom Tromey <tromey@redhat.com>
10414
10415 * target-delegates.c: Rebuild.
10416 * target.c (target_insert_mask_watchpoint): Unconditionally
10417 delegate.
10418 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10419 TARGET_DEFAULT_RETURN.
10420
10421 2014-02-19 Tom Tromey <tromey@redhat.com>
10422
10423 * target-delegates.c: Rebuild.
10424 * target.c (target_ranged_break_num_registers): Unconditionally
10425 delegate.
10426 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10427 Use TARGET_DEFAULT_RETURN.
10428
10429 2014-02-19 Tom Tromey <tromey@redhat.com>
10430
10431 * target-delegates.c: Rebuild.
10432 * target.c (target_fetch_registers): Unconditionally delegate.
10433 * target.h (struct target_ops) <to_fetch_registers>: Use
10434 TARGET_DEFAULT_NORETURN.
10435
10436 2014-02-19 Tom Tromey <tromey@redhat.com>
10437
10438 * target-delegates.c: Rebuild.
10439 * target.c (update_current_target): Don't inherit or default
10440 to_stop.
10441 * target.h (struct target_ops) <to_stop>: Use
10442 TARGET_DEFAULT_IGNORE.
10443
10444 2014-02-19 Tom Tromey <tromey@redhat.com>
10445
10446 * target-delegates.c: Rebuild.
10447 * target.c (update_current_target): Don't inherit or default
10448 to_can_run_breakpoint_commands.
10449 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10450 Use TARGET_DEFAULT_RETURN.
10451
10452 2014-02-19 Tom Tromey <tromey@redhat.com>
10453
10454 * target-delegates.c: Rebuild.
10455 * target.c (update_current_target): Don't inherit or default
10456 to_supports_evaluation_of_breakpoint_conditions.
10457 * target.h (struct target_ops)
10458 <to_supports_evaluation_of_breakpoint_conditions>: Use
10459 TARGET_DEFAULT_RETURN.
10460
10461 2014-02-19 Tom Tromey <tromey@redhat.com>
10462
10463 * target-delegates.c: Rebuild.
10464 * target.c (update_current_target): Don't inherit or default
10465 to_augmented_libraries_svr4_read.
10466 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10467 Use TARGET_DEFAULT_RETURN.
10468
10469 2014-02-19 Tom Tromey <tromey@redhat.com>
10470
10471 * target-delegates.c: Rebuild.
10472 * target.c (update_current_target): Don't inherit or default
10473 to_can_use_agent.
10474 * target.h (struct target_ops) <to_can_use_agent>: Use
10475 TARGET_DEFAULT_RETURN.
10476
10477 2014-02-19 Tom Tromey <tromey@redhat.com>
10478
10479 * target-delegates.c: Rebuild.
10480 * target.c (update_current_target): Don't inherit or default
10481 to_use_agent.
10482 * target.h (struct target_ops) <to_use_agent>: Use
10483 TARGET_DEFAULT_NORETURN.
10484
10485 2014-02-19 Tom Tromey <tromey@redhat.com>
10486
10487 * target-delegates.c: Rebuild.
10488 * target.c (update_current_target): Don't inherit or default
10489 to_traceframe_info.
10490 (return_null): Remove.
10491 * target.h (struct target_ops) <to_traceframe_info>: Use
10492 TARGET_DEFAULT_RETURN.
10493
10494 2014-02-19 Tom Tromey <tromey@redhat.com>
10495
10496 * target-delegates.c: Rebuild.
10497 * target.c (update_current_target): Don't inherit or default
10498 to_static_tracepoint_markers_by_strid.
10499 * target.h (struct target_ops)
10500 <to_static_tracepoint_markers_by_strid>: 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_static_tracepoint_marker_at.
10508 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10509 Use 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_set_permissions.
10516 * target.h (struct target_ops) <to_set_permissions>: Use
10517 TARGET_DEFAULT_IGNORE.
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_get_tib_address.
10524 * target.h (struct target_ops) <to_get_tib_address>: Use
10525 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_set_trace_notes.
10532 * target.h (struct target_ops) <to_set_trace_notes>: Use
10533 TARGET_DEFAULT_RETURN.
10534
10535 2014-02-19 Tom Tromey <tromey@redhat.com>
10536
10537 * target-delegates.c: Rebuild.
10538 * target.c (update_current_target): Don't initialize
10539 to_set_trace_buffer_size.
10540 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10541 TARGET_DEFAULT_IGNORE.
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_set_circular_trace_buffer.
10548 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10549 TARGET_DEFAULT_IGNORE.
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_set_disconnected_tracing.
10556 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10557 TARGET_DEFAULT_IGNORE.
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_get_min_fast_tracepoint_insn_len.
10564 (return_minus_one): Remove.
10565 * target.h (struct target_ops)
10566 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10567
10568 2014-02-19 Tom Tromey <tromey@redhat.com>
10569
10570 * target-delegates.c: Rebuild.
10571 * target.c (update_current_target): Don't inherit or default
10572 to_get_raw_trace_data.
10573 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10574 TARGET_DEFAULT_NORETURN.
10575
10576 2014-02-19 Tom Tromey <tromey@redhat.com>
10577
10578 * target-delegates.c: Rebuild.
10579 * target.c (update_current_target): Don't inherit or default
10580 to_upload_trace_state_variables.
10581 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10582 Use TARGET_DEFAULT_RETURN.
10583
10584 2014-02-19 Tom Tromey <tromey@redhat.com>
10585
10586 * target-delegates.c: Rebuild.
10587 * target.c (update_current_target): Don't inherit or default
10588 to_upload_tracepoints.
10589 * target.h (struct target_ops) <to_upload_tracepoints>: 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_save_trace_data.
10597 * target.h (struct target_ops) <to_save_trace_data>: Use
10598 TARGET_DEFAULT_NORETURN.
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_trace_state_variable_value.
10605 * target.h (struct target_ops)
10606 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
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_trace_find.
10613 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10614
10615 2014-02-19 Tom Tromey <tromey@redhat.com>
10616
10617 * target-delegates.c: Rebuild.
10618 * target.c (update_current_target): Don't inherit or default
10619 to_trace_stop.
10620 * target.h (struct target_ops) <to_trace_stop>: Use
10621 TARGET_DEFAULT_NORETURN.
10622
10623 2014-02-19 Tom Tromey <tromey@redhat.com>
10624
10625 * target-delegates.c: Rebuild.
10626 * target.c (update_current_target): Don't inherit or default
10627 to_get_tracepoint_status.
10628 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10629 TARGET_DEFAULT_NORETURN.
10630
10631 2014-02-19 Tom Tromey <tromey@redhat.com>
10632
10633 * target-delegates.c: Rebuild.
10634 * target.c (update_current_target): Don't inherit or default
10635 to_get_trace_status.
10636 * target.h (struct target_ops) <to_get_trace_status>: Use
10637 TARGET_DEFAULT_RETURN.
10638
10639 2014-02-19 Tom Tromey <tromey@redhat.com>
10640
10641 * target-delegates.c: Rebuild.
10642 * target.c (update_current_target): Don't inherit or default
10643 to_trace_start.
10644 * target.h (struct target_ops) <to_trace_start>: Use
10645 TARGET_DEFAULT_NORETURN.
10646
10647 2014-02-19 Tom Tromey <tromey@redhat.com>
10648
10649 * target-delegates.c: Rebuild.
10650 * target.c (update_current_target): Don't inherit or default
10651 to_trace_set_readonly_regions.
10652 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10653 Use TARGET_DEFAULT_NORETURN.
10654
10655 2014-02-19 Tom Tromey <tromey@redhat.com>
10656
10657 * target-delegates.c: Rebuild.
10658 * target.c (update_current_target): Don't inherit or default
10659 to_disable_tracepoint.
10660 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10661 TARGET_DEFAULT_NORETURN.
10662
10663 2014-02-19 Tom Tromey <tromey@redhat.com>
10664
10665 * target-delegates.c: Rebuild.
10666 * target.c (update_current_target): Don't inherit or default
10667 to_enable_tracepoint.
10668 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10669 TARGET_DEFAULT_NORETURN.
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_download_trace_state_variable.
10676 * target.h (struct target_ops) <to_download_trace_state_variable>:
10677 Use TARGET_DEFAULT_NORETURN.
10678
10679 2014-02-19 Tom Tromey <tromey@redhat.com>
10680
10681 * target-delegates.c: Rebuild.
10682 * target.c (update_current_target): Don't inherit or default
10683 to_can_download_tracepoint.
10684 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10685 TARGET_DEFAULT_RETURN.
10686
10687 2014-02-19 Tom Tromey <tromey@redhat.com>
10688
10689 * target-delegates.c: Rebuild.
10690 * target.c (update_current_target): Don't inherit or default
10691 to_download_tracepoint.
10692 * target.h (struct target_ops) <to_download_tracepoint>: Use
10693 TARGET_DEFAULT_NORETURN.
10694
10695 2014-02-19 Tom Tromey <tromey@redhat.com>
10696
10697 * target-delegates.c: Rebuild.
10698 * target.c (update_current_target): Don't inherit or default
10699 to_trace_init.
10700 * target.h (struct target_ops) <to_trace_init>: Use
10701 TARGET_DEFAULT_RETURN.
10702
10703 2014-02-19 Tom Tromey <tromey@redhat.com>
10704
10705 * target-delegates.c: Rebuild.
10706 * target.c (update_current_target): Don't inherit or default
10707 to_supports_string_tracing.
10708 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10709 TARGET_DEFAULT_RETURN.
10710
10711 2014-02-19 Tom Tromey <tromey@redhat.com>
10712
10713 * target-delegates.c: Rebuild.
10714 * target.c (update_current_target): Don't inherit or default
10715 to_supports_enable_disable_tracepoint.
10716 * target.h (struct target_ops)
10717 <to_supports_enable_disable_tracepoint>: Use
10718 TARGET_DEFAULT_RETURN.
10719
10720 2014-02-19 Tom Tromey <tromey@redhat.com>
10721
10722 * target-delegates.c: Rebuild.
10723 * target.c (update_current_target): Don't inherit or default
10724 to_supports_multi_process.
10725 * target.h (struct target_ops) <to_supports_multi_process>: Use
10726 TARGET_DEFAULT_RETURN.
10727
10728 2014-02-19 Tom Tromey <tromey@redhat.com>
10729
10730 * target-delegates.c: Rebuild.
10731 * target.c (update_current_target): Don't inherit or default
10732 to_get_ada_task_ptid.
10733 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10734 TARGET_DEFAULT_FUNC.
10735
10736 2014-02-19 Tom Tromey <tromey@redhat.com>
10737
10738 * target-delegates.c: Rebuild.
10739 * target.c (update_current_target): Don't inherit or default
10740 to_thread_architecture.
10741 * target.h (struct target_ops) <to_thread_architecture>: Use
10742 TARGET_DEFAULT_FUNC.
10743
10744 2014-02-19 Tom Tromey <tromey@redhat.com>
10745
10746 * target-delegates.c: Rebuild.
10747 * target.c (update_current_target): Don't inherit or default
10748 to_execution_direction.
10749 * target.h (struct target_ops) <to_execution_direction>: Use
10750 TARGET_DEFAULT_FUNC.
10751
10752 2014-02-19 Tom Tromey <tromey@redhat.com>
10753
10754 * target-delegates.c: Rebuild.
10755 * target.c (update_current_target): Don't inherit or default
10756 to_can_execute_reverse.
10757 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10758 TARGET_DEFAULT_RETURN.
10759 (target_can_execute_reverse): Unconditionally delegate.
10760
10761 2014-02-19 Tom Tromey <tromey@redhat.com>
10762
10763 * target-delegates.c: Rebuild.
10764 * target.c (update_current_target): Don't inherit or default
10765 to_goto_bookmark.
10766 (dummy_goto_bookmark): Remove.
10767 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10768 * target.h (struct target_ops) <to_goto_bookmark>: Use
10769 TARGET_DEFAULT_NORETURN.
10770
10771 2014-02-19 Tom Tromey <tromey@redhat.com>
10772
10773 * target-delegates.c: Rebuild.
10774 * target.c (update_current_target): Don't inherit or default
10775 to_get_bookmark.
10776 (dummy_get_bookmark): Remove.
10777 (init_dummy_target): Don't inherit or default to_get_bookmark.
10778 * target.h (struct target_ops) <to_get_bookmark>: Use
10779 TARGET_DEFAULT_NORETURN
10780
10781 2014-02-19 Tom Tromey <tromey@redhat.com>
10782
10783 * target-delegates.c: Rebuild.
10784 * target.c (update_current_target): Don't inherit or default
10785 to_make_corefile_notes.
10786 (init_dummy_target): Don't initialize to_make_corefile_notes.
10787 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10788 TARGET_DEFAULT_FUNC.
10789
10790 2014-02-19 Tom Tromey <tromey@redhat.com>
10791
10792 * target-delegates.c: Rebuild.
10793 * target.c (update_current_target): Don't inherit or default
10794 to_find_memory_regions.
10795 (init_dummy_target): Don't initialize to_find_memory_regions.
10796 * target.h (struct target_ops) <to_find_memory_regions>: Use
10797 TARGET_DEFAULT_FUNC.
10798
10799 2014-02-19 Tom Tromey <tromey@redhat.com>
10800
10801 * target-delegates.c: Rebuild.
10802 * target.c (update_current_target): Don't inherit or default
10803 to_log_command.
10804 * target.h (struct target_ops) <to_log_command>: Use
10805 TARGET_DEFAULT_IGNORE.
10806 (target_log_command): Unconditionally delegate.
10807
10808 2014-02-19 Tom Tromey <tromey@redhat.com>
10809
10810 * target-delegates.c: Rebuild.
10811 * target.c (update_current_target): Don't inherit or default
10812 to_pid_to_exec_file.
10813 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10814 TARGET_DEFAULT_RETURN.
10815
10816 2014-02-19 Tom Tromey <tromey@redhat.com>
10817
10818 * target-delegates.c: Rebuild.
10819 * target.c (update_current_target): Don't inherit or default
10820 to_thread_name.
10821 (target_thread_name): Unconditionally delegate.
10822 * target.h (struct target_ops) <to_thread_name>: Use
10823 TARGET_DEFAULT_RETURN.
10824
10825 2014-02-19 Tom Tromey <tromey@redhat.com>
10826
10827 * target-delegates.c: Rebuild.
10828 * target.c (update_current_target): Don't inherit or default
10829 to_extra_thread_info.
10830 * target.h (struct target_ops) <to_extra_thread_info>: Use
10831 TARGET_DEFAULT_RETURN.
10832
10833 2014-02-19 Tom Tromey <tromey@redhat.com>
10834
10835 * target-delegates.c: Rebuild.
10836 * target.c (update_current_target): Don't inherit or default
10837 to_has_exited.
10838 * target.h (struct target_ops) <to_has_exited>: Use
10839 TARGET_DEFAULT_RETURN..
10840
10841 2014-02-19 Tom Tromey <tromey@redhat.com>
10842
10843 * target-delegates.c: Rebuild.
10844 * target.c (update_current_target): Don't inherit or default
10845 to_set_syscall_catchpoint.
10846 (return_one): Remove.
10847 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10848 TARGET_DEFAULT_RETURN.
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_insert_exec_catchpoint.
10855 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10856 TARGET_DEFAULT_RETURN.
10857
10858 2014-01-08 Tom Tromey <tromey@redhat.com>
10859
10860 * target-delegates.c: Rebuild.
10861 * target.c (update_current_target): Don't inherit or default
10862 to_insert_exec_catchpoint.
10863 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10864 TARGET_DEFAULT_RETURN.
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_remove_vfork_catchpoint.
10871 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: 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_insert_vfork_catchpoint.
10879 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: 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_remove_fork_catchpoint.
10887 * target.h (struct target_ops) <to_remove_fork_catchpoint>: 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_insert_fork_catchpoint.
10895 * target.h (struct target_ops) <to_insert_fork_catchpoint>: 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_post_startup_inferior.
10903 * target.h (struct target_ops) <to_post_startup_inferior>: 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_load.
10911 * target.h (struct target_ops) <to_load>: 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_terminal_info.
10919 * target.h (struct target_ops) <to_terminal_info>: Use
10920 TARGET_DEFAULT_FUNC.
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_terminal_save_ours.
10927 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10928 TARGET_DEFAULT_IGNORE.
10929
10930 2014-02-19 Tom Tromey <tromey@redhat.com>
10931
10932 * target-delegates.c: Rebuild.
10933 * target.c (update_current_target): Don't inherit or default
10934 to_terminal_ours.
10935 * target.h (struct target_ops) <to_terminal_ours>: Use
10936 TARGET_DEFAULT_IGNORE.
10937
10938 2014-02-19 Tom Tromey <tromey@redhat.com>
10939
10940 * target-delegates.c: Rebuild.
10941 * target.c (update_current_target): Don't inherit or default
10942 to_terminal_ours_for_output.
10943 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10944 TARGET_DEFAULT_IGNORE.
10945
10946 2014-02-19 Tom Tromey <tromey@redhat.com>
10947
10948 * target-delegates.c: Rebuild.
10949 * target.c (update_current_target): Don't inherit or default
10950 to_terminal_inferior.
10951 * target.h (struct target_ops) <to_terminal_inferior>: Use
10952 TARGET_DEFAULT_IGNORE.
10953
10954 2014-02-19 Tom Tromey <tromey@redhat.com>
10955
10956 * target-delegates.c: Rebuild.
10957 * target.c (update_current_target): Don't inherit or default
10958 to_terminal_init.
10959 * target.h (struct target_ops) <to_terminal_init>: Use
10960 TARGET_DEFAULT_IGNORE.
10961
10962 2014-02-19 Tom Tromey <tromey@redhat.com>
10963
10964 * target-delegates.c: Rebuild.
10965 * target.c (update_current_target): Don't inherit or default
10966 to_can_accel_watchpoint_condition.
10967 * target.h (struct target_ops)
10968 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10969
10970 2014-02-19 Tom Tromey <tromey@redhat.com>
10971
10972 * target-delegates.c: Rebuild.
10973 * target.c (update_current_target): Don't inherit or default
10974 to_region_ok_for_hw_watchpoint.
10975 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10976 Use TARGET_DEFAULT_FUNC.
10977
10978 2014-02-19 Tom Tromey <tromey@redhat.com>
10979
10980 * target-delegates.c: Rebuild.
10981 * target.c (update_current_target): Don't inherit or default
10982 to_watchpoint_addr_within_range.
10983 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10984 Use TARGET_DEFAULT_FUNC.
10985
10986 2014-02-19 Tom Tromey <tromey@redhat.com>
10987
10988 * target-delegates.c: Rebuild.
10989 * target.c (update_current_target): Don't inherit or default
10990 to_remove_watchpoint.
10991 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10992 TARGET_DEFAULT_NORETURN.
10993
10994 2014-02-19 Tom Tromey <tromey@redhat.com>
10995
10996 * target-delegates.c: Rebuild.
10997 * target.c (update_current_target): Don't inherit or default
10998 to_insert_watchpoint.
10999 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11000 TARGET_DEFAULT_RETURN.
11001
11002 2014-02-19 Tom Tromey <tromey@redhat.com>
11003
11004 * target-delegates.c: Rebuild.
11005 * target.c (update_current_target): Don't inherit or default
11006 to_remove_hw_breakpoint.
11007 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11008 TARGET_DEFAULT_RETURN.
11009
11010 2014-02-19 Tom Tromey <tromey@redhat.com>
11011
11012 * target-delegates.c: Rebuild.
11013 * target.c (update_current_target): Don't inherit or default
11014 to_insert_hw_breakpoint.
11015 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11016 TARGET_DEFAULT_RETURN.
11017
11018 2014-02-19 Tom Tromey <tromey@redhat.com>
11019
11020 * target-delegates.c: Rebuild.
11021 * target.c (update_current_target): Don't inherit or default
11022 to_can_use_hw_breakpoint.
11023 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11024 TARGET_DEFAULT_RETURN.
11025
11026 2014-02-19 Tom Tromey <tromey@redhat.com>
11027
11028 * target-delegates.c: Rebuild.
11029 * target.c (update_current_target): Don't inherit or default
11030 to_files_info.
11031 * target.h (struct target_ops) <to_files_info>: Use
11032 TARGET_DEFAULT_IGNORE.
11033
11034 2014-02-19 Tom Tromey <tromey@redhat.com>
11035
11036 * target-delegates.c: Rebuild.
11037 * target.c (update_current_target): Don't inherit or default
11038 to_store.
11039 * target.h (struct target_ops) <to_store>: Use
11040 TARGET_DEFAULT_NORETURN.
11041
11042 2014-02-19 Tom Tromey <tromey@redhat.com>
11043
11044 * target-delegates.c: Rebuild.
11045 * target.c (update_current_target): Don't inherit or default
11046 to_post_attach.
11047 * target.h (struct target_ops) <to_post_attach>: Use
11048 TARGET_DEFAULT_IGNORE.
11049
11050 2014-02-19 Tom Tromey <tromey@redhat.com>
11051
11052 * target-delegates.c: Rebuild.
11053 * target.c (update_current_target): Don't inherit or default
11054 to_rcmd.
11055 (default_rcmd): New function.
11056 (do_monitor_command): Unconditionally delegate.
11057 * target.h (struct target_ops) <to_rmcd>: Use
11058 TARGET_DEFAULT_FUNC.
11059
11060 2014-02-19 Tom Tromey <tromey@redhat.com>
11061
11062 * target-delegates.c: Rebuild.
11063 * target.c (init_dummy_target): Don't initialize to_attach.
11064 (target_attach): Unconditionally delegate.
11065 * target.h (struct target_ops) <to_attach>: Use
11066 TARGET_DEFAULT_FUNC.
11067
11068 2014-02-19 Tom Tromey <tromey@redhat.com>
11069
11070 * target-delegates.c: Rebuild.
11071 * target.c (target_detach): Unconditionally delegate.
11072 (init_dummy_target): Don't initialize to_detach.
11073 * target.h (struct target_ops) <to_detach>: Use
11074 TARGET_DEFAULT_IGNORE.
11075
11076 2014-02-19 Tom Tromey <tromey@redhat.com>
11077
11078 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11079 Add argument.
11080 (target_augmented_libraries_svr4_read): Add argument.
11081 * target.c (update_current_target): Update.
11082 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11083 argument.
11084
11085 2014-02-19 Tom Tromey <tromey@redhat.com>
11086
11087 * target.h (struct target_ops) <to_call_history_range>: Add
11088 argument.
11089 * target.c (target_call_history_range): Add argument.
11090 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11091 argument.
11092 (record_btrace_call_history_from): Update.
11093
11094 2014-02-19 Tom Tromey <tromey@redhat.com>
11095
11096 * target.h (struct target_ops) <to_call_history_from>: Add
11097 argument.
11098 * target.c (target_call_history_from): Add argument.
11099 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11100 argument.
11101
11102 2014-02-19 Tom Tromey <tromey@redhat.com>
11103
11104 * target.h (struct target_ops) <to_call_history>: Add argument.
11105 * target.c (target_call_history): Add argument.
11106 * record-btrace.c (record_btrace_call_history): Add 'self'
11107 argument.
11108
11109 2014-02-19 Tom Tromey <tromey@redhat.com>
11110
11111 * target.h (struct target_ops) <to_insn_history_range>: Add
11112 argument.
11113 * target.c (target_insn_history_range): Add argument.
11114 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11115 argument.
11116 (record_btrace_insn_history_from): Update.
11117
11118 2014-02-19 Tom Tromey <tromey@redhat.com>
11119
11120 * target.h (struct target_ops) <to_insn_history_from>: Add
11121 argument.
11122 * target.c (target_insn_history_from): Add argument.
11123 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11124 argument.
11125
11126 2014-02-19 Tom Tromey <tromey@redhat.com>
11127
11128 * target.h (struct target_ops) <to_insn_history>: Add argument.
11129 * target.c (target_insn_history): Add argument.
11130 * record-btrace.c (record_btrace_insn_history): Add 'self'
11131 argument.
11132
11133 2014-02-19 Tom Tromey <tromey@redhat.com>
11134
11135 * target.h (struct target_ops) <to_goto_record>: Add argument.
11136 * target.c (target_goto_record): Add argument.
11137 * record-full.c (record_full_goto): Add 'self' argument.
11138 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11139
11140 2014-02-19 Tom Tromey <tromey@redhat.com>
11141
11142 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11143 * target.c (target_goto_record_end): Add argument.
11144 * record-full.c (record_full_goto_end): Add 'self' argument.
11145 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11146
11147 2014-02-19 Tom Tromey <tromey@redhat.com>
11148
11149 * target.h (struct target_ops) <to_goto_record_begin>: Add
11150 argument.
11151 * target.c (target_goto_record_begin): Add argument.
11152 * record-full.c (record_full_goto_begin): Add 'self' argument.
11153 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11154 argument.
11155
11156 2014-02-19 Tom Tromey <tromey@redhat.com>
11157
11158 * target.h (struct target_ops) <to_record_is_replaying>: Add
11159 argument.
11160 * target.c (target_record_is_replaying): Add argument.
11161 * record-full.c (record_full_is_replaying): Add 'self' argument.
11162 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11163 argument.
11164 (record_btrace_xfer_partial, record_btrace_store_registers)
11165 (record_btrace_prepare_to_store, record_btrace_resume)
11166 (record_btrace_wait, record_btrace_decr_pc_after_break)
11167 (record_btrace_find_new_threads, record_btrace_thread_alive):
11168 Update.
11169
11170 2014-02-19 Tom Tromey <tromey@redhat.com>
11171
11172 * target.h (struct target_ops) <to_delete_record>: Add argument.
11173 * target.c (target_delete_record): Add argument.
11174 * record-full.c (record_full_delete): Add 'self' argument.
11175
11176 2014-02-19 Tom Tromey <tromey@redhat.com>
11177
11178 * target.h (struct target_ops) <to_save_record>: Add argument.
11179 * target.c (target_save_record): Add argument.
11180 * record-full.c (record_full_save): Add 'self' argument.
11181 (record_full_save): Add 'self' argument.
11182
11183 2014-02-19 Tom Tromey <tromey@redhat.com>
11184
11185 * target.h (struct target_ops) <to_info_record>: Add argument.
11186 * target.c (target_info_record): Add argument.
11187 * record.c (info_record_command): Add argument.
11188 * record-full.c (record_full_info): Add 'self' argument.
11189 * record-btrace.c (record_btrace_info): Add 'self' argument.
11190
11191 2014-02-19 Tom Tromey <tromey@redhat.com>
11192
11193 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11194 * target.c (target_stop_recording): Add argument.
11195 * record.c (record_stop): Add argument.
11196 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11197 argument.
11198
11199 2014-02-19 Tom Tromey <tromey@redhat.com>
11200
11201 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11202 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11203 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11204 argument.
11205 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11206 (_initialize_amd64_linux_nat): Use it.
11207 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11208 (_initialize_i386_linux_nat): Use it.
11209
11210 2014-02-19 Tom Tromey <tromey@redhat.com>
11211
11212 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11213 * target.c (target_teardown_btrace): Add argument.
11214 * remote.c (remote_teardown_btrace): Add 'self' argument.
11215 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11216 argument.
11217 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11218 argument.
11219
11220 2014-02-19 Tom Tromey <tromey@redhat.com>
11221
11222 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11223 * target.c (target_disable_btrace): Add argument.
11224 * remote.c (remote_disable_btrace): Add 'self' argument.
11225 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11226 argument.
11227 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11228 argument.
11229
11230 2014-02-19 Tom Tromey <tromey@redhat.com>
11231
11232 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11233 * target.c (target_enable_btrace): Add argument.
11234 * remote.c (remote_enable_btrace): Add 'self' argument.
11235 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11236 argument.
11237 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11238 argument.
11239
11240 2014-02-19 Tom Tromey <tromey@redhat.com>
11241
11242 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11243 (target_can_use_agent): Add argument.
11244 * target.c (update_current_target): Update.
11245 * remote.c (remote_can_use_agent): Add 'self' argument.
11246 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11247
11248 2014-02-19 Tom Tromey <tromey@redhat.com>
11249
11250 * target.h (struct target_ops) <to_use_agent>: Add argument.
11251 (target_use_agent): Add argument.
11252 * target.c (update_current_target): Update.
11253 * remote.c (remote_use_agent): Add 'self' argument.
11254 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11255
11256 2014-02-19 Tom Tromey <tromey@redhat.com>
11257
11258 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11259 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11260 (target_traceframe_info): Add argument.
11261 * target.c (update_current_target): Update.
11262 * remote.c (remote_traceframe_info): Add 'self' argument.
11263 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11264
11265 2014-02-19 Tom Tromey <tromey@redhat.com>
11266
11267 * target.h (target_static_tracepoint_markers_by_strid): Add
11268 argument.
11269 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11270 'self' argument.
11271 * target.c (update_current_target): Update.
11272 * remote.c (struct target_ops)
11273 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11274 * linux-nat.c (struct target_ops)
11275 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11276
11277 2014-02-19 Tom Tromey <tromey@redhat.com>
11278
11279 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11280 Add argument.
11281 (target_static_tracepoint_marker_at): Add argument.
11282 * target.c (update_current_target): Update.
11283 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11284 argument.
11285
11286 2014-02-19 Tom Tromey <tromey@redhat.com>
11287
11288 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11289 (target_set_permissions): Add argument.
11290 * target.c (update_current_target): Update.
11291 * remote.c (remote_set_permissions): Add 'self' argument.
11292 (remote_start_remote): Update.
11293
11294 2014-02-19 Tom Tromey <tromey@redhat.com>
11295
11296 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11297 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11298 (target_get_tib_address): Add argument.
11299 * target.c (update_current_target): Update.
11300 * remote.c (remote_get_tib_address): Add 'self' argument.
11301
11302 2014-02-19 Tom Tromey <tromey@redhat.com>
11303
11304 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11305 (target_set_trace_notes): Add argument.
11306 * target.c (update_current_target): Update.
11307 * remote.c (remote_set_trace_notes): Add 'self' argument.
11308
11309 2014-02-19 Tom Tromey <tromey@redhat.com>
11310
11311 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11312 argument.
11313 (target_set_trace_buffer_size): Add argument.
11314 * target.c (update_current_target): Update.
11315 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11316
11317 2014-02-19 Tom Tromey <tromey@redhat.com>
11318
11319 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11320 argument.
11321 (target_set_circular_trace_buffer): Add argument.
11322 * target.c (update_current_target): Update.
11323 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11324 argument.
11325
11326 2014-02-19 Tom Tromey <tromey@redhat.com>
11327
11328 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11329 argument.
11330 (target_set_disconnected_tracing): Add argument.
11331 * target.c (update_current_target): Update.
11332 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11333
11334 2014-02-19 Tom Tromey <tromey@redhat.com>
11335
11336 * target.h (struct target_ops)
11337 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11338 (target_get_min_fast_tracepoint_insn_len): Add argument.
11339 * target.c (update_current_target): Update.
11340 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11341 argument.
11342
11343 2014-02-19 Tom Tromey <tromey@redhat.com>
11344
11345 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11346 argument.
11347 (target_get_raw_trace_data): Add argument.
11348 * target.c (update_current_target): Update.
11349 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11350
11351 2014-02-19 Tom Tromey <tromey@redhat.com>
11352
11353 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11354 Add argument.
11355 (target_upload_trace_state_variables): Add argument.
11356 * target.c (update_current_target): Update.
11357 * remote.c (remote_upload_trace_state_variables): Add 'self'
11358 argument.
11359 (remote_start_remote): Update.
11360
11361 2014-02-19 Tom Tromey <tromey@redhat.com>
11362
11363 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11364 argument.
11365 (target_upload_tracepoints): Add argument.
11366 * target.c (update_current_target): Update.
11367 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11368 (remote_start_remote): Update.
11369
11370 2014-02-19 Tom Tromey <tromey@redhat.com>
11371
11372 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11373 (target_save_trace_data): Add argument.
11374 * target.c (update_current_target): Update.
11375 * remote.c (remote_save_trace_data): Add 'self' argument.
11376
11377 2014-02-19 Tom Tromey <tromey@redhat.com>
11378
11379 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11380 argument.
11381 * target.h (struct target_ops)
11382 <to_get_trace_state_variable_value>: Add argument.
11383 (target_get_trace_state_variable_value): Add argument.
11384 * target.c (update_current_target): Update.
11385 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11386 argument.
11387 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11388
11389 2014-02-19 Tom Tromey <tromey@redhat.com>
11390
11391 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11392 * target.h (struct target_ops) <to_trace_find>: Add argument.
11393 (target_trace_find): Add argument.
11394 * target.c (update_current_target): Update.
11395 * remote.c (remote_trace_find): Add 'self' argument.
11396 * ctf.c (ctf_trace_find): Add 'self' argument.
11397
11398 2014-02-19 Tom Tromey <tromey@redhat.com>
11399
11400 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11401 (target_trace_stop): Add argument.
11402 * target.c (update_current_target): Update.
11403 * remote.c (remote_trace_stop): Add 'self' argument.
11404
11405 2014-02-19 Tom Tromey <tromey@redhat.com>
11406
11407 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11408 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11409 argument.
11410 (target_get_tracepoint_status): Add argument.
11411 * target.c (update_current_target): Update.
11412 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11413
11414 2014-02-19 Tom Tromey <tromey@redhat.com>
11415
11416 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11417 * target.h (struct target_ops) <to_get_trace_status>: Add
11418 argument.
11419 (target_get_trace_status): Add argument.
11420 * target.c (update_current_target): Update.
11421 * remote.c (remote_get_trace_status): Add 'self' argument.
11422 (remote_start_remote, remote_can_download_tracepoint): Update.
11423 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11424
11425 2014-02-19 Tom Tromey <tromey@redhat.com>
11426
11427 * target.h (struct target_ops) <to_trace_start>: Add argument.
11428 (target_trace_start): Add argument.
11429 * target.c (update_current_target): Update.
11430 * remote.c (remote_trace_start): Add 'self' argument.
11431
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11433
11434 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11435 Add argument.
11436 (target_trace_set_readonly_regions): Add argument.
11437 * target.c (update_current_target): Update.
11438 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11439 argument.
11440
11441 2014-02-19 Tom Tromey <tromey@redhat.com>
11442
11443 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11444 argument.
11445 (target_disable_tracepoint): Add argument.
11446 * target.c (update_current_target): Update.
11447 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11448
11449 2014-02-19 Tom Tromey <tromey@redhat.com>
11450
11451 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11452 argument.
11453 (target_enable_tracepoint): Add argument.
11454 * target.c (update_current_target): Update.
11455 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11456
11457 2014-02-19 Tom Tromey <tromey@redhat.com>
11458
11459 * target.h (struct target_ops) <to_download_trace_state_variable>:
11460 Add argument.
11461 (target_download_trace_state_variable): Add argument.
11462 * target.c (update_current_target): Update.
11463 * remote.c (remote_download_trace_state_variable): Add 'self'
11464 argument.
11465
11466 2014-02-19 Tom Tromey <tromey@redhat.com>
11467
11468 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11469 argument.
11470 (target_can_download_tracepoint): Add argument.
11471 * target.c (update_current_target): Update.
11472 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11473
11474 2014-02-19 Tom Tromey <tromey@redhat.com>
11475
11476 * target.h (struct target_ops) <to_download_tracepoint>: Add
11477 argument.
11478 (target_download_tracepoint): Add argument.
11479 * target.c (update_current_target): Update.
11480 * remote.c (remote_download_tracepoint): Add 'self' argument.
11481
11482 2014-02-19 Tom Tromey <tromey@redhat.com>
11483
11484 * target.h (struct target_ops) <to_trace_init>: Add argument.
11485 (target_trace_init): Add argument.
11486 * target.c (update_current_target): Update.
11487 * remote.c (remote_trace_init): Add 'self' argument.
11488
11489 2014-02-19 Tom Tromey <tromey@redhat.com>
11490
11491 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11492 * target.c (target_fileio_readlink): Add argument.
11493 * remote.c (remote_hostio_readlink): Add 'self' argument.
11494 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11495
11496 2014-02-19 Tom Tromey <tromey@redhat.com>
11497
11498 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11499 * target.c (target_fileio_unlink): Add argument.
11500 * remote.c (remote_hostio_unlink): Add 'self' argument.
11501 (remote_file_delete): Update.
11502 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11503
11504 2014-02-19 Tom Tromey <tromey@redhat.com>
11505
11506 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11507 * target.c (target_fileio_close): Add argument.
11508 * remote.c (remote_hostio_close): Add 'self' argument.
11509 (remote_hostio_close_cleanup): Update.
11510 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11511 Update.
11512 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11513
11514 2014-02-19 Tom Tromey <tromey@redhat.com>
11515
11516 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11517 * target.c (target_fileio_pread): Add argument.
11518 * remote.c (remote_hostio_pread): Add 'self' argument.
11519 (remote_bfd_iovec_pread, remote_file_get): Update.
11520 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11521
11522 2014-02-19 Tom Tromey <tromey@redhat.com>
11523
11524 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11525 * target.c (target_fileio_pwrite): Add argument.
11526 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11527 (remote_file_put): Update.
11528 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11529
11530 2014-02-19 Tom Tromey <tromey@redhat.com>
11531
11532 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11533 * target.c (target_fileio_open): Add argument.
11534 * remote.c (remote_hostio_open): Add 'self' argument.
11535 (remote_bfd_iovec_open): Add 'self' argument.
11536 (remote_file_put): Add 'self' argument.
11537 (remote_file_get): Add 'self' argument.
11538 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11539
11540 2014-02-19 Tom Tromey <tromey@redhat.com>
11541
11542 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11543 Add argument.
11544 (target_can_run_breakpoint_commands): Add argument.
11545 * target.c (update_current_target): Update.
11546 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11547 argument.
11548 (remote_insert_breakpoint): Add 'self' argument.
11549 (remote_insert_hw_breakpoint): Add 'self' argument.
11550 (remote_can_run_breakpoint_commands): Add 'self' argument.
11551
11552 2014-02-19 Tom Tromey <tromey@redhat.com>
11553
11554 * target.h (struct target_ops)
11555 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11556 (target_supports_evaluation_of_breakpoint_conditions): Add
11557 argument.
11558 * target.c (update_current_target): Update.
11559 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11560 argument.
11561 (remote_insert_breakpoint): Add 'self' argument.
11562 (remote_insert_hw_breakpoint): Add 'self' argument.
11563 (remote_supports_cond_breakpoints): Add 'self' argument.
11564
11565 2014-02-19 Tom Tromey <tromey@redhat.com>
11566
11567 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11568 argument.
11569 (target_supports_string_tracing): Add argument.
11570 * target.c (update_current_target): Update.
11571 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11572
11573 2014-02-19 Tom Tromey <tromey@redhat.com>
11574
11575 * target.h (struct target_ops)
11576 <to_supports_disable_randomization>: Add argument.
11577 * target.c (find_default_supports_disable_randomization): Add
11578 argument.
11579 (target_supports_disable_randomization): Add argument.
11580 (find_default_supports_disable_randomization): Add 'self'
11581 argument.
11582 * remote.c (extended_remote_supports_disable_randomization): Add
11583 'self' argument.
11584 (remote_supports_disable_randomization): Add 'self' argument.
11585 (extended_remote_create_inferior): Update.
11586 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11587 'self' argument.
11588
11589 2014-02-19 Tom Tromey <tromey@redhat.com>
11590
11591 * target.h (struct target_ops)
11592 <to_supports_enable_disable_tracepoint>: Add argument.
11593 (target_supports_enable_disable_tracepoint): Add argument.
11594 * target.c (update_current_target): Update.
11595 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11596 argument.
11597
11598 2014-02-19 Tom Tromey <tromey@redhat.com>
11599
11600 * target.h (struct target_ops) <to_supports_multi_process>: Add
11601 argument.
11602 (target_supports_multi_process): Add argument.
11603 * target.c (update_current_target): Update.
11604 * remote.c (remote_supports_multi_process): Add 'self' argument.
11605 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11606 argument.
11607 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11608 argument.
11609
11610 2014-02-19 Tom Tromey <tromey@redhat.com>
11611
11612 * target.h (struct target_ops) <to_execution_direction>: Add
11613 argument.
11614 (target_execution_direction): Add argument.
11615 * target.c (default_execution_direction): Add 'self' argument.
11616 * record-full.c (record_full_execution_direction): Add 'self'
11617 argument.
11618
11619 2014-02-19 Tom Tromey <tromey@redhat.com>
11620
11621 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11622 argument.
11623 (target_can_execute_reverse): Add argument.
11624 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11625 * record-full.c (record_full_can_execute_reverse): Add 'self'
11626 argument.
11627 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11628 argument.
11629
11630 2014-02-19 Tom Tromey <tromey@redhat.com>
11631
11632 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11633 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11634 argument.
11635 (target_get_ada_task_ptid): Add argument.
11636 * target.c (update_current_target): Update.
11637 (default_get_ada_task_ptid): Add 'self' argument.
11638 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11639 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11640 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11641 argument.
11642 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11643 argument.
11644 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11645 argument.
11646 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11647 argument.
11648 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11649 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11650 argument.
11651
11652 2014-02-19 Tom Tromey <tromey@redhat.com>
11653
11654 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11655 (target_goto_bookmark): Add argument.
11656 * target.c (dummy_goto_bookmark): Add 'self' argument.
11657 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11658
11659 2014-02-19 Tom Tromey <tromey@redhat.com>
11660
11661 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11662 (target_get_bookmark): Add argument.
11663 * target.c (dummy_get_bookmark): Add 'self' argument.
11664 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11665
11666 2014-02-19 Tom Tromey <tromey@redhat.com>
11667
11668 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11669 argument.
11670 (target_make_corefile_notes): Add argument.
11671 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11672 * procfs.c (procfs_make_note_section): Add 'self' argument.
11673 (procfs_make_note_section): Add 'self' argument.
11674 (procfs_make_note_section): Add 'self' argument.
11675 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11676 argument.
11677 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11678 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11679 * exec.c (exec_make_note_section): Add 'self' argument.
11680 (exec_make_note_section): Add 'self' argument.
11681
11682 2014-02-19 Tom Tromey <tromey@redhat.com>
11683
11684 * target.h (struct target_ops) <to_find_memory_regions>: Add
11685 argument.
11686 (target_find_memory_regions): Add argument.
11687 * target.c (dummy_find_memory_regions): Add 'self' argument.
11688 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11689 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11690 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11691 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11692 * exec. (exec_do_find_memory_regions): New global.
11693 (exec_set_find_memory_regions): Rewrite.
11694 (exec_find_memory_regions): New function.
11695 (init_exec_ops): Use exec_find_memory_regions.
11696
11697 2014-02-19 Tom Tromey <tromey@redhat.com>
11698
11699 * target.h (struct target_ops) <to_supports_non_stop>: Add
11700 argument.
11701 * target.c (find_default_supports_non_stop): Add argument.
11702 (target_supports_non_stop): Add argument.
11703 (find_default_supports_non_stop): Add 'self' argument.
11704 * remote.c (remote_supports_non_stop): Add 'self' argument.
11705 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11706
11707 2014-02-19 Tom Tromey <tromey@redhat.com>
11708
11709 * target.h (struct target_ops) <to_log_command>: Add argument.
11710 (target_log_command): Add argument.
11711 * serial.h (serial_log_command): Add 'self' argument.
11712 * serial.c (serial_log_command): Add 'self' argument.
11713
11714 2014-02-19 Tom Tromey <tromey@redhat.com>
11715
11716 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11717 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11718 argument.
11719 (target_pid_to_exec_file): Add argument.
11720 * target.c (debug_to_pid_to_exec_file): Add argument.
11721 (update_current_target): Update.
11722 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11723 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11724 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11725 (linux_handle_extended_wait): Update.
11726 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11727 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11728 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11729 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11730
11731 2014-02-19 Tom Tromey <tromey@redhat.com>
11732
11733 * target.h (struct target_ops) <to_rcmd>: Add argument.
11734 (target_rcmd): Add argument.
11735 * target.c (debug_to_rcmd): Add argument.
11736 (update_current_target, do_monitor_command): Update.
11737 * remote.c (remote_rcmd): Add 'self' argument.
11738 * monitor.c (monitor_rcmd): Add 'self' argument.
11739
11740 2014-02-19 Tom Tromey <tromey@redhat.com>
11741
11742 * windows-nat.c (windows_stop): Add 'self' argument.
11743 * target.h (struct target_ops) <to_stop>: Add argument.
11744 * target.c (target_stop): Add argument.
11745 (debug_to_stop): Add argument.
11746 (update_current_target): Update.
11747 * remote.c (remote_stop): Add 'self' argument.
11748 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11749 (gdbsim_cntrl_c): Update.
11750 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11751 * procfs.c (procfs_stop): Add 'self' argument.
11752 * nto-procfs.c (procfs_stop): Add 'self' argument.
11753 * monitor.c (monitor_stop): Add 'self' argument.
11754 (monitor_open): Update.
11755 * linux-nat.c (linux_nat_stop): Add argument.
11756 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11757 * gnu-nat.c (gnu_stop): Add 'self' argument.
11758 * darwin-nat.c (darwin_stop): Add 'self' argument.
11759
11760 2014-02-19 Tom Tromey <tromey@redhat.com>
11761
11762 * target.h (struct target_ops) <to_thread_name>: Add argument.
11763 * target.c (target_thread_name): Add argument.
11764 (update_current_target): Update.
11765 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11766
11767 2014-02-19 Tom Tromey <tromey@redhat.com>
11768
11769 * target.h (struct target_ops) <to_extra_thread_info>: Add
11770 argument.
11771 (target_extra_thread_info): Add argument.
11772 * target.c (update_current_target): Update.
11773 * remote.c (remote_threads_extra_info): Add 'self' argument.
11774 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11775 argument.
11776 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11777 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11778 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11779 argument.
11780 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11781 argument.
11782 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11783 argument.
11784 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11785 argument.
11786
11787 2014-02-19 Tom Tromey <tromey@redhat.com>
11788
11789 * target.h (struct target_ops) <to_program_signals>: Add argument.
11790 * target.c (target_program_signals): Add argument.
11791 * remote.c (remote_program_signals): Add 'self' argument.
11792
11793 2014-02-19 Tom Tromey <tromey@redhat.com>
11794
11795 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11796 * target.c (target_pass_signals): Add argument.
11797 * remote.c (remote_pass_signals): Add 'self' argument.
11798 (remote_start_remote): Update.
11799 * procfs.c (procfs_pass_signals): Add 'self' argument.
11800 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11801 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11802 (linux_nat_create_inferior, linux_nat_attach): Update.
11803
11804 2014-02-19 Tom Tromey <tromey@redhat.com>
11805
11806 * windows-nat.c (windows_can_run): Add 'self' argument.
11807 * target.h (struct target_ops) <to_can_run>: Add argument.
11808 (target_can_run): Add argument.
11809 * target.c (debug_to_can_run): Add argument.
11810 (update_current_target): Update.
11811 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11812 * inf-child.c (inf_child_can_run): Add 'self' argument.
11813 * go32-nat.c (go32_can_run): Add 'self' argument.
11814
11815 2014-02-19 Tom Tromey <tromey@redhat.com>
11816
11817 * target.h (struct target_ops) <to_has_exited>: Add argument.
11818 (target_has_exited): Add argument.
11819 * target.c (debug_to_has_exited): Add argument.
11820 (update_current_target): Update.
11821
11822 2014-02-19 Tom Tromey <tromey@redhat.com>
11823
11824 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11825 argument.
11826 (target_set_syscall_catchpoint): Add argument.
11827 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11828 argument.
11829 * target.c (update_current_target): Update.
11830
11831 2014-02-19 Tom Tromey <tromey@redhat.com>
11832
11833 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11834 argument.
11835 (target_remove_exec_catchpoint): Add argument.
11836 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11837 (update_current_target): Update.
11838 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11839 argument.
11840
11841 2014-02-19 Tom Tromey <tromey@redhat.com>
11842
11843 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11844 argument.
11845 (target_insert_exec_catchpoint): Add argument.
11846 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11847 (update_current_target): Update.
11848 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11849 argument.
11850
11851 2014-02-19 Tom Tromey <tromey@redhat.com>
11852
11853 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11854 argument.
11855 (target_remove_vfork_catchpoint): Add argument.
11856 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11857 (update_current_target): Update.
11858 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11859 argument.
11860
11861 2014-02-19 Tom Tromey <tromey@redhat.com>
11862
11863 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11864 argument.
11865 (target_insert_vfork_catchpoint): Add argument.
11866 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11867 (update_current_target): Update.
11868 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11869 argument.
11870
11871 2014-02-19 Tom Tromey <tromey@redhat.com>
11872
11873 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11874 argument.
11875 (target_remove_fork_catchpoint): Add argument.
11876 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11877 (update_current_target): Update.
11878 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11879 argument.
11880
11881 2014-02-19 Tom Tromey <tromey@redhat.com>
11882
11883 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11884 argument.
11885 (target_insert_fork_catchpoint): Add argument.
11886 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11887 (update_current_target): Update.
11888 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11889 argument.
11890
11891 2014-02-19 Tom Tromey <tromey@redhat.com>
11892
11893 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11894 argument.
11895 (target_post_startup_inferior): Add argument.
11896 * target.c (debug_to_post_startup_inferior): Add argument.
11897 (update_current_target): Update.
11898 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11899 argument.
11900 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11901 argument.
11902 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11903 argument.
11904 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11905 argument.
11906 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11907 'self' argument.
11908 (super_post_startup_inferior): Likewise.
11909 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11910 'self' argument.
11911 (super_post_startup_inferior): Likewise.
11912 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11913 Add 'self' argument.
11914 (super_post_startup_inferior): Likewise.
11915
11916 2014-02-19 Tom Tromey <tromey@redhat.com>
11917
11918 * target.h (struct target_ops) <to_load>: Add argument.
11919 * target.c (target_load): Add argument.
11920 (debug_to_load): Add argument.
11921 (update_current_target): Update.
11922 * remote.c (remote_load): Add 'self' argument.
11923 * remote-sim.c (gdbsim_load): Add 'self' argument.
11924 * remote-mips.c (mips_load): Add 'self' argument.
11925 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11926 * monitor.c (monitor_load): Add 'self' argument.
11927 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11928
11929 2014-02-19 Tom Tromey <tromey@redhat.com>
11930
11931 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11932 (target_terminal_info): Add argument.
11933 * target.c (debug_to_terminal_info): Add argument.
11934 (default_terminal_info): Likewise.
11935 * inflow.c (child_terminal_info): Add 'self' argument.
11936 * inferior.h (child_terminal_info): Add 'self' argument.
11937 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11938
11939 2014-02-19 Tom Tromey <tromey@redhat.com>
11940
11941 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11942 argument.
11943 (target_terminal_save_ours): Add argument.
11944 * target.c (debug_to_terminal_save_ours): Add argument.
11945 (update_current_target): Update.
11946 * inflow.c (terminal_save_ours): Add 'self' argument.
11947 * inferior.h (terminal_save_ours): Add 'self' argument.
11948
11949 2014-02-19 Tom Tromey <tromey@redhat.com>
11950
11951 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11952 (target_terminal_ours): Add argument.
11953 * target.c (debug_to_terminal_ours): Add argument.
11954 (update_current_target): Update.
11955 * remote.c (remote_terminal_ours): Add 'self' argument.
11956 (remote_close): Update.
11957 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11958 * inflow.c (terminal_ours): Add 'self' argument.
11959 * inferior.h (terminal_ours): Add 'self' argument.
11960 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11961
11962 2014-02-19 Pedro Alves <palves@redhat.com>
11963 Tom Tromey <tromey@redhat.com>
11964
11965 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11966 argument.
11967 (target_terminal_ours_for_output): Add argument.
11968 * target.c (debug_to_terminal_ours_for_output): Add argument.
11969 (update_current_target): Update.
11970 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11971 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11972 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11973
11974 2014-02-19 Tom Tromey <tromey@redhat.com>
11975
11976 * target.h (struct target_ops) <to_terminal_inferior>: Add
11977 argument.
11978 * target.c (target_terminal_inferior): Add argument.
11979 (update_current_target): Update.
11980 * remote.c (remote_terminal_inferior): Add 'self' argument.
11981 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11982 * inflow.c (terminal_inferior): Add 'self' argument.
11983 * inferior.h (terminal_inferior): Add 'self' argument.
11984 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11985 (go32_terminal_inferior): Add 'self' argument.
11986
11987 2014-02-19 Tom Tromey <tromey@redhat.com>
11988
11989 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11990 (target_terminal_init): Add argument.
11991 * target.c (debug_to_terminal_init): Add argument.
11992 (update_current_target): Update.
11993 * inflow.c (terminal_init_inferior): Add 'self' argument.
11994 * inferior.h (terminal_init_inferior): Add 'self' argument.
11995 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11996 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11997
11998 2014-02-19 Tom Tromey <tromey@redhat.com>
11999
12000 * target.h (struct target_ops)
12001 <to_can_accel_watchpoint_condition>: Add argument.
12002 (target_can_accel_watchpoint_condition): Add argument.
12003 * target.c (debug_to_can_accel_watchpoint_condition): Add
12004 argument.
12005 (update_current_target): Update.
12006 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12007 'self' argument.
12008
12009 2014-02-19 Tom Tromey <tromey@redhat.com>
12010
12011 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12012 Add argument.
12013 (target_region_ok_for_hw_watchpoint): Add argument.
12014 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12015 (default_region_ok_for_hw_watchpoint): Add argument.
12016 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12017 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12018 argument.
12019 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12020 argument.
12021 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12022 argument.
12023 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12024 'self' argument.
12025 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12026 'self' argument.
12027 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12028 'self' argument.
12029 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12030 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12031 'self' argument.
12032 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12033 Add 'self' argument.
12034
12035 2014-02-19 Tom Tromey <tromey@redhat.com>
12036
12037 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12038 argument.
12039 (target_insert_watchpoint): Add argument.
12040 * target.c (debug_to_insert_watchpoint): Add argument.
12041 (update_current_target): Update.
12042 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12043 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12044 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12045 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12046 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12047 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12048 argument.
12049 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12050 (procfs_insert_hw_watchpoint): Add 'self' argument.
12051 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12052 argument.
12053 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12054 argument.
12055 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12056 argument.
12057 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12058 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12059 argument.
12060 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12061 'self' argument.
12062
12063 2014-02-19 Tom Tromey <tromey@redhat.com>
12064
12065 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12066 argument.
12067 (target_remove_watchpoint): Add argument.
12068 * target.c (debug_to_remove_watchpoint): Add argument.
12069 (update_current_target): Update.
12070 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12071 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12072 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12073 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12074 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12075 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12076 argument.
12077 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12078 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12079 argument.
12080 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12081 argument.
12082 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12083 argument.
12084 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12085 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12086 argument.
12087 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12088 'self' argument.
12089
12090 2014-02-19 Tom Tromey <tromey@redhat.com>
12091
12092 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12093 argument.
12094 (target_remove_hw_breakpoint): Add argument.
12095 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12096 (update_current_target): Update.
12097 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12098 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12099 argument.
12100 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12101 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12102 argument.
12103 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12104 'self' argument.
12105
12106 2014-02-19 Tom Tromey <tromey@redhat.com>
12107
12108 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12109 argument.
12110 (target_insert_hw_breakpoint): Add argument.
12111 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12112 (update_current_target): Update.
12113 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12114 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12115 argument.
12116 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12117 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12118 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12119 argument.
12120 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12121 'self' argument.
12122
12123 2014-02-19 Tom Tromey <tromey@redhat.com>
12124
12125 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12126 argument.
12127 (target_can_use_hardware_watchpoint): Add argument.
12128 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12129 (update_current_target): Update.
12130 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12131 argument.
12132 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12133 argument.
12134 * remote.c (remote_check_watch_resources): Add 'self' argument.
12135 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12136 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12137 argument.
12138 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12139 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12140 argument.
12141 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12142 argument.
12143 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12144 argument.
12145 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12146 argument.
12147 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12148 argument.
12149 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12150 argument.
12151 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12152 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12153 argument.
12154 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12155 'self' argument.
12156
12157 2014-02-19 Tom Tromey <tromey@redhat.com>
12158
12159 * target.h (struct target_ops) <to_post_attach>: Add argument.
12160 (target_post_attach): Add argument.
12161 * target.c (debug_to_post_attach): Add argument.
12162 (update_current_target): Update.
12163 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12164 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12165 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12166 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12167 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12168
12169 2014-02-19 Tom Tromey <tromey@redhat.com>
12170
12171 * windows-nat.c (windows_close): Add 'self' argument.
12172 * tracepoint.c (tfile_close): Add 'self' argument.
12173 * target.h (struct target_ops) <to_close>: Add argument.
12174 * target.c (target_close): Add argument.
12175 (update_current_target): Update.
12176 * remote.c (remote_close): Add 'self' argument.
12177 * remote-sim.c (gdbsim_close): Add 'self' argument.
12178 * remote-mips.c (mips_close): Add 'self' argument.
12179 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12180 * record-full.c (record_full_close): Add 'self' argument.
12181 * record-btrace.c (record_btrace_close): Add 'self' argument.
12182 * monitor.h (monitor_close): Add 'self' argument.
12183 * monitor.c (monitor_close): Add 'self' argument.
12184 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12185 * linux-nat.c (linux_nat_close): Add argument.
12186 * go32-nat.c (go32_close): Add 'self' argument.
12187 * exec.c (exec_close_1): Add 'self' argument.
12188 * ctf.c (ctf_close): Add 'self' argument.
12189 * corelow.c (core_close): Add 'self' argument.
12190 (core_close_cleanup): Update.
12191 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12192 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12193
12194 2014-02-19 Tom Tromey <tromey@redhat.com>
12195
12196 * remote.c (remote_load): New function.
12197 (init_remote_ops): Use it.
12198
12199 2014-02-19 Tom Tromey <tromey@redhat.com>
12200
12201 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12202 argument.
12203 * common/linux-btrace.h (linux_supports_btrace): Update.
12204 * remote.c (remote_supports_btrace): Add "self" argument.
12205 * target-delegates.c: Rebuild.
12206 * target.c (target_supports_btrace): Remove.
12207 * target.h (struct target_ops) <to_supports_btrace>: Add
12208 target_ops argument.
12209 (target_supports_btrace): New define.
12210
12211 2014-02-19 Tom Tromey <tromey@redhat.com>
12212
12213 * record-full.c (record_full_beneath_to_resume_ops)
12214 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12215 (record_full_beneath_to_wait)
12216 (record_full_beneath_to_store_registers_ops)
12217 (record_full_beneath_to_store_registers)
12218 (record_full_beneath_to_xfer_partial_ops)
12219 (record_full_beneath_to_xfer_partial)
12220 (record_full_beneath_to_insert_breakpoint_ops)
12221 (record_full_beneath_to_insert_breakpoint)
12222 (record_full_beneath_to_remove_breakpoint_ops)
12223 (record_full_beneath_to_remove_breakpoint)
12224 (record_full_beneath_to_stopped_by_watchpoint)
12225 (record_full_beneath_to_stopped_data_address)
12226 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12227 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12228 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12229 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12230 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12231 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12232 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12233 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12234 (record_full_resume, record_full_wait_1)
12235 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12236 (record_full_store_registers, record_full_xfer_partial)
12237 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12238 (record_full_async, record_full_core_xfer_partial): Use target
12239 delegation.
12240 * target-delegates.c: Rebuild.
12241 * target.c (current_xfer_partial): Remove.
12242 (update_current_target): Do not INHERIT or de_fault
12243 to_insert_breakpoint, to_remove_breakpoint,
12244 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12245 to_is_async_p, to_async. Do not set to_xfer_partial field.
12246 (default_xfer_partial): Simplify.
12247 (current_xfer_partial): Remove.
12248 (target_wait, target_resume): Simplify.
12249 (find_default_can_async_p, find_default_is_async_p): Update.
12250 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12251 to_xfer_partial, to_stopped_by_watchpoint,
12252 to_stopped_data_address.
12253 (target_store_registers): Simplify.
12254 (forward_target_remove_breakpoint)
12255 (forward_target_insert_breakpoint): Remove.
12256 (target_remove_breakpoint, target_insert_breakpoint)
12257 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12258 * target.h (struct target_ops) <to_resume, to_wait,
12259 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12260 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12261 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12262 markup.
12263 (forward_target_remove_breakpoint)
12264 (forward_target_insert_breakpoint): Remove.
12265 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12266 directly.
12267 (record_btrace_insert_breakpoint): Delegate directly.
12268
12269 2014-02-19 Tom Tromey <tromey@redhat.com>
12270
12271 PR build/7701:
12272 * target-delegates.c: New file.
12273 * target.c: Include target-delegates.c.
12274 (init_dummy_target): Call install_dummy_methods.
12275 (complete_target_initialization): Call install_delegators.
12276 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12277 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12278 * make-target-delegates: New file.
12279
12280 2014-02-19 Tom Tromey <tromey@redhat.com>
12281
12282 * record.c (find_record_target): Use find_target_at.
12283 * target.c (find_target_at): New function.
12284 * target.h (find_target_at): Declare.
12285
12286 2014-02-19 Tom Tromey <tromey@redhat.com>
12287
12288 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12289 Add 'ops' argument.
12290 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12291 'ops' argument.
12292 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12293 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12294 'ops' argument.
12295 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12296 argument.
12297 * linux-nat.c (save_sigtrap): Update.
12298 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12299 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12300 (linux_nat_close): Update.
12301 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12302 argument.
12303 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12304 argument.
12305 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12306 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12307 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12308 (tmp_to_async): Add 'ops' argument.
12309 (record_full_stopped_by_watchpoint, record_full_async)
12310 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12311 argument.
12312 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12313 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12314 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12315 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12316 (remote_is_async_p, remote_async): Add 'ops' argument.
12317 (remote_stopped_data_address): Update.
12318 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12319 * target.c (update_current_target)
12320 (find_default_can_async_p, find_default_is_async_p): Update.
12321 (init_dummy_target): Update.
12322 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12323 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12324 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12325 (target_can_async_p, target_is_async_p, target_async)
12326 (target_stopped_by_watchpoint): Update.
12327
12328 2014-02-19 Yao Qi <yao@codesourcery.com>
12329
12330 PR gdb/16220
12331 * gdbarch.sh: Remove startup_gdbarch.
12332 * gdbarch.c: Regenerated.
12333 * gdbarch.h: Likewise.
12334
12335 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12336
12337 * rl78-tdep.c (rl78_g10_register_name): New function.
12338 (rl78_return_value): Add g10 support.
12339 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12340 g10.
12341
12342 2014-02-17 Doug Evans <xdje42@gmail.com>
12343
12344 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12345 (SUBDIR_GUILE_SRCS): Ditto.
12346 (scm-gsmob.o): Ditto.
12347
12348 2014-02-17 Yao Qi <yao@codesourcery.com>
12349
12350 * gnu-nat.c (ILL_RPC): Declare defined function.
12351
12352 2014-02-17 Yao Qi <yao@codesourcery.com>
12353
12354 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12355 mach_msg_type_number_t.
12356 (gnu_write_inferior): Likewise.
12357
12358 2014-02-17 Yao Qi <yao@codesourcery.com>
12359
12360 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12361 in format string.
12362 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12363 (inf_validate_procs, inf_signal): Likewise.
12364 (S_exception_raise_request): Likewise.
12365 (do_mach_notify_dead_name): Likewise.
12366 (steal_exc_port): Likewise.
12367 (gnu_read_inferior): Change 'copy_count''s type to
12368 mach_msg_type_number_t.
12369 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12370 format string.
12371
12372 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12373
12374 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12375 flag. Adjust all users; in particular...
12376 (gnu_wait): ..., don't decrement its value in here...
12377 (gnu_create_inferior): ..., and instead set the flag in here,
12378 around the startup_inferior call, and call that one with
12379 START_INFERIOR_TRAPS_EXPECTED.
12380
12381 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12382 (ILL_RPC): ... new macro.
12383 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12384 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12385 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12386 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12387 functions with ILL_RPC macro.
12388 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12389 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12390 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12391 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12392 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12393 (S_proc_getlogin_reply, S_proc_getsid_reply)
12394 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12395 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12396 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12397 (S_proc_getnports_reply, S_proc_is_important_reply)
12398 (S_proc_get_code_reply): New stub functions, generated with
12399 ILL_RPC macro.
12400
12401 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12402 collected the type check structures.
12403
12404 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12405
12406 2014-02-14 Doug Evans <dje@google.com>
12407
12408 * target.c (target_write_partial): Fix result type.
12409
12410 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12411
12412 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12413 the proper offsets to access fpregset_t.
12414
12415 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12416
12417 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12418 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12419 * h8300-tdep.c (setmachinelist): Remove global.
12420 * hppa-tdep.c (hppa_sigtramp): Remove global.
12421 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12422 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12423 * ravenscar-thread.c (update_target_observer): Remove global.
12424 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12425
12426 2014-02-12 Tom Tromey <tromey@redhat.com>
12427
12428 * common/rsp-low.c: Update comments.
12429 * common/rsp-low.h: Update comments.
12430
12431 2014-02-12 Tom Tromey <tromey@redhat.com>
12432
12433 * common/rsp-low.c (convert_ascii_to_int): Remove.
12434 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12435
12436 2014-02-12 Tom Tromey <tromey@redhat.com>
12437
12438 * common/rsp-low.h (unhexify): Don't declare.
12439 * common/rsp-low.c (unhexify): Remove.
12440
12441 2014-02-12 Tom Tromey <tromey@redhat.com>
12442
12443 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12444 * common/rsp-low.c (convert_int_to_ascii): Remove.
12445
12446 2014-02-12 Tom Tromey <tromey@redhat.com>
12447
12448 * common/rsp-low.h (hexify): Don't declare.
12449 * common/rsp-low.c (hexify): Remove.
12450
12451 2014-02-12 Tom Tromey <tromey@redhat.com>
12452
12453 * common/rsp-low.c (hexify): Never take strlen of argument.
12454
12455 2014-02-12 Tom Tromey <tromey@redhat.com>
12456
12457 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12458 * remote.c (extended_remote_run, remote_rcmd)
12459 (remote_download_trace_state_variable, remote_save_trace_data)
12460 (remote_set_trace_notes): Update.
12461 * tracepoint.c (encode_source_string, tfile_write_status)
12462 (tfile_write_uploaded_tsv): Update.
12463
12464 2014-02-12 Tom Tromey <tromey@redhat.com>
12465
12466 * tracepoint.c: Include rsp-low.h.
12467 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12468 * remote.c: Include rsp-low.h.
12469 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12470 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12471 (remote_unescape_input): Move to common/rsp-low.c.
12472 * common/rsp-low.h: New file.
12473 * common/rsp-low.c: New file.
12474 * Makefile.in (SFILES): Add common/rsp-low.c.
12475 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12476 (COMMON_OBS): Add rsp-low.o.
12477 (rsp-low.o): New target.
12478
12479 2014-02-12 Tom Tromey <tromey@redhat.com>
12480
12481 * utils.h: Include print-utils.h.
12482 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12483 (int_string, core_addr_to_string, core_addr_to_string_nz)
12484 (hex_string, hex_string_custom): Don't declare.
12485 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12486 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12487 (hex_string_custom, int_string, core_addr_to_string)
12488 (core_addr_to_string_nz, host_address_to_string): Move to
12489 common/print-utils.c.
12490 * common/print-utils.h: New file.
12491 * common/print-utils.c: New file
12492 * Makefile.in (SFILES): Add common/print-utils.c.
12493 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12494 (COMMON_OBS): Add print-utils.o.
12495 (print-utils.o): New target.
12496
12497 2014-02-12 Tom Tromey <tromey@redhat.com>
12498
12499 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12500
12501 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12502
12503 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12504
12505 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12506
12507 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12508 if a PT_IO ptrace request returns sucessfully but indicates that 0
12509 bytes were transferred.
12510
12511 2014-02-12 Pedro Alves <palves@redhat.com>
12512 Kevin Buettner <kevinb@redhat.com>
12513
12514 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12515 TYPE_INSTANCE_FLAG_CODE_SPACE.
12516
12517 2014-02-12 Pedro Alves <palves@redhat.com>
12518
12519 * h8300-tdep.c (pseudo_from_raw_register)
12520 (raw_from_pseudo_register): New functions.
12521 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12522 them.
12523
12524 2014-02-12 Pedro Alves <palves@redhat.com>
12525
12526 * h8300-tdep.c (h8300_register_sim_regno): New function.
12527 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12528 gdbarch_register_sim_regno hook.
12529
12530 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12531
12532 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12533
12534 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12535
12536 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12537
12538 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12539
12540 * obsd-tdep.h (obsd_init_abi): New prototype.
12541 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12542 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12543 (obsd_init_abi): New functions.
12544 * i386obsd-tdep.c: Include "obsd-tdep.h".
12545 (i386obsd_init_abi): Call obsd_init_abi.
12546 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12547 (amd64obsd_init_abi): Call obsd_init_abi.
12548 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12549 obsd-tdep.c to gdb_target_obs.
12550
12551 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12552
12553 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12554 double float arguments to 16-byte in the argument slots.
12555
12556 2014-02-11 Doug Evans <xdje42@gmail.com>
12557
12558 * configure.ac: Don't crash if pkg-config is not found and guile
12559 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12560 in guile checks.
12561 * configure: Regenerate.
12562
12563 2014-02-11 Yao Qi <yao@codesourcery.com>
12564
12565 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12566 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12567 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12568 * gnu-nat.c (gnu_xfer_memory): Likewise.
12569 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12570 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12571 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12572 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12573
12574 2014-02-11 Yao Qi <yao@codesourcery.com>
12575
12576 * target.h (enum target_xfer_error): Rename to ...
12577 (enum target_xfer_status): ... it. New. All users updated.
12578 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12579 New.
12580 (TARGET_XFER_STATUS_ERROR_P): New macro.
12581 (target_xfer_error_to_string): Remove declaration.
12582 (target_xfer_status_to_string): Declare.
12583 (target_xfer_partial_ftype): Adjust it.
12584 (struct target_ops) <to_xfer_partial>: Return
12585 target_xfer_status. Add argument xfered_len. Update
12586 comments.
12587 * target.c (target_xfer_error_to_string): Rename to ...
12588 (target_xfer_status_to_string): ... it. New. All callers
12589 updated.
12590 (target_read_live_memory): Likewise. Call target_xfer_partial
12591 instead of target_read.
12592 (memory_xfer_live_readonly_partial): Return
12593 target_xfer_status. Add argument xfered_len.
12594 (raw_memory_xfer_partial): Likewise.
12595 (memory_xfer_partial_1): Likewise.
12596 (memory_xfer_partial): Likewise.
12597 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12598 properly. Update debug message.
12599 (default_xfer_partial, current_xfer_partial): Likewise.
12600 (target_write_partial): Likewise.
12601 (target_read_partial): Likewise. All callers updated.
12602 (read_whatever_is_readable): Likewise.
12603 (target_write_with_progress): Likewise.
12604 (target_read_alloc_1): Likewise.
12605
12606 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12607 * auxv.c (procfs_xfer_auxv): Likewise.
12608 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12609 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12610 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12611 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12612 * corefile.c (read_memory): Adjust.
12613 * corelow.c (core_xfer_partial): Likewise.
12614 * ctf.c (ctf_xfer_partial): Likewise.
12615 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12616 updated.
12617 (darwin_xfer_partial): Likewise.
12618 * exec.c (section_table_xfer_memory_partial): Likewise. All
12619 callers updated.
12620 (exec_xfer_partial): Likewise.
12621 * exec.h (section_table_xfer_memory_partial): Update
12622 declaration.
12623 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12624 negative.
12625 (gnu_xfer_partial): Likewise.
12626 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12627 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12628 (ia64_hpux_xfer_solib_got): Likewise.
12629 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12630 type of 'partial_len' to ULONGEST.
12631 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12632 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12633 (linux_nat_xfer_partial): Likewise.
12634 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12635 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12636 * monitor.c (monitor_xfer_memory): Likewise.
12637 (monitor_xfer_partial): Likewise.
12638 * procfs.c (procfs_xfer_partial): Likewise.
12639 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12640 * record-full.c (record_full_xfer_partial): Likewise.
12641 (record_full_core_xfer_partial): Likewise.
12642 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12643 (gdbsim_xfer_partial): Likewise.
12644 * remote.c (remote_write_bytes_aux): Likewise. All callers
12645 updated.
12646 (remote_write_bytes, remote_read_bytes): Likewise. All
12647 callers updated.
12648 (remote_flash_erase): Likewise. All callers updated.
12649 (remote_write_qxfer): Likewise. All callers updated.
12650 (remote_read_qxfer): Likewise. All callers updated.
12651 (remote_xfer_partial): Likewise.
12652 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12653 (rs6000_xfer_shared_libraries): Likewise.
12654 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12655 (sol_thread_xfer_partial): Likewise.
12656 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12657 (sparc_xfer_partial): Likewise.
12658 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12659 updated.
12660 (spu_xfer_partial): Likewise.
12661 * spu-multiarch.c (spu_xfer_partial): Likewise.
12662 * tracepoint.c (tfile_xfer_partial): Likewise.
12663 * windows-nat.c (windows_xfer_memory): Likewise.
12664 (windows_xfer_shared_libraries): Likewise.
12665 (windows_xfer_partial): Likewise.
12666 * valprint.c: Replace 'target_xfer_error' with
12667 'target_xfer_status' in comments.
12668
12669 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12670
12671 Checked in by Joel Brobecker <brobecker@adacore.com>.
12672 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12673
12674 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12675
12676 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12677 function parameters.
12678
12679 2014-02-10 Will Newton <will.newton@linaro.org>
12680
12681 * elfread.c (elf_rel_plt_read): Look for a .got section if
12682 looking up .got.plt fails.
12683 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12684 on address passed to elf_gnu_ifunc_record_cache.
12685 (elf_gnu_ifunc_resolve_addr): Likewise.
12686 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12687
12688 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12689
12690 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12691 (X_RETTURN): New macro.
12692 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12693
12694 * sparc64-tdep.c (sparc64_init_abi): Hook
12695 sparc_in_function_epilogue_p.
12696
12697 2014-02-10 Gary Benson <gbenson@redhat.com>
12698
12699 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12700 Rename name_matcher to symbol_matcher.
12701
12702 2014-02-10 Gary Benson <gbenson@redhat.com>
12703
12704 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12705 Use expand_symtabs_file_matcher_ftype and
12706 expand_symtabs_symbol_matcher_ftype.
12707
12708 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12709
12710 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12711 (struct ada_symbol_cache): New.
12712 (ada_free_symbol_cache): Forward declare.
12713 (struct ada_pspace_data): New.
12714 (ada_pspace_data_handle): New static global.
12715 (get_ada_pspace_data, ada_pspace_data_cleanup)
12716 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12717 (cache_space, cache): Delete, now folded inside struct
12718 ada_pspace_data.
12719 (ada_get_symbol_cache): New function.
12720 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12721 implementation.
12722 (_initialize_ada_language): Remove initialization of cache_space.
12723 Move call to observer_attach_inferior_exit up, grouping it
12724 with the other observer registrations inside this function.
12725 Rename command to be more general. Add call to
12726 register_program_space_data_with_cleanup.
12727
12728 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12729
12730 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12731 ada_new_objfile_observer.
12732 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12733 (_initialize_tasks): Update uses of ada_new_objfile_observer
12734 and ada_tasks_normal_stop_observer.
12735
12736 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12737
12738 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12739 returned by the 'Length attribute to integer.
12740
12741 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12742
12743 * ada-lang.c (_initialize_ada_language): Initialize
12744 cache_space obstack.
12745
12746 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12747
12748 * ada-lang.c (HASH_SIZE): New macro.
12749 (struct cache_entry): New type.
12750 (cache_space, cache): New static globals.
12751 (ada_clear_symbol_cache, find_entry): New functions.
12752 (lookup_cached_symbol, cache_symbol): Implement.
12753 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12754 (_initialize_ada_language): Attach ada_new_objfile_observer
12755 and ada_free_objfile_observer.
12756
12757 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12758
12759 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12760 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12761 struct block * parameter.
12762 (ada_lookup_symbol_list_worker): Constify local variable "block".
12763 Remove cast which is no longer necessary.
12764
12765 2014-02-10 Doug Evans <xdje42@gmail.com>
12766
12767 Add Guile as an extension language.
12768 * NEWS: Mention Guile scripting.
12769 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12770 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12771 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12772 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12773 (CLIBS): Add GUILE_LIBS.
12774 (install-guile): New rule.
12775 (guile.o): New rule.
12776 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12777 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12778 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12779 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12780 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12781 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12782 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12783 * configure.ac: New option --with-guile.
12784 * configure: Regenerate.
12785 * config.in: Regenerate.
12786 * auto-load.c: Remove #include "python/python.h". Add #include
12787 "gdb/section-scripts.h".
12788 (source_section_scripts): Handle Guile scripts.
12789 (_initialize_auto_load): Add name of Guile objfile script to
12790 scripts-directory help text.
12791 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12792 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12793 (struct breakpoint): New member scm_bp_object.
12794 * defs.h (enum command_control_type): New value guile_control.
12795 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12796 "extension.h".
12797 (show_user): Update comment.
12798 (_initialize_cli_cmds): Update help text for "show user". Update help
12799 text for max-user-call-depth.
12800 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12801 "extension.h".
12802 (multi_line_command_p): Add guile_control.
12803 (print_command_lines): Handle guile_control.
12804 (execute_control_command, recurse_read_control_structure): Ditto.
12805 (process_next_line): Recognize "guile" commands.
12806 * disasm.c (gdb_disassemble_info): Make non-static.
12807 * disasm.h: #include "dis-asm.h".
12808 (struct gdbarch): Add forward decl.
12809 (gdb_disassemble_info): Declare.
12810 * extension.c: #include "guile/guile.h".
12811 (extension_languages): Add guile.
12812 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12813 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12814 * gdbtypes.c (get_unsigned_type_max): New function.
12815 (get_signed_type_minmax): New function.
12816 * gdbtypes.h (get_unsigned_type_max): Declare.
12817 (get_signed_type_minmax): Declare.
12818 * guile/README: New file.
12819 * guile/guile-internal.h: New file.
12820 * guile/guile.c: New file.
12821 * guile/guile.h: New file.
12822 * guile/scm-arch.c: New file.
12823 * guile/scm-auto-load.c: New file.
12824 * guile/scm-block.c: New file.
12825 * guile/scm-breakpoint.c: New file.
12826 * guile/scm-disasm.c: New file.
12827 * guile/scm-exception.c: New file.
12828 * guile/scm-frame.c: New file.
12829 * guile/scm-gsmob.c: New file.
12830 * guile/scm-iterator.c: New file.
12831 * guile/scm-lazy-string.c: New file.
12832 * guile/scm-math.c: New file.
12833 * guile/scm-objfile.c: New file.
12834 * guile/scm-ports.c: New file.
12835 * guile/scm-pretty-print.c: New file.
12836 * guile/scm-safe-call.c: New file.
12837 * guile/scm-string.c: New file.
12838 * guile/scm-symbol.c: New file.
12839 * guile/scm-symtab.c: New file.
12840 * guile/scm-type.c: New file.
12841 * guile/scm-utils.c: New file.
12842 * guile/scm-value.c: New file.
12843 * guile/lib/gdb.scm: New file.
12844 * guile/lib/gdb/boot.scm: New file.
12845 * guile/lib/gdb/experimental.scm: New file.
12846 * guile/lib/gdb/init.scm: New file.
12847 * guile/lib/gdb/iterator.scm: New file.
12848 * guile/lib/gdb/printing.scm: New file.
12849 * guile/lib/gdb/types.scm: New file.
12850 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12851 (VPATH): Add $(GUILE_SRCDIR).
12852 (GUILE_DIR): New variable.
12853 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12854 (all): Add stamp-guile dependency.
12855 (stamp-guile): New rule.
12856 (clean-guile, install-guile, uninstall-guile): New rules.
12857 (install-only): Add install-guile dependency.
12858 (uninstall): Add uninstall-guile dependency.
12859 (clean): Add clean-guile dependency.
12860
12861 2014-02-09 Doug Evans <xdje42@gmail.com>
12862
12863 Revert this patch (which I approved, mea culpa).
12864
12865 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12866
12867 * Makefile.in (all-lib): Remove.
12868 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12869
12870 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12871
12872 Fix Python stack corruption.
12873 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12874 gdb_py_longest.
12875
12876 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12877
12878 * Makefile.in (all-lib): Remove.
12879 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12880
12881 2014-02-07 Doug Evans <dje@google.com>
12882
12883 * extension-priv.h (extension_language_script_ops): Add comment.
12884 (extension_language_ops): Add comment.
12885 (active_ext_lang_state): Fix typo in comment.
12886
12887 2014-02-07 Pedro Alves <palves@redhat.com>
12888
12889 PR breakpoints/16292
12890 * infrun.c (handle_signal_stop) <signal arrives while stepping
12891 over a breakpoint>: Switch back to the stepping thread.
12892
12893 2014-02-07 Yao Qi <yao@codesourcery.com>
12894
12895 * target.c (target_xfer_partial): Return zero if LEN is zero.
12896
12897 2014-02-07 Yao Qi <yao@codesourcery.com>
12898
12899 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12900 (ld_so_xfer_auxv): Likewise.
12901 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12902 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12903 * corelow.c (core_xfer_partial): Likewise.
12904 * ctf.c (ctf_xfer_partial): Likewise.
12905 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12906 (darwin_xfer_partial): Likewise.
12907 * exec.c (exec_xfer_partial): Likewise.
12908 * gnu-nat.c (gnu_xfer_partial): Likewise.
12909 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12910 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12911 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12912 * linux-nat.c (linux_xfer_siginfo): Likewise.
12913 (linux_proc_xfer_spu): Likewise.
12914 * procfs.c (procfs_xfer_partial): Likewise.
12915 * record-full.c (record_full_xfer_partial): Likewise.
12916 (record_full_core_xfer_partial): Likewise.
12917 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12918 * remote.c (remote_write_qxfer): Likewise.
12919 (remote_write_qxfer, remote_read_qxfer): Likewise.
12920 (remote_xfer_partial): Likewise.
12921 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12922 (rs6000_xfer_shared_libraries): Likewise.
12923 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12924 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12925 (spu_xfer_partial): Likewise.
12926 * target.c (memory_xfer_partial_1): Likewise.
12927 * tracepoint.c (tfile_xfer_partial): Likewise.
12928 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12929 (windows_xfer_partial): Likewise.
12930
12931 2014-02-07 Yao Qi <yao@codesourcery.com>
12932
12933 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12934 comments.
12935 (core_xfer_shared_libraries_aix): Likewise.
12936 * gdbarch.c, gdbarch.h: Regenerated.
12937 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12938 ULONGEST. Change 'len_avail' type to ULONGEST.
12939 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12940 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12941 declaration.
12942 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12943
12944 2014-02-07 Yao Qi <yao@codesourcery.com>
12945
12946 * corefile.c (memory_error): Get 'exception' from ERR and pass
12947 'exception' to throw_error.
12948
12949 2014-02-06 Doug Evans <xdje42@gmail.com>
12950
12951 * configure.ac (libpython checking): Remove all but python.o from
12952 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12953 * configure: Regenerate.
12954
12955 * Makefile.in (SFILES): Add extension.c.
12956 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12957 (COMMON_OBS): Add extension.o.
12958 * extension.h: New file.
12959 * extension-priv.h: New file.
12960 * extension.c: New file.
12961
12962 * python/python-internal.h: #include "extension.h".
12963 (gdbpy_auto_load_enabled): Declare.
12964 (gdbpy_apply_val_pretty_printer): Declare.
12965 (gdbpy_apply_frame_filter): Declare.
12966 (gdbpy_preserve_values): Declare.
12967 (gdbpy_breakpoint_cond_says_stop): Declare.
12968 (gdbpy_breakpoint_has_cond): Declare.
12969 (void source_python_script_for_objfile): Delete.
12970 * python/python.c: #include "extension-priv.h".
12971 Delete inclusion of "observer.h".
12972 (extension_language_python): Moved here and renamed from
12973 script_language_python in py-auto-load.c.
12974 Redefined to be of type extension_language_defn.
12975 (python_extension_script_ops): New global.
12976 (python_extension_ops): New global.
12977 (struct python_env): New member previous_active.
12978 (restore_python_env): Call restore_active_ext_lang.
12979 (ensure_python_env): Call set_active_ext_lang.
12980 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12981 New arg extlang.
12982 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12983 New arg extlang.
12984 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12985 New arg extlang.
12986 (gdbpy_eval_from_control_command): Renamed from
12987 eval_python_from_control_command, made static. New arg extlang.
12988 (gdbpy_source_script) Renamed from source_python_script, made static.
12989 New arg extlang.
12990 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12991 result to int. New arg extlang.
12992 (gdbpy_source_objfile_script): Renamed from
12993 source_python_script_for_objfile, made static. New arg extlang.
12994 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12995 static. New args extlang, extlang_printers. Change result type to
12996 "void".
12997 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12998 static. New arg extlang. Rename arg printers to extlang_printers
12999 and change type to ext_lang_type_printers *.
13000 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13001 static. Replace argument arg with extlang, extlang_printers.
13002 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13003 (!HAVE_PYTHON, source_python_script): Delete.
13004 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13005 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13006 (!HAVE_PYTHON, start_type_printers): Delete.
13007 (!HAVE_PYTHON, apply_type_printers): Delete.
13008 (!HAVE_PYTHON, free_type_printers): Delete.
13009 (_initialize_python): Delete call to observer_attach_before_prompt.
13010 (finalize_python): Set/restore active extension language.
13011 (gdbpy_finish_initialization) Renamed from
13012 finish_python_initialization, made static. New arg extlang.
13013 (gdbpy_initialized): New function.
13014 * python/python.h: #include "extension.h". Delete #include
13015 "value.h", "mi/mi-cmds.h".
13016 (extension_language_python): Declare.
13017 (GDBPY_AUTO_FILE_NAME): Delete.
13018 (enum py_bt_status): Moved to extension.h and renamed to
13019 ext_lang_bt_status.
13020 (enum frame_filter_flags): Moved to extension.h.
13021 (enum py_frame_args): Moved to extension.h and renamed to
13022 ext_lang_frame_args.
13023 (finish_python_initialization): Delete.
13024 (eval_python_from_control_command): Delete.
13025 (source_python_script): Delete.
13026 (apply_val_pretty_printer): Delete.
13027 (apply_frame_filter): Delete.
13028 (preserve_python_values): Delete.
13029 (gdbpy_script_language_defn): Delete.
13030 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13031 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13032
13033 * auto-load.c: #include "extension.h".
13034 (GDB_AUTO_FILE_NAME): Delete.
13035 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13036 (script_language_gdb): Delete, moved to extension.c and renamed to
13037 extension_language_gdb.
13038 (source_gdb_script_for_objfile): Delete.
13039 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13040 (loaded_script): Change type of language member to
13041 struct extension_language_defn *.
13042 (init_loaded_scripts_info): Initialize
13043 unsupported_script_warning_printed.
13044 (maybe_add_script): Make static. Change type of language arg to
13045 struct extension_language_defn *.
13046 (clear_section_scripts): Reset unsupported_script_warning_printed.
13047 (auto_load_objfile_script_1): Rewrite to use extension language API.
13048 (auto_load_objfile_script): Make public. Remove support-compiled-in
13049 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13050 (source_section_scripts): Rewrite to use extension language API.
13051 (load_auto_scripts_for_objfile): Rewrite to use
13052 auto_load_scripts_for_objfile.
13053 (collect_matching_scripts_data): Change type of language member to
13054 struct extension_language_defn *.
13055 (auto_load_info_scripts): Change type of language arg to
13056 struct extension_language_defn *.
13057 (unsupported_script_warning_print): New function.
13058 (script_not_found_warning_print): Make static.
13059 (_initialize_auto_load): Rewrite construction of scripts-directory
13060 help.
13061 * auto-load.h (struct objfile): Add forward decl.
13062 (struct script_language): Delete.
13063 (struct auto_load_pspace_info): Add forward decl.
13064 (struct extension_language_defn): Add forward decl.
13065 (maybe_add_script): Delete.
13066 (auto_load_objfile_script): Declare.
13067 (script_not_found_warning_print): Delete.
13068 (auto_load_info_scripts): Update prototype.
13069 (auto_load_gdb_scripts_enabled): Declare.
13070 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13071 auto_load_python_scripts_enabled and made public.
13072 (script_language_python): Delete, moved to python.c.
13073 (gdbpy_script_language_defn): Delete.
13074 (info_auto_load_python_scripts): Update to use
13075 extension_language_python.
13076
13077 * breakpoint.c (condition_command): Replace call to
13078 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13079 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13080 with call to breakpoint_ext_lang_cond_says_stop.
13081 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13082 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13083 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13084 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13085 New arg slang.
13086 (local_setattro): Print name of extension language with existing
13087 stop condition.
13088
13089 * valprint.c (val_print, value_print): Update to call
13090 apply_ext_lang_val_pretty_printer.
13091 * cp-valprint.c (cp_print_value): Update call to
13092 apply_ext_lang_val_pretty_printer.
13093 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13094 (gdbpy_apply_val_pretty_printer): Renamed from
13095 apply_val_pretty_printer. New arg extlang.
13096 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13097
13098 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13099 extension language API.
13100 * cli/cli-script.c (execute_control_command): Update to call
13101 eval_ext_lang_from_control_command.
13102
13103 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13104 enum ext_lang_bt_status values. Update call to
13105 apply_ext_lang_frame_filter.
13106 (mi_cmd_stack_list_locals): Ditto.
13107 (mi_cmd_stack_list_args): Ditto.
13108 (mi_cmd_stack_list_variables): Ditto.
13109 * mi/mi-main.c: Delete #include "python/python-internal.h".
13110 Add #include "extension.h".
13111 (mi_cmd_list_features): Replace reference to python internal variable
13112 gdb_python_initialized with call to ext_lang_initialized_p.
13113
13114 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13115 Update to use enum ext_lang_frame_args. Update to call
13116 apply_ext_lang_frame_filter.
13117 * python/py-framefilter.c (extract_sym): Update to use enum
13118 ext_lang_bt_status.
13119 (extract_value, py_print_type, py_print_value): Ditto.
13120 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13121 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13122 (py_print_frame): Ditto.
13123 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13124 New arg extlang. Update to use enum ext_lang_bt_status.
13125
13126 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13127 finish_python_initialization. Replace with call to
13128 finish_ext_lang_initialization.
13129
13130 * typeprint.c (do_free_global_table): Update to call
13131 free_ext_lang_type_printers.
13132 (create_global_typedef_table): Update to call
13133 start_ext_lang_type_printers.
13134 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13135 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13136 (type_print_options): Change type of global_printers from "void *"
13137 to "struct ext_lang_type_printers *".
13138
13139 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13140 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13141 (gdbpy_preserve_values): Renamed from preserve_python_values.
13142 New arg extlang.
13143 (!HAVE_PYTHON, preserve_python_values): Delete.
13144
13145 * utils.c (quit_flag): Delete, moved to extension.c.
13146 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13147 extension.c.
13148
13149 * eval.c: Delete #include "python/python.h".
13150 * main.c: Delete #include "python/python.h".
13151
13152 * defs.h: Update comment.
13153
13154 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13155
13156 GDB 7.7 released.
13157
13158 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13159
13160 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13161 defined.
13162
13163 2014-02-05 Yao Qi <yao@codesourcery.com>
13164
13165 * remote.c (remote_pass_signals): Remove local 'buf' and use
13166 rs->buf.
13167 (remote_program_signals): Likewise.
13168
13169 2014-02-05 Yao Qi <yao@codesourcery.com>
13170
13171 * ctf.c: Include "inferior.h" and "gdbthread.h".
13172 (CTF_PID): A new macro.
13173 (ctf_open): Call inferior_appeared and add_thread_silent.
13174 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13175 (ctf_thread_alive): New function.
13176 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13177
13178 2014-02-05 Yao Qi <yao@codesourcery.com>
13179
13180 Revert this patch:
13181
13182 2013-05-24 Yao Qi <yao@codesourcery.com>
13183
13184 * tracepoint.c (TFILE_PID): Remove.
13185 (tfile_open): Don't add thread and inferior.
13186 (tfile_close): Don't set 'inferior_ptid'. Don't call
13187 exit_inferior_silent.
13188 (tfile_thread_alive): Remove.
13189 (init_tfile_ops): Don't set field 'to_thread_alive' of
13190 tfile_ops.
13191
13192 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13193
13194 * remote.c (remote_start_remote): Call remote_check_symbols even
13195 if only symbol-file (not file) has been given.
13196
13197 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13198
13199 * gdbarch.sh (skip_entrypoint): New callback.
13200 * gdbarch.c, gdbarch.h: Regenerate.
13201 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13202 * infrun.c (fill_in_stop_func): Likewise.
13203 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13204 (ppc_elfv2_elf_make_msymbol_special): New function.
13205 (ppc_elfv2_skip_entrypoint): Likewise.
13206 (ppc_linux_init_abi): Install them for ELFv2.
13207
13208 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13209
13210 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13211 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13212 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13213 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13214 structures returned in GPRs.
13215
13216 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13217
13218 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13219 offset to the stack parameter list for the ELFv2 ABI.
13220
13221 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13222
13223 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13224 set_gdbarch_convert_from_func_ptr_addr and
13225 set_gdbarch_elf_make_msymbol_special for ELFv1.
13226 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13227 function descriptors on ELFv1.
13228 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13229 set up r12 at function entry.
13230
13231 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13232
13233 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13234 (struct gdbarch_tdep): New member elf_abi.
13235
13236 * rs6000-tdep.c: Include "elf/ppc64.h".
13237 (rs6000_gdbarch_init): Detect ELF ABI version.
13238
13239 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13240
13241 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13242 within a register pair holding a DFP 128-bit value on little-endian.
13243 (ppc64_sysv_abi_return_value_base): Likewise.
13244 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13245 (dfp_pseudo_register_write): Likewise.
13246
13247 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13248
13249 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13250 offset on little-endian when passing _Decimal32.
13251 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13252
13253 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13254
13255 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13256 of the overlapped FP register within the VSX register on little-
13257 endian platforms.
13258 (efpr_pseudo_register_write): Likewise.
13259
13260 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13261
13262 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13263 offset on little-endian when passing small structures.
13264
13265 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13266
13267 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13268 (struct ppc64_sysv_argpos): New data structure.
13269 (ppc64_sysv_abi_push_float): Remove.
13270 (ppc64_sysv_abi_push_val): New function.
13271 (ppc64_sysv_abi_push_integer): Likewise.
13272 (ppc64_sysv_abi_push_freg): Likewise.
13273 (ppc64_sysv_abi_push_vreg): Likewise.
13274 (ppc64_sysv_abi_push_param): Likewise.
13275 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13276 (ppc64_sysv_abi_return_value_base): New function.
13277 (ppc64_sysv_abi_return_value): Refactor to use it.
13278
13279 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13280
13281 * NEWS: Document new target powerpc64le-*-linux*.
13282
13283 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13284
13285 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13286 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13287 core dumps.
13288 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13289 register set used in ELF core dumps. Add floating-point register set.
13290
13291 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13292
13293 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13294 dwarf2_to_gdb[] table using symbolic constants. Adjust
13295 penultimate entry from number representing the PC register
13296 to symbolic constant representing the MDR register. Add
13297 constant for the PC register to the end of the table.
13298
13299 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13300
13301 * bsd-kvm.c: Include <sys/param.h>
13302
13303 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13304
13305 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13306
13307 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13308
13309 * ada-lang.h (clear_ada_sym_cache): Delete.
13310
13311 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13312
13313 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13314
13315 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13316
13317 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13318 the sigreturn register save area only if the syscall is
13319 sigreturn.
13320
13321 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13322
13323 * valops.c (value_slice): Minor reformatting.
13324
13325 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13326
13327 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13328
13329 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13330
13331 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13332 New static globals.
13333 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13334 (ada_ignore_descriptive_types_p): New static global.
13335 (find_parallel_type_by_descriptive_type): Return immediately
13336 if ada_ignore_descriptive_types_p is set.
13337 (_initialize_ada_language): Register new commands "maintenance
13338 set ada", "maintenance show ada", "maintenance set ada
13339 ignore-descriptive-types" and "maintenance show ada
13340 ignore-descriptive-types".
13341 * NEWS: Add entry for new "maint ada set/show
13342 ignore-descriptive-types" commands.
13343
13344 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13345
13346 * record-btrace.c (record_btrace_close): Call btrace_teardown
13347 for all threads.
13348
13349 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13350
13351 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13352 "ui-out.h".
13353
13354 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13355
13356 * ada-typeprint (type_is_full_subrange_of_target_type):
13357 New function.
13358 (print_range): Add parameter bounds_prefered_p. If not set,
13359 try printing range types using the name of their base type.
13360 (print_range_type): Add parameter bounds_prefered_p.
13361 Use it in call to print_range.
13362 (print_array_type, ada_print_type): Update calls to print_range
13363 and print_range_type.
13364
13365 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13366
13367 * ada-typeprint.c (print_array_type, print_choices, print_range)
13368 (print_range_bound, print_dynamic_range_bound, print_range_type):
13369 Remove declaration.
13370
13371 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13372
13373 * ada-typeprint.c (print_range): Add missing empty line
13374 after local declaration.
13375
13376 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13377
13378 * ada-valprint.c (print_optional_low_bound): Get index_type's
13379 target type for as long as it is a TYPE_CODE_RANGE.
13380
13381 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13382
13383 * procfs.c (procfs_make_note_section): Remove assertion and
13384 associated comment.
13385
13386 2014-01-24 Yao Qi <yao@codesourcery.com>
13387
13388 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13389 * corelow.c (get_core_siginfo): Likewise.
13390
13391 2014-01-24 Yao Qi <yao@codesourcery.com>
13392
13393 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13394 ULONGEST. Don't check 'len' is negative.
13395 (remote_write_bytes): Change type of 'len' to ULONGEST.
13396
13397 2014-01-23 Tom Tromey <tromey@redhat.com>
13398
13399 PR python/16485:
13400 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13401 Handle exception from frame.block.
13402 (FrameVars.fetch_frame_locals): Likewise.
13403
13404 2014-01-23 Tom Tromey <tromey@redhat.com>
13405
13406 PR python/16487:
13407 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13408 on a NULL pointer. Move "goto error" to correct place.
13409
13410 2014-01-23 Tom Tromey <tromey@redhat.com>
13411
13412 PR python/16491:
13413 * python/py-framefilter.c (apply_frame_filter): Call
13414 ensure_python_env after computing gdbarch.
13415
13416 2014-01-23 Yao Qi <yao@codesourcery.com>
13417
13418 * target.c (raw_memory_xfer_partial): Change argument type
13419 from void * to gdb_byte *.
13420 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13421
13422 2014-01-22 Doug Evans <dje@google.com>
13423
13424 New gdbserver option --debug-format=timestamp.
13425 * NEWS: Mention it.
13426
13427 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13428
13429 * syscalls/s390x-linux.xml: New file.
13430 * syscalls/s390-linux.xml: New file.
13431 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13432 (XML_SYSCALL_FILENAME_S390X): Likewise.
13433 (op_svc): New enum value for SVC opcode.
13434 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13435 (s390_linux_get_syscall_number): New function.
13436 (s390_gdbarch_init): Register '*get_syscall_number' and the
13437 syscall xml file name.
13438 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13439 "s390-linux.xml" and "s390x-linux.xml".
13440 * NEWS: Announce new feature.
13441
13442 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13443
13444 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13445
13446 2014-01-22 Pedro Alves <palves@redhat.com>
13447
13448 * xtensa-config.c: Include defs.h.
13449
13450 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13451
13452 * common/common-utils.h: Add "ARI:" comment beside __func__
13453 reference.
13454
13455 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13456
13457 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13458 documentation a bit.
13459
13460 2014-01-21 Roland McGrath <mcgrathr@google.com>
13461
13462 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13463 * configure: Regenerate.
13464 * aclocal.m4: Regenerate.
13465 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13466 New substituted variables.
13467 (install-strip): New target.
13468 (INSTALL_SCRIPT): New substituted variable.
13469 (FLAGS_TO_PASS): Add it.
13470 (install-only): Use $(INSTALL_SCRIPT) rather than
13471 $(INSTALL_PROGRAM) for gcore.
13472
13473 2014-01-20 Tom Tromey <tromey@redhat.com>
13474
13475 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13476 together.
13477
13478 2014-01-20 Tom Tromey <tromey@redhat.com>
13479
13480 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13481 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13482 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13483 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13484 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13485 (struct cmd_list_element) <flags>: Remove.
13486 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13487 doc_allocated>: New fields.
13488 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13489 bitfields.
13490 * maint.c (maintenance_do_deprecate): Update.
13491 * top.c (execute_command): Update.
13492
13493 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13494
13495 * xtensa-linux-nat.c: Include asm/ptrace.h.
13496
13497 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13498
13499 * Makefile.in (SFILES): Add d-support.c.
13500 (COMMON_OBS): Add d-support.o.
13501 * d-lang.h (d_parse_symbol): Add comment, now defined in
13502 d-support.c.
13503 * d-lang.c (parse_call_convention)
13504 (parse_attributes, parse_function_types)
13505 (parse_function_args, parse_type, parse_identifier)
13506 (call_convention_p, d_parse_symbol): Move functions to ...
13507 * d-support.c: ... New file.
13508
13509 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13510
13511 * d-lang.h (d_parse_symbol): Add declaration.
13512 * d-lang.c (extract_identifiers)
13513 (extract_type_info): Remove functions.
13514 (parse_call_convention, parse_attributes)
13515 (parse_function_types, parse_function_args)
13516 (parse_type, parse_identifier, call_convention_p)
13517 (d_parse_symbol): New functions.
13518 (d_demangle): Use d_parse_symbol to demangle D symbols.
13519
13520 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13521
13522 * d-lang.h (struct builtin_d_type): New data type.
13523 (builtin_d_type): Add declaration.
13524 * d-lang.c (d_language_arch_info, build_d_types)
13525 (builtin_d_type): New functions.
13526 (enum d_primitive_types): New data type.
13527 (d_language_defn): Change c_language_arch_info to
13528 d_language_arch_info.
13529 (d_type_data): New static variable.
13530 (_initialize_d_language): Initialize d_type_data.
13531
13532 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13533
13534 * d-lang.h (d_main_name): Add declaration.
13535 * d-lang.c (d_main_name): New function.
13536 * symtab.c (find_main_name): Add call to d_main_name.
13537
13538 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13539
13540 * d-lang.c (d_language_defn): Change macro_expansion_c to
13541 macro_expansion_no.
13542
13543 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13544
13545 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13546
13547 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13548
13549 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13550 gdb_exception" declaration.
13551 * remote.c (getpkt_or_notif_sane): Likewise.
13552
13553 2014-01-17 Doug Evans <dje@google.com>
13554
13555 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13556 function, contents of dirnames_to_char_ptr_vec_append moved here.
13557 (delim_string_to_char_ptr_vec): New function.
13558 (dirnames_to_char_ptr_vec_append): Rewrite.
13559 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13560
13561 2014-01-17 Doug Evans <dje@google.com>
13562
13563 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13564 and moved here ...
13565 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13566 #include "common-utils.h".
13567 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13568 * common/vec.h (VEC_ASSERT_PASS): Update.
13569 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13570 (MACH_CHECK_ERROR): Update.
13571
13572 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13573
13574 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13575 comments.
13576 * gdbarch.h: Regenerate.
13577
13578 2014-01-16 Tom Tromey <tromey@redhat.com>
13579
13580 * value.c (struct value) <regnum>: Move earlier.
13581
13582 2014-01-16 Tom Tromey <tromey@redhat.com>
13583
13584 * remote.c (extended_remote_create_inferior): Rename from
13585 extended_remote_create_inferior_1. Add "ops" argument. Remove
13586 old implementation.
13587
13588 2014-01-16 Pedro Alves <palves@redhat.com>
13589
13590 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13591 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13592 the backchain.
13593
13594 2014-01-16 Doug Evans <dje@google.com>
13595
13596 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13597
13598 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13599
13600 * btrace.h (btrace_thread_flag): New.
13601 (struct btrace_thread_info) <flags>: New.
13602 * record-btrace.c (record_btrace_resume_thread)
13603 (record_btrace_find_thread_to_move, btrace_step_no_history)
13604 (btrace_step_stopped, record_btrace_start_replaying)
13605 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13606 (record_btrace_find_resume_thread): New.
13607 (record_btrace_resume, record_btrace_wait): Extend.
13608 (record_btrace_can_execute_reverse): New.
13609 (record_btrace_open): Fail in non-stop mode.
13610 (record_btrace_set_replay): Split into this, ...
13611 (record_btrace_stop_replaying): ... this, ...
13612 (record_btrace_clear_histories): ... and this.
13613 (init_record_btrace_ops): Init to_can_execute_reverse.
13614 * NEWS: Announce it.
13615
13616 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13617
13618 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13619 (forward_target_decr_pc_after_break)
13620 (target_decr_pc_after_break): New.
13621 * target.c (forward_target_decr_pc_after_break)
13622 (target_decr_pc_after_break): New.
13623 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13624 instead of gdbarch_decr_pc_after_break.
13625 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13626 instead of gdbarch_decr_pc_after_break.
13627 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13628 instead of gdbarch_decr_pc_after_break.
13629 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13630 instead of gdbarch_decr_pc_after_break.
13631 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13632 instead of gdbarch_decr_pc_after_break.
13633 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13634 instead of gdbarch_decr_pc_after_break.
13635
13636 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13637
13638 * btrace.c: Include regcache.h.
13639 (btrace_add_pc): New.
13640 (btrace_enable): Call btrace_add_pc.
13641 (btrace_is_empty): New.
13642 * btrace.h (btrace_is_empty): New.
13643 * record-btrace.c (require_btrace, record_btrace_info): Call
13644 btrace_is_empty.
13645
13646 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13647
13648 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13649 Support delta reads.
13650 (linux_disable_btrace): Change return type.
13651 * common/linux-btrace.h (linux_read_btrace): Change parameters
13652 and return type to allow error reporting. Update users.
13653 (linux_disable_btrace): Change return type. Update users.
13654 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13655 New.
13656 (btrace_error): New.
13657 (btrace_block) <begin>: Comment on BEGIN == 0.
13658 * btrace.c (btrace_compute_ftrace): Start from the end of
13659 the current trace.
13660 (btrace_stitch_trace, btrace_clear_history): New.
13661 (btrace_fetch): Read delta trace, return if replaying.
13662 (btrace_clear): Move clear history code to btrace_clear_history.
13663 (parse_xml_btrace): Throw an error if parsing failed.
13664 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13665 and return type to allow error reporting.
13666 (target_read_btrace): Change parameters and return type to allow
13667 error reporting.
13668 * target.c (target_read_btrace): Update.
13669 * remote.c (remote_read_btrace): Support delta reads. Pass
13670 errors on.
13671 * NEWS: Announce it.
13672
13673 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13674
13675 * record.h (record_btrace_frame_unwind)
13676 (record_btrace_tailcall_frame_unwind): New declarations.
13677 * dwarf2-frame: Include record.h
13678 (dwarf2_frame_cfa): Throw an error for btrace frames.
13679 * record-btrace.c: Include hashtab.h.
13680 (btrace_get_bfun_name): New.
13681 (btrace_call_history): Call btrace_get_bfun_name.
13682 (struct btrace_frame_cache): New.
13683 (bfcache): New.
13684 (bfcache_hash, bfcache_eq, bfcache_new): New.
13685 (btrace_get_frame_function): New.
13686 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13687 (record_btrace_frame_this_id): Compute own id.
13688 (record_btrace_frame_prev_register): Provide PC, throw_error
13689 for all other registers.
13690 (record_btrace_frame_sniffer): Detect btrace frames.
13691 (record_btrace_tailcall_frame_sniffer): New.
13692 (record_btrace_frame_dealloc_cache): New.
13693 (record_btrace_frame_unwind): Add new functions.
13694 (record_btrace_tailcall_frame_unwind): New.
13695 (_initialize_record_btrace): Allocate cache.
13696 * btrace.c (btrace_clear): Call reinit_frame_cache.
13697 * NEWS: Announce it.
13698
13699 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13700
13701 * record-btrace.c (record_btrace_set_replay)
13702 (record_btrace_goto_begin, record_btrace_goto_end)
13703 (record_btrace_goto): New.
13704 (init_record_btrace_ops): Initialize them.
13705 * NEWS: Announce it.
13706
13707 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13708
13709 * record-btrace.c (record_btrace_find_new_threads)
13710 (record_btrace_thread_alive): New.
13711 (init_record_btrace_ops): Initialize to_find_new_threads and
13712 to_thread_alive.
13713
13714 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13715
13716 * record-btrace.c (record_btrace_resume): New.
13717 (record_btrace_wait): New.
13718 (init_record_btrace_ops): Initialize to_wait and to_resume.
13719
13720 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13721
13722 * record-btrace.c (record_btrace_xfer_partial)
13723 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13724 (record_btrace_allow_memory_access): New.
13725 (init_record_btrace_ops): Initialize new methods.
13726 * target.c (raw_memory_xfer_partial): Bail out if target reports
13727 that this memory is not available.
13728
13729 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13730
13731 * target.h (target_ops) <to_insert_breakpoint>
13732 <to_remove_breakpoint>: Add target_ops parameter.
13733 (forward_target_insert_breakpoint): New.
13734 (forward_target_remove_breakpoint): New.
13735 (memory_remove_breakpoint, memory_insert_breakpoint):
13736 Add target_ops parameter.
13737 * target.c (target_insert_breakpoint): Split into this and ...
13738 (forward_target_insert_breakpoint): ... this.
13739 (target_remove_breakpoint): Split into this and ...
13740 (forward_target_remove_breakpoint): ... this.
13741 (debug_to_insert_breakpoint): Add target_ops parameter.
13742 Call forward_target_insert_breakpoint.
13743 (debug_to_remove_breakpoint): Add target_ops parameter.
13744 Call forward_target_remove_breakpoint.
13745 (update_current_target): Do not inherit or default to_insert_breakpoint
13746 and to_remove_breakpoint.
13747 * corelow.c (ignore): Add target_ops parameter.
13748 * exec.c (ignore): Add target_ops parameter.
13749 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13750 Add target_ops parameter.
13751 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13752 Add target_ops parameter.
13753 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13754 Add target_ops parameter.
13755 * record-full.c (record_full_beneath_to_insert_breakpoint)
13756 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13757 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13758 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13759 (record_full_core_remove_breakpoint): Add target_ops parameter.
13760 Update users.
13761 (record_full_beneath_to_insert_breakpoint_ops)
13762 (record_full_beneath_to_remove_breakpoint_ops)
13763 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13764 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13765 tmp_to_remove_breakpoint_ops,
13766 record_full_beneath_to_insert_breakpoint_ops, and
13767 record_full_beneath_to_remove_breakpoint_ops.
13768 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13769 (m32r_remove_breakpoint): Add target_ops parameter.
13770 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13771 Add target_ops parameter.
13772 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13773 Add target_ops parameter.
13774
13775 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13776 Markus Metzger <markus.t.metzger@intel.com>
13777
13778 * record-btrace.c: Include frame-unwind.h.
13779 (record_btrace_frame_unwind_stop_reason)
13780 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13781 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13782 New.
13783 (init_record_btrace_ops): Install it.
13784
13785 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13786
13787 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13788 get_prev_frame_1.
13789
13790 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13791
13792 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13793 earlier.
13794
13795 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13796
13797 * frame-unwind.c: Include target.h.
13798 (frame_unwind_try_unwinder): New function with code from ...
13799 (frame_unwind_find_by_frame): ... here. New variable
13800 unwinder_from_target, call also target_get_unwinder)
13801 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13802 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13803 * target.h (struct target_ops): New fields to_get_unwinder and
13804 to_get_tailcall_unwinder.
13805 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13806
13807 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13808
13809 * record-btrace.c (record_btrace_fetch_registers)
13810 (record_btrace_store_registers)
13811 (record_btrace_to_prepare_to_store): New.
13812 (init_record_btrace_ops): Add the above.
13813
13814 2014-01-16 Tom Tromey <tromey@redhat.com>
13815
13816 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13817 * target.h (struct target_ops) <to_prepare_to_store>: Add
13818 argument.
13819 (target_prepare_to_store): Add argument.
13820 * target.c (debug_to_prepare_to_store): Add argument.
13821 (update_current_target): Update.
13822 * remote.c (remote_prepare_to_store): Add 'self' argument.
13823 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13824 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13825 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13826 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13827 argument.
13828 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13829 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13830 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13831 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13832 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13833
13834 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13835
13836 * btrace.h (replay) <replay>: New.
13837 (btrace_is_replaying): New.
13838 * btrace.c (btrace_clear): Free replay iterator.
13839 (btrace_is_replaying): New.
13840 * record-btrace.c (record_btrace_is_replaying): New.
13841 (record_btrace_info): Print insn number if replaying.
13842 (record_btrace_insn_history): Start at replay position.
13843 (record_btrace_call_history): Start at replay position.
13844 (init_record_btrace_ops): Init to_record_is_replaying.
13845
13846 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13847
13848 * record-btrace.c (record_btrace_insn_history_range): Include
13849 end.
13850 (record_btrace_insn_history_from): Adjust range.
13851 (record_btrace_call_history_range): Include
13852 end.
13853 (record_btrace_call_history_from): Adjust range.
13854 * NEWS: Announce changes.
13855
13856 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13857
13858 * record.h (enum record_print_flag)
13859 <record_print_indent_calls>: New.
13860 * record.c (get_call_history_modifiers): Recognize /c modifier.
13861 (_initialize_record): Document /c modifier.
13862 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13863 Reorder fields. Optionally indent the function name. Update
13864 all users.
13865 * NEWS: Announce changes.
13866
13867 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13868
13869 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13870
13871 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13872
13873 * btrace.c (ftrace_new_function): Start counting at one.
13874 * record-btrace.c (record_btrace_info): Adjust number of calls
13875 and insns.
13876 * NEWS: Announce it.
13877
13878 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13879
13880 * record-btrace.c (btrace_call_history_insn_range): Print
13881 insn range as [begin, end].
13882
13883 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13884
13885 * btrace.h (struct btrace_func_link): New.
13886 (enum btrace_function_flag): New.
13887 (struct btrace_inst): Rename to ...
13888 (struct btrace_insn): ...this. Update all users.
13889 (struct btrace_func) <ibegin, iend>: Remove.
13890 (struct btrace_func_link): New.
13891 (struct btrace_func): Rename to ...
13892 (struct btrace_function): ...this. Update all users.
13893 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13894 (number, level, flags>: New.
13895 (struct btrace_insn_iterator): Rename to ...
13896 (struct btrace_insn_history): ...this.
13897 Update all users.
13898 (struct btrace_insn_iterator, btrace_call_iterator): New.
13899 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13900 (struct btrace_target_info) <begin, end, level>
13901 <insn_history, call_history>: New.
13902 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13903 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13904 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13905 (btrace_call_number, btrace_call_begin, btrace_call_end)
13906 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13907 (btrace_find_function_by_number, btrace_set_insn_history)
13908 (btrace_set_call_history): New.
13909 * btrace.c (btrace_init_insn_iterator)
13910 (btrace_init_func_iterator, compute_itrace): Remove.
13911 (ftrace_print_function_name, ftrace_print_filename)
13912 (ftrace_skip_file): Change
13913 parameter to const.
13914 (ftrace_init_func): Remove.
13915 (ftrace_debug): Use new btrace_function fields.
13916 (ftrace_function_switched): Also consider gaining and
13917 losing symbol information).
13918 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13919 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13920 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13921 New.
13922 (ftrace_new_function): Move. Remove debug print.
13923 (ftrace_update_lines, ftrace_update_insns): New.
13924 (ftrace_update_function): Check for call, ret, and jump.
13925 (compute_ftrace): Renamed to ...
13926 (btrace_compute_ftrace): ...this. Rewritten to compute call
13927 stack.
13928 (btrace_fetch, btrace_clear): Updated.
13929 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13930 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13931 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13932 (btrace_call_number, btrace_call_begin, btrace_call_end)
13933 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13934 (btrace_find_function_by_number, btrace_set_insn_history)
13935 (btrace_set_call_history): New.
13936 * record-btrace.c (require_btrace): Use new btrace thread
13937 info fields.
13938 (record_btrace_info, btrace_insn_history)
13939 (record_btrace_insn_history, record_btrace_insn_history_range):
13940 Use new btrace thread info fields and new iterator.
13941 (btrace_func_history_src_line): Rename to ...
13942 (btrace_call_history_src_line): ...this. Use new btrace
13943 thread info fields.
13944 (btrace_func_history): Rename to ...
13945 (btrace_call_history): ...this. Use new btrace thread info
13946 fields and new iterator.
13947 (record_btrace_call_history, record_btrace_call_history_range):
13948 Use new btrace thread info fields and new iterator.
13949
13950 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13951
13952 * frame.h (frame_id_build_unavailable_stack_special): New.
13953 * frame.c (frame_id_build_unavailable_stack_special): New.
13954
13955 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13956
13957 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13958 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13959 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13960 to gdbarch.
13961 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13962 (i386_insn_is_jump, i386_jmp_p): New.
13963 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13964 insn_is_jump to gdbarch.
13965 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13966 * gdbarch.h: Regenerated.
13967 * gdbarch.c: Regenerated.
13968 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13969 (default_insn_is_jump): New.
13970 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13971 (default_insn_is_jump): New.
13972
13973 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13974
13975 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13976 Change to ...
13977 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13978 (btrace_read_type) <btrace_read_new>: Change to ...
13979 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13980
13981 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13982
13983 * common/linux-btrace.c (linux_read_btrace): Free trace from
13984 previous iteration.
13985
13986 2014-01-15 Doug Evans <dje@google.com>
13987
13988 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13989 uint32_t.
13990
13991 2014-01-15 Tom Tromey <tromey@redhat.com>
13992
13993 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13994 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13995 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13996 (set_objfile_main_name): New function.
13997 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13998 language_of_main>: New fields.
13999 (set_objfile_main_name): Declare.
14000 * symtab.c (find_main_name): Loop over objfiles to find the main
14001 name and language.
14002 (set_main_name): Now static.
14003 (get_main_info): Add comment.
14004 * symtab.h (set_main_name): Don't declare.
14005
14006 2014-01-15 Tom Tromey <tromey@redhat.com>
14007
14008 * symtab.c (main_progspace_key): New global.
14009 (struct main_info): New.
14010 (name_of_main, language_of_main): Remove.
14011 (get_main_info, main_info_cleanup): New function.
14012 (set_main_name, main_name, main_language): Use get_main_info.
14013 (_initialize_symtab): Initialize main_progspace_key.
14014
14015 2014-01-15 Tom Tromey <tromey@redhat.com>
14016
14017 * dbxread.c (process_one_symbol): Update.
14018 * dwarf2read.c (read_partial_die): Update.
14019 * symfile.c (set_initial_language): Call main_language.
14020 * symtab.c (language_of_main): Now static.
14021 (set_main_name): Add 'lang' parameter.
14022 (find_main_name): Update.
14023 (main_language): New function.
14024 (symtab_observer_executable_changed): Update.
14025 * symtab.h (set_main_name): Update.
14026 (language_of_main): Remove.
14027 (main_language): Declare.
14028
14029 2014-01-15 Tom Tromey <tromey@redhat.com>
14030
14031 * symfile.c (init_entry_point_info): Use new "initialized" field.
14032 Update.
14033 * objfiles.h (struct entry_point) <initialized>: New field.
14034 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14035 (struct objfile) <ei>: ...here. Remove.
14036 * objfiles.c (entry_point_address_query): Update.
14037
14038 2014-01-15 Tom Tromey <tromey@redhat.com>
14039
14040 * objfiles.c (entry_point_address_query): Relocate entry point
14041 address.
14042 (objfile_relocate1): Do not relocate entry point address.
14043 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14044 <the_bfd_section_index>: New field.
14045 * symfile.c (init_entry_point_info): Find the entry point's
14046 section.
14047
14048 2014-01-15 Tom Tromey <tromey@redhat.com>
14049
14050 * solib-frv.c (enable_break): Use entry_point_address_query.
14051
14052 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14053
14054 * NEWS: Add note on improved process record-replay on
14055 arm*-linux* targets.
14056
14057 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14058
14059 * arm-tdep.c (enum arm_record_result): New enum.
14060 (arm_record_unsupported_insn): New function.
14061 (arm_record_coproc_data_proc): Removed.
14062 (thumb2_record_ld_st_multiple): New function.
14063 (thumb2_record_ld_st_dual_ex_tbb): New function.
14064 (thumb2_record_data_proc_sreg_mimm): New function.
14065 (thumb2_record_ps_dest_generic): New function.
14066 (thumb2_record_branch_misc_cntrl): New function.
14067 (thumb2_record_str_single_data): New function.
14068 (thumb2_record_ld_mem_hints): New function.
14069 (thumb2_record_ld_word): New function.
14070 (thumb2_record_lmul_lmla_div): New function.
14071 (thumb2_record_decode_insn_handler): New function.
14072 (decode_insn): Add thumb32 instruction handlers.
14073
14074 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14075
14076 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14077 (struct arm_linux_record_tdep): Declare.
14078 (arm_canonicalize_syscall): New function.
14079 (arm_all_but_pc_registers_record): New function.
14080 (arm_linux_syscall_record): New function.
14081 (arm_linux_init_abi): Add syscall recording constructs.
14082 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14083 decoding. (arm_record_coproc_data_proc): Update arm syscall
14084 decoding.
14085 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14086 <arm_syscall_record>: New field.
14087 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14088 gdb_target_obs.
14089
14090 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14091
14092 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14093 register for push instruction recording.
14094
14095 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14096
14097 * arm-tdep.c (thumb_record_misc): Update to correct logical
14098 error while recording ldm, ldmia and pop instructions.
14099
14100 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14101
14102 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14103
14104 2014-01-15 Pedro Alves <palves@redhat.com>
14105
14106 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14107 (go32_resume, go32_fetch_registers, store_register)
14108 (go32_store_registers, go32_prepare_to_store)
14109 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14110 (go32_create_inferior, go32_can_run, go32_terminal_init)
14111 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14112 declarations.
14113
14114 2014-01-15 Tom Tromey <tromey@redhat.com>
14115
14116 * target.h (async_callback_ftype): New typedef.
14117 (struct target_ops) <to_async>: Use it.
14118
14119 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14120
14121 * python/py-value.c (get_field_type): Remove unnecessary curly
14122 braces for single-statement if block.
14123
14124 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14125
14126 * python/py-type.c (convert_field): Add missing empty line
14127 after declarations.
14128
14129 2014-01-14 Doug Evans <dje@google.com>
14130
14131 * symfile.h (expand_symtabs_matching): Renamed from
14132 expand_partial_symbol_names. Update prototype.
14133 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14134 * symfile.c (expand_symtabs_matching): Renamed from
14135 expand_partial_symbol_names. New args file_matcher, kind.
14136 Rename arg fun to symbol_matcher.
14137 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14138 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14139 ada_expand_partial_symbol_name.
14140 (ada_make_symbol_completion_list): Update to call
14141 expand_symtabs_matching.
14142 (ada_add_global_exceptions): Call expand_symtabs_matching.
14143 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14144 call map_symbol_filenames.
14145 * symtab.c (sources_info): Update to call map_symbol_filenames.
14146 (search_symbols): Call expand_symtabs_matching.
14147 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14148 (default_make_symbol_completion_list_break_on): Update to call
14149 expand_symtabs_matching.
14150 (make_source_files_completion_list): Update to call
14151 map_symbol_filenames.
14152
14153 2014-01-14 Doug Evans <dje@google.com>
14154
14155 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14156 (expand_symtabs_symbol_matcher_ftype): New typedef.
14157 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14158 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14159 * symfile.c (expand_partial_symbol_names): Update to use
14160 expand_symtabs_symbol_matcher_ftype.
14161 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14162 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14163 Arg name_matcher renamed to symbol_matcher.
14164 * psymtab.c (recursively_search_psymtabs): Update to use
14165 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14166 sym_matcher.
14167 (expand_symtabs_matching_via_partial): Update to use
14168 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14169 Arg name_matcher renamed to symbol_matcher.
14170
14171 2014-01-14 Doug Evans <dje@google.com>
14172
14173 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14174 (map_partial_symbol_filenames): Ditto.
14175 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14176 (map_partial_symbol_filenames): Ditto.
14177 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14178 (map_partial_symbol_filenames): Ditto.
14179 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14180 (map_partial_symbol_filenames): Ditto.
14181 * symtab.c: Delete #include "psymtab.h".
14182
14183 2014-01-14 Pedro Alves <palves@redhat.com>
14184 Tom Tromey <tromey@redhat.com>
14185
14186 * infrun.c (use_displaced_stepping): Use find_record_target
14187 instead of RECORD_IS_USED.
14188 (adjust_pc_after_break): Use record_full_is_used instead of
14189 RECORD_IS_USED.
14190 * record-btrace.c (record_btrace_open): Call record_preopen
14191 instead of checking RECORD_IS_USED.
14192 * record-full.c (record_full_shortname)
14193 (record_full_core_shortname): New globals.
14194 (record_full_is_used): New function.
14195 (find_full_open): Call record_preopen instead of checking
14196 RECORD_IS_USED.
14197 (init_record_full_ops): Set the target's shortname to
14198 record_full_shortname.
14199 (init_record_full_core_ops): Set the target's shortname to
14200 record_full_core_shortname.
14201 * record-full.h (record_full_is_used): Declare.
14202 * record.c (find_record_target): Make extern.
14203 (record_preopen): New function.
14204 * record.h (RECORD_IS_USED): Delete macro.
14205 (find_record_target, record_preopen): Declare functions.
14206
14207 2014-01-14 Yao Qi <yao@codesourcery.com>
14208
14209 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14210 'len''s type to ULONGEST.
14211 (core_xfer_shared_libraries_aix): Likewise.
14212 * gdbarch.c, gdbarch.h: Regenerated.
14213 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14214 Change type of 'len' to ULONGEST.
14215 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14216 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14217
14218 2014-01-14 Yao Qi <yao@codesourcery.com>
14219
14220 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14221 type of 'len' to ULONGEST.
14222 (linux_xfer_osdata_processgroups): Likewise.
14223 (linux_xfer_osdata_threads): Likewise.
14224 (linux_xfer_osdata_fds): Likewise.
14225 (linux_xfer_osdata_isockets): Likewise.
14226 (linux_xfer_osdata_shm): Likewise.
14227 (linux_xfer_osdata_sem): Likewise.
14228 (linux_xfer_osdata_msg): Likewise.
14229 (linux_common_xfer_osdata): Likewise.
14230 (struct osdata_type) <getter>: Likewise.
14231 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14232 the declaration.
14233
14234 2014-01-14 Yao Qi <yao@codesourcery.com>
14235
14236 * target.h (target_xfer_partial_ftype): Update.
14237 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14238 ULONGEST.
14239 * aix-thread.c (aix_thread_xfer_partial): Change type of
14240 argument 'len' to ULONGEST.
14241 * auxv.c (procfs_xfer_auxv): Likewise.
14242 (ld_so_xfer_auxv): Likewise.
14243 (memory_xfer_auxv): Likewise.
14244 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14245 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14246 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14247 * corelow.c (core_xfer_partial): Likewise.
14248 * ctf.c (ctf_xfer_partial): Likewise.
14249 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14250 '%u'.
14251 (darwin_read_dyld_info): Likewise.
14252 (darwin_xfer_partial): Likewise.
14253 * exec.c (section_table_xfer_memory_partial): Likewise.
14254 (exec_xfer_partial): Likewise.
14255 * exec.h (section_table_xfer_memory_partial): Update
14256 declaration.
14257 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14258 instead of plongest.
14259 (gnu_xfer_partial): Likewise.
14260 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14261 (ia64_hpux_xfer_solib_got): Likewise.
14262 (ia64_hpux_xfer_partial): Likewise.
14263 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14264 * inf-ptrace.c (inf_ptrace_xfer_partial):
14265 * inf-ttrace.c (inf_ttrace_xfer_partial):
14266 * linux-nat.c (linux_xfer_siginfo): Likewise.
14267 (linux_nat_xfer_partial): Likewise.
14268 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14269 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14270 * monitor.c (monitor_xfer_memory): Likewise.
14271 (monitor_xfer_partial): Likewise.
14272 * procfs.c (procfs_xfer_partial): Likewise.
14273 * record-full.c (record_full_xfer_partial): Likewise.
14274 (record_full_core_xfer_partial): Likewise.
14275 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14276 instead of plongest.
14277 (gdbsim_xfer_partial): Likewise.
14278 * remote.c (remote_xfer_partial): Likewise.
14279 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14280 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14281 declaration.
14282 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14283 (rs6000_xfer_shared_libraries): Likewise.
14284 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14285 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14286 (sparc_xfer_partial): Likewise.
14287 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14288 (spu_xfer_partial): Likewise.
14289 * spu-multiarch.c (spu_xfer_partial): Likewise.
14290 * target.c (target_read_live_memory): Likewise.
14291 (memory_xfer_live_readonly_partial): Likewise.
14292 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14293 (target_xfer_partial, default_xfer_partial): Likewise.
14294 (current_xfer_partial): Likewise.
14295 * tracepoint.c (tfile_xfer_partial): Likewise.
14296 * windows-nat.c (windows_xfer_memory): Likewise. Call
14297 pulongest instead of plongest.
14298 (windows_xfer_partial): Likewise.
14299 (windows_xfer_shared_libraries): Likewise.
14300
14301 2014-01-14 Yao Qi <yao@codesourcery.com>
14302
14303 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14304 target_xfer_partial_ftype.
14305
14306 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14307
14308 PR python/15464
14309 PR python/16113
14310 * valops.c (value_struct_elt_bitpos): New function
14311 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14312 object to 'None' if the field name is an empty string ("").
14313 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14314 attribute to look for a field when 'name' is 'None'.
14315 (get_field_type): New function
14316
14317 2014-01-13 Doug Evans <dje@google.com>
14318
14319 PR symtab/16426
14320 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14321 (try_open_dwop_file): Ditto.
14322 * gdb_bfd.c: #include "vec.h".
14323 (bfdp): New typedef.
14324 (struct gdb_bfd_data): New member included_bfds.
14325 (gdb_bfd_unref): Unref all included bfds.
14326 (gdb_bfd_record_inclusion): New function.
14327 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14328
14329 2014-01-13 Tom Tromey <tromey@redhat.com>
14330
14331 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14332
14333 2014-01-13 Tom Tromey <tromey@redhat.com>
14334
14335 * defs.h (use_windows): Remove.
14336 * gdb.c (main): Update.
14337 * main.c (captured_main, gdb_main): Update.
14338 * main.h (struct captured_main_args) <use_windows>: Remove.
14339 * top.c (use_windows): Remove.
14340
14341 2014-01-13 Tom Tromey <tromey@redhat.com>
14342
14343 * defs.h (deprecated_flush_hook): Remove.
14344
14345 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14346
14347 PR threads/16216
14348 * linux-thread-db.c (try_thread_db_load): Add parameter
14349 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14350 (try_thread_db_load_from_pdir_1): Move it there from here.
14351 (try_thread_db_load_from_sdir): Update caller.
14352 (try_thread_db_load_from_dir): Move it there from here.
14353
14354 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14355
14356 * regformats/regdat.sh: Always rewrite the register file.
14357
14358 2014-01-13 Pedro Alves <palves@redhat.com>
14359
14360 * Makefile.in (CHECK_HEADERS): New variable.
14361 (check-headers:): New rule.
14362
14363 2014-01-13 Tom Tromey <tromey@redhat.com>
14364
14365 * cli/cli-setshow.c (do_set_command): Update.
14366 * defs.h (deprecated_set_hook): Remove.
14367 * top.c (deprecated_set_hook): Remove.
14368
14369 2014-01-13 Pedro Alves <palves@redhat.com>
14370
14371 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14372 the tracepoint if the PC is a pseudo-register.
14373
14374 2014-01-13 Tom Tromey <tromey@redhat.com>
14375
14376 * defs.h (XCALLOC): Remove.
14377 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14378 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14379 * dwarf2loc.c (allocate_piece_closure): Likewise.
14380 * elfread.c (elf_symfile_segments): Likewise.
14381 (elf_symfile_segments): Likewise.
14382 * gdbtypes.c (copy_type_recursive): Likewise.
14383 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14384 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14385 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14386 XCALLOC.
14387 * mt-tdep.c (mt_gdbarch_init): Likewise.
14388 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14389 XCALLOC.
14390 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14391 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14392 * registry.c (registry_alloc_data): Likewise.
14393 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14394 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14395 * serial.c (serial_fdopen_ops): Likewise.
14396 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14397 XCALLOC.
14398 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14399 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14400 not XCALLOC.
14401
14402 2014-01-13 Tom Tromey <tromey@redhat.com>
14403
14404 * defs.h (XMALLOC): Remove.
14405 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14406 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14407 * cli-out.c (struct ui_out *): Likewise.
14408 * cli/cli-dump.c (add_dump_command): Likewise.
14409 (add_dump_command): Likewise.
14410 * complaints.c (get_complaints): Likewise.
14411 (find_complaint): Likewise.
14412 * dwarf2-frame.c (execute_cfa_program): Likewise.
14413 * dwarf2read.c (abbrev_table_read_table): Likewise.
14414 * gdbarch.sh: Likewise.
14415 * gdbarch.c: Rebuild.
14416 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14417 * interps.c (interp_new): Likewise.
14418 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14419 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14420 * mi/mi-console.c (mi_console_file_new): Likewise.
14421 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14422 * mi/mi-out.c (mi_out_new): Likewise.
14423 * mi/mi-parse.c (mi_parse): Likewise.
14424 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14425 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14426 * observer.c (xalloc_observer_list_node): Likewise.
14427 * regcache.c (regcache_xmalloc_1): Likewise.
14428 * reggroups.c (reggroup_new): Likewise.
14429 (_initialize_reggroup): Likewise.
14430 * registry.c (register_data_with_cleanup): Likewise.
14431 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14432 * ser-base.c (serial_ttystate): Likewise.
14433 * ser-mingw.c (make_pipe_state): Likewise.
14434 * ser-pipe.c (pipe_open): Likewise.
14435 * serial.c (serial_open): Likewise.
14436 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14437 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14438 (tui_alloc_win_info): Likewise.
14439 (tui_add_content_elements): Likewise.
14440 * tui/tui-file.c (tui_file_new): Likewise.
14441 * tui/tui-out.c (tui_out_new): Likewise.
14442 * ui-file.c (mem_file_new): Likewise.
14443 * ui-out.c (push_level): Likewise.
14444 (make_cleanup_ui_out_end): Likewise.
14445 (append_header_to_list): Likewise.
14446 (ui_out_new): Likewise.
14447 * user-regs.c (user_reg_add_builtin): Likewise.
14448
14449 2014-01-13 Tom Tromey <tromey@redhat.com>
14450
14451 * defs.h (XZALLOC): Remove.
14452 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14453 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14454 (get_ada_tasks_inferior_data): Likewise.
14455 * auto-load.c (get_auto_load_pspace_data): Likewise.
14456 * auxv.c (get_auxv_inferior_data): Likewise.
14457 * bfd-target.c (target_bfd_reopen): Likewise.
14458 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14459 (deprecated_insert_raw_breakpoint): Likewise.
14460 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14461 * corelow.c (core_open): Likewise.
14462 * darwin-nat.c (darwin_check_new_threads): Likewise.
14463 (darwin_attach_pid): Likewise.
14464 * dummy-frame.c (dummy_frame_push): Likewise.
14465 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14466 * dwarf2loc.c (allocate_piece_closure): Likewise.
14467 * elfread.c (elf_symfile_segments): Likewise.
14468 * eval.c (ptrmath_type_p): Likewise.
14469 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14470 * gdbtypes.c (alloc_type_arch): Likewise.
14471 (alloc_type_instance): Likewise.
14472 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14473 * inf-child.c (inf_child_can_use_agent): Likewise.
14474 * inflow.c (get_inflow_inferior_data): Likewise.
14475 * infrun.c (save_infcall_suspend_state): Likewise.
14476 * jit.c (jit_reader_load): Likewise.
14477 (get_jit_objfile_data): Likewise.
14478 (get_jit_program_space_data): Likewise.
14479 (jit_object_open_impl): Likewise.
14480 (jit_symtab_open_impl): Likewise.
14481 (jit_block_open_impl): Likewise.
14482 (jit_frame_sniffer): Likewise.
14483 * linux-fork.c (add_fork): Likewise.
14484 * maint.c (make_command_stats_cleanup): Likewise.
14485 * objfiles.c (get_objfile_pspace_data): Likewise.
14486 * opencl-lang.c (struct lval_closure): Likewise.
14487 * osdata.c (osdata_start_osdata): Likewise.
14488 * progspace.c (new_address_space): Likewise.
14489 (add_program_space): Likewise.
14490 * remote-sim.c (get_sim_inferior_data): Likewise.
14491 * sh-tdep.c (sh_gdbarch_init): Likewise.
14492 * skip.c (Ignore): Likewise.
14493 (skip_delete_command): Likewise.
14494 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14495 (library_list_start_library): Likewise.
14496 (solib_aix_current_sos): Likewise.
14497 * solib-darwin.c (get_darwin_info): Likewise.
14498 (darwin_current_sos): Likewise.
14499 * solib-dsbt.c (get_dsbt_info): Likewise.
14500 * solib-ia64-hpux.c (new_so_list): Likewise.
14501 (ia64_hpux_get_solib_linkage_addr): Likewise.
14502 * solib-spu.c (append_ocl_sos): Likewise.
14503 (spu_current_sos): Likewise.
14504 * solib-svr4.c (get_svr4_info): Likewise.
14505 (svr4_keep_data_in_core): Likewise.
14506 (library_list_start_library): Likewise.
14507 (svr4_default_sos): Likewise.
14508 (svr4_read_so_list): Likewise.
14509 * solib-target.c (library_list_start_library): Likewise.
14510 (solib_target_current_sos): Likewise.
14511 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14512 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14513 * symfile.c (default_symfile_segments): Likewise.
14514 * target-descriptions.c (tdesc_data_init): Likewise.
14515 (tdesc_create_reg): Likewise.
14516 (struct tdesc_type *): Likewise.
14517 (tdesc_create_vector): Likewise.
14518 (tdesc_set_struct_size): Likewise.
14519 (struct tdesc_type *): Likewise.
14520 (tdesc_free_feature): Likewise.
14521 (tdesc_create_feature): Likewise.
14522 * windows-nat.c (windows_add_thread): Likewise.
14523 (windows_make_so): Likewise.
14524 * xml-support.c (gdb_xml_body_text): Likewise.
14525 (gdb_xml_create_parser_and_cleanup): Likewise.
14526 (xml_process_xincludes): Likewise.
14527 * xml-syscall.c (allocate_syscalls_info): Likewise.
14528 (syscall_create_syscall_desc): Likewise.
14529
14530 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14531
14532 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14533 function, with code from i386_stap_parse_special_token.
14534 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14535 (i386_stap_parse_special_token): Move code to the two functions
14536 above; simplify it.
14537
14538 2014-01-09 Pedro Alves <palves@redhat.com>
14539 Hui Zhu <hui@codesourcery.com>
14540
14541 PR gdb/16101
14542 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14543 bp_err_string. Don't mark the location shlib_disabled if the
14544 error thrown wasn't a generic or memory error. Catch errors
14545 thrown while inserting breakpoints in overlayed code. Output
14546 error message of software breakpoints.
14547 * remote.c (remote_insert_breakpoint): If this breakpoint has
14548 target-side commands but this stub doesn't support Z0 packets,
14549 throw NOT_SUPPORTED_ERROR error.
14550 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14551 * target.h (target_insert_breakpoint): Extend comment.
14552 (target_insert_hw_breakpoint): Add comment.
14553
14554 2014-01-08 Pedro Alves <palves@redhat.com>
14555
14556 * remote.c (remote_add_thread): Add threads silently if starting
14557 up.
14558 (remote_notice_new_inferior): If in all-stop, and starting up,
14559 don't call notice_new_inferior.
14560 (get_current_thread): New function, factored out from ...
14561 (add_current_inferior_and_thread): ... this. Adjust.
14562 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14563 found any thread, then select the remote's current thread as GDB's
14564 current thread too.
14565
14566 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14567
14568 * NEWS: Create a new section for the next release branch.
14569 Rename the section of the current branch, now that it has
14570 been cut.
14571
14572 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14573
14574 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14575 * version.in: Bump version to 7.7.50.DATE-cvs.
14576
14577 2014-01-08 Yao Qi <yao@codesourcery.com>
14578
14579 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14580 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14581 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14582
14583 2014-01-08 Yao Qi <yao@codesourcery.com>
14584
14585 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14586 return value of bfd_get_filename to symbol_file_add_from_bfd.
14587
14588 2014-01-08 Pierre Muller <muller@sourceware.org>
14589
14590 Fix PR16201.
14591 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14592 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14593 to prim_record_mininal_symbol_and_info.
14594 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14595 in call to prim_record_minimal_symbol_and_info.
14596 (read_pe_exported_syms): Set index field of section_data.
14597
14598 2014-01-07 Andrew Pinski <apinski@cavium.com>
14599
14600 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14601 * features/aarch64.c: Regenerate.
14602
14603 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14604
14605 * target.c (return_null): Define.
14606 (update_current_target): Use it instead of return_zero for
14607 functions that return a pointer.
14608
14609 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14610
14611 * source.c (add_path): Fix check for duplicated paths in the previously
14612 included paths.
14613
14614 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14615
14616 * ada-lang.c: Remove duplicated include statements.
14617 * alphabsd-nat.c: Ditto.
14618 * amd64-darwin-tdep.c: Ditto.
14619 * amd64fbsd-nat.c: Ditto.
14620 * auto-load.c: Ditto.
14621 * ax-gdb.c: Ditto.
14622 * breakpoint.c: Ditto.
14623 * dbxread.c: Ditto.
14624 * fork-child.c: Ditto.
14625 * gdb_usleep.c: Ditto.
14626 * i386-darwin-tdep.c: Ditto.
14627 * i386fbsd-nat.c: Ditto.
14628 * infcmd.c: Ditto.
14629 * inferior.c: Ditto.
14630 * jv-lang.c: Ditto.
14631 * linux-nat.c: Ditto.
14632 * linux-tdep.c: Ditto.
14633 * m68kbsd-nat.c: Ditto.
14634 * m68klinux-nat.c: Ditto.
14635 * microblaze-tdep.c: Ditto.
14636 * mips-linux-tdep.c: Ditto.
14637 * mn10300-tdep.c: Ditto.
14638 * nto-tdep.c: Ditto.
14639 * opencl-lang.c: Ditto.
14640 * osdata.c: Ditto.
14641 * printcmd.c: Ditto.
14642 * regcache.c: Ditto.
14643 * remote-m32r-sdi.c: Ditto.
14644 * remote.c: Ditto.
14645 * symfile.c: Ditto.
14646 * symtab.c: Ditto.
14647 * tilegx-linux-nat.c: Ditto.
14648 * tilegx-tdep.c: Ditto.
14649 * tracepoint.c: Ditto.
14650 * valops.c: Ditto.
14651 * vaxbsd-nat.c: Ditto.
14652 * windows-nat.c: Ditto.
14653 * xtensa-tdep.c: Ditto.
14654
14655 2014-01-07 Yao Qi <yao@codesourcery.com>
14656
14657 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14658
14659 2014-01-07 Yao Qi <yao@codesourcery.com>
14660 Joel Brobecker <brobecker@adacore.com>
14661
14662 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14663 (pdc_write_regs): Likewise.
14664 (fetch_regs_kernel_thread): Likewise.
14665 (store_regs_kernel_thread): Likewise.
14666
14667 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14668
14669 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14670 tagged type objects to their actual type.
14671
14672 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14673
14674 * ada-valprint.c (print_field_values): Add "language" parameter.
14675 Update calls to print_field_values and print_variant_part.
14676 Pass new parameter "language" in call to val_print instead
14677 of "current_language". Replace call to ada_val_print by call
14678 to val_print.
14679 (print_variant_part): Add "language" parameter.
14680 (ada_val_print_struct_union): Update call to print_field_values.
14681
14682 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14683
14684 * ada-valprint.c (ui_memcpy): Delete.
14685 (ada_print_floating): Update documentation. Add empty line
14686 between between function documentation and implementation.
14687 Delete variable "buffer". Use ui_file_xstrdup in place of
14688 ui_file_put. Minor adjustments following this change.
14689
14690 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14691
14692 * ada-valprint.c (ada_val_print_string): New function,
14693 extracted from ada_val_print_array.
14694 (ada_val_print_array): Replace extracted code by call
14695 to ada_val_print_string followed by a return. Move
14696 "else" branch to the function's top block.
14697
14698 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14699
14700 * ada-valprint.c (ada_val_print_array): Move implementation
14701 down. Rename parameter "offset" and "val" into "offset_aligned"
14702 and "original_value" respectively. Add parameter "offset".
14703
14704 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14705
14706 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14707 re-organizing the code. Change the "???" message printed
14708 when target type is a TYPE_CODE_UNDEF into
14709 "<ref to undefined type>".
14710
14711 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14712
14713 * ada-valprint.c (print_record): Delete, implementation inlined...
14714 (ada_val_print_struct_union): ... here. Remove call to
14715 ada_check_typedef in inlined implementation.
14716
14717 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14718
14719 * ada-valprint.c (ada_val_print_gnat_array): New function,
14720 extracted from ada_val_print_1;
14721 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14722 (ada_val_print_flt, ada_val_print_struct_union)
14723 (ada_val_print_ref): Likewise.
14724 (ada_val_print_1): Delete variables i and elttype.
14725 Replace extracted-out code by call to corresponding
14726 new functions.
14727
14728 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14729
14730 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14731
14732 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14733
14734 * ada-valprint.c (ada_val_print_1): Replace calls to
14735 ada_val_print_1 by calls to val_print.
14736
14737 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14738
14739 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14740 Update calls to self accordingly. Replace calls to c_val_print
14741 by calls to val_print.
14742
14743 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14744
14745 * ada-valprint.c (print_record): Delete declaration.
14746 (adjust_type_signedness, ada_val_print_1): Likewise.
14747 (ada_val_print): Move function implementation down.
14748 (print_variant_part, print_field_values, print_record):
14749 Move function implementation up.
14750
14751 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14752
14753 * python/py-type.c (typy_get_name): New function.
14754 (type_object_getset): Add entry for attribute "name".
14755 * NEWS: Add entry mentioning this new attribute.
14756
14757 2014-01-07 Yao Qi <yao@codesourcery.com>
14758
14759 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14760 statement.
14761
14762 2014-01-07 Yao Qi <yao@codesourcery.com>
14763
14764 * gnu-nat.c (info_port_rights): Add qualifier const to
14765 argument args.
14766
14767 2014-01-07 Yao Qi <yao@codesourcery.com>
14768
14769 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14770
14771 2014-01-07 Yao Qi <yao@codesourcery.com>
14772
14773 * gnu-nat.c (make_inf) Update declaration.
14774 (make_inf): Make it static.
14775 (inf_set_traced): Likewise.
14776 (inf_port_to_thread, inf_task_died_status): Likewise.
14777
14778 2014-01-07 Yao Qi <yao@codesourcery.com>
14779
14780 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14781
14782 2014-01-07 Yao Qi <yao@codesourcery.com>
14783
14784 * gnu-nat.c (_initialize_gnu_nat): Declare.
14785
14786 2014-01-07 Yao Qi <yao@codesourcery.com>
14787
14788 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14789 'enum bfd_endian'.
14790 (struct gdbarch_info) <byte_order>: Change type to
14791 'enum bfd_endian'.
14792 <byte_order_for_code>: Likewise.
14793 * gdbarch.c, gdbarch.h: Regenerated.
14794
14795 2014-01-06 Sasha Smundak <asmundak@google.com>
14796
14797 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14798
14799 2014-01-06 Tom Tromey <tromey@redhat.com>
14800
14801 * doublest.c (convert_doublest_to_floatformat): Use const, not
14802 CONST.
14803 * somread.c (som_symtab_read): Likewise.
14804
14805 2014-01-07 Hui Zhu <hui@codesourcery.com>
14806
14807 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14808 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14809 (gdb_bfd_fopen): Ditto.
14810 (gdb_bfd_openr): Ditto.
14811 (gdb_bfd_openw): Ditto.
14812 (gdb_bfd_openr_iovec): Ditto.
14813 (gdb_bfd_fdopenr): Ditto.
14814 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14815 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14816 with xstrdup.
14817 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14818 with xstrdup.
14819 * symfile-mem.c (symbol_file_add_from_memory): Removed
14820 gdb_bfd_stash_filename.
14821
14822 2014-01-03 Doug Evans <dje@google.com>
14823
14824 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14825 output.
14826
14827 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14828
14829 Update year range in copyright notice of all files.
14830
14831 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14832
14833 * top.c (print_gdb_version): Set copyright year to 2014.
14834
14835 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14836
14837 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14838
14839 For older changes see ChangeLog-2013.
14840 \f
14841 Local Variables:
14842 mode: change-log
14843 left-margin: 8
14844 fill-column: 74
14845 version-control: never
14846 coding: utf-8
14847 End:
This page took 0.382371 seconds and 4 git commands to generate.