SYMTAB_OBJFILE: New macro.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-11-18 Doug Evans <xdje42@gmail.com>
2
3 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
4 symtab.objfile updated to use it.
5
6 2014-11-18 Doug Evans <xdje42@gmail.com>
7
8 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
9
10 2014-11-18 Doug Evans <xdje42@gmail.com>
11
12 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
13 SYMBOL_OBJFILE.
14 * findvar.c (default_read_var_value): Ditto.
15 * jv-lang.c (add_class_symtab_symbol): Ditto.
16 * parse.c (operator_check_standard): Ditto.
17 * printcmd.c (address_info): Ditto.
18 * symtab.c (fixup_symbol_section): Ditto.
19 (skip_prologue_sal): Ditto.
20 * tracepoint.c (scope_info): Ditto.
21 * valops.c (find_function_in_inferior): Ditto.
22 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
23 * python/py-symbol.c (set_symbol): Ditto.
24
25 2014-11-18 Doug Evans <xdje42@gmail.com>
26
27 * buildsym.c (main_subfile): New static global.
28 (free_subfiles_list): New function.
29 (start_symtab): Set main_subfile.
30 (restart_symtab): Replace init of subfiles, current_subfile with
31 call to free_subfiles_list.
32 (watch_main_source_file_lossage): Use main_subfile.
33 (reset_symtab_globals): Replace init of current_subfile with call
34 to free_subfiles_list.
35 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
36 functions, split out from ...
37 (end_symtab_from_static_block): ... here. Rewrite to call them.
38
39 2014-11-18 Doug Evans <xdje42@gmail.com>
40
41 The result of symtab expansion is always a primary symtab.
42 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
43 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
44 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
45 (psymtab_to_symtab): Add comment and assert.
46 (map_matching_symbols_psymtab): Remove unnecessary test for
47 non-primary symtab.
48
49 2014-11-15 Doug Evans <xdje42@gmail.com>
50
51 PR symtab/17559
52 * symtab.c (find_pc_line_symtab): New function.
53 * symtab.h (find_pc_line_symtab): Declare.
54 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
55 find_pc_symtab.
56 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
57 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
58 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
59 * tui/tui-win.c (make_visible_with_new_height): Ditto.
60 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
61 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
62
63 2014-11-15 Doug Evans <xdje42@gmail.com>
64
65 * symtab.c (expand_symtab_containing_pc): Renamed from
66 find_pc_sect_symtab_via_partial. All callers updated.
67
68 2014-11-15 Yao Qi <yao@codesourcery.com>
69
70 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
71
72 2014-11-14 Joel Brobecker <brobecker@adacore.com>
73
74 * common/common-defs.h: Move <stdarg.h> #include ahead of
75 <stdio.h> #include.
76
77 2014-11-14 Pedro Alves <palves@redhat.com>
78
79 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
80 [!PHONY_ICONV] (gdb_iconv): New function.
81 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
82
83 2014-11-13 Doug Evans <dje@google.com>
84
85 PR symtab/17591
86 * dwarf2read.c (find_slot_in_mapped_hash): Handle
87 "(anonymous namespace)".
88
89 2014-11-13 Doug Evans <dje@google.com>
90
91 * dwarf2read.c (update_enumeration_type_from_children): Avoid
92 infinite loop.
93
94 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
95
96 * NEWS (maint set target-async): Fix typo.
97
98 2014-11-12 Pedro Alves <palves@redhat.com>
99
100 * infrun.c (enum infwait_states, infwait_state): Delete.
101
102 2014-11-12 Pedro Alves <palves@redhat.com>
103
104 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
105 Rewrite stepping over a permanent breakpoint.
106 (thread_still_needs_step_over, proceed): Don't set
107 stepping_over_breakpoint for permanent breakpoints.
108 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
109 single-step breakpoints out of the target on hardware step
110 targets.
111 (process_event_stop_test): If stepping a permanent breakpoint
112 doesn't hit the step-resume breakpoint, delete the step-resume
113 breakpoint.
114 (switch_back_to_stepped_thread): Also check if the stepped thread
115 has advanced already on hardware step targets.
116 (currently_stepping): Return true if the thread stepped a
117 breakpoint.
118
119 2014-11-12 Pedro Alves <palves@redhat.com>
120
121 Mark locations as permanent, not the whole breakpoint.
122 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
123 (mark_breakpoints_out): Don't mark permanent breakpoints as
124 uninserted.
125 (breakpoint_init_inferior): Use mark_breakpoints_out.
126 (breakpoint_here_p): Adjust.
127 (bpstat_stop_status, describe_other_breakpoints): Remove handling
128 of permanent breakpoints.
129 (make_breakpoint_permanent): Mark each location as permanent,
130 instead of marking the breakpoint.
131 (add_location_to_breakpoint): If the location is permanent, mark
132 it as such, and as inserted.
133 (init_breakpoint_sal): Don't make the breakpoint permanent here.
134 (bp_location_compare, update_global_location_list): Adjust.
135 (update_breakpoint_locations): Don't make the breakpoint permanent
136 here.
137 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
138 breakpoints.
139 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
140 (struct bp_location) <permanent>: New field.
141 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
142 reference to bp_permanent.
143
144 2014-11-12 Pedro Alves <palves@redhat.com>
145
146 * arch-utils.c (default_skip_permanent_breakpoint): New function.
147 * arch-utils.h (default_skip_permanent_breakpoint): New
148 declaration.
149 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
150 Install default_skip_permanent_breakpoint as default method.
151 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
152 (i386_gdbarch_init): Don't install it.
153 * infrun.c (resume): Assume there's always a
154 gdbarch_skip_permanent_breakpoint implementation.
155 * gdbarch.h, gdbarch.c: Regenerate.
156
157 2014-11-11 Daniel Colascione <dancol@dancol.org>
158
159 Warn about cross-PID-namespace debugging.
160 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
161 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
162 * linux-thread-db.c (check_pid_namespace_match): New function.
163 (thread_db_inferior_created): Call it.
164
165 2014-11-10 Doug Evans <xdje42@gmail.com>
166
167 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
168 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
169
170 2014-11-10 Doug Evans <xdje42@gmail.com>
171
172 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
173
174 2014-11-10 Doug Evans <xdje42@gmail.com>
175
176 PR symtab/17564
177 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
178 (lookup_static_symbol): Move definition to new location and rewrite.
179 (lookup_symbol_in_objfile): New function.
180 (lookup_symbol_global_iterator_cb): Call it.
181
182 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
183
184 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
185
186 2014-11-07 Pedro Alves <palves@redhat.com>
187
188 * infrun.c (process_event_stop_test) <subroutine check>: Don't
189 check if we did a "nexti" inside a prologue.
190 * symtab.c (in_prologue): Delete function.
191 * symtab.h (in_prologue): Delete declaration.
192
193 2014-11-06 Doug Evans <xdje42@gmail.com>
194
195 * symtab.h (lookup_global_symbol): Improve function comment.
196
197 2014-11-06 Doug Evans <xdje42@gmail.com>
198
199 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
200 All callers updated.
201 * symtab.h (lookup_global_symbol): Update decl.
202 (lookup_static_symbol): Move decl to better location.
203
204 2014-11-06 Doug Evans <xdje42@gmail.com>
205
206 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
207
208 2014-11-06 Doug Evans <xdje42@gmail.com>
209
210 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
211 All callers updated.
212 (lookup_symbol_in_all_objfiles): Renamed from
213 lookup_symbol_aux_symtabs. All callers updated.
214 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
215 All callers updated.
216 (lookup_symbol_in_objfile_symtabs): Renamed from
217 lookup_symbol_aux_objfile. All callers updated.
218
219 2014-11-06 Doug Evans <xdje42@gmail.com>
220
221 * symtab.c (lookup_symbol_in_block): Renamed from
222 lookup_symbol_aux_block. All callers updated.
223
224 2014-11-06 Doug Evans <xdje42@gmail.com>
225
226 * symtab.c (lookup_static_symbol): Renamed from
227 lookup_static_symbol_aux. All callers updated.
228 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
229 All callers updated.
230
231 2014-11-06 Doug Evans <xdje42@gmail.com>
232
233 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
234 * block.c (block_lookup_symbol): Use it.
235 * cp-support.c (make_symbol_overload_list_block): Use it.
236 * symtab.c (iterate_over_symbols): Use it.
237
238 2014-11-06 Doug Evans <xdje42@gmail.com>
239
240 * symtab.c (lookup_block_symbol): Moved to ...
241 * block.c (block_lookup_symbol): ... here and renamed.
242 All callers updated.
243 * block.h (block_lookup_symbol): Declare.
244 * symtab.h (lookup_block_symbol): Delete.
245
246 2014-11-06 Doug Evans <xdje42@gmail.com>
247
248 * ada-lang.c (ada_make_symbol_completion_list): Use
249 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
250 * symtab.c (lookup_objfile_from_block): Ditto.
251
252 2014-11-06 Doug Evans <xdje42@gmail.com>
253
254 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
255 TYPE_CODE_STRUCT.
256
257 2014-11-06 Doug Evans <xdje42@gmail.com>
258
259 * objfiles.c (get_objfile_arch): Constify.
260 * objfiles.h (get_objfile_arch): Update prototype.
261 * solib.c (solib_global_lookup): Fetch arch from objfile,
262 not target_gdbarch.
263
264 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
265
266 * nios2-tdep.c (wild_insn): Delete.
267 (profiler_insn, irqentry_insn): Delete.
268 (nios2_match_sequence): Delete.
269 (nios2_analyze_prologue): Update comments. Remove matching
270 of obsolete profiler_insn and irqentry_insn sequences.
271
272 2014-11-05 Alan Modra <amodra@gmail.com>
273
274 * charset.c (convert_between_encodings): Shrink obstack using
275 obstack_blank_fast.
276 * minsyms.c (install_minimal_symbols): Likewise.
277 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
278 to char* before doing pointer arithmetic.
279
280 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
281
282 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
283
284 2014-11-04 Pedro Alves <palves@redhat.com>
285
286 * breakpoint.c (breakpoint_thread_match): Delete function.
287 * breakpoint.h (breakpoint_thread_match): Delete declaration.
288
289 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
290
291 PR c++/17494
292 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
293 the method args also under EVAL_SKIP when evaluating method
294 calls under EVAL_SKIP.
295
296 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
297
298 * dwarf2loc.c (read_pieced_value): Do big endian
299 processing only if gdb_regnum is not -1.
300 (write_pieced_value): Ditto.
301
302 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
303
304 * arm-linux-tdep.c (arm_linux_init_abi): Use
305 info.byte_order_for_code to choose endianity of breakpoint
306 instructions snippets.
307
308 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
309
310 * arm-tdep.c (extract_arm_insn): Use
311 gdbarch_byte_order_for_code to read arm instruction.
312
313 2014-11-02 Doug Evans <xdje42@gmail.com>
314
315 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
316
317 2014-11-02 Doug Evans <xdje42@gmail.com>
318
319 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
320 main_subfile before returning.
321
322 2014-10-31 Doug Evans <xdje42@gmail.com>
323
324 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
325 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
326
327 2014-10-31 Doug Evans <xdje42@gmail.com>
328
329 * valops.c (value_cast_pointers): Fix whitespace.
330 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
331 Ditto.
332
333 2014-10-30 Doug Evans <dje@google.com>
334
335 * NEWS: Mention ability add attributes to gdb.Objfile and
336 gdb.Progspace objects.
337 * python/py-objfile.c (objfile_object): New member dict.
338 (objfpy_dealloc): Py_XDECREF dict.
339 (objfpy_initialize): Initialize dict.
340 (objfile_getset): Add __dict__.
341 (objfile_object_type): Set tp_dictoffset member.
342 * python/py-progspace.c (progspace_object): New member dict.
343 (pspy_dealloc): Py_XDECREF dict.
344 (pspy_initialize): Initialize dict.
345 (pspace_getset): Add __dict__.
346 (pspace_object_type): Set tp_dictoffset member.
347
348 2014-10-30 Yao Qi <yao@codesourcery.com>
349
350 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
351 replace '\\' with '\\\\'.
352
353 2014-10-29 Joel Brobecker <brobecker@adacore.com>
354
355 GDB 7.8.1 released.
356
357 2014-10-29 Pedro Alves <palves@redhat.com>
358
359 PR gdb/17408
360 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
361 instead of assuming a thread with a stepping range is always
362 stepping.
363
364 2014-10-29 Pedro Alves <palves@redhat.com>
365
366 PR python/17372
367 * event-top.c (change_line_handler): Call
368 gdb_rl_callback_handler_remove instead of
369 rl_callback_handler_remove.
370 (callback_handler_installed): New global.
371 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
372 (gdb_rl_callback_handler_reinstall): New functions.
373 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
374 gdb_rl_callback_handler_install instead of
375 rl_callback_handler_remove and rl_callback_handler_install.
376 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
377 instead of rl_callback_handler_remove.
378 * event-top.h (gdb_rl_callback_handler_remove)
379 (gdb_rl_callback_handler_install)
380 (gdb_rl_callback_handler_reinstall): New declarations.
381 * infrun.c (reinstall_readline_callback_handler_cleanup): New
382 cleanup function.
383 (fetch_inferior_event): Install it.
384 * top.c (gdb_readline_wrapper_line) Call
385 gdb_rl_callback_handler_remove instead of
386 rl_callback_handler_remove.
387 (gdb_readline_wrapper_cleanup): Don't call
388 rl_callback_handler_install.
389
390 2014-10-29 Pedro Alves <palves@redhat.com>
391
392 * event-top.c (command_line_handler): Clear the first byte of
393 linebuffer, when it is first allocated.
394
395 2014-10-29 Pedro Alves <palves@redhat.com>
396
397 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
398 TRY_CATCH.
399
400 2014-10-29 Pedro Alves <palves@redhat.com>
401
402 PR tui/16138
403 PR tui/17519
404 * tui/tui-interp.c (tui_is_toplevel): Delete global.
405 (tui_allowed_p): Delete function.
406 * tui/tui.c: Include "interps.h".
407 (tui_enable): Don't use tui_allowed_p. Error out here with
408 detailed error messages if the TUI is the top level interpreter,
409 or if output is not a terminal. Use newterm instead of initscr,
410 and error out if initializing the terminal fails. Also error out if
411 the terminal doesn't support cursor addressing.
412 * tui/tui.h (tui_allowed_p): Delete declaration.
413
414 2014-10-29 Joel Brobecker <brobecker@adacore.com>
415
416 * arm-tdep.c (arm_skip_stack_protector): Return early if
417 address loaded by first "ldr" instruction does not have
418 a corresponding minimal symbol. Update comment.
419
420 2014-10-29 Yao Qi <yao@codesourcery.com>
421
422 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
423 loaded address correctly of ldr instruction.
424
425 2014-10-28 Pedro Alves <palves@redhat.com>
426
427 PR gdb/12623
428 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
429 field.
430 * infrun.c (resume) <stepping breakpoint instruction>: Set the
431 thread's stepped_breakpoint field. Skip if reverse debugging.
432 Add comment.
433 (init_thread_stepping_state, handle_signal_stop): Clear the
434 thread's stepped_breakpoint field.
435
436 2014-10-27 Pedro Alves <palves@redhat.com>
437
438 * remote.c (remote_thread_alive): New, factored out from ...
439 (remote_thread_alive): ... this.
440 (remote_update_thread_list): Bail out before deleting threads if
441 the target returned an empty list, and, the current thread has a
442 magic/fake ptid.
443
444 2014-10-27 Pedro Alves <palves@redhat.com>
445
446 * infrun.c (handle_signal_stop): Also skip handlers when a random
447 signal arrives while handling a "stepi" or a "nexti". Set the
448 thread's 'step_after_step_resume_breakpoint' flag.
449
450 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
451
452 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
453 (arm_record_ld_st_imm_offset): Reimplement to cover all
454 load/store cases for ARM opcode 010.
455 (arm_record_ld_st_multiple): Reimplement to cover all
456 load/store cases for ARM opcode 100.
457
458 2014-10-26 Doug Evans <xdje42@gmail.com>
459
460 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
461
462 2014-10-26 Doug Evans <xdje42@gmail.com>
463
464 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
465 parameter "kind" to "block_index".
466 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
467 "block_index".
468 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
469
470 2014-10-26 Doug Evans <xdje42@gmail.com>
471
472 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
473
474 2014-10-26 Doug Evans <xdje42@gmail.com>
475
476 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
477 obstack_alloc.
478
479 2014-10-26 Doug Evans <xdje42@gmail.com>
480
481 * parser-defs.h (block_found): Move decl from here ...
482 * symtab.h (block_found): ... to here.
483
484 2014-10-26 Doug Evans <xdje42@gmail.com>
485
486 * symtab.h (struct field_of_this_result): Fix typo in comment.
487 (lookup_symbol_in_language): Move function comment here.
488 (lookup_symbol): Improve function comment.
489 (basic_lookup_symbol_nonlocal): Ditto.
490 (lookup_symbol_static, lookup_symbol_global): Ditto.
491 (lookup_symbol_aux_block): Ditto.
492 (lookup_language_this): Add function comment.
493 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
494 function comment.
495 (lookup_block_symbol): Improve function comment.
496 (lookup_struct): Fix capitalization in function comment.
497 (lookup_transparent_type): Add function comment.
498 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
499 Improve function comment.
500 (lookup_objfile_from_block): Add function comment.
501 * symtab.c (lookup_symbol_in_language): Update function comment.
502 (lookup_symbol, lookup_language_this): Ditto.
503 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
504 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
505 (basic_lookup_symbol_nonlocal): Ditto.
506 (lookup_symbol_static, lookup_symbol_global): Ditto.
507 (lookup_transparent_type, lookup_block_symbol): Ditto.
508
509 2014-10-25 Doug Evans <xdje42@gmail.com>
510
511 * symtab.c (types_info): Delete forward decl.
512 (functions_info, variables_info, sources_info): Ditto.
513 (_initialize_symtab): Rewrite forward decl to use
514 initialize_file_ftype.
515
516 2014-10-25 Doug Evans <xdje42@gmail.com>
517
518 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
519
520 2014-10-25 Doug Evans <xdje42@gmail.com>
521
522 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
523 of local var child_die.
524
525 2014-10-24 Don Breazeal <donb@codesourcery.com>
526
527 * infrun.c (follow_fork_inferior): Update fork message printing
528 to use target_terminal_ours_for_output instead of
529 target_terminal_ours, to use _() for all format strings, to print
530 "vfork" instead of "fork" for vforks, and to add a detach message.
531 (handle_vfork_child_exec_or_exit): Update message printing to use
532 target_terminal_ours_for_output instead of target_terminal_ours, to
533 use _() for all format strings, and to fix some formatting.
534
535 2014-10-24 Pedro Alves <palves@redhat.com>
536
537 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
538 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
539 * config/vax/vax.mh: Delete.
540 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
541 obsolete configurations section.
542 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
543 * vax-nat.c: Delete file.
544
545 2014-10-24 Pedro Alves <palves@redhat.com>
546
547 * NEWS (Removed targets): Add OS/arch column.
548
549 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
550
551 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
552 on the arg type of a constructor only if it is of reference type.
553
554 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
555
556 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
557 accessors and constants from nios2 opcodes update.
558 (nios2_get_next_pc): Likewise.
559
560 2014-10-19 Doug Evans <xdje42@gmail.com>
561
562 * gdbthread.h (set_running): Fix comment.
563 (set_executing, finish_thread_state): Fix comment.
564
565 2014-10-18 Doug Evans <xdje42@gmail.com>
566
567 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
568
569 2014-10-17 Doug Evans <dje@google.com>
570
571 * NEWS: Mention new event gdb.clear_objfiles.
572 * python/py-event.h (emit_clear_objfiles_event): Clear
573 * python/py-events.h (events_object): New member clear_objfiles.
574 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
575 event.
576 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
577 emit clear_objfiles event.
578 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
579 function.
580 (emit_clear_objfiles_event): New function.
581 (clear_objfiles): New event.
582 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
583 Declare.
584 * python/python.c (_initialize_python): Call
585 gdbpy_initialize_clear_objfiles_event.
586
587 2014-10-17 Doug Evans <dje@google.com>
588
589 * NEWS: Mention new gdb.Objfile.progspace attribute.
590 * python/py-objfile.c (objfpy_get_progspace): New function.
591 (objfile_getset): New entry for "progspace".
592
593 2014-10-17 Pedro Alves <palves@redhat.com>
594
595 PR gdb/17471
596 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
597 returns a copy of the input.
598 (run_command_1, continue_command, step_1, jump_command)
599 (signal_command, until_command, advance_command, finish_command)
600 (attach_command): Adjust and install a cleanup to free the
601 stripped args.
602
603 2014-10-17 Pedro Alves <palves@redhat.com>
604
605 PR gdb/17300
606 * infcmd.c (continue_1): If continuing all threads in the
607 foreground, make sure the inferior's terminal settings are put in
608 effect.
609
610 2014-10-17 Pedro Alves <palves@redhat.com>
611
612 PR gdb/17472
613 * annotate.c (annotate_breakpoints_invalid): Use
614 target_terminal_our_for_output instead of target_terminal_ours.
615 Give back the terminal to the target.
616 (annotate_frames_invalid): Likewise.
617
618 2014-10-17 Pedro Alves <palves@redhat.com>
619
620 * target.c (enum terminal_state): New enum.
621 (terminal_state): New global.
622 (target_terminal_init): New function.
623 (target_terminal_inferior): Skip if inferior already owns the
624 terminal.
625 (target_terminal_ours, target_terminal_ours_for_output): New
626 functions.
627 * target.h (target_terminal_init): Convert to function prototype.
628 (target_terminal_ours_for_output): Convert to function prototype
629 and tweak comment.
630 (target_terminal_ours): Convert to function prototype and tweak
631 comment.
632 * windows-nat.c (do_initial_windows_stuff): Call
633 target_terminal_init instead of child_terminal_init_with_pgrp.
634
635 2014-10-17 Pedro Alves <palves@redhat.com>
636
637 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
638 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
639 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
640 solib-osf.c.
641 * NEWS: Mention that support for alpha*-*-osf* has been removed.
642 * ada-lang.h [__alpha__ && __osf__]
643 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
644 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
645 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
646 GDB_OSABI_OSF1.
647 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
648 files.
649 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
650 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
651 * configure: Regenerate.
652 * configure.ac: Remove references to osf.
653 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
654 section. Remove all other references to osf.
655 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
656 Remove all other references to osf.
657 * dec-thread.c: Delete file.
658 * defs.h (GDB_OSABI_OSF1): Delete.
659 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
660 defined.
661 * osabi.c (gdb_osabi_names): Delete "OSF/1".
662 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
663 Delete code.
664 (unconditionally_kill_inferior)
665 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
666 * solib-osf.c: Delete file.
667
668 2014-10-17 Pedro Alves <palves@redhat.com>
669
670 * remote.c (clear_threads_listing_context): Move higher up, out of
671 the HAVE_LIBEXPAT guard.
672
673 2014-10-16 Tristan Gingold <gingold@adacore.com>
674
675 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
676 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
677 on amd64.
678
679 2014-10-15 Pedro Alves <palves@redhat.com>
680
681 * dec-thread.c (dec_thread_count_gdb_threads)
682 (dec_thread_add_gdb_thread): Delete.
683 (dec_thread_update_thread_list): Delete.
684 (dec_thread_find_new_threads): Rename to ...
685 (dec_thread_update_thread_list): ... this. Delete GDB-size
686 threads that are no longer found in dec_thread_list.
687 (resync_thread_list): Delete.
688 (dec_thread_wait): Call dec_thread_update_thread_list instead of
689 resync_thread_list.
690
691 2014-10-15 Pedro Alves <palves@redhat.com>
692
693 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
694 * remote.c (remote_update_thread_list): Skip calling prune_threads
695 if any thread listing method is supported, and instead walk over
696 the set of remote threads listed, deleting those that are not
697 found in GDB's thread list.
698
699 2014-10-15 Pedro Alves <palves@redhat.com>
700
701 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
702 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
703 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
704 (bsd_uthread_target): Adjust.
705 * corelow.c (core_open): Adjust.
706 * dec-thread.c (dec_thread_find_new_threads): Update comment.
707 (dec_thread_update_thread_list): New function.
708 (init_dec_thread_ops): Adjust.
709 * gdbthread.h (prune_threads): New declaration.
710 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
711 (thread_db_update_thread_list): ... this. Call prune_threads.
712 (init_thread_db_ops): Adjust.
713 * nto-procfs.c (procfs_find_new_threads): Rename to ...
714 (procfs_update_thread_list): ... this. Call prune_threads.
715 (procfs_attach, procfs_create_inferior, init_procfs_targets):
716 Adjust.
717 * obsd-nat.c (obsd_find_new_threads): Rename to ...
718 (obsd_update_thread_list): ... this. Call prune_threads.
719 (obsd_add_target): Adjust.
720 * procfs.c (procfs_target): Adjust.
721 (procfs_notice_thread): Update comment.
722 (procfs_find_new_threads): Rename to ...
723 (procfs_update_thread_list): ... this. Call prune_threads.
724 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
725 comment.
726 (ravenscar_wait): Adjust.
727 (ravenscar_find_new_threads): Rename to ...
728 (ravenscar_update_thread_list): ... this. Call prune_threads.
729 (init_ravenscar_thread_ops): Adjust.
730 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
731 (record_btrace_update_thread_list): ... this. Adjust comment.
732 (init_record_btrace_ops): Adjust.
733 * remote.c (remote_threads_info): Rename to ...
734 (remote_update_thread_list): ... this. Call prune_threads.
735 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
736 Adjust.
737 * sol-thread.c (check_for_thread_db): Adjust.
738 (sol_find_new_threads_callback): Rename to ...
739 (sol_update_thread_list_callback): ... this.
740 (sol_find_new_threads): Rename to ...
741 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
742 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
743 * target-delegates.c: Regenerate.
744 * target.c (target_find_new_threads): Rename to ...
745 (target_update_thread_list): ... this.
746 * target.h (struct target_ops): Rename to_find_new_threads field
747 to to_update_thread_list.
748 (target_find_new_threads): Rename to ...
749 (target_update_thread_list): ... this.
750 * thread.c (prune_threads): Make extern.
751 (update_thread_list): Adjust.
752
753 2014-10-15 Pedro Alves <palves@redhat.com>
754
755 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
756 Add describing comment. Return -1 if the qL packet is not
757 supported.
758 (struct thread_item, thread_item_t): Move higher up in
759 the file. Add comments.
760 (struct threads_parsing_context): Move higher up in
761 the file, add comments, and remote to ...
762 (struct threads_listing_context): ... this.
763 (remote_newthread_step): Don't add the thread to GDB's thread
764 database here. Instead push it to the thread_listing_context
765 list.
766 (remote_find_new_threads): Rename to ...
767 (remote_get_threads_with_ql): ... this. Add target_ops and
768 targets_listing_context parameters. Pass down context.
769 (start_thread): Adjust.
770 (clear_threads_parsing_context): Rename to ...
771 (clear_threads_listing_context): ... this.
772 (remote_get_threads_with_qxfer): New, with parts salvaged from old
773 remote_threads_info.
774 (remote_get_threads_with_qthreadinfo): Ditto.
775 (remote_threads_info): Reimplement.
776
777 2014-10-15 Pedro Alves <palves@redhat.com>
778
779 * infrun.c (resume): Don't force displaced-stepping for all
780 single-steps on software single-stepping archs.
781
782 2014-10-15 Pedro Alves <palves@redhat.com>
783
784 * breakpoint.c (single_step_breakpoints): Delete global.
785 (insert_single_step_breakpoint): Adjust to store the breakpoint
786 pointer in the current thread.
787 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
788 (cancel_single_step_breakpoints): Delete functions.
789 (breakpoint_has_location_inserted_here): Make extern.
790 (single_step_breakpoint_inserted_here_p): Adjust to walk the
791 breakpoint list.
792 * breakpoint.h (breakpoint_has_location_inserted_here): New
793 declaration.
794 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
795 (cancel_single_step_breakpoints): Remove declarations.
796 * gdbthread.h (struct thread_control_state)
797 <single_step_breakpoints>: New field.
798 (delete_single_step_breakpoints)
799 (thread_has_single_step_breakpoints_set)
800 (thread_has_single_step_breakpoint_here): New declarations.
801 * infrun.c (follow_exec): Also clear the single-step breakpoints.
802 (singlestep_breakpoints_inserted_p, singlestep_ptid)
803 (singlestep_pc): Delete globals.
804 (infrun_thread_ptid_changed): Remove references to removed
805 globals.
806 (resume_cleanups): Delete the current thread's single-step
807 breakpoints.
808 (maybe_software_singlestep): Remove references to removed globals.
809 (resume): Adjust to use thread_has_single_step_breakpoints_set and
810 delete_single_step_breakpoints.
811 (init_wait_for_inferior): Remove references to removed globals.
812 (delete_thread_infrun_breakpoints): Delete the thread's
813 single-step breakpoints too.
814 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
815 single-step breakpoints here.
816 (delete_stopped_threads_single_step_breakpoints): New function.
817 (adjust_pc_after_break): Adjust to use
818 thread_has_single_step_breakpoints_set.
819 (handle_inferior_event): Remove references to removed globals.
820 Use delete_stopped_threads_single_step_breakpoints.
821 (handle_signal_stop): Adjust to per-thread single-step
822 breakpoints. Swap test order to do cheaper tests first.
823 (switch_back_to_stepped_thread): Extend debug output. Remove
824 references to removed globals.
825 * record-full.c (record_full_wait_1): Adjust to per-thread
826 single-step breakpoints.
827 * thread.c (delete_single_step_breakpoints)
828 (thread_has_single_step_breakpoints_set)
829 (thread_has_single_step_breakpoint_here): New functions.
830 (clear_thread_inferior_resources): Also delete the thread's
831 single-step breakpoints.
832
833 2014-10-15 Pedro Alves <palves@redhat.com>
834
835 * thread.c (delete_thread_breakpoint): New function.
836 (delete_step_resume_breakpoint)
837 (delete_exception_resume_breakpoint): Use it.
838 (delete_at_next_stop): New function.
839 (clear_thread_inferior_resources): Use delete_at_next_stop.
840
841 2014-10-15 Pedro Alves <palves@redhat.com>
842
843 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
844 (breakpoint_inserted_here_p): ... here. Remove special case for
845 software single-step breakpoints.
846 (find_non_raw_software_breakpoint_inserted_here): Inline ...
847 (software_breakpoint_inserted_here_p): ... here. Remove special
848 case for software single-step breakpoints.
849 (bp_target_info_copy_insertion_state)
850 (deprecated_insert_raw_breakpoint)
851 (deprecated_remove_raw_breakpoint): Delete functions.
852 * breakpoint.h (deprecated_insert_raw_breakpoint)
853 (deprecated_remove_raw_breakpoint): Remove declarations.
854
855 2014-10-15 Pedro Alves <palves@redhat.com>
856
857 PR breakpoints/9649
858 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
859 Delete array globals.
860 (single_step_breakpoints): New global.
861 (breakpoint_xfer_memory): Remove special handling for single-step
862 breakpoints.
863 (update_breakpoints_after_exec): Delete bp_single_step
864 breakpoints.
865 (detach_breakpoints): Remove special handling for single-step
866 breakpoints.
867 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
868 (bpstat_stop_status): Add comment.
869 (bpstat_what, bptype_string, print_one_breakpoint_location)
870 (adjust_breakpoint_address, init_bp_location): Handle
871 bp_single_step.
872 (new_single_step_breakpoint): New function.
873 (set_momentary_breakpoint, bkpt_remove_location): Remove special
874 handling for single-step breakpoints.
875 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
876 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
877 Rewrite.
878 (detach_single_step_breakpoints, find_single_step_breakpoint):
879 Delete functions.
880 (breakpoint_has_location_inserted_here): New function.
881 (single_step_breakpoint_inserted_here_p): Rewrite.
882 * breakpoint.h: Remove FIXME.
883 (enum bptype) <bp_single_step>: New enum value.
884 (insert_single_step_breakpoint): Update comment.
885 * infrun.c (resume_cleanups)
886 (delete_step_thread_step_resume_breakpoint): Remove single-step
887 breakpoints.
888 (fetch_inferior_event): Install a cleanup that removes infrun
889 breakpoints.
890 (switch_back_to_stepped_thread) <expect thread advanced also>:
891 Clear step-over info.
892
893 2014-10-15 Pedro Alves <palves@redhat.com>
894
895 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
896 (delete_thread_infrun_breakpoints): New function, with parts
897 salvaged from delete_step_resume_breakpoint_callback.
898 (delete_step_thread_step_resume_breakpoint): Delete.
899 (for_each_just_stopped_thread_callback_func): New typedef.
900 (for_each_just_stopped_thread): New function.
901 (delete_just_stopped_threads_infrun_breakpoints): New function.
902 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
903 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
904 ... this. Adjust.
905 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
906
907 2014-10-15 Pedro Alves <palves@redhat.com>
908
909 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
910 trying to step past a non-steppable watchpoint.
911 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
912 field.
913 * infrun.c (struct step_over_info): Add new field
914 'nonsteppable_watchpoint_p' and adjust comments.
915 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
916 Adjust.
917 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
918 (stepping_past_nonsteppable_watchpoint): New function.
919 (step_over_info_valid_p): Also return true if stepping past a
920 nonsteppable watchpoint.
921 (proceed): Adjust call to set_step_over_info. Remove reference to
922 init_infwait_state.
923 (init_wait_for_inferior): Remove reference to init_infwait_state.
924 (waiton_ptid): Delete global.
925 (struct execution_control_state)
926 <stepped_after_stopped_by_watchpoint>: Delete field.
927 (wait_for_inferior, fetch_inferior_event): Always pass
928 minus_one_ptid to target_wait.
929 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
930 field.
931 (init_infwait_state): Delete function.
932 (handle_inferior_event): Remove infwait_state handling.
933 (handle_signal_stop) <watchpoints handling>: Adjust after
934 stepped_after_stopped_by_watchpoint removal. Don't remove
935 breakpoints here nor set infwait_state. Set the thread's
936 stepping_over_watchpoint flag, and call keep_going instead.
937 (keep_going): Handle stepping_over_watchpoint. Adjust
938 set_step_over_info calls.
939 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
940 function.
941
942 2014-10-15 Pedro Alves <palves@redhat.com>
943
944 * infrun.c (step_over_info_valid_p): New function.
945 (resume): Use step_over_info_valid_p instead of checking the
946 threads's trap_expected flag.
947
948 2014-10-15 Doug Evans <dje@google.com>
949 Walfred Tedeschi <walfred.tedeschi@intel.com>
950
951 PR python/17364
952 * python/lib/gdb/__init__.py (packages): Add "printer".
953 * python/lib/gdb/command/bound_registers.py: Moved to ...
954 * python/lib/gdb/printer/bound_registers.py: ... here.
955 Add printer to global set of builtin printers. Rename printer from
956 "bound" to "mpx_bound128".
957 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
958 registered as global "builtin" printer.
959 (add_builtin_pretty_printer): New function.
960 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
961 gdb/printer/__init__.py.
962
963 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
964
965 * Makefile.in (SFILES): Remove d-support.c.
966 (COMMON_OBS): Remove d-support.o.
967 * d-lang.h (d_parse_symbol): Remove declaration.
968 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
969 * d-support.c: Remove file.
970
971 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
972
973 * gdb/infrun.c (process_event_stop_test): Apply
974 gdbarch_addr_bits_remove to longjmp resume address.
975
976 2014-10-15 Pedro Alves <palves@redhat.com>
977
978 * regformats/microblaze.dat: Delete file.
979
980 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
981
982 * features/Makefile (microblaze-expedite): Replace pc with rpc.
983 * regformats/microblaze-with-stack-protect.dat: Regenerate.
984
985 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
986
987 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
988 as non-trivial.
989
990 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
991
992 PR c++/13403
993 PR c++/15154
994 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
995 with qualified args.
996
997 2014-10-14 Joel Brobecker <brobecker@adacore.com>
998
999 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1000 of the case where the second operand is a pointer.
1001 <BINOP_SUB>: Likewise.
1002
1003 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1004
1005 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1006 only if it is not NULL.
1007 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1008 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1009 (struct probe_ops) <clear_semaphore>: Likewise.
1010 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1011 not NULL.
1012 (stop_tracing): Likewise, for clear_semaphore.
1013
1014 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1015
1016 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1017 using language_c, instead of current_language.
1018
1019 2014-10-13 Doug Evans <dje@google.com>
1020
1021 * python/py-objfile.c (objfpy_initialize): New function.
1022 (objfpy_new, objfile_to_objfile_object): Call it.
1023 * python/py-progspace.c (pspy_initialize): New function.
1024 (pspy_new, pspace_to_pspace_object): Call it.
1025
1026 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1027 Jan Kratochvil <jan.kratochvil@redhat.com>
1028
1029 Fix "save breakpoints" for "catch" command.
1030 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1031 newline.
1032
1033 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1034
1035 Fix "save breakpoints" for "disable $bpnum" command.
1036 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1037
1038 2014-10-10 Pedro Alves <palves@redhat.com>
1039
1040 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1041 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1042 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1043 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1044 and been removed.
1045 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1046 * configure.ac: Remove references to IRIX.
1047 * configure.host: Add *-*-irix* to the obsolete hosts section.
1048 Remove all other references to irix.
1049 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1050 Delete files.
1051
1052 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1053
1054 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1055 isn't valid, release the tdesc arch data and return NULL.
1056
1057 2014-10-10 Pedro Alves <palves@redhat.com>
1058
1059 * linux-tdep.c: Include observer.h.
1060 (linux_inferior_data): New global.
1061 (struct linux_info): New structure.
1062 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1063 (get_linux_inferior_data): New functions.
1064 (linux_vsyscall_range): Rename to ...
1065 (linux_vsyscall_range_raw): ... this.
1066 (linux_vsyscall_range): New function; handles caching.
1067 (_initialize_linux_tdep): Register linux_inferior_data. Install
1068 inferior_exit and inferior_appeared observers.
1069
1070 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1071 Pedro Alves <palves@redhat.com>
1072
1073 PR symtab/14466
1074 * solib-svr4.c (svr4_read_so_list): Rename to ...
1075 (svr4_current_sos_1): ... this and change the function comment.
1076 (svr4_current_sos): New function.
1077
1078 2014-10-10 Pedro Alves <palves@redhat.com>
1079
1080 * arch-utils.c (default_vsyscall_range): New function.
1081 * arch-utils.h (default_vsyscall_range): New declaration.
1082 * gdbarch.sh (vsyscall_range): New hook.
1083 * gdbarch.h, gdbarch.c: Regenerate.
1084 * linux-tdep.c (linux_vsyscall_range): New function.
1085 (linux_init_abi): Install linux_vsyscall_range as
1086 vsyscall_range gdbarch hook.
1087 * memrange.c (address_in_mem_range): New function.
1088 * memrange.h (address_in_mem_range): New declaration.
1089 * symfile-mem.c (find_vdso_size): Delete function.
1090 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1091
1092 2014-10-10 Pedro Alves <palves@redhat.com>
1093
1094 * infrun.c (normal_stop): Fix typo in comment.
1095
1096 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1097
1098 PR tdep/9390
1099 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1100 typo when using logical AND to determine instruction type.
1101
1102 2014-10-09 Yao Qi <yao@codesourcery.com>
1103
1104 * infrun.c (handle_signal_stop): Remove local variable
1105 'printed'.
1106
1107 2014-10-08 Stan Shebs <stan@codesourcery.com>
1108
1109 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1110
1111 2014-10-08 Gary Benson <gbenson@redhat.com>
1112
1113 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1114
1115 2014-10-08 Gary Benson <gbenson@redhat.com>
1116
1117 * common/common-defs.h: Include common-exceptions.h.
1118 * exceptions.h: Do not include common-exceptions.h.
1119
1120 2014-10-08 Gary Benson <gbenson@redhat.com>
1121
1122 * common/common-defs.h: Include cleanups.h.
1123 * common/common-exceptions.c: Do not include cleanups.h.
1124 * utils.h: Likewise.
1125
1126 2014-10-08 Gary Benson <gbenson@redhat.com>
1127
1128 * ada-lang.c: Do not include exceptions.h.
1129 * ada-valprint.c: Likewise.
1130 * amd64-tdep.c: Likewise.
1131 * auto-load.c: Likewise.
1132 * block.c: Likewise.
1133 * break-catch-throw.c: Likewise.
1134 * breakpoint.c: Likewise.
1135 * btrace.c: Likewise.
1136 * c-lang.c: Likewise.
1137 * cli/cli-cmds.c: Likewise.
1138 * cli/cli-interp.c: Likewise.
1139 * cli/cli-script.c: Likewise.
1140 * completer.c: Likewise.
1141 * corefile.c: Likewise.
1142 * corelow.c: Likewise.
1143 * cp-abi.c: Likewise.
1144 * cp-support.c: Likewise.
1145 * cp-valprint.c: Likewise.
1146 * darwin-nat.c: Likewise.
1147 * dwarf2-frame-tailcall.c: Likewise.
1148 * dwarf2-frame.c: Likewise.
1149 * dwarf2loc.c: Likewise.
1150 * dwarf2read.c: Likewise.
1151 * eval.c: Likewise.
1152 * event-loop.c: Likewise.
1153 * event-top.c: Likewise.
1154 * f-valprint.c: Likewise.
1155 * frame-unwind.c: Likewise.
1156 * frame.c: Likewise.
1157 * gdbtypes.c: Likewise.
1158 * gnu-v2-abi.c: Likewise.
1159 * gnu-v3-abi.c: Likewise.
1160 * guile/scm-auto-load.c: Likewise.
1161 * guile/scm-breakpoint.c: Likewise.
1162 * guile/scm-cmd.c: Likewise.
1163 * guile/scm-frame.c: Likewise.
1164 * guile/scm-lazy-string.c: Likewise.
1165 * guile/scm-param.c: Likewise.
1166 * guile/scm-symbol.c: Likewise.
1167 * guile/scm-type.c: Likewise.
1168 * hppa-hpux-tdep.c: Likewise.
1169 * i386-tdep.c: Likewise.
1170 * inf-loop.c: Likewise.
1171 * infcall.c: Likewise.
1172 * infcmd.c: Likewise.
1173 * infrun.c: Likewise.
1174 * interps.c: Likewise.
1175 * interps.h: Likewise.
1176 * jit.c: Likewise.
1177 * linespec.c: Likewise.
1178 * linux-nat.c: Likewise.
1179 * linux-thread-db.c: Likewise.
1180 * m32r-rom.c: Likewise.
1181 * main.c: Likewise.
1182 * memory-map.c: Likewise.
1183 * mi/mi-cmd-break.c: Likewise.
1184 * mi/mi-cmd-stack.c: Likewise.
1185 * mi/mi-interp.c: Likewise.
1186 * mi/mi-main.c: Likewise.
1187 * monitor.c: Likewise.
1188 * nto-procfs.c: Likewise.
1189 * objc-lang.c: Likewise.
1190 * p-valprint.c: Likewise.
1191 * parse.c: Likewise.
1192 * ppc-linux-tdep.c: Likewise.
1193 * printcmd.c: Likewise.
1194 * probe.c: Likewise.
1195 * python/py-auto-load.c: Likewise.
1196 * python/py-breakpoint.c: Likewise.
1197 * python/py-cmd.c: Likewise.
1198 * python/py-finishbreakpoint.c: Likewise.
1199 * python/py-frame.c: Likewise.
1200 * python/py-framefilter.c: Likewise.
1201 * python/py-function.c: Likewise.
1202 * python/py-gdb-readline.c: Likewise.
1203 * python/py-inferior.c: Likewise.
1204 * python/py-infthread.c: Likewise.
1205 * python/py-lazy-string.c: Likewise.
1206 * python/py-linetable.c: Likewise.
1207 * python/py-param.c: Likewise.
1208 * python/py-prettyprint.c: Likewise.
1209 * python/py-symbol.c: Likewise.
1210 * python/py-type.c: Likewise.
1211 * python/py-value.c: Likewise.
1212 * python/python-internal.h: Likewise.
1213 * python/python.c: Likewise.
1214 * record-btrace.c: Likewise.
1215 * record-full.c: Likewise.
1216 * regcache.c: Likewise.
1217 * remote-fileio.c: Likewise.
1218 * remote-mips.c: Likewise.
1219 * remote.c: Likewise.
1220 * rs6000-aix-tdep.c: Likewise.
1221 * rs6000-nat.c: Likewise.
1222 * skip.c: Likewise.
1223 * solib-darwin.c: Likewise.
1224 * solib-dsbt.c: Likewise.
1225 * solib-frv.c: Likewise.
1226 * solib-ia64-hpux.c: Likewise.
1227 * solib-spu.c: Likewise.
1228 * solib-svr4.c: Likewise.
1229 * solib.c: Likewise.
1230 * spu-tdep.c: Likewise.
1231 * stack.c: Likewise.
1232 * stap-probe.c: Likewise.
1233 * symfile-mem.c: Likewise.
1234 * symmisc.c: Likewise.
1235 * target.c: Likewise.
1236 * thread.c: Likewise.
1237 * top.c: Likewise.
1238 * tracepoint.c: Likewise.
1239 * tui/tui-interp.c: Likewise.
1240 * typeprint.c: Likewise.
1241 * utils.c: Likewise.
1242 * valarith.c: Likewise.
1243 * valops.c: Likewise.
1244 * valprint.c: Likewise.
1245 * value.c: Likewise.
1246 * varobj.c: Likewise.
1247 * windows-nat.c: Likewise.
1248 * xml-support.c: Likewise.
1249
1250 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1251
1252 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1253 name implies.
1254 (extended_mips16_next_pc): Update accordingly.
1255
1256 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1257
1258 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1259 function.
1260 (micromips_instruction_is_compact_branch): Likewise.
1261 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1262 or a compact jump, reaching a jump delay slot, or seeing a
1263 second non-prologue instruction.
1264 (micromips_scan_prologue): Also terminate scanning upon seeing a
1265 compact branch or jump, or reaching a branch or jump delay slot.
1266 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1267 or jump delay slot, or seeing a second non-prologue instruction.
1268 (mips32_instruction_has_delay_slot): Retain instruction
1269 examination code only, update arguments accordingly and move
1270 instruction fetch pieces to...
1271 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1272 (micromips_instruction_has_delay_slot): Likewise and to...
1273 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1274 (mips16_instruction_has_delay_slot): Likewise and to...
1275 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1276 (mips_single_step_through_delay): Update accordingly.
1277 (mips_adjust_breakpoint_address): Likewise.
1278
1279 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1280
1281 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1282 !mustbe32 also return 1 for 32-bit instructions.
1283 (mips16_instruction_has_delay_slot): Likewise. Add an
1284 explanatory comment.
1285
1286 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1287
1288 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1289 symbols special.
1290
1291 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1292
1293 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1294 update comments.
1295 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1296 for the breakpoint's address. Don't preinitialize `placed_size'.
1297 (insert_bp_location): Set `reqstd_address' rather than
1298 `placed_address'.
1299 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1300 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1301 address.
1302 (bkpt_remove_location): Likewise.
1303 (deprecated_insert_raw_breakpoint): Likewise.
1304 (deprecated_remove_raw_breakpoint): Likewise.
1305 (find_single_step_breakpoint): Likewise.
1306 * mem-break.c (default_memory_insert_breakpoint): Use
1307 `reqstd_address' for the breakpoint's address. Don't set
1308 `placed_address' or `placed_size' if breakpoint contents couldn't
1309 have been determined.
1310 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1311 the breakpoint's address.
1312 (remote_insert_hw_breakpoint): Likewise. Don't set
1313 `placed_address' or `placed_size' if breakpoint couldn't have been
1314 set.
1315 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1316 `reqstd_address' for the breakpoint's address.
1317 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1318 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1319 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1320 * microblaze-linux-tdep.c
1321 (microblaze_linux_memory_remove_breakpoint): Likewise.
1322 * monitor.c (monitor_insert_breakpoint): Likewise.
1323 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1324 (procfs_insert_hw_breakpoint): Likewise.
1325 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1326 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1327 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1328 * remote-mips.c (mips_insert_breakpoint): Likewise.
1329 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1330
1331 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1332
1333 * valops.c (value_assign): Check for bit field assignments
1334 before calling architecture-specific register value
1335 conversion functions.
1336
1337 2014-10-03 Pierre Muller <muller@sourceware.org>
1338
1339 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1340
1341 2014-10-02 Pedro Alves <palves@redhat.com>
1342
1343 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1344 threads_are_executing.
1345 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1346 describing comment.
1347 * gdbthread.h (threads_are_executing): Declare.
1348 (handle_signal_stop) <random signals>: Don't print about the
1349 signal here if stopping.
1350 (end_stepping_range): Don't notify observers here.
1351 (normal_stop): Update the thread list. If stopped by a random
1352 signal or a stepping range ended, notify observers.
1353 * thread.c (threads_executing): New global.
1354 (init_thread_list): Clear 'threads_executing'.
1355 (set_executing): Set or clear 'threads_executing'.
1356 (threads_are_executing): New function.
1357 (update_threads_executing): New function.
1358 (update_thread_list): Use it.
1359
1360 2014-10-02 Pedro Alves <palves@redhat.com>
1361
1362 PR breakpoints/17431
1363 * breakpoint.c (update_breakpoints_after_exec): Don't create
1364 overlay, longjmp, std terminate nor exception breakpoints here.
1365
1366 2014-10-02 Pedro Alves <palves@redhat.com>
1367
1368 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1369 Adjust comments.
1370 * inferior.c (find_inferior_for_program_space): Give preference to
1371 the current inferior.
1372 * inferior.h (find_inferior_for_program_space): Update comment.
1373 * progspace.c (switch_to_program_space_and_thread): Prefer the
1374 current inferior if it's bound to the program space requested. If
1375 the inferior found doesn't have a PID yet, don't bother looking up
1376 a thread.
1377 * progspace.h (switch_to_program_space_and_thread): Adjust
1378 comment.
1379 * thread.c (any_thread_of_process, any_live_thread_of_process):
1380 Give preference to the current thread.
1381
1382 2014-10-01 Pedro Alves <palves@redhat.com>
1383
1384 * breakpoint.c (insert_bp_location): Error out if inserting a
1385 software breakpoint at a read-only address.
1386 * target.c (memory_xfer_check_region): New function, factored out
1387 from ...
1388 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1389 ULONGEST.
1390 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1391 against the memory region attributes.
1392
1393 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1394
1395 * NEWS: Announce new exit-code field in -list-thread-groups
1396 output.
1397 * inferior.c (exit_inferior_1): Don't clear exit code.
1398 (inferior_appeared): Clear exit code.
1399 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1400 code.
1401
1402 2014-10-01 Pedro Alves <palves@redhat.com>
1403
1404 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1405 GENERATED" along with emacs/vi read-only markers.
1406 * regformats/aarch64.dat: Regenerate.
1407 * regformats/arm-with-iwmmxt.dat: Regenerate.
1408 * regformats/arm-with-neon.dat: Regenerate.
1409 * regformats/arm-with-vfpv2.dat: Regenerate.
1410 * regformats/arm-with-vfpv3.dat: Regenerate.
1411 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1412 * regformats/i386/amd64-avx.dat: Regenerate.
1413 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1414 * regformats/i386/amd64-avx512.dat: Regenerate.
1415 * regformats/i386/amd64-linux.dat: Regenerate.
1416 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1417 * regformats/i386/amd64-mpx.dat: Regenerate.
1418 * regformats/i386/amd64.dat: Regenerate.
1419 * regformats/i386/i386-avx-linux.dat: Regenerate.
1420 * regformats/i386/i386-avx.dat: Regenerate.
1421 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1422 * regformats/i386/i386-avx512.dat: Regenerate.
1423 * regformats/i386/i386-linux.dat: Regenerate.
1424 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1425 * regformats/i386/i386-mmx.dat: Regenerate.
1426 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1427 * regformats/i386/i386-mpx.dat: Regenerate.
1428 * regformats/i386/i386.dat: Regenerate.
1429 * regformats/i386/x32-avx-linux.dat: Regenerate.
1430 * regformats/i386/x32-avx.dat: Regenerate.
1431 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1432 * regformats/i386/x32-avx512.dat: Regenerate.
1433 * regformats/i386/x32-linux.dat: Regenerate.
1434 * regformats/i386/x32.dat: Regenerate.
1435 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1436 * regformats/mips-dsp-linux.dat: Regenerate.
1437 * regformats/mips-linux.dat: Regenerate.
1438 * regformats/mips64-dsp-linux.dat: Regenerate.
1439 * regformats/mips64-linux.dat: Regenerate.
1440 * regformats/nios2-linux.dat: Regenerate.
1441 * regformats/rs6000/powerpc-32.dat: Regenerate.
1442 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1443 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1444 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1445 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1446 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1447 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1448 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1449 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1450 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1451 * regformats/s390-linux32.dat: Regenerate.
1452 * regformats/s390-linux32v1.dat: Regenerate.
1453 * regformats/s390-linux32v2.dat: Regenerate.
1454 * regformats/s390-linux64.dat: Regenerate.
1455 * regformats/s390-linux64v1.dat: Regenerate.
1456 * regformats/s390-linux64v2.dat: Regenerate.
1457 * regformats/s390-te-linux64.dat: Regenerate.
1458 * regformats/s390x-linux64.dat: Regenerate.
1459 * regformats/s390x-linux64v1.dat: Regenerate.
1460 * regformats/s390x-linux64v2.dat: Regenerate.
1461 * regformats/s390x-te-linux64.dat: Regenerate.
1462 * regformats/tic6x-c62x-linux.dat: Regenerate.
1463 * regformats/tic6x-c62x.dat: Regenerate.
1464 * regformats/tic6x-c64x-linux.dat: Regenerate.
1465 * regformats/tic6x-c64x.dat: Regenerate.
1466 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1467 * regformats/tic6x-c64xp.dat: Regenerate.
1468
1469 2014-10-01 Pedro Alves <palves@redhat.com>
1470
1471 * features/Makefile: Update comments.
1472 (XMLTOC): List all xml files we build C files from.
1473 (clean-cfiles): New rule.
1474
1475 2014-10-01 Pedro Alves <palves@redhat.com>
1476
1477 * features/i386/amd64-avx512-linux.c: Regenerate.
1478 * features/i386/amd64-avx512.c: Regenerate.
1479 * features/i386/x32-avx512-linux.c: Regenerate.
1480 * features/i386/x32-avx512.c: Regenerate.
1481
1482 2014-10-01 Pedro Alves <palves@redhat.com>
1483
1484 * features/Makefile (WHICH): Remove arm-with-m,
1485 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1486
1487 2014-10-01 Pedro Alves <palves@redhat.com>
1488
1489 * features/Makefile (clean): New rule.
1490
1491 2014-10-01 Pedro Alves <palves@redhat.com>
1492
1493 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1494 (zmm14h): Add missing end quotes.
1495
1496 2014-10-01 Pedro Alves <palves@redhat.com>
1497
1498 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1499 * features/aarch64.c: Regenerate.
1500
1501 2014-09-30 Don Breazeal <donb@codesourcery.com>
1502
1503 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1504 code so as to work with follow_fork_inferior.
1505 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1506 (inf_ttrace_create_inferior): Remove reference to
1507 inf_ttrace_vfork_ppid.
1508 (inf_ttrace_attach): Ditto.
1509 (inf_ttrace_detach): Ditto.
1510 (inf_ttrace_kill): Use current_inferior instead of
1511 inf_ttrace_vfork_ppid.
1512 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1513 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1514 inferior away from the parent.
1515 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1516 target_follow_fork.
1517 (follow_fork_inferior): New function.
1518 (follow_inferior_reset_breakpoints): Make function static.
1519 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1520 * linux-nat.c (linux_child_follow_fork): Move target-independent
1521 code to infrun.c:follow_fork_inferior.
1522
1523 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1524
1525 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1526 * gdbarch.c: Regenerate.
1527 * gdbarch.h: Likewise.
1528 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1529 gdbarch method 'regset_from_core_section'.
1530 (get_core_register_section): Remove handling for the case that
1531 regset == NULL and regset_from_core_section is defined.
1532 (get_core_registers): Drop check for deleted method.
1533 * procfs.c (procfs_do_thread_registers): Adjust comment.
1534
1535 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1536
1537 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1538 (linux_nat_make_corefile_notes): Remove.
1539 (linux_target_install_ops): Do not set target method
1540 'make_corefile_notes'.
1541 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1542 Remove field.
1543 (linux_corefile_thread_callback): Instead of args->collect, call
1544 linux_collect_thread_registers.
1545 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1546 NULL unless there is a regset iterator.
1547 (linux_make_corefile_notes_1): Remove.
1548 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1549 by linux_make_corefile_notes.
1550 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1551
1552 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1553
1554 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1555 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1556 Remove.
1557 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1558
1559 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1560
1561 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1562 (xtensa_iterate_over_regset_sections): New.
1563 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1564
1565 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1566
1567 * vax-tdep.c (vax_regset_from_core_section): Remove.
1568 (vax_iterate_over_regset_sections): New.
1569 (vax_gdbarch_init): Adjust gdbarch initialization.
1570
1571 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1572
1573 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1574 (tilegx_regset_from_core_section): Remove.
1575 (tilegx_iterate_over_regset_sections): New.
1576 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1577
1578 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1579
1580 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1581 (sparc_iterate_over_regset_sections): New.
1582 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1583 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1584 targets.
1585 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1586 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1587 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1588 target method 'make_corefile_notes'.
1589
1590 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1591
1592 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1593 'sizeof_gregset' and 'sizeof_fpregset'.
1594 * sh-tdep.c (sh_regset_from_core_section): Remove.
1595 (sh_iterate_over_regset_sections): New.
1596 (sh_gdbarch_init): Adjust gdbarch initialization.
1597 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1598 sizeof_fpregset.
1599 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1600 'sizeof_gregset'.
1601
1602 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1603
1604 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1605 (score7_linux_iterate_over_regset_sections): New.
1606 (score_gdbarch_init): Adjust gdbarch initialization.
1607
1608 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1609
1610 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1611 FreeBSD targets.
1612 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1613 method 'make_corefile_notes'.
1614 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1615 (ppcfbsd_regset_from_core_section): Remove.
1616 (ppcfbsd_iterate_over_regset_sections): New.
1617 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1618 initialization.
1619 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1620 (ppcnbsd_iterate_over_regset_sections): New.
1621 (ppcnbsd_init_abi): Adjust.
1622 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1623 (ppcobsd_iterate_over_regset_sections): New.
1624 (ppcobsd_init_abi): Adjust.
1625 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1626 (rs6000_aix_iterate_over_regset_sections): New.
1627 (rs6000_aix_init_osabi): Adjust.
1628
1629 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1630
1631 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1632 (nios2_regset_from_core_section): Remove.
1633 (nios2_iterate_over_regset_sections): New.
1634 (nios2_linux_init_abi): Adjust gdbarch initialization.
1635
1636 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1637
1638 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1639 (am33_iterate_over_regset_sections): New.
1640 (am33_linux_init_osabi): Adjust gdbarch initialization.
1641
1642 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1643
1644 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1645 (mips_linux_iterate_over_regset_sections): New.
1646 (mips_linux_init_abi): Adjust gdbarch initialization.
1647 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1648 (mips64obsd_iterate_over_regset_sections): New.
1649 (mips64obsd_init_abi): Adjust.
1650 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1651 (mipsnbsd_iterate_over_regset_sections): New.
1652 (mipsnbsd_init_abi): Adjust.
1653
1654 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1655
1656 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1657 (m88k_iterate_over_regset_sections): New.
1658 (m88k_gdbarch_init): Adjust gdbarch initialization.
1659
1660 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1661
1662 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1663 (ia64_linux_iterate_over_regset_sections): New.
1664 (ia64_linux_init_abi): Adjust gdbarch initialization.
1665
1666 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1667
1668 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1669 (m68kbsd_iterate_over_regset_sections): New.
1670 (m68kbsd_init_abi): Adjust gdbarch initialization.
1671 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1672 (m68k_linux_iterate_over_regset_sections): New.
1673 (m68k_linux_init_abi): Adjust gdbarch initialization.
1674
1675 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1676
1677 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1678 (m32r_linux_regset_from_core_section): Remove.
1679 (m32r_linux_iterate_over_regset_sections): New.
1680 (m32r_linux_init_abi): Adjust gdbarch initialization.
1681
1682 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1683
1684 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1685 (amd64obsd_iterate_over_regset_sections): New.
1686 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1687 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1688 Remove.
1689 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1690 regset_from_core_section initialization.
1691 * i386-tdep.c (i386_regset_from_core_section): Remove.
1692 (i386_iterate_over_regset_sections): New.
1693 (i386_gdbarch_init): Adjust gdbarch initialization.
1694 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1695 (i386_iterate_over_regset_sections): New prototype.
1696 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1697 Remove.
1698 (i386obsd_aout_iterate_over_regset_sections): New.
1699 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1700 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1701 targets.
1702 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1703 (amd64fbsd_init_abi): Call fbsd_init_abi.
1704 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1705 (i386fbsd4_init_abi): Call fbsd_init_abi.
1706 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1707 target method 'make_corefile_notes'.
1708 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1709
1710 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1711
1712 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1713 (hppa_hpux_iterate_over_regset_sections): New.
1714 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1715 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1716 (hppa_linux_iterate_over_regset_sections): New.
1717 (hppa_linux_init_abi): Adjust.
1718 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1719 (hppanbsd_iterate_over_regset_sections): New.
1720 (hppanbsd_init_abi): Adjust.
1721 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1722 (hppaobsd_iterate_over_regset_sections): New.
1723 (hppaobsd_init_abi): Adjust.
1724
1725 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1726
1727 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1728 (frv_linux_iterate_over_regset_sections): New.
1729 (frv_linux_init_abi): Adjust gdbarch initialization.
1730
1731 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1732
1733 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1734 (armbsd_iterate_over_regset_sections): New prototype.
1735 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1736 (armbsd_iterate_over_regset_sections): New.
1737 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1738 initialization.
1739
1740 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1741
1742 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1743 (alpha_linux_iterate_over_regset_sections): New.
1744 (alpha_linux_init_abi): Adjust gdbarch initialization.
1745 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1746 prototype.
1747 (alphanbsd_iterate_over_regset_sections): New prototype.
1748
1749 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1750
1751 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1752 Remove.
1753 (aarch64_linux_iterate_over_regset_sections): New.
1754 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1755
1756 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1757
1758 * fbsd-tdep.c: New file.
1759 * fbsd-tdep.h: New file.
1760 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1761 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1762 (ALLDEPFILES): Add fbsd-tdep.c.
1763
1764 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1765
1766 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1767 parameter.
1768 * gdbarch.h: Regenerate.
1769 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1770 iterator.
1771 (get_core_register_section): Add parameter 'regset' and use it, if
1772 set. Add parameter 'min_size' and verify the bfd section size
1773 against it.
1774 (get_core_registers_cb): Add parameter 'regset' and pass it to
1775 get_core_register section. For the "standard" register sections
1776 ".reg" and ".reg2", set an appropriate default for human_name.
1777 (get_core_registers): Don't abort when the gdbarch has an iterator
1778 but no regset_from_core_section. Add NULL/0 for parameters
1779 'regset'/'min_size' in calls to get_core_register_section.
1780 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1781 'regset' and use it instead of calling the
1782 regset_from_core_section gdbarch method.
1783 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1784 * i386-tdep.c (i386_supply_xstateregset)
1785 (i386_collect_xstateregset, i386_xstateregset): Moved to
1786 i386-linux-tdep.c.
1787 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1788 .reg-xstate.
1789 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1790 core file support only if the regset iterator hasn't been set.
1791 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1792 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1793 Moved from i386-tdep.c and renamed to *_linux*.
1794 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1795 each callback invocation. Allow any .reg-xstate size when reading
1796 from a core file.
1797 * amd64-tdep.c (amd64_supply_xstateregset)
1798 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1799 amd64-linux-tdep.c.
1800 (amd64_regset_from_core_section): Remove.
1801 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1802 install an amd64-specific regset_from_core_section gdbarch method.
1803 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1804 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1805 Moved from amd64-tdep.c and renamed to *_linux*.
1806 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1807 to each callback invocation. Allow any .reg-xstate size when
1808 reading from a core file.
1809 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1810 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1811 each callback invocation.
1812 (arm_linux_init_abi): No longer set the regset_from_core_section
1813 gdbarch method.
1814 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1815 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1816 each callback invocation.
1817 (ppc_linux_init_abi): No longer set the regset_from_core_section
1818 gdbarch method.
1819 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1820 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1821 (s390_regset_from_core_section): Remove.
1822 (s390_iterate_over_regset_sections): Add regset parameter to each
1823 callback invocation.
1824 (s390_gdbarch_init): No longer set the regset_from_core_section
1825 gdbarch method. Drop initialization of deleted tdep fields.
1826
1827 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1828
1829 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1830 (amd64_linux_iterate_over_regset_sections): New.
1831 (amd64_linux_init_abi_common): Don't install the regset section
1832 list, but the new iterator in gdbarch.
1833 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1834 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1835 (arm_linux_iterate_over_regset_sections): ...here. New function.
1836 (arm_linux_init_abi): Set iterator instead of section list.
1837 * corelow.c (get_core_registers_cb): New function, logic moved
1838 from...
1839 (get_core_registers): ...loop body here. Use new iterator method
1840 instead of walking through the regset section list.
1841 * gdbarch.sh: Remove 'core_regset_sections'. New method
1842 'iterate_over_regset_sections'. New typedef
1843 'iterate_over_regset_sections_cb'.
1844 * gdbarch.c: Regenerate.
1845 * gdbarch.h: Likewise.
1846 * i386-linux-tdep.c (i386_linux_regset_sections)
1847 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1848 Remove.
1849 (i386_linux_iterate_over_regset_sections): New.
1850 (i386_linux_init_abi): Don't choose a regset section list, but
1851 install new iterator in gdbarch.
1852 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1853 (linux_collect_regset_section_cb): New function, logic moved
1854 from...
1855 (linux_collect_thread_registers): ...loop body here. Use iterator
1856 method instead of walking through list.
1857 (linux_make_corefile_notes_1): Check for presence of iterator
1858 method instead of regset section list.
1859 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1860 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1861 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1862 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1863 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1864 (ppc_linux_init_abi): Don't choose from above regset section
1865 lists, but install new iterator in gdbarch.
1866 * regset.h (struct core_regset_section): Remove.
1867 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1868 have_linux_v1, have_linux_v2, and have_tdb.
1869 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1870 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1871 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1872 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1873 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1874 (s390_iterate_over_regset_sections): ...here. New function. Use
1875 new tdep fields.
1876 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1877 regset section lists, but install new iterator.
1878
1879 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1880
1881 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1882
1883 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1884
1885 * progspace.c (print_program_space): Don't prune program spaces
1886 before printing them.
1887
1888 2014-09-25 Pedro Alves <palves@redhat.com>
1889
1890 * infrun.c (user_visible_resume_ptid): Don't check
1891 singlestep_breakpoints_inserted_p.
1892
1893 2014-09-25 Pedro Alves <palves@redhat.com>
1894
1895 * breakpoint.c (should_be_inserted): Add debug output.
1896
1897 2014-09-25 Pedro Alves <palves@redhat.com>
1898
1899 * infrun.c (stepping_past_instruction_at)
1900 (clear_exit_convenience_vars): Point at infrun.h instead of
1901 inferior.h.
1902 (handle_signal_stop): Fix typo.
1903
1904 2014-09-24 Yao Qi <yao@codesourcery.com>
1905
1906 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1907 bitmask.
1908
1909 2014-09-22 Gary Benson <gbenson@redhat.com>
1910
1911 * target.c (target_stop): Updated comment.
1912
1913 2014-09-22 Gary Benson <gbenson@redhat.com>
1914
1915 * target/target.h (target_stop_ptid): Renamed as...
1916 (target_stop_and_wait): New function. Updated comment.
1917 All uses updated.
1918 (target_continue_ptid): Renamed as...
1919 (target_continue_no_signal): New function. Updated comment.
1920 All uses updated.
1921
1922 2014-09-22 Pedro Alves <palves@redhat.com>
1923
1924 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1925 and "auto" merged.
1926 * breakpoint.c (enum ugll_insert_mode): New enum.
1927 (always_inserted_mode): Now a plain boolean.
1928 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1929 (breakpoints_always_inserted_mode): Delete.
1930 (breakpoints_should_be_inserted_now): New function.
1931 (insert_breakpoints): Pass UGLL_INSERT to
1932 update_global_location_list instead of calling
1933 insert_breakpoint_locations manually.
1934 (create_solib_event_breakpoint_1): New, factored out from ...
1935 (create_solib_event_breakpoint): ... this.
1936 (create_and_insert_solib_event_breakpoint): Use
1937 create_solib_event_breakpoint_1 instead of calling
1938 insert_breakpoint_locations manually.
1939 (update_global_location_list): Change parameter type from boolean
1940 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1941 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1942 (update_global_location_list_nothrow): Change parameter type from
1943 boolean to enum ugll_insert_mode.
1944 (_initialize_breakpoint): "breakpoint always-inserted" option is
1945 now a boolean command. Update help text.
1946 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1947 (breakpoints_should_be_inserted_now): New declaration.
1948 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1949 Remove breakpoints_always_inserted_mode check.
1950 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1951 * remote.c (remote_start_remote): Likewise.
1952
1953 2014-09-22 Pedro Alves <palves@redhat.com>
1954
1955 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1956 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1957 Instead, pass UGLL_INSERT to update_global_location_list.
1958 (update_global_location_list): Change parameter type from boolean
1959 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1960 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1961 (create_solib_event_breakpoint_1): New, factored out from ...
1962 (create_solib_event_breakpoint): ... this.
1963 (create_and_insert_solib_event_breakpoint): Use
1964 create_solib_event_breakpoint_1 instead of calling
1965 insert_breakpoint_locations manually.
1966 (update_global_location_list): Handle UGLL_INSERT.
1967
1968 2014-09-22 Pedro Alves <palves@redhat.com>
1969
1970 * breakpoint.c (enum ugll_insert_mode): New enum.
1971 (update_global_location_list)
1972 (update_global_location_list_nothrow): Change parameter type from
1973 boolean to enum ugll_insert_mode. All callers adjusted.
1974
1975 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1976
1977 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1978 SystemTap support in GDB.
1979
1980 2014-09-19 Don Breazeal <donb@codesourcery.com>
1981
1982 * linux-nat.c (linux_handle_extended_wait): Call
1983 linux_ptrace_get_extended_event.
1984 (wait_lwp): Call linux_is_extended_waitstatus.
1985 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1986 and linux_is_extended_waitstatus.
1987 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1988 linux_ptrace_get_extended_event.
1989 (linux_ptrace_get_extended_event): New function.
1990 (linux_is_extended_waitstatus): New function.
1991 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1992 (linux_is_extended_waitstatus): New declarations.
1993
1994 2014-09-19 Yao Qi <yao@codesourcery.com>
1995
1996 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1997 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1998 comments. Callers update.
1999 (dwarf_decode_lines): Likewise.
2000 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2001 comments. Skip the line table if 'lowpc' is greater than
2002 'address'. Don't check
2003 dwarf2_per_objfile->has_section_at_zero.
2004
2005 2014-09-18 Doug Evans <dje@google.com>
2006
2007 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2008 * python/py-symtab.c (stpy_get_producer): New function.
2009 (symtab_object_getset): Add "producer" attribute.
2010
2011 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2012
2013 PR gdb/17384
2014 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2015 (do_captured_read_memory_integer): Remove.
2016 (safe_read_memory_integer): Use target_read_memory directly instead
2017 of catching errors in do_captured_read_memory_integer.
2018
2019 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2020
2021 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2022 not gdb/doc.
2023
2024 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2025
2026 * objc-lang.c (find_implementation_from_class): Remove dead code.
2027
2028 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2029
2030 PR cli/7233
2031 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2032 "fprintf_unfiltered (gdb_stdlog...)".
2033
2034 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2035
2036 PR breakpoints/12526
2037 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2038 val_bitsize.
2039 * breakpoint.c (watch_command_1): Use these fields to retain
2040 bitfield information.
2041 (extract_bitfield_from_watchpoint_value): New function.
2042 (watchpoint_check): Use it.
2043 (update_watchpoint): Use it. Optimize the address and length of a
2044 HW watchpoint pointing to a bitfield.
2045 * value.h (unpack_value_bitfield): New prototype.
2046 * value.c (unpack_value_bitfield): Make extern.
2047
2048 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2049
2050 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2051 x86-dregs.o.
2052 * gnu-nat.c (inf_threads): New function.
2053 * gnu-nat.h (inf_threads_ftype): New typedef.
2054 (inf_threads): New declaration.
2055 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2056 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2057 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2058 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2059 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2060 (i386_gnu_dr_get_control): New functions.
2061 (reg_addr): New structure.
2062 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2063 i386 debugging register hooks.
2064 * NEWS: Mention this.
2065
2066 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2067
2068 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2069 vector data transfer instructions.
2070 (arm_record_coproc_data_proc): Updated.
2071
2072 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2073
2074 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2075 arm_record_exreg_ld_st_insn.
2076 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2077 load/store insns.
2078
2079 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2080
2081 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2082 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2083 processing instructions.
2084
2085 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2086
2087 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2088 for advance SIMD struct ld/st insn.
2089 (thumb2_record_decode_insn_handler): Replace stub handler with
2090 thumb2_record_asimd_struct_ld_st.
2091
2092 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2093
2094 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2095 for asimd, vfp and coprocessor insns.
2096 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2097 and coprocessor insns.
2098 (thumb2_record_coproc_insn): New function.
2099 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2100 handlers.
2101 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2102 opcode 110 insns.
2103
2104 2014-09-13 Doug Evans <xdje42@gmail.com>
2105
2106 * NEWS: Mention new "queue-signal" command.
2107 * infcmd.c (queue_signal_command): New function.
2108 (_initialize_infcmd): Add new queue-signal command.
2109
2110 2014-09-13 Doug Evans <xdje42@gmail.com>
2111
2112 * linux-nat.c (wait_lwp): Add debugging printf.
2113 (linux_nat_wait_1): Ditto.
2114
2115 2014-09-12 Pedro Alves <palves@redhat.com>
2116
2117 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2118 (create_and_insert_solib_event_breakpoint): New functions.
2119 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2120 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2121 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2122 (remove_dbx_link_breakpoint): Delete function.
2123 (insert_dbx_link_bpt_in_file): Use
2124 create_and_insert_solib_event_breakpoint instead of
2125 deprecated_insert_raw_breakpoint.
2126 (procfs_wait): Don't check whether we hit __dbx_link here.
2127 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2128 here.
2129 * solib-irix.c (base_breakpoint): Delete global.
2130 (disable_break): Delete function.
2131 (enable_break): Use create_solib_event_breakpoint
2132 instead of deprecated_insert_raw_breakpoint.
2133 (irix_solib_handle_event): New function.
2134 (irix_solib_create_inferior_hook): Don't run the target or disable
2135 the mapping-complete breakpoint here.
2136 (_initialize_irix_solib): Install irix_solib_handle_event as
2137 so_ops->handle_event hook.
2138
2139 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2140 Ulrich Weigand  <uweigand@de.ibm.com>
2141
2142 PR tdep/17379
2143 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2144 instead of read_memory_unsigned_integer.
2145
2146 2014-09-12 Gary Benson <gbenson@redhat.com>
2147
2148 * nat/linux-waitpid.c: Include common-defs.h.
2149 [GDBSERVER]: Add FIXME comment.
2150 [!GDBSERVER]: Don't include defs.h or signal.h.
2151 (linux_debug) [!GDBSERVER]: Remove empty block.
2152
2153 2014-09-12 Gary Benson <gbenson@redhat.com>
2154
2155 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2156 Don't include defs.h or server.h.
2157
2158 2014-09-12 Gary Benson <gbenson@redhat.com>
2159
2160 * nat/linux-btrace.c: Include common-defs.h.
2161 Don't include defs.h, server.h or gdbthread.h.
2162 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2163
2164 2014-09-12 Gary Benson <gbenson@redhat.com>
2165
2166 * common/agent.c: Include common-defs.h.
2167 Don't include defs.h or server.h.
2168 * common/buffer.c: Likewise.
2169 * common/common-debug.c: Likewise.
2170 * common/common-utils.c: Likewise.
2171 * common/errors.c: Likewise.
2172 * common/filestuff.c: Likewise.
2173 * common/format.c: Likewise.
2174 * common/gdb_vecs.c: Likewise.
2175 * common/print-utils.c: Likewise.
2176 * common/ptid.c: Likewise.
2177 * common/rsp-low.c: Likewise.
2178 * common/signals.c: Likewise.
2179 * common/vec.c: Likewise.
2180 * common/xml-utils.c: Likewise.
2181 * nat/linux-osdata.c: Likewise.
2182 * nat/linux-procfs.c: Likewise.
2183 * nat/linux-ptrace.c: Likewise.
2184 * nat/mips-linux-watch.c: Likewise.
2185 * target/waitstatus.c: Likewise.
2186
2187 2014-09-12 Tom Tromey <tromey@redhat.com>
2188 Gary Benson <gbenson@redhat.com>
2189
2190 * common/common-regcache.h: New file.
2191 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2192 * regcache.h: Include common-regcache.h.
2193 (regcache_read_pc): Don't declare.
2194 * regcache.c (get_thread_regcache_for_ptid): New function.
2195 * nat/linux-btrace.c: Don't include regcache.h.
2196 Include common-regcache.h.
2197 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2198
2199 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2200
2201 * regcache.h (struct regset): Declare.
2202
2203 2014-09-11 Pedro Alves <palves@redhat.com>
2204
2205 PR gdb/17347
2206 * main.c: Include "infrun.h".
2207 (catch_command_errors, catch_command_errors_const): Wait for the
2208 foreground command to complete.
2209 * top.c (maybe_wait_sync_command_done): New function, factored out
2210 from ...
2211 (maybe_wait_sync_command_done): ... here.
2212 * top.h (maybe_wait_sync_command_done): New declaration.
2213
2214 2014-09-11 Tom Tromey <tromey@redhat.com>
2215 Gary Benson <gbenson@redhat.com>
2216
2217 * common/symbol.h: New file.
2218 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2219 * minsyms.c (find_minimal_symbol_address): New function.
2220 * common/agent.c: Include common/symbol.h.
2221 [!GDBSERVER]: Don't include objfiles.h.
2222 (agent_look_up_symbols): Use find_minimal_symbol_address.
2223
2224 2014-09-11 Gary Benson <gbenson@redhat.com>
2225
2226 * target/target.h (target_stop_ptid, target_continue_ptid):
2227 Declare.
2228 * target.c (target_stop_ptid, target_continue_ptid): New
2229 functions.
2230 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2231 (agent_run_command): Always use target_stop_ptid and
2232 target_continue_ptid.
2233
2234 2014-09-11 Tom Tromey <tromey@redhat.com>
2235 Gary Benson <gbenson@redhat.com>
2236
2237 * target/target.h: New file.
2238 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2239 * target.h: Include target/target.h.
2240 (target_read_memory, target_write_memory): Don't declare.
2241 * target.c (target_read_uint32): New function.
2242 * common/agent.c: Include target/target.h.
2243 [!GDBSERVER]: Don't include target.h.
2244 (helper_thread_id): Type changed to uint32_t.
2245 (agent_get_helper_thread_id): Use target_read_uint32.
2246 (agent_run_command): Always use target_read_memory and
2247 target_write_memory.
2248 (agent_capability): Type changed to uint32_t.
2249 (agent_capability_check): Use target_read_uint32.
2250
2251 2014-09-11 Gary Benson <gbenson@redhat.com>
2252
2253 * common/common-debug.h (show_debug_regs): Declare.
2254 * common/common-debug.c (show_debug_regs): Define.
2255 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2256 all uses with show_debug_regs. Replace all uses that considered
2257 debug_hw_points as a multi-value integer with straight boolean
2258 uses.
2259 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2260 with show_debug_regs.
2261 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2262 all uses with show_debug_regs.
2263 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2264 uses with show_debug_regs.
2265
2266 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2267
2268 * findvar.c (address_from_register): Handle targets requiring
2269 a special conversion routine even for plain pointer types.
2270
2271 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2272
2273 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2274 (store_register): Do not call exec_one_dummy_insn.
2275
2276 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2277
2278 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2279 dereference it first. Use value_enclosing_type instead of
2280 value_type.
2281 (ada_array_length): Likewise.
2282
2283 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2284
2285 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2286 Adjust function implementation and documentation accordingly.
2287 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2288 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2289 Update call to ada_value_ptr_subscript.
2290
2291 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2292
2293 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2294 instead of VAL's type.
2295
2296 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2297
2298 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2299
2300 2014-09-09 Doug Evans <xdje42@gmail.com>
2301
2302 PR guile/17367
2303 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2304 last parameter to pkg-config, not first.
2305 * configure.ac: Pass --with-guile provided pkg-config path to
2306 GDB_GUILE_PROGRAM_NAMES.
2307 * configure: Regenerate.
2308
2309 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2310
2311 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2312 Bertazi".
2313
2314 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2315
2316 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2317 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2318 the list of sections determining GDB_OSABI_IRIX.
2319
2320 2014-09-09 James Hogan <james.hogan@imgtec.com>
2321
2322 * MAINTAINERS (Write After Approval): Add "James Hogan".
2323
2324 2014-09-09 James Hogan <james.hogan@imgtec.com>
2325
2326 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2327
2328 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2329
2330 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2331
2332 2014-09-08 Doug Evans <xdje42@gmail.com>
2333
2334 PR 17247
2335 * guile.c: #include <signal.h>.
2336 (_initialize_guile): Block SIGCHLD while initializing Guile.
2337
2338 Replaces the following, which is reverted.
2339
2340 2014-07-26 Doug Evans <xdje42@gmail.com>
2341
2342 PR 17185
2343 * configure.ac: Add check for header gc/gc.h.
2344 Add check for function setenv.
2345 * configure: Regenerate.
2346 * config.in: Regenerate.
2347 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2348
2349 2014-09-08 Doug Evans <xdje42@gmail.com>
2350
2351 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2352 with named constant. Fix style of pointer comparison.
2353 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2354
2355 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2356
2357 PR gdb/17035
2358 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2359 decide whether we display the command on "show user".
2360 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2361 printing command name.
2362 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2363 * cli/cli-decode.c (cli_user_command_p): Create helper function
2364 to verify whether cmd_list_element is a user-defined command.
2365
2366 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2367
2368 PR python/17355
2369 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2370 Fix goto out of TRY_CATCH.
2371
2372 2014-09-06 Doug Evans <xdje42@gmail.com>
2373 Tom Tromey <tromey@redhat.com>
2374
2375 PR 15276
2376 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2377 $_any_caller_matches.
2378 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2379 * python/lib/gdb/function/caller_is.py: New file.
2380
2381 2014-09-06 Doug Evans <xdje42@gmail.com>
2382
2383 * infcmd.c (program_info): Fix typo.
2384
2385 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2386
2387 PR gdb/17235
2388 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2389 'number'. New variable 'has_digit'. Rewrite code to deal with
2390 subexpressions on SDT probes.
2391
2392 2014-09-04 Pedro Alves <palves@redhat.com>
2393
2394 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2395 the input is only one character long.
2396
2397 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2398
2399 PR fortran/17237
2400 * f-valprint.c (f_val_print): Specify the correct print option to
2401 use when printing integer values.
2402
2403 2014-09-04 Gary Benson <gbenson@redhat.com>
2404
2405 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2406 Remove code to cope with LWPs wrapped as PIDs.
2407 Add assertions to ensure no wrapped LWPs are passed.
2408
2409 2014-09-04 Pedro Alves <palves@redhat.com>
2410
2411 * value.c (value_ranges_copy_adjusted): New function, factored out
2412 from ...
2413 (value_contents_copy_raw): ... here.
2414 (unpack_value_bits_as_long_1): Rename back to ...
2415 (unpack_bits_as_long): ... this. Remove 'original_value' and
2416 'result' parameters. Change return type to LONGEST.
2417 (unpack_value_bits_as_long): Delete.
2418 (unpack_value_field_as_long_1): Delete.
2419 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2420 (unpack_value_bitfield): New function.
2421 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2422 (value_fetch_lazy): Use unpack_value_bitfield.
2423 * value.h (unpack_value_bits_as_long): Delete declaration.
2424
2425 2014-09-03 Sasha Smundak <asmundak@google.com>
2426
2427 * python/py-frame.c (frapy_read_register): New function.
2428
2429 2014-09-03 James Hogan <james.hogan@imgtec.com>
2430
2431 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2432 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2433
2434 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2435
2436 PR python/16699
2437 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2438 function.
2439 (add_cmd): Set "completer_handle_brkchars" to NULL.
2440 * cli/cli-decode.h (struct cmd_list_element)
2441 <completer_handle_brkchars>: New field.
2442 * command.h (completer_ftype_void): New typedef.
2443 (set_cmd_completer_handle_brkchars): New prototype.
2444 * completer.c (set_gdb_completion_word_break_characters): New
2445 function.
2446 (complete_line_internal): Call "completer_handle_brkchars"
2447 callback from command.
2448 * completer.h: Include "command.h".
2449 (set_gdb_completion_word_break_characters): New prototype.
2450 * python/py-cmd.c (cmdpy_completer_helper): New function.
2451 (cmdpy_completer_handle_brkchars): New function.
2452 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2453 (cmdpy_init): Set completer_handle_brkchars to
2454 cmdpy_completer_handle_brkchars.
2455
2456 2014-09-03 Gary Benson <gbenson@redhat.com>
2457
2458 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2459 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2460 Loop conditions changed to equivalent form.
2461 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2462 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2463 ALL_DEBUG_ADDRESS_REGISTERS.
2464
2465 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2466
2467 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2468 description fix.
2469
2470 2014-09-02 Doug Evans <dje@google.com>
2471
2472 * typeprint.c (find_global_typedef): Fix comment.
2473
2474 2014-09-02 Gary Benson <gbenson@redhat.com>
2475
2476 * i386-nat.h: Renamed as...
2477 * x86-nat.h: New file. All type, function and variable name
2478 prefixes changed from "i386_" to "x86_". All references updated.
2479 * i386-nat.c: Renamed as...
2480 * x86-nat.c: New file. All type, function and variable name
2481 prefixes changed from "i386_" to "x86_". All references updated.
2482 * common/i386-xstate.h: Renamed as...
2483 * common/x86-xstate.h: New file. All type, function and variable
2484 name prefixes changed from "i386_" to "x86_". All references
2485 updated.
2486 * nat/i386-cpuid.h: Renamed as...
2487 * nat/x86-cpuid.h: New file. All type, function and variable name
2488 prefixes changed from "i386_" to "x86_". All references updated.
2489 * nat/i386-gcc-cpuid.h: Renamed as...
2490 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2491 name prefixes changed from "i386_" to "x86_". All references
2492 updated.
2493 * nat/i386-dregs.h: Renamed as...
2494 * nat/x86-dregs.h: New file. All type, function and variable name
2495 prefixes changed from "i386_" to "x86_". All references updated.
2496 * nat/i386-dregs.c: Renamed as...
2497 * nat/x86-dregs.c: New file. All type, function and variable name
2498 prefixes changed from "i386_" to "x86_". All references updated.
2499
2500 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2501
2502 * varobj.c (_initialize_varobj): Move to the end of file.
2503
2504 2014-08-29 Gary Benson <gbenson@redhat.com>
2505
2506 * common/common-exceptions.h: New file.
2507 * common/common-exceptions.c: Likewise.
2508 * Makefile.in (SFILES): Add common/common-exceptions.c.
2509 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2510 (COMMON_OBS): Add common-exceptions.o.
2511 (common-exceptions.o): New rule.
2512 * exceptions.h (common-exceptions.h): Include.
2513 (gdb_setjmp.h): Do not include.
2514 (return_reason): Moved to common-exceptions.h.
2515 (enum return_reason): Likewise.
2516 (RETURN_MASK): Likewise.
2517 (typedef return_mask): Likewise.
2518 (enum errors): Likewise.
2519 (struct gdb_exception): Likewise.
2520 (exceptions_state_mc_init): Likewise.
2521 (exceptions_state_mc_action_iter): Likewise.
2522 (exceptions_state_mc_action_iter_1): Likewise.
2523 (TRY_CATCH): Likewise.
2524 (throw_exception): Likewise.
2525 (throw_verror): Likewise.
2526 (throw_vquit): Likewise.
2527 (throw_error): Likewise.
2528 (throw_quit): Likewise.
2529 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2530 (enum catcher_action): Likewise.
2531 (struct catcher): Likewise.
2532 (current_catcher): Likewise.
2533 (catcher_list_size): Likewise.
2534 (exceptions_state_mc_init): Likewise.
2535 (catcher_pop): Likewise.
2536 (exceptions_state_mc): Likewise.
2537 (exceptions_state_mc_action_iter): Likewise.
2538 (exceptions_state_mc_action_iter_1): Likewise.
2539 (throw_exception): Likewise.
2540 (exception_messages): Likewise.
2541 (exception_messages_size): Likewise.
2542 (throw_it): Likewise.
2543 (throw_verror): Likewise.
2544 (throw_vquit): Likewise.
2545 (throw_error): Likewise.
2546 (throw_quit): Likewise.
2547 (prepare_to_throw_exception): New function.
2548
2549 2014-08-29 Gary Benson <gbenson@redhat.com>
2550
2551 * common/gdb_setjmp.h: New file.
2552 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2553 * configure.ac: Move sigsetjmp check...
2554 * common/common.m4: ...here.
2555 * configure: Regenerate.
2556 * cp-support.c (SIGJMP_BUF): Delete.
2557 (SIGSETJMP): Likewise.
2558 (SIGLONGJMP): Likewise.
2559 * exceptions.h (gdb_setjmp.h): Include.
2560 (setjmp.h): Do not include.
2561 (EXCEPTIONS_SIGJMP_BUF): Delete.
2562 (EXCEPTIONS_SIGSETJMP): Likewise.
2563 (EXCEPTIONS_SIGLONGJMP): Likewise.
2564 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2565 from gdb_setjmp.h.
2566 * exceptions.c: Likewise.
2567
2568 2014-08-29 Gary Benson <gbenson@redhat.com>
2569
2570 * cleanups.h: Moved to...
2571 * common/cleanups.h: New file.
2572 * cleanups.c: Moved to...
2573 * common/cleanups.c: New file. Include common-defs.h and
2574 cleanups.h. Do not include defs.h.
2575 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2576 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2577 (cleanups.o): New rule.
2578
2579 2014-08-29 Gary Benson <gbenson@redhat.com>
2580
2581 * common/errors.h (internal_warning): New declaration.
2582 (internal_vwarning): Likewise.
2583 * common/errors.c (internal_warning): New function.
2584 * utils.h (internal_warning): Don't declare.
2585 (internal_vwarning): Likewise.
2586 * utils.c (internal_warning): Removed.
2587
2588 2014-08-29 Gary Benson <gbenson@redhat.com>
2589
2590 * main.c (captured_main): Use warning during startup.
2591 Prefix startup warning messages with command name.
2592
2593 2014-08-29 Gary Benson <gbenson@redhat.com>
2594
2595 * main.c (captured_main): Handle usage errors with error.
2596
2597 2014-08-29 Gary Benson <gbenson@redhat.com>
2598
2599 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2600 exit pair with a call to error. Wrap the message with _().
2601
2602 2014-08-29 Gary Benson <gbenson@redhat.com>
2603
2604 * main.c (captured_main): Replace a fprintf/exit
2605 pair with a call to error. Wrap the message with _().
2606
2607 2014-08-29 Gary Benson <gbenson@redhat.com>
2608
2609 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2610 pairs with calls to error. Wrap the message with _().
2611
2612 2014-08-29 Gary Benson <gbenson@redhat.com>
2613
2614 * utils.c (vwarning): Protect calls to target_terminal_ours
2615 and wrap_here.
2616
2617 2014-08-29 Gary Benson <gbenson@redhat.com>
2618
2619 * exceptions.c (print_flush): Protect calls to
2620 target_terminal_ours and wrap_here.
2621
2622 2014-08-29 Gary Benson <gbenson@redhat.com>
2623
2624 * utils.h (filtered_printing_initialized): New declaration.
2625 * utils.c (abort_with_message): New function.
2626 (internal_vproblem): Use abort_with_message for first level
2627 recursive internal problems, and if gdb_stderr is not set up.
2628 Protect calls to target_terminal_ours, begin_line and query.
2629
2630 2014-08-28 Doug Evans <dje@google.com>
2631
2632 * symtab.c (in_prologue): Move definition to better spot.
2633 (skip_prologue_using_sal): Ditto.
2634
2635 2014-08-28 Doug Evans <dje@google.com>
2636
2637 * symtab.c (find_function_start_sal): Move definition to better spot.
2638
2639 2014-08-28 Yao Qi <yao@codesourcery.com>
2640
2641 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2642 found_stack_adjust in forward scan. Remove condition check
2643 on found_stack_adjust which is always true. Indent the code.
2644
2645 2014-08-28 Yao Qi <yao@codesourcery.com>
2646
2647 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2648 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2649 (dwarf_decode_lines): Remove argument
2650 want_line_info. Remove condition check on want_line_info.
2651 Callers update.
2652
2653 2014-08-27 Doug Evans <dje@google.com>
2654
2655 * dwarf2read.c (dwarf_record_line): Fix typo.
2656
2657 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2658
2659 * target.h (struct target_ops::to_terminal_save_ours): Remove
2660 declaration.
2661 (target_terminal_save_ours): Remove macro.
2662 * target-delegates.c: Regenerate.
2663 * inf-child.c (inf_child_target): Don't set the nonexistent
2664 field to_terminal_save_ours.
2665 * inferior.h (child_terminal_save_ours): Remove declaration.
2666 * terminal.h (gdb_save_tty_state): New declaration.
2667 * inflow.c (child_terminal_save_ours): Rename to ...
2668 (gdb_save_tty_state): ... this.
2669 * tui/tui.c: Include terminal.h.
2670 (tui_enable): Use gdb_save_tty_state instead of
2671 target_terminal_save_ours.
2672 (tui_disable): Likewise.
2673
2674 2014-08-25 Doug Evans <dje@google.com>
2675
2676 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2677 Pass NULL instead of 0 for context pointer.
2678
2679 2014-08-25 Yao Qi <yao@codesourcery.com>
2680
2681 * dwarf2read.c: Fix grammatical error.
2682
2683 2014-08-24 Yao Qi <yao@codesourcery.com>
2684
2685 * dwarf2read.c (scan_partial_symbols): Update comments.
2686 Rename argument 'need_pc' with 'set_addrmap'.
2687 (add_partial_namespace): Rename argument 'need_pc' with
2688 'set_addrmap'.
2689 (add_partial_module): Likewise.
2690 (add_partial_subprogram): Likewise. Update comments.
2691 (dwarf2_name): Fix typo.
2692
2693 2014-08-22 Doug Evans <dje@google.com>
2694
2695 PR 17276
2696 * dwarf2read.c (dwarf_record_line_p): New function.
2697 (dwarf_decode_lines_1): Ignore subsequent line number entries
2698 for the same line if any entry had a non-zero discriminator.
2699
2700 2014-08-22 Doug Evans <dje@google.com>
2701
2702 * buildsym.h (record_line_ftype): New typedef.
2703 (record_line): Use it.
2704 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2705 (dwarf_decode_lines_1): Call them.
2706
2707 2014-08-22 Yao Qi <yao@codesourcery.com>
2708
2709 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2710 (ctf_end): Remove code.
2711
2712 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2713
2714 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2715 (linux_make_corefile_notes): call update_thread_list, protected against
2716 exceptions.
2717
2718 2014-08-21 Pedro Alves <palves@redhat.com>
2719
2720 * infcmd.c (attach_command): Remove comment.
2721
2722 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2723
2724 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2725 unsigned LONGEST to ULONGEST.
2726
2727 2014-08-20 Pedro Alves <palves@redhat.com>
2728
2729 * Makefile.in (check-read1): New rule.
2730
2731 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2732
2733 * value.c (value_from_contents_and_address): Strip resolved_type's
2734 typedef layers before checking its TYPE_DATA_LOCATION.
2735
2736 2014-08-20 Pedro Alves <palves@redhat.com>
2737
2738 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2739
2740 2014-08-20 Yao Qi <yao@codesourcery.com>
2741
2742 * amd64-tdep.c (amd64_classify): Add a blank line after the
2743 example. Move "*/" to a new line.
2744 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2745 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2746 * dwarf2read.c (psymtab_include_file_name): Likewise.
2747
2748 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2749 Pedro Alves <palves@redhat.com>
2750
2751 PR symtab/14604
2752 PR symtab/14605
2753 * ada-lang.c (coerce_unspec_val_to_type): Use
2754 value_contents_copy_raw.
2755 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2756 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2757 * cp-valprint.c (cp_print_value_fields): Let the common printing
2758 code handle optimized out values.
2759 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2760 * d-valprint.c (dynamic_array_type): Use
2761 value_bits_any_optimized_out.
2762 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2763 check_any_valid fields.
2764 (check_pieced_value_bits): Delete and inline ...
2765 (check_pieced_synthetic_pointer): ... here.
2766 (check_pieced_value_validity): Delete.
2767 (check_pieced_value_invalid): Delete.
2768 (pieced_value_funcs): Remove check_validity and check_any_valid
2769 fields.
2770 (read_pieced_value): Use mark_value_bits_optimized_out.
2771 (write_pieced_value): Switch to use
2772 mark_value_bytes_optimized_out.
2773 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2774 of assuming the whole value is optimized out.
2775 * findvar.c (read_frame_register_value): Remove special handling
2776 of optimized out registers.
2777 (value_from_register): Use mark_value_bytes_optimized_out.
2778 * frame-unwind.c (frame_unwind_got_optimized): Use
2779 mark_value_bytes_optimized_out.
2780 * jv-valprint.c (java_value_print): Adjust.
2781 (java_print_value_fields): Let the common printing code handle
2782 optimized out values.
2783 * mips-tdep.c (mips_print_register): Remove special handling of
2784 optimized out registers.
2785 * opencl-lang.c (lval_func_check_validity): Delete.
2786 (lval_func_check_any_valid): Delete.
2787 (opencl_value_funcs): Remove check_validity and check_any_valid
2788 fields.
2789 * p-valprint.c (pascal_object_print_value_fields): Let the common
2790 printing code handle optimized out values.
2791 * stack.c (read_frame_arg): Remove special handling of optimized
2792 out values. Fetch both VAL and ENTRYVAL before comparing
2793 contents. Adjust to value_available_contents_eq rename.
2794 * valprint.c (valprint_check_validity)
2795 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2796 (val_print_array_elements): Adjust.
2797 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2798 (value_bits_any_optimized_out): New function.
2799 (value_entirely_covered_by_range_vector): New function, factored
2800 out from value_entirely_unavailable.
2801 (value_entirely_unavailable): Reimplement.
2802 (value_entirely_optimized_out): New function.
2803 (insert_into_bit_range_vector): New function, factored out from
2804 mark_value_bits_unavailable.
2805 (mark_value_bits_unavailable): Reimplement.
2806 (struct ranges_and_idx): New struct.
2807 (find_first_range_overlap_and_match): New function, factored out
2808 from value_available_contents_bits_eq.
2809 (value_available_contents_bits_eq): Rename to ...
2810 (value_contents_bits_eq): ... this. Check both unavailable
2811 contents and optimized out contents.
2812 (value_available_contents_eq): Rename to ...
2813 (value_contents_eq): ... this.
2814 (allocate_value_lazy): Remove reference to the old optimized_out
2815 boolean.
2816 (allocate_optimized_out_value): Use
2817 mark_value_bytes_optimized_out.
2818 (require_not_optimized_out): Adjust to check whether the
2819 optimized_out vec is empty.
2820 (ranges_copy_adjusted): New function, factored out from
2821 value_contents_copy_raw.
2822 (value_contents_copy_raw): Also copy the optimized out ranges.
2823 Assert the destination ranges aren't optimized out.
2824 (value_contents_copy): Update comment, remove call to
2825 require_not_optimized_out.
2826 (value_contents_equal): Adjust to check whether the optimized_out
2827 vec is empty.
2828 (set_value_optimized_out, value_optimized_out_const): Delete.
2829 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2830 New functions.
2831 (value_entirely_optimized_out, value_bits_valid): Delete.
2832 (value_copy): Take a VEC copy of the 'optimized_out' field.
2833 (value_primitive_field): Remove special handling of optimized out.
2834 (value_fetch_lazy): Assert that lazy values have no unavailable
2835 regions. Use value_bits_any_optimized_out. Remove some special
2836 handling for optimized out values.
2837 * value.h: Add intro comment about <optimized out> and
2838 <unavailable>.
2839 (struct lval_funcs): Remove check_validity and check_any_valid
2840 fields.
2841 (set_value_optimized_out, value_optimized_out_const): Remove.
2842 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2843 New declarations.
2844 (value_bits_any_optimized_out): New declaration.
2845 (value_bits_valid): Delete declaration.
2846 (value_available_contents_eq): Rename to ...
2847 (value_contents_eq): ... this, and extend comments.
2848
2849 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2850
2851 Fix -fsanitize=address on unreadable inferior strings.
2852 * valprint.c (val_print_string): Fix access before BUFFER.
2853
2854 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2855
2856 * target.c (target_struct_size): Remove.
2857 (target_struct_allocsize): Remove.
2858 (DEFAULT_ALLOCSIZE): Remove.
2859 (target_ops_p): New typedef.
2860 (DEF_VEC_P (target_ops_p)): New vector type.
2861 (target_structs): Change type to VEC (target_ops_p).
2862 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2863 (find_default_run_target): Rewrite for loop following changes to
2864 target_structs.
2865
2866 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2867
2868 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2869 Adjust code accordingly. Adjust function description comment.
2870
2871 2014-08-19 Yao Qi <yao@codesourcery.com>
2872
2873 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2874 types.
2875
2876 2014-08-19 Alan Modra <amodra@gmail.com>
2877
2878 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2879 * config.in: Regenerate.
2880 * configure: Regenerate.
2881
2882 2014-08-19 Tom Tromey <tromey@redhat.com>
2883 Gary Benson <gbenson@redhat.com>
2884
2885 * common/common-debug.h: New file.
2886 * common/common-debug.c: Likewise.
2887 * debug.c: Likewise.
2888 * Makefile.in (SFILES): Add common/common-debug.c.
2889 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2890 (COMMON_OBS): Add common-debug.o and debug.o.
2891 (common-debug.o): New rule.
2892 * common/common-defs.h: Include common-debug.h.
2893 * common/agent.c (debug_agent_printf): New function.
2894 (DEBUG_AGENT): Redefine.
2895 * nat/i386-dregs.c (debug_printf): Undefine.
2896
2897 2014-08-19 Gary Benson <gbenson@redhat.com>
2898
2899 * common/common-defs.h: Include print-utils.h.
2900 * utils.h: Do not include print-utils.h.
2901
2902 2014-08-19 Tom Tromey <tromey@redhat.com>
2903 Gary Benson <gbenson@redhat.com>
2904
2905 * common/common-types.h: New file.
2906 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2907 * common/common-defs.h: Include common-types.h.
2908 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2909 (ULONGEST): Remove.
2910
2911 2014-08-19 Tom Tromey <tromey@redhat.com>
2912 Gary Benson <gbenson@redhat.com>
2913
2914 * common/errors.h: New file.
2915 * common/errors.c: Likewise.
2916 * Makefile.in (SFILES): Add common/errors.c.
2917 (HFILES_NO_SRCDIR): Add common/errors.h.
2918 (COMMON_OBS): Add errors.o.
2919 (errors.o): New rule.
2920 * common/common-defs.h: Include errors.h.
2921 * utils.h (perror_with_name, error, verror, warning, vwarning):
2922 Don't declare.
2923 * common/common-utils.h: (malloc_failure, internal_error):
2924 Likewise.
2925
2926 2014-08-19 Gary Benson <gbenson@redhat.com>
2927
2928 * utils.c (internal_vproblem): Always print the message.
2929
2930 2014-08-18 Doug Evans <dje@google.com>
2931
2932 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2933
2934 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2935
2936 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2937 Return 0 if TYPE is dynamic.
2938 (print_range): Add handling of dynamic ranges.
2939
2940 2014-08-18 Keven Boell <keven.boell@intel.com>
2941 Joel Brobecker <brobecker@adacore.com>
2942
2943 * gdbtypes.h (struct main_type): Add field "data_location".
2944 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2945 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2946 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2947 a dynamic data location.
2948 (resolve_dynamic_type): Add DW_AT_data_location handling.
2949 (copy_recursive, copy_type): Copy the data_location information
2950 when present.
2951 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2952 * value.c (value_from_contents_and_address): Add
2953 DW_AT_data_location handling.
2954
2955 2014-08-18 Keven Boell <keven.boell@intel.com>
2956 Joel Brobecker <brobecker@adacore.com>
2957
2958 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2959 field "get_object_address".
2960 * dwarf2expr.c (execute_stack_op): Add handling for
2961 DW_OP_push_object_address.
2962 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2963 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2964 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2965 (dwarf_expr_get_obj_addr): New function.
2966 (dwarf_expr_ctx_funcs): Add get_object_address field.
2967 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2968 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2969 (dwarf2_evaluate_property): Add parameter "address". Use it.
2970 (needs_get_obj_addr): New function.
2971 (needs_frame_ctx_funcs): Add get_object_address field.
2972 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2973 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2974 (resolve_dynamic_array): Likewise.
2975
2976 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2977
2978 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2979 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2980 fixed value for records and unions for which some GNAT encodings
2981 are present.
2982
2983 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2984
2985 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2986 rewrite to avoid "else if" and "else" constructs. Should be
2987 a no-op in practice.
2988
2989 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2990
2991 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2992 of lexical block.
2993
2994 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2995
2996 PR c++/17132
2997 * eval.c: Update all calls to find_overload_match.
2998 * valarith.c: Likewise.
2999 (value_user_defined_cpp_op, value_user_defined_op): New
3000 argument NOSIDE. Update all callers.
3001 * valops.c (find_overload_match): New argument NOSIDE.
3002 * value.h (find_overload_match): Update signature.
3003
3004 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3005
3006 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3007 'items' methods instead of 'iteritems' method on dictionaries.
3008
3009 2014-08-15 Doug Evans <dje@google.com>
3010
3011 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3012 closer to use.
3013
3014 2014-08-15 Doug Evans <dje@google.com>
3015
3016 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3017
3018 2014-08-15 Doug Evans <dje@google.com>
3019
3020 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3021
3022 2014-08-15 Doug Evans <dje@google.com>
3023
3024 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3025 unused.
3026
3027 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3028
3029 * dcache.h: Include target.h, to avoid compile time warnings.
3030
3031 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3032
3033 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3034 frame_info" partial declaration.
3035 * gdbarch.h: Regenerate.
3036
3037 2014-08-15 Yao Qi <yao@codesourcery.com>
3038
3039 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3040 Add parameter 'decode_for_pst_p'. Callers update.
3041
3042 2014-08-13 Yao Qi <yao@codesourcery.com>
3043
3044 PR build/17104
3045 * configure.ac: Use local variable 'pos'.
3046 * configure: Regenerated.
3047
3048 2014-08-11 Doug Evans <dje@google.com>
3049
3050 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3051 message, it is redundant with "Reading symbols from ..." message.
3052
3053 2014-08-10 Doug Evans <xdje42@gmail.com>
3054
3055 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3056
3057 2014-08-09 Yao Qi <yao@codesourcery.com>
3058
3059 PR remote/9053
3060 * remote.c (remote_xfer_partial): Remove dead code.
3061
3062 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3063
3064 * ia64-linux-tdep.c: Include "regset.h".
3065 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3066 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3067 (ia64_linux_supply_fpregset): New function.
3068 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3069 (ia64_linux_regset_from_core_section): New function.
3070 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3071 method.
3072
3073 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3074
3075 * m68klinux-tdep.c: Include "regset.h".
3076 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3077 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3078 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3079 (m68k_linux_regset_from_core_section): New function.
3080 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3081 method.
3082
3083 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3084
3085 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3086 function. Move logic to...
3087 (tilegx_linux_regmap): ... this new register map.
3088 (tilegx_linux_regset): Refer to register map, replace supply
3089 method by regcache_supply_regset, and add collect method.
3090 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3091 TILEGX_FIRST_EASY_REGNUM.
3092
3093 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3094
3095 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3096 that calls regcache_supply_regset and handles the EPC register
3097 separately. Move main logic to...
3098 (score7_linux_gregmap): ... this new register map.
3099 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3100 (score7_linux_gregset): Refer to register map. Add collect method.
3101 (score7_linux_regset_from_core_section): Replace
3102 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3103 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3104 (struct regset): Delete unused forward declaraction.
3105 (struct pt_regs): Delete structure definition.
3106 (elf_gregset_t): Delete typedef.
3107
3108 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3109
3110 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3111 (nios2_core_regset): Add collect method.
3112
3113 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3114
3115 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3116 platform-independent and don't write to read-only input buffer.
3117 (m32r_linux_collect_gregset): New function.
3118 (m32r_linux_gregset): Add collect method.
3119
3120 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3121
3122 * hppa-linux-tdep.c (greg_map): Rename to...
3123 (hppa_linux_gregmap): ... this. Also convert to
3124 regcache_map_entry format.
3125 (hppa_linux_supply_regset): Delete function.
3126 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3127 (hppa_linux_fpregmap): ... this new register map.
3128 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3129 register map, replace supply method by regcache_supply_regset, and
3130 add collect method regcache_collect_regset.
3131
3132 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3133
3134 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3135 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3136 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3137 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3138 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3139 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3140 (frv_linux_supply_gregset): Replace main logic by call to
3141 regcache_supply_regset, but keep clearing gr32-gr63.
3142 (frv_linux_supply_fpregset): Delete function.
3143 (frv_linux_gregset): Refer to appropriate register map and add
3144 regcache_collect_regset as the collect method.
3145 (frv_linux_fpregset): Likewise. Also exchange the supply method
3146 by regcache_supply_regset.
3147
3148 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3149
3150 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3151 by call to alpha_supply_int_regs.
3152 (alpha_linux_collect_gregset): New function.
3153 (alpha_linux_supply_fpregset): Replace logic by call to
3154 alpha_supply_fp_regs.
3155 (alpha_linux_collect_fpregset): New function.
3156 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3157
3158 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3159
3160 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3161 by call to regcache_collect_regset.
3162 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3163 instead of aarch64_linux_supply_gregset/_fpregset.
3164 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3165 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3166 header file instead.
3167 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3168 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3169 functions. Move logic to ...
3170 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3171 register maps.
3172 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3173 refer to new register maps, replace *_regset_from_core by
3174 regcache_supply_regset, and also use regcache_collect_regset.
3175 * aarch64-linux-tdep.h: Include "regset.h".
3176 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3177 Delete prototypes.
3178 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3179 macros, moved from C source file.
3180 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3181 variable declarations.
3182
3183 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3184
3185 * s390-linux-nat.c: Include "regset.h".
3186 (regmap_gregset): Delete macro.
3187 (s390_64_regmap_gregset): New register map for
3188 regcache_supply/_collect_regset.
3189 (s390_64_gregset): New regset.
3190 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3191 (regmap_fpregset): Delete macro.
3192 (s390_native_supply, s390_native_collect): Delete functions.
3193 (supply_gregset, fill_gregset): Replace s390-specific regmap
3194 handling by a call to regcache_supply/_collect_regset.
3195 (supply_fpregset, fill_fpregset): Call regcache_supply/
3196 _collect_regset instead of s390_native_supply/_collect.
3197 (fetch_regset, store_regset): Likewise. Also change the last
3198 parameter to a regset instead of a regmap.
3199 (s390_linux_fetch_inferior_registers)
3200 (390_linux_store_inferior_registers): Adjust last parameter in
3201 calls to fetch_regset and store_regset.
3202 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3203 (s390_gregmap): ... this. Also make static const and convert to
3204 regcache_map_entry format.
3205 (s390x_regmap_gregset): Delete.
3206 (s390_regmap_fpregset): Rename to...
3207 (s390_fpregmap): ... this. Make static const and convert to
3208 regcache_map_entry format.
3209 (s390_regmap_upper, s390_regmap_last_break)
3210 (s390x_regmap_last_break, s390_regmap_system_call)
3211 (s390_regmap_tdb): Likewise.
3212 (s390_supply_regset, s390_collect_regset): Remove functions.
3213 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3214 s390_supply_regset.
3215 (s390_gregset, s390_fpregset, s390_upper_regset)
3216 (s390_last_break_regset, s390x_last_break_regset)
3217 (s390_system_call_regset, s390_tdb_regset): Make global and
3218 replace s390_supply/_collect_regset by regcache_supply/
3219 _collect_regset.
3220 (s390x_gregset): Delete.
3221 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3222 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3223 (s390_regmap_fpregset, s390_regmap_last_break)
3224 (s390x_regmap_last_break, s390_regmap_system_call)
3225 (s390_regmap_tdb): Delete global variable declarations.
3226 (s390_gregset, s390_fpregset, s390_last_break_regset)
3227 (s390x_last_break_regset, s390_system_call_regset)
3228 (s390_tdb_regset): New global variable declarations.
3229
3230 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3231
3232 * regcache.c: Include "regset.h".
3233 (regcache_transfer_regset): New local function.
3234 (regcache_supply_regset, regcache_collect_regset): New functions.
3235 * regcache.h (struct regcache_map_entry): New structure.
3236 (REGCACHE_MAP_SKIP): New enum value.
3237 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3238
3239 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3240
3241 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3242 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3243 (ppc_linux_collect_gregset ): Likewise.
3244 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3245 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3246 (ppc_collect_vrregset): Likewise.
3247 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3248 Likewise.
3249
3250 2014-08-07 Yao Qi <yao@codesourcery.com>
3251
3252 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3253 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3254 * remote.c (remote_read_bytes): Likewise.
3255
3256 2014-08-07 Yao Qi <yao@codesourcery.com>
3257
3258 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3259
3260 2014-08-07 Yao Qi <yao@codesourcery.com>
3261
3262 PR remote/17230
3263 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3264 TARGET_XFER_OK instead of 0.
3265
3266 2014-08-07 Gary Benson <gbenson@redhat.com>
3267
3268 * common/common-defs.h: Include errno.h.
3269 * defs.h: Do not include errno.h.
3270 * ada-typeprint.c: Likewise.
3271 * c-typeprint.c: Likewise.
3272 * core-regset.c: Likewise.
3273 * corefile.c: Likewise.
3274 * corelow.c: Likewise.
3275 * event-loop.c: Likewise.
3276 * f-typeprint.c: Likewise.
3277 * gnu-nat.c: Likewise.
3278 * go32-nat.c: Likewise.
3279 * i386gnu-nat.c: Likewise.
3280 * m2-typeprint.c: Likewise.
3281 * nat/linux-btrace.c: Likewise.
3282 * p-typeprint.c: Likewise.
3283 * procfs.c: Likewise.
3284 * remote-sim.c: Likewise.
3285 * rs6000-nat.c: Likewise.
3286 * target.c: Likewise.
3287 * typeprint.c: Likewise.
3288 * ui-file.c: Likewise.
3289 * valops.c: Likewise.
3290 * valprint.c: Likewise.
3291
3292 2014-08-07 Gary Benson <gbenson@redhat.com>
3293
3294 * common/common-defs.h: Include string.h.
3295 * aarch64-tdep.c: Do not include string.h.
3296 * ada-exp.y: Likewise.
3297 * ada-lang.c: Likewise.
3298 * ada-lex.l: Likewise.
3299 * ada-typeprint.c: Likewise.
3300 * ada-valprint.c: Likewise.
3301 * aix-thread.c: Likewise.
3302 * alpha-linux-tdep.c: Likewise.
3303 * alpha-mdebug-tdep.c: Likewise.
3304 * alpha-nat.c: Likewise.
3305 * alpha-osf1-tdep.c: Likewise.
3306 * alpha-tdep.c: Likewise.
3307 * alphanbsd-tdep.c: Likewise.
3308 * amd64-dicos-tdep.c: Likewise.
3309 * amd64-linux-tdep.c: Likewise.
3310 * amd64-nat.c: Likewise.
3311 * amd64-sol2-tdep.c: Likewise.
3312 * amd64fbsd-tdep.c: Likewise.
3313 * amd64obsd-tdep.c: Likewise.
3314 * arch-utils.c: Likewise.
3315 * arm-linux-nat.c: Likewise.
3316 * arm-linux-tdep.c: Likewise.
3317 * arm-tdep.c: Likewise.
3318 * arm-wince-tdep.c: Likewise.
3319 * armbsd-tdep.c: Likewise.
3320 * armnbsd-nat.c: Likewise.
3321 * armnbsd-tdep.c: Likewise.
3322 * armobsd-tdep.c: Likewise.
3323 * avr-tdep.c: Likewise.
3324 * ax-gdb.c: Likewise.
3325 * ax-general.c: Likewise.
3326 * bcache.c: Likewise.
3327 * bfin-tdep.c: Likewise.
3328 * breakpoint.c: Likewise.
3329 * build-id.c: Likewise.
3330 * buildsym.c: Likewise.
3331 * c-exp.y: Likewise.
3332 * c-lang.c: Likewise.
3333 * c-typeprint.c: Likewise.
3334 * c-valprint.c: Likewise.
3335 * charset.c: Likewise.
3336 * cli-out.c: Likewise.
3337 * cli/cli-cmds.c: Likewise.
3338 * cli/cli-decode.c: Likewise.
3339 * cli/cli-dump.c: Likewise.
3340 * cli/cli-interp.c: Likewise.
3341 * cli/cli-logging.c: Likewise.
3342 * cli/cli-script.c: Likewise.
3343 * cli/cli-setshow.c: Likewise.
3344 * cli/cli-utils.c: Likewise.
3345 * coffread.c: Likewise.
3346 * common/agent.c: Likewise.
3347 * common/buffer.c: Likewise.
3348 * common/buffer.h: Likewise.
3349 * common/common-utils.c: Likewise.
3350 * common/filestuff.c: Likewise.
3351 * common/filestuff.c: Likewise.
3352 * common/format.c: Likewise.
3353 * common/print-utils.c: Likewise.
3354 * common/rsp-low.c: Likewise.
3355 * common/signals.c: Likewise.
3356 * common/vec.h: Likewise.
3357 * common/xml-utils.c: Likewise.
3358 * core-regset.c: Likewise.
3359 * corefile.c: Likewise.
3360 * corelow.c: Likewise.
3361 * cp-abi.c: Likewise.
3362 * cp-name-parser.y: Likewise.
3363 * cp-support.c: Likewise.
3364 * cp-valprint.c: Likewise.
3365 * cris-tdep.c: Likewise.
3366 * d-exp.y: Likewise.
3367 * darwin-nat.c: Likewise.
3368 * dbxread.c: Likewise.
3369 * dcache.c: Likewise.
3370 * demangle.c: Likewise.
3371 * dicos-tdep.c: Likewise.
3372 * disasm.c: Likewise.
3373 * doublest.c: Likewise.
3374 * dsrec.c: Likewise.
3375 * dummy-frame.c: Likewise.
3376 * dwarf2-frame.c: Likewise.
3377 * dwarf2loc.c: Likewise.
3378 * dwarf2read.c: Likewise.
3379 * elfread.c: Likewise.
3380 * environ.c: Likewise.
3381 * eval.c: Likewise.
3382 * event-loop.c: Likewise.
3383 * exceptions.c: Likewise.
3384 * exec.c: Likewise.
3385 * expprint.c: Likewise.
3386 * f-exp.y: Likewise.
3387 * f-lang.c: Likewise.
3388 * f-typeprint.c: Likewise.
3389 * f-valprint.c: Likewise.
3390 * fbsd-nat.c: Likewise.
3391 * findcmd.c: Likewise.
3392 * findvar.c: Likewise.
3393 * fork-child.c: Likewise.
3394 * frame.c: Likewise.
3395 * frv-linux-tdep.c: Likewise.
3396 * frv-tdep.c: Likewise.
3397 * gdb.c: Likewise.
3398 * gdb_bfd.c: Likewise.
3399 * gdbarch.c: Likewise.
3400 * gdbarch.sh: Likewise.
3401 * gdbtypes.c: Likewise.
3402 * gnu-nat.c: Likewise.
3403 * gnu-v2-abi.c: Likewise.
3404 * gnu-v3-abi.c: Likewise.
3405 * go-exp.y: Likewise.
3406 * go-lang.c: Likewise.
3407 * go32-nat.c: Likewise.
3408 * guile/guile.c: Likewise.
3409 * guile/scm-auto-load.c: Likewise.
3410 * hppa-hpux-tdep.c: Likewise.
3411 * hppa-linux-nat.c: Likewise.
3412 * hppanbsd-tdep.c: Likewise.
3413 * hppaobsd-tdep.c: Likewise.
3414 * i386-cygwin-tdep.c: Likewise.
3415 * i386-dicos-tdep.c: Likewise.
3416 * i386-linux-tdep.c: Likewise.
3417 * i386-nto-tdep.c: Likewise.
3418 * i386-sol2-tdep.c: Likewise.
3419 * i386-tdep.c: Likewise.
3420 * i386bsd-tdep.c: Likewise.
3421 * i386gnu-nat.c: Likewise.
3422 * i386nbsd-tdep.c: Likewise.
3423 * i386obsd-tdep.c: Likewise.
3424 * i387-tdep.c: Likewise.
3425 * ia64-libunwind-tdep.c: Likewise.
3426 * ia64-linux-nat.c: Likewise.
3427 * inf-child.c: Likewise.
3428 * inf-ptrace.c: Likewise.
3429 * inf-ttrace.c: Likewise.
3430 * infcall.c: Likewise.
3431 * infcmd.c: Likewise.
3432 * inflow.c: Likewise.
3433 * infrun.c: Likewise.
3434 * interps.c: Likewise.
3435 * iq2000-tdep.c: Likewise.
3436 * irix5-nat.c: Likewise.
3437 * jv-exp.y: Likewise.
3438 * jv-lang.c: Likewise.
3439 * jv-typeprint.c: Likewise.
3440 * jv-valprint.c: Likewise.
3441 * language.c: Likewise.
3442 * linux-fork.c: Likewise.
3443 * linux-nat.c: Likewise.
3444 * lm32-tdep.c: Likewise.
3445 * m2-exp.y: Likewise.
3446 * m2-typeprint.c: Likewise.
3447 * m32c-tdep.c: Likewise.
3448 * m32r-linux-nat.c: Likewise.
3449 * m32r-linux-tdep.c: Likewise.
3450 * m32r-rom.c: Likewise.
3451 * m32r-tdep.c: Likewise.
3452 * m68hc11-tdep.c: Likewise.
3453 * m68k-tdep.c: Likewise.
3454 * m68kbsd-tdep.c: Likewise.
3455 * m68klinux-nat.c: Likewise.
3456 * m68klinux-tdep.c: Likewise.
3457 * m88k-tdep.c: Likewise.
3458 * machoread.c: Likewise.
3459 * macrocmd.c: Likewise.
3460 * main.c: Likewise.
3461 * mdebugread.c: Likewise.
3462 * mem-break.c: Likewise.
3463 * memattr.c: Likewise.
3464 * memory-map.c: Likewise.
3465 * mep-tdep.c: Likewise.
3466 * mi/mi-cmd-break.c: Likewise.
3467 * mi/mi-cmd-disas.c: Likewise.
3468 * mi/mi-cmd-env.c: Likewise.
3469 * mi/mi-cmd-stack.c: Likewise.
3470 * mi/mi-cmd-var.c: Likewise.
3471 * mi/mi-cmds.c: Likewise.
3472 * mi/mi-console.c: Likewise.
3473 * mi/mi-getopt.c: Likewise.
3474 * mi/mi-interp.c: Likewise.
3475 * mi/mi-main.c: Likewise.
3476 * mi/mi-parse.c: Likewise.
3477 * microblaze-rom.c: Likewise.
3478 * microblaze-tdep.c: Likewise.
3479 * mingw-hdep.c: Likewise.
3480 * minidebug.c: Likewise.
3481 * minsyms.c: Likewise.
3482 * mips-irix-tdep.c: Likewise.
3483 * mips-linux-tdep.c: Likewise.
3484 * mips-tdep.c: Likewise.
3485 * mips64obsd-tdep.c: Likewise.
3486 * mipsnbsd-tdep.c: Likewise.
3487 * mipsread.c: Likewise.
3488 * mn10300-linux-tdep.c: Likewise.
3489 * mn10300-tdep.c: Likewise.
3490 * monitor.c: Likewise.
3491 * moxie-tdep.c: Likewise.
3492 * mt-tdep.c: Likewise.
3493 * nat/linux-btrace.c: Likewise.
3494 * nat/linux-osdata.c: Likewise.
3495 * nat/linux-procfs.c: Likewise.
3496 * nat/linux-ptrace.c: Likewise.
3497 * nat/linux-waitpid.c: Likewise.
3498 * nbsd-tdep.c: Likewise.
3499 * nios2-linux-tdep.c: Likewise.
3500 * nto-procfs.c: Likewise.
3501 * nto-tdep.c: Likewise.
3502 * objc-lang.c: Likewise.
3503 * objfiles.c: Likewise.
3504 * opencl-lang.c: Likewise.
3505 * osabi.c: Likewise.
3506 * osdata.c: Likewise.
3507 * p-exp.y: Likewise.
3508 * p-lang.c: Likewise.
3509 * p-typeprint.c: Likewise.
3510 * parse.c: Likewise.
3511 * posix-hdep.c: Likewise.
3512 * ppc-linux-nat.c: Likewise.
3513 * ppc-sysv-tdep.c: Likewise.
3514 * ppcfbsd-tdep.c: Likewise.
3515 * ppcnbsd-tdep.c: Likewise.
3516 * ppcobsd-tdep.c: Likewise.
3517 * printcmd.c: Likewise.
3518 * procfs.c: Likewise.
3519 * prologue-value.c: Likewise.
3520 * python/py-auto-load.c: Likewise.
3521 * python/py-gdb-readline.c: Likewise.
3522 * ravenscar-thread.c: Likewise.
3523 * regcache.c: Likewise.
3524 * registry.c: Likewise.
3525 * remote-fileio.c: Likewise.
3526 * remote-m32r-sdi.c: Likewise.
3527 * remote-mips.c: Likewise.
3528 * remote-notif.c: Likewise.
3529 * remote-sim.c: Likewise.
3530 * remote.c: Likewise.
3531 * reverse.c: Likewise.
3532 * rs6000-aix-tdep.c: Likewise.
3533 * ser-base.c: Likewise.
3534 * ser-go32.c: Likewise.
3535 * ser-mingw.c: Likewise.
3536 * ser-pipe.c: Likewise.
3537 * ser-tcp.c: Likewise.
3538 * ser-unix.c: Likewise.
3539 * serial.c: Likewise.
3540 * sh-tdep.c: Likewise.
3541 * sh64-tdep.c: Likewise.
3542 * shnbsd-tdep.c: Likewise.
3543 * skip.c: Likewise.
3544 * sol-thread.c: Likewise.
3545 * solib-dsbt.c: Likewise.
3546 * solib-frv.c: Likewise.
3547 * solib-osf.c: Likewise.
3548 * solib-som.c: Likewise.
3549 * solib-spu.c: Likewise.
3550 * solib-target.c: Likewise.
3551 * solib.c: Likewise.
3552 * somread.c: Likewise.
3553 * source.c: Likewise.
3554 * sparc-nat.c: Likewise.
3555 * sparc-sol2-tdep.c: Likewise.
3556 * sparc-tdep.c: Likewise.
3557 * sparc64-tdep.c: Likewise.
3558 * sparc64fbsd-tdep.c: Likewise.
3559 * sparc64nbsd-tdep.c: Likewise.
3560 * sparcnbsd-tdep.c: Likewise.
3561 * spu-linux-nat.c: Likewise.
3562 * spu-multiarch.c: Likewise.
3563 * spu-tdep.c: Likewise.
3564 * stabsread.c: Likewise.
3565 * stack.c: Likewise.
3566 * std-regs.c: Likewise.
3567 * symfile.c: Likewise.
3568 * symmisc.c: Likewise.
3569 * symtab.c: Likewise.
3570 * target.c: Likewise.
3571 * thread.c: Likewise.
3572 * tilegx-linux-nat.c: Likewise.
3573 * tilegx-tdep.c: Likewise.
3574 * top.c: Likewise.
3575 * tracepoint.c: Likewise.
3576 * tui/tui-command.c: Likewise.
3577 * tui/tui-data.c: Likewise.
3578 * tui/tui-disasm.c: Likewise.
3579 * tui/tui-file.c: Likewise.
3580 * tui/tui-layout.c: Likewise.
3581 * tui/tui-out.c: Likewise.
3582 * tui/tui-regs.c: Likewise.
3583 * tui/tui-source.c: Likewise.
3584 * tui/tui-stack.c: Likewise.
3585 * tui/tui-win.c: Likewise.
3586 * tui/tui-windata.c: Likewise.
3587 * tui/tui-winsource.c: Likewise.
3588 * typeprint.c: Likewise.
3589 * ui-file.c: Likewise.
3590 * ui-out.c: Likewise.
3591 * user-regs.c: Likewise.
3592 * utils.c: Likewise.
3593 * v850-tdep.c: Likewise.
3594 * valarith.c: Likewise.
3595 * valops.c: Likewise.
3596 * valprint.c: Likewise.
3597 * value.c: Likewise.
3598 * varobj.c: Likewise.
3599 * vax-tdep.c: Likewise.
3600 * vaxnbsd-tdep.c: Likewise.
3601 * vaxobsd-tdep.c: Likewise.
3602 * windows-nat.c: Likewise.
3603 * xcoffread.c: Likewise.
3604 * xml-support.c: Likewise.
3605 * xstormy16-tdep.c: Likewise.
3606 * xtensa-linux-nat.c: Likewise.
3607
3608 2014-08-07 Gary Benson <gbenson@redhat.com>
3609
3610 * common/common-defs.h: Include gdb_assert.h.
3611 * aarch64-tdep.c: Do not include gdb_assert.h.
3612 * addrmap.c: Likewise.
3613 * aix-thread.c: Likewise.
3614 * alpha-linux-tdep.c: Likewise.
3615 * alpha-mdebug-tdep.c: Likewise.
3616 * alphanbsd-tdep.c: Likewise.
3617 * amd64-nat.c: Likewise.
3618 * amd64-tdep.c: Likewise.
3619 * amd64bsd-nat.c: Likewise.
3620 * amd64fbsd-nat.c: Likewise.
3621 * amd64fbsd-tdep.c: Likewise.
3622 * amd64nbsd-nat.c: Likewise.
3623 * amd64nbsd-tdep.c: Likewise.
3624 * amd64obsd-nat.c: Likewise.
3625 * amd64obsd-tdep.c: Likewise.
3626 * arch-utils.c: Likewise.
3627 * arm-tdep.c: Likewise.
3628 * armbsd-tdep.c: Likewise.
3629 * auxv.c: Likewise.
3630 * bcache.c: Likewise.
3631 * bfin-tdep.c: Likewise.
3632 * blockframe.c: Likewise.
3633 * breakpoint.c: Likewise.
3634 * bsd-kvm.c: Likewise.
3635 * bsd-uthread.c: Likewise.
3636 * buildsym.c: Likewise.
3637 * c-exp.y: Likewise.
3638 * c-lang.c: Likewise.
3639 * charset.c: Likewise.
3640 * cleanups.c: Likewise.
3641 * cli-out.c: Likewise.
3642 * cli/cli-decode.c: Likewise.
3643 * cli/cli-dump.c: Likewise.
3644 * cli/cli-logging.c: Likewise.
3645 * cli/cli-script.c: Likewise.
3646 * cli/cli-utils.c: Likewise.
3647 * coffread.c: Likewise.
3648 * common/common-utils.c: Likewise.
3649 * common/queue.h: Likewise.
3650 * common/signals.c: Likewise.
3651 * common/vec.h: Likewise.
3652 * complaints.c: Likewise.
3653 * completer.c: Likewise.
3654 * corelow.c: Likewise.
3655 * cp-abi.c: Likewise.
3656 * cp-name-parser.y: Likewise.
3657 * cp-namespace.c: Likewise.
3658 * cp-support.c: Likewise.
3659 * cris-tdep.c: Likewise.
3660 * dbxread.c: Likewise.
3661 * dictionary.c: Likewise.
3662 * doublest.c: Likewise.
3663 * dsrec.c: Likewise.
3664 * dummy-frame.c: Likewise.
3665 * dwarf2-frame-tailcall.c: Likewise.
3666 * dwarf2-frame.c: Likewise.
3667 * dwarf2expr.c: Likewise.
3668 * dwarf2loc.c: Likewise.
3669 * dwarf2read.c: Likewise.
3670 * eval.c: Likewise.
3671 * event-loop.c: Likewise.
3672 * exceptions.c: Likewise.
3673 * expprint.c: Likewise.
3674 * f-valprint.c: Likewise.
3675 * fbsd-nat.c: Likewise.
3676 * findvar.c: Likewise.
3677 * frame-unwind.c: Likewise.
3678 * frame.c: Likewise.
3679 * frv-tdep.c: Likewise.
3680 * gcore.c: Likewise.
3681 * gdb-dlfcn.c: Likewise.
3682 * gdb_bfd.c: Likewise.
3683 * gdbarch.c: Likewise.
3684 * gdbarch.sh: Likewise.
3685 * gdbtypes.c: Likewise.
3686 * gnu-nat.c: Likewise.
3687 * gnu-v3-abi.c: Likewise.
3688 * go-lang.c: Likewise.
3689 * guile/scm-exception.c: Likewise.
3690 * guile/scm-gsmob.c: Likewise.
3691 * guile/scm-lazy-string.c: Likewise.
3692 * guile/scm-math.c: Likewise.
3693 * guile/scm-pretty-print.c: Likewise.
3694 * guile/scm-safe-call.c: Likewise.
3695 * guile/scm-utils.c: Likewise.
3696 * guile/scm-value.c: Likewise.
3697 * h8300-tdep.c: Likewise.
3698 * hppa-hpux-nat.c: Likewise.
3699 * hppa-tdep.c: Likewise.
3700 * hppanbsd-tdep.c: Likewise.
3701 * hppaobsd-tdep.c: Likewise.
3702 * i386-darwin-nat.c: Likewise.
3703 * i386-darwin-tdep.c: Likewise.
3704 * i386-nto-tdep.c: Likewise.
3705 * i386-tdep.c: Likewise.
3706 * i386bsd-nat.c: Likewise.
3707 * i386fbsd-tdep.c: Likewise.
3708 * i386gnu-nat.c: Likewise.
3709 * i386nbsd-tdep.c: Likewise.
3710 * i386obsd-tdep.c: Likewise.
3711 * i387-tdep.c: Likewise.
3712 * ia64-libunwind-tdep.c: Likewise.
3713 * ia64-tdep.c: Likewise.
3714 * inf-ptrace.c: Likewise.
3715 * inf-ttrace.c: Likewise.
3716 * infcall.c: Likewise.
3717 * infcmd.c: Likewise.
3718 * infrun.c: Likewise.
3719 * inline-frame.c: Likewise.
3720 * interps.c: Likewise.
3721 * jv-lang.c: Likewise.
3722 * jv-typeprint.c: Likewise.
3723 * linux-fork.c: Likewise.
3724 * linux-nat.c: Likewise.
3725 * linux-thread-db.c: Likewise.
3726 * m32c-tdep.c: Likewise.
3727 * m32r-linux-nat.c: Likewise.
3728 * m32r-tdep.c: Likewise.
3729 * m68k-tdep.c: Likewise.
3730 * m68kbsd-nat.c: Likewise.
3731 * m68kbsd-tdep.c: Likewise.
3732 * m88k-tdep.c: Likewise.
3733 * machoread.c: Likewise.
3734 * macroexp.c: Likewise.
3735 * macrotab.c: Likewise.
3736 * maint.c: Likewise.
3737 * mdebugread.c: Likewise.
3738 * memory-map.c: Likewise.
3739 * mep-tdep.c: Likewise.
3740 * mi/mi-common.c: Likewise.
3741 * microblaze-tdep.c: Likewise.
3742 * mingw-hdep.c: Likewise.
3743 * mips-linux-nat.c: Likewise.
3744 * mips-linux-tdep.c: Likewise.
3745 * mips-tdep.c: Likewise.
3746 * mips64obsd-tdep.c: Likewise.
3747 * mipsnbsd-tdep.c: Likewise.
3748 * mn10300-linux-tdep.c: Likewise.
3749 * mn10300-tdep.c: Likewise.
3750 * moxie-tdep.c: Likewise.
3751 * mt-tdep.c: Likewise.
3752 * nat/linux-btrace.c: Likewise.
3753 * nat/linux-osdata.c: Likewise.
3754 * nat/linux-ptrace.c: Likewise.
3755 * nat/mips-linux-watch.c: Likewise.
3756 * nios2-linux-tdep.c: Likewise.
3757 * nios2-tdep.c: Likewise.
3758 * objc-lang.c: Likewise.
3759 * objfiles.c: Likewise.
3760 * obsd-nat.c: Likewise.
3761 * opencl-lang.c: Likewise.
3762 * osabi.c: Likewise.
3763 * parse.c: Likewise.
3764 * ppc-linux-nat.c: Likewise.
3765 * ppc-sysv-tdep.c: Likewise.
3766 * ppcfbsd-nat.c: Likewise.
3767 * ppcfbsd-tdep.c: Likewise.
3768 * ppcnbsd-nat.c: Likewise.
3769 * ppcnbsd-tdep.c: Likewise.
3770 * ppcobsd-nat.c: Likewise.
3771 * ppcobsd-tdep.c: Likewise.
3772 * printcmd.c: Likewise.
3773 * procfs.c: Likewise.
3774 * prologue-value.c: Likewise.
3775 * psymtab.c: Likewise.
3776 * python/py-lazy-string.c: Likewise.
3777 * python/py-value.c: Likewise.
3778 * regcache.c: Likewise.
3779 * reggroups.c: Likewise.
3780 * registry.c: Likewise.
3781 * remote-sim.c: Likewise.
3782 * remote.c: Likewise.
3783 * rs6000-aix-tdep.c: Likewise.
3784 * rs6000-tdep.c: Likewise.
3785 * s390-linux-tdep.c: Likewise.
3786 * score-tdep.c: Likewise.
3787 * ser-base.c: Likewise.
3788 * ser-mingw.c: Likewise.
3789 * sh-tdep.c: Likewise.
3790 * sh64-tdep.c: Likewise.
3791 * solib-darwin.c: Likewise.
3792 * solib-spu.c: Likewise.
3793 * solib-svr4.c: Likewise.
3794 * source.c: Likewise.
3795 * sparc-nat.c: Likewise.
3796 * sparc-sol2-tdep.c: Likewise.
3797 * sparc-tdep.c: Likewise.
3798 * sparc64-sol2-tdep.c: Likewise.
3799 * sparc64-tdep.c: Likewise.
3800 * sparc64fbsd-tdep.c: Likewise.
3801 * sparc64nbsd-tdep.c: Likewise.
3802 * sparc64obsd-tdep.c: Likewise.
3803 * sparcnbsd-tdep.c: Likewise.
3804 * sparcobsd-tdep.c: Likewise.
3805 * spu-multiarch.c: Likewise.
3806 * spu-tdep.c: Likewise.
3807 * stabsread.c: Likewise.
3808 * stack.c: Likewise.
3809 * symfile.c: Likewise.
3810 * symtab.c: Likewise.
3811 * target-descriptions.c: Likewise.
3812 * target-memory.c: Likewise.
3813 * target.c: Likewise.
3814 * tic6x-linux-tdep.c: Likewise.
3815 * tic6x-tdep.c: Likewise.
3816 * tilegx-linux-nat.c: Likewise.
3817 * tilegx-tdep.c: Likewise.
3818 * top.c: Likewise.
3819 * tramp-frame.c: Likewise.
3820 * tui/tui-out.c: Likewise.
3821 * tui/tui-winsource.c: Likewise.
3822 * ui-out.c: Likewise.
3823 * user-regs.c: Likewise.
3824 * utils.c: Likewise.
3825 * v850-tdep.c: Likewise.
3826 * valops.c: Likewise.
3827 * value.c: Likewise.
3828 * varobj.c: Likewise.
3829 * vax-nat.c: Likewise.
3830 * xml-syscall.c: Likewise.
3831 * xml-tdesc.c: Likewise.
3832 * xstormy16-tdep.c: Likewise.
3833 * xtensa-linux-nat.c: Likewise.
3834 * xtensa-tdep.c: Likewise.
3835
3836 2014-08-07 Gary Benson <gbenson@redhat.com>
3837
3838 * common/common-defs.h: Include common-utils.h.
3839 * defs.h: Do not include common-utils.h.
3840 * common/gdb_assert.h: Likewise.
3841 * darwin-nat.h: Likewise.
3842 * nat/linux-btrace.c: Likewise.
3843 * target/waitstatus.h: Likewise.
3844
3845 2014-08-07 Gary Benson <gbenson@redhat.com>
3846
3847 * common/common-defs.h: Include ptid.h.
3848 * defs.h: Do not include ptid.h.
3849 * inferior.h: Likewise.
3850 * infrun.h: Likewise.
3851 * nat/linux-btrace.h: Likewise.
3852 * nat/linux-osdata.h: Likewise.
3853 * target/waitstatus.h: Likewise.
3854
3855 2014-08-07 Gary Benson <gbenson@redhat.com>
3856
3857 * common/common-defs.h: Include gdb_locale.h.
3858 * defs.h: Do not include gdb_locale.h.
3859
3860 2014-08-07 Gary Benson <gbenson@redhat.com>
3861
3862 * common/common-defs.h: Include gdb/signals.h.
3863 * defs.h: Do not include gdb/signals.h.
3864
3865 2014-08-07 Gary Benson <gbenson@redhat.com>
3866
3867 * common/common-defs.h: Include pathmax.h.
3868 * defs.h: Do not include pathmax.h.
3869
3870 2014-08-07 Gary Benson <gbenson@redhat.com>
3871
3872 * common/common-defs.h: Include libiberty.h.
3873 * defs.h: Do not include libiberty.h.
3874 * common/queue.h: Likewise.
3875 * cp-name-parser.y: Likewise.
3876 * mi/mi-cmd-catch.c: Likewise.
3877 * python/python.c: Likewise.
3878
3879 2014-08-07 Gary Benson <gbenson@redhat.com>
3880
3881 * common/common-defs.h: Include ansidecl.h.
3882 * defs.h: Do not include ansidecl.h.
3883 * common/buffer.h: Likewise.
3884 * common/common-utils.h: Likewise.
3885
3886 2014-08-07 Gary Benson <gbenson@redhat.com>
3887
3888 * common/common-defs.h: Include stddef.h.
3889 * defs.h: Do not include stddef.h.
3890 * common/common-utils.h: Likewise.
3891 * amd64fbsd-nat.c: Likewise.
3892 * bcache.c: Likewise.
3893 * charset.c: Likewise.
3894 * common/buffer.h: Likewise.
3895 * common/vec.h: Likewise.
3896 * i386bsd-nat.c: Likewise.
3897 * nat/linux-btrace.h: Likewise.
3898 * ppcfbsd-nat.c: Likewise.
3899 * ppcnbsd-tdep.h: Likewise.
3900 * ppcobsd-nat.c: Likewise.
3901 * ppcobsd-tdep.h: Likewise.
3902 * python/py-gdb-readline.c: Likewise.
3903
3904 2014-08-07 Gary Benson <gbenson@redhat.com>
3905
3906 * common/common-defs.h: Include stdarg.h.
3907 * defs.h: Do not include stdarg.h.
3908 * ada-lang.c: Likewise.
3909 * common/common-utils.h: Likewise.
3910 * guile/scm-string.c: Likewise.
3911 * guile/scm-utils.c: Likewise.
3912 * m32c-tdep.c: Likewise.
3913
3914 2014-08-07 Gary Benson <gbenson@redhat.com>
3915
3916 * common/common-defs.h: Include stdlib.h.
3917 * defs.h: Do not include stdlib.h.
3918 * addrmap.c: Likewise.
3919 * bcache.c: Likewise.
3920 * common/buffer.c: Likewise.
3921 * common/common-utils.c: Likewise.
3922 * cp-name-parser.y: Likewise.
3923 * go32-nat.c: Likewise.
3924 * mn10300-linux-tdep.c: Likewise.
3925 * nat/linux-osdata.c: Likewise.
3926 * tui/tui.c: Likewise.
3927 * windows-nat.c: Likewise.
3928
3929 2014-08-07 Gary Benson <gbenson@redhat.com>
3930
3931 * common/common-defs.h: Include stdio.h.
3932 * defs.h: Do not include stdio.h.
3933 * ada-lang.c: Likewise.
3934 * common/buffer.c: Likewise.
3935 * common/common-utils.c: Likewise.
3936 * cp-name-parser.y: Likewise.
3937 * gnu-nat.c: Likewise.
3938 * go32-nat.c: Likewise.
3939 * i386gnu-nat.c: Likewise.
3940 * proc-api.c: Likewise.
3941 * proc-events.c: Likewise.
3942 * proc-flags.c: Likewise.
3943 * proc-why.c: Likewise.
3944 * python/python-internal.h: Likewise.
3945 * target-memory.c: Likewise.
3946 * tui/tui-io.c: Likewise.
3947 * tui/tui.c: Likewise.
3948
3949 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3950
3951 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3952 (scan_dyntag_auxv): Same.
3953
3954 2014-08-06 Yao Qi <yao@codesourcery.com>
3955
3956 * amd64-linux-nat.c: Remove duplicated include
3957 "x86-linux-nat.h".
3958 * i386-linux-nat.c: Likewise.
3959
3960 2014-08-06 Yao Qi <yao@codesourcery.com>
3961
3962 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3963 operand" with "Special opcode" in comments.
3964
3965 2014-08-05 Gary Benson <gbenson@redhat.com>
3966
3967 * interps.c (initialize_interps): Remove prototype.
3968 (interpreter_initialized): Remove static global.
3969 (interp_add): Do not call initialize_interps.
3970 (initialize_interps): Remove function.
3971
3972 2014-08-05 Gary Benson <gbenson@redhat.com>
3973
3974 * utils.c (vwarning): Remove spurious va_end.
3975
3976 2014-08-05 Alan Modra <amodra@gmail.com>
3977
3978 * charset.c (convert_between_encodings): Cast result of obstack_base.
3979 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3980 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3981 (read_unwind_info): Use size_t for some locals.
3982 * jit.c (finalize_symtab): Likewise.
3983 * utils.c (hashtab_obstack_allocate): Likewise.
3984 * symmisc.c (print_objfile_statistics): Update format strings.
3985
3986 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3987
3988 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3989 (Changes in GDB 7.8): ... here.
3990
3991 2014-08-04 Tom Tromey <tromey@redhat.com>
3992
3993 * target.c (set_targetdebug): New function.
3994 (initialize_targets): Pass set_targetdebug when creating "set
3995 debug target".
3996
3997 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3998
3999 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4000 if detecting a variable-sized field that is not the last field.
4001 Fix struct type length computation.
4002
4003 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4004
4005 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4006 Add debug trace.
4007
4008 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4009
4010 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4011 Remove "+ 8" offset in computation of CHAIN_VMA.
4012
4013 2014-07-31 Doug Evans <dje@google.com>
4014
4015 * inflow.c (child_terminal_inferior): Add comment.
4016 (child_terminal_ours_for_output): Add comment.
4017 (child_terminal_ours): Add comment.
4018 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4019 (linux_nat_terminal_ours): Add comment.
4020
4021 2014-07-31 Gary Benson <gbenson@redhat.com>
4022
4023 * common/btrace-common.h: Do not include defs.h or server.h.
4024 * nat/mips-linux-watch.h: Likewise.
4025 * gdb-dlfcn.h: Do not include defs.h.
4026 * tracefile.h: Likewise.
4027
4028 2014-07-30 Roland McGrath <mcgrathr@google.com>
4029
4030 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4031
4032 2014-07-30 Tom Tromey <tromey@redhat.com>
4033
4034 * bsd-kvm.c (bsd_kvm_open): Constify.
4035 * corelow.c (core_open): Constify.
4036 * ctf.c (ctf_open): Constify.
4037 * dbug-rom.c (dbug_open): Constify.
4038 * exec.c (exec_open): Constify.
4039 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4040 * microblaze-rom.c (picobug_open): Constify.
4041 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4042 Constify.
4043 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4044 * record-btrace.c (record_btrace_open): Constify.
4045 * record-full.c (record_full_core_open_1, record_full_open_1)
4046 (record_full_open): Constify.
4047 * remote-m32r-sdi.c (m32r_open): Constify.
4048 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4049 (rockhopper_open, lsi_open): Constify.
4050 * remote-sim.c (gdbsim_open): Constify.
4051 * remote.c (remote_open, extended_remote_open, remote_open_1):
4052 Constify.
4053 * target.h (struct target_ops) <to_open>: Make "arg" const.
4054 * tracefile-tfile.c (tfile_open): Constify.
4055
4056 2014-07-30 Tom Tromey <tromey@redhat.com>
4057
4058 * breakpoint.c (map_breakpoint_numbers): Update.
4059 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4060 (get_number_const): New function.
4061 (get_number): Rewrite using get_number_const.
4062 (init_number_or_range): Make "string" const.
4063 (number_is_in_list): Make "list" const.
4064 * cli/cli-utils.h (get_number_const): Declare.
4065 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4066 (init_number_or_range, number_is_in_list): Update.
4067 * printcmd.c (map_display_numbers): Update.
4068 * value.c (value_from_history_ref): Constify.
4069 * value.h (value_from_history_ref): Update.
4070
4071 2014-07-30 Tom Tromey <tromey@redhat.com>
4072
4073 * corefile.c (hook_type, call_extra_exec_file_hooks)
4074 (specify_exec_file_hook): Constify.
4075 * exec.c (exec_file_attach): Make "filename" const.
4076 * gdbcore.h (deprecated_exec_file_display_hook)
4077 (specify_exec_file_hook, exec_file_attach): Constify.
4078 * main.c (captured_main): Use catch_command_errors_const.
4079
4080 2014-07-30 Tom Tromey <tromey@redhat.com>
4081
4082 * target.c (open_target): New function.
4083 (add_target_with_completer, add_deprecated_target_alias): Use
4084 set_cmd_sfunc, set_cmd_context.
4085 (debug_to_open): Remove.
4086 (setup_target_debug): Update.
4087
4088 2014-07-30 Yao Qi <yao@codesourcery.com>
4089
4090 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4091 comments.
4092 * parse.c (exp_iterate): Update comments.
4093
4094 2014-07-30 Gary Benson <gbenson@redhat.com>
4095
4096 * common/common-defs.h: New file.
4097 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4098 * defs.h: Include common-defs.h.
4099 Do not include config.h or build-gnulib/config.h.
4100
4101 2014-07-30 Gary Benson <gbenson@redhat.com>
4102
4103 * common/common-utils.h: Do not include config.h.
4104 * nat/linux-btrace.h: Likewise.
4105
4106 2014-07-30 Gary Benson <gbenson@redhat.com>
4107
4108 * btrace.c: Include defs.h.
4109 * common/ptid.c: Include defs.h or server.h as appropriate.
4110 * nat/mips-linux-watch.c: Likewise.
4111
4112 2014-07-29 Tom Tromey <tromey@redhat.com>
4113
4114 * target.c (target_is_pushed): Simplify.
4115
4116 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4117
4118 GDB 7.8 released.
4119
4120 2014-07-29 Yao Qi <yao@codesourcery.com>
4121
4122 PR gdb/17206
4123 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4124
4125 2014-07-28 Doug Evans <xdje42@gmail.com>
4126
4127 PR guile/17203
4128 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4129 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4130 parameters.
4131
4132 2014-07-28 Will Newton <will.newton@linaro.org>
4133
4134 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4135 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4136 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4137 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4138 (THUMB2_EABI_SYSCALL): Likewise.
4139 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4140 struct tramp_frame.
4141 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4142 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4143
4144 2014-07-27 Doug Evans <xdje42@gmail.com>
4145
4146 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4147
4148 2014-07-27 Doug Evans <xdje42@gmail.com>
4149
4150 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4151
4152 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4153 Doug Evans <xdje42@gmail.com>
4154
4155 PR guile/17146
4156 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4157 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4158 * configure.ac: Try to use guild to compile an scm file, if it fails
4159 then disable guile support.
4160 * configure: Regenerate.
4161 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4162 GUILE_FILE_LIST.
4163 (GUILE_COMPILED_FILES): New variable.
4164 (GUILE_FILES) Update.
4165 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4166 (stamp-guile): Compile scm files.
4167 * guile/guile.c (boot_guile_support): New function.
4168 (standard_throw_args_p): New function.
4169 (print_standard_throw_error, print_throw_error): New functions.
4170 (handle_boot_error): New function.
4171 (initialize_scheme_side): Rewrite to call boot_guile_support.
4172 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4173 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4174
4175 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4176 Doug Evans <xdje42@gmail.com>
4177
4178 PR guile/17146
4179 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4180 * guile/lib/gdb/support.scm: New file.
4181 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4182 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4183 All uses updated.
4184 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4185 All uses updated.
4186 (%assert-type): Ditto, and renamed to assert-type.
4187 (%exception-print-style): Delete.
4188
4189 2014-07-26 Doug Evans <xdje42@gmail.com>
4190
4191 PR build/17105
4192 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4193 * configure: Regenerate.
4194 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4195 PYTHON_FILES.
4196 (PYTHON_FILES): New variable.
4197 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4198 (GUILE_FILES): New variable.
4199 (stamp-python, install-python, uninstall-python): Handle empty
4200 file list.
4201 (stamp-guile, install-guile, uninstall-guile): Ditto.
4202
4203 2014-07-26 Doug Evans <xdje42@gmail.com>
4204
4205 PR guile/17177
4206 * guile/lib/gdb.scm (pretty-printers): Export.
4207 (set-pretty-printers!): Export.
4208 * guile/lib/gdb/printing.scm (gdb module): Update.
4209 (prepend-pretty-printer!, append-pretty-printer!): Update.
4210 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4211 (pretty_printer_list_var): Delete.
4212 (pretty_printer_list): New static global.
4213 (gdbscm_pretty_printers): New function.
4214 (gdbscm_set_pretty_printers_x): New function.
4215 (ppscm_find_pretty_printer_from_gdb): Update.
4216 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4217 (gdbscm_initialize_pretty_printers): Update.
4218
4219 2014-07-26 Doug Evans <xdje42@gmail.com>
4220
4221 PR 17185
4222 * configure.ac: Add check for header gc/gc.h.
4223 Add check for function setenv.
4224 * configure: Regenerate.
4225 * config.in: Regenerate.
4226 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4227
4228 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4229
4230 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4231 variation in gdbarch matching.
4232
4233 2014-07-25 Tom Tromey <tromey@redhat.com>
4234
4235 * exec.c (using_exec_ops): Remove.
4236 (exec_close_1): Update. Remove extraneous block, reindent.
4237 (add_target_sections): Use target_is_pushed.
4238
4239 2014-07-25 Pedro Alves <palves@redhat.com>
4240
4241 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4242 * monitor.c (monitor_create_inferior): Likewise.
4243 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4244 * remote-sim.c (gdbsim_create_inferior): Likewise.
4245 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4246 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4247 * windows-nat.c (do_initial_windows_stuff): Likewise.
4248
4249 2014-07-25 Pedro Alves <palves@redhat.com>
4250
4251 * NEWS: Mention signal passing and "signal" command changes.
4252 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4253 comment.
4254 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4255 call.
4256 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4257 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4258 (jump_command): Adjust clear_proceed_status call.
4259 (signal_command): Warn if other thread that are resumed have
4260 signals that will be delivered. Adjust clear_proceed_status call.
4261 (until_next_command, finish_command)
4262 (proceed_after_attach_callback, attach_command_post_wait)
4263 (attach_command): Adjust clear_proceed_status call.
4264 * infrun.c (proceed_after_vfork_done): Likewise.
4265 (proceed_after_attach_callback): Adjust comment.
4266 (clear_proceed_status_thread): Clear stop_signal if not in pass
4267 state.
4268 (clear_proceed_status_callback): Delete.
4269 (clear_proceed_status): New 'step' parameter. Only clear the
4270 proceed status of threads the command being prepared is about to
4271 resume.
4272 (proceed): If passed in an explicit signal, override stop_signal
4273 with it. Don't pass the last stop signal to the thread we're
4274 resuming.
4275 (init_wait_for_inferior): Adjust clear_proceed_status call.
4276 (switch_back_to_stepped_thread): Clear the signal if it should not
4277 be passed.
4278 * infrun.h (clear_proceed_status): New 'step' parameter.
4279 (user_visible_resume_ptid): Add comment.
4280 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4281 signal is in pass state.
4282 * remote.c (append_pending_thread_resumptions): Likewise.
4283 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4284
4285 2014-07-25 Tom Tromey <tromey@redhat.com>
4286
4287 * target.h (target_stopped_data_address)
4288 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4289 parentheses.
4290
4291 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4292
4293 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4294 comments.
4295 (avr_pointer_to_address): Likewise.
4296
4297 2014-07-24 Tom Tromey <tromey@redhat.com>
4298
4299 * monitor.c (compile_pattern): Update.
4300 * target.h (struct target_ops) <to_shortname, to_longname,
4301 to_doc>: Now const.
4302
4303 2014-07-24 Tom Tromey <tromey@redhat.com>
4304
4305 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4306 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4307 (add_info_alias, add_com): Make "doc" const.
4308 (print_doc_line): Make "str" const.
4309 (delete_cmd): Update.
4310 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4311 (print_doc_line): Update.
4312 * cli/cli-script.c (document_command): Update.
4313 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4314 (add_com, add_info, add_info_alias): Update.
4315 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4316 * python/py-cmd.c (cmdpy_destroyer): Update.
4317
4318 2014-07-24 Tom Tromey <tromey@redhat.com>
4319
4320 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4321 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4322 (help_cmd_list): Constify.
4323 (lookup_cmd): Update.
4324 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4325 const.
4326 (help_cmd_list, apropos_cmd): Update.
4327 * cli/cli-script.c (show_user): Update.
4328 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4329 * cli/cli-setshow.h (cmd_show_list): Update.
4330 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4331 (cmd_show_list): Update.
4332 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4333 * python/py-cmd.c (cmdpy_destroyer): Update.
4334
4335 2014-07-24 Tom Tromey <tromey@redhat.com>
4336
4337 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4338 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4339 const.
4340 * command.h (deprecate_cmd): Update.
4341 * maint.c (maintenance_do_deprecate): Add casts.
4342
4343 2014-07-24 Tom Tromey <tromey@redhat.com>
4344
4345 * cli/cli-decode.c (help_cmd): Make parameter "const".
4346 * cli/cli-decode.h (help_cmd): Update.
4347
4348 2014-07-24 Tom Tromey <tromey@redhat.com>
4349
4350 * stack.c (up_silently_base, down_silently_base): Make argument
4351 const.
4352
4353 2014-07-24 Tom Tromey <tromey@redhat.com>
4354
4355 * solib.c (solib_add): Make "pattern" const.
4356 * solib.h (solib_add): Update.
4357
4358 2014-07-24 Tom Tromey <tromey@redhat.com>
4359
4360 * remote.c (remote_serial_open, print_packet, putpkt)
4361 (putpkt_binary): Constify.
4362 * remote.h (putpkt): Update.
4363
4364 2014-07-24 Tom Tromey <tromey@redhat.com>
4365
4366 * monitor.c (monitor_open): Make "args" const.
4367 * monitor.h (monitor_open): Update.
4368
4369 2014-07-24 Tom Tromey <tromey@redhat.com>
4370
4371 * maint.c (match_bfd_flags): Make "string" const.
4372 (print_bfd_section_info): Remove casts.
4373 (print_objfile_section_info): Make "string" const.
4374
4375 2014-07-24 Tom Tromey <tromey@redhat.com>
4376
4377 * inf-child.c (inf_child_open_target): Make "arg" const.
4378 * inf-child.h (inf_child_open_target): Update.
4379
4380 2014-07-24 Tom Tromey <tromey@redhat.com>
4381
4382 * environ.c (unset_in_environ): Make "var" const.
4383 * environ.h (unset_in_environ): Update.
4384
4385 2014-07-24 Tom Tromey <tromey@redhat.com>
4386
4387 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4388 Make "cmd" const.
4389 (scan_filename_with_cleanup): Likewise.
4390 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4391 Make arguments const.
4392 (restore_command): Update.
4393
4394 2014-07-24 Pedro Alves <palves@redhat.com>
4395
4396 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4397
4398 2014-07-24 Tom Tromey <tromey@redhat.com>
4399 Gary Benson <gbenson@redhat.com>
4400
4401 * nat/linux-ptrace.c (additional_flags): New global.
4402 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4403 additional_flags; don't check GDBSERVER.
4404 (linux_ptrace_set_additional_flags): New function.
4405 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4406 Declare.
4407 * linux-nat.c (_initialize_linux_nat): Call
4408 linux_ptrace_set_additional_flags.
4409
4410 2014-07-24 Tom Tromey <tromey@redhat.com>
4411
4412 * make-target-delegates (munge_type, write_debugmethod): New
4413 functions.
4414 (debug_names): New global.
4415 ($TARGET_DEBUG_PRINTER): New global.
4416 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4417 name.
4418 Write debug methods. Generate init_debug_target.
4419 * target-debug.h: New file.
4420 * target-delegates.c: Rebuild.
4421 * target.c: Include target-debug.h.
4422 (debug_target): Hoist definition.
4423 (target_kill, target_get_section_table, target_memory_map)
4424 (target_flash_erase, target_flash_done, target_detach)
4425 (target_disconnect, target_wait, target_resume)
4426 (target_pass_signals, target_program_signals, target_follow_fork)
4427 (target_mourn_inferior, target_search_memory)
4428 (target_thread_address_space, target_close)
4429 (target_find_new_threads, target_core_of_thread)
4430 (target_verify_memory, target_insert_mask_watchpoint)
4431 (target_remove_mask_watchpoint): Remove targetdebug code.
4432 (debug_to_post_attach, debug_to_prepare_to_store)
4433 (debug_to_files_info, debug_to_insert_breakpoint)
4434 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4435 (debug_to_region_ok_for_hw_watchpoint)
4436 (debug_to_can_accel_watchpoint_condition)
4437 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4438 (debug_to_watchpoint_addr_within_range)
4439 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4440 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4441 (debug_to_terminal_init, debug_to_terminal_inferior)
4442 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4443 (debug_to_terminal_save_ours, debug_to_terminal_info)
4444 (debug_to_load, debug_to_post_startup_inferior)
4445 (debug_to_insert_fork_catchpoint)
4446 (debug_to_remove_fork_catchpoint)
4447 (debug_to_insert_vfork_catchpoint)
4448 (debug_to_remove_vfork_catchpoint)
4449 (debug_to_insert_exec_catchpoint)
4450 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4451 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4452 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4453 (setup_target_debug): Call init_debug_target.
4454 * target.h (TARGET_DEBUG_PRINTER): New macro.
4455 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4456 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4457
4458 2014-07-24 Gary Benson <gbenson@redhat.com>
4459
4460 * exceptions.h (throw_vfatal): Renamed to...
4461 (throw_vquit): New declaration.
4462 (throw_quit): Likewise.
4463 * exceptions.c (throw_vfatal): Renamed to...
4464 (throw_vquit): New function.
4465 (throw_quit): Likewise.
4466 (throw_error): Call throw_verror rather than throw_it.
4467 * utils.h (vfatal): Removed.
4468 (fatal): Likewise.
4469 * utils.c (vfatal): Removed.
4470 (fatal): Likewise.
4471 (internal_verror): Replaced call to fatal with call to throw_quit.
4472 (quit): Replaced calls to fatal with calls to throw_quit.
4473
4474 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4475
4476 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4477 target_read_code.
4478
4479 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4480
4481 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4482 less than zero in conditional expression.
4483
4484 2014-07-23 Tom Tromey <tromey@redhat.com>
4485
4486 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4487 ($INTRO_PART): Don't match whitespace.
4488 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4489 argument matching.
4490 ($METHOD): Add $METHOD_TRAILER.
4491 (trim): Rewrite.
4492 (scan_target_h): New sub.
4493 Change main loop not to collect state.
4494 * target-delegates.c: Rebuild.
4495
4496 2014-07-23 Gary Benson <gbenson@redhat.com>
4497
4498 * cp-support.c (gdb_demangle): Fix build on systems without
4499 sigaltstack.
4500
4501 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4502
4503 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4504 for reference entry value target data value.
4505
4506 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4507
4508 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4509 value_available_contents_eq.
4510
4511 2014-07-22 Pedro Alves <palves@redhat.com>
4512
4513 * value.c (allocate_optimized_out_value): Don't mark value as
4514 non-lazy.
4515
4516 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4517
4518 * MAINTAINERS (Write After Approval): Update my email address.
4519
4520 2014-07-20 Doug Evans <dje@google.com>
4521
4522 PR server/17147
4523 * remote.c (putpkt_binary): Add text to error message.
4524
4525 2014-07-20 Yao Qi <yao@codesourcery.com>
4526
4527 * eval.c: Remove "Chill" from comments.
4528 * gdbtypes.h: Likewise.
4529 * symtab.h: Likewise.
4530
4531 2014-07-20 Yao Qi <yao@codesourcery.com>
4532
4533 * std-operator.def: Update comments to TERNOP_SLICE.
4534
4535 2014-07-20 Yao Qi <yao@codesourcery.com>
4536
4537 * std-operator.def: Remove BINOP_RANGE.
4538 * breakpoint.c (watchpoint_exp_is_const): Update.
4539 * expprint.c (dump_subexp_body_standard): Likewise.
4540 * eval.c (init_array_element): Remove dead code.
4541 (evaluate_subexp_standard): Likewise.
4542
4543 2014-07-20 Yao Qi <yao@codesourcery.com>
4544
4545 * std-operator.def: Remove BINOP_IN.
4546 * breakpoint.c (watchpoint_exp_is_const): Update.
4547 * eval.c (evaluate_subexp_standard): Likewise.
4548 * expprint.c (dump_subexp_body_standard): Likewise.
4549
4550 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4551
4552 * microblaze-tdep.c (microblaze_register_names): Add
4553 the rshr and rslr register names.
4554 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4555 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4556 Use of tdesc_numbered_register. Use of
4557 microblaze_register_g_packet_guesses. Use of
4558 tdesc_use_registers. Use of set_gdbarch_register_type.
4559 (microblaze_register_g_packet_guesses): New.
4560 * microblaze-tdep.h (microblaze_reg_num): Add
4561 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4562 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4563 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4564 * features/microblaze-core.xml: New file.
4565 * features/microblaze-stack-protect.xml: New file.
4566 * features/microblaze-with-stack-protect.c: New file.
4567 * features/microblaze-with-stack-protect.xml: New file.
4568 * features/microblaze.xml: New file.
4569 * features/microblaze.c: New file.
4570 * features/Makefile (microblaze-with-stack-protect): Add
4571 microblaze-with-stack-protect microblaze and microblaze-expedite.
4572 * regformats/microblaze-with-stack-protect.dat: New file.
4573 * regformats/microblaze.dat: New file.
4574 * doc/gdb.texinfo (MicroBlaze Features): Added.
4575
4576 2014-07-18 Tom Tromey <tromey@redhat.com>
4577
4578 * exec.c (exec_ops): Now static.
4579 * exec.h (exec_ops): Don't declare.
4580
4581 2014-07-18 Tom Tromey <tromey@redhat.com>
4582
4583 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4584 to find_target_beneath.
4585 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4586 find_target_beneath.
4587 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4588
4589 2014-07-18 Tom Tromey <tromey@redhat.com>
4590
4591 PR gdb/17130:
4592 * utils.c (quit): Use target_supports_terminal_ours.
4593 * target.h (target_supports_terminal_ours): Declare.
4594 * target.c (target_supports_delete_record): Don't check
4595 to_delete_record against NULL.
4596 (target_supports_terminal_ours): New function.
4597
4598 2014-07-18 Tom Tromey <tromey@redhat.com>
4599
4600 PR gdb/17130:
4601 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4602 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4603 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4604 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4605 * windows-nat.c (windows_xfer_partial): Always delegate.
4606 * record-btrace.c (record_btrace_xfer_partial): Simplify
4607 delegation.
4608 (record_btrace_fetch_registers, record_btrace_store_registers)
4609 (record_btrace_prepare_to_store, record_btrace_resume)
4610 (record_btrace_wait, record_btrace_find_new_threads)
4611 (record_btrace_thread_alive): Likewise.
4612 * procfs.c (procfs_xfer_partial): Always delegate.
4613 * corelow.c (core_xfer_partial): Always delegate.
4614 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4615
4616 2014-07-18 Tom Tromey <tromey@redhat.com>
4617
4618 * exec.c (exec_make_note_section): Move earlier.
4619
4620 2014-07-17 Doug Evans <dje@google.com>
4621
4622 PR gdb/17170
4623 * maint.c (count_symtabs_and_blocks): Handle NULL
4624 current_program_space.
4625 (report_command_stats): Check global enabled flag in addition to
4626 recorded enabled flag.
4627 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4628
4629 2014-07-16 Pedro Alves <palves@redhat.com>
4630
4631 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4632
4633 2014-07-16 Tom Tromey <tromey@redhat.com>
4634
4635 * target.h (struct target_ops) <to_delete_record>: Reformat
4636 comment.
4637
4638 2014-07-16 Tom Tromey <tromey@redhat.com>
4639
4640 * target-delegates.c: Rebuild.
4641
4642 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4643
4644 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4645 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4646 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4647 (avr_pointer_to_address): Likewise.
4648 (avr_address_class_type_flags): New function.
4649 (avr_address_class_type_flags_to_name): Likewise.
4650 (avr_address_class_name_to_type_flags): Likewise.
4651 (avr_gdbarch_init): Set address_class_type_flags,
4652 address_class_type_flags_to_name and
4653 address_class_name_to_type_flags.
4654
4655 2014-07-15 Pedro Alves <palves@redhat.com>
4656
4657 * linux-nat.c (kill_callback): Save errno and work with saved
4658 copy.
4659
4660 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4661
4662 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4663
4664 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4665
4666 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4667 breakpoint support correctly.
4668
4669 2014-07-14 Pedro Alves <palves@redhat.com>
4670
4671 * utils.c (prompt_for_continue): Call target_terminal_ours.
4672
4673 2014-07-14 Pedro Alves <palves@redhat.com>
4674
4675 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4676 catch_errors. Don't re-enable stdin or notify observers where,
4677 and rethrow error.
4678 (fetch_inferior_event_wrapper): Delete.
4679
4680 2014-07-14 Pedro Alves <palves@redhat.com>
4681
4682 PR gdb/17072
4683 * top.c: Include "inf-loop.h".
4684 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4685 field.
4686 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4687 was async before.
4688 (gdb_readline_wrapper): Store whether the target is async, and
4689 make it sync.
4690
4691 2014-07-14 Pedro Alves <palves@redhat.com>
4692
4693 PR gdb/17072
4694 * top.c (gdb_readline_wrapper_line): Tweak comment.
4695 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4696 the input handler callback.
4697
4698 2014-07-14 Pedro Alves <palves@redhat.com>
4699
4700 PR gdb/17072
4701 * main.c: Include event-top.h.
4702 (handle_command_errors): New function.
4703 (catch_command_errors, catch_command_errors_const): Use it.
4704
4705 2014-07-14 Pedro Alves <palves@redhat.com>
4706
4707 * exceptions.c (catch_command_errors, catch_command_errors_const):
4708 Moved to main.c.
4709 * exceptions.h (catch_command_errors_ftype)
4710 (catch_command_errors_const_ftype): Moved to main.c.
4711 (catch_command_errors, catch_command_errors_const): Delete
4712 declarations.
4713 * main.c (catch_command_errors_ftype)
4714 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4715 (catch_command_errors, catch_command_errors_const)): Moved here
4716 from exceptions.c and make static.
4717
4718 2014-07-14 Pedro Alves <palves@redhat.com>
4719
4720 * exceptions.c (print_any_exception): Delete.
4721 (catch_exceptions_with_msg): Use exception_print instead of
4722 print_any_exception.
4723 (catch_errors): Use exception_fprintf instead of
4724 print_any_exception.
4725 (catch_command_errors, catch_command_errors_const): Use
4726 exception_print instead of print_any_exception.
4727
4728 2014-07-14 Pedro Alves <palves@redhat.com>
4729
4730 * infcall.c (run_inferior_call): Set 'sync_execution' while
4731 running the inferior call.
4732
4733 2014-07-14 Pedro Alves <palves@redhat.com>
4734
4735 * value.c (value_contents_equal): Delete function.
4736 * value.h (value_contents_equal): Delete declaration.
4737
4738 2014-07-14 Tom Tromey <tromey@redhat.com>
4739
4740 PR exp/17106:
4741 * gdbtypes.c (is_dynamic_type_internal): New function, from
4742 is_dynamic_type.
4743 (is_dynamic_type): Rewrite.
4744 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4745 (resolve_dynamic_struct): Likewise.
4746 (resolve_dynamic_type_internal): New function, from
4747 resolve_dynamic_type.
4748 (resolve_dynamic_type): Rewrite.
4749
4750 2014-07-14 Tom Tromey <tromey@redhat.com>
4751
4752 * target.c (target_require_runnable): Also check record_stratum.
4753 Update comment.
4754
4755 2014-07-11 Yao Qi <yao@codesourcery.com>
4756
4757 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4758 thumb_instruction_restores_sp return true.
4759
4760 2014-07-11 Yao Qi <yao@codesourcery.com>
4761
4762 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4763 (thumb_in_function_epilogue_p): Call
4764 thumb_instruction_restores_sp.
4765
4766 2014-07-11 Yao Qi <yao@codesourcery.com>
4767
4768 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4769 'add sp, #imm'.
4770 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4771
4772 2014-07-11 Gary Benson <gbenson@redhat.com>
4773
4774 * amd64-linux-nat.c (gdbcore.h): Remove include.
4775 (regset.h): Likewise.
4776 (nat/linux-btrace.h): Likewise.
4777 (btrace.h): Likewise.
4778 (gdb_assert.h): Likewise.
4779 (string.h): Likewise.
4780 (sys/uio.h): Likewise.
4781 (sys/debugreg.h): Likewise.
4782 (sys/syscall.h): Likewise.
4783 (sys/procfs.h): Likewise.
4784 (sys/user.h): Likewise.
4785 (asm/ptrace.h): Likewise.
4786 (i386-nat.h): Likewise.
4787 * i386-linux-nat.c (i386-nat.h): Likewise.
4788 (regset.h): Likewise.
4789 (target.h): Likewise.
4790 (linux-nat.h): Likewise.
4791 (nat/linux-btrace.h): Likewise.
4792 (btrace.h): Likewise.
4793 (gdb_assert.h): Likewise.
4794 (string.h): Likewise.
4795 (sys/uio.h): Likewise.
4796 (sys/user.h): Likewise.
4797 (sys/procfs.h): Likewise.
4798 (sys/reg.h): Likewise.
4799 (sys/debugreg.h): Likewise.
4800 (ORIG_EAX): Remove definition.
4801
4802 2014-07-11 Gary Benson <gbenson@redhat.com>
4803
4804 * i386-linux-nat.h: New file.
4805 * x86-linux-nat.h: Likewise.
4806 * x86-linux-nat.c: Likewise.
4807 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4808 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4809 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4810 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4811 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4812 (PTRACE_SETREGSET): Likewise.
4813 (arch_lwp_info): Now in x86-linux-nat.c.
4814 (have_ptrace_getregset): Now in x86-linux-nat.h.
4815 (x86_linux_dr_get): Now in x86-linux-nat.c.
4816 (x86_linux_dr_set): Likewise.
4817 (x86_linux_dr_get_addr): Likewise.
4818 (x86_linux_dr_get_control): Likewise.
4819 (x86_linux_dr_get_status): Likewise.
4820 (update_debug_registers_callback): Likewise.
4821 (x86_linux_dr_set_control): Likewise.
4822 (x86_linux_dr_set_addr): Likewise.
4823 (x86_linux_prepare_to_resume): Likewise.
4824 (x86_linux_new_thread): Likewise.
4825 (x86_linux_new_fork): Likewise.
4826 (x86_linux_get_thread_area): Likewise.
4827 (super_post_startup_inferior): Likewise.
4828 (x86_linux_child_post_startup_inferior): Likewise.
4829 (AMD64_LINUX_USER64_CS): Likewise.
4830 (AMD64_LINUX_X32_DS): Likewise.
4831 (x86_linux_read_description): Likewise.
4832 (x86_linux_enable_btrace): Likewise.
4833 (x86_linux_disable_btrace): Likewise.
4834 (x86_linux_teardown_btrace): Likewise.
4835 (x86_linux_read_btrace): Likewise.
4836 (x86_linux_create_target): Likewise.
4837 (x86_linux_add_target): Likewise.
4838 * i386-linux-nat.c (x86-linux-nat.h): New include.
4839 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4840 (PTRACE_SETREGSET): Likewise.
4841 (arch_lwp_info): Now in x86-linux-nat.c.
4842 (have_ptrace_getregset): Now in x86-linux-nat.h.
4843 (x86_linux_dr_get): Now in x86-linux-nat.c.
4844 (x86_linux_dr_set): Likewise.
4845 (x86_linux_dr_get_addr): Likewise.
4846 (x86_linux_dr_get_control): Likewise.
4847 (x86_linux_dr_get_status): Likewise.
4848 (update_debug_registers_callback): Likewise.
4849 (x86_linux_dr_set_control): Likewise.
4850 (x86_linux_dr_set_addr): Likewise.
4851 (x86_linux_prepare_to_resume): Likewise.
4852 (x86_linux_new_thread): Likewise.
4853 (x86_linux_new_fork): Likewise.
4854 (x86_linux_get_thread_area): Likewise.
4855 (super_post_startup_inferior): Likewise.
4856 (x86_linux_child_post_startup_inferior): Likewise.
4857 (AMD64_LINUX_USER64_CS): Likewise.
4858 (AMD64_LINUX_X32_DS): Likewise.
4859 (x86_linux_read_description): Likewise.
4860 (x86_linux_enable_btrace): Likewise.
4861 (x86_linux_disable_btrace): Likewise.
4862 (x86_linux_teardown_btrace): Likewise.
4863 (x86_linux_read_btrace): Likewise.
4864 (x86_linux_create_target): Likewise.
4865 (x86_linux_add_target): Likewise.
4866
4867 2014-07-11 Gary Benson <gbenson@redhat.com>
4868
4869 * amd64-linux-nat.c: Comment and whitespace changes.
4870 * i386-linux-nat.c: Comment and whitespace changes.
4871
4872 2014-07-11 Gary Benson <gbenson@redhat.com>
4873
4874 * amd64-linux-nat.c (x86_linux_create_target): New function.
4875 (x86_linux_add_target): Likewise.
4876 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4877 * i386-linux-nat.c (x86_linux_create_target): New function.
4878 (x86_linux_add_target): Likewise.
4879 (_initialize_i386_linux_nat): Delegate to the above new functions.
4880
4881 2014-07-11 Gary Benson <gbenson@redhat.com>
4882
4883 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4884 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4885 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4886 (ps_get_thread_area): Delegate to the above.
4887
4888 2014-07-11 Gary Benson <gbenson@redhat.com>
4889
4890 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4891 x86_linux_read_description. All uses updated. amd64-specific
4892 code conditionalized. Conditionalized i386-specific code added.
4893 Redundant cast removed.
4894 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4895 x86_linux_read_description. All uses updated. i386-specific
4896 code conditionalized. Conditionalized amd64-specific code added.
4897 One sizeof replaced with the actual type it is describing.
4898
4899 2014-07-11 Gary Benson <gbenson@redhat.com>
4900
4901 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4902 x86_linux_dr_get. All uses updated.
4903 (amd64_linux_dr_set): Renamed to
4904 x86_linux_dr_set. All uses updated.
4905 (amd64_linux_dr_get_addr): Renamed to
4906 x86_linux_dr_get_addr. All uses updated.
4907 (amd64_linux_dr_get_control): Renamed to
4908 x86_linux_dr_get_control. All uses updated.
4909 (amd64_linux_dr_get_status): Renamed to
4910 x86_linux_dr_get_status. All uses updated.
4911 (amd64_linux_dr_set_control): Renamed to
4912 x86_linux_dr_set_control. All uses updated.
4913 (amd64_linux_dr_set_addr): Renamed to
4914 x86_linux_dr_set_addr. All uses updated.
4915 (amd64_linux_prepare_to_resume): Renamed to
4916 x86_linux_prepare_to_resume. All uses updated.
4917 (amd64_linux_new_thread): Renamed to
4918 x86_linux_new_thread. All uses updated.
4919 (amd64_linux_new_fork): Renamed to
4920 x86_linux_new_fork. All uses updated.
4921 (amd64_linux_child_post_startup_inferior): Renamed to
4922 x86_linux_child_post_startup_inferior. All uses updated.
4923 (amd64_linux_enable_btrace): Renamed to
4924 x86_linux_enable_btrace. All uses updated.
4925 (amd64_linux_disable_btrace): Renamed to
4926 x86_linux_disable_btrace. All uses updated.
4927 (amd64_linux_teardown_btrace): Renamed to
4928 x86_linux_teardown_btrace. All uses updated.
4929 (amd64_linux_read_btrace): Renamed to
4930 x86_linux_read_btrace. All uses updated.
4931 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4932 x86_linux_dr_get. All uses updated.
4933 (i386_linux_dr_set): Renamed to
4934 x86_linux_dr_set. All uses updated.
4935 (i386_linux_dr_get_addr): Renamed to
4936 x86_linux_dr_get_addr. All uses updated.
4937 (i386_linux_dr_get_control): Renamed to
4938 x86_linux_dr_get_control. All uses updated.
4939 (i386_linux_dr_get_status): Renamed to
4940 x86_linux_dr_get_status. All uses updated.
4941 (i386_linux_dr_set_control): Renamed to
4942 x86_linux_dr_set_control. All uses updated.
4943 (i386_linux_dr_set_addr): Renamed to
4944 x86_linux_dr_set_addr. All uses updated.
4945 (i386_linux_prepare_to_resume): Renamed to
4946 x86_linux_prepare_to_resume. All uses updated.
4947 (i386_linux_new_thread): Renamed to
4948 x86_linux_new_thread. All uses updated.
4949 (i386_linux_new_fork): Renamed to
4950 x86_linux_new_fork. All uses updated.
4951 (i386_linux_child_post_startup_inferior): Renamed to
4952 x86_linux_child_post_startup_inferior. All uses updated.
4953 (i386_linux_enable_btrace): Renamed to
4954 x86_linux_enable_btrace. All uses updated.
4955 (i386_linux_disable_btrace): Renamed to
4956 x86_linux_disable_btrace. All uses updated.
4957 (i386_linux_teardown_btrace): Renamed to
4958 x86_linux_teardown_btrace. All uses updated.
4959 (i386_linux_read_btrace): Renamed to
4960 x86_linux_read_btrace. All uses updated.
4961
4962 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4963
4964 * remote.c (extended_remote_post_attach): New function.
4965 (init_extended_remote_ops): Install it as to_post_attach method.
4966
4967 2014-07-09 Pedro Alves <palves@redhat.com>
4968
4969 * infcmd.c (attach_command_post_wait): Don't call
4970 target_terminal_inferior here.
4971 (attach_command): Call it here instead.
4972
4973 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4974
4975 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4976 field.
4977 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4978 from varobj.c, with additional checks.
4979 (c_varobj_ops): Fill in is_path_expr_parent field.
4980 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4981 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4982 field.
4983 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4984 ops method.
4985 (varobj_default_is_path_expr_parent): New function.
4986 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4987 (varobj_default_is_path_expr_parent): Declare new function.
4988
4989 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4990
4991 * infcmd.c (finish_backward): Turn internal error into normal error.
4992
4993 2014-07-07 Pedro Alves <palves@redhat.com>
4994
4995 PR gdb/17096
4996 * remote.c (async_handle_remote_sigint)
4997 (async_handle_remote_sigint_twice): Call
4998 gdb_call_async_signal_handler instead of
4999 mark_async_signal_handler.
5000
5001 2014-07-07 Tom Tromey <tromey@redhat.com>
5002
5003 * target-delegates.c: Rebuild.
5004 * target.c (target_info_record): Remove.
5005 * record.c (info_record_command): Unconditionally call
5006 to_info_record.
5007 * target.h (struct target_ops) <to_info_record>: Use
5008 TARGET_DEFAULT_IGNORE.
5009 (target_info_record): Remove.
5010
5011 2014-07-07 Tom Tromey <tromey@redhat.com>
5012
5013 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5014 TARGET_DEFAULT_NORETURN.
5015 * target.c (generic_tls_error): New function.
5016 (target_translate_tls_address): Don't search target stack.
5017 * target-delegates.c: Rebuild.
5018 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5019 stack.
5020 * linux-thread-db.c (thread_db_get_thread_local_address):
5021 Unconditionally call beneath target.
5022
5023 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5024
5025 * cli/cli-logging.c (pop_output_files): Assign targerr to
5026 gdb_stdtargerr.
5027
5028 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5029
5030 * MAINTAINERS (Write After Approval): Update my email address.
5031
5032 2014-07-02 Gary Benson <gbenson@redhat.com>
5033
5034 * proc-service.c (ps_xfer_memory): Update comment.
5035 (ps_pstop): Remove unused function.
5036 (ps_pcontinue): Likewise.
5037 (ps_lstop): Likewise.
5038 (ps_lcontinue): Likewise.
5039 (ps_lgetxregsize): Likewise.
5040 (ps_lgetxregs): Likewise.
5041 (ps_lsetxregs): Likewise.
5042 (ps_plog): Likewise.
5043 (ps_ptread): Likewise.
5044 (ps_ptwrite): Likewise.
5045
5046 2014-07-01 Mark Wielaard <mjw@redhat.com>
5047
5048 * dwarf2read.c (add_array_cv_type): New function.
5049 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5050 (read_tag_volatile_type): Likewise.
5051
5052 2014-07-01 Tom Tromey <tromey@redhat.com>
5053
5054 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5055 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5056 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5057 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5058 * command.h (cmd_cfunc_ftype): Move earlier.
5059 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5060 (add_com, add_info): Use cmd_cfunc_ftype.
5061
5062 2014-06-30 Tom Tromey <tromey@redhat.com>
5063
5064 * symtab.c (operator_chars): Make parameters and return type
5065 const.
5066 (file_matches): Make "files" const.
5067 (struct search_symbols_data) <files>: Now const.
5068 (search_symbols): Make "regexp" and "files" parameters const.
5069 Update.
5070 (symtab_symbol_info): Remove cast.
5071 (rbreak_command): Update.
5072 * symtab.h (search_symbols): Update.
5073
5074 2014-06-27 Yao Qi <yao@codesourcery.com>
5075
5076 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5077 Change parameter type to 'struct thread_info *'. Caller
5078 updated.
5079 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5080 Update declaration.
5081 * dummy-frame.c (struct dummy_frame_id): New.
5082 (dummy_frame_id_eq): New function.
5083 (struct dummy_frame) <id>: Change its type to 'struct
5084 dummy_frame_id'.
5085 (dummy_frame_push): Add parameter ptid and save it in
5086 dummy_frame_id.
5087 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5088 inferior_ptid.
5089 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5090 to inferior_ptid.
5091 (lookup_dummy_frame): Change parameter type to 'struct
5092 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5093 instead of frame_id_eq.
5094 (dummy_frame_pop): Add parameter ptid. Callers updated.
5095 Update comments. Compose dummy_frame_id and pass it to
5096 lookup_dummy_frame.
5097 (dummy_frame_discard): Add parameter ptid.
5098 (dummy_frame_sniffer): Compose dummy_frame_id and call
5099 dummy_frame_id_eq instead of frame_id_eq.
5100 (fprint_dummy_frames): Print ptid.
5101 * dummy-frame.h: Remove comments.
5102 (dummy_frame_push): Add ptid in declaration.
5103 (dummy_frame_pop, dummy_frame_discard): Likewise.
5104
5105 2014-06-26 Tom Tromey <tromey@redhat.com>
5106
5107 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5108 * command.h (error_no_arg): Update.
5109
5110 2014-06-26 Tom Tromey <tromey@redhat.com>
5111
5112 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5113 (do_show_command): Make "arg" const.
5114 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5115
5116 2014-06-26 Tom Tromey <tromey@redhat.com>
5117
5118 * record-full.c (record_full_get_bookmark): Make "args" const.
5119 (record_full_goto_bookmark): Make "raw_bookmark" const.
5120 * record.c (record_goto): New function.
5121 (cmd_record_goto): Use it. Now static.
5122 * record.h (record_goto): Declare.
5123 (cmd_record_goto): Remove declaration.
5124 * target-delegates.c: Rebuild.
5125 * target.h (struct target_ops) <to_get_bookmark,
5126 to_goto_bookmark>: Make parameter const.
5127
5128 2014-06-26 Tom Tromey <tromey@redhat.com>
5129
5130 * defs.h (generic_load): Update.
5131 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5132 * monitor.c (monitor_load): Make "args" const.
5133 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5134 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5135 const.
5136 (mips_load): Make "file" const.
5137 * remote-sim.c (gdbsim_load): Make "args" const.
5138 * remote.c (remote_load): Make "name" const.
5139 * symfile.c (generic_load): Make "args" const.
5140 * target-delegates.c: Rebuild.
5141 * target.c (target_load): Make "arg" const.
5142 (debug_to_load): Make "args" const.
5143 * target.h (struct target_ops) <to_load>: Make parameter const.
5144 (target_load): Update.
5145
5146 2014-06-26 Tom Tromey <tromey@redhat.com>
5147
5148 PR symtab/16902:
5149 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5150 (dwarf2_physname, read_partial_die)
5151 (guess_partial_die_structure_name, fixup_partial_die)
5152 (guess_full_die_structure_name, anonymous_struct_prefix)
5153 (dwarf2_name): Use per-BFD obstack.
5154
5155 2014-06-26 Yao Qi <yao@codesourcery.com>
5156
5157 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5158 dummyframe and this_id into inner block below.
5159
5160 2014-06-26 Yao Qi <yao@codesourcery.com>
5161
5162 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5163 with "signal_pass[0]" in the initialization of signal_pass.
5164
5165 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5166
5167 * record-btrace.c (record_btrace_generating_corefile)
5168 (record_btrace_prepare_to_generate_core)
5169 (record_btrace_done_generating_core): New.
5170 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5171 (record_btrace_store_registers, record_btrace_prepare_to_store):
5172 Forward request when generating a core file.
5173 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5174 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5175 to_done_generating_core.
5176
5177 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5178
5179 * target.h (target_ops) <to_prepare_to_generate_core>
5180 <to_done_generating_core>: New.
5181 (target_prepare_to_generate_core, target_done_generating_core): New.
5182 * target.c (target_prepare_to_generate_core)
5183 (target_done_generating_core): New.
5184 * target-delegates.c: Regenerate.
5185 * gcore.c: (write_gcore_file): Rename to ...
5186 (write_gcore_file_1): ...this.
5187 (write_gcore_file): Call target_prepare_to_generate_core
5188 and target_done_generating_core.
5189
5190 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5191
5192 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5193 * gcore.c (write_gcore_file): Free memory returned from
5194 make_corefile_notes.
5195 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5196 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5197
5198 2014-06-24 Yao Qi <yao@codesourcery.com>
5199
5200 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5201 (arm_linux_init_abi): Set skip_trampoline_code with
5202 gdbarch_skip_trampoline_code instead of
5203 find_solib_trampoline_target.
5204
5205 2014-06-24 Yao Qi <yao@codesourcery.com>
5206
5207 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5208 arm_skip_bx_reg returns non-zero.
5209
5210 2014-06-24 Yao Qi <yao@codesourcery.com>
5211
5212 * arm-tdep.c (arm_skip_bx_reg): New function.
5213 (arm_skip_stub): Call arm_skip_bx_reg.
5214
5215 2014-06-23 Don Breazeal <donb@codesourcery.com>
5216
5217 * MAINTAINERS: Add myself as write-after-approval maintainer.
5218
5219 2014-06-23 Pedro Alves <palves@redhat.com>
5220
5221 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5222 DR_CONTROL before setting DR0..DR3.
5223 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5224 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5225 bits of DR_CONTROL related to the debug register slot being
5226 disabled. If all slots are vacant, clear local slowdown as well,
5227 and assert DR_CONTROL is 0.
5228
5229 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5230
5231 * python/lib/gdb/command/xmethods.py
5232 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5233 current progspace only if the string "progspace" matches LOCUS_RE.
5234
5235 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5236
5237 Fix --with-system-readline with readline-6.3 patch 5.
5238 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5239 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5240 types.
5241
5242 2014-06-20 Tom Tromey <tromey@redhat.com>
5243
5244 * dwarf2read.c (dw2_get_real_path): Use correct type in
5245 OBSTACK_CALLOC.
5246 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5247
5248 2014-06-20 Gary Benson <gbenson@redhat.com>
5249
5250 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5251 * common/glibc_thread_db.h: Likewise.
5252 * common/i386-cpuid.h: Likewise.
5253 * common/i386-gcc-cpuid.h: Likewise.
5254 * common/linux-btrace.h: Likewise.
5255 * common/linux-osdata.h: Likewise.
5256 * common/linux-procfs.h: Likewise.
5257 * common/linux-ptrace.h: Likewise.
5258 * common/mips-linux-watch.h: Likewise.
5259 * common/linux-btrace.c: Moved to nat.
5260 * common/linux-osdata.c: Likewise.
5261 * common/linux-procfs.c: Likewise.
5262 * common/linux-ptrace.c: Likewise.
5263 * common/mips-linux-watch.c: Likewise.
5264 * nat/gdb_thread_db.h: Moved from common.
5265 * nat/glibc_thread_db.h: Likewise.
5266 * nat/i386-cpuid.h: Likewise.
5267 * nat/i386-gcc-cpuid.h: Likewise.
5268 * nat/linux-btrace.c: Likewise.
5269 * nat/linux-btrace.h: Likewise.
5270 * nat/linux-osdata.c: Likewise.
5271 * nat/linux-osdata.h: Likewise.
5272 * nat/linux-procfs.c: Likewise.
5273 * nat/linux-procfs.h: Likewise.
5274 * nat/linux-ptrace.c: Likewise.
5275 * nat/linux-ptrace.h: Likewise.
5276 * nat/mips-linux-watch.c: Likewise.
5277 * nat/mips-linux-watch.h: Likewise.
5278 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5279 (object file files): Reordered.
5280 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5281 of glibc_thread_db.h.
5282
5283 2014-06-20 Gary Benson <gbenson@redhat.com>
5284
5285 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5286 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5287 (i386_dr_low): Likewise.
5288 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5289 (i386_dr_low_set_addr): Likewise.
5290 (i386_dr_low_get_addr): Likewise.
5291 (i386_dr_low_can_set_control): Likewise.
5292 (i386_dr_low_set_control): Likewise.
5293 (i386_dr_low_get_control): Likewise.
5294 (i386_dr_low_get_status): Likewise.
5295 (i386_get_debug_register_length): Likewise.
5296 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5297 (i386_dr_low): Likewise.
5298 * nat/i386-dregs.c (i386-low.h): Remove include.
5299 (i386-nat.h): Likewise.
5300 (nat/i386-dregs.h): New include.
5301 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5302 (i386_dr_low_set_addr): Likewise.
5303 (i386_dr_low_get_addr): Likewise.
5304 (i386_dr_low_can_set_control): Likewise.
5305 (i386_dr_low_set_control): Likewise.
5306 (i386_dr_low_get_control): Likewise.
5307 (i386_dr_low_get_status): Likewise.
5308 (i386_get_debug_register_length): Likewise.
5309 (debug_hw_points): Likewise.
5310
5311 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5312
5313 * Makefile.in (SFILES): Add d-exp.y.
5314 (YYFILES): Add d-exp.c.
5315 (YYOBJ): Add d-exp.o.
5316 (local-maintainer-clean): Delete d-exp.c.
5317 * d-exp.y: New file.
5318 * d-lang.h (d_parse): New declaration.
5319 (d_error): New declaration.
5320 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5321 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5322 PREC_ORDER operators.
5323 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5324
5325 2014-06-19 Yao Qi <yao@codesourcery.com>
5326
5327 * gdbthread.h (any_running): Remove the declaration.
5328 * thread.c (any_running): Remove.
5329
5330 2014-06-19 Yao Qi <yao@codesourcery.com>
5331
5332 * gdbthread.h (struct thread_info) <state>: Change its type to
5333 'enum thread_state'. Update comments.
5334
5335 2014-06-19 Pedro Alves <palves@redhat.com>
5336
5337 * gdbthread.h (ALL_THREADS): Delete.
5338 (ALL_NON_EXITED_THREADS): New macro.
5339 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5340 instead of ALL_THREADS.
5341 * infrun.c (find_thread_needs_step_over)
5342 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5343 instead of ALL_THREADS.
5344 * record-btrace.c (record_btrace_open)
5345 (record_btrace_stop_recording, record_btrace_close)
5346 (record_btrace_is_replaying, record_btrace_resume)
5347 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5348 * remote.c (append_pending_thread_resumptions): Likewise.
5349 * thread.c (thread_apply_all_command): Likewise.
5350
5351 2014-06-19 Gary Benson <gbenson@redhat.com>
5352
5353 * i386-nat.c (i386_stopped_by_watchpoint):
5354 Use i386_dr_stopped_by_watchpoint.
5355 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5356 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5357
5358 2014-06-19 Gary Benson <gbenson@redhat.com>
5359
5360 * nat/i386-dregs.c: New file.
5361 * Makefile.in (i386-dregs.o): New rule.
5362 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5363 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5364 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5365 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5366 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5367 * config/i386/go32.mh (NATDEPFILES): Likewise.
5368 * config/i386/linux.mh (NATDEPFILES): Likewise.
5369 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5370 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5371 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5372 * i386-nat.h (debug_hw_points): New declaration.
5373 * i386-nat.c (breakpoint.h): Remove include.
5374 (command.h): Likewise.
5375 (target.h): Likewise.
5376 (gdb_assert.h): Likewise.
5377 (debug_hw_points): Made nonstatic.
5378 (debug_printf): Now in i386-dregs.c.
5379 (TARGET_HAS_DR_LEN_8): Likewise.
5380 (DR_CONTROL_SHIFT): Likewise.
5381 (DR_CONTROL_SIZE): Likewise.
5382 (DR_RW_EXECUTE): Likewise.
5383 (DR_RW_WRITE): Likewise.
5384 (DR_RW_READ): Likewise.
5385 (DR_RW_IORW): Likewise.
5386 (DR_LEN_1): Likewise.
5387 (DR_LEN_2): Likewise.
5388 (DR_LEN_4): Likewise.
5389 (DR_LEN_8): Likewise.
5390 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5391 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5392 (DR_ENABLE_SIZE): Likewise.
5393 (DR_LOCAL_SLOWDOWN): Likewise.
5394 (DR_GLOBAL_SLOWDOWN): Likewise.
5395 (DR_CONTROL_RESERVED): Likewise.
5396 (I386_DR_CONTROL_MASK): Likewise.
5397 (I386_DR_VACANT): Likewise.
5398 (I386_DR_LOCAL_ENABLE): Likewise.
5399 (I386_DR_GLOBAL_ENABLE): Likewise.
5400 (I386_DR_DISABLE): Likewise.
5401 (I386_DR_SET_RW_LEN): Likewise.
5402 (I386_DR_GET_RW_LEN): Likewise.
5403 (I386_DR_WATCH_HIT): Likewise.
5404 (i386_wp_op_t): Likewise.
5405 (i386_show_dr): Likewise.
5406 (i386_length_and_rw_bits): Likewise.
5407 (i386_insert_aligned_watchpoint): Likewise.
5408 (i386_remove_aligned_watchpoint): Likewise.
5409 (i386_handle_nonaligned_watchpoint): Likewise.
5410 (i386_update_inferior_debug_regs): Likewise.
5411 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5412 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5413 (i386_region_ok_for_watchpoint):
5414 Use i386_dr_region_ok_for_watchpoint.
5415 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5416
5417 2014-06-19 Gary Benson <gbenson@redhat.com>
5418
5419 * i386-nat.c (i386_insert_hw_breakpoint): Use
5420 i386_insert_watchpoint.
5421 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5422
5423 2014-06-19 Gary Benson <gbenson@redhat.com>
5424
5425 * i386-nat.c (i386_dr_show): Renamed to
5426 i386_show_dr and made static. All uses updated.
5427 (i386_dr_length_and_rw_bits): Renamed to
5428 i386_length_and_rw_bits and made static.
5429 All uses updated.
5430 (i386_dr_insert_aligned_watchpoint): Renamed to
5431 i386_insert_aligned_watchpoint and made static.
5432 All uses updated.
5433 (i386_dr_remove_aligned_watchpoint): Renamed to
5434 i386_remove_aligned_watchpoint and made static.
5435 All uses updated.
5436 (i386_dr_update_inferior_debug_regs): Renamed to
5437 i386_update_inferior_debug_regs and made static.
5438 All uses updated.
5439 * nat/i386-dregs.h (i386_dr_show): Removed.
5440 (i386_dr_length_and_rw_bits): Likewise.
5441 (i386_dr_insert_aligned_watchpoint): Likewise.
5442 (i386_dr_remove_aligned_watchpoint): Likewise.
5443 (i386_dr_update_inferior_debug_regs): Likewise.
5444
5445 2014-06-19 Gary Benson <gbenson@redhat.com>
5446
5447 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5448 * configure: Regenerate.
5449 * config.in: Likewise.
5450 * main.c (signal.h): New include.
5451 (setup_alternate_signal_stack): New function.
5452 (captured_main): Call the above.
5453 * cp-support.c (signal.h): New include.
5454 (catch_demangler_crashes): New flag.
5455 (SIGJMP_BUF): New define.
5456 (SIGSETJMP): Likewise.
5457 (SIGLONGJMP): Likewise.
5458 (gdb_demangle_jmp_buf): New static global.
5459 (gdb_demangle_attempt_core_dump): Likewise.
5460 (gdb_demangle_signal_handler): New function.
5461 (gdb_demangle): If catch_demangler_crashes is set, install the
5462 above signal handler before calling bfd_demangle, and restore
5463 the original signal handler afterwards. Display the offending
5464 symbol and call demangler_warning the first time a segmentation
5465 fault is caught.
5466 (_initialize_cp_support): New maint set/show command.
5467
5468 2014-06-19 Gary Benson <gbenson@redhat.com>
5469
5470 * utils.h (resource_limit_kind): New enum.
5471 (can_dump_core): New declaration.
5472 (warn_cant_dump_core): Likewise.
5473 (dump_core): Likewise.
5474 * utils.c (dump_core): Made nonstatic. Added new
5475 parameter "limit_kind".
5476 (can_dump_core): Made nonstatic. Moved printing code to...
5477 (warn_cant_dump_core): New function.
5478 (can_dump_core_warn): Likewise.
5479 (internal_vproblem): Replace calls to can_dump_core with
5480 calls to can_dump_core_warn. Supply new argument to each.
5481
5482 2014-06-19 Gary Benson <gbenson@redhat.com>
5483
5484 * utils.h (demangler_vwarning): New declaration.
5485 (demangler_warning): Likewise.
5486 * utils.c (struct internal_problem)
5487 <user_settable_should_quit>: New field.
5488 <user_settable_should_dump_core>: Likewise
5489 (internal_error_problem): Add values for above new fields.
5490 (internal_warning_problem): Likewise.
5491 (demangler_warning_problem): New static global.
5492 (demangler_vwarning): New function.
5493 (demangler_warning): Likewise.
5494 (add_internal_problem_command): Selectively add commands.
5495 (_initialize_utils): New internal problem command.
5496 * maint.c (maintenance_demangler_warning): New function.
5497 (_initialize_maint_cmds): New command.
5498
5499 2014-06-18 Tom Tromey <tromey@redhat.com>
5500
5501 * f-valprint.c (info_common_command_for_block): Update.
5502 * symtab.h (struct general_symbol_info) <common_block>: Now
5503 const.
5504
5505 2014-06-18 Tom Tromey <tromey@redhat.com>
5506
5507 * symtab.h (struct symtab) <blockvector>: Now const.
5508 * ada-lang.c (ada_add_global_exceptions): Update.
5509 * buildsym.c (augment_type_symtab): Update.
5510 * dwarf2read.c (dw2_lookup_symbol): Update.
5511 * jit.c (finalize_symtab): Update.
5512 * jv-lang.c (add_class_symtab_symbol): Update.
5513 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5514 Update.
5515 * objfiles.c (objfile_relocate1): Update.
5516 * psymtab.c (lookup_symbol_aux_psymtabs)
5517 (maintenance_check_psymtabs): Update.
5518 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5519 Update.
5520 * spu-tdep.c (spu_catch_start): Update.
5521 * symmisc.c (dump_symtab_1): Update.
5522 * symtab.c (lookup_global_symbol_from_objfile)
5523 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5524 (basic_lookup_transparent_type_quick)
5525 (basic_lookup_transparent_type, find_pc_sect_symtab)
5526 (find_pc_sect_line, search_symbols): Update.
5527 * block.c (find_block_in_blockvector): Make "bl" const.
5528 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5529 const.
5530 (blockvector_contains_pc): Make "bv" const.
5531 (block_for_pc_sect): Update.
5532 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5533 (blockvector_contains_pc): Update.
5534 * breakpoint.c (resolve_sal_pc): Update.
5535 * inline-frame.c (block_starting_point_at): Update.
5536
5537 2014-06-18 Tom Tromey <tromey@redhat.com>
5538
5539 * completer.c (complete_line): Make "line_buffer" const.
5540 * completer.h (complete_line): Update.
5541
5542 2014-06-18 Tom Tromey <tromey@redhat.com>
5543
5544 * symtab.c (add_macro_name): Remove unneeded cast.
5545
5546 2014-06-18 Tom Tromey <tromey@redhat.com>
5547
5548 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5549 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5550
5551 2014-06-18 Tom Tromey <tromey@redhat.com>
5552
5553 * probe.c (info_probes_for_ops): Make "arg" const.
5554 * probe.h (info_probes_for_ops): Update.
5555
5556 2014-06-18 Tom Tromey <tromey@redhat.com>
5557
5558 * varobj.c (varobj_create): Update.
5559 * valops.c (value_of_this): Update.
5560 * tracepoint.c (add_local_symbols, scope_info): Update.
5561 * symtab.h (struct general_symbol_info) <block>: Now const.
5562 * symtab.c (skip_prologue_sal)
5563 (default_make_symbol_completion_list_break_on)
5564 (skip_prologue_using_sal): Update.
5565 * stack.h (iterate_over_block_locals)
5566 (iterate_over_block_local_vars): Update.
5567 * stack.c (print_frame_args): Update.
5568 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5569 parameter const.
5570 (get_selected_block): Make return type const.
5571 * python/py-frame.c (frapy_block): Update.
5572 * python/py-block.c (gdbpy_block_for_pc): Update.
5573 * p-exp.y (%union) <bval>: Now const.
5574 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5575 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5576 * m2-exp.y (%union) <bval>: Now const.
5577 * linespec.c (get_current_search_block): Make return type const.
5578 (create_sals_line_offset, find_label_symbols): Update.
5579 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5580 Update.
5581 (block_starting_point_at): Make "block" const.
5582 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5583 (check_exception_resume): Update.
5584 * guile/scm-frame.c (gdbscm_frame_block): Update.
5585 * guile/scm-block.c (gdbscm_lookup_block): Update.
5586 * frame.h (get_frame_block): Update.
5587 (get_selected_block): Make return type const.
5588 * frame.c (frame_id_inner): Update.
5589 * f-valprint.c (info_common_command_for_block)
5590 (info_common_command): Update.
5591 * dwarf2loc.c (dwarf2_find_location_expression)
5592 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5593 (locexpr_describe_location_piece): Update.
5594 * c-exp.y (%union) <bval>: Now const.
5595 * breakpoint.c (resolve_sal_pc): Update.
5596 * blockframe.c (get_frame_block):Make return type const.
5597 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5598 (block_innermost_frame): Update.
5599 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5600 (block_for_pc, block_for_pc_sect): Update.
5601 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5602 'pblock' const.
5603 (block_for_pc_sect, block_for_pc): Make return type const.
5604 * ax-gdb.c (gen_expr): Update.
5605 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5606 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5607 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5608 (ada_read_var_value): Update.
5609 * ada-exp.y (struct name_info) <block>: Now const.
5610 (%union): Likewise.
5611 (block_lookup): Constify.
5612
5613 2014-06-18 Gary Benson <gbenson@redhat.com>
5614
5615 * nat/i386-dregs.h: New file.
5616 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5617 * i386-nat.h (i386-dregs.h): New include.
5618 (DR_FIRSTADDR): Now in i386-dregs.h.
5619 (DR_LASTADDR): Likewise.
5620 (DR_NADDR): Likewise.
5621 (DR_STATUS): Likewise.
5622 (DR_CONTROL): Likewise.
5623 (i386_debug_reg_state): Likewise.
5624 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5625
5626 2014-06-18 Don Breazeal <donb@codesourcery.com>
5627
5628 * breakpoint.c (set_longjmp_breakpoint): Call
5629 momentary_breakpoint_from_master with additional argument.
5630 (set_longjmp_breakpoint_for_call_dummy): Call
5631 momentary_breakpoint_from_master with additional argument.
5632 (set_std_terminate_breakpoint): Call
5633 momentary_breakpoint_from_master with additional argument.
5634 (momentary_breakpoint_from_master): Add argument to function
5635 definition and use it to initialize structure member flag.
5636 (clone_momentary_breakpoint): Call
5637 momentary_breakpoint_from_master with additional argument.
5638 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5639 member flags set in momentary_breakpoint_from_master.
5640
5641 2014-06-18 Gary Benson <gbenson@redhat.com>
5642
5643 * i386-nat.c (i386_show_dr): Renamed to
5644 i386_dr_show and made nonstatic. All uses updated.
5645 (i386_length_and_rw_bits): Renamed to
5646 i386_dr_length_and_rw_bits and made nonstatic.
5647 All uses updated.
5648 (i386_insert_aligned_watchpoint): Renamed to
5649 i386_dr_insert_aligned_watchpoint and made nonstatic.
5650 All uses updated.
5651 (i386_remove_aligned_watchpoint): Renamed to
5652 i386_dr_remove_aligned_watchpoint and made nonstatic.
5653 All uses updated.
5654 (i386_update_inferior_debug_regs): Renamed to
5655 i386_dr_update_inferior_debug_regs and made nonstatic.
5656 All uses updated.
5657
5658 2014-06-18 Gary Benson <gbenson@redhat.com>
5659
5660 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5661 (i386_dr_low_can_set_control): Likewise.
5662 (i386_dr_low_set_addr): Likewise.
5663 (i386_dr_low_set_control): Likewise.
5664 (i386_dr_low_get_addr): Likewise.
5665 (i386_dr_low_get_status): Likewise.
5666 (i386_dr_low_get_control): Likewise.
5667 (i386_insert_aligned_watchpoint): Use new macros.
5668 (i386_update_inferior_debug_regs): Likewise.
5669 (i386_stopped_data_address): Likewise.
5670
5671 2014-06-18 Gary Benson <gbenson@redhat.com>
5672
5673 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5674 New parameter. All uses updated.
5675
5676 2014-06-18 Gary Benson <gbenson@redhat.com>
5677
5678 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5679 All uses updated.
5680
5681 2014-06-18 Gary Benson <gbenson@redhat.com>
5682
5683 * i386-nat.c (debug_printf): New macro.
5684 (i386_get_debug_register_length): Likewise.
5685 (TARGET_HAS_DR_LEN_8): Use above macro.
5686 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5687 and printf_unfiltered. Use phex to format values.
5688
5689 2014-06-18 Gary Benson <gbenson@redhat.com>
5690
5691 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5692 Make const.
5693
5694 2014-06-18 Gary Benson <gbenson@redhat.com>
5695
5696 * i386-nat.c: Comment changes.
5697
5698 2014-06-18 Gary Benson <gbenson@redhat.com>
5699
5700 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5701
5702 2014-06-18 Gary Benson <gbenson@redhat.com>
5703
5704 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5705 (i386_insert_aligned_watchpoint): Likewise.
5706 (i386_remove_aligned_watchpoint): Likewise.
5707 (i386_handle_nonaligned_watchpoint): Likewise.
5708
5709 2014-06-18 Gary Benson <gbenson@redhat.com>
5710
5711 * i386-nat.c: Whitespace changes.
5712
5713 2014-06-17 Samuel Bronson <naesten@gmail.com>
5714
5715 * MAINTAINERS: Update Roland McGrath's email address.
5716 Thanks to Sergio Durigan Junior for pointing out that he left
5717 Red Hat a while ago, and giving me a current address.
5718
5719 2014-06-17 Tom Tromey <tromey@redhat.com>
5720
5721 * utils.h (savestring): Remove declaration.
5722
5723 2014-06-17 Tom Tromey <tromey@redhat.com>
5724
5725 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5726
5727 2014-06-16 Keith Seitz <keiths@redhat.com>
5728
5729 PR mi/15863
5730 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5731 to update the varobj if inferior_ptid is null_ptid.
5732
5733 2014-06-16 Tom Tromey <tromey@redhat.com>
5734
5735 * target.h (struct target_ops) <to_info_proc>: Make parameter
5736 const.
5737 (target_info_proc): Update.
5738 * target.c (target_info_proc): Make "args" const.
5739 * procfs.c (procfs_info_proc): Update.
5740 * linux-tdep.c (linux_info_proc): Update.
5741 (linux_core_info_proc_mappings): Make "args" const.
5742 (linux_core_info_proc): Update.
5743 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5744 * gdbarch.c: Rebuild.
5745 * gdbarch.h: Rebuild.
5746 * corelow.c (core_info_proc): Update.
5747
5748 2014-06-16 Tom Tromey <tromey@redhat.com>
5749
5750 * target.h (struct target_ops) <to_disconnect>: Make parameter
5751 const.
5752 (target_disconnect): Update.
5753 * target.c (target_disconnect): Make "args" const.
5754 * target-delegates.c: Rebuild.
5755 * remote.c (remote_disconnect): Update.
5756 * record.h (record_disconnect): Update.
5757 * record.c (record_disconnect): Update.
5758 * inf-child.c (inf_child_disconnect): Update.
5759
5760 2014-06-16 Tom Tromey <tromey@redhat.com>
5761
5762 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5763 * target.c (debug_to_rcmd, default_rcmd): Update.
5764 * target-delegates.c: Rebuild.
5765 * remote.c (remote_rcmd): Update.
5766 * monitor.c (monitor_rcmd): Update.
5767
5768 2014-06-16 Pedro Alves <palves@redhat.com>
5769
5770 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5771 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5772 have OBJF_SHARED set.
5773 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5774 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5775 instead of OBJF_USERLOADED.
5776 * objfiles.h (OBJF_SHARED): Update comment.
5777 (userloaded_objfile_contains_address_p): Rename to ...
5778 (shared_objfile_contains_address_p): ... this, and update
5779 comments.
5780 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5781 new objfile.
5782 (remove_symbol_file_command): Skip objfiles that don't have
5783 OBJF_SHARED set.
5784
5785 2014-06-16 Tom Tromey <tromey@redhat.com>
5786
5787 * minsyms.h (prim_record_minimal_symbol)
5788 (prim_record_minimal_symbol_and_info): Update comments.
5789
5790 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5791
5792 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5793 or --without-guile, according to how GDB was built.
5794
5795 2014-06-13 Tom Tromey <tromey@redhat.com>
5796
5797 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5798 to help_list.
5799 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5800 to help_list.
5801 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5802 help_list.
5803 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5804 help_list.Pass all_commands, not -1, to help_list.
5805 * cli/cli-dump.c (dump_command, append_command)
5806 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5807 (binary_dump_command, binary_append_command): Pass all_commands,
5808 not -1, to help_list.
5809 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5810 -1, to help_list.
5811 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5812 -1, to help_list.
5813 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5814 help_list.
5815 * top.c (set_history): Pass all_commands, not -1, to help_list.
5816 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5817 all_commands, not -1, to help_list.
5818 * symfile.c (overlay_command): Pass all_commands, not -1, to
5819 help_list.
5820 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5821 help_list.
5822 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5823 help_list.
5824 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5825 -1, to help_list.
5826 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5827 not -1, to help_list.
5828 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5829 not -1, to help_list.
5830 * maint.c (maintenance_command, maintenance_info_command)
5831 (maintenance_print_command, maintenance_set_cmd): Pass
5832 all_commands, not -1, to help_list.
5833 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5834 help_list.
5835 * language.c (set_check): Pass all_commands, not -1, to help_list.
5836 * infcmd.c (unset_command): Pass all_commands, not -1, to
5837 help_list.
5838 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5839 help_list.
5840 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5841 help_list.
5842 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5843 help_list.
5844 * breakpoint.c (save_command): Pass all_commands, not -1, to
5845 help_list.
5846 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5847 all_commands, not -1, to help_list.
5848
5849 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5850
5851 * regcache.c (struct register_to_invalidate): New structure.
5852 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5853 functions.
5854 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5855
5856 2014-06-12 Yao Qi <yao@codesourcery.com>
5857
5858 * varobj.c (varobj_get_num_children): Call
5859 varobj_is_dynamic_p.
5860 (varobj_list_children): Likewise.
5861 (varobj_update): Likewise. Update comments.
5862
5863 2014-06-12 Yao Qi <yao@codesourcery.com>
5864
5865 * varobj.c (varobj_pretty_printed_p): Rename to ...
5866 (varobj_is_dynamic_p): ... this. New function.
5867 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5868 (varobj_is_dynamic_p): Declare.
5869 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5870 (mi_print_value_p, varobj_update_one): Likewise.
5871
5872 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5873 Yao Qi <yao@codesourcery.com>
5874
5875 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5876 (varobj_get_iterator): Wrap up code for pretty-printer by
5877 "#if HAVE_PYTHON" and "#endif".
5878 (update_dynamic_varobj_children): Likewise.
5879
5880 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5881 Yao Qi <yao@codesourcery.com>
5882
5883 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5884 gdb_python_initialized is false. Move some code from varobj.c.
5885 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5886 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5887 (struct varobj_item): Moved to varobj-iter.h".
5888 (varobj_clear_saved_item): New function.
5889 (update_dynamic_varobj_children): Move python-related code to
5890 py-varobj.c.
5891 (free_variable): Call varobj_clear_saved_item and
5892 varobj_iter_delete.
5893
5894 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5895 Yao Qi <yao@codesourcery.com>
5896
5897 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5898 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5899 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5900 (py-varobj.o): New rule.
5901 * python/py-varobj.c: New file.
5902 * python/python-internal.h (py_varobj_get_iterator): Declare.
5903 * varobj-iter.h: New file.
5904 * varobj.c: Include "varobj-iter.h"
5905 (struct varobj) <child_iter>: Change its type from "PyObject *"
5906 to "struct varobj_iter *".
5907 <saved_item>: Likewise.
5908 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5909 [HAVE_PYTHON] (varobj_get_iterator): New function.
5910 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5911 python-specific code to python/py-varobj.c.
5912 (install_visualizer): Call varobj_iter_delete instead of
5913 Py_XDECREF.
5914 * varobj.h (varobj_ensure_python_env): Declare.
5915
5916 2014-06-12 Yao Qi <yao@codesourcery.com>
5917
5918 * varobj.c (struct varobj_item): New structure.
5919 (create_child_with_value): Update declaration.
5920 (varobj_add_child): Replace arguments 'name' and 'value' with
5921 'item'. All callers updated.
5922 (install_dynamic_child): Likewise.
5923 (update_dynamic_varobj_children): Likewise.
5924 (varobj_add_child): Likewise.
5925 (create_child_with_value): Likewise.
5926
5927 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5928
5929 * NEWS: Create a new section for the next release branch.
5930 Rename the section of the current branch, now that it has
5931 been cut.
5932
5933 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5934
5935 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5936 * version.in: Bump version to 7.8.50.DATE-cvs.
5937
5938 2014-06-11 Pedro Alves <palves@redhat.com>
5939
5940 PR remote/17028
5941 * ser-mingw.c (net_windows_socket_check_pending): New function.
5942 (net_windows_select_thread): Ignore spurious wakeups. Use
5943 net_windows_socket_check_pending.
5944 (net_windows_wait_handle): Check for pending events with
5945 ioctlsocket, through net_windows_socket_check_pending, instead of
5946 checking the socket's event.
5947
5948 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5949
5950 * python/python-internal.h (gdb_PyObject_GetAttrString)
5951 (gdb_PyObject_HasAttrString): New inline function definitions.
5952 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5953 char * of the second argument to PyObject_GetAttrString.
5954
5955 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5956
5957 * serial.c (serial_write): Fix index of character to be printed
5958 in call to serial_logchar when serial debug traces are enabled.
5959
5960 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5961
5962 * gdbtypes (resolve_dynamic_range): Add function description.
5963
5964 2014-06-09 Pedro Alves <palves@redhat.com>
5965
5966 * linux-nat.c (linux_child_follow_fork): Initialize status with
5967 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5968 inner block. Only pass the signal to PTRACE_DETACH if in pass
5969 state.
5970
5971 2014-06-09 Gary Benson <gbenson@redhat.com>
5972
5973 * common/signals.c (gdb_signal_from_host): Reorder to separate
5974 the always-available ANSI-standard signals from the signals that
5975 require checking.
5976 (do_gdb_signal_to_host): Likewise.
5977 * proc-events.c (signal_table): Likewise.
5978
5979 2014-06-08 Hui Zhu <hui@codesourcery.com>
5980
5981 * common/linux-ptrace.c (linux_disable_event_reporting): New
5982 function.
5983 * common/linux-ptrace.h (linux_disable_event_reporting): New
5984 declaration.
5985 * linux-nat.c (linux_child_follow_fork): Do a single step before
5986 detach.
5987
5988 2014-06-07 Keith Seitz <keiths@redhat.com>
5989
5990 Revert:
5991 PR c++/16253
5992 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5993 from symbol_matches_domain in symtab.c. All local callers
5994 of symbol_matches_domain updated.
5995 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5996 search STRUCT_DOMAIN.
5997 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5998 independently. standard_lookup will do that automatically.
5999 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6000 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6001 (cp_lookup_symbol_in_namespace): Likewise.
6002 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6003 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6004 may return a STRUCT_DOMAIN match.
6005 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6006 * cp-support.c: Include language.h.
6007 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6008 VAR_DOMAIN.
6009 * psymtab.c (match_partial_symbol): Compare the requested
6010 domain with the symbol's domain directly.
6011 (lookup_partial_symbol): Likewise.
6012 * symtab.c (lookup_symbol_in_language): Explain when/why
6013 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6014 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6015 appropriate languages.
6016 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6017 and moved to ada-lang.c
6018 (lookup_block_symbol): Explain that this function only returns
6019 symbol matching the requested DOMAIN.
6020 Compare the requested domain with the symbol's domain directly.
6021 (iterate_over_symbols): Compare the requested domain with the
6022 symbol's domain directly.
6023 * symtab.h (symbol_matches_domain): Remove.
6024
6025 2014-06-06 Doug Evans <xdje42@gmail.com>
6026
6027 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6028 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6029 (gdbscm_guile_version_is_at_least): Declare.
6030 (gdbscm_scm_string_to_int): Declare.
6031 * guile/guile.c (gdbscm_guile_major_version): New global.
6032 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6033 (guile_datadir): New static global.
6034 (gdbscm_guile_data_directory): New function.
6035 (initialize_scheme_side): Update.
6036 (misc_guile_functions): Add guile-data-directory.
6037 (initialize_gdb_module): Fetch guile version number.
6038 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6039 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6040 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6041 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6042 comments.
6043 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6044 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6045 * guile/scm-value.c (gdbscm_value_to_string): Only call
6046 scm_port_conversion_strategy if Guile version >= 2.0.6.
6047
6048 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6049
6050 * main.c (print_gdb_help): Add -q and --silent.
6051
6052 2014-06-06 Gary Benson <gbenson@redhat.com>
6053
6054 * common/signals.c: Remove preprocessor conditionals for
6055 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6056 SIGSEGV and SIGTERM.
6057 * proc-events.c: Likewise.
6058
6059 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6060
6061 * symfile.c (symfile_free_objfile): Remove restriction to
6062 OBJF_USERLOADED.
6063 * symfile-mem.c (symbol_file_add_from_memory): Call
6064 add_target_sections_of_objfile.
6065
6066 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6067
6068 * guile/scm-value.c (gdbscm_history_append_x): Use
6069 'vlscm_get_value_smob_arg_unsafe' instead of
6070 'vlscm_scm_to_value'.
6071
6072 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6073
6074 PR mi/15806
6075 * utils.c (printchar): Don't escape at all if quoter is NUL.
6076 Update function documentation to clarify effect of parameter
6077 QUOTER.
6078 * remote.c (escape_buffer): Pass '\\' as the quoter to
6079 fputstrn_unfiltered.
6080 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6081 generate the output.
6082 (mi_solib_unloaded): Same.
6083
6084 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6085
6086 * development.sh: Delete.
6087 * Makefile.in (config.status): Adjust dependency on development.sh.
6088 * configure.ac: Adjust development.sh source call.
6089 * configure: Regenerate.
6090
6091 2014-06-04 Doug Evans <xdje42@gmail.com>
6092
6093 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6094 is_scheme_bkpt, spec.
6095 (bpscm_make_breakpoint_smob): Initialize new members.
6096 (gdbscm_create_breakpoint_x): Split into two ...
6097 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6098 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6099 (scheme_function breakpoint_functions): Update.
6100 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6101 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6102 register-breakpoint!.
6103
6104 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6105
6106 PR server/17023
6107 * mem-break.c (z_type_supported): Return zero if
6108 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6109
6110 2014-06-04 Tom Tromey <tromey@redhat.com>
6111
6112 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6113 value_from_contents_and_address_unresolved.
6114 (ada_template_to_fixed_record_type_1): Likewise.
6115 (ada_which_variant_applies): Likewise.
6116 * value.h (value_from_contents_and_address_unresolved): Declare.
6117 * value.c (value_from_contents_and_address_unresolved): New
6118 function.
6119 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6120 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6121 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6122
6123 2014-06-04 Tom Tromey <tromey@redhat.com>
6124
6125 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6126
6127 2014-06-04 Tom Tromey <tromey@redhat.com>
6128
6129 * procfs.c (procfs_attach): Make "args" const.
6130 * windows-nat.c (windows_attach): Make "args" const.
6131 * nto-procfs.c (procfs_attach): Make "args" const.
6132 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6133 * go32-nat.c (go32_attach): Make "args" const.
6134 * gnu-nat.c (gnu_attach): Make "args" const.
6135 * darwin-nat.c (darwin_attach): Make "args" const.
6136 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6137 * linux-nat.c (linux_nat_attach): Make "args" const.
6138 * remote.c (extended_remote_attach_1, extended_remote_attach):
6139 Make "args" const.
6140 * target.h (struct target_ops) <to_attach>: Make "args" const.
6141 (find_default_attach): Likewise.
6142 * utils.c (parse_pid_to_attach): Make "args" const.
6143 * utils.h (parse_pid_to_attach): Update.
6144
6145 2014-06-04 Tom Tromey <tromey@redhat.com>
6146
6147 * target-delegates.c: Rebuild.
6148 * target.c (default_thread_address_space): New function.
6149 (target_thread_address_space): Simplify.
6150 * target.h (struct target_ops) <to_thread_address_space>: Add
6151 TARGET_DEFAULT_FUNC.
6152
6153 2014-06-04 Doug Evans <xdje42@gmail.com>
6154
6155 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6156
6157 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6158
6159 * record-btrace.c: Include event-loop.h and inf-loop.h.
6160 (record_btrace_resume_exec_dir)
6161 (record_btrace_async_inferior_event_handler)
6162 (record_btrace_handle_async_inferior_event): New.
6163 (record_btrace_open): Create async event handler.
6164 (record_btrace_close): Delete async event handler.
6165 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6166 Mark async event handler.
6167 (record_btrace_execution_direction): New.
6168 (init_record_btrace_ops): Initialize to_execution_direction.
6169
6170 2014-06-03 Doug Evans <xdje42@gmail.com>
6171
6172 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6173 (gdbscm_make_parameter): Ditto.
6174
6175 2014-06-03 Doug Evans <dje@google.com>
6176
6177 * exec.c (exec_close_1): Call clear_section_table instead of
6178 resize_section_table.
6179 (clear_section_table): New function.
6180 (resize_section_table): Make static. Rename arg num_added to
6181 adjustment.
6182 * exec.h (clear_section_table): Declare.
6183 (resize_section_table): Delete.
6184 * progspace.c (release_program_space): Call clear_section_table
6185 instead of resize_section_table.
6186
6187 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6188
6189 * NEWS (Python Scripting): Add entry about the new xmethods
6190 feature.
6191
6192 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6193
6194 * python/py-xmethods.c: New file.
6195 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6196 (objfpy_dealloc): XDECREF on the new xmethods field.
6197 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6198 field.
6199 (objfpy_get_xmethods): New function.
6200 (objfile_getset): New entry 'xmethods'.
6201 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6202 (pspy_dealloc): XDECREF on the new xmethods field.
6203 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6204 field.
6205 (pspy_get_xmethods): New function.
6206 (pspace_getset): New entry 'xmethods'.
6207 * python/python-internal.h: Add declarations for new functions.
6208 * python/python.c (_initialize_python): Invoke
6209 gdbpy_initialize_xmethods.
6210 * python/lib/gdb/__init__.py (xmethods): New
6211 attribute.
6212 * python/lib/gdb/xmethod.py: New file.
6213 * python/lib/gdb/command/xmethods.py: New file.
6214
6215 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6216
6217 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6218 best match method returned by find_overload_match is an xmethod.
6219 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6220 the best matching operator returned by find_overload_match is an
6221 xmethod.
6222 * valops.c: #include "extension.h".
6223 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6224 Return void. The list of matching source methods is returned in
6225 "fn_list" and a vector of matching debug method workers is
6226 returned in "xm_worker_vec". Update all callers.
6227 (value_find_oload_method_list): Likewise.
6228 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6229 non-NULL, then the index of the best matching method in this
6230 vector is returned. Update all callers.
6231 (find_overload_match): Include xmethods while performing overload
6232 resolution.
6233
6234 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6235
6236 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6237 * extension-priv.h (struct extension_language_ops): Add the
6238 xmethod interface.
6239 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6240 get_matching_xmethod_workers, get_xmethod_argtypes,
6241 invoke_xmethod, free_xmethod_worker,
6242 free_xmethod_worker_vec): New functions.
6243 * extension.h: #include "common/vec.h".
6244 New function declarations.
6245 (struct xmethod_worker): New struct.
6246 (VEC (xmethod_worker_ptr)): New vector type.
6247 (xmethod_worker_ptr): New typedef.
6248 (xmethod_worker_vec): Likewise.
6249 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6250 builtin_type.
6251 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6252 (struct builtin_type): New field "xmethod".
6253 * valarith.c (value_ptradd): Assert that the value argument is not
6254 lval_xcallable.
6255 * valops.c (value_must_coerce_to_target): Return 0 for
6256 lval_xcallable values.
6257 * value.c (struct value): New field XM_WORKER in the field
6258 LOCATION.
6259 (value_address, value_raw_address): Return 0 for lval_xcallable
6260 values.
6261 (set_value_address): Assert that the value is not an
6262 lval_xcallable.
6263 (value_free): Free the associated xmethod worker when freeing
6264 lval_xcallable values.
6265 (set_value_component_location): Assert that the WHOLE value is not
6266 lval_xcallable.
6267 (value_of_xmethod, call_xmethod): New functions.
6268 * value.h: Declare "struct xmethod_worker".
6269 Declare new functions value_of_xmethod, call_xmethod.
6270
6271 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6272 Pedro Alves <palves@redhat.com>
6273
6274 PR breakpoints/17000
6275 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6276 New function, extracted from software_breakpoint_inserted_here_p.
6277 (software_breakpoint_inserted_here_p): Replace factored out code
6278 by call to find_non_raw_software_breakpoint_inserted_here.
6279 (bp_target_info_copy_insertion_state): New function.
6280 (bkpt_insert_location): Handle the case of a single-step
6281 breakpoint already inserted at the same address.
6282 (bkpt_remove_location): Handle the case of a single-step
6283 breakpoint still inserted at the same address.
6284 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6285 breakpoint already inserted at the same address.
6286 (deprecated_remove_raw_breakpoint): Handle the case of a
6287 non-raw breakpoint still inserted at the same address.
6288 (find_single_step_breakpoint): New function, extracted from
6289 single_step_breakpoint_inserted_here_p.
6290 (find_single_step_breakpoint): New function,
6291 factored out from single_step_breakpoint_inserted_here_p.
6292 (single_step_breakpoint_inserted_here_p): Reimplement.
6293
6294 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6295
6296 Pushed by Joel Brobecker <brobecker@adacore.com>
6297 * source.c (show_substitute_path_command): Fix display of matching
6298 substitution rules.
6299
6300 2014-06-03 Gary Benson <gbenson@redhat.com>
6301
6302 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6303
6304 2014-06-02 Doug Evans <xdje42@gmail.com>
6305
6306 Add parameter support for Guile.
6307 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6308 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6309 (scm-param.o): New rule.
6310 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6311 (gdbscm_misc_error): Declare.
6312 (gdbscm_canonicalize_command_name): Declare.
6313 (gdbscm_scm_to_host_string): Declare.
6314 (gdbscm_scm_from_host_string): Declare.
6315 (gdbscm_initialize_parameters): Declare.
6316 * guile/guile.c (initialize_gdb_module): Call
6317 gdbscm_initialize_parameters.
6318 * guile/lib/gdb.scm: Export parameter symbols.
6319 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6320 cmdscm_canonicalize_name and made public. All callers updated.
6321 * guile/scm-exception.c (gdbscm_misc_error): New function.
6322 * guile/scm-param.c: New file.
6323 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6324 (gdbscm_scm_to_host_string): New function.
6325 (gdbscm_scm_from_host_string): New function.
6326 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6327
6328 2014-06-02 Doug Evans <xdje42@gmail.com>
6329
6330 Add command support for Guile.
6331 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6332 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6333 (scm-cmd.o): New rule.
6334 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6335 (gdbscm_user_error_p): Declare.
6336 (gdbscm_parse_command_name): Declare.
6337 (gdbscm_valid_command_class_p): Declare.
6338 (gdbscm_initialize_commands): Declare.
6339 * guile/guile.c (initialize_gdb_module): Call
6340 gdbscm_initialize_commands.
6341 * guile/lib/gdb.scm: Export command symbols.
6342 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6343 (throw-user-error): New function.
6344 * guile/scm-cmd.c: New file.
6345 * guile/scm-exception.c (user_error_symbol): New static global.
6346 (gdbscm_user_error_p): New function.
6347 (gdbscm_initialize_exceptions): Set user_error_symbol.
6348 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6349
6350 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6351
6352 * top.c (command_loop): Handle comments here...
6353 (command_line_input): ... not here.
6354
6355 2014-06-02 Doug Evans <xdje42@gmail.com>
6356
6357 Add progspace support for Guile.
6358 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6359 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6360 (scm-progspace.o): New rule.
6361 * guile/guile-internal.h (pspace_smob): New typedef.
6362 (psscm_pspace_smob_pretty_printers): Declare.
6363 (psscm_pspace_smob_from_pspace): Declare.
6364 (psscm_scm_from_pspace): Declare.
6365 * guile/guile.c (initialize_gdb_module): Call
6366 gdbscm_initialize_pspaces.
6367 * guile/lib/gdb.scm: Export progspace symbols.
6368 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6369 support.
6370 (append-pretty-printer!): Ditto.
6371 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6372 Implement.
6373 * guile/scm-progspace.c: New file.
6374
6375 2014-06-03 Alan Modra <amodra@gmail.com>
6376
6377 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6378 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6379
6380 2014-06-02 Doug Evans <dje@google.com>
6381
6382 Add support for skeletonless type units.
6383 * dwarf2read.c (struct dwarf2_per_objfile): New member
6384 n_allocated_type_units.
6385 (struct dwarf2_per_objfile) <tu_stats>: New member
6386 nr_all_type_units_reallocs.
6387 (create_signatured_type_table_from_index): Initialize
6388 n_allocated_type_units
6389 (create_all_type_units): Ditto.
6390 (add_type_unit): Move up in file. New arg slot.
6391 All callers updated. Increase space for all_type_units more
6392 efficiently.
6393 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6394 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6395 (lookup_dwp_signatured_type): Ditto.
6396 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6397 All callers updated.
6398 (build_type_psymtabs_1): Leave type_unit_groups as
6399 NULL if no TUs present.
6400 (print_tu_stats): New function.
6401 (process_skeletonless_type_unit): New function.
6402 (process_dwo_file_for_skeletonless_type_units): New
6403 function.
6404 (process_skeletonless_type_units): New function.
6405 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6406 Call print tu_stats if debugging enabled.
6407
6408 2014-06-02 Pedro Alves <palves@redhat.com>
6409
6410 * breakpoint.c (build_target_command_list): Don't build a command
6411 list if we have any duplicate location that isn't a dprintf.
6412
6413 2014-06-02 Pedro Alves <palves@redhat.com>
6414
6415 * breakpoint.c (dprintf_breakpoint_hit): New function.
6416 (initialize_breakpoint_ops): Install it as dprintf's
6417 breakpoint_hit method.
6418
6419 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6420
6421 * source.c (substitute_path_rule_matches): Simplify using
6422 filename_ncmp instead of FILENAME_CMP.
6423
6424 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6425
6426 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6427
6428 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6429
6430 * configure.ac: When Guile is available, check for the
6431 availability of 'scm_new_smob'.
6432 * configure, config.h.in: Regenerate.
6433 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6434 function.
6435
6436 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6437
6438 * frame.c (struct frame_info): Add stop_string field.
6439 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6440 (get_prev_frame_always): Old content moved into
6441 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6442 TRY_CATCH, handle MEMORY_ERROR exceptions.
6443 (frame_stop_reason_string): New function definition.
6444 * frame.h (unwind_stop_reason_to_string): Extend comment to
6445 mention frame_stop_reason_string.
6446 (frame_stop_reason_string): New function declaration.
6447 * stack.c (frame_info): Switch to frame_stop_reason_string.
6448 (backtrace_command_1): Switch to frame_stop_reason_string.
6449 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6450 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6451 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6452
6453 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6454
6455 * frame.c (frame_stop_reason_string): Rename to ...
6456 (unwind_stop_reason_to_string): this.
6457 * frame.h (frame_stop_reason_string): Rename to ...
6458 (unwind_stop_reason_to_string): this.
6459 * stack.c (frame_info): Update call to frame_stop_reason_string.
6460 (backtrace_command_1): Likewise.
6461 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6462 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6463
6464 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6465
6466 * frame.c (remove_prev_frame): New function.
6467 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6468 remove_prev_frame.
6469
6470 2014-05-29 Pedro Alves <palves@redhat.com>
6471
6472 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6473 and make it const. When a single-step decays to a continue,
6474 clear 'step', not 'hw_step'. Pass whether the caller wanted
6475 to step to user_visible_resume_ptid, not what we ask the
6476 target to do.
6477
6478 2014-05-29 Pedro Alves <palves@redhat.com>
6479
6480 * infrun.c (process_event_stop_test, handle_step_into_function)
6481 (handle_step_into_function_backward): Adjust.
6482 Don't set the even thread's stop_step and call stop_waiting before
6483 calling end_stepping_range. Instead do that ...
6484 (end_stepping_range): ... here. Take an ecs pointer parameter.
6485
6486 2014-05-29 Pedro Alves <palves@redhat.com>
6487
6488 * infrun.c (stop_stepping): Rename to ...
6489 (stop_waiting): ... this.
6490 (proceed): Update comment.
6491 (process_event_stop_test, handle_inferior_event)
6492 (handle_signal_stop, handle_step_into_function)
6493 (handle_step_into_function_backward): Update.
6494
6495 2014-05-29 Pedro Alves <palves@redhat.com>
6496
6497 * infcall.c (run_inferior_call): Don't check whether the current
6498 thread is running after the proceed call.
6499
6500 2014-05-29 Pedro Alves <palves@redhat.com>
6501 Tom Tromey <tromey@redhat.com>
6502
6503 * NEWS: Mention "maint set target-async", "set mi-async", and that
6504 background execution commands are now always available.
6505 * target.h (target_async_permitted): Update comment.
6506 * target.c (target_async_permitted, target_async_permitted_1):
6507 Default to 1.
6508 (set_target_async_command): Rename to ...
6509 (maint_set_target_async_command): ... this.
6510 (show_target_async_command): Rename to ...
6511 (maint_show_target_async_command): ... this.
6512 (_initialize_target): Adjust.
6513 * infcmd.c (prepare_execution_command): Make extern.
6514 * inferior.h (prepare_execution_command): Declare.
6515 * infrun.c (set_observer_mode): Leave target async alone.
6516 * mi/mi-interp.c (mi_interpreter_init): Install
6517 mi_on_sync_execution_done as sync_execution_done observer.
6518 (mi_on_sync_execution_done): New function.
6519 (mi_execute_command_input_handler): Don't print the prompt if we
6520 just started a synchronous command with an async target.
6521 (mi_on_resume): Check sync_execution before printing prompt.
6522 * mi/mi-main.h (mi_async_p): Declare.
6523 * mi/mi-main.c: Include gdbcmd.h.
6524 (mi_async_p): New function.
6525 (mi_async, mi_async_1): New globals.
6526 (set_mi_async_command, show_mi_async_command, mi_async): New
6527 functions.
6528 (exec_continue): Call prepare_execution_command.
6529 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6530 (mi_execute_async_cli_command): Use mi_async_p.
6531 (_initialize_mi_main): Install "set mi-async". Make
6532 "target-async" a deprecated alias.
6533
6534 2014-05-29 Pedro Alves <palves@redhat.com>
6535
6536 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6537 (_initialize_cli_interp): Adjust.
6538 * event-loop.c: Include "observer.h".
6539 (start_event_loop): Notify 'command_error' observers instead of
6540 calling display_gdb_prompt. Remove FIXME comment.
6541 * event-top.c (display_gdb_prompt): Remove call into the
6542 interpreters.
6543 * inf-loop.c: Include "observer.h".
6544 (inferior_event_handler): Notify 'command_error' observers instead
6545 of calling display_gdb_prompt.
6546 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6547 observers instead of calling display_gdb_prompt.
6548 * interps.c (interp_set): Don't call display_gdb_prompt.
6549 (current_interp_display_prompt_p): Delete.
6550 * interps.h (interp_prompt_p): Delete declaration.
6551 (interp_prompt_p_ftype): Delete.
6552 (struct interp_procs) <prompt_proc_p>: Delete field.
6553 (current_interp_display_prompt_p): Delete declaration.
6554 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6555 (_initialize_mi_interp): Adjust.
6556 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6557 'command_error' observers.
6558 (tui_on_sync_execution_done, tui_on_command_error): New
6559 functions.
6560 (tui_display_prompt_p): Delete.
6561 (_initialize_tui_interp): Adjust.
6562
6563 2014-05-29 Pedro Alves <palves@redhat.com>
6564
6565 PR gdb/13860
6566 * cli/cli-interp.c: Include infrun.h and observer.h.
6567 (cli_uiout, cli_interp): New globals.
6568 (cli_on_signal_received, cli_on_end_stepping_range)
6569 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6570 functions.
6571 (cli_interpreter_init): Install them as 'end_stepping_range',
6572 'signal_received' 'signal_exited', 'exited' and 'no_history'
6573 observers.
6574 (_initialize_cli_interp): Remove cli_interp local.
6575 * infrun.c (handle_inferior_event): Call the several stop reason
6576 observers instead of printing the stop reason directly.
6577 (end_stepping_range): New function.
6578 (print_end_stepping_range_reason, print_signal_exited_reason)
6579 (print_exited_reason, print_signal_received_reason)
6580 (print_no_history_reason): Make static, and add an uiout
6581 parameter. Print to that instead of to CURRENT_UIOUT.
6582 * infrun.h (print_end_stepping_range_reason)
6583 (print_signal_exited_reason, print_exited_reason)
6584 (print_signal_received_reason print_no_history_reason): New
6585 declarations.
6586 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6587 'mi_uiout'.
6588 <cli_uiout>: New field.
6589 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6590 uiout for CLI output. Install 'signal_received',
6591 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6592 observers.
6593 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6594 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6595 (mi_on_no_history): New functions.
6596 (ui_out_free_cleanup): Delete function.
6597 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6598 instead use the one already stored in the MI interpreter data.
6599 (mi_ui_out): Adjust.
6600 * tui/tui-interp.c: Include infrun.h and observer.h.
6601 (tui_interp): New global.
6602 (tui_on_signal_received, tui_on_end_stepping_range)
6603 (tui_on_signal_exited, tui_on_exited)
6604 (tui_on_no_history): New functions.
6605 (tui_init): Install them as 'end_stepping_range',
6606 'signal_received' 'signal_exited', 'exited' and 'no_history'
6607 observers.
6608 (_initialize_tui_interp): Delete tui_interp local.
6609
6610 2014-05-29 Pedro Alves <palves@redhat.com>
6611
6612 PR gdb/15713
6613 * linux-nat.c (linux_nat_resume_callback): Rename the second
6614 parameter to 'except'. Skip LP if it points to EXCEPT.
6615 (linux_nat_resume): Don't mark the event lwp as not stopped
6616 before resuming sibling lwps. Instead ask
6617 linux_nat_resume_callback to skip the event lwp. Mark it as not
6618 stopped after actually resuming it.
6619 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6620 resuming it.
6621 (wait_lwp): Mark the lwp as stopped here.
6622 (stop_wait_callback): Mark the lwp as not stopped right after
6623 resuming it. Don't mark lwps as stopped here.
6624 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6625 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6626
6627 2014-05-29 Pedro Alves <palves@redhat.com>
6628
6629 PR PR15693
6630 * infrun.c (resume): Determine how much to resume depending on
6631 whether the caller wanted a step, not whether we can hardware step
6632 the target. Mark all threads that we intend to run as running,
6633 unless we're calling an inferior function.
6634 (normal_stop): If the thread is running an infcall, don't finish
6635 thread state.
6636 * target.c (target_resume): Don't mark threads as running here.
6637
6638 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6639
6640 * serial.c (_initialize_serial): Remove support for
6641 the "set remotebaud" and "show remotebaud" commands.
6642 * NEWS: Add entry documenting the removal of that command.
6643
6644 2014-05-28 Yao Qi <yao@codesourcery.com>
6645
6646 * charset.c: Fix typo in comments.
6647
6648 2014-05-27 Gary Benson <gbenson@redhat.com>
6649
6650 * utils.c (internal_vproblem): Prompt for a bug report.
6651
6652 2014-05-26 Andy Wingo <wingo@igalia.com>
6653
6654 * guile/scm-arch.c (arscm_mark_arch_smob):
6655 * guile/scm-block.c (bkscm_mark_block_smob)
6656 (bkscm_mark_block_syms_progress_smob):
6657 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6658 * guile/scm-exception.c (exscm_mark_exception_smob):
6659 * guile/scm-frame.c (frscm_mark_frame_smob):
6660 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6661 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6662 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6663 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6664 (ppscm_mark_pretty_printer_worker_smob):
6665 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6666 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6667 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6668 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6669 mark functions.
6670 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6671 function.
6672
6673 2014-05-26 Andy Wingo <wingo@igalia.com>
6674 Doug Evans <xdje42@gmail.com>
6675
6676 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6677 empty_base_class. All uses updated.
6678 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6679 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6680 Adapt all callers.
6681 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6682 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6683 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6684 (gdbscm_gsmob_has_property_p, add_property_name)
6685 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6686 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6687 (gdb-object-has-property?, gdb-object-properties): Remove.
6688 (gdb-object-kind): Renamed from gsmob-kind.
6689
6690 2014-05-26 Andy Wingo <wingo@igalia.com>
6691
6692 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6693 * configure: Regenerate.
6694
6695 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6696
6697 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6698
6699 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6700
6701 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6702 (replay_memory_access_read_only, replay_memory_access_read_write)
6703 (replay_memory_access_types, replay_memory_access)
6704 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6705 (cmd_set_record_btrace, cmd_show_record_btrace)
6706 (cmd_show_replay_memory_access): New.
6707 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6708 (record_btrace_remove_breakpoint): Replace
6709 record_btrace_allow_memory_access with replay_memory_access.
6710 (_initialize_record_btrace): Add commands.
6711 * NEWS: Announce it.
6712
6713 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6714
6715 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6716
6717 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6718
6719 * MAINTAINERS (Write After Approval): Move self back from
6720 paper trail.
6721
6722 2014-05-22 Pedro Alves <palves@redhat.com>
6723
6724 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6725 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6726 (disable_randomization, enum exec_direction_kind)
6727 (execution_direction, stop_registers, start_remote)
6728 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6729 (wait_for_inferior, normal_stop, get_last_target_status)
6730 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6731 (insert_step_resume_breakpoint_at_sal)
6732 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6733 (set_step_info, print_stop_event, signal_stop_state)
6734 (signal_print_state, signal_pass_state, signal_stop_update)
6735 (signal_print_update, signal_pass_update)
6736 (update_signals_program_target, clear_exit_convenience_vars)
6737 (displaced_step_dump_bytes, update_observer_mode)
6738 (signal_catch_update, gdb_signal_from_command): Move
6739 declarations ...
6740 * infrun.h: ... to this new file.
6741 * amd64-tdep.c: Include infrun.h.
6742 * annotate.c: Include infrun.h.
6743 * arch-utils.c: Include infrun.h.
6744 * arm-linux-tdep.c: Include infrun.h.
6745 * arm-tdep.c: Include infrun.h.
6746 * break-catch-sig.c: Include infrun.h.
6747 * breakpoint.c: Include infrun.h.
6748 * common/agent.c: Include infrun.h instead of inferior.h.
6749 * corelow.c: Include infrun.h.
6750 * event-top.c: Include infrun.h.
6751 * go32-nat.c: Include infrun.h.
6752 * i386-tdep.c: Include infrun.h.
6753 * inf-loop.c: Include infrun.h.
6754 * infcall.c: Include infrun.h.
6755 * infcmd.c: Include infrun.h.
6756 * infrun.c: Include infrun.h.
6757 * linux-fork.c: Include infrun.h.
6758 * linux-nat.c: Include infrun.h.
6759 * linux-thread-db.c: Include infrun.h.
6760 * monitor.c: Include infrun.h.
6761 * nto-tdep.c: Include infrun.h.
6762 * procfs.c: Include infrun.h.
6763 * record-btrace.c: Include infrun.h.
6764 * record-full.c: Include infrun.h.
6765 * remote-m32r-sdi.c: Include infrun.h.
6766 * remote-mips.c: Include infrun.h.
6767 * remote-notif.c: Include infrun.h.
6768 * remote-sim.c: Include infrun.h.
6769 * remote.c: Include infrun.h.
6770 * reverse.c: Include infrun.h.
6771 * rs6000-tdep.c: Include infrun.h.
6772 * s390-linux-tdep.c: Include infrun.h.
6773 * solib-irix.c: Include infrun.h.
6774 * solib-osf.c: Include infrun.h.
6775 * solib-svr4.c: Include infrun.h.
6776 * target.c: Include infrun.h.
6777 * top.c: Include infrun.h.
6778 * windows-nat.c: Include infrun.h.
6779 * mi/mi-interp.c: Include infrun.h.
6780 * mi/mi-main.c: Include infrun.h.
6781 * python/py-threadevent.c: Include infrun.h.
6782
6783 2014-05-22 Pedro Alves <palves@redhat.com>
6784
6785 * infrun.c (handle_inferior_event): Store the exit code for
6786 --return-child-result here, instead of ...
6787 (print_exited_reason): ... here.
6788
6789 2014-05-21 Pedro Alves <palves@redhat.com>
6790
6791 PR gdb/13860
6792 * gdbthread.h (struct thread_control_state): New field
6793 `command_interp'.
6794 * infrun.c (follow_fork): Copy the new thread control field to the
6795 child fork thread.
6796 (clear_proceed_status_thread): Clear the new thread control field.
6797 (proceed): Set the new thread control field.
6798 * interps.h (command_interp): Declare.
6799 * interps.c (command_interpreter): New global.
6800 (command_interp): New function.
6801 (interp_exec): Set `command_interpreter' while here.
6802 * cli-out.c (cli_uiout_dtor): New function.
6803 (cli_ui_out_impl): Install it.
6804 * mi/mi-interp.c: Include cli-out.h.
6805 (mi_cmd_interpreter_exec): Add comment.
6806 (restore_current_uiout_cleanup): New function.
6807 (ui_out_free_cleanup): New function.
6808 (mi_on_normal_stop): If finishing an execution command started by
6809 a CLI command, or any kind of breakpoint-like event triggered,
6810 print the stop event to the output (CLI) stream.
6811 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6812
6813 2014-05-21 Pedro Alves <palves@redhat.com>
6814
6815 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6816 current source line having changed.
6817 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6818 * infrun.c (normal_stop): Adjust call to
6819 set_current_sal_from_frame.
6820 * source.c (clear_lines_listed_range): New function.
6821 (set_current_source_symtab_and_line, identify_source_line): Clear
6822 the lines listed range.
6823 (line_info): Handle the first "info line" after the current source
6824 line having changed.
6825 * stack.c (print_stack_frame): Remove center handling.
6826 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6827 center sal.line.
6828
6829 2014-05-21 Pedro Alves <palves@redhat.com>
6830
6831 * inf-child.c (inf_child_mourn_inferior): New function.
6832 * inf-child.h (inf_child_mourn_inferior): New declaration.
6833 * darwin-nat.c (darwin_mourn_inferior): Use
6834 inf_child_mourn_inferior.
6835 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6836 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6837 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6838 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6839 * windows-nat.c (windows_mourn_inferior): Likewise.
6840
6841 2014-05-21 Doug Evans <xdje42@gmail.com>
6842
6843 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6844
6845 2014-05-21 Doug Evans <xdje42@gmail.com>
6846
6847 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6848 (gdbscm_out_of_range_error): Ditto.
6849 (gdbscm_memory_error): Ditto.
6850 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6851 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6852 (gdbscm_out_of_range_error): Update.
6853 (gdbscm_memory_error): Update.
6854 (gdbscm_scm_to_target_string_unsafe): Delete.
6855
6856 2014-05-21 Pedro Alves <palves@redhat.com>
6857
6858 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6859 globals.
6860 (inf_child_open_target): New function.
6861 (inf_child_open): Use inf_child_open_target to push the target
6862 instead of erroring out.
6863 (inf_child_disconnect, inf_child_close)
6864 (inf_child_maybe_unpush_target): New functions.
6865 (inf_child_target): Install inf_child_disconnect and
6866 inf_child_close. Store a pointer to the returned object.
6867 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6868 declarations.
6869 * target.c (auto_connect_native_target): New global.
6870 (show_default_run_target): New function.
6871 (find_default_run_target): Return NULL if automatically connecting
6872 to the native target is disabled.
6873 (_initialize_target): Install set/show auto-connect-native-target.
6874 * NEWS: Mention "set auto-connect-native-target", and "target
6875 native".
6876 * linux-nat.c (super_close): New global.
6877 (linux_nat_close): Call super_close.
6878 (linux_nat_add_target): Store a pointer to the base class's
6879 to_close method.
6880 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6881 inf_child_maybe_unpush.
6882 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6883 already pushed.
6884 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6885 the inferior. Use inf_child_maybe_unpush_target.
6886 (inf_ttrace_attach): Don't push the target if it is already
6887 pushed.
6888 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6889 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6890 after mourning the inferior. Use inf_child_maybe_unpush_target.
6891 (darwin_attach_pid): Don't push the target if it is already
6892 pushed.
6893 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6894 mourning the inferior. Use inf_child_maybe_unpush_target.
6895 (gnu_detach): Use inf_child_maybe_unpush_target.
6896 * go32-nat.c (go32_create_inferior): Don't push the target if it
6897 is already pushed.
6898 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6899 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6900 (procfs_open): Rename to ...
6901 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6902 comments. Can target_preopen before changing node. Call
6903 inf_child_open_target to push the target explicitly.
6904 (procfs_attach): Don't push the target if it is already pushed.
6905 (procfs_detach): Use inf_child_maybe_unpush_target.
6906 (procfs_create_inferior): Don't push the target if it is already
6907 pushed.
6908 (nto_native_ops): New global.
6909 (procfs_open): Reimplement.
6910 (procfs_native_open): New function.
6911 (init_procfs_targets): Install procfs_native_open as to_open of
6912 "target native". Store a pointer to the "native" target in
6913 nto_native_ops.
6914 * procfs.c (procfs_attach): Don't push the target if it is already
6915 pushed.
6916 (procfs_detach): Use inf_child_maybe_unpush_target.
6917 (procfs_mourn_inferior): Only unpush the target after mourning the
6918 inferior. Use inf_child_maybe_unpush_target.
6919 (procfs_init_inferior): Don't push the target if it is already
6920 pushed.
6921 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6922 if it is already pushed.
6923
6924 2014-05-21 Pedro Alves <palves@redhat.com>
6925
6926 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6927 and "procfs" targets are now called "native" instead.
6928
6929 2014-05-21 Pedro Alves <palves@redhat.com>
6930
6931 * go32-nat.c (go32_open): Delete.
6932 (go32_target): Don't override the to_open method.
6933
6934 2014-05-21 Pedro Alves <palves@redhat.com>
6935
6936 * nto-procfs.c (procfs_can_run): New function.
6937 (nto_procfs_ops): New global.
6938 (init_procfs_targets): New, based on procfs_target. Install
6939 "target native" in addition to "target procfs".
6940 (_initialize_procfs): Call init_procfs_targets instead of adding
6941 the target here.
6942
6943 2014-05-21 Pedro Alves <palves@redhat.com>
6944
6945 * windows-nat.c (windows_target): Don't override to_shortname,
6946 to_longname or to_doc.
6947
6948 2014-05-21 Pedro Alves <palves@redhat.com>
6949
6950 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6951 to_doc.
6952
6953 2014-05-21 Pedro Alves <palves@redhat.com>
6954
6955 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6956 to_shortname, to_longname or to_doc.
6957
6958 2014-05-21 Pedro Alves <palves@redhat.com>
6959
6960 * go32-nat.c (go32_target): Don't override to_shortname,
6961 to_longname or to_doc.
6962
6963 2014-05-21 Pedro Alves <palves@redhat.com>
6964
6965 * inf-child.c (inf_child_open): Remove mention of "child".
6966 (inf_child_target): Rename target to "native" instead of "child".
6967
6968 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6969
6970 * Makefile.in (SFILES): Delete "regset.c".
6971 (COMMON_OBS): Delete "regset.o".
6972 * regset.c: Remove.
6973 * regset.h (regset_alloc): Delete prototype.
6974
6975 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6976
6977 * sparc-linux-tdep.c (sparc32_linux_gregset)
6978 (sparc32_linux_fpregset): New static regset structures.
6979 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6980 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6981 'fpregset' fields.
6982 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6983 (sparc64_linux_fpregset): New static regset structures.
6984 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6985 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6986 New static regset structures.
6987 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6988 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6989 New static regset structures.
6990 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6991 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6992 New static regset structures.
6993 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6994 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6995 New static regset structures.
6996 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6997
6998 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6999
7000 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7001 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7002 register maps ("regmaps") from "*regset" to "*regmap". Do this
7003 for all regmap types and variables.
7004 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7005 (sparc32_linux_supply_core_gregset)
7006 (sparc32_linux_collect_core_gregset)
7007 (sparc32_linux_supply_core_fpregset)
7008 (sparc32_linux_collect_core_fpregset): Likewise.
7009 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7010 (sparc_gregmap, sparc_fpregmap): ... these.
7011 (sparc_supply_gregset, sparc_collect_gregset)
7012 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7013 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7014 (_initialize_sparc_nat): Rename regmaps.
7015 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7016 (sparc_gregmap, sparc_fpregmap): ... these.
7017 (sparc_supply_gregset, sparc_collect_gregset)
7018 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7019 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7020 Rename macros to...
7021 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7022 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7023 Likewise.
7024 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7025 Rename to...
7026 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7027 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7028 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7029 regmaps.
7030 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7031 (sparc32_bsd_fpregset): Rename to...
7032 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7033 (sparc32_bsd_fpregmap): ... these.
7034 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7035 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7036 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7037 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7038 (struct sparc_gregmap, struct sparc_fpregmap)
7039 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7040 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7041 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7042 (sparc32_supply_regset, sparc32_collect_gregset)
7043 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7044 prototypes.
7045 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7046 (sparc64_linux_ptrace_gregmap): ... this.
7047 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7048 (_initialize_sparc64_linux_nat): Rename regmaps.
7049 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7050 (sparc64_linux_core_gregmap): ... this.
7051 (sparc64_linux_supply_core_gregset)
7052 (sparc64_linux_collect_core_gregset)
7053 (sparc64_linux_supply_core_fpregset)
7054 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7055 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7056 (sparc64_sol2_fpregset): Rename to...
7057 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7058 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7059 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7060 regmaps.
7061 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7062 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7063 (sparc64_bsd_fpregset): Rename to...
7064 (struct sparc_gregmap, sparc64_sol2_gregmap)
7065 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7066 (sparc64_bsd_fpregmap): ... these.
7067 (sparc64_supply_gregset, sparc64_collect_gregset)
7068 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7069 prototypes.
7070 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7071 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7072 (sparc64fbsd_gregmap): ... this.
7073 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7074 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7075 Rename regmaps.
7076 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7077 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7078 (sparc64nbsd_collect_fpregset): Likewise.
7079 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7080 (sparc64nbsd_gregmap): ... this.
7081 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7082 regmaps.
7083 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7084 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7085 (sparc64obsd_gregmap): ... this.
7086 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7087 regmaps.
7088 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7089 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7090 (sparc32nbsd_gregmap): ... this.
7091 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7092 regmaps.
7093
7094 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7095
7096 * score-tdep.c (score7_linux_gregset): New static regset
7097 structure.
7098 (score7_linux_regset_from_core_section): Remove dynamic regset
7099 allocation.
7100 (score_gdbarch_init): Drop allocation of tdep structure.
7101 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7102
7103 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7104
7105 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7106 regset structures.
7107 (am33_regset_from_core_section): Remove dynamic regset
7108 allocations.
7109
7110 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7111
7112 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7113 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7114 structures.
7115 (mips_linux_regset_from_core_section): Remove dynamic regset
7116 allocations.
7117 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7118 'gregset64', 'fpregset', and 'fpregset64'.
7119 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7120 deleted tdep fields.
7121
7122 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7123
7124 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7125 regset structures.
7126 (amd64_regset_from_core_section): Remove dynamic regset
7127 allocations.
7128 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7129 structure.
7130 (amd64obsd_regset_from_core_section): Remove dynamic regset
7131 allocation.
7132 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7133 Likewise.
7134 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7135 x86-common regset supply function.
7136 * i386-tdep.c (i386_collect_gregset): Make static.
7137 (i386_gregset): New global regset structure.
7138 (i386_fpregset, i386_xstateregset): New static regset structures.
7139 (i386_regset_from_core_section): Remove dynamic regset
7140 allocations.
7141 (i386_gdbarch_init): Remove initialization of tdep fields
7142 'gregset', 'fpregset', and 'xstateregset'.
7143 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7144 'fpregset', and 'xstateregset'.
7145 (i386_collect_gregset): Remove prototype.
7146 (i386_gregset): New declaration.
7147 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7148 structure.
7149 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7150 allocation.
7151
7152 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7153
7154 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7155 (arm_linux_vfpregset): New static regset structures.
7156 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7157 regset structures.
7158 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7159 and 'vfpregset' fields.
7160
7161 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7162
7163 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7164 (aarch64_linux_fpregset): New static regset structures.
7165 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7166 of regset structures.
7167 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7168 'fpregset' fields.
7169
7170 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7171
7172 * regset.h (struct regset): Remove gdbarch field.
7173 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7174 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7175 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7176 Likewise.
7177 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7178 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7179 (ppc32_linux_vsxregset): Likewise.
7180 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7181 via the regcache instead of the regset.
7182 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7183 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7184 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7185 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7186 Likewise.
7187
7188 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7189
7190 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7191 Constify structures.
7192 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7193 (alphanbsd_aout_gregset): Likewise.
7194 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7195 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7196 Likewise.
7197 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7198 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7199 Likewise.
7200 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7201 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7202 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7203 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7204 * m88k-tdep.c (m88k_gregset): Likewise.
7205 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7206 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7207 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7208 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7209 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7210 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7211 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7212 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7213 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7214 Likewise.
7215 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7216 * sh-tdep.h (sh_corefile_gregset): Likewise.
7217 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7218 * vax-tdep.c (vax_gregset): Likewise.
7219
7220 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7221
7222 Fix TLS access for -static -pthread.
7223 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7224 (try_thread_db_load_1): Initialize it.
7225 (thread_db_get_thread_local_address): Call it if LM is zero.
7226 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7227 * target.h (struct target_ops) (to_get_thread_local_address): Add
7228 load_module_addr comment.
7229
7230 2014-05-21 Pedro Alves <palves@redhat.com>
7231
7232 * dcache.c (dcache_read_memory_partial): If reading the cache line
7233 fails, fallback to reading just the memory the caller wanted.
7234
7235 2014-05-20 Doug Evans <dje@google.com>
7236
7237 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7238 instead of get_current_arch.
7239
7240 2014-05-20 Pedro Alves <palves@redhat.com>
7241
7242 * NEWS: Mention that compare-sections now works with all targets.
7243
7244 * remote.c (PACKET_qCRC): New enum value.
7245 (remote_verify_memory): Don't send qCRC if the target has no
7246 execution. Use packet_support/packet_ok. If the target doesn't
7247 support the qCRC packet, fallback to a deep memory copy.
7248 (compare_sections_command): Say "target image" instead of "remote
7249 executable".
7250 (_initialize_remote): Add PACKET_qCRC to the list of config
7251 packets that have no associated command. Extend comment.
7252 * target.c (simple_verify_memory, default_verify_memory): New
7253 function.
7254 * target.h (struct target_ops) <to_verify_memory>: Default to
7255 default_verify_memory.
7256 (simple_verify_memory): New declaration.
7257 * target-delegates.c: Regenerate.
7258
7259 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7260
7261 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7262
7263 2014-05-20 Hui Zhu <hui@codesourcery.com>
7264 Yao Qi <yao@codesourcery.com>
7265
7266 PR backtrace/16558
7267 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7268 and change address of sp and pc.
7269
7270 2014-05-19 Tom Tromey <tromey@redhat.com>
7271
7272 * gdbtypes.c (rank_function): Use XNEWVEC.
7273 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7274
7275 2014-05-19 Doug Evans <dje@google.com>
7276
7277 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7278 build_type_unit_groups and moved closer to only caller. Remove
7279 arguments. All references updated. Remove outdated .gdb_index
7280 comment.
7281 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7282 build_type_psymtabs_1.
7283
7284 2014-05-19 Doug Evans <dje@google.com>
7285
7286 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7287 n_type_unit_groups, all_type_unit_groups. All uses removed.
7288 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7289 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7290 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7291 (add_type_unit_group_to_table): Delete.
7292
7293 2014-05-19 Doug Evans <dje@google.com>
7294
7295 * eval.c (evaluate_subexp_standard): Add some comments.
7296
7297 2014-05-17 Doug Evans <xdje42@gmail.com>
7298
7299 * progspace.c (remove_program_space): Delete, unused.
7300 * progspace.h (remove_program_space): Ditto.
7301
7302 2014-05-17 Doug Evans <xdje42@gmail.com>
7303
7304 * inferior.c (prune_inferiors): Fix comment.
7305 (remove_inferior_command): Call prune_program_spaces.
7306
7307 2014-05-16 Doug Evans <dje@google.com>
7308
7309 New command line option -D.
7310 * NEWS: Mention it.
7311 * main.c (set_gdb_data_directory): New function.
7312 (captured_main): Recognize -D. Flag error for --data-directory "".
7313 Call set_gdb_data_directory.
7314 (print_gdb_help): Print --data-directory, -D.
7315 * main.h (set_gdb_data_directory): Declare.
7316 * top.c (staged_gdb_datadir): New static global.
7317 (set_gdb_datadir): Call set_gdb_data_directory
7318 (show_gdb_datadir): New function.
7319 (init_main): Update init of data-directory parameter.
7320
7321 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7322
7323 Import the "dirfd" gnulib module.
7324 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7325 * gnulib/aclocal.m4: Update.
7326 * gnulib/config.in: Update.
7327 * gnulib/configure: Update.
7328 * gnulib/import/Makefile.am: Update.
7329 * gnulib/import/Makefile.in: Update.
7330 * gnulib/import/dirfd.c: New.
7331 * gnulib/import/m4/dirfd.m4: New.
7332 * gnulib/import/m4/gnulib-cache.m4: Update.
7333 * gnulib/import/m4/gnulib-comp.m4: Update.
7334
7335 2014-05-16 Pierre Muller <muller@sourceware.org>
7336 Yao Qi <yao@codesourcery.com>
7337
7338 * valprint.c (print_wchar): Move the code on checking whether
7339 W is a printable wide char to the default branch of switch
7340 statement below. Call wchar_printable instead of gdb_iswprint.
7341
7342 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7343
7344 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7345 ldr.w and ldrd instructions.
7346
7347 2014-05-15 Doug Evans <dje@google.com>
7348
7349 * dwarf2read.c (read_structure_type): Delete outdated comments.
7350
7351 2014-05-14 Tom Tromey <tromey@redhat.com>
7352
7353 * macrocmd.c (print_macro_definition): Reindent.
7354
7355 2014-05-13 Doug Evans <xdje42@gmail.com>
7356
7357 * python/py-cmd.c (cmdpy_completer): Add comment.
7358 (completers): Make const.
7359
7360 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7361
7362 * infrun.c (resume): Remove should_resume (unused). Move up
7363 declaration of resume_ptid.
7364
7365 2014-05-13 Tom Tromey <tromey@redhat.com>
7366
7367 * language.h (unop_type_check): Remove.
7368 (binop_type_check): Don't declare.
7369
7370 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7371
7372 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7373 call to regcache_raw_collect.
7374
7375 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7376
7377 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7378 mi_console->quote as the quoting character.
7379
7380 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7381
7382 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7383
7384 2014-04-29 Tom Tromey <tromey@redhat.com>
7385
7386 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7387 "show debug varobj".
7388
7389 2014-05-07 Kyle McMartin <kyle@redhat.com>
7390
7391 Pushed by Joel Brobecker <brobecker@adacore.com>.
7392 * aarch64-tdep.c (aarch64_software_single_step): New function.
7393 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7394 with aarch64_software_single_step.
7395
7396 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7397
7398 GDB 7.7.1 released.
7399
7400 2014-05-05 Keith Seitz <keiths@redhat.com>
7401
7402 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7403 variable or history value is successfully parsed.
7404
7405 2014-05-05 Yao Qi <yao@codesourcery.com>
7406 Pedro Alves <palves@redhat.com>
7407
7408 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7409 address of blocks that intersects the requested range. Trim
7410 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7411 sections.
7412 * ctf.c (ctf_xfer_partial): Likewise.
7413
7414 2014-05-05 Yao Qi <yao@codesourcery.com>
7415
7416 * printcmd.c (display_command): Remove the check to
7417 target_has_execution.
7418
7419 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7420
7421 * ppcobsd-nat.c: Include "obsd-nat.h".
7422 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7423 add_target.
7424 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7425
7426 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7427
7428 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7429 and 16-bit signed and unsigned arguments. Update comment.
7430 (stap_parse_probe_arguments): Extend code to handle such
7431 arguments. Use warning instead of complaint to notify about
7432 unrecognized bitness.
7433
7434 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7435
7436 PR breakpoints/16889
7437 * stap-probe.c (stap_parse_probe_arguments): Simplify
7438 check for non-prefixed probes (i.e., probes whose
7439 arguments do not start with "N@"). Always set the
7440 argument type to a sane value.
7441
7442 2014-05-01 David Taylor <dtaylor@emc.com>
7443
7444 * remote.c (compare_sections_command): Add -r option to compare
7445 all loadable read-only sections.
7446
7447 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7448
7449 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7450 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7451 Update all callers.
7452 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7453 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7454 Remove unused CORE_ADDR argument. Update all callers.
7455
7456 2014-04-29 Pedro Alves <palves@redhat.com>
7457
7458 * remote.c (struct packet_config) <detect>: Extend comment.
7459 (add_packet_config_cmd): Don't set the config's detect or support
7460 fields here.
7461 (init_all_packet_configs): Also initialize the config's 'detect'
7462 field.
7463 (reset_all_packet_configs_support): New function.
7464 (remote_open_1): Call reset_all_packet_configs_support instead of
7465 init_all_packet_configs.
7466 (_initialize_remote): Initialize all packet configs. Assert that
7467 all packets have an associated command, except a few known
7468 outliers.
7469
7470 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7471
7472 * dwarf2read.c (read_subrange_type): Handle dynamic
7473 DW_AT_lower_bound attributes.
7474
7475 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7476
7477 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7478 dynamic bounds before computing its upper bound.
7479 (ada_discrete_type_low_bound): Same as above with the lower bound.
7480
7481 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7482
7483 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7484 range types. Adjust the array handling implementation to
7485 take advantage of this change.
7486 (resolve_dynamic_range): New function, mostly extracted from
7487 resolve_dynamic_bounds.
7488 (resolve_dynamic_array): New function, mostly extracted from
7489 resolve_dynamic_bounds.
7490 (resolve_dynamic_bounds): Delete.
7491 (resolve_dynamic_type): Reimplement. Add handling of
7492 TYPE_CODE_RANGE types.
7493
7494 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7495
7496 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7497 handling of parallel ___XA types.
7498
7499 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7500
7501 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7502 unnecessary second call to static_unwrap_type.
7503
7504 2014-04-27 Hui Zhu <hui@codesourcery.com>
7505
7506 * stack.c (print_frame_info): Call do_gdb_disassembly with
7507 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7508
7509 2014-04-26 Doug Evans <xdje42@gmail.com>
7510
7511 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7512
7513 2014-04-25 Pedro Alves <palves@redhat.com>
7514
7515 PR server/16255
7516 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7517 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7518 and newline from built string.
7519 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7520 (linux_ptrace_attach_fail_reason): ... this.
7521 * linux-nat.c (linux_nat_attach): Adjust to use
7522 linux_ptrace_attach_fail_reason.
7523
7524 2014-04-25 Pedro Alves <palves@redhat.com>
7525
7526 * remote.c (struct remote_state): Remove multi_process_aware,
7527 non_stop_aware, cond_tracepoints, cond_breakpoints,
7528 breakpoint_commands, fast_tracepoints, static_tracepoints,
7529 install_in_trace, disconnected_tracing,
7530 enable_disable_tracepoints, string_tracing, and
7531 augmented_libraries_svr4_read fields.
7532 (remote_multi_process_p): Move further below in the file.
7533 (struct packet_config): Add comments.
7534 (update_packet_config): Delete function.
7535 (show_packet_config_cmd): Use packet_config_support.
7536 (add_packet_config_cmd): Use NULL as set callback.
7537 (packet_ok): "set remote foo-packet"-style commands no longer
7538 change config->supported -- adjust.
7539 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7540 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7541 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7542 (PACKET_QNonStop, PACKET_multiprocess_feature)
7543 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7544 (PACKET_DisconnectedTracing_feature)
7545 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7546 (set_remote_protocol_packet_cmd): Delete function.
7547 (packet_config_support, packet_support): New functions.
7548 (set_remote_protocol_Z_packet_cmd): Don't call
7549 update_packet_config.
7550 (remote_query_attached, remote_pass_signals)
7551 (remote_program_signals, remote_threads_info)
7552 (remote_threads_extra_info, remote_start_remote): Use
7553 packet_support.
7554 (remote_start_remote): Use packet_config_support and
7555 packet_support.
7556 (init_all_packet_configs): Set all packets to unknown support,
7557 instead of calling update_packet_config.
7558 (remote_check_symbols): Use packet_support.
7559 (remote_supported_packet): Unconditionally set the packet config's
7560 support status.
7561 (remote_multi_process_feature, remote_non_stop_feature)
7562 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7563 (remote_breakpoint_commands_feature)
7564 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7565 (remote_install_in_trace_feature)
7566 (remote_disconnected_tracing_feature)
7567 (remote_enable_disable_tracepoint_feature)
7568 (remote_string_tracing_feature)
7569 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7570 (remote_protocol_features): Adjust to use remote_supported_packet
7571 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7572 "ConditionalTracepoints", "ConditionalBreakpoints",
7573 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7574 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7575 "EnableDisableTracepoints", and "tracenz".
7576 (remote_query_supported): Use packet_support.
7577 (remote_open_1): Adjust.
7578 (extended_remote_attach_1): Use packet_support. Switch on the
7579 result of packet_ok instead of checking whether the packet ended
7580 up disabled.
7581 (remote_vcont_resume): Use packet_support.
7582 (remote_resume, remote_stop_ns, fetch_register_using_p)
7583 (remote_prepare_to_store, store_register_using_P)
7584 (check_binary_download, remote_write_bytes): Use packet_support.
7585 (remote_vkill): Use packet_support. Switch on the result of
7586 packet_ok instead of checking whether the packet ended up
7587 disabled.
7588 (extended_remote_supports_disable_randomization): Use
7589 packet_support.
7590 (extended_remote_run): Switch on the result of packet_ok instead
7591 of checking whether the packet ended up disabled.
7592 (remote_insert_breakpoint, remote_remove_breakpoint)
7593 (remote_insert_watchpoint, remote_remove_watchpoint)
7594 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7595 packet_support.
7596 (remote_search_memory): Use packet_config_support.
7597 (remote_get_thread_local_address, remote_get_tib_address)
7598 (remote_hostio_send_command, remote_can_execute_reverse): Use
7599 packet_support.
7600 (remote_supports_cond_tracepoints)
7601 (remote_supports_cond_breakpoints)
7602 (remote_supports_fast_tracepoints)
7603 (remote_supports_static_tracepoints)
7604 (remote_supports_install_in_trace)
7605 (remote_supports_enable_disable_tracepoint)
7606 (remote_supports_string_tracing)
7607 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7608 the packet config says the feature is enabled or disabled.
7609 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7610 (remote_get_trace_status): Use packet_support.
7611 (remote_set_disconnected_tracing): Adjust to check whether the
7612 feature is enabled with packet_support.
7613 (remote_set_trace_buffer_size, remote_use_agent)
7614 (remote_can_use_agent, remote_supports_btrace): Use
7615 packet_support.
7616 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7617 Use packet_config_support.
7618 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7619 the packet config says the feature is enabled or disabled.
7620 (set_range_stepping): Use packet_support.
7621
7622 2014-04-25 Tom Tromey <tromey@redhat.com>
7623
7624 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7625 argument.
7626
7627 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7628
7629 * NEWS: Mention support for C99 variable length arrays.
7630
7631 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7632
7633 * ada-lang.c (standard_exc): Expand introductory comment.
7634
7635 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7636 Walfred Tedeschi <walfred.tedeschi@intel.com>
7637
7638 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7639 AVX512 registers.
7640 (amd64_linux_read_description): Add code to handle AVX512 xstate
7641 mask and return respective tdesc.
7642 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7643 and features/i386/x32-avx512-linux.c.
7644 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7645 (amd64_linux_core_read_description): Add code to handle AVX512
7646 xstate mask and return respective tdesc.
7647 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7648 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7649 calculation.
7650 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7651 (tdesc_amd64_avx512_linux): New prototype.
7652 (tdesc_x32_avx512_linux): Likewise.
7653 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7654 features/i386/x32-avx512.c.
7655 (amd64_ymm_avx512_names): New register names for pseudo
7656 registers YMM16-31.
7657 (amd64_ymmh_avx512_names): New register names for raw registers
7658 YMMH16-31.
7659 (amd64_k_names): New register names for K registers.
7660 (amd64_zmmh_names): New register names for ZMM raw registers.
7661 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7662 (amd64_xmm_avx512_names): New register names for XMM16-31
7663 registers.
7664 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7665 registers.
7666 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7667 if feature is present.
7668 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7669 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7670 (AMD64_NUM_REGS): Adjust to new number of registers.
7671 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7672 registers supplied via XSTATE by AVX512 registers.
7673 (i386_linux_read_description): Add case for AVX512.
7674 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7675 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7676 (i386_linux_core_read_description): Add case for AVX512.
7677 (i386_linux_init_abi): Install supported register note section
7678 for AVX512.
7679 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7680 AVX512.
7681 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7682 registers to be number of zmm7h + 1.
7683 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7684 * i386-tdep.c: Include features/i386/i386-avx512.c.
7685 (i386_zmm_names): Add ZMM pseudo register names array.
7686 (i386_zmmh_names): Add ZMM raw register names array.
7687 (i386_k_names): Add K raw register names array.
7688 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7689 registers. AVX512 has 16 more ZMM registers than there are YMM
7690 registers.
7691 (i386_zmmh_regnum_p): Add function to look up register number of
7692 ZMM raw registers.
7693 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7694 (i386_k_regnum_p): Likewise for K raw registers.
7695 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7696 registers added by AVX512.
7697 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7698 registers added by AVX512.
7699 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7700 added by AVX512.
7701 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7702 (i386_pseudo_register_name): Add ZMM pseudo registers.
7703 (i386_zmm_type): Construct and return vector registers type for ZMM
7704 registers.
7705 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7706 ZMM0-31 pseudo registers and K registers.
7707 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7708 and YMM16-31 registers from register cache.
7709 (i386_pseudo_register_write): Add code to write K, ZMM and
7710 YMM16-31 registers.
7711 (i386_register_reggroup_p): Add code to include/exclude AVX512
7712 registers in/from respective register groups.
7713 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7714 registers if feature is present in xcr0.
7715 (i386_gdbarch_init): Add code to initialize AVX512 feature
7716 variables in tdep structure, wire in pseudo registers and call
7717 initialize_tdesc_i386_avx512.
7718 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7719 variables.
7720 (i386_regnum): Add AVX512 registers.
7721 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7722 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7723 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7724 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7725 512 bits wide.
7726 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7727 (i386_ymm_avx512_regnum_p): Likewise.
7728 (i386_k_regnum_p): Likewise.
7729 (i386_zmm_regnum_p): Likewise.
7730 (i386_zmmh_regnum_p): Likewise.
7731 * i387-tdep.c : Update year in copyright notice.
7732 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7733 XSAVE buffer.
7734 (XSAVE_YMM_AVX512_ADDR): New macro.
7735 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7736 XSAVE buffer.
7737 (XSAVE_XMM_AVX512_ADDR): New macro.
7738 (xsave_avx512_k_offset): New table for K register offsets in
7739 XSAVE buffer.
7740 (XSAVE_AVX512_K_ADDR): New macro.
7741 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7742 in XSAVE buffer.
7743 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7744 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7745 buffer.
7746 (i387_collect_xsave): Add code to collect AVX512 registers from
7747 XSAVE buffer.
7748 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7749 of XMM16-31 registers.
7750 (I387_NUM_K_REGS): New define for number of K registers.
7751 (I387_K0_REGNUM): New define for K0 register number.
7752 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7753 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7754 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7755 registers.
7756 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7757 (I387_XMM16_REGNUM): New define for XMM16 register number.
7758 (I387_YMM0_REGNUM): New define for YMM0 register number.
7759 (I387_KEND_REGNUM): New define for last K register number.
7760 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7761 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7762 number.
7763 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7764 number.
7765 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7766 size.
7767 * features/Makefile: Add AVX512 related files.
7768 * features/i386/32bit-avx512.xml: New file.
7769 * features/i386/64bit-avx512.xml: Likewise.
7770 * features/i386/amd64-avx512-linux.c: Likewise.
7771 * features/i386/amd64-avx512-linux.xml: Likewise.
7772 * features/i386/amd64-avx512.c: Likewise.
7773 * features/i386/amd64-avx512.xml: Likewise.
7774 * features/i386/i386-avx512-linux.c: Likewise.
7775 * features/i386/i386-avx512-linux.xml: Likewise.
7776 * features/i386/i386-avx512.c: Likewise.
7777 * features/i386/i386-avx512.xml: Likewise.
7778 * features/i386/x32-avx512-linux.c: Likewise.
7779 * features/i386/x32-avx512-linux.xml: Likewise.
7780 * features/i386/x32-avx512.c: Likewise.
7781 * features/i386/x32-avx512.xml: Likewise.
7782 * regformats/i386/amd64-avx512-linux.dat: New file.
7783 * regformats/i386/amd64-avx512.dat: Likewise.
7784 * regformats/i386/i386-avx512-linux.dat: Likewise.
7785 * regformats/i386/i386-avx512.dat: Likewise.
7786 * regformats/i386/x32-avx512-linux.dat: Likewise.
7787 * regformats/i386/x32-avx512.dat: Likewise.
7788 * NEWS: Add note about new support for AVX512.
7789
7790
7791 2014-04-23 Pedro Alves <palves@redhat.com>
7792
7793 * breakpoint.c (insert_bp_location): Tolerate errors if the
7794 breakpoint is set in a user-loaded objfile.
7795 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7796 location is marked shlib_disabled. If the breakpoint is set in a
7797 user-loaded objfile is a GDB-side memory breakpoint, validate it
7798 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7799 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7800 flag.
7801 * mem-break.c (memory_validate_breakpoint): New function.
7802 * objfiles.c (userloaded_objfile_contains_address_p): New
7803 function.
7804 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7805 * target.h (memory_validate_breakpoint): New declaration.
7806
7807 2014-04-23 Pedro Alves <palves@redhat.com>
7808
7809 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7810 the breakpoint is set in a shared library, only suppress
7811 errors for software breakpoints, not hardware breakpoints.
7812
7813 2014-04-22 Pedro Alves <palves@redhat.com>
7814
7815 * infrun.c (schedlock_applies): New function, factored out from
7816 find_thread_needs_step_over.
7817 (find_thread_needs_step_over): Use it.
7818 (switch_back_to_stepped_thread): Always clear trap_expected if the
7819 step over is finished. Return early if scheduler locking applies.
7820 Look for the stepping thread and a potential step-over thread with
7821 a single loop.
7822 (currently_stepping_or_nexting_callback): Delete.
7823
7824 2014-04-22 Nick Clifton <nickc@redhat.com>
7825
7826 * NEWS: Mention that ARM sim now supports tracing.
7827
7828 2014-04-22 Yao Qi <yao@codesourcery.com>
7829
7830 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7831 to ...
7832 * tracefile.c (tracefile_fetch_registers): ... it. New
7833 function.
7834 * tracefile.h (tracefile_fetch_registers): Declare.
7835 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7836 tracefile_fetch_registers.
7837
7838 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7839
7840 PR gdb/14018
7841 * windows-nat.c (thread_rec): Don't display a warning when
7842 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7843 fails for any reason, set th->suspended to -1, so that we don't
7844 try to resume such a thread. Also, don't return NULL in these
7845 cases, to avoid completely ruin the session due to "PC register is
7846 not available" error.
7847 (do_windows_fetch_inferior_registers): Check errors in
7848 GetThreadContext call.
7849 (windows_continue): Accept an additional argument KILLED; if not
7850 zero, ignore errors in the SetThreadContext call, since the
7851 inferior was killed and is shutting down.
7852 (windows_resume, get_windows_debug_event)
7853 (windows_create_inferior, windows_mourn_inferior)
7854 (windows_kill_inferior): All callers of windows_continue changed
7855 to adjust to its new calling sequence.
7856
7857 2014-04-19 Yao Qi <yao@codesourcery.com>
7858
7859 * ctf.c (ctf_open): Call post_create_inferior.
7860
7861 2014-04-19 Yao Qi <yao@codesourcery.com>
7862
7863 * ctf.c (handle_id): New static variable.
7864 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7865 value. Get the declaration of event "register" and get length
7866 of field "contents".
7867
7868 2014-04-19 Yao Qi <yao@codesourcery.com>
7869
7870 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7871
7872 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7873
7874 * valops.c (oload_method_static): Remove unnecessary argument
7875 METHOD. Update all callers.
7876
7877 2014-04-18 Pedro alves <palves@redhat.com>
7878 Tom Tromey <tromey@redhat.com>
7879
7880 PR backtrace/15558
7881 * frame.c (get_prev_frame_1): Rename to ...
7882 (get_prev_frame_always): ... this, and make extern. Adjust.
7883 (skip_artificial_frames): Use get_prev_frame_always.
7884 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7885 (get_frame_unwind_stop_reason): Adjust to rename.
7886 * frame.h (get_prev_frame_always): Declare.
7887 * inline-frame.c: Include frame.h.
7888 (inline_frame_this_id): Use get_prev_frame_always.
7889
7890 2014-04-18 Tristan Gingold <gingold@adacore.com>
7891
7892 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7893 code by using bfd_mach_o_get_base_address.
7894
7895 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7896
7897 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7898 (spu_ax_pseudo_register_collect): New function.
7899 (spu_ax_pseudo_register_push_stack): Likewise.
7900 (spu_dwarf_reg_to_regnum): Likewise.
7901 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7902
7903 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7904
7905 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7906 Replace FRAME argument with FRAME_ID.
7907 * gdbarch.c, gdbarch.h: Regenerate.
7908 * findvar.c (default_value_from_register): Add GDBARCH argument;
7909 replace FRAME by FRAME_ID. No longer call get_frame_id.
7910 (value_from_register): Update call to gdbarch_value_from_register.
7911 * value.h (default_value_from_register): Update prototype.
7912 * s390-linux-tdep.c (s390_value_from_register): Update interface
7913 and call to default_value_from_register.
7914 * spu-tdep.c (spu_value_from_register): Likewise.
7915
7916 * findvar.c (address_from_register): Remove TYPE argument.
7917 Do not call value_from_register; use gdbarch_value_from_register
7918 with null_frame_id instead.
7919 * value.h (address_from_register): Update prototype.
7920 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7921 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7922 address_from_register interface change.
7923
7924 2014-04-17 Yao Qi <yao@codesourcery.com>
7925
7926 * gdbtypes.h: Update comments to link to types and macros'
7927 definitions.
7928
7929 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7930
7931 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7932
7933 2014-04-16 Keith Seitz <keiths@redhat.com>
7934
7935 PR gdb/15827
7936 * dwarf2read.c (skip_one_die): Check that all relative-offset
7937 sibling DIEs fall within range of the current reader's buffer.
7938 (read_partial_die): Likewise.
7939
7940 2014-04-16 Keith Seitz <keiths@redhat.com>
7941
7942 PR c++/16597
7943 * cp-namespace.c (lookup_symbol_file): If the type name of
7944 `this' is NULL, return immediately.
7945
7946 2014-04-14 Keith Seitz <keiths@redhat.com>
7947
7948 PR c++/16253
7949 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7950 from symbol_matches_domain in symtab.c. All local callers
7951 of symbol_matches_domain updated.
7952 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7953 search STRUCT_DOMAIN.
7954 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7955 independently. standard_lookup will do that automatically.
7956 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7957 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7958 (cp_lookup_symbol_in_namespace): Likewise.
7959 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7960 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7961 may return a STRUCT_DOMAIN match.
7962 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7963 * cp-support.c: Include language.h.
7964 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7965 VAR_DOMAIN.
7966 * psymtab.c (match_partial_symbol): Compare the requested
7967 domain with the symbol's domain directly.
7968 (lookup_partial_symbol): Likewise.
7969 * symtab.c (lookup_symbol_in_language): Explain when/why
7970 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7971 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7972 appropriate languages.
7973 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7974 and moved to ada-lang.c
7975 (lookup_block_symbol): Explain that this function only returns
7976 symbol matching the requested DOMAIN.
7977 Compare the requested domain with the symbol's domain directly.
7978 (iterate_over_symbols): Compare the requested domain with the
7979 symbol's domain directly.
7980 * symtab.h (symbol_matches_domain): Remove.
7981
7982 2014-04-14 Tom Tromey <tromey@redhat.com>
7983
7984 PR c++/15246:
7985 * c-exp.y (type_aggregate_p): New function.
7986 (qualified_name, classify_inner_name): Use it.
7987 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7988 and TYPE_TARGET_TYPE of an enum type.
7989 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7990 an enum type.
7991 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7992 handle TYPE_DECLARED_CLASS.
7993 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7994 types.
7995 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7996 * valops.c (enum_constant_from_type): New function.
7997 (value_aggregate_elt): Use it.
7998 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7999 TYPE_CODE_ENUM.
8000
8001 2014-04-14 Tom Tromey <tromey@redhat.com>
8002
8003 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8004 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8005 const.
8006 * value.h (value_aggregate_elt): Update.
8007
8008 2014-04-14 Tom Tromey <tromey@redhat.com>
8009
8010 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8011
8012 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8013
8014 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8015 (evaluate_subexp_standard): Pass noside argument.
8016 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8017 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8018 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8019 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8020 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8021
8022 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8023
8024 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8025 points to a constant blob.
8026
8027 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8028
8029 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8030 property and store it as the high bound and flag the range accordingly.
8031 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8032 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8033 * gdbtypes.h (enum range_flags): New enum.
8034 (struct range_bounds): Add flags member.
8035
8036 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8037
8038 * c-typeprint.c (c_type_print_varspec_suffix): Added
8039 check for not yet resolved high bound. If unresolved, print
8040 "variable length" string to the console instead of random
8041 length.
8042
8043 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8044
8045 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8046 value.
8047 (ada_template_to_fixed_record_type_1): Likewise.
8048 (ada_to_fixed_type_1): Likewise.
8049 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8050 (cp_print_value): Likewise.
8051 * d-valprint.c (dynamic_array_type): Likewise.
8052 * findvar.c (address_of_variable): Likewise.
8053 * jv-valprint.c (java_value_print): Likewise.
8054 * valops.c (value_ind): Likewise.
8055 * value.c (coerce_ref): Likewise.
8056
8057 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8058
8059 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8060 value and retrieve the dynamic type size.
8061
8062 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8063
8064 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8065 passed to sizeof is dynamic evaluate the argument to compute the length.
8066
8067 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8068 Joel Brobecker <brobecker@adacore.com>
8069
8070 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8071 (dwarf2_evaluate_property): New function.
8072 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8073 * dwarf2read.c (attr_to_dynamic_prop): New function.
8074 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8075 attribute.
8076 * gdbtypes.c: Include dwarf2loc.h.
8077 (is_dynamic_type): New function.
8078 (resolve_dynamic_type): New function.
8079 (resolve_dynamic_bounds): New function.
8080 (get_type_length): New function.
8081 (check_typedef): Use get_type_length to compute type length.
8082 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8083 (TYPE_LOW_BOUND_KIND): New macro.
8084 (is_dynamic_type): New function prototype.
8085 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8086 to resolve dynamic properties of the type. Update comment.
8087 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8088
8089 2014-04-14 Richard Henderson <rth@redhat.com>
8090
8091 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8092
8093 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8094 Doug Evans <xdje42@gmail.com>
8095
8096 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8097 dereference TYPE_CODE_REF values.
8098
8099 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8100
8101 Revert the following changes due to regressions:
8102
8103 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8104 (dwarf2_evaluate_property): New function.
8105 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8106 * dwarf2read.c (attr_to_dynamic_prop): New function.
8107 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8108 attribute.
8109 * gdbtypes.c: Include dwarf2loc.h.
8110 (is_dynamic_type): New function.
8111 (resolve_dynamic_type): New function.
8112 (resolve_dynamic_bounds): New function.
8113 (get_type_length): New function.
8114 (check_typedef): Use get_type_length to compute type length.
8115 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8116 (TYPE_LOW_BOUND_KIND): New macro.
8117 (is_dynamic_type): New function prototype.
8118 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8119 to resolve dynamic properties of the type. Update comment.
8120 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8121
8122 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8123 passed to sizeof is dynamic evaluate the argument to compute the length.
8124
8125 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8126 value and retrieve the dynamic type size.
8127
8128 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8129 (ada_template_to_fixed_record_type_1): Likewise.
8130 (ada_to_fixed_type_1): Likewise.
8131 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8132 (cp_print_value): Likewise.
8133 * d-valprint.c (dynamic_array_type): Likewise.
8134 * eval.c (evaluate_subexp_with_coercion): Likewise.
8135 * findvar.c (address_of_variable): Likewise.
8136 * jv-valprint.c (java_value_print): Likewise.
8137 * valops.c (value_ind): Likewise.
8138 * value.c (coerce_ref): Likewise.
8139
8140 * c-typeprint.c (c_type_print_varspec_suffix): Added
8141 check for not yet resolved high bound. If unresolved, print
8142 "variable length" string to the console instead of random
8143 length.
8144
8145 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8146 property and store it as the high bound and flag the range accordingly.
8147 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8148 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8149 * gdbtypes.h (enum range_flags): New enum.
8150 (struct range_bounds): Add flags member.
8151
8152 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8153 points to a constant blob.
8154
8155 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8156 (evaluate_subexp_standard): Pass noside argument.
8157 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8158 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8159 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8160 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8161 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8162
8163 2014-04-11 Keith Seitz <keiths@redhat.com>
8164
8165 PR c++/16675
8166 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8167 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8168 reference types.
8169
8170 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8171
8172 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8173 (evaluate_subexp_standard): Pass noside argument.
8174 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8175 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8176 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8177 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8178 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8179
8180 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8181
8182 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8183 points to a constant blob.
8184
8185 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8186
8187 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8188 property and store it as the high bound and flag the range accordingly.
8189 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8190 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8191 * gdbtypes.h (enum range_flags): New enum.
8192 (struct range_bounds): Add flags member.
8193
8194 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8195
8196 * c-typeprint.c (c_type_print_varspec_suffix): Added
8197 check for not yet resolved high bound. If unresolved, print
8198 "variable length" string to the console instead of random
8199 length.
8200
8201 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8202
8203 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8204 (ada_template_to_fixed_record_type_1): Likewise.
8205 (ada_to_fixed_type_1): Likewise.
8206 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8207 (cp_print_value): Likewise.
8208 * d-valprint.c (dynamic_array_type): Likewise.
8209 * eval.c (evaluate_subexp_with_coercion): Likewise.
8210 * findvar.c (address_of_variable): Likewise.
8211 * jv-valprint.c (java_value_print): Likewise.
8212 * valops.c (value_ind): Likewise.
8213 * value.c (coerce_ref): Likewise.
8214
8215 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8216
8217 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8218 value and retrieve the dynamic type size.
8219
8220 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8221
8222 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8223 passed to sizeof is dynamic evaluate the argument to compute the length.
8224
8225 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8226
8227 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8228 (dwarf2_evaluate_property): New function.
8229 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8230 * dwarf2read.c (attr_to_dynamic_prop): New function.
8231 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8232 attribute.
8233 * gdbtypes.c: Include dwarf2loc.h.
8234 (is_dynamic_type): New function.
8235 (resolve_dynamic_type): New function.
8236 (resolve_dynamic_bounds): New function.
8237 (get_type_length): New function.
8238 (check_typedef): Use get_type_length to compute type length.
8239 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8240 (TYPE_LOW_BOUND_KIND): New macro.
8241 (is_dynamic_type): New function prototype.
8242 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8243 to resolve dynamic properties of the type. Update comment.
8244 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8245
8246 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8247
8248 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8249 declaring high/low bounds and change uses accordingly. Call
8250 create_range_type instead of create_static_range_type.
8251 * gdbtypes.c (create_range_type): New function.
8252 (create_range_type): Convert bounds into struct bound_prop and pass
8253 them to create_range_type.
8254 * gdbtypes.h (struct bound_prop): New struct.
8255 (create_range_type): New function prototype.
8256 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8257 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8258 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8259 part of the bound.
8260 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8261
8262 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8263
8264 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8265 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8266 * ada-lang.c: All uses of create_range_type updated.
8267 * coffread.c: All uses of create_range_type updated.
8268 * dwarf2read.c: All uses of create_range_type updated.
8269 * f-exp.y: All uses of create_range_type updated.
8270 * m2-valprint.c: All uses of create_range_type updated.
8271 * mdebugread.c: All uses of create_range_type updated.
8272 * stabsread.c: All uses of create_range_type updated.
8273 * valops.c: All uses of create_range_type updated.
8274 * valprint.c: All uses of create_range_type updated.
8275
8276 2014-04-10 Pedro Alves <palves@redhat.com>
8277
8278 * breakpoint.c (single_step_breakpoints)
8279 (single_step_gdbarch): Move up in the file.
8280 (one_breakpoint_xfer_memory): New function, factored out from ...
8281 (breakpoint_xfer_memory): ... here. Also process single-step
8282 breakpoints.
8283
8284 2014-04-09 Tristan Gingold <gingold@adacore.com>
8285
8286 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8287 comments.
8288 (darwin_decode_exception_message): Free port only after use.
8289
8290 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8291
8292 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8293 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8294 when setting the size of call_length.
8295
8296 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8297
8298 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8299 dereference TYPE_CODE_REF values.
8300
8301 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8302
8303 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8304 end of warning message.
8305
8306 2014-04-03 Doug Evans <dje@google.com>
8307
8308 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8309 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8310
8311 2014-04-02 Alan Modra <amodra@gmail.com>
8312
8313 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8314 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8315 (struct symbol_file_add_from_memory_args): Add size field.
8316 (find_vdso_size): New function.
8317 (add_vsyscall_page): Attempt to find vdso size.
8318
8319 2014-04-01 Doug Evans <dje@google.com>
8320
8321 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8322
8323 2014-04-01 Tristan Gingold <gingold@adacore.com>
8324
8325 * darwin-nat.c (darwin_encode_reply): Add prototype.
8326 (darwin_decode_exception_message): Reply to unknown inferiors.
8327 (darwin_decode_message): Handle message by id. Ignore message
8328 to unknown inferior.
8329 (darwin_wait): Discard unknown messages, add debug trace.
8330
8331 2014-03-31 Doug Evans <dje@google.com>
8332
8333 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8334 comp_dir_string.
8335
8336 2014-03-31 Doug Evans <dje@google.com>
8337
8338 New option "set print symbol-loading".
8339 * NEWS: Mention it.
8340 * solib.c (solib_read_symbols): Only print symbol loading messages
8341 if requested.
8342 (solib_add): If symbol loading is in "brief" mode, notify user
8343 symbols are being loaded.
8344 (reload_shared_libraries_1): Ditto.
8345 * symfile.c (print_symbol_loading_off): New static global.
8346 (print_symbol_loading_brief): New static global.
8347 (print_symbol_loading_full): New static global.
8348 (print_symbol_loading_enums): New static global.
8349 (print_symbol_loading): New static global.
8350 (print_symbol_loading_p): New function.
8351 (symbol_file_add_with_addrs): Only print symbol loading messages
8352 if requested.
8353 (_initialize_symfile): Register "print symbol-loading" set/show
8354 command.
8355 * symfile.h (print_symbol_loading_p): Declare.
8356
8357 2014-03-30 Doug Evans <xdje42@gmail.com>
8358
8359 * infrun.c (set_last_target_status): New function.
8360 (handle_inferior_event): Call it.
8361
8362 2014-03-30 Doug Evans <xdje42@gmail.com>
8363
8364 * inferior.h (enum stop_kind): Improve comment.
8365
8366 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8367
8368 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8369 a reference, strip the reference layer before calling
8370 the lang_ops value_has_mutated callback.
8371
8372 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8373
8374 Remove some globals from our parser.
8375 * language.c (unk_lang_parser): Add "struct parser_state"
8376 argument.
8377 * language.h (struct language_defn) <la_parser>: Likewise.
8378 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8379 (initialize_expout): Add "struct parser_state" argument.
8380 Rewrite function to use the parser state.
8381 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8382 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8383 write_exp_elt_longcst, write_exp_elt_dblcst,
8384 write_exp_elt_decfloatcst, write_exp_elt_type,
8385 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8386 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8387 write_dollar_variable): Likewise.
8388 (parse_exp_in_context_1): Use parser state.
8389 (insert_type_address_space): Add "struct parser_state" argument.
8390 Use parser state.
8391 (increase_expout_size): New function.
8392 * parser-defs.h: Forward declare "struct language_defn" and
8393 "struct parser_state".
8394 (expout, expout_size, expout_ptr): Remove extern declarations.
8395 (parse_gdbarch, parse_language): Rewrite macro declarations to
8396 accept the parser state.
8397 (struct parser_state): New struct.
8398 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8399 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8400 write_exp_elt_decfloatcst, write_exp_elt_type,
8401 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8402 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8403 write_exp_msymbol, write_dollar_variable,
8404 mark_struct_expression, insert_type_address_space): Add "struct
8405 parser_state" argument.
8406 (increase_expout_size): New function.
8407 * utils.c (do_clear_parser_state): New function.
8408 (make_cleanup_clear_parser_state): Likewise.
8409 * utils.h (make_cleanup_clear_parser_state): New function
8410 prototype.
8411 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8412 Update calls to write_exp* in order to pass the parser state.
8413 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8414 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8415 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8416 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8417 * stap-probe.c (stap_parse_register_operand): Likewise.
8418 (stap_parse_single_operand): Likewise.
8419 (stap_parse_argument_1): Likewise.
8420 (stap_parse_argument): Use parser state.
8421 * stap-probe.h: Include "parser-defs.h".
8422 (struct stap_parse_info) <pstate>: New field.
8423 * c-exp.y (parse_type): Rewrite to use parser state.
8424 (yyparse): Redefine to c_parse_internal.
8425 (pstate): New global variable.
8426 (parse_number): Add "struct parser_state" argument.
8427 (write_destructor_name): Likewise.
8428 (type_exp): Update calls to write_exp* and similars in order to
8429 use parser state.
8430 (exp1, exp, variable, qualified_name, space_identifier,
8431 typename, typebase): Likewise.
8432 (write_destructor_name, parse_number, lex_one_token,
8433 classify_name, classify_inner_name, c_parse): Add "struct
8434 parser_state" argument. Update function to use parser state.
8435 * c-lang.h: Forward declare "struct parser_state".
8436 (c_parse): Add "struct parser_state" argument.
8437 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8438 (yyparse): Redefine macro to ada_parse_internal.
8439 (pstate): New variable.
8440 (write_int, write_object_renaming, write_var_or_type,
8441 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8442 type_int, type_long, type_long_long, type_float, type_double,
8443 type_long_double, type_char, type_boolean, type_system_address):
8444 Add "struct parser_state" argument.
8445 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8446 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8447 var_or_type, aggregate, aggregate_component_list,
8448 positional_list, others, component_group,
8449 component_associations): Update calls to write_exp* and similar
8450 functions in order to use parser state.
8451 (ada_parse, write_var_from_sym, write_int,
8452 write_exp_op_with_string, write_object_renaming,
8453 find_primitive_type, write_selectors, write_ambiguous_var,
8454 write_var_or_type, write_name_assoc, type_int, type_long,
8455 type_long_long, type_float, type_double, type_long_double,
8456 type_char, type_boolean, type_system_address): Add "struct
8457 parser_state" argument. Adjust function to use parser state.
8458 * ada-lang.c (parse): Likewise.
8459 * ada-lang.h: Forward declare "struct parser_state".
8460 (ada_parse): Add "struct parser_state" argument.
8461 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8462 calls to both functions.
8463 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8464 parser state.
8465 (yyparse): Redefine macro to f_parse_internal.
8466 (pstate): New variable.
8467 (parse_number): Add "struct parser_state" argument.
8468 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8469 and similars in order to use parser state.
8470 (parse_number): Adjust code to use parser state.
8471 (yylex): Likewise.
8472 (f_parse): New function.
8473 * f-lang.h: Forward declare "struct parser_state".
8474 (f_parse): Add "struct parser_state" argument.
8475 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8476 parser state.
8477 (yyparse): Redefine macro for java_parse_internal.
8478 (pstate): New variable.
8479 (push_expression_name, push_expression_name, insert_exp): Add
8480 "struct parser_state" argument.
8481 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8482 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8483 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8484 PostIncrementExpression, PostDecrementExpression,
8485 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8486 UnaryExpressionNotPlusMinus, CastExpression,
8487 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8488 RelationalExpression, EqualityExpression, AndExpression,
8489 ExclusiveOrExpression, InclusiveOrExpression,
8490 ConditionalAndExpression, ConditionalOrExpression,
8491 ConditionalExpression, Assignment, LeftHandSide): Update
8492 calls to write_exp* and similars in order to use parser state.
8493 (parse_number): Ajust code to use parser state.
8494 (yylex): Likewise.
8495 (java_parse): New function.
8496 (push_variable): Add "struct parser_state" argument. Adjust
8497 code to user parser state.
8498 (push_fieldnames, push_qualified_expression_name,
8499 push_expression_name, insert_exp): Likewise.
8500 * jv-lang.h: Forward declare "struct parser_state".
8501 (java_parse): Add "struct parser_state" argument.
8502 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8503 parser state.
8504 (yyparse): Redefine macro to m2_parse_internal.
8505 (pstate): New variable.
8506 (type_exp, exp, fblock, variable, type): Update calls to
8507 write_exp* and similars to use parser state.
8508 (yylex): Likewise.
8509 (m2_parse): New function.
8510 * m2-lang.h: Forward declare "struct parser_state".
8511 (m2_parse): Add "struct parser_state" argument.
8512 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8513 * objc-lang.h: Forward declare "struct parser_state".
8514 (end_msglist): Add "struct parser_state" argument.
8515 * p-exp.y (parse_type): Rewrite macro to use parser state.
8516 (yyparse): Redefine macro to pascal_parse_internal.
8517 (pstate): New variable.
8518 (parse_number): Add "struct parser_state" argument.
8519 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8520 write_exp* and similars in order to use parser state.
8521 (parse_number, yylex): Adjust code to use parser state.
8522 (pascal_parse): New function.
8523 * p-lang.h: Forward declare "struct parser_state".
8524 (pascal_parse): Add "struct parser_state" argument.
8525 * go-exp.y (parse_type): Rewrite macro to use parser state.
8526 (yyparse): Redefine macro to go_parse_internal.
8527 (pstate): New variable.
8528 (parse_number): Add "struct parser_state" argument.
8529 (type_exp, exp1, exp, variable, type): Update calls to
8530 write_exp* and similars in order to use parser state.
8531 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8532 to use parser state.
8533 (go_parse): Likewise.
8534 * go-lang.h: Forward declare "struct parser_state".
8535 (go_parse): Add "struct parser_state" argument.
8536
8537 2014-03-27 Doug Evans <dje@google.com>
8538
8539 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8540
8541 2014-03-27 Doug Evans <dje@google.com>
8542
8543 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8544 Remove argument abbrev_section. All callers updated.
8545
8546 2014-03-27 Doug Evans <dje@google.com>
8547
8548 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8549 addr_base, ranges_base.
8550
8551 2014-03-26 Keith Seitz <keiths@redhat.com>
8552
8553 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8554 types, not VAR_DOMAIN.
8555
8556 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8557
8558 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8559 "ra" registers.
8560 * features/nios2-linux.c: Regenerated.
8561 * features/nios2.c: Regenerated.
8562
8563 2014-03-25 Pedro Alves <palves@redhat.com>
8564
8565 * cli/cli-script.c (script_from_file): Force the interpreter to
8566 sync mode.
8567
8568 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8569
8570 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8571 small stack allocation.
8572
8573 2014-03-24 Tristan Gingold <gingold@adacore.com>
8574
8575 * darwin-nat.c (exc_server): Remove unused prototype.
8576 (darwin_dump_message): Correctly display data on x86_64.
8577 (darwin_encode_reply): Fix style.
8578 Add comments and fix indentation.
8579
8580 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8581
8582 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8583
8584 2014-03-22 Doug Evans <xdje42@gmail.com>
8585
8586 * infcmd.c: Whitespace fixes.
8587 (interrupt_command): Merge two function comments into one.
8588
8589 2014-03-22 Doug Evans <xdje42@gmail.com>
8590
8591 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8592 All uses updated.
8593
8594 2014-03-22 Yao Qi <yao@codesourcery.com>
8595
8596 * remote.c (target_read_live_memory): Remove.
8597 (memory_xfer_live_readonly_partial): Rename it to
8598 remote_xfer_live_readonly_partial. Remove argument 'object'.
8599 All callers updated. Call remote_read_bytes_1
8600 instead of target_read_live_memory.
8601 * tracepoint.c (set_traceframe_number): Remove.
8602 (make_cleanup_restore_traceframe_number): Likewise .
8603 * tracepoint.h (set_traceframe_number): Remove declaration.
8604 (make_cleanup_restore_traceframe_number): Likewise.
8605
8606 2014-03-22 Yao Qi <yao@codesourcery.com>
8607
8608 * remote.c (remote_read_bytes): Move code on reading from the
8609 remote stub to ...
8610 (remote_read_bytes_1): ... here. New function.
8611
8612 2014-03-22 Yao Qi <yao@codesourcery.com>
8613
8614 * ctf.c (ctf_xfer_partial): Check the return value of
8615 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8616 return TARGET_XFER_UNAVAILABLE.
8617 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8618 * target.c (target_read_live_memory): Move it to remote.c.
8619 (memory_xfer_live_readonly_partial): Likewise.
8620 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8621 * remote.c (target_read_live_memory): Moved from target.c.
8622 (memory_xfer_live_readonly_partial): Likewise.
8623 (remote_read_bytes): Factored out from
8624 memory_xfer_partial_1.
8625
8626 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8627
8628 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8629 NULL pointer.
8630
8631 2014-03-21 Pedro Alves <palves@redhat.com>
8632
8633 * infrun.c (normal_stop): Extend comment.
8634
8635 2014-03-21 Hui Zhu <hui@codesourcery.com>
8636 Pedro Alves <palves@redhat.com>
8637
8638 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8639 static buffer.
8640 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8641 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8642 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8643
8644 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8645
8646 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8647 `z' formatted output modifier.
8648
8649 2014-03-20 Tom Tromey <tromey@redhat.com>
8650 Sergio Durigan Junior <sergiodj@redhat.com>
8651
8652 * probe.c (parse_probes): Turn assert into an ordinary error.
8653 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8654 exceptions when parsing probes. Rearrange the code for clarity.
8655
8656 2014-03-20 Tom Tromey <tromey@redhat.com>
8657
8658 PR gdb/14135
8659 * top.c (execute_command): Only dispatch events if the command
8660 started the target.
8661
8662 2014-03-20 Tom Tromey <tromey@redhat.com>
8663
8664 PR cli/15718
8665 * infcall.c: Include event-top.h.
8666 (run_inferior_call): Call async_disable_stdin if needed.
8667
8668 2014-03-20 Pedro Alves <palves@redhat.com>
8669
8670 * infrun.c (prepare_to_proceed): Delete.
8671 (thread_still_needs_step_over): New function.
8672 (find_thread_needs_step_over): New function.
8673 (proceed): If the current thread needs a step-over, set its
8674 steping_over_breakpoint flag. Adjust to use
8675 find_thread_needs_step_over instead of prepare_to_proceed.
8676 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8677 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8678 breakpoint.
8679 (switch_back_to_stepped_thread): Step over breakpoints of all
8680 threads not the stepping thread, before switching back to the
8681 stepping thread.
8682
8683 2014-03-20 Pedro Alves <palves@redhat.com>
8684
8685 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8686 extern.
8687 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8688 * infrun.c (saved_singlestep_ptid)
8689 (stepping_past_singlestep_breakpoint): Delete.
8690 (resume): Remove stepping_past_singlestep_breakpoint handling.
8691 (proceed): Store the prev_pc of the stepping thread too.
8692 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8693 singlestep_pc.
8694 (enum infwait_states): Delete infwait_thread_hop_state.
8695 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8696 field.
8697 (handle_inferior_event): Adjust.
8698 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8699 handling and the thread-hop code. Before removing single-step
8700 breakpoints, check whether the thread hit a single-step breakpoint
8701 of another thread. If it did, the trap is not a random signal.
8702 (switch_back_to_stepped_thread): If the event thread hit a
8703 single-step breakpoint, unblock it before switching to the
8704 stepping thread. Handle the case of the stepped thread having
8705 advanced already.
8706 (keep_going): Handle the case of the current thread moving past a
8707 single-step breakpoint.
8708
8709 2014-03-20 Pedro Alves <palves@redhat.com>
8710
8711 PR breakpoints/7143
8712 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8713 are being stepped over.
8714 (breakpoint_address_match): Make extern.
8715 * breakpoint.h (breakpoint_address_match): New declaration.
8716 * inferior.h (stepping_past_instruction_at): New declaration.
8717 * infrun.c (struct step_over_info): New type.
8718 (step_over_info): New global.
8719 (set_step_over_info, clear_step_over_info)
8720 (stepping_past_instruction_at): New functions.
8721 (handle_inferior_event): Clear the step-over info when
8722 trap_expected is cleared.
8723 (resume): Remove now stale comment.
8724 (clear_proceed_status): Clear step-over info.
8725 (proceed): Adjust step-over handling to set or clear the step-over
8726 info instead of removing all breakpoints.
8727 (handle_signal_stop): When setting up a thread-hop, don't remove
8728 breakpoints here.
8729 (stop_stepping): Clear step-over info.
8730 (keep_going): Adjust step-over handling to set or clear step-over
8731 info and then always inserting breakpoints, instead of removing
8732 all breakpoints when stepping over one.
8733
8734 2014-03-20 Pedro Alves <palves@redhat.com>
8735
8736 * infrun.c (previous_inferior_ptid): Adjust comment.
8737 (deferred_step_ptid): Delete.
8738 (infrun_thread_ptid_changed, prepare_to_proceed)
8739 (init_wait_for_inferior): Adjust.
8740 (handle_signal_stop): Delete deferred_step_ptid handling.
8741
8742 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8743
8744 PR gdb/15358
8745 * defs.h (sync_quit_force_run): New declaration.
8746 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8747 * event-top.c (async_sigterm_handler): New declaration.
8748 (async_sigterm_token): New variable.
8749 (async_init_signals): Create also async_sigterm_token.
8750 (async_sigterm_handler): New function.
8751 (sync_quit_force_run): New variable.
8752 (handle_sigterm): Replace quit_force call by other calls.
8753 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8754
8755 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8756
8757 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8758 offset into SPE pseudo registers.
8759
8760 2014-03-18 Pedro Alves <palves@redhat.com>
8761
8762 PR gdb/13860
8763 * inferior.h (print_stop_event): Declare.
8764 * infrun.c (print_stop_event): New, factored out from ...
8765 (normal_stop): ... this.
8766 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8767 of bpstat_print/print_stack_frame.
8768
8769 2014-03-17 Tom Tromey <tromey@redhat.com>
8770
8771 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8772
8773 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8774
8775 * ada-lang.c (decode_constrained_packed_array): Perform a
8776 minimal coercion for reference with coerce_ref instead of
8777 ada_coerce_ref.
8778
8779 2014-03-17 Tristan Gingold <gingold@adacore.com>
8780
8781 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8782 (darwin_solib_create_inferior_hook): Emit a warning if version
8783 is unhandled.
8784
8785 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8786
8787 * python/py-value.c (get_field_flag): Cast flag_name argument to
8788 PyObject_GetAttrString to support Python 2.4.
8789
8790 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8791
8792 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8793 (Global Maintainers): Remove Jan Kratochvil.
8794
8795 2014-03-14 Pedro Alves <palves@redhat.com>
8796
8797 * inferior.h (terminal_ours_for_output): Rename to ...
8798 (child_terminal_ours_for_output): ... this.
8799 (terminal_save_ours): Rename to ...
8800 (child_terminal_save_ours): ... this.
8801 (terminal_ours): Rename to ...
8802 (child_terminal_ours): ... this.
8803 (terminal_inferior): Rename to ...
8804 (child_terminal_inferior): ... this.
8805 (terminal_init_inferior): Rename to ...
8806 (child_terminal_init_inferior): ... this.
8807 (terminal_init_inferior_with_pgrp): Rename to ...
8808 (child_terminal_init_inferior_with_pgrp): ... this.
8809 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8810 (child_terminal_init_with_pgrp): ... this.
8811 (terminal_save_ours): Rename to ...
8812 (child_terminal_save_ours): ... this.
8813 (terminal_init_inferior): Rename to ...
8814 (child_terminal_init): ... this. Adjust.
8815 (terminal_inferior): Rename to ...
8816 (child_terminal_inferior): ... this.
8817 (terminal_ours_for_output): Rename to ...
8818 (child_terminal_ours_for_output): ... this. Adjust.
8819 (terminal_ours): Rename to ...
8820 (child_terminal_ours): ... this.
8821 (terminal_ours_1): Rename to ...
8822 (child_terminal_ours_1): ... this. Adjust.
8823 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8824 * windows-nat.c (do_initial_windows_stuff): Adjust.
8825 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8826 (gnu_terminal_init): ... this. Adjust.
8827 (gnu_target): Adjust.
8828 * inf-child.c (inf_child_target): Adjust.
8829
8830 2014-03-13 Doug Evans <xdje42@gmail.com>
8831
8832 PR guile/16612
8833 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8834 new eq?-hashtab.
8835
8836 2014-03-13 Doug Evans <xdje42@gmail.com>
8837
8838 * value.c (record_latest_value): Call release_value_or_incref
8839 instead of release_value.
8840
8841 2014-03-13 Pedro Alves <palves@redhat.com>
8842
8843 * procfs.c (procfs_target): Don't override to_shortname,
8844 to_longname or to_doc.
8845
8846 2014-03-13 Pedro Alves <palves@redhat.com>
8847
8848 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8849 Unix in user visible strings.
8850
8851 2014-03-12 Stan Shebs <stan@codesourcery.com>
8852
8853 * gdbtypes.h: Annotate comments for Doxygen, add a page
8854 block comment with some general info.
8855
8856 2014-03-12 Pedro Alves <palves@redhat.com>
8857
8858 * infcmd.c (prepare_execution_command): New function, factored out
8859 from several execution commands.
8860 (run_command_1, continue_command, step_1, jump_command)
8861 (signal_command, until_command, advance_command, finish_command)
8862 (attach_command): Use prepare_execution_command.
8863
8864 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8865
8866 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8867 (MAX_BPTS): Define.
8868 (MAX_WPTS): Define.
8869 (struct arm_linux_thread_points): Removed.
8870 (struct arm_linux_process_info): New.
8871 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8872 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8873 (arm_linux_find_breakpoints_by_tid): Removed.
8874 (struct arch_lwp_info): New.
8875 (arm_linux_find_process_pid): New functions.
8876 (arm_linux_add_process): New functions.
8877 (arm_linux_process_info_get): New functions.
8878 (arm_linux_forget_process): New function.
8879 (arm_linux_get_debug_reg_state): New function.
8880 (struct update_registers_data): New.
8881 (update_registers_callback): New function.
8882 (arm_linux_insert_hw_breakpoint1): Updated.
8883 (arm_linux_remove_hw_breakpoint1): Updated.
8884 (arm_linux_insert_hw_breakpoint): Updated.
8885 (arm_linux_remove_hw_breakpoint): Updated.
8886 (arm_linux_insert_watchpoint): Updated.
8887 (arm_linux_remove_watchpoint): Updated.
8888 (arm_linux_new_thread): Updated.
8889 (arm_linux_prepare_to_resume): New function.
8890 (arm_linux_new_fork): New function.
8891 (_initialize_arm_linux_nat): Updated.
8892
8893 2014-03-12 Pedro Alves <palves@redhat.com>
8894
8895 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8896
8897 2014-03-12 Tom Tromey <tromey@redhat.com>
8898
8899 * inf-child.c (return_zero): New function.
8900 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8901 * aix-thread.c (aix_thread_inferior_created): New function.
8902 (aix_thread_attach): Remove.
8903 (init_aix_thread_ops): Don't set to_attach.
8904 (_initialize_aix_thread): Register inferior_created observer.
8905 * corelow.c (init_core_ops): Don't set to_attach or
8906 to_create_inferior.
8907 * exec.c (init_exec_ops): Don't set to_attach or
8908 to_create_inferior.
8909 * infcmd.c (run_command_1): Use find_run_target. Make direct
8910 target calls.
8911 (attach_command): Use find_attach_target. Make direct target
8912 calls.
8913 * record-btrace.c (init_record_btrace_ops): Don't set
8914 to_create_inferior.
8915 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8916 Remove.
8917 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8918 set to_create_inferior.
8919 * target.c (complete_target_initialization): Add assertion.
8920 (target_create_inferior): Remove.
8921 (find_default_attach, find_default_create_inferior): Remove.
8922 (find_attach_target, find_run_target): New functions.
8923 (find_default_is_async_p, find_default_can_async_p)
8924 (target_supports_non_stop, target_attach): Remove.
8925 (init_dummy_target): Don't set to_create_inferior or
8926 to_supports_non_stop.
8927 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8928 TARGET_DEFAULT_FUNC.
8929 <to_create_inferior>: Add comment.
8930 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8931 TARGET_DEFAULT_RETURN.
8932 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8933 (find_attach_target, find_run_target): Declare.
8934 (target_create_inferior): Remove.
8935 (target_has_execution_1): Update comment.
8936 (target_supports_non_stop): Remove.
8937 * target-delegates.c: Rebuild.
8938
8939 2014-03-12 Pedro Alves <palves@redhat.com>
8940
8941 * inf-child.h: Update comment to not mention Unix.
8942
8943 2014-03-12 Pedro Alves <palves@redhat.com>
8944
8945 * inf-child.c: Update top comment to not mention Unix. Add
8946 generic comment describing how this target is meant to be used.
8947 (inf_child_post_attach, inf_child_post_startup_inferior)
8948 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8949 Unix in comment.
8950
8951 2014-03-12 Pedro Alves <palves@redhat.com>
8952
8953 * nto-procfs.c: Include inf-child.h.
8954 (procfs_ops): Delete global.
8955 (procfs_can_run): Delete method.
8956 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8957 target pointer instead of referencing procfs_ops.
8958 (procfs_prepare_to_store): Delete.
8959 (init_procfs_ops): Delete function.
8960 (procfs_target): New function, based on init_procfs_ops, but
8961 inherit inf_child_target.
8962 (_initialize_procfs): Use procfs_target.
8963
8964 2014-03-12 Pedro Alves <palves@redhat.com>
8965
8966 * windows-nat.c: Include inf-child.h.
8967 (windows_ops): Delete global.
8968 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8969 methods.
8970 (init_windows_ops): Delete function.
8971 (windows_target): New function, based on init_windows_ops, but
8972 inherit inf_child_target.
8973 (_initialize_windows_nat): Use windows_target. Install x86
8974 specific target methods here.
8975
8976 2014-03-10 Doug Evans <xdje42@gmail.com>
8977
8978 * guile/guile.c (call_initialize_gdb_module): New function.
8979 (initialize_guile): Replace call to scm_init_guile with call to
8980 scm_with_guile.
8981
8982 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8983
8984 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8985 in call to TYPE_CODE macro.
8986
8987 2014-03-10 Jerome Guitton <guitton@adacore.com>
8988
8989 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8990 Resolve tagged types to full view.
8991
8992 2014-03-10 Hui Zhu <hui@codesourcery.com>
8993
8994 * target.h (target_insert_breakpoint): Remove "hardware" from its
8995 comments.
8996
8997 2014-03-07 Doug Evans <dje@google.com>
8998
8999 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9000
9001 2014-03-07 Doug Evans <dje@google.com>
9002
9003 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9004 Remove unused local comp_dir_attr. Assert exactly one of
9005 stub_comp_unit_die, stub_comp_dir is non-NULL.
9006
9007 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9008
9009 * target.h (complete_target_initialization, add_target):
9010 Add comment.
9011
9012 2014-03-07 Pedro Alves <palves@redhat.com>
9013
9014 * go32-nat.c: Include inf-child.h.
9015 (go32_ops): Delete global.
9016 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9017 Delete methods.
9018 (go32_create_inferior): Push the passed in target pointer instead
9019 of referencing go32_ops.
9020 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9021 (go32_target): New function, based on init_go32_ops, but inherit
9022 inf_child_target.
9023 (_initialize_go32_nat): Use go32_target. Move parts of
9024 init_go32_ops here.
9025
9026 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9027
9028 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9029 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9030 SYMBOL_VALUE_ADDRESS.
9031 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9032
9033 2014-03-06 Yao Qi <yao@codesourcery.com>
9034
9035 * breakpoint.c (get_tracepoint_by_number): Remove argument
9036 optional_p. All callers updated. Adjust comments. Update
9037 output message.
9038 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9039
9040 2014-03-06 Yao Qi <yao@codesourcery.com>
9041
9042 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9043 early if get_number returns zero. Use 'p' instead of 'args'.
9044
9045 2014-03-06 Yao Qi <yao@codesourcery.com>
9046
9047 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9048 message.
9049
9050 2014-03-06 Yao Qi <yao@codesourcery.com>
9051
9052 PR breakpoints/16508
9053 * tracepoint.c (check_trace_running): New function.
9054 (trace_find_command): Move code to check_trace_running and
9055 call check_trace_running.
9056 (trace_find_pc_command): Likewise.
9057 (trace_find_tracepoint_command): Likewise.
9058 (trace_find_line_command): Likewise.
9059 (trace_find_range_command): Likewise.
9060 * tracepoint.h (check_trace_running): Likewise.
9061 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9062
9063 2014-03-06 Yao Qi <yao@codesourcery.com>
9064
9065 * target.h (struct target_ops) <to_traceframe_info>: Use
9066 TARGET_DEFAULT_NORETURN (tcomplain ()).
9067 * target-delegates.c: Regenerated.
9068
9069 2014-03-05 Pedro Alves <palves@redhat.com>
9070
9071 PR gdb/16575
9072 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9073 void. Update comment.
9074 (dcache_xfer_memory): Delete.
9075 (dcache_read_memory_partial): New, based on the read bits of
9076 dcache_xfer_memory.
9077 (dcache_update): Add status parameter. Use ULONGEST for len, and
9078 adjust. Discard cache lines if the reason for the update was
9079 error.
9080 * dcache.h (dcache_xfer_memory): Delete declaration.
9081 (dcache_read_memory_partial): New declaration.
9082 (dcache_update): Update prototype.
9083 * target.c (raw_memory_xfer_partial): Update the dcache here.
9084 (memory_xfer_partial_1): Don't handle dcache writes here.
9085
9086 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9087
9088 * remote-sim.c (gdbsim_load): Add const to prog.
9089
9090 2014-03-03 Tom Tromey <tromey@redhat.com>
9091
9092 * elfread.c (probe_key): Change to bfd_data.
9093 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9094 now per-BFD, not per-objfile.
9095 * stap-probe.c (stap_probe_destroy): Update comment.
9096 (handle_stap_probe): Allocate on the per-BFD obstack.
9097
9098 2014-03-03 Tom Tromey <tromey@redhat.com>
9099
9100 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9101 * breakpoint.c (create_longjmp_master_breakpoint): Use
9102 get_probe_address.
9103 (add_location_to_breakpoint, bkpt_probe_insert_location)
9104 (bkpt_probe_remove_location): Update.
9105 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9106 * elfread.c (elf_symfile_relocate_probe): Remove.
9107 (elf_probe_fns): Update.
9108 (insert_exception_resume_breakpoint): Change type of "probe"
9109 parameter to bound_probe.
9110 (check_exception_resume): Update.
9111 * objfiles.c (objfile_relocate1): Don't relocate probes.
9112 * probe.c (bound_probe_s): New typedef.
9113 (parse_probes): Use get_probe_address. Set sal's objfile.
9114 (find_probe_by_pc): Return a bound_probe.
9115 (collect_probes): Return a VEC(bound_probe_s).
9116 (compare_probes): Update.
9117 (gen_ui_out_table_header_info): Change type of "probes"
9118 parameter. Update.
9119 (info_probes_for_ops): Update.
9120 (get_probe_address): New function.
9121 (probe_safe_evaluate_at_pc): Update.
9122 * probe.h (struct probe_ops) <get_probe_address>: New field.
9123 <set_semaphore, clear_semaphore>: Add objfile parameter.
9124 (struct probe) <objfile>: Remove field.
9125 <arch>: New field.
9126 <address>: Update comment.
9127 (struct bound_probe): New.
9128 (find_probe_by_pc): Return a bound_probe.
9129 (get_probe_address): Declare.
9130 * solib-svr4.c (struct probe_and_action) <address>: New field.
9131 (hash_probe_and_action, equal_probe_and_action): Update.
9132 (register_solib_event_probe): Add address parameter.
9133 (solib_event_probe_at): Update.
9134 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9135 get_probe_address.
9136 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9137 (stap_get_probe_address): New function.
9138 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9139 (compile_probe_arg): Update.
9140 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9141 address.
9142 (handle_stap_probe): Don't relocate the probe.
9143 (stap_relocate): Remove.
9144 (stap_gen_info_probes_table_values): Update.
9145 (stap_probe_ops): Remove stap_relocate.
9146 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9147 (debug_sym_probe_fns): Update.
9148 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9149 * symtab.c (init_sal): Use memset.
9150 * symtab.h (struct symtab_and_line) <objfile>: New field.
9151 * tracepoint.c (start_tracing, stop_tracing): Update.
9152
9153 2014-03-03 Tom Tromey <tromey@redhat.com>
9154
9155 * probe.h (parse_probes, find_probe_by_pc)
9156 (find_probes_in_objfile): Fix comments.
9157
9158 2014-03-02 Doug Evans <xdje42@gmail.com>
9159
9160 * infrun.c (handle_signal_stop): Replace test for
9161 TARGET_WAITKIND_STOPPED with an assert.
9162
9163 2014-03-02 Doug Evans <xdje42@gmail.com>
9164
9165 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9166
9167 2014-03-02 Doug Evans <xdje42@gmail.com>
9168
9169 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9170
9171 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9172
9173 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9174
9175 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9176
9177 * i386obsd-nat.c: Include "obsd-nat.h".
9178 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9179 add_target.
9180 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9181
9182 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9183
9184 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9185
9186 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9187
9188 * mips64obsd-nat.c: Include "obsd-nath".
9189 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9190 add_target
9191 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9192
9193 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9194
9195 * amd64obsd-nat.c: Include "obsd-nat,h.
9196 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9197 add_target.
9198 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9199
9200 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9201
9202 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9203 (find_overload_match): Update call to find_oload_champ.
9204 (find_oload_champ_namespace_loop): Likewise
9205
9206 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9207
9208 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9209
9210 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9211 * config/sparc/obsd64.mh: New file.
9212 * sparc64obsd-nat.c: New file.
9213
9214 * obsd-nat.h: New file.
9215 * obsd-nat.c: New file.
9216 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9217 (ALLDEPFILES): Add obsd-nat.c.
9218
9219 2014-02-28 Tom Tromey <tromey@redhat.com>
9220
9221 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9222 * cli-out.h (cli_ui_out_impl): Now const.
9223 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9224 * ui-out.c (struct ui_out) <impl>: Now const.
9225 (default_ui_out_impl): Now const.
9226 (ui_out_new): Make 'impl' parameter const.
9227 * ui-out.h (ui_out_new): Update.
9228
9229 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9230
9231 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9232
9233 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9234
9235 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9236
9237 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9238
9239 Additional PR 8882 fix.
9240 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9241
9242 2014-02-27 Pedro Alves <palves@redhat.com>
9243
9244 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9245 isn't set.
9246
9247 2014-02-27 Pedro Alves <palves@redhat.com>
9248
9249 PR 12702
9250 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9251 * nat/linux-waitpid.c: Include string.h.
9252 (status_to_str): Moved here and made extern.
9253 * nat/linux-waitpid.h (status_to_str): New declaration.
9254
9255 2014-02-27 Hui Zhu <hui@codesourcery.com>
9256
9257 PR 12702
9258 * infrun.c (ptid_match): Move ...
9259 * common/ptid.c (ptid_match): ... here.
9260 * inferior.h (ptid_match): Move ...
9261 * common/ptid.h (ptid_match): ... here.
9262
9263 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9264
9265 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9266 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9267 gdb_target_obs.
9268
9269 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9270
9271 * obsd-tdep.c (obsd_auxv_parse): New function.
9272 (obsd_init_abi): Set auxv_parse.
9273
9274 * gdbarch.sh (auxv_parse): New.
9275 * gdbarch.h: Regenerated.
9276 * gdbarch.c: Regenerated.
9277 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9278
9279 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9280
9281 * guile/scm-value.c (gdbscm_history_append_x): New function.
9282 (value_functions): Add it.
9283
9284 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9285
9286 * dwarf2read.c (attr_value_as_address): New function.
9287 (dwarf2_find_base_address, read_call_site_scope): Use
9288 attr_value_as_address in place of DW_ADDR.
9289 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9290 the low and high addresses. Slight rework of the handling
9291 of the high pc being a constant form, and limit it to
9292 DWARF verson 4 or higher.
9293 (dwarf2_record_block_ranges): Likewise.
9294 (read_partial_die): Likewise.
9295 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9296
9297 2014-02-26 Tom Tromey <tromey@redhat.com>
9298
9299 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9300
9301 2014-02-26 Tom Tromey <tromey@redhat.com>
9302
9303 * elfread.c (elf_read_minimal_symbols): Return early if
9304 minimal symbols have already been read. Add "ei" parameter.
9305 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9306 * minsyms.c (prim_record_minimal_symbol_full): Update.
9307 * objfiles.h (struct objstats) <n_minsyms>: Move...
9308 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9309 * symmisc.c (print_objfile_statistics): Update.
9310
9311 2014-02-26 Tom Tromey <tromey@redhat.com>
9312
9313 * elfread.c (elf_read_minimal_symbols): New function, from
9314 elf_symfile_read.
9315 (elf_symfile_read): Call it.
9316
9317 2014-02-26 Tom Tromey <tromey@redhat.com>
9318
9319 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9320 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9321 (lookup_minimal_symbol_solib_trampoline)
9322 (lookup_minimal_symbol_by_pc_section_1)
9323 (lookup_minimal_symbol_and_objfile): Update.
9324 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9325 Don't allocate a minimal symbol if minsyms have already been read.
9326 (build_minimal_symbol_hash_tables): Update.
9327 (install_minimal_symbols): Do nothing if minsyms already read.
9328 Use the per-BFD obstack.
9329 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9330 * objfiles.c (allocate_objfile): Call
9331 terminate_minimal_symbol_table later.
9332 (have_minimal_symbols): Update.
9333 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9334 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9335 Move from struct objfile.
9336 <minsyms_read>: New field.
9337 (struct objfile) <msymbols, minimal_symbol_count,
9338 msymbol_hash, msymbol_demangled_hash>: Move.
9339 (ALL_OBJFILE_MSYMBOLS): Update.
9340 * symfile.c (read_symbols): Set minsyms_read.
9341 (reread_symbols): Update.
9342 * symmisc.c (dump_objfile, dump_msymbols): Update.
9343
9344 2014-02-26 Tom Tromey <tromey@redhat.com>
9345
9346 * minsyms.c (msymbols_sort): Remove.
9347 * minsyms.h (msymbols_sort): Remove.
9348 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9349 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9350 * elfread.c (elf_symtab_read): Don't add section offsets.
9351 * xcoffread.c (record_minimal_symbol): Don't add section offset
9352 to minimal symbol address.
9353 * somread.c (text_offset, data_offset): Remove.
9354 (som_symtab_read): Don't add section offsets to minimal symbol
9355 addresses.
9356 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9357 Don't add section offsets to minimal symbols.
9358 * coffread.c (coff_symtab_read): Don't add section offsets
9359 to minimal symbol addresses.
9360 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9361 to minimal symbol addresses.
9362 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9363 section offset to minimal symbol addresses.
9364 * mdebugread.c (parse_partial_symbols): Don't add section
9365 offset to minimal symbol addresses.
9366 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9367 offset to minimal symbol addresses.
9368
9369 2014-02-26 Tom Tromey <tromey@redhat.com>
9370
9371 * ada-lang.c (ada_main_name): Update.
9372 (ada_add_standard_exceptions): Update.
9373 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9374 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9375 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9376 * auxv.c (ld_so_xfer_auxv): Update.
9377 * avr-tdep.c (avr_scan_prologue): Update.
9378 * ax-gdb.c (gen_var_ref): Update.
9379 * blockframe.c (get_pc_function_start)
9380 (find_pc_partial_function_gnu_ifunc): Update.
9381 * breakpoint.c (create_overlay_event_breakpoint)
9382 (create_longjmp_master_breakpoint)
9383 (create_std_terminate_master_breakpoint)
9384 (create_exception_master_breakpoint): Update.
9385 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9386 * c-valprint.c (c_val_print): Update.
9387 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9388 * common/agent.c (agent_look_up_symbols): Update.
9389 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9390 * dwarf2loc.c (call_site_to_target_addr): Update.
9391 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9392 * elfread.c (elf_gnu_ifunc_record_cache)
9393 (elf_gnu_ifunc_resolve_by_got): Update.
9394 * findvar.c (default_read_var_value): Update.
9395 * frame.c (inside_main_func): Update.
9396 * frv-tdep.c (frv_frame_this_id): Update.
9397 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9398 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9399 Update.
9400 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9401 (hppa_hpux_find_dummy_bpaddr): Update.
9402 * hppa-tdep.c (hppa_symbol_address): Update.
9403 * infcmd.c (until_next_command): Update.
9404 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9405 Update.
9406 * linespec.c (minsym_found, add_minsym): Update.
9407 * linux-nat.c (get_signo): Update.
9408 * linux-thread-db.c (inferior_has_bug): Update.
9409 * m32c-tdep.c (m32c_return_value)
9410 (m32c_m16c_address_to_pointer): Update.
9411 * m32r-tdep.c (m32r_frame_this_id): Update.
9412 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9413 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9414 * maint.c (maintenance_translate_address): Update.
9415 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9416 (frob_address): New function.
9417 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9418 frob_address. Rename parameter to "pc_in".
9419 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9420 addresses.
9421 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9422 Update.
9423 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9424 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9425 * objc-lang.c (find_objc_msgsend): Update.
9426 * objfiles.c (objfile_relocate1): Update.
9427 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9428 * p-valprint.c (pascal_val_print): Update.
9429 * parse.c (write_exp_msymbol): Update.
9430 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9431 (ppc_elfv2_skip_entrypoint): Update.
9432 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9433 * printcmd.c (build_address_symbolic, msym_info)
9434 (address_info): Update.
9435 * proc-service.c (ps_pglobal_lookup): Update.
9436 * psymtab.c (find_pc_sect_psymtab_closer)
9437 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9438 Change msymbol parameter to bound_minimal_symbol.
9439 * ravenscar-thread.c (get_running_thread_id): Update.
9440 * remote.c (remote_check_symbols): Update.
9441 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9442 address.
9443 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9444 * solib-dsbt.c (lm_base): Update.
9445 * solib-frv.c (lm_base, main_got): Update.
9446 * solib-irix.c (locate_base): Update.
9447 * solib-som.c (som_solib_create_inferior_hook)
9448 (link_map_start): Update.
9449 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9450 * solib-svr4.c (elf_locate_base, enable_break): Update.
9451 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9452 (flush_ea_cache): Update.
9453 * stabsread.c (define_symbol, scan_file_globals): Update.
9454 * stack.c (find_frame_funname): Update.
9455 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9456 (debug_qf_find_pc_sect_symtab): Update.
9457 * symfile.c (simple_read_overlay_table)
9458 (simple_overlay_update): Update.
9459 * symfile.h (struct quick_symbol_functions)
9460 <find_pc_sect_symtab>: Change type of msymbol to
9461 bound_minimal_symbol.
9462 * symmisc.c (dump_msymbols): Update.
9463 * symtab.c (find_pc_sect_symtab_via_partial)
9464 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9465 (search_symbols, print_msymbol_info): Update.
9466 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9467 (MSYMBOL_VALUE_ADDRESS): Redefine.
9468 (BMSYMBOL_VALUE_ADDRESS): New macro.
9469 * tracepoint.c (scope_info): Update.
9470 * tui/tui-disasm.c (tui_find_disassembly_address)
9471 (tui_get_begin_asm_address): Update.
9472 * valops.c (find_function_in_inferior): Update.
9473 * value.c (value_static_field, value_fn_field): Update.
9474
9475 2014-02-26 Tom Tromey <tromey@redhat.com>
9476
9477 * ada-lang.c (ada_update_initial_language): Update.
9478 (ada_main_name, ada_has_this_exception_support): Update.
9479 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9480 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9481 * arm-tdep.c (arm_skip_stub): Update.
9482 * auxv.c (ld_so_xfer_auxv): Update.
9483 * avr-tdep.c (avr_scan_prologue): Update.
9484 * ax-gdb.c (gen_var_ref): Update.
9485 * breakpoint.c (struct breakpoint_objfile_data)
9486 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9487 type to bound_minimal_symbol.
9488 (create_overlay_event_breakpoint)
9489 (create_longjmp_master_breakpoint)
9490 (create_std_terminate_master_breakpoint)
9491 (create_exception_master_breakpoint): Update.
9492 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9493 * c-exp.y (classify_name): Update.
9494 * coffread.c (coff_symfile_read): Update.
9495 * common/agent.c (agent_look_up_symbols): Update.
9496 * d-lang.c (d_main_name): Update.
9497 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9498 * dec-thread.c (enable_dec_thread): Update.
9499 * dwarf2loc.c (call_site_to_target_addr): Update.
9500 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9501 * eval.c (evaluate_subexp_standard): Update.
9502 * findvar.c (struct minsym_lookup_data) <result>: Change type
9503 to bound_minimal_symbol.
9504 <objfile>: Remove.
9505 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9506 * frame.c (inside_main_func): Update.
9507 * frv-tdep.c (frv_frame_this_id): Update.
9508 * gcore.c (call_target_sbrk): Update.
9509 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9510 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9511 Update.
9512 * go-lang.c (go_main_name): Update.
9513 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9514 (hppa_hpux_find_import_stub_for_addr): Update.
9515 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9516 Update. Change return type.
9517 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9518 type.
9519 * jit.c (jit_breakpoint_re_set_internal): Update.
9520 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9521 Update.
9522 * linux-nat.c (get_signo): Update.
9523 * linux-thread-db.c (inferior_has_bug): Update
9524 * m32c-tdep.c (m32c_return_value)
9525 (m32c_m16c_address_to_pointer): Update.
9526 * m32r-tdep.c (m32r_frame_this_id): Update.
9527 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9528 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9529 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9530 lookup_minimal_symbol. Change return type.
9531 (lookup_minimal_symbol): Remove.
9532 (lookup_bound_minimal_symbol): Update.
9533 (lookup_minimal_symbol_text): Change return type.
9534 (lookup_minimal_symbol_solib_trampoline): Change return type.
9535 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9536 (lookup_minimal_symbol_solib_trampoline): Change return type.
9537 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9538 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9539 (value_nsstring, find_imps): Update.
9540 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9541 * p-lang.c (pascal_main_name): Update.
9542 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9543 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9544 * proc-service.c (ps_pglobal_lookup): Update.
9545 * ravenscar-thread.c (get_running_thread_msymbol): Change
9546 return type.
9547 (has_ravenscar_runtime, get_running_thread_id): Update.
9548 * remote.c (remote_check_symbols): Update.
9549 * sol-thread.c (ps_pglobal_lookup): Update.
9550 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9551 * solib-dsbt.c (lm_base): Update.
9552 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9553 Update.
9554 * solib-irix.c (locate_base): Update.
9555 * solib-som.c (som_solib_create_inferior_hook)
9556 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9557 Update.
9558 * solib-spu.c (spu_enable_break): Update.
9559 * solib-svr4.c (elf_locate_base, enable_break): Update.
9560 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9561 (flush_ea_cache): Update.
9562 * stabsread.c (define_symbol): Update.
9563 * symfile.c (simple_read_overlay_table): Update.
9564 * symtab.c (find_pc_sect_line): Update.
9565 * tracepoint.c (scope_info): Update.
9566 * tui-disasm.c (tui_get_begin_asm_address): Update.
9567 * value.c (value_static_field): Update.
9568
9569 2014-02-26 Tom Tromey <tromey@redhat.com>
9570
9571 * minsyms.c (prim_record_minimal_symbol_full): Use
9572 SET_MSYMBOL_VALUE_ADDRESS.
9573 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9574 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9575 SET_MSYMBOL_VALUE_ADDRESS.
9576 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9577 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9578
9579 2014-02-26 Tom Tromey <tromey@redhat.com>
9580
9581 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9582 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9583 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9584 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9585 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9586 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9587 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9588 * ada-lang.c (ada_main_name): Update.
9589 (ada_lookup_simple_minsym): Update.
9590 (ada_make_symbol_completion_list): Update.
9591 (ada_add_standard_exceptions): Update.
9592 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9593 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9594 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9595 * arm-tdep.c (skip_prologue_function): Update.
9596 (arm_skip_stack_protector, arm_skip_stub): Update.
9597 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9598 (arm_wince_skip_main_prologue): Update.
9599 * auxv.c (ld_so_xfer_auxv): Update.
9600 * avr-tdep.c (avr_scan_prologue): Update.
9601 * ax-gdb.c (gen_var_ref): Update.
9602 * block.c (call_site_for_pc): Update.
9603 * blockframe.c (get_pc_function_start): Update.
9604 (find_pc_partial_function_gnu_ifunc): Update.
9605 * breakpoint.c (create_overlay_event_breakpoint): Update.
9606 (create_longjmp_master_breakpoint): Update.
9607 (create_std_terminate_master_breakpoint): Update.
9608 (create_exception_master_breakpoint): Update.
9609 (resolve_sal_pc): Update.
9610 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9611 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9612 Update.
9613 * c-valprint.c (c_val_print): Update.
9614 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9615 * coffread.c (coff_symfile_read): Update.
9616 * common/agent.c (agent_look_up_symbols): Update.
9617 * dbxread.c (find_stab_function_addr): Update.
9618 (end_psymtab): Update.
9619 * dwarf2loc.c (call_site_to_target_addr): Update.
9620 (func_verify_no_selftailcall): Update.
9621 (tailcall_dump): Update.
9622 (call_site_find_chain_1): Update.
9623 (dwarf_expr_reg_to_entry_parameter): Update.
9624 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9625 (elf_gnu_ifunc_resolve_by_got): Update.
9626 * f-valprint.c (info_common_command): Update.
9627 * findvar.c (read_var_value): Update.
9628 * frame.c (get_prev_frame_1): Update.
9629 (inside_main_func): Update.
9630 * frv-tdep.c (frv_skip_main_prologue): Update.
9631 (frv_frame_this_id): Update.
9632 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9633 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9634 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9635 (gnuv3_skip_trampoline): Update.
9636 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9637 (hppa64_hpux_in_solib_call_trampoline): Update.
9638 (hppa_hpux_skip_trampoline_code): Update.
9639 (hppa64_hpux_search_dummy_call_sequence): Update.
9640 (hppa_hpux_find_import_stub_for_addr): Update.
9641 (hppa_hpux_find_dummy_bpaddr): Update.
9642 * hppa-tdep.c (hppa_symbol_address)
9643 (hppa_lookup_stub_minimal_symbol): Update.
9644 * i386-tdep.c (i386_skip_main_prologue): Update.
9645 (i386_pe_skip_trampoline_code): Update.
9646 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9647 * infcall.c (get_function_name): Update.
9648 * infcmd.c (until_next_command): Update.
9649 * jit.c (jit_breakpoint_re_set_internal): Update.
9650 (jit_inferior_init): Update.
9651 * linespec.c (minsym_found): Update.
9652 (add_minsym): Update.
9653 * linux-fork.c (info_checkpoints_command): Update.
9654 * linux-nat.c (get_signo): Update.
9655 * linux-thread-db.c (inferior_has_bug): Update.
9656 * m32c-tdep.c (m32c_return_value): Update.
9657 (m32c_m16c_address_to_pointer): Update.
9658 (m32c_m16c_pointer_to_address): Update.
9659 * m32r-tdep.c (m32r_frame_this_id): Update.
9660 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9661 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9662 * maint.c (maintenance_translate_address): Update.
9663 * minsyms.c (add_minsym_to_hash_table): Update.
9664 (add_minsym_to_demangled_hash_table): Update.
9665 (msymbol_objfile): Update.
9666 (lookup_minimal_symbol): Update.
9667 (iterate_over_minimal_symbols): Update.
9668 (lookup_minimal_symbol_text): Update.
9669 (lookup_minimal_symbol_by_pc_name): Update.
9670 (lookup_minimal_symbol_solib_trampoline): Update.
9671 (lookup_minimal_symbol_by_pc_section_1): Update.
9672 (lookup_minimal_symbol_and_objfile): Update.
9673 (prim_record_minimal_symbol_full): Update.
9674 (compare_minimal_symbols): Update.
9675 (compact_minimal_symbols): Update.
9676 (build_minimal_symbol_hash_tables): Update.
9677 (install_minimal_symbols): Update.
9678 (terminate_minimal_symbol_table): Update.
9679 (find_solib_trampoline_target): Update.
9680 (minimal_symbol_upper_bound): Update.
9681 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9682 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9683 (mips_skip_pic_trampoline_code): Update.
9684 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9685 * objc-lang.c (selectors_info): Update.
9686 (classes_info): Update.
9687 (find_methods): Update.
9688 (find_imps): Update.
9689 (find_objc_msgsend): Update.
9690 * objfiles.c (objfile_relocate1): Update.
9691 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9692 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9693 * p-valprint.c (pascal_val_print): Update.
9694 * parse.c (write_exp_msymbol): Update.
9695 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9696 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9697 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9698 * printcmd.c (build_address_symbolic): Update.
9699 (sym_info): Update.
9700 (address_info): Update.
9701 * proc-service.c (ps_pglobal_lookup): Update.
9702 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9703 (find_pc_sect_psymtab): Update.
9704 * python/py-framefilter.c (py_print_frame): Update.
9705 * ravenscar-thread.c (get_running_thread_id): Update.
9706 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9707 Update.
9708 * remote.c (remote_check_symbols): Update.
9709 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9710 (rs6000_skip_trampoline_code): Update.
9711 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9712 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9713 * solib-dsbt.c (lm_base): Update.
9714 * solib-frv.c (lm_base): Update.
9715 (main_got): Update.
9716 * solib-irix.c (locate_base): Update.
9717 * solib-som.c (som_solib_create_inferior_hook): Update.
9718 (som_solib_desire_dynamic_linker_symbols): Update.
9719 (link_map_start): Update.
9720 * solib-spu.c (spu_enable_break): Update.
9721 (ocl_enable_break): Update.
9722 * solib-svr4.c (elf_locate_base): Update.
9723 (enable_break): Update.
9724 * spu-tdep.c (spu_get_overlay_table): Update.
9725 (spu_catch_start): Update.
9726 (flush_ea_cache): Update.
9727 * stabsread.c (define_symbol): Update.
9728 (scan_file_globals): Update.
9729 * stack.c (find_frame_funname): Update.
9730 (frame_info): Update.
9731 * symfile.c (simple_read_overlay_table): Update.
9732 (simple_overlay_update): Update.
9733 * symmisc.c (dump_msymbols): Update.
9734 * symtab.c (fixup_section): Update.
9735 (find_pc_sect_line): Update.
9736 (skip_prologue_sal): Update.
9737 (search_symbols): Update.
9738 (print_msymbol_info): Update.
9739 (rbreak_command): Update.
9740 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9741 (completion_list_objc_symbol): Update.
9742 (default_make_symbol_completion_list_break_on): Update.
9743 * tracepoint.c (scope_info): Update.
9744 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9745 (tui_get_begin_asm_address): Update.
9746 * valops.c (find_function_in_inferior): Update.
9747 * value.c (value_static_field): Update.
9748 (value_fn_field): Update.
9749
9750 2014-02-26 Tom Tromey <tromey@redhat.com>
9751
9752 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9753 bound minimal symbols. Move code that knows about minsym
9754 table layout...
9755 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9756 function.
9757 * minsyms.h (minimal_symbol_upper_bound): Declare.
9758 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9759 minimal_symbol_upper_bound.
9760
9761 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9762
9763 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9764 Use the type's name if its basic type does not have a tag.
9765
9766 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9767
9768 * dwarf2read.c (read_subrange_type): Add comment.
9769
9770 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9771
9772 * dwarf2read.c (update_enumeration_type_from_children): New
9773 function, mostly extracted from process_structure_scope.
9774 (read_enumeration_type): Call update_enumeration_type_from_children.
9775 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9776 and flag_flag_enum fields.
9777
9778 2014-02-26 Pedro Alves <palves@redhat.com>
9779
9780 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9781 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9782 to_xfer_partial method.
9783
9784 2014-02-26 Pedro Alves <palves@redhat.com>
9785
9786 * target.c (complete_target_initialization): Don't install
9787 default_xfer_partial as to_xfer_partial hook.
9788 (nomemory): Delete.
9789 (update_current_target): Don't INHERIT nor de_fault
9790 deprecated_xfer_memory. Delete de_fault macro.
9791 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9792 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9793 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9794 field.
9795
9796 2014-02-26 Pedro Alves <palves@redhat.com>
9797
9798 * go32-nat.c (my_write_child): New function.
9799 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9800 (go32_xfer_partial): New function.
9801 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9802 Instead install a to_xfer_partial hook.
9803
9804 2014-02-26 Pedro Alves <palves@redhat.com>
9805
9806 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9807 to_xfer_partial helper. Rewrite.
9808 (procfs_xfer_partial): New function.
9809 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9810 Install a to_xfer_partial hook.
9811
9812 2014-02-26 Pedro Alves <palves@redhat.com>
9813
9814 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9815 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9816 (m32r_xfer_partial): New function.
9817 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9818 Install a to_xfer_partial hook.
9819
9820 2014-02-26 Pedro Alves <palves@redhat.com>
9821
9822 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9823 helper.
9824 (mips_xfer_partial): New function.
9825 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9826 hook. Install a to_xfer_partial hook.
9827
9828 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9829
9830 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9831 * gdbtypes.c (create_array_type_with_stride): New function,
9832 renaming create_array_type, but with an added parameter
9833 called "bit_stride".
9834 (create_array_type): Re-implement using
9835 create_array_type_with_stride.
9836 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9837 and DW_AT_bit_stride attributes.
9838
9839 2014-02-26 Pedro Alves <palves@redhat.com>
9840
9841 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9842 task-specific breakpoints.
9843
9844 2014-02-25 Pedro Alves <palves@redhat.com>
9845
9846 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9847 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9848
9849 2014-02-25 Stan Shebs <stan@codesourcery.com>
9850
9851 * defs.h: Annotate comments for Doxygen.
9852
9853 2014-02-25 Tom Tromey <tromey@redhat.com>
9854
9855 * target.h (target_ignore): Don't declare.
9856 * target.c (target_ignore): Remove.
9857
9858 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9859
9860 PR gdb/16626
9861 * auto-load.c (auto_load_objfile_script_1): Change filename to
9862 debugfile.
9863
9864 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9865
9866 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9867 documentation. Adjust prototype to match the target_ops
9868 to_xfer_partial method. Adjust implementation accordingly.
9869
9870 2014-02-25 Hui Zhu <hui@codesourcery.com>
9871
9872 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9873 to_traceframe_info.
9874
9875 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9876
9877 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9878 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9879 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9880 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9881 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9882 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9883 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9884 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9885 New constants.
9886 (rl78_register_type): Use a data pointer type for SP and
9887 new pseudo registers mentioned above. Use a 16 bit integer
9888 type for all other register pairs.
9889 (rl78_register_name, rl78_g10_register_name): Update for
9890 new pseudo registers.
9891 (rl78_pseudo_register_read): Likewise.
9892 (rl78_pseudo_register_write): Likewise.
9893 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9894 to the newly added pseudo registers.
9895
9896 2014-02-24 Doug Evans <dje@google.com>
9897
9898 * value.c (record_latest_value): Fix comment.
9899 * printcmd.c (print_command_1): Remove code to handle -1 return from
9900 record_latest_value.
9901
9902 2014-02-24 Pedro Alves <palves@redhat.com>
9903
9904 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9905 deprecated_xfer_memory hook.
9906 (procfs_xfer_partial): Call procfs_xfer_memory instead
9907 of the deprecated_xfer_memory target hook.
9908 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9909 helper.
9910
9911 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9912
9913 * windows-nat.c (windows_xfer_shared_libraries): Return
9914 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9915 requested object is TARGET_OBJECT_LIBRARIES.
9916
9917 2014-02-24 Yao Qi <yao@codesourcery.com>
9918
9919 * target.h (enum target_xfer_status)
9920 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9921 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9922 explicitly. New.
9923 * corefile.c (memory_error_message): User updated.
9924 * exec.c (section_table_read_available_memory): Likewise.
9925 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9926 * target.c (target_xfer_status_to_string): Likewise.
9927 (raw_memory_xfer_partial): Likewise.
9928 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9929 * valops.c (read_value_memory): Likewise.
9930 * exec.h: Update comments.
9931
9932 2014-02-24 Yao Qi <yao@codesourcery.com>
9933
9934 * target.c (target_xfer_status_to_string): Rename argument err
9935 to status.
9936 * target.h (target_xfer_status_to_string): Update declaration.
9937 Replace target_xfer_error_to_string with
9938 target_xfer_status_to_string in comment.
9939
9940 2014-02-24 Yao Qi <yao@codesourcery.com>
9941
9942 * mips-linux-nat.c (super_close): Update its type.
9943 (mips_linux_close): Pass 'self' to super_close.
9944
9945 2014-02-24 Yao Qi <yao@codesourcery.com>
9946
9947 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9948 * corefile.c (read_memory): Adjusted.
9949 * target.c (target_write_with_progress): Adjusted.
9950
9951 2014-02-23 Yao Qi <yao@codesourcery.com>
9952
9953 Revert two patches:
9954
9955 2013-10-25 Yao Qi <yao@codesourcery.com>
9956
9957 * remote.c (remote_traceframe_info): Return early if
9958 traceframe is not selected.
9959
9960 2013-07-19 Yao Qi <yao@codesourcery.com>
9961
9962 * target.c (update_current_target): Change the default action
9963 of 'to_traceframe_info' from tcomplain to return_zero.
9964 * target.h (struct target_ops) <to_traceframe_info>: Add more
9965 comments.
9966
9967 2014-02-23 Yao Qi <yao@codesourcery.com>
9968
9969 * valops.c (read_value_memory): Rewrite it. Call
9970 target_xfer_partial in a loop.
9971 * exec.h (section_table_available_memory): Remove declaration.
9972 Move comments to ...
9973 * exec.c (section_table_available_memory): ... here. Make it
9974 static.
9975
9976 2014-02-23 Yao Qi <yao@codesourcery.com>
9977
9978 * exec.c (section_table_read_available_memory): New function.
9979 * exec.h (section_table_read_available_memory): Declare.
9980 * ctf.c (ctf_xfer_partial): Call
9981 section_table_read_available_memory.
9982 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9983
9984 2014-02-23 Yao Qi <yao@codesourcery.com>
9985
9986 * ctf.c (ctf_xfer_partial): Move code to ...
9987 * exec.c (exec_read_partial_read_only): ... it. New function.
9988 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9989 * tracefile.c: Include "exec.h".
9990 * exec.h (exec_read_partial_read_only): Declare.
9991
9992 2014-02-23 Yao Qi <yao@codesourcery.com>
9993
9994 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9995 (tfile_has_memory): Remove.
9996 (init_tfile_ops): Don't set fields to_has_all_memory and
9997 to_has_memory of tfile_ops.
9998 * tracefile.c (tracefile_has_all_memory): New function.
9999 (tracefile_has_memory): New function.
10000 (init_tracefile_ops): Initialize fields to_has_all_memory and
10001 to_has_memory of 'ops'.
10002
10003 2014-02-23 Yao Qi <yao@codesourcery.com>
10004
10005 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10006 (ctf_thread_alive, ctf_get_trace_status): Remove.
10007 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10008 init_tracefile_ops.
10009 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10010 (tfile_has_stack, tfile_has_registers): Remove.
10011 (tfile_thread_alive): Remove.
10012 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10013 init_tracefile_ops.
10014 * tracefile.c (tracefile_has_stack): New function.
10015 (tracefile_has_registers): New function.
10016 (tracefile_thread_alive): New function.
10017 (tracefile_get_trace_status): New function.
10018 (init_tracefile_ops): New function.
10019 * tracefile.h (init_tracefile_ops): Declare.
10020
10021 2014-02-23 Yao Qi <yao@codesourcery.com>
10022
10023 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10024 (O_LARGEFILE): Likewise.
10025 (tfile_ops): Likewise.
10026 (TRACE_HEADER_SIZE): Likewise.
10027 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10028 (cur_data_size): Likewise.
10029 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10030 (tfile_close, tfile_files_info): Likewise.
10031 (tfile_get_trace_status): Likewise.
10032 (tfile_get_tracepoint_status): Likewise.
10033 (tfile_get_traceframe_address): Likewise.
10034 (tfile_trace_find, match_blocktype): Likewise.
10035 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10036 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10037 (tfile_get_trace_state_variable_value): Likewise.
10038 (tfile_has_all_memory, tfile_has_memory): Likewise.
10039 (tfile_has_stack, tfile_has_registers): Likewise.
10040 (tfile_thread_alive, build_traceframe_info): Likewise.
10041 (tfile_traceframe_info, init_tfile_ops): Likewise.
10042 (_initialize_tracepoint): Don't call init_tfile_ops
10043 and add_target_with_completer.
10044 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10045 exec.h, completer.h and filenames.h.
10046 (_initialize_tracefile_tfile): New function.
10047
10048 2014-02-23 Yao Qi <yao@codesourcery.com>
10049
10050 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10051 tracefile-tfile.o.
10052 (HFILES_NO_SRCDIR): Add tracefile.h.
10053 * ctf.c: Include "tracefile.h".
10054 * tracefile.h: New file.
10055 * tracefile.c: New file
10056 * tracefile-tfile.c: New file.
10057 * tracepoint.c: Include "tracefile.h".
10058 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10059 (stop_reason_names): Add const.
10060 (trace_file_writer_xfree): Move it to tracefile.c.
10061 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10062 (trace_save_ctf): Likewise.
10063 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10064 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10065 (tfile_write_header, tfile_write_regblock_type): Likewise.
10066 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10067 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10068 (tfile_write_raw_data, tfile_end): Likewise.
10069 (tfile_trace_file_writer_new): Likewise.
10070 (free_uploaded_tp): Make it extern.
10071 (free_uploaded_tsv): Make it extern.
10072 (_initialize_tracepoint): Move code to register command 'tsave'
10073 to tracefile.c.
10074 * tracepoint.h (stop_reason_names): Declare.
10075 (struct trace_frame_write_ops): Move it to tracefile.h.
10076 (struct trace_file_write_ops): Likewise.
10077 (struct trace_file_writer): Likewise.
10078 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10079
10080 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10081
10082 PR gdb/16594
10083 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10084 process name.
10085 (get_cores_used_by_process): New parameter num_cores, use it.
10086 (linux_xfer_osdata_processes): Pass num_cores to it.
10087 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10088 process name.
10089
10090 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10091
10092 * target.c (memory_xfer_partial): Fix length arg in call to
10093 breakpoint_xfer_memory.
10094
10095 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10096
10097 PR tdep/16397
10098 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10099 number comes after the + or - signs. Adjust length of register
10100 name to be extracted.
10101
10102 2014-02-20 Tom Tromey <tromey@redhat.com>
10103
10104 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10105 (ada_varobj_ops): Mark "extern".
10106
10107 2014-02-20 Tom Tromey <tromey@redhat.com>
10108
10109 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10110
10111 2014-02-20 Doug Evans <xdje42@gmail.com>
10112
10113 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10114 All callers updated.
10115 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10116 All callers updated.
10117 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10118 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10119
10120 2014-02-20 lin zuojian <manjian2006@gmail.com>
10121 Joel Brobecker <brobecker@adacore.com>
10122 Doug Evans <xdje42@gmail.com>
10123
10124 PR symtab/16581
10125 * dwarf2read.c (struct die_info): New member in_process.
10126 (reset_die_in_process): New function.
10127 (process_die): Set it at the start, reset when returning.
10128 (inherit_abstract_dies): Only call process_die if origin_child_die
10129 not already being processed.
10130
10131 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10132
10133 * windows-nat.c (handle_unload_dll): Add function documentation.
10134 (do_initial_windows_stuff): Add comment explaining why we wait
10135 until after inferior initialization has finished before
10136 processing all DLLs.
10137
10138 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10139
10140 * windows-nat.c (get_module_name): Delete.
10141 (windows_get_exec_module_filename): New function, mostly
10142 inspired from get_module_name.
10143 (windows_pid_to_exec_file): Replace call to get_module_name
10144 by call to windows_get_exec_module_filename.
10145
10146 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10147
10148 * windows-nat.c (handle_load_dll): Rewrite this function's
10149 introductory comment. Remove code using get_module_name
10150 to get the DLL's name.
10151
10152 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10153
10154 * windows-nat.c (get_windows_debug_event): Ignore
10155 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10156 if windows_initialization_done == 0.
10157 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10158 Adjust implementation to always load all DLLs.
10159 (do_initial_windows_stuff): Replace call to
10160 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10161
10162 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10163
10164 * windows-nat.c (_initialize_windows_nat): Deprecate the
10165 "dll-symbols" command. Turn the "add-shared-symbol-files"
10166 and "assf" aliases into commands, and deprecate them as well.
10167 * NEWS: Add entry explaining that "dll-symbols" and its two
10168 aliases are now deprecated.
10169
10170 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10171
10172 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10173 new-line in debug string. Remove trailing spaces.
10174
10175 2014-02-19 Stan Shebs <stan@codesourcery.com>
10176
10177 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10178
10179 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10180
10181 * NEWS: Add entry for the new feature
10182 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10183 and class values.
10184
10185 2014-02-19 Stan Shebs <stan@codesourcery.com>
10186
10187 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10188
10189 2014-02-19 Pedro Alves <palves@redhat.com>
10190
10191 * common/ptid.h (struct ptid): Mention that process_stratum
10192 targets should prefer ptid.lwp.
10193
10194 2014-02-19 Pedro Alves <palves@redhat.com>
10195
10196 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10197 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10198 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10199 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10200 store remote thread ids rather than ptid.tid.
10201 (_initialize_remote): Adjust.
10202
10203 2014-02-19 Tom Tromey <tromey@redhat.com>
10204
10205 * target.c (target_get_unwinder): Rewrite.
10206 (target_get_tailcall_unwinder): Rewrite.
10207 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10208 (record_btrace_to_get_tailcall_unwinder): New function.
10209 (init_record_btrace_ops): Update.
10210 * target.h (struct target_ops) <to_get_unwinder,
10211 to_get_tailcall_unwinder>: Now function pointers. Use
10212 TARGET_DEFAULT_RETURN.
10213
10214 2014-02-19 Tom Tromey <tromey@redhat.com>
10215
10216 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10217 argument.
10218 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10219
10220 2014-02-19 Tom Tromey <tromey@redhat.com>
10221
10222 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10223 directly.
10224 * target-delegates.c: Rebuild.
10225 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10226 TARGET_DEFAULT_FUNC.
10227 * target.c (default_target_decr_pc_after_break): Rename from
10228 forward_target_decr_pc_after_break. Simplify.
10229 (target_decr_pc_after_break): Rely on delegation.
10230
10231 2014-02-19 Tom Tromey <tromey@redhat.com>
10232
10233 * target.c (update_current_target): Do not INHERIT to_doc or
10234 to_magic. Do not de_fault to_open or to_close.
10235
10236 2014-02-19 Tom Tromey <tromey@redhat.com>
10237
10238 * gcore.h (objfile_find_memory_regions): Declare.
10239 * gcore.c (objfile_find_memory_regions): No longer static. Add
10240 "self" argument.
10241 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10242 * exec.c: Include gcore.h.
10243 (exec_set_find_memory_regions): Remove.
10244 (exec_find_memory_regions): Remove.
10245 (exec_do_find_memory_regions): Remove.
10246 (init_exec_ops): Update.
10247 * defs.h (exec_set_find_memory_regions): Remove.
10248
10249 2014-02-19 Tom Tromey <tromey@redhat.com>
10250
10251 * target-delegates.c: Rebuild.
10252 * target.h (struct target_ops) <to_extra_thread_info,
10253 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10254 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10255 not 0, in TARGET_DEFAULT_RETURN.
10256
10257 2014-02-19 Tom Tromey <tromey@redhat.com>
10258
10259 * target.c (complete_target_initialization): Remove casts. Use
10260 return_zero_has_execution.
10261 (return_zero): Add "ignore" argument.
10262 (return_zero_has_execution): New function.
10263 (init_dummy_target): Remove casts. Use
10264 return_zero_has_execution.
10265
10266 2014-02-19 Tom Tromey <tromey@redhat.com>
10267
10268 * target.c (update_current_target): Update comments. Do not
10269 INHERIT to_stratum.
10270
10271 2014-02-19 Tom Tromey <tromey@redhat.com>
10272
10273 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10274 needed.
10275 * corelow.c (core_read_description): Delegate when needed.
10276 * remote.c (remote_read_description): Delegate when needed.
10277 * target-delegates.c: Rebuild.
10278 * target.c (target_read_description): Rewrite.
10279 * target.h (struct target_ops) <to_read_description>: Update
10280 comment. Use TARGET_DEFAULT_RETURN.
10281
10282 2014-02-19 Tom Tromey <tromey@redhat.com>
10283
10284 * target-delegates.c: Rebuild.
10285 * target.c (update_current_target): Don't inherit or default
10286 to_can_run.
10287 (find_default_run_target): Check against delegate_can_run.
10288 * target.h (struct target_ops) <to_can_run>: Use
10289 TARGET_DEFAULT_RETURN.
10290
10291 2014-02-19 Tom Tromey <tromey@redhat.com>
10292
10293 * target-delegates.c: Rebuild.
10294 * target.c (target_disconnect): Unconditionally delegate.
10295 * target.h (struct target_ops) <to_disconnect>: Use
10296 TARGET_DEFAULT_NORETURN.
10297
10298 2014-02-19 Tom Tromey <tromey@redhat.com>
10299
10300 * record.c (record_stop): Unconditionally delegate.
10301 * target-delegates.c: Rebuild.
10302 * target.c (target_stop_recording): Unconditionally delegate.
10303 * target.h (struct target_ops) <to_stop_recording>: Use
10304 TARGET_DEFAULT_IGNORE.
10305
10306 2014-02-19 Tom Tromey <tromey@redhat.com>
10307
10308 * target-delegates.c: Rebuild.
10309 * target.c (target_enable_btrace): Unconditionally delegate.
10310 * target.h (struct target_ops) <to_enable_btrace>: Use
10311 TARGET_DEFAULT_NORETURN.
10312
10313 2014-02-19 Tom Tromey <tromey@redhat.com>
10314
10315 * target-delegates.c: Rebuild.
10316 * target.c (target_read_btrace): Unconditionally delegate.
10317 * target.h (struct target_ops) <to_read_btrace>: Use
10318 TARGET_DEFAULT_NORETURN.
10319
10320 2014-02-19 Tom Tromey <tromey@redhat.com>
10321
10322 * target-delegates.c: Rebuild.
10323 * target.c (target_teardown_btrace): Unconditionally delegate.
10324 * target.h (struct target_ops) <to_teardown_btrace>: Use
10325 TARGET_DEFAULT_NORETURN.
10326
10327 2014-02-19 Tom Tromey <tromey@redhat.com>
10328
10329 * target-delegates.c: Rebuild.
10330 * target.c (target_disable_btrace): Unconditionally delegate.
10331 * target.h (struct target_ops) <to_disable_btrace>: Use
10332 TARGET_DEFAULT_NORETURN.
10333
10334 2014-02-19 Tom Tromey <tromey@redhat.com>
10335
10336 * target-delegates.c: Rebuild.
10337 * target.c (default_search_memory): New function.
10338 (simple_search_memory): Update comment.
10339 (target_search_memory): Unconditionally delegate.
10340 * target.h (struct target_ops) <to_search_memory>: Use
10341 TARGET_DEFAULT_FUNC.
10342
10343 2014-02-19 Tom Tromey <tromey@redhat.com>
10344
10345 * auxv.c (default_auxv_parse): No longer static.
10346 (target_auxv_parse): Unconditionally delegate.
10347 * auxv.h (default_auxv_parse): Declare.
10348 * target-delegates.c: Rebuild.
10349 * target.c: Include auxv.h.
10350 * target.h (struct target_ops) <to_auxv_parse>: 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_memory_map): Unconditionally delegate.
10357 * target.h (struct target_ops) <to_memory_map>: 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_thread_alive): Unconditionally delegate.
10364 * target.h (struct target_ops) <to_thread_alive>: Use
10365 TARGET_DEFAULT_RETURN.
10366
10367 2014-02-19 Tom Tromey <tromey@redhat.com>
10368
10369 * target-delegates.c: Rebuild.
10370 * target.c (target_save_record): Unconditionally delegate.
10371 * target.h (struct target_ops) <to_save_record>: Use
10372 TARGET_DEFAULT_NORETURN.
10373
10374 2014-02-19 Tom Tromey <tromey@redhat.com>
10375
10376 * target-delegates.c: Rebuild.
10377 * target.c (target_delete_record): Unconditionally delegate.
10378 * target.h (struct target_ops) <to_delete_record>: Use
10379 TARGET_DEFAULT_NORETURN.
10380
10381 2014-02-19 Tom Tromey <tromey@redhat.com>
10382
10383 * target-delegates.c: Rebuild.
10384 * target.c (target_record_is_replaying): Unconditionally
10385 delegate.
10386 * target.h (struct target_ops) <to_record_is_replaying>: Use
10387 TARGET_DEFAULT_RETURN.
10388
10389 2014-02-19 Tom Tromey <tromey@redhat.com>
10390
10391 * target-delegates.c: Rebuild.
10392 * target.c (target_goto_record_begin): Unconditionally delegate.
10393 * target.h (struct target_ops) <to_goto_record_begin>: Use
10394 TARGET_DEFAULT_NORETURN.
10395
10396 2014-02-19 Tom Tromey <tromey@redhat.com>
10397
10398 * target-delegates.c: Rebuild.
10399 * target.c (target_goto_record_end): Unconditionally delegate.
10400 * target.h (struct target_ops) <to_goto_record_end>: Use
10401 TARGET_DEFAULT_NORETURN.
10402
10403 2014-02-19 Tom Tromey <tromey@redhat.com>
10404
10405 * target-delegates.c: Rebuild.
10406 * target.c (target_goto_record): Unconditionally delegate.
10407 * target.h (struct target_ops) <to_goto_record>: Use
10408 TARGET_DEFAULT_NORETURN.
10409
10410 2014-02-19 Tom Tromey <tromey@redhat.com>
10411
10412 * target-delegates.c: Rebuild.
10413 * target.c (target_insn_history): Unconditionally delegate.
10414 * target.h (struct target_ops) <to_insn_history>: Use
10415 TARGET_DEFAULT_NORETURN.
10416
10417 2014-02-19 Tom Tromey <tromey@redhat.com>
10418
10419 * target-delegates.c: Rebuild.
10420 * target.c (target_insn_history_from): Unconditionally delegate.
10421 * target.h (struct target_ops) <to_insn_history_from>: Use
10422 TARGET_DEFAULT_NORETURN.
10423
10424 2014-02-19 Tom Tromey <tromey@redhat.com>
10425
10426 * target-delegates.c: Rebuild.
10427 * target.c (target_insn_history_range): Unconditionally delegate.
10428 * target.h (struct target_ops) <to_insn_history_range>: Use
10429 TARGET_DEFAULT_NORETURN.
10430
10431 2014-02-19 Tom Tromey <tromey@redhat.com>
10432
10433 * target-delegates.c: Rebuild.
10434 * target.c (target_call_history): Unconditionally delegate.
10435 * target.h (struct target_ops) <to_call_history>: Use
10436 TARGET_DEFAULT_NORETURN.
10437
10438 2014-02-19 Tom Tromey <tromey@redhat.com>
10439
10440 * target-delegates.c: Rebuild.
10441 * target.c (target_call_history_from): Unconditionally delegate.
10442 * target.h (struct target_ops) <to_call_history_from>: Use
10443 TARGET_DEFAULT_NORETURN.
10444
10445 2014-02-19 Tom Tromey <tromey@redhat.com>
10446
10447 * target-delegates.c: Rebuild.
10448 * target.c (target_call_history_range): Unconditionally delegate.
10449 * target.h (struct target_ops) <to_call_history_range>: Use
10450 TARGET_DEFAULT_NORETURN.
10451
10452 2014-02-19 Tom Tromey <tromey@redhat.com>
10453
10454 * target-delegates.c: Rebuild.
10455 * target.c (target_verify_memory): Unconditionally delegate.
10456 * target.h (struct target_ops) <to_verify_memory>: Use
10457 TARGET_DEFAULT_NORETURN.
10458
10459 2014-02-19 Tom Tromey <tromey@redhat.com>
10460
10461 * target-delegates.c: Rebuild.
10462 * target.c (target_core_of_thread): Unconditionally delegate.
10463 * target.h (struct target_ops) <to_core_of_thread>: Use
10464 TARGET_DEFAULT_RETURN.
10465
10466 2014-02-19 Tom Tromey <tromey@redhat.com>
10467
10468 * target-delegates.c: Rebuild.
10469 * target.c (target_flash_done): Unconditionally delegate.
10470 * target.h (struct target_ops) <to_flash_done>: Use
10471 TARGET_DEFAULT_NORETURN.
10472
10473 2014-02-19 Tom Tromey <tromey@redhat.com>
10474
10475 * target-delegates.c: Rebuild.
10476 * target.c (target_flash_erase): Unconditionally delegate.
10477 * target.h (struct target_ops) <to_flash_erase>: Use
10478 TARGET_DEFAULT_NORETURN.
10479
10480 2014-02-19 Tom Tromey <tromey@redhat.com>
10481
10482 * target-delegates.c: Rebuild.
10483 * target.c (target_get_section_table): Unconditionally delegate.
10484 * target.h (struct target_ops) <to_get_section_table>: Use
10485 TARGET_DEFAULT_RETURN.
10486
10487 2014-02-19 Tom Tromey <tromey@redhat.com>
10488
10489 * target-delegates.c: Rebuild.
10490 * target.c (target_pid_to_str): Unconditionally delegate.
10491 (init_dummy_target): Don't initialize to_pid_to_str.
10492 (default_pid_to_str): Rename from dummy_pid_to_str.
10493 * target.h (struct target_ops) <to_pid_to_str>: Use
10494 TARGET_DEFAULT_FUNC.
10495
10496 2014-02-19 Tom Tromey <tromey@redhat.com>
10497
10498 * target-delegates.c: Rebuild.
10499 * target.c (target_find_new_threads): Unconditionally delegate.
10500 * target.h (struct target_ops) <to_find_new_threads>: Use
10501 TARGET_DEFAULT_RETURN.
10502
10503 2014-02-19 Tom Tromey <tromey@redhat.com>
10504
10505 * target-delegates.c: Rebuild.
10506 * target.c (target_program_signals): Unconditionally delegate.
10507 * target.h (struct target_ops) <to_program_signals>: Use
10508 TARGET_DEFAULT_IGNORE.
10509
10510 2014-02-19 Tom Tromey <tromey@redhat.com>
10511
10512 * target-delegates.c: Rebuild.
10513 * target.c (target_pass_signals): Unconditionally delegate.
10514 * target.h (struct target_ops) <to_pass_signals>: Use
10515 TARGET_DEFAULT_IGNORE.
10516
10517 2014-02-19 Tom Tromey <tromey@redhat.com>
10518
10519 * target-delegates.c: Rebuild.
10520 * target.c (default_mourn_inferior): New function.
10521 (target_mourn_inferior): Unconditionally delegate.
10522 * target.h (struct target_ops) <to_mourn_inferior>: Use
10523 TARGET_DEFAULT_FUNC.
10524
10525 2014-02-19 Tom Tromey <tromey@redhat.com>
10526
10527 * target-delegates.c: Rebuild.
10528 * target.c (default_follow_fork): New function.
10529 (target_follow_fork): Unconditionally delegate.
10530 * target.h (struct target_ops) <to_follow_fork>: Use
10531 TARGET_DEFAULT_FUNC.
10532
10533 2014-02-19 Tom Tromey <tromey@redhat.com>
10534
10535 * target-delegates.c: Rebuild.
10536 * target.c (target_kill): Unconditionally delegate.
10537 * target.h (struct target_ops) <to_kill>: Use
10538 TARGET_DEFAULT_NORETURN.
10539
10540 2014-02-19 Tom Tromey <tromey@redhat.com>
10541
10542 * target-delegates.c: Rebuild.
10543 * target.c (target_masked_watch_num_registers): Unconditionally
10544 delegate.
10545 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10546 Use TARGET_DEFAULT_RETURN.
10547
10548 2014-02-19 Tom Tromey <tromey@redhat.com>
10549
10550 * target-delegates.c: Rebuild.
10551 * target.c (target_remove_mask_watchpoint): Unconditionally
10552 delegate.
10553 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10554 TARGET_DEFAULT_RETURN.
10555
10556 2014-02-19 Tom Tromey <tromey@redhat.com>
10557
10558 * target-delegates.c: Rebuild.
10559 * target.c (target_insert_mask_watchpoint): Unconditionally
10560 delegate.
10561 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10562 TARGET_DEFAULT_RETURN.
10563
10564 2014-02-19 Tom Tromey <tromey@redhat.com>
10565
10566 * target-delegates.c: Rebuild.
10567 * target.c (target_ranged_break_num_registers): Unconditionally
10568 delegate.
10569 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10570 Use TARGET_DEFAULT_RETURN.
10571
10572 2014-02-19 Tom Tromey <tromey@redhat.com>
10573
10574 * target-delegates.c: Rebuild.
10575 * target.c (target_fetch_registers): Unconditionally delegate.
10576 * target.h (struct target_ops) <to_fetch_registers>: Use
10577 TARGET_DEFAULT_NORETURN.
10578
10579 2014-02-19 Tom Tromey <tromey@redhat.com>
10580
10581 * target-delegates.c: Rebuild.
10582 * target.c (update_current_target): Don't inherit or default
10583 to_stop.
10584 * target.h (struct target_ops) <to_stop>: Use
10585 TARGET_DEFAULT_IGNORE.
10586
10587 2014-02-19 Tom Tromey <tromey@redhat.com>
10588
10589 * target-delegates.c: Rebuild.
10590 * target.c (update_current_target): Don't inherit or default
10591 to_can_run_breakpoint_commands.
10592 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10593 Use TARGET_DEFAULT_RETURN.
10594
10595 2014-02-19 Tom Tromey <tromey@redhat.com>
10596
10597 * target-delegates.c: Rebuild.
10598 * target.c (update_current_target): Don't inherit or default
10599 to_supports_evaluation_of_breakpoint_conditions.
10600 * target.h (struct target_ops)
10601 <to_supports_evaluation_of_breakpoint_conditions>: Use
10602 TARGET_DEFAULT_RETURN.
10603
10604 2014-02-19 Tom Tromey <tromey@redhat.com>
10605
10606 * target-delegates.c: Rebuild.
10607 * target.c (update_current_target): Don't inherit or default
10608 to_augmented_libraries_svr4_read.
10609 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10610 Use TARGET_DEFAULT_RETURN.
10611
10612 2014-02-19 Tom Tromey <tromey@redhat.com>
10613
10614 * target-delegates.c: Rebuild.
10615 * target.c (update_current_target): Don't inherit or default
10616 to_can_use_agent.
10617 * target.h (struct target_ops) <to_can_use_agent>: Use
10618 TARGET_DEFAULT_RETURN.
10619
10620 2014-02-19 Tom Tromey <tromey@redhat.com>
10621
10622 * target-delegates.c: Rebuild.
10623 * target.c (update_current_target): Don't inherit or default
10624 to_use_agent.
10625 * target.h (struct target_ops) <to_use_agent>: Use
10626 TARGET_DEFAULT_NORETURN.
10627
10628 2014-02-19 Tom Tromey <tromey@redhat.com>
10629
10630 * target-delegates.c: Rebuild.
10631 * target.c (update_current_target): Don't inherit or default
10632 to_traceframe_info.
10633 (return_null): Remove.
10634 * target.h (struct target_ops) <to_traceframe_info>: Use
10635 TARGET_DEFAULT_RETURN.
10636
10637 2014-02-19 Tom Tromey <tromey@redhat.com>
10638
10639 * target-delegates.c: Rebuild.
10640 * target.c (update_current_target): Don't inherit or default
10641 to_static_tracepoint_markers_by_strid.
10642 * target.h (struct target_ops)
10643 <to_static_tracepoint_markers_by_strid>: Use
10644 TARGET_DEFAULT_NORETURN.
10645
10646 2014-02-19 Tom Tromey <tromey@redhat.com>
10647
10648 * target-delegates.c: Rebuild.
10649 * target.c (update_current_target): Don't inherit or default
10650 to_static_tracepoint_marker_at.
10651 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10652 Use TARGET_DEFAULT_RETURN.
10653
10654 2014-02-19 Tom Tromey <tromey@redhat.com>
10655
10656 * target-delegates.c: Rebuild.
10657 * target.c (update_current_target): Don't inherit or default
10658 to_set_permissions.
10659 * target.h (struct target_ops) <to_set_permissions>: Use
10660 TARGET_DEFAULT_IGNORE.
10661
10662 2014-02-19 Tom Tromey <tromey@redhat.com>
10663
10664 * target-delegates.c: Rebuild.
10665 * target.c (update_current_target): Don't inherit or default
10666 to_get_tib_address.
10667 * target.h (struct target_ops) <to_get_tib_address>: Use
10668 TARGET_DEFAULT_NORETURN.
10669
10670 2014-02-19 Tom Tromey <tromey@redhat.com>
10671
10672 * target-delegates.c: Rebuild.
10673 * target.c (update_current_target): Don't inherit or default
10674 to_set_trace_notes.
10675 * target.h (struct target_ops) <to_set_trace_notes>: Use
10676 TARGET_DEFAULT_RETURN.
10677
10678 2014-02-19 Tom Tromey <tromey@redhat.com>
10679
10680 * target-delegates.c: Rebuild.
10681 * target.c (update_current_target): Don't initialize
10682 to_set_trace_buffer_size.
10683 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10684 TARGET_DEFAULT_IGNORE.
10685
10686 2014-02-19 Tom Tromey <tromey@redhat.com>
10687
10688 * target-delegates.c: Rebuild.
10689 * target.c (update_current_target): Don't inherit or default
10690 to_set_circular_trace_buffer.
10691 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10692 TARGET_DEFAULT_IGNORE.
10693
10694 2014-02-19 Tom Tromey <tromey@redhat.com>
10695
10696 * target-delegates.c: Rebuild.
10697 * target.c (update_current_target): Don't inherit or default
10698 to_set_disconnected_tracing.
10699 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10700 TARGET_DEFAULT_IGNORE.
10701
10702 2014-02-19 Tom Tromey <tromey@redhat.com>
10703
10704 * target-delegates.c: Rebuild.
10705 * target.c (update_current_target): Don't inherit or default
10706 to_get_min_fast_tracepoint_insn_len.
10707 (return_minus_one): Remove.
10708 * target.h (struct target_ops)
10709 <to_get_min_fast_tracepoint_insn_len>: Use 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_get_raw_trace_data.
10716 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10717 TARGET_DEFAULT_NORETURN.
10718
10719 2014-02-19 Tom Tromey <tromey@redhat.com>
10720
10721 * target-delegates.c: Rebuild.
10722 * target.c (update_current_target): Don't inherit or default
10723 to_upload_trace_state_variables.
10724 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10725 Use TARGET_DEFAULT_RETURN.
10726
10727 2014-02-19 Tom Tromey <tromey@redhat.com>
10728
10729 * target-delegates.c: Rebuild.
10730 * target.c (update_current_target): Don't inherit or default
10731 to_upload_tracepoints.
10732 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10733 TARGET_DEFAULT_RETURN.
10734
10735 2014-02-19 Tom Tromey <tromey@redhat.com>
10736
10737 * target-delegates.c: Rebuild.
10738 * target.c (update_current_target): Don't inherit or default
10739 to_save_trace_data.
10740 * target.h (struct target_ops) <to_save_trace_data>: Use
10741 TARGET_DEFAULT_NORETURN.
10742
10743 2014-02-19 Tom Tromey <tromey@redhat.com>
10744
10745 * target-delegates.c: Rebuild.
10746 * target.c (update_current_target): Don't inherit or default
10747 to_get_trace_state_variable_value.
10748 * target.h (struct target_ops)
10749 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10750
10751 2014-02-19 Tom Tromey <tromey@redhat.com>
10752
10753 * target-delegates.c: Rebuild.
10754 * target.c (update_current_target): Don't inherit or default
10755 to_trace_find.
10756 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10757
10758 2014-02-19 Tom Tromey <tromey@redhat.com>
10759
10760 * target-delegates.c: Rebuild.
10761 * target.c (update_current_target): Don't inherit or default
10762 to_trace_stop.
10763 * target.h (struct target_ops) <to_trace_stop>: Use
10764 TARGET_DEFAULT_NORETURN.
10765
10766 2014-02-19 Tom Tromey <tromey@redhat.com>
10767
10768 * target-delegates.c: Rebuild.
10769 * target.c (update_current_target): Don't inherit or default
10770 to_get_tracepoint_status.
10771 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10772 TARGET_DEFAULT_NORETURN.
10773
10774 2014-02-19 Tom Tromey <tromey@redhat.com>
10775
10776 * target-delegates.c: Rebuild.
10777 * target.c (update_current_target): Don't inherit or default
10778 to_get_trace_status.
10779 * target.h (struct target_ops) <to_get_trace_status>: Use
10780 TARGET_DEFAULT_RETURN.
10781
10782 2014-02-19 Tom Tromey <tromey@redhat.com>
10783
10784 * target-delegates.c: Rebuild.
10785 * target.c (update_current_target): Don't inherit or default
10786 to_trace_start.
10787 * target.h (struct target_ops) <to_trace_start>: Use
10788 TARGET_DEFAULT_NORETURN.
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_trace_set_readonly_regions.
10795 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10796 Use TARGET_DEFAULT_NORETURN.
10797
10798 2014-02-19 Tom Tromey <tromey@redhat.com>
10799
10800 * target-delegates.c: Rebuild.
10801 * target.c (update_current_target): Don't inherit or default
10802 to_disable_tracepoint.
10803 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10804 TARGET_DEFAULT_NORETURN.
10805
10806 2014-02-19 Tom Tromey <tromey@redhat.com>
10807
10808 * target-delegates.c: Rebuild.
10809 * target.c (update_current_target): Don't inherit or default
10810 to_enable_tracepoint.
10811 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10812 TARGET_DEFAULT_NORETURN.
10813
10814 2014-02-19 Tom Tromey <tromey@redhat.com>
10815
10816 * target-delegates.c: Rebuild.
10817 * target.c (update_current_target): Don't inherit or default
10818 to_download_trace_state_variable.
10819 * target.h (struct target_ops) <to_download_trace_state_variable>:
10820 Use TARGET_DEFAULT_NORETURN.
10821
10822 2014-02-19 Tom Tromey <tromey@redhat.com>
10823
10824 * target-delegates.c: Rebuild.
10825 * target.c (update_current_target): Don't inherit or default
10826 to_can_download_tracepoint.
10827 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10828 TARGET_DEFAULT_RETURN.
10829
10830 2014-02-19 Tom Tromey <tromey@redhat.com>
10831
10832 * target-delegates.c: Rebuild.
10833 * target.c (update_current_target): Don't inherit or default
10834 to_download_tracepoint.
10835 * target.h (struct target_ops) <to_download_tracepoint>: Use
10836 TARGET_DEFAULT_NORETURN.
10837
10838 2014-02-19 Tom Tromey <tromey@redhat.com>
10839
10840 * target-delegates.c: Rebuild.
10841 * target.c (update_current_target): Don't inherit or default
10842 to_trace_init.
10843 * target.h (struct target_ops) <to_trace_init>: Use
10844 TARGET_DEFAULT_RETURN.
10845
10846 2014-02-19 Tom Tromey <tromey@redhat.com>
10847
10848 * target-delegates.c: Rebuild.
10849 * target.c (update_current_target): Don't inherit or default
10850 to_supports_string_tracing.
10851 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10852 TARGET_DEFAULT_RETURN.
10853
10854 2014-02-19 Tom Tromey <tromey@redhat.com>
10855
10856 * target-delegates.c: Rebuild.
10857 * target.c (update_current_target): Don't inherit or default
10858 to_supports_enable_disable_tracepoint.
10859 * target.h (struct target_ops)
10860 <to_supports_enable_disable_tracepoint>: Use
10861 TARGET_DEFAULT_RETURN.
10862
10863 2014-02-19 Tom Tromey <tromey@redhat.com>
10864
10865 * target-delegates.c: Rebuild.
10866 * target.c (update_current_target): Don't inherit or default
10867 to_supports_multi_process.
10868 * target.h (struct target_ops) <to_supports_multi_process>: Use
10869 TARGET_DEFAULT_RETURN.
10870
10871 2014-02-19 Tom Tromey <tromey@redhat.com>
10872
10873 * target-delegates.c: Rebuild.
10874 * target.c (update_current_target): Don't inherit or default
10875 to_get_ada_task_ptid.
10876 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10877 TARGET_DEFAULT_FUNC.
10878
10879 2014-02-19 Tom Tromey <tromey@redhat.com>
10880
10881 * target-delegates.c: Rebuild.
10882 * target.c (update_current_target): Don't inherit or default
10883 to_thread_architecture.
10884 * target.h (struct target_ops) <to_thread_architecture>: Use
10885 TARGET_DEFAULT_FUNC.
10886
10887 2014-02-19 Tom Tromey <tromey@redhat.com>
10888
10889 * target-delegates.c: Rebuild.
10890 * target.c (update_current_target): Don't inherit or default
10891 to_execution_direction.
10892 * target.h (struct target_ops) <to_execution_direction>: Use
10893 TARGET_DEFAULT_FUNC.
10894
10895 2014-02-19 Tom Tromey <tromey@redhat.com>
10896
10897 * target-delegates.c: Rebuild.
10898 * target.c (update_current_target): Don't inherit or default
10899 to_can_execute_reverse.
10900 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10901 TARGET_DEFAULT_RETURN.
10902 (target_can_execute_reverse): Unconditionally delegate.
10903
10904 2014-02-19 Tom Tromey <tromey@redhat.com>
10905
10906 * target-delegates.c: Rebuild.
10907 * target.c (update_current_target): Don't inherit or default
10908 to_goto_bookmark.
10909 (dummy_goto_bookmark): Remove.
10910 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10911 * target.h (struct target_ops) <to_goto_bookmark>: 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_get_bookmark.
10919 (dummy_get_bookmark): Remove.
10920 (init_dummy_target): Don't inherit or default to_get_bookmark.
10921 * target.h (struct target_ops) <to_get_bookmark>: Use
10922 TARGET_DEFAULT_NORETURN
10923
10924 2014-02-19 Tom Tromey <tromey@redhat.com>
10925
10926 * target-delegates.c: Rebuild.
10927 * target.c (update_current_target): Don't inherit or default
10928 to_make_corefile_notes.
10929 (init_dummy_target): Don't initialize to_make_corefile_notes.
10930 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10931 TARGET_DEFAULT_FUNC.
10932
10933 2014-02-19 Tom Tromey <tromey@redhat.com>
10934
10935 * target-delegates.c: Rebuild.
10936 * target.c (update_current_target): Don't inherit or default
10937 to_find_memory_regions.
10938 (init_dummy_target): Don't initialize to_find_memory_regions.
10939 * target.h (struct target_ops) <to_find_memory_regions>: Use
10940 TARGET_DEFAULT_FUNC.
10941
10942 2014-02-19 Tom Tromey <tromey@redhat.com>
10943
10944 * target-delegates.c: Rebuild.
10945 * target.c (update_current_target): Don't inherit or default
10946 to_log_command.
10947 * target.h (struct target_ops) <to_log_command>: Use
10948 TARGET_DEFAULT_IGNORE.
10949 (target_log_command): Unconditionally delegate.
10950
10951 2014-02-19 Tom Tromey <tromey@redhat.com>
10952
10953 * target-delegates.c: Rebuild.
10954 * target.c (update_current_target): Don't inherit or default
10955 to_pid_to_exec_file.
10956 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10957 TARGET_DEFAULT_RETURN.
10958
10959 2014-02-19 Tom Tromey <tromey@redhat.com>
10960
10961 * target-delegates.c: Rebuild.
10962 * target.c (update_current_target): Don't inherit or default
10963 to_thread_name.
10964 (target_thread_name): Unconditionally delegate.
10965 * target.h (struct target_ops) <to_thread_name>: Use
10966 TARGET_DEFAULT_RETURN.
10967
10968 2014-02-19 Tom Tromey <tromey@redhat.com>
10969
10970 * target-delegates.c: Rebuild.
10971 * target.c (update_current_target): Don't inherit or default
10972 to_extra_thread_info.
10973 * target.h (struct target_ops) <to_extra_thread_info>: Use
10974 TARGET_DEFAULT_RETURN.
10975
10976 2014-02-19 Tom Tromey <tromey@redhat.com>
10977
10978 * target-delegates.c: Rebuild.
10979 * target.c (update_current_target): Don't inherit or default
10980 to_has_exited.
10981 * target.h (struct target_ops) <to_has_exited>: Use
10982 TARGET_DEFAULT_RETURN..
10983
10984 2014-02-19 Tom Tromey <tromey@redhat.com>
10985
10986 * target-delegates.c: Rebuild.
10987 * target.c (update_current_target): Don't inherit or default
10988 to_set_syscall_catchpoint.
10989 (return_one): Remove.
10990 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10991 TARGET_DEFAULT_RETURN.
10992
10993 2014-02-19 Tom Tromey <tromey@redhat.com>
10994
10995 * target-delegates.c: Rebuild.
10996 * target.c (update_current_target): Don't inherit or default
10997 to_insert_exec_catchpoint.
10998 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10999 TARGET_DEFAULT_RETURN.
11000
11001 2014-01-08 Tom Tromey <tromey@redhat.com>
11002
11003 * target-delegates.c: Rebuild.
11004 * target.c (update_current_target): Don't inherit or default
11005 to_insert_exec_catchpoint.
11006 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11007 TARGET_DEFAULT_RETURN.
11008
11009 2014-02-19 Tom Tromey <tromey@redhat.com>
11010
11011 * target-delegates.c: Rebuild.
11012 * target.c (update_current_target): Don't inherit or default
11013 to_remove_vfork_catchpoint.
11014 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11015 TARGET_DEFAULT_RETURN.
11016
11017 2014-02-19 Tom Tromey <tromey@redhat.com>
11018
11019 * target-delegates.c: Rebuild.
11020 * target.c (update_current_target): Don't inherit or default
11021 to_insert_vfork_catchpoint.
11022 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11023 TARGET_DEFAULT_RETURN.
11024
11025 2014-02-19 Tom Tromey <tromey@redhat.com>
11026
11027 * target-delegates.c: Rebuild.
11028 * target.c (update_current_target): Don't inherit or default
11029 to_remove_fork_catchpoint.
11030 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11031 TARGET_DEFAULT_RETURN.
11032
11033 2014-02-19 Tom Tromey <tromey@redhat.com>
11034
11035 * target-delegates.c: Rebuild.
11036 * target.c (update_current_target): Don't inherit or default
11037 to_insert_fork_catchpoint.
11038 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11039 TARGET_DEFAULT_RETURN.
11040
11041 2014-02-19 Tom Tromey <tromey@redhat.com>
11042
11043 * target-delegates.c: Rebuild.
11044 * target.c (update_current_target): Don't inherit or default
11045 to_post_startup_inferior.
11046 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11047 TARGET_DEFAULT_IGNORE.
11048
11049 2014-02-19 Tom Tromey <tromey@redhat.com>
11050
11051 * target-delegates.c: Rebuild.
11052 * target.c (update_current_target): Don't inherit or default
11053 to_load.
11054 * target.h (struct target_ops) <to_load>: Use
11055 TARGET_DEFAULT_NORETURN.
11056
11057 2014-02-19 Tom Tromey <tromey@redhat.com>
11058
11059 * target-delegates.c: Rebuild.
11060 * target.c (update_current_target): Don't inherit or default
11061 to_terminal_info.
11062 * target.h (struct target_ops) <to_terminal_info>: Use
11063 TARGET_DEFAULT_FUNC.
11064
11065 2014-02-19 Tom Tromey <tromey@redhat.com>
11066
11067 * target-delegates.c: Rebuild.
11068 * target.c (update_current_target): Don't inherit or default
11069 to_terminal_save_ours.
11070 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11071 TARGET_DEFAULT_IGNORE.
11072
11073 2014-02-19 Tom Tromey <tromey@redhat.com>
11074
11075 * target-delegates.c: Rebuild.
11076 * target.c (update_current_target): Don't inherit or default
11077 to_terminal_ours.
11078 * target.h (struct target_ops) <to_terminal_ours>: Use
11079 TARGET_DEFAULT_IGNORE.
11080
11081 2014-02-19 Tom Tromey <tromey@redhat.com>
11082
11083 * target-delegates.c: Rebuild.
11084 * target.c (update_current_target): Don't inherit or default
11085 to_terminal_ours_for_output.
11086 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11087 TARGET_DEFAULT_IGNORE.
11088
11089 2014-02-19 Tom Tromey <tromey@redhat.com>
11090
11091 * target-delegates.c: Rebuild.
11092 * target.c (update_current_target): Don't inherit or default
11093 to_terminal_inferior.
11094 * target.h (struct target_ops) <to_terminal_inferior>: Use
11095 TARGET_DEFAULT_IGNORE.
11096
11097 2014-02-19 Tom Tromey <tromey@redhat.com>
11098
11099 * target-delegates.c: Rebuild.
11100 * target.c (update_current_target): Don't inherit or default
11101 to_terminal_init.
11102 * target.h (struct target_ops) <to_terminal_init>: Use
11103 TARGET_DEFAULT_IGNORE.
11104
11105 2014-02-19 Tom Tromey <tromey@redhat.com>
11106
11107 * target-delegates.c: Rebuild.
11108 * target.c (update_current_target): Don't inherit or default
11109 to_can_accel_watchpoint_condition.
11110 * target.h (struct target_ops)
11111 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11112
11113 2014-02-19 Tom Tromey <tromey@redhat.com>
11114
11115 * target-delegates.c: Rebuild.
11116 * target.c (update_current_target): Don't inherit or default
11117 to_region_ok_for_hw_watchpoint.
11118 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11119 Use TARGET_DEFAULT_FUNC.
11120
11121 2014-02-19 Tom Tromey <tromey@redhat.com>
11122
11123 * target-delegates.c: Rebuild.
11124 * target.c (update_current_target): Don't inherit or default
11125 to_watchpoint_addr_within_range.
11126 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11127 Use TARGET_DEFAULT_FUNC.
11128
11129 2014-02-19 Tom Tromey <tromey@redhat.com>
11130
11131 * target-delegates.c: Rebuild.
11132 * target.c (update_current_target): Don't inherit or default
11133 to_remove_watchpoint.
11134 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11135 TARGET_DEFAULT_NORETURN.
11136
11137 2014-02-19 Tom Tromey <tromey@redhat.com>
11138
11139 * target-delegates.c: Rebuild.
11140 * target.c (update_current_target): Don't inherit or default
11141 to_insert_watchpoint.
11142 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11143 TARGET_DEFAULT_RETURN.
11144
11145 2014-02-19 Tom Tromey <tromey@redhat.com>
11146
11147 * target-delegates.c: Rebuild.
11148 * target.c (update_current_target): Don't inherit or default
11149 to_remove_hw_breakpoint.
11150 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11151 TARGET_DEFAULT_RETURN.
11152
11153 2014-02-19 Tom Tromey <tromey@redhat.com>
11154
11155 * target-delegates.c: Rebuild.
11156 * target.c (update_current_target): Don't inherit or default
11157 to_insert_hw_breakpoint.
11158 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11159 TARGET_DEFAULT_RETURN.
11160
11161 2014-02-19 Tom Tromey <tromey@redhat.com>
11162
11163 * target-delegates.c: Rebuild.
11164 * target.c (update_current_target): Don't inherit or default
11165 to_can_use_hw_breakpoint.
11166 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11167 TARGET_DEFAULT_RETURN.
11168
11169 2014-02-19 Tom Tromey <tromey@redhat.com>
11170
11171 * target-delegates.c: Rebuild.
11172 * target.c (update_current_target): Don't inherit or default
11173 to_files_info.
11174 * target.h (struct target_ops) <to_files_info>: Use
11175 TARGET_DEFAULT_IGNORE.
11176
11177 2014-02-19 Tom Tromey <tromey@redhat.com>
11178
11179 * target-delegates.c: Rebuild.
11180 * target.c (update_current_target): Don't inherit or default
11181 to_store.
11182 * target.h (struct target_ops) <to_store>: Use
11183 TARGET_DEFAULT_NORETURN.
11184
11185 2014-02-19 Tom Tromey <tromey@redhat.com>
11186
11187 * target-delegates.c: Rebuild.
11188 * target.c (update_current_target): Don't inherit or default
11189 to_post_attach.
11190 * target.h (struct target_ops) <to_post_attach>: Use
11191 TARGET_DEFAULT_IGNORE.
11192
11193 2014-02-19 Tom Tromey <tromey@redhat.com>
11194
11195 * target-delegates.c: Rebuild.
11196 * target.c (update_current_target): Don't inherit or default
11197 to_rcmd.
11198 (default_rcmd): New function.
11199 (do_monitor_command): Unconditionally delegate.
11200 * target.h (struct target_ops) <to_rmcd>: Use
11201 TARGET_DEFAULT_FUNC.
11202
11203 2014-02-19 Tom Tromey <tromey@redhat.com>
11204
11205 * target-delegates.c: Rebuild.
11206 * target.c (init_dummy_target): Don't initialize to_attach.
11207 (target_attach): Unconditionally delegate.
11208 * target.h (struct target_ops) <to_attach>: Use
11209 TARGET_DEFAULT_FUNC.
11210
11211 2014-02-19 Tom Tromey <tromey@redhat.com>
11212
11213 * target-delegates.c: Rebuild.
11214 * target.c (target_detach): Unconditionally delegate.
11215 (init_dummy_target): Don't initialize to_detach.
11216 * target.h (struct target_ops) <to_detach>: Use
11217 TARGET_DEFAULT_IGNORE.
11218
11219 2014-02-19 Tom Tromey <tromey@redhat.com>
11220
11221 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11222 Add argument.
11223 (target_augmented_libraries_svr4_read): Add argument.
11224 * target.c (update_current_target): Update.
11225 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11226 argument.
11227
11228 2014-02-19 Tom Tromey <tromey@redhat.com>
11229
11230 * target.h (struct target_ops) <to_call_history_range>: Add
11231 argument.
11232 * target.c (target_call_history_range): Add argument.
11233 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11234 argument.
11235 (record_btrace_call_history_from): Update.
11236
11237 2014-02-19 Tom Tromey <tromey@redhat.com>
11238
11239 * target.h (struct target_ops) <to_call_history_from>: Add
11240 argument.
11241 * target.c (target_call_history_from): Add argument.
11242 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11243 argument.
11244
11245 2014-02-19 Tom Tromey <tromey@redhat.com>
11246
11247 * target.h (struct target_ops) <to_call_history>: Add argument.
11248 * target.c (target_call_history): Add argument.
11249 * record-btrace.c (record_btrace_call_history): Add 'self'
11250 argument.
11251
11252 2014-02-19 Tom Tromey <tromey@redhat.com>
11253
11254 * target.h (struct target_ops) <to_insn_history_range>: Add
11255 argument.
11256 * target.c (target_insn_history_range): Add argument.
11257 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11258 argument.
11259 (record_btrace_insn_history_from): Update.
11260
11261 2014-02-19 Tom Tromey <tromey@redhat.com>
11262
11263 * target.h (struct target_ops) <to_insn_history_from>: Add
11264 argument.
11265 * target.c (target_insn_history_from): Add argument.
11266 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11267 argument.
11268
11269 2014-02-19 Tom Tromey <tromey@redhat.com>
11270
11271 * target.h (struct target_ops) <to_insn_history>: Add argument.
11272 * target.c (target_insn_history): Add argument.
11273 * record-btrace.c (record_btrace_insn_history): Add 'self'
11274 argument.
11275
11276 2014-02-19 Tom Tromey <tromey@redhat.com>
11277
11278 * target.h (struct target_ops) <to_goto_record>: Add argument.
11279 * target.c (target_goto_record): Add argument.
11280 * record-full.c (record_full_goto): Add 'self' argument.
11281 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11282
11283 2014-02-19 Tom Tromey <tromey@redhat.com>
11284
11285 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11286 * target.c (target_goto_record_end): Add argument.
11287 * record-full.c (record_full_goto_end): Add 'self' argument.
11288 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11289
11290 2014-02-19 Tom Tromey <tromey@redhat.com>
11291
11292 * target.h (struct target_ops) <to_goto_record_begin>: Add
11293 argument.
11294 * target.c (target_goto_record_begin): Add argument.
11295 * record-full.c (record_full_goto_begin): Add 'self' argument.
11296 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11297 argument.
11298
11299 2014-02-19 Tom Tromey <tromey@redhat.com>
11300
11301 * target.h (struct target_ops) <to_record_is_replaying>: Add
11302 argument.
11303 * target.c (target_record_is_replaying): Add argument.
11304 * record-full.c (record_full_is_replaying): Add 'self' argument.
11305 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11306 argument.
11307 (record_btrace_xfer_partial, record_btrace_store_registers)
11308 (record_btrace_prepare_to_store, record_btrace_resume)
11309 (record_btrace_wait, record_btrace_decr_pc_after_break)
11310 (record_btrace_find_new_threads, record_btrace_thread_alive):
11311 Update.
11312
11313 2014-02-19 Tom Tromey <tromey@redhat.com>
11314
11315 * target.h (struct target_ops) <to_delete_record>: Add argument.
11316 * target.c (target_delete_record): Add argument.
11317 * record-full.c (record_full_delete): Add 'self' argument.
11318
11319 2014-02-19 Tom Tromey <tromey@redhat.com>
11320
11321 * target.h (struct target_ops) <to_save_record>: Add argument.
11322 * target.c (target_save_record): Add argument.
11323 * record-full.c (record_full_save): Add 'self' argument.
11324 (record_full_save): Add 'self' argument.
11325
11326 2014-02-19 Tom Tromey <tromey@redhat.com>
11327
11328 * target.h (struct target_ops) <to_info_record>: Add argument.
11329 * target.c (target_info_record): Add argument.
11330 * record.c (info_record_command): Add argument.
11331 * record-full.c (record_full_info): Add 'self' argument.
11332 * record-btrace.c (record_btrace_info): Add 'self' argument.
11333
11334 2014-02-19 Tom Tromey <tromey@redhat.com>
11335
11336 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11337 * target.c (target_stop_recording): Add argument.
11338 * record.c (record_stop): Add argument.
11339 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11340 argument.
11341
11342 2014-02-19 Tom Tromey <tromey@redhat.com>
11343
11344 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11345 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11346 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11347 argument.
11348 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11349 (_initialize_amd64_linux_nat): Use it.
11350 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11351 (_initialize_i386_linux_nat): Use it.
11352
11353 2014-02-19 Tom Tromey <tromey@redhat.com>
11354
11355 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11356 * target.c (target_teardown_btrace): Add argument.
11357 * remote.c (remote_teardown_btrace): Add 'self' argument.
11358 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11359 argument.
11360 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11361 argument.
11362
11363 2014-02-19 Tom Tromey <tromey@redhat.com>
11364
11365 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11366 * target.c (target_disable_btrace): Add argument.
11367 * remote.c (remote_disable_btrace): Add 'self' argument.
11368 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11369 argument.
11370 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11371 argument.
11372
11373 2014-02-19 Tom Tromey <tromey@redhat.com>
11374
11375 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11376 * target.c (target_enable_btrace): Add argument.
11377 * remote.c (remote_enable_btrace): Add 'self' argument.
11378 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11379 argument.
11380 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11381 argument.
11382
11383 2014-02-19 Tom Tromey <tromey@redhat.com>
11384
11385 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11386 (target_can_use_agent): Add argument.
11387 * target.c (update_current_target): Update.
11388 * remote.c (remote_can_use_agent): Add 'self' argument.
11389 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11390
11391 2014-02-19 Tom Tromey <tromey@redhat.com>
11392
11393 * target.h (struct target_ops) <to_use_agent>: Add argument.
11394 (target_use_agent): Add argument.
11395 * target.c (update_current_target): Update.
11396 * remote.c (remote_use_agent): Add 'self' argument.
11397 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11398
11399 2014-02-19 Tom Tromey <tromey@redhat.com>
11400
11401 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11402 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11403 (target_traceframe_info): Add argument.
11404 * target.c (update_current_target): Update.
11405 * remote.c (remote_traceframe_info): Add 'self' argument.
11406 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11407
11408 2014-02-19 Tom Tromey <tromey@redhat.com>
11409
11410 * target.h (target_static_tracepoint_markers_by_strid): Add
11411 argument.
11412 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11413 'self' argument.
11414 * target.c (update_current_target): Update.
11415 * remote.c (struct target_ops)
11416 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11417 * linux-nat.c (struct target_ops)
11418 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11419
11420 2014-02-19 Tom Tromey <tromey@redhat.com>
11421
11422 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11423 Add argument.
11424 (target_static_tracepoint_marker_at): Add argument.
11425 * target.c (update_current_target): Update.
11426 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11427 argument.
11428
11429 2014-02-19 Tom Tromey <tromey@redhat.com>
11430
11431 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11432 (target_set_permissions): Add argument.
11433 * target.c (update_current_target): Update.
11434 * remote.c (remote_set_permissions): Add 'self' argument.
11435 (remote_start_remote): Update.
11436
11437 2014-02-19 Tom Tromey <tromey@redhat.com>
11438
11439 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11440 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11441 (target_get_tib_address): Add argument.
11442 * target.c (update_current_target): Update.
11443 * remote.c (remote_get_tib_address): Add 'self' argument.
11444
11445 2014-02-19 Tom Tromey <tromey@redhat.com>
11446
11447 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11448 (target_set_trace_notes): Add argument.
11449 * target.c (update_current_target): Update.
11450 * remote.c (remote_set_trace_notes): Add 'self' argument.
11451
11452 2014-02-19 Tom Tromey <tromey@redhat.com>
11453
11454 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11455 argument.
11456 (target_set_trace_buffer_size): Add argument.
11457 * target.c (update_current_target): Update.
11458 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11459
11460 2014-02-19 Tom Tromey <tromey@redhat.com>
11461
11462 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11463 argument.
11464 (target_set_circular_trace_buffer): Add argument.
11465 * target.c (update_current_target): Update.
11466 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11467 argument.
11468
11469 2014-02-19 Tom Tromey <tromey@redhat.com>
11470
11471 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11472 argument.
11473 (target_set_disconnected_tracing): Add argument.
11474 * target.c (update_current_target): Update.
11475 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11476
11477 2014-02-19 Tom Tromey <tromey@redhat.com>
11478
11479 * target.h (struct target_ops)
11480 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11481 (target_get_min_fast_tracepoint_insn_len): Add argument.
11482 * target.c (update_current_target): Update.
11483 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11484 argument.
11485
11486 2014-02-19 Tom Tromey <tromey@redhat.com>
11487
11488 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11489 argument.
11490 (target_get_raw_trace_data): Add argument.
11491 * target.c (update_current_target): Update.
11492 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11493
11494 2014-02-19 Tom Tromey <tromey@redhat.com>
11495
11496 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11497 Add argument.
11498 (target_upload_trace_state_variables): Add argument.
11499 * target.c (update_current_target): Update.
11500 * remote.c (remote_upload_trace_state_variables): Add 'self'
11501 argument.
11502 (remote_start_remote): Update.
11503
11504 2014-02-19 Tom Tromey <tromey@redhat.com>
11505
11506 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11507 argument.
11508 (target_upload_tracepoints): Add argument.
11509 * target.c (update_current_target): Update.
11510 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11511 (remote_start_remote): Update.
11512
11513 2014-02-19 Tom Tromey <tromey@redhat.com>
11514
11515 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11516 (target_save_trace_data): Add argument.
11517 * target.c (update_current_target): Update.
11518 * remote.c (remote_save_trace_data): Add 'self' argument.
11519
11520 2014-02-19 Tom Tromey <tromey@redhat.com>
11521
11522 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11523 argument.
11524 * target.h (struct target_ops)
11525 <to_get_trace_state_variable_value>: Add argument.
11526 (target_get_trace_state_variable_value): Add argument.
11527 * target.c (update_current_target): Update.
11528 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11529 argument.
11530 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11531
11532 2014-02-19 Tom Tromey <tromey@redhat.com>
11533
11534 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11535 * target.h (struct target_ops) <to_trace_find>: Add argument.
11536 (target_trace_find): Add argument.
11537 * target.c (update_current_target): Update.
11538 * remote.c (remote_trace_find): Add 'self' argument.
11539 * ctf.c (ctf_trace_find): Add 'self' argument.
11540
11541 2014-02-19 Tom Tromey <tromey@redhat.com>
11542
11543 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11544 (target_trace_stop): Add argument.
11545 * target.c (update_current_target): Update.
11546 * remote.c (remote_trace_stop): Add 'self' argument.
11547
11548 2014-02-19 Tom Tromey <tromey@redhat.com>
11549
11550 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11551 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11552 argument.
11553 (target_get_tracepoint_status): Add argument.
11554 * target.c (update_current_target): Update.
11555 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11556
11557 2014-02-19 Tom Tromey <tromey@redhat.com>
11558
11559 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11560 * target.h (struct target_ops) <to_get_trace_status>: Add
11561 argument.
11562 (target_get_trace_status): Add argument.
11563 * target.c (update_current_target): Update.
11564 * remote.c (remote_get_trace_status): Add 'self' argument.
11565 (remote_start_remote, remote_can_download_tracepoint): Update.
11566 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11567
11568 2014-02-19 Tom Tromey <tromey@redhat.com>
11569
11570 * target.h (struct target_ops) <to_trace_start>: Add argument.
11571 (target_trace_start): Add argument.
11572 * target.c (update_current_target): Update.
11573 * remote.c (remote_trace_start): Add 'self' argument.
11574
11575 2014-02-19 Tom Tromey <tromey@redhat.com>
11576
11577 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11578 Add argument.
11579 (target_trace_set_readonly_regions): Add argument.
11580 * target.c (update_current_target): Update.
11581 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11582 argument.
11583
11584 2014-02-19 Tom Tromey <tromey@redhat.com>
11585
11586 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11587 argument.
11588 (target_disable_tracepoint): Add argument.
11589 * target.c (update_current_target): Update.
11590 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11591
11592 2014-02-19 Tom Tromey <tromey@redhat.com>
11593
11594 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11595 argument.
11596 (target_enable_tracepoint): Add argument.
11597 * target.c (update_current_target): Update.
11598 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11599
11600 2014-02-19 Tom Tromey <tromey@redhat.com>
11601
11602 * target.h (struct target_ops) <to_download_trace_state_variable>:
11603 Add argument.
11604 (target_download_trace_state_variable): Add argument.
11605 * target.c (update_current_target): Update.
11606 * remote.c (remote_download_trace_state_variable): Add 'self'
11607 argument.
11608
11609 2014-02-19 Tom Tromey <tromey@redhat.com>
11610
11611 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11612 argument.
11613 (target_can_download_tracepoint): Add argument.
11614 * target.c (update_current_target): Update.
11615 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11616
11617 2014-02-19 Tom Tromey <tromey@redhat.com>
11618
11619 * target.h (struct target_ops) <to_download_tracepoint>: Add
11620 argument.
11621 (target_download_tracepoint): Add argument.
11622 * target.c (update_current_target): Update.
11623 * remote.c (remote_download_tracepoint): Add 'self' argument.
11624
11625 2014-02-19 Tom Tromey <tromey@redhat.com>
11626
11627 * target.h (struct target_ops) <to_trace_init>: Add argument.
11628 (target_trace_init): Add argument.
11629 * target.c (update_current_target): Update.
11630 * remote.c (remote_trace_init): Add 'self' argument.
11631
11632 2014-02-19 Tom Tromey <tromey@redhat.com>
11633
11634 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11635 * target.c (target_fileio_readlink): Add argument.
11636 * remote.c (remote_hostio_readlink): Add 'self' argument.
11637 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11638
11639 2014-02-19 Tom Tromey <tromey@redhat.com>
11640
11641 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11642 * target.c (target_fileio_unlink): Add argument.
11643 * remote.c (remote_hostio_unlink): Add 'self' argument.
11644 (remote_file_delete): Update.
11645 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11646
11647 2014-02-19 Tom Tromey <tromey@redhat.com>
11648
11649 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11650 * target.c (target_fileio_close): Add argument.
11651 * remote.c (remote_hostio_close): Add 'self' argument.
11652 (remote_hostio_close_cleanup): Update.
11653 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11654 Update.
11655 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11656
11657 2014-02-19 Tom Tromey <tromey@redhat.com>
11658
11659 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11660 * target.c (target_fileio_pread): Add argument.
11661 * remote.c (remote_hostio_pread): Add 'self' argument.
11662 (remote_bfd_iovec_pread, remote_file_get): Update.
11663 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11664
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11666
11667 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11668 * target.c (target_fileio_pwrite): Add argument.
11669 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11670 (remote_file_put): Update.
11671 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11672
11673 2014-02-19 Tom Tromey <tromey@redhat.com>
11674
11675 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11676 * target.c (target_fileio_open): Add argument.
11677 * remote.c (remote_hostio_open): Add 'self' argument.
11678 (remote_bfd_iovec_open): Add 'self' argument.
11679 (remote_file_put): Add 'self' argument.
11680 (remote_file_get): Add 'self' argument.
11681 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11682
11683 2014-02-19 Tom Tromey <tromey@redhat.com>
11684
11685 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11686 Add argument.
11687 (target_can_run_breakpoint_commands): Add argument.
11688 * target.c (update_current_target): Update.
11689 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11690 argument.
11691 (remote_insert_breakpoint): Add 'self' argument.
11692 (remote_insert_hw_breakpoint): Add 'self' argument.
11693 (remote_can_run_breakpoint_commands): Add 'self' argument.
11694
11695 2014-02-19 Tom Tromey <tromey@redhat.com>
11696
11697 * target.h (struct target_ops)
11698 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11699 (target_supports_evaluation_of_breakpoint_conditions): Add
11700 argument.
11701 * target.c (update_current_target): Update.
11702 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11703 argument.
11704 (remote_insert_breakpoint): Add 'self' argument.
11705 (remote_insert_hw_breakpoint): Add 'self' argument.
11706 (remote_supports_cond_breakpoints): Add 'self' argument.
11707
11708 2014-02-19 Tom Tromey <tromey@redhat.com>
11709
11710 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11711 argument.
11712 (target_supports_string_tracing): Add argument.
11713 * target.c (update_current_target): Update.
11714 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11715
11716 2014-02-19 Tom Tromey <tromey@redhat.com>
11717
11718 * target.h (struct target_ops)
11719 <to_supports_disable_randomization>: Add argument.
11720 * target.c (find_default_supports_disable_randomization): Add
11721 argument.
11722 (target_supports_disable_randomization): Add argument.
11723 (find_default_supports_disable_randomization): Add 'self'
11724 argument.
11725 * remote.c (extended_remote_supports_disable_randomization): Add
11726 'self' argument.
11727 (remote_supports_disable_randomization): Add 'self' argument.
11728 (extended_remote_create_inferior): Update.
11729 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11730 'self' argument.
11731
11732 2014-02-19 Tom Tromey <tromey@redhat.com>
11733
11734 * target.h (struct target_ops)
11735 <to_supports_enable_disable_tracepoint>: Add argument.
11736 (target_supports_enable_disable_tracepoint): Add argument.
11737 * target.c (update_current_target): Update.
11738 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11739 argument.
11740
11741 2014-02-19 Tom Tromey <tromey@redhat.com>
11742
11743 * target.h (struct target_ops) <to_supports_multi_process>: Add
11744 argument.
11745 (target_supports_multi_process): Add argument.
11746 * target.c (update_current_target): Update.
11747 * remote.c (remote_supports_multi_process): Add 'self' argument.
11748 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11749 argument.
11750 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11751 argument.
11752
11753 2014-02-19 Tom Tromey <tromey@redhat.com>
11754
11755 * target.h (struct target_ops) <to_execution_direction>: Add
11756 argument.
11757 (target_execution_direction): Add argument.
11758 * target.c (default_execution_direction): Add 'self' argument.
11759 * record-full.c (record_full_execution_direction): Add 'self'
11760 argument.
11761
11762 2014-02-19 Tom Tromey <tromey@redhat.com>
11763
11764 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11765 argument.
11766 (target_can_execute_reverse): Add argument.
11767 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11768 * record-full.c (record_full_can_execute_reverse): Add 'self'
11769 argument.
11770 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11771 argument.
11772
11773 2014-02-19 Tom Tromey <tromey@redhat.com>
11774
11775 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11776 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11777 argument.
11778 (target_get_ada_task_ptid): Add argument.
11779 * target.c (update_current_target): Update.
11780 (default_get_ada_task_ptid): Add 'self' argument.
11781 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11782 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11783 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11784 argument.
11785 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11786 argument.
11787 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11788 argument.
11789 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11790 argument.
11791 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11792 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11793 argument.
11794
11795 2014-02-19 Tom Tromey <tromey@redhat.com>
11796
11797 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11798 (target_goto_bookmark): Add argument.
11799 * target.c (dummy_goto_bookmark): Add 'self' argument.
11800 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11801
11802 2014-02-19 Tom Tromey <tromey@redhat.com>
11803
11804 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11805 (target_get_bookmark): Add argument.
11806 * target.c (dummy_get_bookmark): Add 'self' argument.
11807 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11808
11809 2014-02-19 Tom Tromey <tromey@redhat.com>
11810
11811 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11812 argument.
11813 (target_make_corefile_notes): Add argument.
11814 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11815 * procfs.c (procfs_make_note_section): Add 'self' argument.
11816 (procfs_make_note_section): Add 'self' argument.
11817 (procfs_make_note_section): Add 'self' argument.
11818 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11819 argument.
11820 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11821 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11822 * exec.c (exec_make_note_section): Add 'self' argument.
11823 (exec_make_note_section): Add 'self' argument.
11824
11825 2014-02-19 Tom Tromey <tromey@redhat.com>
11826
11827 * target.h (struct target_ops) <to_find_memory_regions>: Add
11828 argument.
11829 (target_find_memory_regions): Add argument.
11830 * target.c (dummy_find_memory_regions): Add 'self' argument.
11831 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11832 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11833 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11834 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11835 * exec. (exec_do_find_memory_regions): New global.
11836 (exec_set_find_memory_regions): Rewrite.
11837 (exec_find_memory_regions): New function.
11838 (init_exec_ops): Use exec_find_memory_regions.
11839
11840 2014-02-19 Tom Tromey <tromey@redhat.com>
11841
11842 * target.h (struct target_ops) <to_supports_non_stop>: Add
11843 argument.
11844 * target.c (find_default_supports_non_stop): Add argument.
11845 (target_supports_non_stop): Add argument.
11846 (find_default_supports_non_stop): Add 'self' argument.
11847 * remote.c (remote_supports_non_stop): Add 'self' argument.
11848 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11849
11850 2014-02-19 Tom Tromey <tromey@redhat.com>
11851
11852 * target.h (struct target_ops) <to_log_command>: Add argument.
11853 (target_log_command): Add argument.
11854 * serial.h (serial_log_command): Add 'self' argument.
11855 * serial.c (serial_log_command): Add 'self' argument.
11856
11857 2014-02-19 Tom Tromey <tromey@redhat.com>
11858
11859 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11860 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11861 argument.
11862 (target_pid_to_exec_file): Add argument.
11863 * target.c (debug_to_pid_to_exec_file): Add argument.
11864 (update_current_target): Update.
11865 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11866 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11867 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11868 (linux_handle_extended_wait): Update.
11869 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11870 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11871 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11872 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11873
11874 2014-02-19 Tom Tromey <tromey@redhat.com>
11875
11876 * target.h (struct target_ops) <to_rcmd>: Add argument.
11877 (target_rcmd): Add argument.
11878 * target.c (debug_to_rcmd): Add argument.
11879 (update_current_target, do_monitor_command): Update.
11880 * remote.c (remote_rcmd): Add 'self' argument.
11881 * monitor.c (monitor_rcmd): Add 'self' argument.
11882
11883 2014-02-19 Tom Tromey <tromey@redhat.com>
11884
11885 * windows-nat.c (windows_stop): Add 'self' argument.
11886 * target.h (struct target_ops) <to_stop>: Add argument.
11887 * target.c (target_stop): Add argument.
11888 (debug_to_stop): Add argument.
11889 (update_current_target): Update.
11890 * remote.c (remote_stop): Add 'self' argument.
11891 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11892 (gdbsim_cntrl_c): Update.
11893 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11894 * procfs.c (procfs_stop): Add 'self' argument.
11895 * nto-procfs.c (procfs_stop): Add 'self' argument.
11896 * monitor.c (monitor_stop): Add 'self' argument.
11897 (monitor_open): Update.
11898 * linux-nat.c (linux_nat_stop): Add argument.
11899 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11900 * gnu-nat.c (gnu_stop): Add 'self' argument.
11901 * darwin-nat.c (darwin_stop): Add 'self' argument.
11902
11903 2014-02-19 Tom Tromey <tromey@redhat.com>
11904
11905 * target.h (struct target_ops) <to_thread_name>: Add argument.
11906 * target.c (target_thread_name): Add argument.
11907 (update_current_target): Update.
11908 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11909
11910 2014-02-19 Tom Tromey <tromey@redhat.com>
11911
11912 * target.h (struct target_ops) <to_extra_thread_info>: Add
11913 argument.
11914 (target_extra_thread_info): Add argument.
11915 * target.c (update_current_target): Update.
11916 * remote.c (remote_threads_extra_info): Add 'self' argument.
11917 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11918 argument.
11919 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11920 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11921 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11922 argument.
11923 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11924 argument.
11925 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11926 argument.
11927 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11928 argument.
11929
11930 2014-02-19 Tom Tromey <tromey@redhat.com>
11931
11932 * target.h (struct target_ops) <to_program_signals>: Add argument.
11933 * target.c (target_program_signals): Add argument.
11934 * remote.c (remote_program_signals): Add 'self' argument.
11935
11936 2014-02-19 Tom Tromey <tromey@redhat.com>
11937
11938 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11939 * target.c (target_pass_signals): Add argument.
11940 * remote.c (remote_pass_signals): Add 'self' argument.
11941 (remote_start_remote): Update.
11942 * procfs.c (procfs_pass_signals): Add 'self' argument.
11943 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11944 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11945 (linux_nat_create_inferior, linux_nat_attach): Update.
11946
11947 2014-02-19 Tom Tromey <tromey@redhat.com>
11948
11949 * windows-nat.c (windows_can_run): Add 'self' argument.
11950 * target.h (struct target_ops) <to_can_run>: Add argument.
11951 (target_can_run): Add argument.
11952 * target.c (debug_to_can_run): Add argument.
11953 (update_current_target): Update.
11954 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11955 * inf-child.c (inf_child_can_run): Add 'self' argument.
11956 * go32-nat.c (go32_can_run): Add 'self' argument.
11957
11958 2014-02-19 Tom Tromey <tromey@redhat.com>
11959
11960 * target.h (struct target_ops) <to_has_exited>: Add argument.
11961 (target_has_exited): Add argument.
11962 * target.c (debug_to_has_exited): Add argument.
11963 (update_current_target): Update.
11964
11965 2014-02-19 Tom Tromey <tromey@redhat.com>
11966
11967 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11968 argument.
11969 (target_set_syscall_catchpoint): Add argument.
11970 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11971 argument.
11972 * target.c (update_current_target): Update.
11973
11974 2014-02-19 Tom Tromey <tromey@redhat.com>
11975
11976 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11977 argument.
11978 (target_remove_exec_catchpoint): Add argument.
11979 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11980 (update_current_target): Update.
11981 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11982 argument.
11983
11984 2014-02-19 Tom Tromey <tromey@redhat.com>
11985
11986 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11987 argument.
11988 (target_insert_exec_catchpoint): Add argument.
11989 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11990 (update_current_target): Update.
11991 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11992 argument.
11993
11994 2014-02-19 Tom Tromey <tromey@redhat.com>
11995
11996 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11997 argument.
11998 (target_remove_vfork_catchpoint): Add argument.
11999 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12000 (update_current_target): Update.
12001 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12002 argument.
12003
12004 2014-02-19 Tom Tromey <tromey@redhat.com>
12005
12006 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12007 argument.
12008 (target_insert_vfork_catchpoint): Add argument.
12009 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12010 (update_current_target): Update.
12011 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12012 argument.
12013
12014 2014-02-19 Tom Tromey <tromey@redhat.com>
12015
12016 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12017 argument.
12018 (target_remove_fork_catchpoint): Add argument.
12019 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12020 (update_current_target): Update.
12021 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12022 argument.
12023
12024 2014-02-19 Tom Tromey <tromey@redhat.com>
12025
12026 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12027 argument.
12028 (target_insert_fork_catchpoint): Add argument.
12029 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12030 (update_current_target): Update.
12031 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12032 argument.
12033
12034 2014-02-19 Tom Tromey <tromey@redhat.com>
12035
12036 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12037 argument.
12038 (target_post_startup_inferior): Add argument.
12039 * target.c (debug_to_post_startup_inferior): Add argument.
12040 (update_current_target): Update.
12041 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12042 argument.
12043 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12044 argument.
12045 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12046 argument.
12047 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12048 argument.
12049 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12050 'self' argument.
12051 (super_post_startup_inferior): Likewise.
12052 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12053 'self' argument.
12054 (super_post_startup_inferior): Likewise.
12055 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12056 Add 'self' argument.
12057 (super_post_startup_inferior): Likewise.
12058
12059 2014-02-19 Tom Tromey <tromey@redhat.com>
12060
12061 * target.h (struct target_ops) <to_load>: Add argument.
12062 * target.c (target_load): Add argument.
12063 (debug_to_load): Add argument.
12064 (update_current_target): Update.
12065 * remote.c (remote_load): Add 'self' argument.
12066 * remote-sim.c (gdbsim_load): Add 'self' argument.
12067 * remote-mips.c (mips_load): Add 'self' argument.
12068 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12069 * monitor.c (monitor_load): Add 'self' argument.
12070 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12071
12072 2014-02-19 Tom Tromey <tromey@redhat.com>
12073
12074 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12075 (target_terminal_info): Add argument.
12076 * target.c (debug_to_terminal_info): Add argument.
12077 (default_terminal_info): Likewise.
12078 * inflow.c (child_terminal_info): Add 'self' argument.
12079 * inferior.h (child_terminal_info): Add 'self' argument.
12080 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12081
12082 2014-02-19 Tom Tromey <tromey@redhat.com>
12083
12084 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12085 argument.
12086 (target_terminal_save_ours): Add argument.
12087 * target.c (debug_to_terminal_save_ours): Add argument.
12088 (update_current_target): Update.
12089 * inflow.c (terminal_save_ours): Add 'self' argument.
12090 * inferior.h (terminal_save_ours): Add 'self' argument.
12091
12092 2014-02-19 Tom Tromey <tromey@redhat.com>
12093
12094 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12095 (target_terminal_ours): Add argument.
12096 * target.c (debug_to_terminal_ours): Add argument.
12097 (update_current_target): Update.
12098 * remote.c (remote_terminal_ours): Add 'self' argument.
12099 (remote_close): Update.
12100 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12101 * inflow.c (terminal_ours): Add 'self' argument.
12102 * inferior.h (terminal_ours): Add 'self' argument.
12103 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12104
12105 2014-02-19 Pedro Alves <palves@redhat.com>
12106 Tom Tromey <tromey@redhat.com>
12107
12108 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12109 argument.
12110 (target_terminal_ours_for_output): Add argument.
12111 * target.c (debug_to_terminal_ours_for_output): Add argument.
12112 (update_current_target): Update.
12113 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12114 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12115 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12116
12117 2014-02-19 Tom Tromey <tromey@redhat.com>
12118
12119 * target.h (struct target_ops) <to_terminal_inferior>: Add
12120 argument.
12121 * target.c (target_terminal_inferior): Add argument.
12122 (update_current_target): Update.
12123 * remote.c (remote_terminal_inferior): Add 'self' argument.
12124 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12125 * inflow.c (terminal_inferior): Add 'self' argument.
12126 * inferior.h (terminal_inferior): Add 'self' argument.
12127 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12128 (go32_terminal_inferior): Add 'self' argument.
12129
12130 2014-02-19 Tom Tromey <tromey@redhat.com>
12131
12132 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12133 (target_terminal_init): Add argument.
12134 * target.c (debug_to_terminal_init): Add argument.
12135 (update_current_target): Update.
12136 * inflow.c (terminal_init_inferior): Add 'self' argument.
12137 * inferior.h (terminal_init_inferior): Add 'self' argument.
12138 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12139 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12140
12141 2014-02-19 Tom Tromey <tromey@redhat.com>
12142
12143 * target.h (struct target_ops)
12144 <to_can_accel_watchpoint_condition>: Add argument.
12145 (target_can_accel_watchpoint_condition): Add argument.
12146 * target.c (debug_to_can_accel_watchpoint_condition): Add
12147 argument.
12148 (update_current_target): Update.
12149 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12150 'self' argument.
12151
12152 2014-02-19 Tom Tromey <tromey@redhat.com>
12153
12154 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12155 Add argument.
12156 (target_region_ok_for_hw_watchpoint): Add argument.
12157 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12158 (default_region_ok_for_hw_watchpoint): Add argument.
12159 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12160 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12161 argument.
12162 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12163 argument.
12164 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12165 argument.
12166 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12167 'self' argument.
12168 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12169 'self' argument.
12170 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12171 'self' argument.
12172 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12173 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12174 'self' argument.
12175 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12176 Add 'self' argument.
12177
12178 2014-02-19 Tom Tromey <tromey@redhat.com>
12179
12180 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12181 argument.
12182 (target_insert_watchpoint): Add argument.
12183 * target.c (debug_to_insert_watchpoint): Add argument.
12184 (update_current_target): Update.
12185 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12186 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12187 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12188 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12189 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12190 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12191 argument.
12192 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12193 (procfs_insert_hw_watchpoint): Add 'self' argument.
12194 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12195 argument.
12196 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12197 argument.
12198 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12199 argument.
12200 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12201 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12202 argument.
12203 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12204 'self' argument.
12205
12206 2014-02-19 Tom Tromey <tromey@redhat.com>
12207
12208 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12209 argument.
12210 (target_remove_watchpoint): Add argument.
12211 * target.c (debug_to_remove_watchpoint): Add argument.
12212 (update_current_target): Update.
12213 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12214 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12215 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12216 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12217 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12218 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12219 argument.
12220 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12221 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12222 argument.
12223 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12224 argument.
12225 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12226 argument.
12227 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12228 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12229 argument.
12230 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12231 'self' argument.
12232
12233 2014-02-19 Tom Tromey <tromey@redhat.com>
12234
12235 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12236 argument.
12237 (target_remove_hw_breakpoint): Add argument.
12238 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12239 (update_current_target): Update.
12240 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12241 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12242 argument.
12243 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12244 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12245 argument.
12246 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12247 'self' argument.
12248
12249 2014-02-19 Tom Tromey <tromey@redhat.com>
12250
12251 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12252 argument.
12253 (target_insert_hw_breakpoint): Add argument.
12254 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12255 (update_current_target): Update.
12256 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12257 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12258 argument.
12259 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12260 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12261 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12262 argument.
12263 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12264 'self' argument.
12265
12266 2014-02-19 Tom Tromey <tromey@redhat.com>
12267
12268 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12269 argument.
12270 (target_can_use_hardware_watchpoint): Add argument.
12271 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12272 (update_current_target): Update.
12273 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12274 argument.
12275 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12276 argument.
12277 * remote.c (remote_check_watch_resources): Add 'self' argument.
12278 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12279 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12280 argument.
12281 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12282 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12283 argument.
12284 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12285 argument.
12286 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12287 argument.
12288 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12289 argument.
12290 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12291 argument.
12292 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12293 argument.
12294 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12295 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12296 argument.
12297 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12298 'self' argument.
12299
12300 2014-02-19 Tom Tromey <tromey@redhat.com>
12301
12302 * target.h (struct target_ops) <to_post_attach>: Add argument.
12303 (target_post_attach): Add argument.
12304 * target.c (debug_to_post_attach): Add argument.
12305 (update_current_target): Update.
12306 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12307 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12308 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12309 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12310 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12311
12312 2014-02-19 Tom Tromey <tromey@redhat.com>
12313
12314 * windows-nat.c (windows_close): Add 'self' argument.
12315 * tracepoint.c (tfile_close): Add 'self' argument.
12316 * target.h (struct target_ops) <to_close>: Add argument.
12317 * target.c (target_close): Add argument.
12318 (update_current_target): Update.
12319 * remote.c (remote_close): Add 'self' argument.
12320 * remote-sim.c (gdbsim_close): Add 'self' argument.
12321 * remote-mips.c (mips_close): Add 'self' argument.
12322 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12323 * record-full.c (record_full_close): Add 'self' argument.
12324 * record-btrace.c (record_btrace_close): Add 'self' argument.
12325 * monitor.h (monitor_close): Add 'self' argument.
12326 * monitor.c (monitor_close): Add 'self' argument.
12327 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12328 * linux-nat.c (linux_nat_close): Add argument.
12329 * go32-nat.c (go32_close): Add 'self' argument.
12330 * exec.c (exec_close_1): Add 'self' argument.
12331 * ctf.c (ctf_close): Add 'self' argument.
12332 * corelow.c (core_close): Add 'self' argument.
12333 (core_close_cleanup): Update.
12334 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12335 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12336
12337 2014-02-19 Tom Tromey <tromey@redhat.com>
12338
12339 * remote.c (remote_load): New function.
12340 (init_remote_ops): Use it.
12341
12342 2014-02-19 Tom Tromey <tromey@redhat.com>
12343
12344 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12345 argument.
12346 * common/linux-btrace.h (linux_supports_btrace): Update.
12347 * remote.c (remote_supports_btrace): Add "self" argument.
12348 * target-delegates.c: Rebuild.
12349 * target.c (target_supports_btrace): Remove.
12350 * target.h (struct target_ops) <to_supports_btrace>: Add
12351 target_ops argument.
12352 (target_supports_btrace): New define.
12353
12354 2014-02-19 Tom Tromey <tromey@redhat.com>
12355
12356 * record-full.c (record_full_beneath_to_resume_ops)
12357 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12358 (record_full_beneath_to_wait)
12359 (record_full_beneath_to_store_registers_ops)
12360 (record_full_beneath_to_store_registers)
12361 (record_full_beneath_to_xfer_partial_ops)
12362 (record_full_beneath_to_xfer_partial)
12363 (record_full_beneath_to_insert_breakpoint_ops)
12364 (record_full_beneath_to_insert_breakpoint)
12365 (record_full_beneath_to_remove_breakpoint_ops)
12366 (record_full_beneath_to_remove_breakpoint)
12367 (record_full_beneath_to_stopped_by_watchpoint)
12368 (record_full_beneath_to_stopped_data_address)
12369 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12370 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12371 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12372 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12373 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12374 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12375 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12376 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12377 (record_full_resume, record_full_wait_1)
12378 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12379 (record_full_store_registers, record_full_xfer_partial)
12380 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12381 (record_full_async, record_full_core_xfer_partial): Use target
12382 delegation.
12383 * target-delegates.c: Rebuild.
12384 * target.c (current_xfer_partial): Remove.
12385 (update_current_target): Do not INHERIT or de_fault
12386 to_insert_breakpoint, to_remove_breakpoint,
12387 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12388 to_is_async_p, to_async. Do not set to_xfer_partial field.
12389 (default_xfer_partial): Simplify.
12390 (current_xfer_partial): Remove.
12391 (target_wait, target_resume): Simplify.
12392 (find_default_can_async_p, find_default_is_async_p): Update.
12393 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12394 to_xfer_partial, to_stopped_by_watchpoint,
12395 to_stopped_data_address.
12396 (target_store_registers): Simplify.
12397 (forward_target_remove_breakpoint)
12398 (forward_target_insert_breakpoint): Remove.
12399 (target_remove_breakpoint, target_insert_breakpoint)
12400 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12401 * target.h (struct target_ops) <to_resume, to_wait,
12402 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12403 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12404 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12405 markup.
12406 (forward_target_remove_breakpoint)
12407 (forward_target_insert_breakpoint): Remove.
12408 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12409 directly.
12410 (record_btrace_insert_breakpoint): Delegate directly.
12411
12412 2014-02-19 Tom Tromey <tromey@redhat.com>
12413
12414 PR build/7701:
12415 * target-delegates.c: New file.
12416 * target.c: Include target-delegates.c.
12417 (init_dummy_target): Call install_dummy_methods.
12418 (complete_target_initialization): Call install_delegators.
12419 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12420 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12421 * make-target-delegates: New file.
12422
12423 2014-02-19 Tom Tromey <tromey@redhat.com>
12424
12425 * record.c (find_record_target): Use find_target_at.
12426 * target.c (find_target_at): New function.
12427 * target.h (find_target_at): Declare.
12428
12429 2014-02-19 Tom Tromey <tromey@redhat.com>
12430
12431 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12432 Add 'ops' argument.
12433 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12434 'ops' argument.
12435 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12436 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12437 'ops' argument.
12438 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12439 argument.
12440 * linux-nat.c (save_sigtrap): Update.
12441 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12442 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12443 (linux_nat_close): Update.
12444 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12445 argument.
12446 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12447 argument.
12448 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12449 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12450 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12451 (tmp_to_async): Add 'ops' argument.
12452 (record_full_stopped_by_watchpoint, record_full_async)
12453 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12454 argument.
12455 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12456 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12457 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12458 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12459 (remote_is_async_p, remote_async): Add 'ops' argument.
12460 (remote_stopped_data_address): Update.
12461 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12462 * target.c (update_current_target)
12463 (find_default_can_async_p, find_default_is_async_p): Update.
12464 (init_dummy_target): Update.
12465 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12466 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12467 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12468 (target_can_async_p, target_is_async_p, target_async)
12469 (target_stopped_by_watchpoint): Update.
12470
12471 2014-02-19 Yao Qi <yao@codesourcery.com>
12472
12473 PR gdb/16220
12474 * gdbarch.sh: Remove startup_gdbarch.
12475 * gdbarch.c: Regenerated.
12476 * gdbarch.h: Likewise.
12477
12478 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12479
12480 * rl78-tdep.c (rl78_g10_register_name): New function.
12481 (rl78_return_value): Add g10 support.
12482 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12483 g10.
12484
12485 2014-02-17 Doug Evans <xdje42@gmail.com>
12486
12487 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12488 (SUBDIR_GUILE_SRCS): Ditto.
12489 (scm-gsmob.o): Ditto.
12490
12491 2014-02-17 Yao Qi <yao@codesourcery.com>
12492
12493 * gnu-nat.c (ILL_RPC): Declare defined function.
12494
12495 2014-02-17 Yao Qi <yao@codesourcery.com>
12496
12497 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12498 mach_msg_type_number_t.
12499 (gnu_write_inferior): Likewise.
12500
12501 2014-02-17 Yao Qi <yao@codesourcery.com>
12502
12503 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12504 in format string.
12505 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12506 (inf_validate_procs, inf_signal): Likewise.
12507 (S_exception_raise_request): Likewise.
12508 (do_mach_notify_dead_name): Likewise.
12509 (steal_exc_port): Likewise.
12510 (gnu_read_inferior): Change 'copy_count''s type to
12511 mach_msg_type_number_t.
12512 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12513 format string.
12514
12515 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12516
12517 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12518 flag. Adjust all users; in particular...
12519 (gnu_wait): ..., don't decrement its value in here...
12520 (gnu_create_inferior): ..., and instead set the flag in here,
12521 around the startup_inferior call, and call that one with
12522 START_INFERIOR_TRAPS_EXPECTED.
12523
12524 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12525 (ILL_RPC): ... new macro.
12526 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12527 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12528 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12529 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12530 functions with ILL_RPC macro.
12531 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12532 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12533 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12534 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12535 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12536 (S_proc_getlogin_reply, S_proc_getsid_reply)
12537 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12538 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12539 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12540 (S_proc_getnports_reply, S_proc_is_important_reply)
12541 (S_proc_get_code_reply): New stub functions, generated with
12542 ILL_RPC macro.
12543
12544 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12545 collected the type check structures.
12546
12547 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12548
12549 2014-02-14 Doug Evans <dje@google.com>
12550
12551 * target.c (target_write_partial): Fix result type.
12552
12553 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12554
12555 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12556 the proper offsets to access fpregset_t.
12557
12558 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12559
12560 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12561 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12562 * h8300-tdep.c (setmachinelist): Remove global.
12563 * hppa-tdep.c (hppa_sigtramp): Remove global.
12564 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12565 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12566 * ravenscar-thread.c (update_target_observer): Remove global.
12567 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12568
12569 2014-02-12 Tom Tromey <tromey@redhat.com>
12570
12571 * common/rsp-low.c: Update comments.
12572 * common/rsp-low.h: Update comments.
12573
12574 2014-02-12 Tom Tromey <tromey@redhat.com>
12575
12576 * common/rsp-low.c (convert_ascii_to_int): Remove.
12577 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12578
12579 2014-02-12 Tom Tromey <tromey@redhat.com>
12580
12581 * common/rsp-low.h (unhexify): Don't declare.
12582 * common/rsp-low.c (unhexify): Remove.
12583
12584 2014-02-12 Tom Tromey <tromey@redhat.com>
12585
12586 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12587 * common/rsp-low.c (convert_int_to_ascii): Remove.
12588
12589 2014-02-12 Tom Tromey <tromey@redhat.com>
12590
12591 * common/rsp-low.h (hexify): Don't declare.
12592 * common/rsp-low.c (hexify): Remove.
12593
12594 2014-02-12 Tom Tromey <tromey@redhat.com>
12595
12596 * common/rsp-low.c (hexify): Never take strlen of argument.
12597
12598 2014-02-12 Tom Tromey <tromey@redhat.com>
12599
12600 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12601 * remote.c (extended_remote_run, remote_rcmd)
12602 (remote_download_trace_state_variable, remote_save_trace_data)
12603 (remote_set_trace_notes): Update.
12604 * tracepoint.c (encode_source_string, tfile_write_status)
12605 (tfile_write_uploaded_tsv): Update.
12606
12607 2014-02-12 Tom Tromey <tromey@redhat.com>
12608
12609 * tracepoint.c: Include rsp-low.h.
12610 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12611 * remote.c: Include rsp-low.h.
12612 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12613 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12614 (remote_unescape_input): Move to common/rsp-low.c.
12615 * common/rsp-low.h: New file.
12616 * common/rsp-low.c: New file.
12617 * Makefile.in (SFILES): Add common/rsp-low.c.
12618 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12619 (COMMON_OBS): Add rsp-low.o.
12620 (rsp-low.o): New target.
12621
12622 2014-02-12 Tom Tromey <tromey@redhat.com>
12623
12624 * utils.h: Include print-utils.h.
12625 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12626 (int_string, core_addr_to_string, core_addr_to_string_nz)
12627 (hex_string, hex_string_custom): Don't declare.
12628 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12629 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12630 (hex_string_custom, int_string, core_addr_to_string)
12631 (core_addr_to_string_nz, host_address_to_string): Move to
12632 common/print-utils.c.
12633 * common/print-utils.h: New file.
12634 * common/print-utils.c: New file
12635 * Makefile.in (SFILES): Add common/print-utils.c.
12636 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12637 (COMMON_OBS): Add print-utils.o.
12638 (print-utils.o): New target.
12639
12640 2014-02-12 Tom Tromey <tromey@redhat.com>
12641
12642 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12643
12644 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12645
12646 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12647
12648 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12649
12650 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12651 if a PT_IO ptrace request returns sucessfully but indicates that 0
12652 bytes were transferred.
12653
12654 2014-02-12 Pedro Alves <palves@redhat.com>
12655 Kevin Buettner <kevinb@redhat.com>
12656
12657 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12658 TYPE_INSTANCE_FLAG_CODE_SPACE.
12659
12660 2014-02-12 Pedro Alves <palves@redhat.com>
12661
12662 * h8300-tdep.c (pseudo_from_raw_register)
12663 (raw_from_pseudo_register): New functions.
12664 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12665 them.
12666
12667 2014-02-12 Pedro Alves <palves@redhat.com>
12668
12669 * h8300-tdep.c (h8300_register_sim_regno): New function.
12670 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12671 gdbarch_register_sim_regno hook.
12672
12673 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12674
12675 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12676
12677 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12678
12679 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12680
12681 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12682
12683 * obsd-tdep.h (obsd_init_abi): New prototype.
12684 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12685 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12686 (obsd_init_abi): New functions.
12687 * i386obsd-tdep.c: Include "obsd-tdep.h".
12688 (i386obsd_init_abi): Call obsd_init_abi.
12689 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12690 (amd64obsd_init_abi): Call obsd_init_abi.
12691 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12692 obsd-tdep.c to gdb_target_obs.
12693
12694 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12695
12696 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12697 double float arguments to 16-byte in the argument slots.
12698
12699 2014-02-11 Doug Evans <xdje42@gmail.com>
12700
12701 * configure.ac: Don't crash if pkg-config is not found and guile
12702 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12703 in guile checks.
12704 * configure: Regenerate.
12705
12706 2014-02-11 Yao Qi <yao@codesourcery.com>
12707
12708 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12709 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12710 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12711 * gnu-nat.c (gnu_xfer_memory): Likewise.
12712 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12713 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12714 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12715 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12716
12717 2014-02-11 Yao Qi <yao@codesourcery.com>
12718
12719 * target.h (enum target_xfer_error): Rename to ...
12720 (enum target_xfer_status): ... it. New. All users updated.
12721 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12722 New.
12723 (TARGET_XFER_STATUS_ERROR_P): New macro.
12724 (target_xfer_error_to_string): Remove declaration.
12725 (target_xfer_status_to_string): Declare.
12726 (target_xfer_partial_ftype): Adjust it.
12727 (struct target_ops) <to_xfer_partial>: Return
12728 target_xfer_status. Add argument xfered_len. Update
12729 comments.
12730 * target.c (target_xfer_error_to_string): Rename to ...
12731 (target_xfer_status_to_string): ... it. New. All callers
12732 updated.
12733 (target_read_live_memory): Likewise. Call target_xfer_partial
12734 instead of target_read.
12735 (memory_xfer_live_readonly_partial): Return
12736 target_xfer_status. Add argument xfered_len.
12737 (raw_memory_xfer_partial): Likewise.
12738 (memory_xfer_partial_1): Likewise.
12739 (memory_xfer_partial): Likewise.
12740 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12741 properly. Update debug message.
12742 (default_xfer_partial, current_xfer_partial): Likewise.
12743 (target_write_partial): Likewise.
12744 (target_read_partial): Likewise. All callers updated.
12745 (read_whatever_is_readable): Likewise.
12746 (target_write_with_progress): Likewise.
12747 (target_read_alloc_1): Likewise.
12748
12749 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12750 * auxv.c (procfs_xfer_auxv): Likewise.
12751 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12752 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12753 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12754 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12755 * corefile.c (read_memory): Adjust.
12756 * corelow.c (core_xfer_partial): Likewise.
12757 * ctf.c (ctf_xfer_partial): Likewise.
12758 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12759 updated.
12760 (darwin_xfer_partial): Likewise.
12761 * exec.c (section_table_xfer_memory_partial): Likewise. All
12762 callers updated.
12763 (exec_xfer_partial): Likewise.
12764 * exec.h (section_table_xfer_memory_partial): Update
12765 declaration.
12766 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12767 negative.
12768 (gnu_xfer_partial): Likewise.
12769 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12770 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12771 (ia64_hpux_xfer_solib_got): Likewise.
12772 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12773 type of 'partial_len' to ULONGEST.
12774 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12775 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12776 (linux_nat_xfer_partial): Likewise.
12777 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12778 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12779 * monitor.c (monitor_xfer_memory): Likewise.
12780 (monitor_xfer_partial): Likewise.
12781 * procfs.c (procfs_xfer_partial): Likewise.
12782 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12783 * record-full.c (record_full_xfer_partial): Likewise.
12784 (record_full_core_xfer_partial): Likewise.
12785 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12786 (gdbsim_xfer_partial): Likewise.
12787 * remote.c (remote_write_bytes_aux): Likewise. All callers
12788 updated.
12789 (remote_write_bytes, remote_read_bytes): Likewise. All
12790 callers updated.
12791 (remote_flash_erase): Likewise. All callers updated.
12792 (remote_write_qxfer): Likewise. All callers updated.
12793 (remote_read_qxfer): Likewise. All callers updated.
12794 (remote_xfer_partial): Likewise.
12795 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12796 (rs6000_xfer_shared_libraries): Likewise.
12797 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12798 (sol_thread_xfer_partial): Likewise.
12799 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12800 (sparc_xfer_partial): Likewise.
12801 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12802 updated.
12803 (spu_xfer_partial): Likewise.
12804 * spu-multiarch.c (spu_xfer_partial): Likewise.
12805 * tracepoint.c (tfile_xfer_partial): Likewise.
12806 * windows-nat.c (windows_xfer_memory): Likewise.
12807 (windows_xfer_shared_libraries): Likewise.
12808 (windows_xfer_partial): Likewise.
12809 * valprint.c: Replace 'target_xfer_error' with
12810 'target_xfer_status' in comments.
12811
12812 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12813
12814 Checked in by Joel Brobecker <brobecker@adacore.com>.
12815 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12816
12817 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12818
12819 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12820 function parameters.
12821
12822 2014-02-10 Will Newton <will.newton@linaro.org>
12823
12824 * elfread.c (elf_rel_plt_read): Look for a .got section if
12825 looking up .got.plt fails.
12826 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12827 on address passed to elf_gnu_ifunc_record_cache.
12828 (elf_gnu_ifunc_resolve_addr): Likewise.
12829 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12830
12831 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12832
12833 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12834 (X_RETTURN): New macro.
12835 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12836
12837 * sparc64-tdep.c (sparc64_init_abi): Hook
12838 sparc_in_function_epilogue_p.
12839
12840 2014-02-10 Gary Benson <gbenson@redhat.com>
12841
12842 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12843 Rename name_matcher to symbol_matcher.
12844
12845 2014-02-10 Gary Benson <gbenson@redhat.com>
12846
12847 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12848 Use expand_symtabs_file_matcher_ftype and
12849 expand_symtabs_symbol_matcher_ftype.
12850
12851 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12852
12853 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12854 (struct ada_symbol_cache): New.
12855 (ada_free_symbol_cache): Forward declare.
12856 (struct ada_pspace_data): New.
12857 (ada_pspace_data_handle): New static global.
12858 (get_ada_pspace_data, ada_pspace_data_cleanup)
12859 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12860 (cache_space, cache): Delete, now folded inside struct
12861 ada_pspace_data.
12862 (ada_get_symbol_cache): New function.
12863 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12864 implementation.
12865 (_initialize_ada_language): Remove initialization of cache_space.
12866 Move call to observer_attach_inferior_exit up, grouping it
12867 with the other observer registrations inside this function.
12868 Rename command to be more general. Add call to
12869 register_program_space_data_with_cleanup.
12870
12871 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12872
12873 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12874 ada_new_objfile_observer.
12875 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12876 (_initialize_tasks): Update uses of ada_new_objfile_observer
12877 and ada_tasks_normal_stop_observer.
12878
12879 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12880
12881 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12882 returned by the 'Length attribute to integer.
12883
12884 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12885
12886 * ada-lang.c (_initialize_ada_language): Initialize
12887 cache_space obstack.
12888
12889 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12890
12891 * ada-lang.c (HASH_SIZE): New macro.
12892 (struct cache_entry): New type.
12893 (cache_space, cache): New static globals.
12894 (ada_clear_symbol_cache, find_entry): New functions.
12895 (lookup_cached_symbol, cache_symbol): Implement.
12896 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12897 (_initialize_ada_language): Attach ada_new_objfile_observer
12898 and ada_free_objfile_observer.
12899
12900 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12901
12902 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12903 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12904 struct block * parameter.
12905 (ada_lookup_symbol_list_worker): Constify local variable "block".
12906 Remove cast which is no longer necessary.
12907
12908 2014-02-10 Doug Evans <xdje42@gmail.com>
12909
12910 Add Guile as an extension language.
12911 * NEWS: Mention Guile scripting.
12912 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12913 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12914 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12915 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12916 (CLIBS): Add GUILE_LIBS.
12917 (install-guile): New rule.
12918 (guile.o): New rule.
12919 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12920 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12921 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12922 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12923 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12924 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12925 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12926 * configure.ac: New option --with-guile.
12927 * configure: Regenerate.
12928 * config.in: Regenerate.
12929 * auto-load.c: Remove #include "python/python.h". Add #include
12930 "gdb/section-scripts.h".
12931 (source_section_scripts): Handle Guile scripts.
12932 (_initialize_auto_load): Add name of Guile objfile script to
12933 scripts-directory help text.
12934 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12935 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12936 (struct breakpoint): New member scm_bp_object.
12937 * defs.h (enum command_control_type): New value guile_control.
12938 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12939 "extension.h".
12940 (show_user): Update comment.
12941 (_initialize_cli_cmds): Update help text for "show user". Update help
12942 text for max-user-call-depth.
12943 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12944 "extension.h".
12945 (multi_line_command_p): Add guile_control.
12946 (print_command_lines): Handle guile_control.
12947 (execute_control_command, recurse_read_control_structure): Ditto.
12948 (process_next_line): Recognize "guile" commands.
12949 * disasm.c (gdb_disassemble_info): Make non-static.
12950 * disasm.h: #include "dis-asm.h".
12951 (struct gdbarch): Add forward decl.
12952 (gdb_disassemble_info): Declare.
12953 * extension.c: #include "guile/guile.h".
12954 (extension_languages): Add guile.
12955 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12956 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12957 * gdbtypes.c (get_unsigned_type_max): New function.
12958 (get_signed_type_minmax): New function.
12959 * gdbtypes.h (get_unsigned_type_max): Declare.
12960 (get_signed_type_minmax): Declare.
12961 * guile/README: New file.
12962 * guile/guile-internal.h: New file.
12963 * guile/guile.c: New file.
12964 * guile/guile.h: New file.
12965 * guile/scm-arch.c: New file.
12966 * guile/scm-auto-load.c: New file.
12967 * guile/scm-block.c: New file.
12968 * guile/scm-breakpoint.c: New file.
12969 * guile/scm-disasm.c: New file.
12970 * guile/scm-exception.c: New file.
12971 * guile/scm-frame.c: New file.
12972 * guile/scm-gsmob.c: New file.
12973 * guile/scm-iterator.c: New file.
12974 * guile/scm-lazy-string.c: New file.
12975 * guile/scm-math.c: New file.
12976 * guile/scm-objfile.c: New file.
12977 * guile/scm-ports.c: New file.
12978 * guile/scm-pretty-print.c: New file.
12979 * guile/scm-safe-call.c: New file.
12980 * guile/scm-string.c: New file.
12981 * guile/scm-symbol.c: New file.
12982 * guile/scm-symtab.c: New file.
12983 * guile/scm-type.c: New file.
12984 * guile/scm-utils.c: New file.
12985 * guile/scm-value.c: New file.
12986 * guile/lib/gdb.scm: New file.
12987 * guile/lib/gdb/boot.scm: New file.
12988 * guile/lib/gdb/experimental.scm: New file.
12989 * guile/lib/gdb/init.scm: New file.
12990 * guile/lib/gdb/iterator.scm: New file.
12991 * guile/lib/gdb/printing.scm: New file.
12992 * guile/lib/gdb/types.scm: New file.
12993 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12994 (VPATH): Add $(GUILE_SRCDIR).
12995 (GUILE_DIR): New variable.
12996 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12997 (all): Add stamp-guile dependency.
12998 (stamp-guile): New rule.
12999 (clean-guile, install-guile, uninstall-guile): New rules.
13000 (install-only): Add install-guile dependency.
13001 (uninstall): Add uninstall-guile dependency.
13002 (clean): Add clean-guile dependency.
13003
13004 2014-02-09 Doug Evans <xdje42@gmail.com>
13005
13006 Revert this patch (which I approved, mea culpa).
13007
13008 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13009
13010 * Makefile.in (all-lib): Remove.
13011 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13012
13013 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13014
13015 Fix Python stack corruption.
13016 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13017 gdb_py_longest.
13018
13019 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13020
13021 * Makefile.in (all-lib): Remove.
13022 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13023
13024 2014-02-07 Doug Evans <dje@google.com>
13025
13026 * extension-priv.h (extension_language_script_ops): Add comment.
13027 (extension_language_ops): Add comment.
13028 (active_ext_lang_state): Fix typo in comment.
13029
13030 2014-02-07 Pedro Alves <palves@redhat.com>
13031
13032 PR breakpoints/16292
13033 * infrun.c (handle_signal_stop) <signal arrives while stepping
13034 over a breakpoint>: Switch back to the stepping thread.
13035
13036 2014-02-07 Yao Qi <yao@codesourcery.com>
13037
13038 * target.c (target_xfer_partial): Return zero if LEN is zero.
13039
13040 2014-02-07 Yao Qi <yao@codesourcery.com>
13041
13042 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13043 (ld_so_xfer_auxv): Likewise.
13044 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13045 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13046 * corelow.c (core_xfer_partial): Likewise.
13047 * ctf.c (ctf_xfer_partial): Likewise.
13048 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13049 (darwin_xfer_partial): Likewise.
13050 * exec.c (exec_xfer_partial): Likewise.
13051 * gnu-nat.c (gnu_xfer_partial): Likewise.
13052 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13053 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13054 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13055 * linux-nat.c (linux_xfer_siginfo): Likewise.
13056 (linux_proc_xfer_spu): Likewise.
13057 * procfs.c (procfs_xfer_partial): Likewise.
13058 * record-full.c (record_full_xfer_partial): Likewise.
13059 (record_full_core_xfer_partial): Likewise.
13060 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13061 * remote.c (remote_write_qxfer): Likewise.
13062 (remote_write_qxfer, remote_read_qxfer): Likewise.
13063 (remote_xfer_partial): Likewise.
13064 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13065 (rs6000_xfer_shared_libraries): Likewise.
13066 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13067 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13068 (spu_xfer_partial): Likewise.
13069 * target.c (memory_xfer_partial_1): Likewise.
13070 * tracepoint.c (tfile_xfer_partial): Likewise.
13071 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13072 (windows_xfer_partial): Likewise.
13073
13074 2014-02-07 Yao Qi <yao@codesourcery.com>
13075
13076 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13077 comments.
13078 (core_xfer_shared_libraries_aix): Likewise.
13079 * gdbarch.c, gdbarch.h: Regenerated.
13080 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13081 ULONGEST. Change 'len_avail' type to ULONGEST.
13082 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13083 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13084 declaration.
13085 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13086
13087 2014-02-07 Yao Qi <yao@codesourcery.com>
13088
13089 * corefile.c (memory_error): Get 'exception' from ERR and pass
13090 'exception' to throw_error.
13091
13092 2014-02-06 Doug Evans <xdje42@gmail.com>
13093
13094 * configure.ac (libpython checking): Remove all but python.o from
13095 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13096 * configure: Regenerate.
13097
13098 * Makefile.in (SFILES): Add extension.c.
13099 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13100 (COMMON_OBS): Add extension.o.
13101 * extension.h: New file.
13102 * extension-priv.h: New file.
13103 * extension.c: New file.
13104
13105 * python/python-internal.h: #include "extension.h".
13106 (gdbpy_auto_load_enabled): Declare.
13107 (gdbpy_apply_val_pretty_printer): Declare.
13108 (gdbpy_apply_frame_filter): Declare.
13109 (gdbpy_preserve_values): Declare.
13110 (gdbpy_breakpoint_cond_says_stop): Declare.
13111 (gdbpy_breakpoint_has_cond): Declare.
13112 (void source_python_script_for_objfile): Delete.
13113 * python/python.c: #include "extension-priv.h".
13114 Delete inclusion of "observer.h".
13115 (extension_language_python): Moved here and renamed from
13116 script_language_python in py-auto-load.c.
13117 Redefined to be of type extension_language_defn.
13118 (python_extension_script_ops): New global.
13119 (python_extension_ops): New global.
13120 (struct python_env): New member previous_active.
13121 (restore_python_env): Call restore_active_ext_lang.
13122 (ensure_python_env): Call set_active_ext_lang.
13123 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13124 New arg extlang.
13125 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13126 New arg extlang.
13127 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13128 New arg extlang.
13129 (gdbpy_eval_from_control_command): Renamed from
13130 eval_python_from_control_command, made static. New arg extlang.
13131 (gdbpy_source_script) Renamed from source_python_script, made static.
13132 New arg extlang.
13133 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13134 result to int. New arg extlang.
13135 (gdbpy_source_objfile_script): Renamed from
13136 source_python_script_for_objfile, made static. New arg extlang.
13137 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13138 static. New args extlang, extlang_printers. Change result type to
13139 "void".
13140 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13141 static. New arg extlang. Rename arg printers to extlang_printers
13142 and change type to ext_lang_type_printers *.
13143 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13144 static. Replace argument arg with extlang, extlang_printers.
13145 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13146 (!HAVE_PYTHON, source_python_script): Delete.
13147 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13148 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13149 (!HAVE_PYTHON, start_type_printers): Delete.
13150 (!HAVE_PYTHON, apply_type_printers): Delete.
13151 (!HAVE_PYTHON, free_type_printers): Delete.
13152 (_initialize_python): Delete call to observer_attach_before_prompt.
13153 (finalize_python): Set/restore active extension language.
13154 (gdbpy_finish_initialization) Renamed from
13155 finish_python_initialization, made static. New arg extlang.
13156 (gdbpy_initialized): New function.
13157 * python/python.h: #include "extension.h". Delete #include
13158 "value.h", "mi/mi-cmds.h".
13159 (extension_language_python): Declare.
13160 (GDBPY_AUTO_FILE_NAME): Delete.
13161 (enum py_bt_status): Moved to extension.h and renamed to
13162 ext_lang_bt_status.
13163 (enum frame_filter_flags): Moved to extension.h.
13164 (enum py_frame_args): Moved to extension.h and renamed to
13165 ext_lang_frame_args.
13166 (finish_python_initialization): Delete.
13167 (eval_python_from_control_command): Delete.
13168 (source_python_script): Delete.
13169 (apply_val_pretty_printer): Delete.
13170 (apply_frame_filter): Delete.
13171 (preserve_python_values): Delete.
13172 (gdbpy_script_language_defn): Delete.
13173 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13174 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13175
13176 * auto-load.c: #include "extension.h".
13177 (GDB_AUTO_FILE_NAME): Delete.
13178 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13179 (script_language_gdb): Delete, moved to extension.c and renamed to
13180 extension_language_gdb.
13181 (source_gdb_script_for_objfile): Delete.
13182 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13183 (loaded_script): Change type of language member to
13184 struct extension_language_defn *.
13185 (init_loaded_scripts_info): Initialize
13186 unsupported_script_warning_printed.
13187 (maybe_add_script): Make static. Change type of language arg to
13188 struct extension_language_defn *.
13189 (clear_section_scripts): Reset unsupported_script_warning_printed.
13190 (auto_load_objfile_script_1): Rewrite to use extension language API.
13191 (auto_load_objfile_script): Make public. Remove support-compiled-in
13192 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13193 (source_section_scripts): Rewrite to use extension language API.
13194 (load_auto_scripts_for_objfile): Rewrite to use
13195 auto_load_scripts_for_objfile.
13196 (collect_matching_scripts_data): Change type of language member to
13197 struct extension_language_defn *.
13198 (auto_load_info_scripts): Change type of language arg to
13199 struct extension_language_defn *.
13200 (unsupported_script_warning_print): New function.
13201 (script_not_found_warning_print): Make static.
13202 (_initialize_auto_load): Rewrite construction of scripts-directory
13203 help.
13204 * auto-load.h (struct objfile): Add forward decl.
13205 (struct script_language): Delete.
13206 (struct auto_load_pspace_info): Add forward decl.
13207 (struct extension_language_defn): Add forward decl.
13208 (maybe_add_script): Delete.
13209 (auto_load_objfile_script): Declare.
13210 (script_not_found_warning_print): Delete.
13211 (auto_load_info_scripts): Update prototype.
13212 (auto_load_gdb_scripts_enabled): Declare.
13213 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13214 auto_load_python_scripts_enabled and made public.
13215 (script_language_python): Delete, moved to python.c.
13216 (gdbpy_script_language_defn): Delete.
13217 (info_auto_load_python_scripts): Update to use
13218 extension_language_python.
13219
13220 * breakpoint.c (condition_command): Replace call to
13221 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13222 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13223 with call to breakpoint_ext_lang_cond_says_stop.
13224 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13225 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13226 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13227 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13228 New arg slang.
13229 (local_setattro): Print name of extension language with existing
13230 stop condition.
13231
13232 * valprint.c (val_print, value_print): Update to call
13233 apply_ext_lang_val_pretty_printer.
13234 * cp-valprint.c (cp_print_value): Update call to
13235 apply_ext_lang_val_pretty_printer.
13236 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13237 (gdbpy_apply_val_pretty_printer): Renamed from
13238 apply_val_pretty_printer. New arg extlang.
13239 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13240
13241 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13242 extension language API.
13243 * cli/cli-script.c (execute_control_command): Update to call
13244 eval_ext_lang_from_control_command.
13245
13246 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13247 enum ext_lang_bt_status values. Update call to
13248 apply_ext_lang_frame_filter.
13249 (mi_cmd_stack_list_locals): Ditto.
13250 (mi_cmd_stack_list_args): Ditto.
13251 (mi_cmd_stack_list_variables): Ditto.
13252 * mi/mi-main.c: Delete #include "python/python-internal.h".
13253 Add #include "extension.h".
13254 (mi_cmd_list_features): Replace reference to python internal variable
13255 gdb_python_initialized with call to ext_lang_initialized_p.
13256
13257 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13258 Update to use enum ext_lang_frame_args. Update to call
13259 apply_ext_lang_frame_filter.
13260 * python/py-framefilter.c (extract_sym): Update to use enum
13261 ext_lang_bt_status.
13262 (extract_value, py_print_type, py_print_value): Ditto.
13263 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13264 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13265 (py_print_frame): Ditto.
13266 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13267 New arg extlang. Update to use enum ext_lang_bt_status.
13268
13269 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13270 finish_python_initialization. Replace with call to
13271 finish_ext_lang_initialization.
13272
13273 * typeprint.c (do_free_global_table): Update to call
13274 free_ext_lang_type_printers.
13275 (create_global_typedef_table): Update to call
13276 start_ext_lang_type_printers.
13277 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13278 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13279 (type_print_options): Change type of global_printers from "void *"
13280 to "struct ext_lang_type_printers *".
13281
13282 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13283 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13284 (gdbpy_preserve_values): Renamed from preserve_python_values.
13285 New arg extlang.
13286 (!HAVE_PYTHON, preserve_python_values): Delete.
13287
13288 * utils.c (quit_flag): Delete, moved to extension.c.
13289 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13290 extension.c.
13291
13292 * eval.c: Delete #include "python/python.h".
13293 * main.c: Delete #include "python/python.h".
13294
13295 * defs.h: Update comment.
13296
13297 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13298
13299 GDB 7.7 released.
13300
13301 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13302
13303 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13304 defined.
13305
13306 2014-02-05 Yao Qi <yao@codesourcery.com>
13307
13308 * remote.c (remote_pass_signals): Remove local 'buf' and use
13309 rs->buf.
13310 (remote_program_signals): Likewise.
13311
13312 2014-02-05 Yao Qi <yao@codesourcery.com>
13313
13314 * ctf.c: Include "inferior.h" and "gdbthread.h".
13315 (CTF_PID): A new macro.
13316 (ctf_open): Call inferior_appeared and add_thread_silent.
13317 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13318 (ctf_thread_alive): New function.
13319 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13320
13321 2014-02-05 Yao Qi <yao@codesourcery.com>
13322
13323 Revert this patch:
13324
13325 2013-05-24 Yao Qi <yao@codesourcery.com>
13326
13327 * tracepoint.c (TFILE_PID): Remove.
13328 (tfile_open): Don't add thread and inferior.
13329 (tfile_close): Don't set 'inferior_ptid'. Don't call
13330 exit_inferior_silent.
13331 (tfile_thread_alive): Remove.
13332 (init_tfile_ops): Don't set field 'to_thread_alive' of
13333 tfile_ops.
13334
13335 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13336
13337 * remote.c (remote_start_remote): Call remote_check_symbols even
13338 if only symbol-file (not file) has been given.
13339
13340 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13341
13342 * gdbarch.sh (skip_entrypoint): New callback.
13343 * gdbarch.c, gdbarch.h: Regenerate.
13344 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13345 * infrun.c (fill_in_stop_func): Likewise.
13346 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13347 (ppc_elfv2_elf_make_msymbol_special): New function.
13348 (ppc_elfv2_skip_entrypoint): Likewise.
13349 (ppc_linux_init_abi): Install them for ELFv2.
13350
13351 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13352
13353 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13354 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13355 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13356 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13357 structures returned in GPRs.
13358
13359 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13360
13361 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13362 offset to the stack parameter list for the ELFv2 ABI.
13363
13364 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13365
13366 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13367 set_gdbarch_convert_from_func_ptr_addr and
13368 set_gdbarch_elf_make_msymbol_special for ELFv1.
13369 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13370 function descriptors on ELFv1.
13371 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13372 set up r12 at function entry.
13373
13374 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13375
13376 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13377 (struct gdbarch_tdep): New member elf_abi.
13378
13379 * rs6000-tdep.c: Include "elf/ppc64.h".
13380 (rs6000_gdbarch_init): Detect ELF ABI version.
13381
13382 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13383
13384 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13385 within a register pair holding a DFP 128-bit value on little-endian.
13386 (ppc64_sysv_abi_return_value_base): Likewise.
13387 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13388 (dfp_pseudo_register_write): Likewise.
13389
13390 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13391
13392 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13393 offset on little-endian when passing _Decimal32.
13394 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13395
13396 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13397
13398 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13399 of the overlapped FP register within the VSX register on little-
13400 endian platforms.
13401 (efpr_pseudo_register_write): Likewise.
13402
13403 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13404
13405 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13406 offset on little-endian when passing small structures.
13407
13408 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13409
13410 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13411 (struct ppc64_sysv_argpos): New data structure.
13412 (ppc64_sysv_abi_push_float): Remove.
13413 (ppc64_sysv_abi_push_val): New function.
13414 (ppc64_sysv_abi_push_integer): Likewise.
13415 (ppc64_sysv_abi_push_freg): Likewise.
13416 (ppc64_sysv_abi_push_vreg): Likewise.
13417 (ppc64_sysv_abi_push_param): Likewise.
13418 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13419 (ppc64_sysv_abi_return_value_base): New function.
13420 (ppc64_sysv_abi_return_value): Refactor to use it.
13421
13422 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13423
13424 * NEWS: Document new target powerpc64le-*-linux*.
13425
13426 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13427
13428 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13429 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13430 core dumps.
13431 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13432 register set used in ELF core dumps. Add floating-point register set.
13433
13434 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13435
13436 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13437 dwarf2_to_gdb[] table using symbolic constants. Adjust
13438 penultimate entry from number representing the PC register
13439 to symbolic constant representing the MDR register. Add
13440 constant for the PC register to the end of the table.
13441
13442 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13443
13444 * bsd-kvm.c: Include <sys/param.h>
13445
13446 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13447
13448 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13449
13450 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13451
13452 * ada-lang.h (clear_ada_sym_cache): Delete.
13453
13454 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13455
13456 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13457
13458 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13459
13460 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13461 the sigreturn register save area only if the syscall is
13462 sigreturn.
13463
13464 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13465
13466 * valops.c (value_slice): Minor reformatting.
13467
13468 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13469
13470 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13471
13472 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13473
13474 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13475 New static globals.
13476 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13477 (ada_ignore_descriptive_types_p): New static global.
13478 (find_parallel_type_by_descriptive_type): Return immediately
13479 if ada_ignore_descriptive_types_p is set.
13480 (_initialize_ada_language): Register new commands "maintenance
13481 set ada", "maintenance show ada", "maintenance set ada
13482 ignore-descriptive-types" and "maintenance show ada
13483 ignore-descriptive-types".
13484 * NEWS: Add entry for new "maint ada set/show
13485 ignore-descriptive-types" commands.
13486
13487 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13488
13489 * record-btrace.c (record_btrace_close): Call btrace_teardown
13490 for all threads.
13491
13492 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13493
13494 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13495 "ui-out.h".
13496
13497 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13498
13499 * ada-typeprint (type_is_full_subrange_of_target_type):
13500 New function.
13501 (print_range): Add parameter bounds_prefered_p. If not set,
13502 try printing range types using the name of their base type.
13503 (print_range_type): Add parameter bounds_prefered_p.
13504 Use it in call to print_range.
13505 (print_array_type, ada_print_type): Update calls to print_range
13506 and print_range_type.
13507
13508 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13509
13510 * ada-typeprint.c (print_array_type, print_choices, print_range)
13511 (print_range_bound, print_dynamic_range_bound, print_range_type):
13512 Remove declaration.
13513
13514 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13515
13516 * ada-typeprint.c (print_range): Add missing empty line
13517 after local declaration.
13518
13519 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13520
13521 * ada-valprint.c (print_optional_low_bound): Get index_type's
13522 target type for as long as it is a TYPE_CODE_RANGE.
13523
13524 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13525
13526 * procfs.c (procfs_make_note_section): Remove assertion and
13527 associated comment.
13528
13529 2014-01-24 Yao Qi <yao@codesourcery.com>
13530
13531 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13532 * corelow.c (get_core_siginfo): Likewise.
13533
13534 2014-01-24 Yao Qi <yao@codesourcery.com>
13535
13536 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13537 ULONGEST. Don't check 'len' is negative.
13538 (remote_write_bytes): Change type of 'len' to ULONGEST.
13539
13540 2014-01-23 Tom Tromey <tromey@redhat.com>
13541
13542 PR python/16485:
13543 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13544 Handle exception from frame.block.
13545 (FrameVars.fetch_frame_locals): Likewise.
13546
13547 2014-01-23 Tom Tromey <tromey@redhat.com>
13548
13549 PR python/16487:
13550 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13551 on a NULL pointer. Move "goto error" to correct place.
13552
13553 2014-01-23 Tom Tromey <tromey@redhat.com>
13554
13555 PR python/16491:
13556 * python/py-framefilter.c (apply_frame_filter): Call
13557 ensure_python_env after computing gdbarch.
13558
13559 2014-01-23 Yao Qi <yao@codesourcery.com>
13560
13561 * target.c (raw_memory_xfer_partial): Change argument type
13562 from void * to gdb_byte *.
13563 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13564
13565 2014-01-22 Doug Evans <dje@google.com>
13566
13567 New gdbserver option --debug-format=timestamp.
13568 * NEWS: Mention it.
13569
13570 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13571
13572 * syscalls/s390x-linux.xml: New file.
13573 * syscalls/s390-linux.xml: New file.
13574 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13575 (XML_SYSCALL_FILENAME_S390X): Likewise.
13576 (op_svc): New enum value for SVC opcode.
13577 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13578 (s390_linux_get_syscall_number): New function.
13579 (s390_gdbarch_init): Register '*get_syscall_number' and the
13580 syscall xml file name.
13581 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13582 "s390-linux.xml" and "s390x-linux.xml".
13583 * NEWS: Announce new feature.
13584
13585 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13586
13587 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13588
13589 2014-01-22 Pedro Alves <palves@redhat.com>
13590
13591 * xtensa-config.c: Include defs.h.
13592
13593 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13594
13595 * common/common-utils.h: Add "ARI:" comment beside __func__
13596 reference.
13597
13598 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13599
13600 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13601 documentation a bit.
13602
13603 2014-01-21 Roland McGrath <mcgrathr@google.com>
13604
13605 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13606 * configure: Regenerate.
13607 * aclocal.m4: Regenerate.
13608 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13609 New substituted variables.
13610 (install-strip): New target.
13611 (INSTALL_SCRIPT): New substituted variable.
13612 (FLAGS_TO_PASS): Add it.
13613 (install-only): Use $(INSTALL_SCRIPT) rather than
13614 $(INSTALL_PROGRAM) for gcore.
13615
13616 2014-01-20 Tom Tromey <tromey@redhat.com>
13617
13618 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13619 together.
13620
13621 2014-01-20 Tom Tromey <tromey@redhat.com>
13622
13623 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13624 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13625 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13626 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13627 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13628 (struct cmd_list_element) <flags>: Remove.
13629 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13630 doc_allocated>: New fields.
13631 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13632 bitfields.
13633 * maint.c (maintenance_do_deprecate): Update.
13634 * top.c (execute_command): Update.
13635
13636 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13637
13638 * xtensa-linux-nat.c: Include asm/ptrace.h.
13639
13640 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13641
13642 * Makefile.in (SFILES): Add d-support.c.
13643 (COMMON_OBS): Add d-support.o.
13644 * d-lang.h (d_parse_symbol): Add comment, now defined in
13645 d-support.c.
13646 * d-lang.c (parse_call_convention)
13647 (parse_attributes, parse_function_types)
13648 (parse_function_args, parse_type, parse_identifier)
13649 (call_convention_p, d_parse_symbol): Move functions to ...
13650 * d-support.c: ... New file.
13651
13652 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13653
13654 * d-lang.h (d_parse_symbol): Add declaration.
13655 * d-lang.c (extract_identifiers)
13656 (extract_type_info): Remove functions.
13657 (parse_call_convention, parse_attributes)
13658 (parse_function_types, parse_function_args)
13659 (parse_type, parse_identifier, call_convention_p)
13660 (d_parse_symbol): New functions.
13661 (d_demangle): Use d_parse_symbol to demangle D symbols.
13662
13663 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13664
13665 * d-lang.h (struct builtin_d_type): New data type.
13666 (builtin_d_type): Add declaration.
13667 * d-lang.c (d_language_arch_info, build_d_types)
13668 (builtin_d_type): New functions.
13669 (enum d_primitive_types): New data type.
13670 (d_language_defn): Change c_language_arch_info to
13671 d_language_arch_info.
13672 (d_type_data): New static variable.
13673 (_initialize_d_language): Initialize d_type_data.
13674
13675 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13676
13677 * d-lang.h (d_main_name): Add declaration.
13678 * d-lang.c (d_main_name): New function.
13679 * symtab.c (find_main_name): Add call to d_main_name.
13680
13681 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13682
13683 * d-lang.c (d_language_defn): Change macro_expansion_c to
13684 macro_expansion_no.
13685
13686 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13687
13688 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13689
13690 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13691
13692 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13693 gdb_exception" declaration.
13694 * remote.c (getpkt_or_notif_sane): Likewise.
13695
13696 2014-01-17 Doug Evans <dje@google.com>
13697
13698 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13699 function, contents of dirnames_to_char_ptr_vec_append moved here.
13700 (delim_string_to_char_ptr_vec): New function.
13701 (dirnames_to_char_ptr_vec_append): Rewrite.
13702 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13703
13704 2014-01-17 Doug Evans <dje@google.com>
13705
13706 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13707 and moved here ...
13708 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13709 #include "common-utils.h".
13710 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13711 * common/vec.h (VEC_ASSERT_PASS): Update.
13712 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13713 (MACH_CHECK_ERROR): Update.
13714
13715 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13716
13717 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13718 comments.
13719 * gdbarch.h: Regenerate.
13720
13721 2014-01-16 Tom Tromey <tromey@redhat.com>
13722
13723 * value.c (struct value) <regnum>: Move earlier.
13724
13725 2014-01-16 Tom Tromey <tromey@redhat.com>
13726
13727 * remote.c (extended_remote_create_inferior): Rename from
13728 extended_remote_create_inferior_1. Add "ops" argument. Remove
13729 old implementation.
13730
13731 2014-01-16 Pedro Alves <palves@redhat.com>
13732
13733 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13734 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13735 the backchain.
13736
13737 2014-01-16 Doug Evans <dje@google.com>
13738
13739 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13740
13741 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13742
13743 * btrace.h (btrace_thread_flag): New.
13744 (struct btrace_thread_info) <flags>: New.
13745 * record-btrace.c (record_btrace_resume_thread)
13746 (record_btrace_find_thread_to_move, btrace_step_no_history)
13747 (btrace_step_stopped, record_btrace_start_replaying)
13748 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13749 (record_btrace_find_resume_thread): New.
13750 (record_btrace_resume, record_btrace_wait): Extend.
13751 (record_btrace_can_execute_reverse): New.
13752 (record_btrace_open): Fail in non-stop mode.
13753 (record_btrace_set_replay): Split into this, ...
13754 (record_btrace_stop_replaying): ... this, ...
13755 (record_btrace_clear_histories): ... and this.
13756 (init_record_btrace_ops): Init to_can_execute_reverse.
13757 * NEWS: Announce it.
13758
13759 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13760
13761 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13762 (forward_target_decr_pc_after_break)
13763 (target_decr_pc_after_break): New.
13764 * target.c (forward_target_decr_pc_after_break)
13765 (target_decr_pc_after_break): New.
13766 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13767 instead of gdbarch_decr_pc_after_break.
13768 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13769 instead of gdbarch_decr_pc_after_break.
13770 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13771 instead of gdbarch_decr_pc_after_break.
13772 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13773 instead of gdbarch_decr_pc_after_break.
13774 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13775 instead of gdbarch_decr_pc_after_break.
13776 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13777 instead of gdbarch_decr_pc_after_break.
13778
13779 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13780
13781 * btrace.c: Include regcache.h.
13782 (btrace_add_pc): New.
13783 (btrace_enable): Call btrace_add_pc.
13784 (btrace_is_empty): New.
13785 * btrace.h (btrace_is_empty): New.
13786 * record-btrace.c (require_btrace, record_btrace_info): Call
13787 btrace_is_empty.
13788
13789 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13790
13791 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13792 Support delta reads.
13793 (linux_disable_btrace): Change return type.
13794 * common/linux-btrace.h (linux_read_btrace): Change parameters
13795 and return type to allow error reporting. Update users.
13796 (linux_disable_btrace): Change return type. Update users.
13797 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13798 New.
13799 (btrace_error): New.
13800 (btrace_block) <begin>: Comment on BEGIN == 0.
13801 * btrace.c (btrace_compute_ftrace): Start from the end of
13802 the current trace.
13803 (btrace_stitch_trace, btrace_clear_history): New.
13804 (btrace_fetch): Read delta trace, return if replaying.
13805 (btrace_clear): Move clear history code to btrace_clear_history.
13806 (parse_xml_btrace): Throw an error if parsing failed.
13807 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13808 and return type to allow error reporting.
13809 (target_read_btrace): Change parameters and return type to allow
13810 error reporting.
13811 * target.c (target_read_btrace): Update.
13812 * remote.c (remote_read_btrace): Support delta reads. Pass
13813 errors on.
13814 * NEWS: Announce it.
13815
13816 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13817
13818 * record.h (record_btrace_frame_unwind)
13819 (record_btrace_tailcall_frame_unwind): New declarations.
13820 * dwarf2-frame: Include record.h
13821 (dwarf2_frame_cfa): Throw an error for btrace frames.
13822 * record-btrace.c: Include hashtab.h.
13823 (btrace_get_bfun_name): New.
13824 (btrace_call_history): Call btrace_get_bfun_name.
13825 (struct btrace_frame_cache): New.
13826 (bfcache): New.
13827 (bfcache_hash, bfcache_eq, bfcache_new): New.
13828 (btrace_get_frame_function): New.
13829 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13830 (record_btrace_frame_this_id): Compute own id.
13831 (record_btrace_frame_prev_register): Provide PC, throw_error
13832 for all other registers.
13833 (record_btrace_frame_sniffer): Detect btrace frames.
13834 (record_btrace_tailcall_frame_sniffer): New.
13835 (record_btrace_frame_dealloc_cache): New.
13836 (record_btrace_frame_unwind): Add new functions.
13837 (record_btrace_tailcall_frame_unwind): New.
13838 (_initialize_record_btrace): Allocate cache.
13839 * btrace.c (btrace_clear): Call reinit_frame_cache.
13840 * NEWS: Announce it.
13841
13842 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13843
13844 * record-btrace.c (record_btrace_set_replay)
13845 (record_btrace_goto_begin, record_btrace_goto_end)
13846 (record_btrace_goto): New.
13847 (init_record_btrace_ops): Initialize them.
13848 * NEWS: Announce it.
13849
13850 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13851
13852 * record-btrace.c (record_btrace_find_new_threads)
13853 (record_btrace_thread_alive): New.
13854 (init_record_btrace_ops): Initialize to_find_new_threads and
13855 to_thread_alive.
13856
13857 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13858
13859 * record-btrace.c (record_btrace_resume): New.
13860 (record_btrace_wait): New.
13861 (init_record_btrace_ops): Initialize to_wait and to_resume.
13862
13863 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13864
13865 * record-btrace.c (record_btrace_xfer_partial)
13866 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13867 (record_btrace_allow_memory_access): New.
13868 (init_record_btrace_ops): Initialize new methods.
13869 * target.c (raw_memory_xfer_partial): Bail out if target reports
13870 that this memory is not available.
13871
13872 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13873
13874 * target.h (target_ops) <to_insert_breakpoint>
13875 <to_remove_breakpoint>: Add target_ops parameter.
13876 (forward_target_insert_breakpoint): New.
13877 (forward_target_remove_breakpoint): New.
13878 (memory_remove_breakpoint, memory_insert_breakpoint):
13879 Add target_ops parameter.
13880 * target.c (target_insert_breakpoint): Split into this and ...
13881 (forward_target_insert_breakpoint): ... this.
13882 (target_remove_breakpoint): Split into this and ...
13883 (forward_target_remove_breakpoint): ... this.
13884 (debug_to_insert_breakpoint): Add target_ops parameter.
13885 Call forward_target_insert_breakpoint.
13886 (debug_to_remove_breakpoint): Add target_ops parameter.
13887 Call forward_target_remove_breakpoint.
13888 (update_current_target): Do not inherit or default to_insert_breakpoint
13889 and to_remove_breakpoint.
13890 * corelow.c (ignore): Add target_ops parameter.
13891 * exec.c (ignore): Add target_ops parameter.
13892 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13893 Add target_ops parameter.
13894 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13895 Add target_ops parameter.
13896 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13897 Add target_ops parameter.
13898 * record-full.c (record_full_beneath_to_insert_breakpoint)
13899 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13900 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13901 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13902 (record_full_core_remove_breakpoint): Add target_ops parameter.
13903 Update users.
13904 (record_full_beneath_to_insert_breakpoint_ops)
13905 (record_full_beneath_to_remove_breakpoint_ops)
13906 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13907 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13908 tmp_to_remove_breakpoint_ops,
13909 record_full_beneath_to_insert_breakpoint_ops, and
13910 record_full_beneath_to_remove_breakpoint_ops.
13911 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13912 (m32r_remove_breakpoint): Add target_ops parameter.
13913 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13914 Add target_ops parameter.
13915 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13916 Add target_ops parameter.
13917
13918 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13919 Markus Metzger <markus.t.metzger@intel.com>
13920
13921 * record-btrace.c: Include frame-unwind.h.
13922 (record_btrace_frame_unwind_stop_reason)
13923 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13924 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13925 New.
13926 (init_record_btrace_ops): Install it.
13927
13928 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13929
13930 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13931 get_prev_frame_1.
13932
13933 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13934
13935 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13936 earlier.
13937
13938 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13939
13940 * frame-unwind.c: Include target.h.
13941 (frame_unwind_try_unwinder): New function with code from ...
13942 (frame_unwind_find_by_frame): ... here. New variable
13943 unwinder_from_target, call also target_get_unwinder)
13944 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13945 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13946 * target.h (struct target_ops): New fields to_get_unwinder and
13947 to_get_tailcall_unwinder.
13948 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13949
13950 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13951
13952 * record-btrace.c (record_btrace_fetch_registers)
13953 (record_btrace_store_registers)
13954 (record_btrace_to_prepare_to_store): New.
13955 (init_record_btrace_ops): Add the above.
13956
13957 2014-01-16 Tom Tromey <tromey@redhat.com>
13958
13959 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13960 * target.h (struct target_ops) <to_prepare_to_store>: Add
13961 argument.
13962 (target_prepare_to_store): Add argument.
13963 * target.c (debug_to_prepare_to_store): Add argument.
13964 (update_current_target): Update.
13965 * remote.c (remote_prepare_to_store): Add 'self' argument.
13966 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13967 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13968 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13969 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13970 argument.
13971 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13972 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13973 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13974 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13975 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13976
13977 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13978
13979 * btrace.h (replay) <replay>: New.
13980 (btrace_is_replaying): New.
13981 * btrace.c (btrace_clear): Free replay iterator.
13982 (btrace_is_replaying): New.
13983 * record-btrace.c (record_btrace_is_replaying): New.
13984 (record_btrace_info): Print insn number if replaying.
13985 (record_btrace_insn_history): Start at replay position.
13986 (record_btrace_call_history): Start at replay position.
13987 (init_record_btrace_ops): Init to_record_is_replaying.
13988
13989 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13990
13991 * record-btrace.c (record_btrace_insn_history_range): Include
13992 end.
13993 (record_btrace_insn_history_from): Adjust range.
13994 (record_btrace_call_history_range): Include
13995 end.
13996 (record_btrace_call_history_from): Adjust range.
13997 * NEWS: Announce changes.
13998
13999 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14000
14001 * record.h (enum record_print_flag)
14002 <record_print_indent_calls>: New.
14003 * record.c (get_call_history_modifiers): Recognize /c modifier.
14004 (_initialize_record): Document /c modifier.
14005 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14006 Reorder fields. Optionally indent the function name. Update
14007 all users.
14008 * NEWS: Announce changes.
14009
14010 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14011
14012 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14013
14014 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14015
14016 * btrace.c (ftrace_new_function): Start counting at one.
14017 * record-btrace.c (record_btrace_info): Adjust number of calls
14018 and insns.
14019 * NEWS: Announce it.
14020
14021 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14022
14023 * record-btrace.c (btrace_call_history_insn_range): Print
14024 insn range as [begin, end].
14025
14026 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14027
14028 * btrace.h (struct btrace_func_link): New.
14029 (enum btrace_function_flag): New.
14030 (struct btrace_inst): Rename to ...
14031 (struct btrace_insn): ...this. Update all users.
14032 (struct btrace_func) <ibegin, iend>: Remove.
14033 (struct btrace_func_link): New.
14034 (struct btrace_func): Rename to ...
14035 (struct btrace_function): ...this. Update all users.
14036 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14037 (number, level, flags>: New.
14038 (struct btrace_insn_iterator): Rename to ...
14039 (struct btrace_insn_history): ...this.
14040 Update all users.
14041 (struct btrace_insn_iterator, btrace_call_iterator): New.
14042 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14043 (struct btrace_target_info) <begin, end, level>
14044 <insn_history, call_history>: New.
14045 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14046 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14047 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14048 (btrace_call_number, btrace_call_begin, btrace_call_end)
14049 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14050 (btrace_find_function_by_number, btrace_set_insn_history)
14051 (btrace_set_call_history): New.
14052 * btrace.c (btrace_init_insn_iterator)
14053 (btrace_init_func_iterator, compute_itrace): Remove.
14054 (ftrace_print_function_name, ftrace_print_filename)
14055 (ftrace_skip_file): Change
14056 parameter to const.
14057 (ftrace_init_func): Remove.
14058 (ftrace_debug): Use new btrace_function fields.
14059 (ftrace_function_switched): Also consider gaining and
14060 losing symbol information).
14061 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14062 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14063 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14064 New.
14065 (ftrace_new_function): Move. Remove debug print.
14066 (ftrace_update_lines, ftrace_update_insns): New.
14067 (ftrace_update_function): Check for call, ret, and jump.
14068 (compute_ftrace): Renamed to ...
14069 (btrace_compute_ftrace): ...this. Rewritten to compute call
14070 stack.
14071 (btrace_fetch, btrace_clear): Updated.
14072 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14073 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14074 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14075 (btrace_call_number, btrace_call_begin, btrace_call_end)
14076 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14077 (btrace_find_function_by_number, btrace_set_insn_history)
14078 (btrace_set_call_history): New.
14079 * record-btrace.c (require_btrace): Use new btrace thread
14080 info fields.
14081 (record_btrace_info, btrace_insn_history)
14082 (record_btrace_insn_history, record_btrace_insn_history_range):
14083 Use new btrace thread info fields and new iterator.
14084 (btrace_func_history_src_line): Rename to ...
14085 (btrace_call_history_src_line): ...this. Use new btrace
14086 thread info fields.
14087 (btrace_func_history): Rename to ...
14088 (btrace_call_history): ...this. Use new btrace thread info
14089 fields and new iterator.
14090 (record_btrace_call_history, record_btrace_call_history_range):
14091 Use new btrace thread info fields and new iterator.
14092
14093 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14094
14095 * frame.h (frame_id_build_unavailable_stack_special): New.
14096 * frame.c (frame_id_build_unavailable_stack_special): New.
14097
14098 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14099
14100 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14101 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14102 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14103 to gdbarch.
14104 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14105 (i386_insn_is_jump, i386_jmp_p): New.
14106 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14107 insn_is_jump to gdbarch.
14108 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14109 * gdbarch.h: Regenerated.
14110 * gdbarch.c: Regenerated.
14111 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14112 (default_insn_is_jump): New.
14113 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14114 (default_insn_is_jump): New.
14115
14116 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14117
14118 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14119 Change to ...
14120 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14121 (btrace_read_type) <btrace_read_new>: Change to ...
14122 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14123
14124 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14125
14126 * common/linux-btrace.c (linux_read_btrace): Free trace from
14127 previous iteration.
14128
14129 2014-01-15 Doug Evans <dje@google.com>
14130
14131 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14132 uint32_t.
14133
14134 2014-01-15 Tom Tromey <tromey@redhat.com>
14135
14136 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14137 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14138 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14139 (set_objfile_main_name): New function.
14140 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14141 language_of_main>: New fields.
14142 (set_objfile_main_name): Declare.
14143 * symtab.c (find_main_name): Loop over objfiles to find the main
14144 name and language.
14145 (set_main_name): Now static.
14146 (get_main_info): Add comment.
14147 * symtab.h (set_main_name): Don't declare.
14148
14149 2014-01-15 Tom Tromey <tromey@redhat.com>
14150
14151 * symtab.c (main_progspace_key): New global.
14152 (struct main_info): New.
14153 (name_of_main, language_of_main): Remove.
14154 (get_main_info, main_info_cleanup): New function.
14155 (set_main_name, main_name, main_language): Use get_main_info.
14156 (_initialize_symtab): Initialize main_progspace_key.
14157
14158 2014-01-15 Tom Tromey <tromey@redhat.com>
14159
14160 * dbxread.c (process_one_symbol): Update.
14161 * dwarf2read.c (read_partial_die): Update.
14162 * symfile.c (set_initial_language): Call main_language.
14163 * symtab.c (language_of_main): Now static.
14164 (set_main_name): Add 'lang' parameter.
14165 (find_main_name): Update.
14166 (main_language): New function.
14167 (symtab_observer_executable_changed): Update.
14168 * symtab.h (set_main_name): Update.
14169 (language_of_main): Remove.
14170 (main_language): Declare.
14171
14172 2014-01-15 Tom Tromey <tromey@redhat.com>
14173
14174 * symfile.c (init_entry_point_info): Use new "initialized" field.
14175 Update.
14176 * objfiles.h (struct entry_point) <initialized>: New field.
14177 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14178 (struct objfile) <ei>: ...here. Remove.
14179 * objfiles.c (entry_point_address_query): Update.
14180
14181 2014-01-15 Tom Tromey <tromey@redhat.com>
14182
14183 * objfiles.c (entry_point_address_query): Relocate entry point
14184 address.
14185 (objfile_relocate1): Do not relocate entry point address.
14186 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14187 <the_bfd_section_index>: New field.
14188 * symfile.c (init_entry_point_info): Find the entry point's
14189 section.
14190
14191 2014-01-15 Tom Tromey <tromey@redhat.com>
14192
14193 * solib-frv.c (enable_break): Use entry_point_address_query.
14194
14195 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14196
14197 * NEWS: Add note on improved process record-replay on
14198 arm*-linux* targets.
14199
14200 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14201
14202 * arm-tdep.c (enum arm_record_result): New enum.
14203 (arm_record_unsupported_insn): New function.
14204 (arm_record_coproc_data_proc): Removed.
14205 (thumb2_record_ld_st_multiple): New function.
14206 (thumb2_record_ld_st_dual_ex_tbb): New function.
14207 (thumb2_record_data_proc_sreg_mimm): New function.
14208 (thumb2_record_ps_dest_generic): New function.
14209 (thumb2_record_branch_misc_cntrl): New function.
14210 (thumb2_record_str_single_data): New function.
14211 (thumb2_record_ld_mem_hints): New function.
14212 (thumb2_record_ld_word): New function.
14213 (thumb2_record_lmul_lmla_div): New function.
14214 (thumb2_record_decode_insn_handler): New function.
14215 (decode_insn): Add thumb32 instruction handlers.
14216
14217 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14218
14219 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14220 (struct arm_linux_record_tdep): Declare.
14221 (arm_canonicalize_syscall): New function.
14222 (arm_all_but_pc_registers_record): New function.
14223 (arm_linux_syscall_record): New function.
14224 (arm_linux_init_abi): Add syscall recording constructs.
14225 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14226 decoding. (arm_record_coproc_data_proc): Update arm syscall
14227 decoding.
14228 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14229 <arm_syscall_record>: New field.
14230 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14231 gdb_target_obs.
14232
14233 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14234
14235 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14236 register for push instruction recording.
14237
14238 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14239
14240 * arm-tdep.c (thumb_record_misc): Update to correct logical
14241 error while recording ldm, ldmia and pop instructions.
14242
14243 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14244
14245 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14246
14247 2014-01-15 Pedro Alves <palves@redhat.com>
14248
14249 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14250 (go32_resume, go32_fetch_registers, store_register)
14251 (go32_store_registers, go32_prepare_to_store)
14252 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14253 (go32_create_inferior, go32_can_run, go32_terminal_init)
14254 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14255 declarations.
14256
14257 2014-01-15 Tom Tromey <tromey@redhat.com>
14258
14259 * target.h (async_callback_ftype): New typedef.
14260 (struct target_ops) <to_async>: Use it.
14261
14262 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14263
14264 * python/py-value.c (get_field_type): Remove unnecessary curly
14265 braces for single-statement if block.
14266
14267 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14268
14269 * python/py-type.c (convert_field): Add missing empty line
14270 after declarations.
14271
14272 2014-01-14 Doug Evans <dje@google.com>
14273
14274 * symfile.h (expand_symtabs_matching): Renamed from
14275 expand_partial_symbol_names. Update prototype.
14276 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14277 * symfile.c (expand_symtabs_matching): Renamed from
14278 expand_partial_symbol_names. New args file_matcher, kind.
14279 Rename arg fun to symbol_matcher.
14280 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14281 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14282 ada_expand_partial_symbol_name.
14283 (ada_make_symbol_completion_list): Update to call
14284 expand_symtabs_matching.
14285 (ada_add_global_exceptions): Call expand_symtabs_matching.
14286 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14287 call map_symbol_filenames.
14288 * symtab.c (sources_info): Update to call map_symbol_filenames.
14289 (search_symbols): Call expand_symtabs_matching.
14290 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14291 (default_make_symbol_completion_list_break_on): Update to call
14292 expand_symtabs_matching.
14293 (make_source_files_completion_list): Update to call
14294 map_symbol_filenames.
14295
14296 2014-01-14 Doug Evans <dje@google.com>
14297
14298 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14299 (expand_symtabs_symbol_matcher_ftype): New typedef.
14300 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14301 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14302 * symfile.c (expand_partial_symbol_names): Update to use
14303 expand_symtabs_symbol_matcher_ftype.
14304 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14305 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14306 Arg name_matcher renamed to symbol_matcher.
14307 * psymtab.c (recursively_search_psymtabs): Update to use
14308 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14309 sym_matcher.
14310 (expand_symtabs_matching_via_partial): Update to use
14311 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14312 Arg name_matcher renamed to symbol_matcher.
14313
14314 2014-01-14 Doug Evans <dje@google.com>
14315
14316 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14317 (map_partial_symbol_filenames): Ditto.
14318 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14319 (map_partial_symbol_filenames): Ditto.
14320 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14321 (map_partial_symbol_filenames): Ditto.
14322 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14323 (map_partial_symbol_filenames): Ditto.
14324 * symtab.c: Delete #include "psymtab.h".
14325
14326 2014-01-14 Pedro Alves <palves@redhat.com>
14327 Tom Tromey <tromey@redhat.com>
14328
14329 * infrun.c (use_displaced_stepping): Use find_record_target
14330 instead of RECORD_IS_USED.
14331 (adjust_pc_after_break): Use record_full_is_used instead of
14332 RECORD_IS_USED.
14333 * record-btrace.c (record_btrace_open): Call record_preopen
14334 instead of checking RECORD_IS_USED.
14335 * record-full.c (record_full_shortname)
14336 (record_full_core_shortname): New globals.
14337 (record_full_is_used): New function.
14338 (find_full_open): Call record_preopen instead of checking
14339 RECORD_IS_USED.
14340 (init_record_full_ops): Set the target's shortname to
14341 record_full_shortname.
14342 (init_record_full_core_ops): Set the target's shortname to
14343 record_full_core_shortname.
14344 * record-full.h (record_full_is_used): Declare.
14345 * record.c (find_record_target): Make extern.
14346 (record_preopen): New function.
14347 * record.h (RECORD_IS_USED): Delete macro.
14348 (find_record_target, record_preopen): Declare functions.
14349
14350 2014-01-14 Yao Qi <yao@codesourcery.com>
14351
14352 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14353 'len''s type to ULONGEST.
14354 (core_xfer_shared_libraries_aix): Likewise.
14355 * gdbarch.c, gdbarch.h: Regenerated.
14356 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14357 Change type of 'len' to ULONGEST.
14358 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14359 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14360
14361 2014-01-14 Yao Qi <yao@codesourcery.com>
14362
14363 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14364 type of 'len' to ULONGEST.
14365 (linux_xfer_osdata_processgroups): Likewise.
14366 (linux_xfer_osdata_threads): Likewise.
14367 (linux_xfer_osdata_fds): Likewise.
14368 (linux_xfer_osdata_isockets): Likewise.
14369 (linux_xfer_osdata_shm): Likewise.
14370 (linux_xfer_osdata_sem): Likewise.
14371 (linux_xfer_osdata_msg): Likewise.
14372 (linux_common_xfer_osdata): Likewise.
14373 (struct osdata_type) <getter>: Likewise.
14374 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14375 the declaration.
14376
14377 2014-01-14 Yao Qi <yao@codesourcery.com>
14378
14379 * target.h (target_xfer_partial_ftype): Update.
14380 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14381 ULONGEST.
14382 * aix-thread.c (aix_thread_xfer_partial): Change type of
14383 argument 'len' to ULONGEST.
14384 * auxv.c (procfs_xfer_auxv): Likewise.
14385 (ld_so_xfer_auxv): Likewise.
14386 (memory_xfer_auxv): Likewise.
14387 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14388 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14389 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14390 * corelow.c (core_xfer_partial): Likewise.
14391 * ctf.c (ctf_xfer_partial): Likewise.
14392 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14393 '%u'.
14394 (darwin_read_dyld_info): Likewise.
14395 (darwin_xfer_partial): Likewise.
14396 * exec.c (section_table_xfer_memory_partial): Likewise.
14397 (exec_xfer_partial): Likewise.
14398 * exec.h (section_table_xfer_memory_partial): Update
14399 declaration.
14400 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14401 instead of plongest.
14402 (gnu_xfer_partial): Likewise.
14403 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14404 (ia64_hpux_xfer_solib_got): Likewise.
14405 (ia64_hpux_xfer_partial): Likewise.
14406 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14407 * inf-ptrace.c (inf_ptrace_xfer_partial):
14408 * inf-ttrace.c (inf_ttrace_xfer_partial):
14409 * linux-nat.c (linux_xfer_siginfo): Likewise.
14410 (linux_nat_xfer_partial): Likewise.
14411 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14412 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14413 * monitor.c (monitor_xfer_memory): Likewise.
14414 (monitor_xfer_partial): Likewise.
14415 * procfs.c (procfs_xfer_partial): Likewise.
14416 * record-full.c (record_full_xfer_partial): Likewise.
14417 (record_full_core_xfer_partial): Likewise.
14418 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14419 instead of plongest.
14420 (gdbsim_xfer_partial): Likewise.
14421 * remote.c (remote_xfer_partial): Likewise.
14422 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14423 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14424 declaration.
14425 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14426 (rs6000_xfer_shared_libraries): Likewise.
14427 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14428 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14429 (sparc_xfer_partial): Likewise.
14430 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14431 (spu_xfer_partial): Likewise.
14432 * spu-multiarch.c (spu_xfer_partial): Likewise.
14433 * target.c (target_read_live_memory): Likewise.
14434 (memory_xfer_live_readonly_partial): Likewise.
14435 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14436 (target_xfer_partial, default_xfer_partial): Likewise.
14437 (current_xfer_partial): Likewise.
14438 * tracepoint.c (tfile_xfer_partial): Likewise.
14439 * windows-nat.c (windows_xfer_memory): Likewise. Call
14440 pulongest instead of plongest.
14441 (windows_xfer_partial): Likewise.
14442 (windows_xfer_shared_libraries): Likewise.
14443
14444 2014-01-14 Yao Qi <yao@codesourcery.com>
14445
14446 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14447 target_xfer_partial_ftype.
14448
14449 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14450
14451 PR python/15464
14452 PR python/16113
14453 * valops.c (value_struct_elt_bitpos): New function
14454 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14455 object to 'None' if the field name is an empty string ("").
14456 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14457 attribute to look for a field when 'name' is 'None'.
14458 (get_field_type): New function
14459
14460 2014-01-13 Doug Evans <dje@google.com>
14461
14462 PR symtab/16426
14463 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14464 (try_open_dwop_file): Ditto.
14465 * gdb_bfd.c: #include "vec.h".
14466 (bfdp): New typedef.
14467 (struct gdb_bfd_data): New member included_bfds.
14468 (gdb_bfd_unref): Unref all included bfds.
14469 (gdb_bfd_record_inclusion): New function.
14470 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14471
14472 2014-01-13 Tom Tromey <tromey@redhat.com>
14473
14474 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14475
14476 2014-01-13 Tom Tromey <tromey@redhat.com>
14477
14478 * defs.h (use_windows): Remove.
14479 * gdb.c (main): Update.
14480 * main.c (captured_main, gdb_main): Update.
14481 * main.h (struct captured_main_args) <use_windows>: Remove.
14482 * top.c (use_windows): Remove.
14483
14484 2014-01-13 Tom Tromey <tromey@redhat.com>
14485
14486 * defs.h (deprecated_flush_hook): Remove.
14487
14488 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14489
14490 PR threads/16216
14491 * linux-thread-db.c (try_thread_db_load): Add parameter
14492 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14493 (try_thread_db_load_from_pdir_1): Move it there from here.
14494 (try_thread_db_load_from_sdir): Update caller.
14495 (try_thread_db_load_from_dir): Move it there from here.
14496
14497 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14498
14499 * regformats/regdat.sh: Always rewrite the register file.
14500
14501 2014-01-13 Pedro Alves <palves@redhat.com>
14502
14503 * Makefile.in (CHECK_HEADERS): New variable.
14504 (check-headers:): New rule.
14505
14506 2014-01-13 Tom Tromey <tromey@redhat.com>
14507
14508 * cli/cli-setshow.c (do_set_command): Update.
14509 * defs.h (deprecated_set_hook): Remove.
14510 * top.c (deprecated_set_hook): Remove.
14511
14512 2014-01-13 Pedro Alves <palves@redhat.com>
14513
14514 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14515 the tracepoint if the PC is a pseudo-register.
14516
14517 2014-01-13 Tom Tromey <tromey@redhat.com>
14518
14519 * defs.h (XCALLOC): Remove.
14520 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14521 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14522 * dwarf2loc.c (allocate_piece_closure): Likewise.
14523 * elfread.c (elf_symfile_segments): Likewise.
14524 (elf_symfile_segments): Likewise.
14525 * gdbtypes.c (copy_type_recursive): Likewise.
14526 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14527 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14528 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14529 XCALLOC.
14530 * mt-tdep.c (mt_gdbarch_init): Likewise.
14531 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14532 XCALLOC.
14533 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14534 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14535 * registry.c (registry_alloc_data): Likewise.
14536 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14537 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14538 * serial.c (serial_fdopen_ops): Likewise.
14539 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14540 XCALLOC.
14541 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14542 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14543 not XCALLOC.
14544
14545 2014-01-13 Tom Tromey <tromey@redhat.com>
14546
14547 * defs.h (XMALLOC): Remove.
14548 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14549 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14550 * cli-out.c (struct ui_out *): Likewise.
14551 * cli/cli-dump.c (add_dump_command): Likewise.
14552 (add_dump_command): Likewise.
14553 * complaints.c (get_complaints): Likewise.
14554 (find_complaint): Likewise.
14555 * dwarf2-frame.c (execute_cfa_program): Likewise.
14556 * dwarf2read.c (abbrev_table_read_table): Likewise.
14557 * gdbarch.sh: Likewise.
14558 * gdbarch.c: Rebuild.
14559 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14560 * interps.c (interp_new): Likewise.
14561 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14562 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14563 * mi/mi-console.c (mi_console_file_new): Likewise.
14564 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14565 * mi/mi-out.c (mi_out_new): Likewise.
14566 * mi/mi-parse.c (mi_parse): Likewise.
14567 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14568 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14569 * observer.c (xalloc_observer_list_node): Likewise.
14570 * regcache.c (regcache_xmalloc_1): Likewise.
14571 * reggroups.c (reggroup_new): Likewise.
14572 (_initialize_reggroup): Likewise.
14573 * registry.c (register_data_with_cleanup): Likewise.
14574 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14575 * ser-base.c (serial_ttystate): Likewise.
14576 * ser-mingw.c (make_pipe_state): Likewise.
14577 * ser-pipe.c (pipe_open): Likewise.
14578 * serial.c (serial_open): Likewise.
14579 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14580 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14581 (tui_alloc_win_info): Likewise.
14582 (tui_add_content_elements): Likewise.
14583 * tui/tui-file.c (tui_file_new): Likewise.
14584 * tui/tui-out.c (tui_out_new): Likewise.
14585 * ui-file.c (mem_file_new): Likewise.
14586 * ui-out.c (push_level): Likewise.
14587 (make_cleanup_ui_out_end): Likewise.
14588 (append_header_to_list): Likewise.
14589 (ui_out_new): Likewise.
14590 * user-regs.c (user_reg_add_builtin): Likewise.
14591
14592 2014-01-13 Tom Tromey <tromey@redhat.com>
14593
14594 * defs.h (XZALLOC): Remove.
14595 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14596 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14597 (get_ada_tasks_inferior_data): Likewise.
14598 * auto-load.c (get_auto_load_pspace_data): Likewise.
14599 * auxv.c (get_auxv_inferior_data): Likewise.
14600 * bfd-target.c (target_bfd_reopen): Likewise.
14601 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14602 (deprecated_insert_raw_breakpoint): Likewise.
14603 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14604 * corelow.c (core_open): Likewise.
14605 * darwin-nat.c (darwin_check_new_threads): Likewise.
14606 (darwin_attach_pid): Likewise.
14607 * dummy-frame.c (dummy_frame_push): Likewise.
14608 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14609 * dwarf2loc.c (allocate_piece_closure): Likewise.
14610 * elfread.c (elf_symfile_segments): Likewise.
14611 * eval.c (ptrmath_type_p): Likewise.
14612 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14613 * gdbtypes.c (alloc_type_arch): Likewise.
14614 (alloc_type_instance): Likewise.
14615 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14616 * inf-child.c (inf_child_can_use_agent): Likewise.
14617 * inflow.c (get_inflow_inferior_data): Likewise.
14618 * infrun.c (save_infcall_suspend_state): Likewise.
14619 * jit.c (jit_reader_load): Likewise.
14620 (get_jit_objfile_data): Likewise.
14621 (get_jit_program_space_data): Likewise.
14622 (jit_object_open_impl): Likewise.
14623 (jit_symtab_open_impl): Likewise.
14624 (jit_block_open_impl): Likewise.
14625 (jit_frame_sniffer): Likewise.
14626 * linux-fork.c (add_fork): Likewise.
14627 * maint.c (make_command_stats_cleanup): Likewise.
14628 * objfiles.c (get_objfile_pspace_data): Likewise.
14629 * opencl-lang.c (struct lval_closure): Likewise.
14630 * osdata.c (osdata_start_osdata): Likewise.
14631 * progspace.c (new_address_space): Likewise.
14632 (add_program_space): Likewise.
14633 * remote-sim.c (get_sim_inferior_data): Likewise.
14634 * sh-tdep.c (sh_gdbarch_init): Likewise.
14635 * skip.c (Ignore): Likewise.
14636 (skip_delete_command): Likewise.
14637 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14638 (library_list_start_library): Likewise.
14639 (solib_aix_current_sos): Likewise.
14640 * solib-darwin.c (get_darwin_info): Likewise.
14641 (darwin_current_sos): Likewise.
14642 * solib-dsbt.c (get_dsbt_info): Likewise.
14643 * solib-ia64-hpux.c (new_so_list): Likewise.
14644 (ia64_hpux_get_solib_linkage_addr): Likewise.
14645 * solib-spu.c (append_ocl_sos): Likewise.
14646 (spu_current_sos): Likewise.
14647 * solib-svr4.c (get_svr4_info): Likewise.
14648 (svr4_keep_data_in_core): Likewise.
14649 (library_list_start_library): Likewise.
14650 (svr4_default_sos): Likewise.
14651 (svr4_read_so_list): Likewise.
14652 * solib-target.c (library_list_start_library): Likewise.
14653 (solib_target_current_sos): Likewise.
14654 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14655 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14656 * symfile.c (default_symfile_segments): Likewise.
14657 * target-descriptions.c (tdesc_data_init): Likewise.
14658 (tdesc_create_reg): Likewise.
14659 (struct tdesc_type *): Likewise.
14660 (tdesc_create_vector): Likewise.
14661 (tdesc_set_struct_size): Likewise.
14662 (struct tdesc_type *): Likewise.
14663 (tdesc_free_feature): Likewise.
14664 (tdesc_create_feature): Likewise.
14665 * windows-nat.c (windows_add_thread): Likewise.
14666 (windows_make_so): Likewise.
14667 * xml-support.c (gdb_xml_body_text): Likewise.
14668 (gdb_xml_create_parser_and_cleanup): Likewise.
14669 (xml_process_xincludes): Likewise.
14670 * xml-syscall.c (allocate_syscalls_info): Likewise.
14671 (syscall_create_syscall_desc): Likewise.
14672
14673 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14674
14675 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14676 function, with code from i386_stap_parse_special_token.
14677 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14678 (i386_stap_parse_special_token): Move code to the two functions
14679 above; simplify it.
14680
14681 2014-01-09 Pedro Alves <palves@redhat.com>
14682 Hui Zhu <hui@codesourcery.com>
14683
14684 PR gdb/16101
14685 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14686 bp_err_string. Don't mark the location shlib_disabled if the
14687 error thrown wasn't a generic or memory error. Catch errors
14688 thrown while inserting breakpoints in overlayed code. Output
14689 error message of software breakpoints.
14690 * remote.c (remote_insert_breakpoint): If this breakpoint has
14691 target-side commands but this stub doesn't support Z0 packets,
14692 throw NOT_SUPPORTED_ERROR error.
14693 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14694 * target.h (target_insert_breakpoint): Extend comment.
14695 (target_insert_hw_breakpoint): Add comment.
14696
14697 2014-01-08 Pedro Alves <palves@redhat.com>
14698
14699 * remote.c (remote_add_thread): Add threads silently if starting
14700 up.
14701 (remote_notice_new_inferior): If in all-stop, and starting up,
14702 don't call notice_new_inferior.
14703 (get_current_thread): New function, factored out from ...
14704 (add_current_inferior_and_thread): ... this. Adjust.
14705 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14706 found any thread, then select the remote's current thread as GDB's
14707 current thread too.
14708
14709 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14710
14711 * NEWS: Create a new section for the next release branch.
14712 Rename the section of the current branch, now that it has
14713 been cut.
14714
14715 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14716
14717 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14718 * version.in: Bump version to 7.7.50.DATE-cvs.
14719
14720 2014-01-08 Yao Qi <yao@codesourcery.com>
14721
14722 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14723 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14724 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14725
14726 2014-01-08 Yao Qi <yao@codesourcery.com>
14727
14728 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14729 return value of bfd_get_filename to symbol_file_add_from_bfd.
14730
14731 2014-01-08 Pierre Muller <muller@sourceware.org>
14732
14733 Fix PR16201.
14734 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14735 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14736 to prim_record_mininal_symbol_and_info.
14737 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14738 in call to prim_record_minimal_symbol_and_info.
14739 (read_pe_exported_syms): Set index field of section_data.
14740
14741 2014-01-07 Andrew Pinski <apinski@cavium.com>
14742
14743 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14744 * features/aarch64.c: Regenerate.
14745
14746 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14747
14748 * target.c (return_null): Define.
14749 (update_current_target): Use it instead of return_zero for
14750 functions that return a pointer.
14751
14752 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14753
14754 * source.c (add_path): Fix check for duplicated paths in the previously
14755 included paths.
14756
14757 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14758
14759 * ada-lang.c: Remove duplicated include statements.
14760 * alphabsd-nat.c: Ditto.
14761 * amd64-darwin-tdep.c: Ditto.
14762 * amd64fbsd-nat.c: Ditto.
14763 * auto-load.c: Ditto.
14764 * ax-gdb.c: Ditto.
14765 * breakpoint.c: Ditto.
14766 * dbxread.c: Ditto.
14767 * fork-child.c: Ditto.
14768 * gdb_usleep.c: Ditto.
14769 * i386-darwin-tdep.c: Ditto.
14770 * i386fbsd-nat.c: Ditto.
14771 * infcmd.c: Ditto.
14772 * inferior.c: Ditto.
14773 * jv-lang.c: Ditto.
14774 * linux-nat.c: Ditto.
14775 * linux-tdep.c: Ditto.
14776 * m68kbsd-nat.c: Ditto.
14777 * m68klinux-nat.c: Ditto.
14778 * microblaze-tdep.c: Ditto.
14779 * mips-linux-tdep.c: Ditto.
14780 * mn10300-tdep.c: Ditto.
14781 * nto-tdep.c: Ditto.
14782 * opencl-lang.c: Ditto.
14783 * osdata.c: Ditto.
14784 * printcmd.c: Ditto.
14785 * regcache.c: Ditto.
14786 * remote-m32r-sdi.c: Ditto.
14787 * remote.c: Ditto.
14788 * symfile.c: Ditto.
14789 * symtab.c: Ditto.
14790 * tilegx-linux-nat.c: Ditto.
14791 * tilegx-tdep.c: Ditto.
14792 * tracepoint.c: Ditto.
14793 * valops.c: Ditto.
14794 * vaxbsd-nat.c: Ditto.
14795 * windows-nat.c: Ditto.
14796 * xtensa-tdep.c: Ditto.
14797
14798 2014-01-07 Yao Qi <yao@codesourcery.com>
14799
14800 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14801
14802 2014-01-07 Yao Qi <yao@codesourcery.com>
14803 Joel Brobecker <brobecker@adacore.com>
14804
14805 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14806 (pdc_write_regs): Likewise.
14807 (fetch_regs_kernel_thread): Likewise.
14808 (store_regs_kernel_thread): Likewise.
14809
14810 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14811
14812 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14813 tagged type objects to their actual type.
14814
14815 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14816
14817 * ada-valprint.c (print_field_values): Add "language" parameter.
14818 Update calls to print_field_values and print_variant_part.
14819 Pass new parameter "language" in call to val_print instead
14820 of "current_language". Replace call to ada_val_print by call
14821 to val_print.
14822 (print_variant_part): Add "language" parameter.
14823 (ada_val_print_struct_union): Update call to print_field_values.
14824
14825 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14826
14827 * ada-valprint.c (ui_memcpy): Delete.
14828 (ada_print_floating): Update documentation. Add empty line
14829 between between function documentation and implementation.
14830 Delete variable "buffer". Use ui_file_xstrdup in place of
14831 ui_file_put. Minor adjustments following this change.
14832
14833 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14834
14835 * ada-valprint.c (ada_val_print_string): New function,
14836 extracted from ada_val_print_array.
14837 (ada_val_print_array): Replace extracted code by call
14838 to ada_val_print_string followed by a return. Move
14839 "else" branch to the function's top block.
14840
14841 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14842
14843 * ada-valprint.c (ada_val_print_array): Move implementation
14844 down. Rename parameter "offset" and "val" into "offset_aligned"
14845 and "original_value" respectively. Add parameter "offset".
14846
14847 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14848
14849 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14850 re-organizing the code. Change the "???" message printed
14851 when target type is a TYPE_CODE_UNDEF into
14852 "<ref to undefined type>".
14853
14854 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14855
14856 * ada-valprint.c (print_record): Delete, implementation inlined...
14857 (ada_val_print_struct_union): ... here. Remove call to
14858 ada_check_typedef in inlined implementation.
14859
14860 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14861
14862 * ada-valprint.c (ada_val_print_gnat_array): New function,
14863 extracted from ada_val_print_1;
14864 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14865 (ada_val_print_flt, ada_val_print_struct_union)
14866 (ada_val_print_ref): Likewise.
14867 (ada_val_print_1): Delete variables i and elttype.
14868 Replace extracted-out code by call to corresponding
14869 new functions.
14870
14871 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14872
14873 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14874
14875 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14876
14877 * ada-valprint.c (ada_val_print_1): Replace calls to
14878 ada_val_print_1 by calls to val_print.
14879
14880 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14881
14882 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14883 Update calls to self accordingly. Replace calls to c_val_print
14884 by calls to val_print.
14885
14886 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14887
14888 * ada-valprint.c (print_record): Delete declaration.
14889 (adjust_type_signedness, ada_val_print_1): Likewise.
14890 (ada_val_print): Move function implementation down.
14891 (print_variant_part, print_field_values, print_record):
14892 Move function implementation up.
14893
14894 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14895
14896 * python/py-type.c (typy_get_name): New function.
14897 (type_object_getset): Add entry for attribute "name".
14898 * NEWS: Add entry mentioning this new attribute.
14899
14900 2014-01-07 Yao Qi <yao@codesourcery.com>
14901
14902 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14903 statement.
14904
14905 2014-01-07 Yao Qi <yao@codesourcery.com>
14906
14907 * gnu-nat.c (info_port_rights): Add qualifier const to
14908 argument args.
14909
14910 2014-01-07 Yao Qi <yao@codesourcery.com>
14911
14912 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14913
14914 2014-01-07 Yao Qi <yao@codesourcery.com>
14915
14916 * gnu-nat.c (make_inf) Update declaration.
14917 (make_inf): Make it static.
14918 (inf_set_traced): Likewise.
14919 (inf_port_to_thread, inf_task_died_status): Likewise.
14920
14921 2014-01-07 Yao Qi <yao@codesourcery.com>
14922
14923 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14924
14925 2014-01-07 Yao Qi <yao@codesourcery.com>
14926
14927 * gnu-nat.c (_initialize_gnu_nat): Declare.
14928
14929 2014-01-07 Yao Qi <yao@codesourcery.com>
14930
14931 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14932 'enum bfd_endian'.
14933 (struct gdbarch_info) <byte_order>: Change type to
14934 'enum bfd_endian'.
14935 <byte_order_for_code>: Likewise.
14936 * gdbarch.c, gdbarch.h: Regenerated.
14937
14938 2014-01-06 Sasha Smundak <asmundak@google.com>
14939
14940 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14941
14942 2014-01-06 Tom Tromey <tromey@redhat.com>
14943
14944 * doublest.c (convert_doublest_to_floatformat): Use const, not
14945 CONST.
14946 * somread.c (som_symtab_read): Likewise.
14947
14948 2014-01-07 Hui Zhu <hui@codesourcery.com>
14949
14950 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14951 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14952 (gdb_bfd_fopen): Ditto.
14953 (gdb_bfd_openr): Ditto.
14954 (gdb_bfd_openw): Ditto.
14955 (gdb_bfd_openr_iovec): Ditto.
14956 (gdb_bfd_fdopenr): Ditto.
14957 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14958 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14959 with xstrdup.
14960 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14961 with xstrdup.
14962 * symfile-mem.c (symbol_file_add_from_memory): Removed
14963 gdb_bfd_stash_filename.
14964
14965 2014-01-03 Doug Evans <dje@google.com>
14966
14967 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14968 output.
14969
14970 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14971
14972 Update year range in copyright notice of all files.
14973
14974 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14975
14976 * top.c (print_gdb_version): Set copyright year to 2014.
14977
14978 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14979
14980 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14981
14982 For older changes see ChangeLog-2013.
14983 \f
14984 Local Variables:
14985 mode: change-log
14986 left-margin: 8
14987 fill-column: 74
14988 version-control: never
14989 coding: utf-8
14990 End:
This page took 0.401091 seconds and 4 git commands to generate.