2a22d82e7a949106721777b9dff55c78b6ccb663
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-11-18 Doug Evans <xdje42@gmail.com>
2
3 The result of symtab expansion is always a primary symtab.
4 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
5 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
6 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
7 (psymtab_to_symtab): Add comment and assert.
8 (map_matching_symbols_psymtab): Remove unnecessary test for
9 non-primary symtab.
10
11 2014-11-15 Doug Evans <xdje42@gmail.com>
12
13 PR symtab/17559
14 * symtab.c (find_pc_line_symtab): New function.
15 * symtab.h (find_pc_line_symtab): Declare.
16 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
17 find_pc_symtab.
18 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
19 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
20 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
21 * tui/tui-win.c (make_visible_with_new_height): Ditto.
22 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
23 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
24
25 2014-11-15 Doug Evans <xdje42@gmail.com>
26
27 * symtab.c (expand_symtab_containing_pc): Renamed from
28 find_pc_sect_symtab_via_partial. All callers updated.
29
30 2014-11-15 Yao Qi <yao@codesourcery.com>
31
32 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
33
34 2014-11-14 Joel Brobecker <brobecker@adacore.com>
35
36 * common/common-defs.h: Move <stdarg.h> #include ahead of
37 <stdio.h> #include.
38
39 2014-11-14 Pedro Alves <palves@redhat.com>
40
41 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
42 [!PHONY_ICONV] (gdb_iconv): New function.
43 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
44
45 2014-11-13 Doug Evans <dje@google.com>
46
47 PR symtab/17591
48 * dwarf2read.c (find_slot_in_mapped_hash): Handle
49 "(anonymous namespace)".
50
51 2014-11-13 Doug Evans <dje@google.com>
52
53 * dwarf2read.c (update_enumeration_type_from_children): Avoid
54 infinite loop.
55
56 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
57
58 * NEWS (maint set target-async): Fix typo.
59
60 2014-11-12 Pedro Alves <palves@redhat.com>
61
62 * infrun.c (enum infwait_states, infwait_state): Delete.
63
64 2014-11-12 Pedro Alves <palves@redhat.com>
65
66 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
67 Rewrite stepping over a permanent breakpoint.
68 (thread_still_needs_step_over, proceed): Don't set
69 stepping_over_breakpoint for permanent breakpoints.
70 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
71 single-step breakpoints out of the target on hardware step
72 targets.
73 (process_event_stop_test): If stepping a permanent breakpoint
74 doesn't hit the step-resume breakpoint, delete the step-resume
75 breakpoint.
76 (switch_back_to_stepped_thread): Also check if the stepped thread
77 has advanced already on hardware step targets.
78 (currently_stepping): Return true if the thread stepped a
79 breakpoint.
80
81 2014-11-12 Pedro Alves <palves@redhat.com>
82
83 Mark locations as permanent, not the whole breakpoint.
84 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
85 (mark_breakpoints_out): Don't mark permanent breakpoints as
86 uninserted.
87 (breakpoint_init_inferior): Use mark_breakpoints_out.
88 (breakpoint_here_p): Adjust.
89 (bpstat_stop_status, describe_other_breakpoints): Remove handling
90 of permanent breakpoints.
91 (make_breakpoint_permanent): Mark each location as permanent,
92 instead of marking the breakpoint.
93 (add_location_to_breakpoint): If the location is permanent, mark
94 it as such, and as inserted.
95 (init_breakpoint_sal): Don't make the breakpoint permanent here.
96 (bp_location_compare, update_global_location_list): Adjust.
97 (update_breakpoint_locations): Don't make the breakpoint permanent
98 here.
99 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
100 breakpoints.
101 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
102 (struct bp_location) <permanent>: New field.
103 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
104 reference to bp_permanent.
105
106 2014-11-12 Pedro Alves <palves@redhat.com>
107
108 * arch-utils.c (default_skip_permanent_breakpoint): New function.
109 * arch-utils.h (default_skip_permanent_breakpoint): New
110 declaration.
111 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
112 Install default_skip_permanent_breakpoint as default method.
113 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
114 (i386_gdbarch_init): Don't install it.
115 * infrun.c (resume): Assume there's always a
116 gdbarch_skip_permanent_breakpoint implementation.
117 * gdbarch.h, gdbarch.c: Regenerate.
118
119 2014-11-11 Daniel Colascione <dancol@dancol.org>
120
121 Warn about cross-PID-namespace debugging.
122 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
123 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
124 * linux-thread-db.c (check_pid_namespace_match): New function.
125 (thread_db_inferior_created): Call it.
126
127 2014-11-10 Doug Evans <xdje42@gmail.com>
128
129 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
130 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
131
132 2014-11-10 Doug Evans <xdje42@gmail.com>
133
134 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
135
136 2014-11-10 Doug Evans <xdje42@gmail.com>
137
138 PR symtab/17564
139 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
140 (lookup_static_symbol): Move definition to new location and rewrite.
141 (lookup_symbol_in_objfile): New function.
142 (lookup_symbol_global_iterator_cb): Call it.
143
144 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
145
146 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
147
148 2014-11-07 Pedro Alves <palves@redhat.com>
149
150 * infrun.c (process_event_stop_test) <subroutine check>: Don't
151 check if we did a "nexti" inside a prologue.
152 * symtab.c (in_prologue): Delete function.
153 * symtab.h (in_prologue): Delete declaration.
154
155 2014-11-06 Doug Evans <xdje42@gmail.com>
156
157 * symtab.h (lookup_global_symbol): Improve function comment.
158
159 2014-11-06 Doug Evans <xdje42@gmail.com>
160
161 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
162 All callers updated.
163 * symtab.h (lookup_global_symbol): Update decl.
164 (lookup_static_symbol): Move decl to better location.
165
166 2014-11-06 Doug Evans <xdje42@gmail.com>
167
168 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
169
170 2014-11-06 Doug Evans <xdje42@gmail.com>
171
172 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
173 All callers updated.
174 (lookup_symbol_in_all_objfiles): Renamed from
175 lookup_symbol_aux_symtabs. All callers updated.
176 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
177 All callers updated.
178 (lookup_symbol_in_objfile_symtabs): Renamed from
179 lookup_symbol_aux_objfile. All callers updated.
180
181 2014-11-06 Doug Evans <xdje42@gmail.com>
182
183 * symtab.c (lookup_symbol_in_block): Renamed from
184 lookup_symbol_aux_block. All callers updated.
185
186 2014-11-06 Doug Evans <xdje42@gmail.com>
187
188 * symtab.c (lookup_static_symbol): Renamed from
189 lookup_static_symbol_aux. All callers updated.
190 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
191 All callers updated.
192
193 2014-11-06 Doug Evans <xdje42@gmail.com>
194
195 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
196 * block.c (block_lookup_symbol): Use it.
197 * cp-support.c (make_symbol_overload_list_block): Use it.
198 * symtab.c (iterate_over_symbols): Use it.
199
200 2014-11-06 Doug Evans <xdje42@gmail.com>
201
202 * symtab.c (lookup_block_symbol): Moved to ...
203 * block.c (block_lookup_symbol): ... here and renamed.
204 All callers updated.
205 * block.h (block_lookup_symbol): Declare.
206 * symtab.h (lookup_block_symbol): Delete.
207
208 2014-11-06 Doug Evans <xdje42@gmail.com>
209
210 * ada-lang.c (ada_make_symbol_completion_list): Use
211 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
212 * symtab.c (lookup_objfile_from_block): Ditto.
213
214 2014-11-06 Doug Evans <xdje42@gmail.com>
215
216 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
217 TYPE_CODE_STRUCT.
218
219 2014-11-06 Doug Evans <xdje42@gmail.com>
220
221 * objfiles.c (get_objfile_arch): Constify.
222 * objfiles.h (get_objfile_arch): Update prototype.
223 * solib.c (solib_global_lookup): Fetch arch from objfile,
224 not target_gdbarch.
225
226 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
227
228 * nios2-tdep.c (wild_insn): Delete.
229 (profiler_insn, irqentry_insn): Delete.
230 (nios2_match_sequence): Delete.
231 (nios2_analyze_prologue): Update comments. Remove matching
232 of obsolete profiler_insn and irqentry_insn sequences.
233
234 2014-11-05 Alan Modra <amodra@gmail.com>
235
236 * charset.c (convert_between_encodings): Shrink obstack using
237 obstack_blank_fast.
238 * minsyms.c (install_minimal_symbols): Likewise.
239 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
240 to char* before doing pointer arithmetic.
241
242 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
243
244 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
245
246 2014-11-04 Pedro Alves <palves@redhat.com>
247
248 * breakpoint.c (breakpoint_thread_match): Delete function.
249 * breakpoint.h (breakpoint_thread_match): Delete declaration.
250
251 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
252
253 PR c++/17494
254 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
255 the method args also under EVAL_SKIP when evaluating method
256 calls under EVAL_SKIP.
257
258 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
259
260 * dwarf2loc.c (read_pieced_value): Do big endian
261 processing only if gdb_regnum is not -1.
262 (write_pieced_value): Ditto.
263
264 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
265
266 * arm-linux-tdep.c (arm_linux_init_abi): Use
267 info.byte_order_for_code to choose endianity of breakpoint
268 instructions snippets.
269
270 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
271
272 * arm-tdep.c (extract_arm_insn): Use
273 gdbarch_byte_order_for_code to read arm instruction.
274
275 2014-11-02 Doug Evans <xdje42@gmail.com>
276
277 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
278
279 2014-11-02 Doug Evans <xdje42@gmail.com>
280
281 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
282 main_subfile before returning.
283
284 2014-10-31 Doug Evans <xdje42@gmail.com>
285
286 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
287 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
288
289 2014-10-31 Doug Evans <xdje42@gmail.com>
290
291 * valops.c (value_cast_pointers): Fix whitespace.
292 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
293 Ditto.
294
295 2014-10-30 Doug Evans <dje@google.com>
296
297 * NEWS: Mention ability add attributes to gdb.Objfile and
298 gdb.Progspace objects.
299 * python/py-objfile.c (objfile_object): New member dict.
300 (objfpy_dealloc): Py_XDECREF dict.
301 (objfpy_initialize): Initialize dict.
302 (objfile_getset): Add __dict__.
303 (objfile_object_type): Set tp_dictoffset member.
304 * python/py-progspace.c (progspace_object): New member dict.
305 (pspy_dealloc): Py_XDECREF dict.
306 (pspy_initialize): Initialize dict.
307 (pspace_getset): Add __dict__.
308 (pspace_object_type): Set tp_dictoffset member.
309
310 2014-10-30 Yao Qi <yao@codesourcery.com>
311
312 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
313 replace '\\' with '\\\\'.
314
315 2014-10-29 Joel Brobecker <brobecker@adacore.com>
316
317 GDB 7.8.1 released.
318
319 2014-10-29 Pedro Alves <palves@redhat.com>
320
321 PR gdb/17408
322 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
323 instead of assuming a thread with a stepping range is always
324 stepping.
325
326 2014-10-29 Pedro Alves <palves@redhat.com>
327
328 PR python/17372
329 * event-top.c (change_line_handler): Call
330 gdb_rl_callback_handler_remove instead of
331 rl_callback_handler_remove.
332 (callback_handler_installed): New global.
333 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
334 (gdb_rl_callback_handler_reinstall): New functions.
335 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
336 gdb_rl_callback_handler_install instead of
337 rl_callback_handler_remove and rl_callback_handler_install.
338 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
339 instead of rl_callback_handler_remove.
340 * event-top.h (gdb_rl_callback_handler_remove)
341 (gdb_rl_callback_handler_install)
342 (gdb_rl_callback_handler_reinstall): New declarations.
343 * infrun.c (reinstall_readline_callback_handler_cleanup): New
344 cleanup function.
345 (fetch_inferior_event): Install it.
346 * top.c (gdb_readline_wrapper_line) Call
347 gdb_rl_callback_handler_remove instead of
348 rl_callback_handler_remove.
349 (gdb_readline_wrapper_cleanup): Don't call
350 rl_callback_handler_install.
351
352 2014-10-29 Pedro Alves <palves@redhat.com>
353
354 * event-top.c (command_line_handler): Clear the first byte of
355 linebuffer, when it is first allocated.
356
357 2014-10-29 Pedro Alves <palves@redhat.com>
358
359 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
360 TRY_CATCH.
361
362 2014-10-29 Pedro Alves <palves@redhat.com>
363
364 PR tui/16138
365 PR tui/17519
366 * tui/tui-interp.c (tui_is_toplevel): Delete global.
367 (tui_allowed_p): Delete function.
368 * tui/tui.c: Include "interps.h".
369 (tui_enable): Don't use tui_allowed_p. Error out here with
370 detailed error messages if the TUI is the top level interpreter,
371 or if output is not a terminal. Use newterm instead of initscr,
372 and error out if initializing the terminal fails. Also error out if
373 the terminal doesn't support cursor addressing.
374 * tui/tui.h (tui_allowed_p): Delete declaration.
375
376 2014-10-29 Joel Brobecker <brobecker@adacore.com>
377
378 * arm-tdep.c (arm_skip_stack_protector): Return early if
379 address loaded by first "ldr" instruction does not have
380 a corresponding minimal symbol. Update comment.
381
382 2014-10-29 Yao Qi <yao@codesourcery.com>
383
384 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
385 loaded address correctly of ldr instruction.
386
387 2014-10-28 Pedro Alves <palves@redhat.com>
388
389 PR gdb/12623
390 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
391 field.
392 * infrun.c (resume) <stepping breakpoint instruction>: Set the
393 thread's stepped_breakpoint field. Skip if reverse debugging.
394 Add comment.
395 (init_thread_stepping_state, handle_signal_stop): Clear the
396 thread's stepped_breakpoint field.
397
398 2014-10-27 Pedro Alves <palves@redhat.com>
399
400 * remote.c (remote_thread_alive): New, factored out from ...
401 (remote_thread_alive): ... this.
402 (remote_update_thread_list): Bail out before deleting threads if
403 the target returned an empty list, and, the current thread has a
404 magic/fake ptid.
405
406 2014-10-27 Pedro Alves <palves@redhat.com>
407
408 * infrun.c (handle_signal_stop): Also skip handlers when a random
409 signal arrives while handling a "stepi" or a "nexti". Set the
410 thread's 'step_after_step_resume_breakpoint' flag.
411
412 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
413
414 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
415 (arm_record_ld_st_imm_offset): Reimplement to cover all
416 load/store cases for ARM opcode 010.
417 (arm_record_ld_st_multiple): Reimplement to cover all
418 load/store cases for ARM opcode 100.
419
420 2014-10-26 Doug Evans <xdje42@gmail.com>
421
422 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
423
424 2014-10-26 Doug Evans <xdje42@gmail.com>
425
426 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
427 parameter "kind" to "block_index".
428 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
429 "block_index".
430 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
431
432 2014-10-26 Doug Evans <xdje42@gmail.com>
433
434 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
435
436 2014-10-26 Doug Evans <xdje42@gmail.com>
437
438 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
439 obstack_alloc.
440
441 2014-10-26 Doug Evans <xdje42@gmail.com>
442
443 * parser-defs.h (block_found): Move decl from here ...
444 * symtab.h (block_found): ... to here.
445
446 2014-10-26 Doug Evans <xdje42@gmail.com>
447
448 * symtab.h (struct field_of_this_result): Fix typo in comment.
449 (lookup_symbol_in_language): Move function comment here.
450 (lookup_symbol): Improve function comment.
451 (basic_lookup_symbol_nonlocal): Ditto.
452 (lookup_symbol_static, lookup_symbol_global): Ditto.
453 (lookup_symbol_aux_block): Ditto.
454 (lookup_language_this): Add function comment.
455 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
456 function comment.
457 (lookup_block_symbol): Improve function comment.
458 (lookup_struct): Fix capitalization in function comment.
459 (lookup_transparent_type): Add function comment.
460 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
461 Improve function comment.
462 (lookup_objfile_from_block): Add function comment.
463 * symtab.c (lookup_symbol_in_language): Update function comment.
464 (lookup_symbol, lookup_language_this): Ditto.
465 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
466 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
467 (basic_lookup_symbol_nonlocal): Ditto.
468 (lookup_symbol_static, lookup_symbol_global): Ditto.
469 (lookup_transparent_type, lookup_block_symbol): Ditto.
470
471 2014-10-25 Doug Evans <xdje42@gmail.com>
472
473 * symtab.c (types_info): Delete forward decl.
474 (functions_info, variables_info, sources_info): Ditto.
475 (_initialize_symtab): Rewrite forward decl to use
476 initialize_file_ftype.
477
478 2014-10-25 Doug Evans <xdje42@gmail.com>
479
480 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
481
482 2014-10-25 Doug Evans <xdje42@gmail.com>
483
484 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
485 of local var child_die.
486
487 2014-10-24 Don Breazeal <donb@codesourcery.com>
488
489 * infrun.c (follow_fork_inferior): Update fork message printing
490 to use target_terminal_ours_for_output instead of
491 target_terminal_ours, to use _() for all format strings, to print
492 "vfork" instead of "fork" for vforks, and to add a detach message.
493 (handle_vfork_child_exec_or_exit): Update message printing to use
494 target_terminal_ours_for_output instead of target_terminal_ours, to
495 use _() for all format strings, and to fix some formatting.
496
497 2014-10-24 Pedro Alves <palves@redhat.com>
498
499 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
500 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
501 * config/vax/vax.mh: Delete.
502 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
503 obsolete configurations section.
504 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
505 * vax-nat.c: Delete file.
506
507 2014-10-24 Pedro Alves <palves@redhat.com>
508
509 * NEWS (Removed targets): Add OS/arch column.
510
511 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
512
513 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
514 on the arg type of a constructor only if it is of reference type.
515
516 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
517
518 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
519 accessors and constants from nios2 opcodes update.
520 (nios2_get_next_pc): Likewise.
521
522 2014-10-19 Doug Evans <xdje42@gmail.com>
523
524 * gdbthread.h (set_running): Fix comment.
525 (set_executing, finish_thread_state): Fix comment.
526
527 2014-10-18 Doug Evans <xdje42@gmail.com>
528
529 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
530
531 2014-10-17 Doug Evans <dje@google.com>
532
533 * NEWS: Mention new event gdb.clear_objfiles.
534 * python/py-event.h (emit_clear_objfiles_event): Clear
535 * python/py-events.h (events_object): New member clear_objfiles.
536 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
537 event.
538 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
539 emit clear_objfiles event.
540 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
541 function.
542 (emit_clear_objfiles_event): New function.
543 (clear_objfiles): New event.
544 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
545 Declare.
546 * python/python.c (_initialize_python): Call
547 gdbpy_initialize_clear_objfiles_event.
548
549 2014-10-17 Doug Evans <dje@google.com>
550
551 * NEWS: Mention new gdb.Objfile.progspace attribute.
552 * python/py-objfile.c (objfpy_get_progspace): New function.
553 (objfile_getset): New entry for "progspace".
554
555 2014-10-17 Pedro Alves <palves@redhat.com>
556
557 PR gdb/17471
558 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
559 returns a copy of the input.
560 (run_command_1, continue_command, step_1, jump_command)
561 (signal_command, until_command, advance_command, finish_command)
562 (attach_command): Adjust and install a cleanup to free the
563 stripped args.
564
565 2014-10-17 Pedro Alves <palves@redhat.com>
566
567 PR gdb/17300
568 * infcmd.c (continue_1): If continuing all threads in the
569 foreground, make sure the inferior's terminal settings are put in
570 effect.
571
572 2014-10-17 Pedro Alves <palves@redhat.com>
573
574 PR gdb/17472
575 * annotate.c (annotate_breakpoints_invalid): Use
576 target_terminal_our_for_output instead of target_terminal_ours.
577 Give back the terminal to the target.
578 (annotate_frames_invalid): Likewise.
579
580 2014-10-17 Pedro Alves <palves@redhat.com>
581
582 * target.c (enum terminal_state): New enum.
583 (terminal_state): New global.
584 (target_terminal_init): New function.
585 (target_terminal_inferior): Skip if inferior already owns the
586 terminal.
587 (target_terminal_ours, target_terminal_ours_for_output): New
588 functions.
589 * target.h (target_terminal_init): Convert to function prototype.
590 (target_terminal_ours_for_output): Convert to function prototype
591 and tweak comment.
592 (target_terminal_ours): Convert to function prototype and tweak
593 comment.
594 * windows-nat.c (do_initial_windows_stuff): Call
595 target_terminal_init instead of child_terminal_init_with_pgrp.
596
597 2014-10-17 Pedro Alves <palves@redhat.com>
598
599 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
600 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
601 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
602 solib-osf.c.
603 * NEWS: Mention that support for alpha*-*-osf* has been removed.
604 * ada-lang.h [__alpha__ && __osf__]
605 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
606 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
607 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
608 GDB_OSABI_OSF1.
609 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
610 files.
611 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
612 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
613 * configure: Regenerate.
614 * configure.ac: Remove references to osf.
615 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
616 section. Remove all other references to osf.
617 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
618 Remove all other references to osf.
619 * dec-thread.c: Delete file.
620 * defs.h (GDB_OSABI_OSF1): Delete.
621 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
622 defined.
623 * osabi.c (gdb_osabi_names): Delete "OSF/1".
624 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
625 Delete code.
626 (unconditionally_kill_inferior)
627 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
628 * solib-osf.c: Delete file.
629
630 2014-10-17 Pedro Alves <palves@redhat.com>
631
632 * remote.c (clear_threads_listing_context): Move higher up, out of
633 the HAVE_LIBEXPAT guard.
634
635 2014-10-16 Tristan Gingold <gingold@adacore.com>
636
637 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
638 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
639 on amd64.
640
641 2014-10-15 Pedro Alves <palves@redhat.com>
642
643 * dec-thread.c (dec_thread_count_gdb_threads)
644 (dec_thread_add_gdb_thread): Delete.
645 (dec_thread_update_thread_list): Delete.
646 (dec_thread_find_new_threads): Rename to ...
647 (dec_thread_update_thread_list): ... this. Delete GDB-size
648 threads that are no longer found in dec_thread_list.
649 (resync_thread_list): Delete.
650 (dec_thread_wait): Call dec_thread_update_thread_list instead of
651 resync_thread_list.
652
653 2014-10-15 Pedro Alves <palves@redhat.com>
654
655 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
656 * remote.c (remote_update_thread_list): Skip calling prune_threads
657 if any thread listing method is supported, and instead walk over
658 the set of remote threads listed, deleting those that are not
659 found in GDB's thread list.
660
661 2014-10-15 Pedro Alves <palves@redhat.com>
662
663 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
664 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
665 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
666 (bsd_uthread_target): Adjust.
667 * corelow.c (core_open): Adjust.
668 * dec-thread.c (dec_thread_find_new_threads): Update comment.
669 (dec_thread_update_thread_list): New function.
670 (init_dec_thread_ops): Adjust.
671 * gdbthread.h (prune_threads): New declaration.
672 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
673 (thread_db_update_thread_list): ... this. Call prune_threads.
674 (init_thread_db_ops): Adjust.
675 * nto-procfs.c (procfs_find_new_threads): Rename to ...
676 (procfs_update_thread_list): ... this. Call prune_threads.
677 (procfs_attach, procfs_create_inferior, init_procfs_targets):
678 Adjust.
679 * obsd-nat.c (obsd_find_new_threads): Rename to ...
680 (obsd_update_thread_list): ... this. Call prune_threads.
681 (obsd_add_target): Adjust.
682 * procfs.c (procfs_target): Adjust.
683 (procfs_notice_thread): Update comment.
684 (procfs_find_new_threads): Rename to ...
685 (procfs_update_thread_list): ... this. Call prune_threads.
686 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
687 comment.
688 (ravenscar_wait): Adjust.
689 (ravenscar_find_new_threads): Rename to ...
690 (ravenscar_update_thread_list): ... this. Call prune_threads.
691 (init_ravenscar_thread_ops): Adjust.
692 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
693 (record_btrace_update_thread_list): ... this. Adjust comment.
694 (init_record_btrace_ops): Adjust.
695 * remote.c (remote_threads_info): Rename to ...
696 (remote_update_thread_list): ... this. Call prune_threads.
697 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
698 Adjust.
699 * sol-thread.c (check_for_thread_db): Adjust.
700 (sol_find_new_threads_callback): Rename to ...
701 (sol_update_thread_list_callback): ... this.
702 (sol_find_new_threads): Rename to ...
703 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
704 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
705 * target-delegates.c: Regenerate.
706 * target.c (target_find_new_threads): Rename to ...
707 (target_update_thread_list): ... this.
708 * target.h (struct target_ops): Rename to_find_new_threads field
709 to to_update_thread_list.
710 (target_find_new_threads): Rename to ...
711 (target_update_thread_list): ... this.
712 * thread.c (prune_threads): Make extern.
713 (update_thread_list): Adjust.
714
715 2014-10-15 Pedro Alves <palves@redhat.com>
716
717 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
718 Add describing comment. Return -1 if the qL packet is not
719 supported.
720 (struct thread_item, thread_item_t): Move higher up in
721 the file. Add comments.
722 (struct threads_parsing_context): Move higher up in
723 the file, add comments, and remote to ...
724 (struct threads_listing_context): ... this.
725 (remote_newthread_step): Don't add the thread to GDB's thread
726 database here. Instead push it to the thread_listing_context
727 list.
728 (remote_find_new_threads): Rename to ...
729 (remote_get_threads_with_ql): ... this. Add target_ops and
730 targets_listing_context parameters. Pass down context.
731 (start_thread): Adjust.
732 (clear_threads_parsing_context): Rename to ...
733 (clear_threads_listing_context): ... this.
734 (remote_get_threads_with_qxfer): New, with parts salvaged from old
735 remote_threads_info.
736 (remote_get_threads_with_qthreadinfo): Ditto.
737 (remote_threads_info): Reimplement.
738
739 2014-10-15 Pedro Alves <palves@redhat.com>
740
741 * infrun.c (resume): Don't force displaced-stepping for all
742 single-steps on software single-stepping archs.
743
744 2014-10-15 Pedro Alves <palves@redhat.com>
745
746 * breakpoint.c (single_step_breakpoints): Delete global.
747 (insert_single_step_breakpoint): Adjust to store the breakpoint
748 pointer in the current thread.
749 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
750 (cancel_single_step_breakpoints): Delete functions.
751 (breakpoint_has_location_inserted_here): Make extern.
752 (single_step_breakpoint_inserted_here_p): Adjust to walk the
753 breakpoint list.
754 * breakpoint.h (breakpoint_has_location_inserted_here): New
755 declaration.
756 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
757 (cancel_single_step_breakpoints): Remove declarations.
758 * gdbthread.h (struct thread_control_state)
759 <single_step_breakpoints>: New field.
760 (delete_single_step_breakpoints)
761 (thread_has_single_step_breakpoints_set)
762 (thread_has_single_step_breakpoint_here): New declarations.
763 * infrun.c (follow_exec): Also clear the single-step breakpoints.
764 (singlestep_breakpoints_inserted_p, singlestep_ptid)
765 (singlestep_pc): Delete globals.
766 (infrun_thread_ptid_changed): Remove references to removed
767 globals.
768 (resume_cleanups): Delete the current thread's single-step
769 breakpoints.
770 (maybe_software_singlestep): Remove references to removed globals.
771 (resume): Adjust to use thread_has_single_step_breakpoints_set and
772 delete_single_step_breakpoints.
773 (init_wait_for_inferior): Remove references to removed globals.
774 (delete_thread_infrun_breakpoints): Delete the thread's
775 single-step breakpoints too.
776 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
777 single-step breakpoints here.
778 (delete_stopped_threads_single_step_breakpoints): New function.
779 (adjust_pc_after_break): Adjust to use
780 thread_has_single_step_breakpoints_set.
781 (handle_inferior_event): Remove references to removed globals.
782 Use delete_stopped_threads_single_step_breakpoints.
783 (handle_signal_stop): Adjust to per-thread single-step
784 breakpoints. Swap test order to do cheaper tests first.
785 (switch_back_to_stepped_thread): Extend debug output. Remove
786 references to removed globals.
787 * record-full.c (record_full_wait_1): Adjust to per-thread
788 single-step breakpoints.
789 * thread.c (delete_single_step_breakpoints)
790 (thread_has_single_step_breakpoints_set)
791 (thread_has_single_step_breakpoint_here): New functions.
792 (clear_thread_inferior_resources): Also delete the thread's
793 single-step breakpoints.
794
795 2014-10-15 Pedro Alves <palves@redhat.com>
796
797 * thread.c (delete_thread_breakpoint): New function.
798 (delete_step_resume_breakpoint)
799 (delete_exception_resume_breakpoint): Use it.
800 (delete_at_next_stop): New function.
801 (clear_thread_inferior_resources): Use delete_at_next_stop.
802
803 2014-10-15 Pedro Alves <palves@redhat.com>
804
805 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
806 (breakpoint_inserted_here_p): ... here. Remove special case for
807 software single-step breakpoints.
808 (find_non_raw_software_breakpoint_inserted_here): Inline ...
809 (software_breakpoint_inserted_here_p): ... here. Remove special
810 case for software single-step breakpoints.
811 (bp_target_info_copy_insertion_state)
812 (deprecated_insert_raw_breakpoint)
813 (deprecated_remove_raw_breakpoint): Delete functions.
814 * breakpoint.h (deprecated_insert_raw_breakpoint)
815 (deprecated_remove_raw_breakpoint): Remove declarations.
816
817 2014-10-15 Pedro Alves <palves@redhat.com>
818
819 PR breakpoints/9649
820 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
821 Delete array globals.
822 (single_step_breakpoints): New global.
823 (breakpoint_xfer_memory): Remove special handling for single-step
824 breakpoints.
825 (update_breakpoints_after_exec): Delete bp_single_step
826 breakpoints.
827 (detach_breakpoints): Remove special handling for single-step
828 breakpoints.
829 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
830 (bpstat_stop_status): Add comment.
831 (bpstat_what, bptype_string, print_one_breakpoint_location)
832 (adjust_breakpoint_address, init_bp_location): Handle
833 bp_single_step.
834 (new_single_step_breakpoint): New function.
835 (set_momentary_breakpoint, bkpt_remove_location): Remove special
836 handling for single-step breakpoints.
837 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
838 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
839 Rewrite.
840 (detach_single_step_breakpoints, find_single_step_breakpoint):
841 Delete functions.
842 (breakpoint_has_location_inserted_here): New function.
843 (single_step_breakpoint_inserted_here_p): Rewrite.
844 * breakpoint.h: Remove FIXME.
845 (enum bptype) <bp_single_step>: New enum value.
846 (insert_single_step_breakpoint): Update comment.
847 * infrun.c (resume_cleanups)
848 (delete_step_thread_step_resume_breakpoint): Remove single-step
849 breakpoints.
850 (fetch_inferior_event): Install a cleanup that removes infrun
851 breakpoints.
852 (switch_back_to_stepped_thread) <expect thread advanced also>:
853 Clear step-over info.
854
855 2014-10-15 Pedro Alves <palves@redhat.com>
856
857 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
858 (delete_thread_infrun_breakpoints): New function, with parts
859 salvaged from delete_step_resume_breakpoint_callback.
860 (delete_step_thread_step_resume_breakpoint): Delete.
861 (for_each_just_stopped_thread_callback_func): New typedef.
862 (for_each_just_stopped_thread): New function.
863 (delete_just_stopped_threads_infrun_breakpoints): New function.
864 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
865 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
866 ... this. Adjust.
867 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
868
869 2014-10-15 Pedro Alves <palves@redhat.com>
870
871 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
872 trying to step past a non-steppable watchpoint.
873 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
874 field.
875 * infrun.c (struct step_over_info): Add new field
876 'nonsteppable_watchpoint_p' and adjust comments.
877 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
878 Adjust.
879 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
880 (stepping_past_nonsteppable_watchpoint): New function.
881 (step_over_info_valid_p): Also return true if stepping past a
882 nonsteppable watchpoint.
883 (proceed): Adjust call to set_step_over_info. Remove reference to
884 init_infwait_state.
885 (init_wait_for_inferior): Remove reference to init_infwait_state.
886 (waiton_ptid): Delete global.
887 (struct execution_control_state)
888 <stepped_after_stopped_by_watchpoint>: Delete field.
889 (wait_for_inferior, fetch_inferior_event): Always pass
890 minus_one_ptid to target_wait.
891 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
892 field.
893 (init_infwait_state): Delete function.
894 (handle_inferior_event): Remove infwait_state handling.
895 (handle_signal_stop) <watchpoints handling>: Adjust after
896 stepped_after_stopped_by_watchpoint removal. Don't remove
897 breakpoints here nor set infwait_state. Set the thread's
898 stepping_over_watchpoint flag, and call keep_going instead.
899 (keep_going): Handle stepping_over_watchpoint. Adjust
900 set_step_over_info calls.
901 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
902 function.
903
904 2014-10-15 Pedro Alves <palves@redhat.com>
905
906 * infrun.c (step_over_info_valid_p): New function.
907 (resume): Use step_over_info_valid_p instead of checking the
908 threads's trap_expected flag.
909
910 2014-10-15 Doug Evans <dje@google.com>
911 Walfred Tedeschi <walfred.tedeschi@intel.com>
912
913 PR python/17364
914 * python/lib/gdb/__init__.py (packages): Add "printer".
915 * python/lib/gdb/command/bound_registers.py: Moved to ...
916 * python/lib/gdb/printer/bound_registers.py: ... here.
917 Add printer to global set of builtin printers. Rename printer from
918 "bound" to "mpx_bound128".
919 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
920 registered as global "builtin" printer.
921 (add_builtin_pretty_printer): New function.
922 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
923 gdb/printer/__init__.py.
924
925 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
926
927 * Makefile.in (SFILES): Remove d-support.c.
928 (COMMON_OBS): Remove d-support.o.
929 * d-lang.h (d_parse_symbol): Remove declaration.
930 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
931 * d-support.c: Remove file.
932
933 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
934
935 * gdb/infrun.c (process_event_stop_test): Apply
936 gdbarch_addr_bits_remove to longjmp resume address.
937
938 2014-10-15 Pedro Alves <palves@redhat.com>
939
940 * regformats/microblaze.dat: Delete file.
941
942 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
943
944 * features/Makefile (microblaze-expedite): Replace pc with rpc.
945 * regformats/microblaze-with-stack-protect.dat: Regenerate.
946
947 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
948
949 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
950 as non-trivial.
951
952 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
953
954 PR c++/13403
955 PR c++/15154
956 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
957 with qualified args.
958
959 2014-10-14 Joel Brobecker <brobecker@adacore.com>
960
961 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
962 of the case where the second operand is a pointer.
963 <BINOP_SUB>: Likewise.
964
965 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
966
967 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
968 only if it is not NULL.
969 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
970 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
971 (struct probe_ops) <clear_semaphore>: Likewise.
972 * tracepoint.c (start_tracing): Call set_semaphore only if it is
973 not NULL.
974 (stop_tracing): Likewise, for clear_semaphore.
975
976 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
977
978 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
979 using language_c, instead of current_language.
980
981 2014-10-13 Doug Evans <dje@google.com>
982
983 * python/py-objfile.c (objfpy_initialize): New function.
984 (objfpy_new, objfile_to_objfile_object): Call it.
985 * python/py-progspace.c (pspy_initialize): New function.
986 (pspy_new, pspace_to_pspace_object): Call it.
987
988 2014-10-13 Miroslav Franc <mfranc@redhat.com>
989 Jan Kratochvil <jan.kratochvil@redhat.com>
990
991 Fix "save breakpoints" for "catch" command.
992 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
993 newline.
994
995 2014-10-12 Miroslav Franc <mfranc@redhat.com>
996
997 Fix "save breakpoints" for "disable $bpnum" command.
998 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
999
1000 2014-10-10 Pedro Alves <palves@redhat.com>
1001
1002 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1003 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1004 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1005 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1006 and been removed.
1007 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1008 * configure.ac: Remove references to IRIX.
1009 * configure.host: Add *-*-irix* to the obsolete hosts section.
1010 Remove all other references to irix.
1011 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1012 Delete files.
1013
1014 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1015
1016 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1017 isn't valid, release the tdesc arch data and return NULL.
1018
1019 2014-10-10 Pedro Alves <palves@redhat.com>
1020
1021 * linux-tdep.c: Include observer.h.
1022 (linux_inferior_data): New global.
1023 (struct linux_info): New structure.
1024 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1025 (get_linux_inferior_data): New functions.
1026 (linux_vsyscall_range): Rename to ...
1027 (linux_vsyscall_range_raw): ... this.
1028 (linux_vsyscall_range): New function; handles caching.
1029 (_initialize_linux_tdep): Register linux_inferior_data. Install
1030 inferior_exit and inferior_appeared observers.
1031
1032 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1033 Pedro Alves <palves@redhat.com>
1034
1035 PR symtab/14466
1036 * solib-svr4.c (svr4_read_so_list): Rename to ...
1037 (svr4_current_sos_1): ... this and change the function comment.
1038 (svr4_current_sos): New function.
1039
1040 2014-10-10 Pedro Alves <palves@redhat.com>
1041
1042 * arch-utils.c (default_vsyscall_range): New function.
1043 * arch-utils.h (default_vsyscall_range): New declaration.
1044 * gdbarch.sh (vsyscall_range): New hook.
1045 * gdbarch.h, gdbarch.c: Regenerate.
1046 * linux-tdep.c (linux_vsyscall_range): New function.
1047 (linux_init_abi): Install linux_vsyscall_range as
1048 vsyscall_range gdbarch hook.
1049 * memrange.c (address_in_mem_range): New function.
1050 * memrange.h (address_in_mem_range): New declaration.
1051 * symfile-mem.c (find_vdso_size): Delete function.
1052 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1053
1054 2014-10-10 Pedro Alves <palves@redhat.com>
1055
1056 * infrun.c (normal_stop): Fix typo in comment.
1057
1058 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1059
1060 PR tdep/9390
1061 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1062 typo when using logical AND to determine instruction type.
1063
1064 2014-10-09 Yao Qi <yao@codesourcery.com>
1065
1066 * infrun.c (handle_signal_stop): Remove local variable
1067 'printed'.
1068
1069 2014-10-08 Stan Shebs <stan@codesourcery.com>
1070
1071 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1072
1073 2014-10-08 Gary Benson <gbenson@redhat.com>
1074
1075 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1076
1077 2014-10-08 Gary Benson <gbenson@redhat.com>
1078
1079 * common/common-defs.h: Include common-exceptions.h.
1080 * exceptions.h: Do not include common-exceptions.h.
1081
1082 2014-10-08 Gary Benson <gbenson@redhat.com>
1083
1084 * common/common-defs.h: Include cleanups.h.
1085 * common/common-exceptions.c: Do not include cleanups.h.
1086 * utils.h: Likewise.
1087
1088 2014-10-08 Gary Benson <gbenson@redhat.com>
1089
1090 * ada-lang.c: Do not include exceptions.h.
1091 * ada-valprint.c: Likewise.
1092 * amd64-tdep.c: Likewise.
1093 * auto-load.c: Likewise.
1094 * block.c: Likewise.
1095 * break-catch-throw.c: Likewise.
1096 * breakpoint.c: Likewise.
1097 * btrace.c: Likewise.
1098 * c-lang.c: Likewise.
1099 * cli/cli-cmds.c: Likewise.
1100 * cli/cli-interp.c: Likewise.
1101 * cli/cli-script.c: Likewise.
1102 * completer.c: Likewise.
1103 * corefile.c: Likewise.
1104 * corelow.c: Likewise.
1105 * cp-abi.c: Likewise.
1106 * cp-support.c: Likewise.
1107 * cp-valprint.c: Likewise.
1108 * darwin-nat.c: Likewise.
1109 * dwarf2-frame-tailcall.c: Likewise.
1110 * dwarf2-frame.c: Likewise.
1111 * dwarf2loc.c: Likewise.
1112 * dwarf2read.c: Likewise.
1113 * eval.c: Likewise.
1114 * event-loop.c: Likewise.
1115 * event-top.c: Likewise.
1116 * f-valprint.c: Likewise.
1117 * frame-unwind.c: Likewise.
1118 * frame.c: Likewise.
1119 * gdbtypes.c: Likewise.
1120 * gnu-v2-abi.c: Likewise.
1121 * gnu-v3-abi.c: Likewise.
1122 * guile/scm-auto-load.c: Likewise.
1123 * guile/scm-breakpoint.c: Likewise.
1124 * guile/scm-cmd.c: Likewise.
1125 * guile/scm-frame.c: Likewise.
1126 * guile/scm-lazy-string.c: Likewise.
1127 * guile/scm-param.c: Likewise.
1128 * guile/scm-symbol.c: Likewise.
1129 * guile/scm-type.c: Likewise.
1130 * hppa-hpux-tdep.c: Likewise.
1131 * i386-tdep.c: Likewise.
1132 * inf-loop.c: Likewise.
1133 * infcall.c: Likewise.
1134 * infcmd.c: Likewise.
1135 * infrun.c: Likewise.
1136 * interps.c: Likewise.
1137 * interps.h: Likewise.
1138 * jit.c: Likewise.
1139 * linespec.c: Likewise.
1140 * linux-nat.c: Likewise.
1141 * linux-thread-db.c: Likewise.
1142 * m32r-rom.c: Likewise.
1143 * main.c: Likewise.
1144 * memory-map.c: Likewise.
1145 * mi/mi-cmd-break.c: Likewise.
1146 * mi/mi-cmd-stack.c: Likewise.
1147 * mi/mi-interp.c: Likewise.
1148 * mi/mi-main.c: Likewise.
1149 * monitor.c: Likewise.
1150 * nto-procfs.c: Likewise.
1151 * objc-lang.c: Likewise.
1152 * p-valprint.c: Likewise.
1153 * parse.c: Likewise.
1154 * ppc-linux-tdep.c: Likewise.
1155 * printcmd.c: Likewise.
1156 * probe.c: Likewise.
1157 * python/py-auto-load.c: Likewise.
1158 * python/py-breakpoint.c: Likewise.
1159 * python/py-cmd.c: Likewise.
1160 * python/py-finishbreakpoint.c: Likewise.
1161 * python/py-frame.c: Likewise.
1162 * python/py-framefilter.c: Likewise.
1163 * python/py-function.c: Likewise.
1164 * python/py-gdb-readline.c: Likewise.
1165 * python/py-inferior.c: Likewise.
1166 * python/py-infthread.c: Likewise.
1167 * python/py-lazy-string.c: Likewise.
1168 * python/py-linetable.c: Likewise.
1169 * python/py-param.c: Likewise.
1170 * python/py-prettyprint.c: Likewise.
1171 * python/py-symbol.c: Likewise.
1172 * python/py-type.c: Likewise.
1173 * python/py-value.c: Likewise.
1174 * python/python-internal.h: Likewise.
1175 * python/python.c: Likewise.
1176 * record-btrace.c: Likewise.
1177 * record-full.c: Likewise.
1178 * regcache.c: Likewise.
1179 * remote-fileio.c: Likewise.
1180 * remote-mips.c: Likewise.
1181 * remote.c: Likewise.
1182 * rs6000-aix-tdep.c: Likewise.
1183 * rs6000-nat.c: Likewise.
1184 * skip.c: Likewise.
1185 * solib-darwin.c: Likewise.
1186 * solib-dsbt.c: Likewise.
1187 * solib-frv.c: Likewise.
1188 * solib-ia64-hpux.c: Likewise.
1189 * solib-spu.c: Likewise.
1190 * solib-svr4.c: Likewise.
1191 * solib.c: Likewise.
1192 * spu-tdep.c: Likewise.
1193 * stack.c: Likewise.
1194 * stap-probe.c: Likewise.
1195 * symfile-mem.c: Likewise.
1196 * symmisc.c: Likewise.
1197 * target.c: Likewise.
1198 * thread.c: Likewise.
1199 * top.c: Likewise.
1200 * tracepoint.c: Likewise.
1201 * tui/tui-interp.c: Likewise.
1202 * typeprint.c: Likewise.
1203 * utils.c: Likewise.
1204 * valarith.c: Likewise.
1205 * valops.c: Likewise.
1206 * valprint.c: Likewise.
1207 * value.c: Likewise.
1208 * varobj.c: Likewise.
1209 * windows-nat.c: Likewise.
1210 * xml-support.c: Likewise.
1211
1212 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1213
1214 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1215 name implies.
1216 (extended_mips16_next_pc): Update accordingly.
1217
1218 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1219
1220 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1221 function.
1222 (micromips_instruction_is_compact_branch): Likewise.
1223 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1224 or a compact jump, reaching a jump delay slot, or seeing a
1225 second non-prologue instruction.
1226 (micromips_scan_prologue): Also terminate scanning upon seeing a
1227 compact branch or jump, or reaching a branch or jump delay slot.
1228 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1229 or jump delay slot, or seeing a second non-prologue instruction.
1230 (mips32_instruction_has_delay_slot): Retain instruction
1231 examination code only, update arguments accordingly and move
1232 instruction fetch pieces to...
1233 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1234 (micromips_instruction_has_delay_slot): Likewise and to...
1235 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1236 (mips16_instruction_has_delay_slot): Likewise and to...
1237 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1238 (mips_single_step_through_delay): Update accordingly.
1239 (mips_adjust_breakpoint_address): Likewise.
1240
1241 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1242
1243 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1244 !mustbe32 also return 1 for 32-bit instructions.
1245 (mips16_instruction_has_delay_slot): Likewise. Add an
1246 explanatory comment.
1247
1248 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1249
1250 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1251 symbols special.
1252
1253 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1254
1255 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1256 update comments.
1257 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1258 for the breakpoint's address. Don't preinitialize `placed_size'.
1259 (insert_bp_location): Set `reqstd_address' rather than
1260 `placed_address'.
1261 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1262 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1263 address.
1264 (bkpt_remove_location): Likewise.
1265 (deprecated_insert_raw_breakpoint): Likewise.
1266 (deprecated_remove_raw_breakpoint): Likewise.
1267 (find_single_step_breakpoint): Likewise.
1268 * mem-break.c (default_memory_insert_breakpoint): Use
1269 `reqstd_address' for the breakpoint's address. Don't set
1270 `placed_address' or `placed_size' if breakpoint contents couldn't
1271 have been determined.
1272 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1273 the breakpoint's address.
1274 (remote_insert_hw_breakpoint): Likewise. Don't set
1275 `placed_address' or `placed_size' if breakpoint couldn't have been
1276 set.
1277 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1278 `reqstd_address' for the breakpoint's address.
1279 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1280 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1281 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1282 * microblaze-linux-tdep.c
1283 (microblaze_linux_memory_remove_breakpoint): Likewise.
1284 * monitor.c (monitor_insert_breakpoint): Likewise.
1285 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1286 (procfs_insert_hw_breakpoint): Likewise.
1287 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1288 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1289 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1290 * remote-mips.c (mips_insert_breakpoint): Likewise.
1291 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1292
1293 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1294
1295 * valops.c (value_assign): Check for bit field assignments
1296 before calling architecture-specific register value
1297 conversion functions.
1298
1299 2014-10-03 Pierre Muller <muller@sourceware.org>
1300
1301 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1302
1303 2014-10-02 Pedro Alves <palves@redhat.com>
1304
1305 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1306 threads_are_executing.
1307 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1308 describing comment.
1309 * gdbthread.h (threads_are_executing): Declare.
1310 (handle_signal_stop) <random signals>: Don't print about the
1311 signal here if stopping.
1312 (end_stepping_range): Don't notify observers here.
1313 (normal_stop): Update the thread list. If stopped by a random
1314 signal or a stepping range ended, notify observers.
1315 * thread.c (threads_executing): New global.
1316 (init_thread_list): Clear 'threads_executing'.
1317 (set_executing): Set or clear 'threads_executing'.
1318 (threads_are_executing): New function.
1319 (update_threads_executing): New function.
1320 (update_thread_list): Use it.
1321
1322 2014-10-02 Pedro Alves <palves@redhat.com>
1323
1324 PR breakpoints/17431
1325 * breakpoint.c (update_breakpoints_after_exec): Don't create
1326 overlay, longjmp, std terminate nor exception breakpoints here.
1327
1328 2014-10-02 Pedro Alves <palves@redhat.com>
1329
1330 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1331 Adjust comments.
1332 * inferior.c (find_inferior_for_program_space): Give preference to
1333 the current inferior.
1334 * inferior.h (find_inferior_for_program_space): Update comment.
1335 * progspace.c (switch_to_program_space_and_thread): Prefer the
1336 current inferior if it's bound to the program space requested. If
1337 the inferior found doesn't have a PID yet, don't bother looking up
1338 a thread.
1339 * progspace.h (switch_to_program_space_and_thread): Adjust
1340 comment.
1341 * thread.c (any_thread_of_process, any_live_thread_of_process):
1342 Give preference to the current thread.
1343
1344 2014-10-01 Pedro Alves <palves@redhat.com>
1345
1346 * breakpoint.c (insert_bp_location): Error out if inserting a
1347 software breakpoint at a read-only address.
1348 * target.c (memory_xfer_check_region): New function, factored out
1349 from ...
1350 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1351 ULONGEST.
1352 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1353 against the memory region attributes.
1354
1355 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1356
1357 * NEWS: Announce new exit-code field in -list-thread-groups
1358 output.
1359 * inferior.c (exit_inferior_1): Don't clear exit code.
1360 (inferior_appeared): Clear exit code.
1361 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1362 code.
1363
1364 2014-10-01 Pedro Alves <palves@redhat.com>
1365
1366 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1367 GENERATED" along with emacs/vi read-only markers.
1368 * regformats/aarch64.dat: Regenerate.
1369 * regformats/arm-with-iwmmxt.dat: Regenerate.
1370 * regformats/arm-with-neon.dat: Regenerate.
1371 * regformats/arm-with-vfpv2.dat: Regenerate.
1372 * regformats/arm-with-vfpv3.dat: Regenerate.
1373 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1374 * regformats/i386/amd64-avx.dat: Regenerate.
1375 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1376 * regformats/i386/amd64-avx512.dat: Regenerate.
1377 * regformats/i386/amd64-linux.dat: Regenerate.
1378 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1379 * regformats/i386/amd64-mpx.dat: Regenerate.
1380 * regformats/i386/amd64.dat: Regenerate.
1381 * regformats/i386/i386-avx-linux.dat: Regenerate.
1382 * regformats/i386/i386-avx.dat: Regenerate.
1383 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1384 * regformats/i386/i386-avx512.dat: Regenerate.
1385 * regformats/i386/i386-linux.dat: Regenerate.
1386 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1387 * regformats/i386/i386-mmx.dat: Regenerate.
1388 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1389 * regformats/i386/i386-mpx.dat: Regenerate.
1390 * regformats/i386/i386.dat: Regenerate.
1391 * regformats/i386/x32-avx-linux.dat: Regenerate.
1392 * regformats/i386/x32-avx.dat: Regenerate.
1393 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1394 * regformats/i386/x32-avx512.dat: Regenerate.
1395 * regformats/i386/x32-linux.dat: Regenerate.
1396 * regformats/i386/x32.dat: Regenerate.
1397 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1398 * regformats/mips-dsp-linux.dat: Regenerate.
1399 * regformats/mips-linux.dat: Regenerate.
1400 * regformats/mips64-dsp-linux.dat: Regenerate.
1401 * regformats/mips64-linux.dat: Regenerate.
1402 * regformats/nios2-linux.dat: Regenerate.
1403 * regformats/rs6000/powerpc-32.dat: Regenerate.
1404 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1405 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1406 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1407 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1408 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1409 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1410 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1411 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1412 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1413 * regformats/s390-linux32.dat: Regenerate.
1414 * regformats/s390-linux32v1.dat: Regenerate.
1415 * regformats/s390-linux32v2.dat: Regenerate.
1416 * regformats/s390-linux64.dat: Regenerate.
1417 * regformats/s390-linux64v1.dat: Regenerate.
1418 * regformats/s390-linux64v2.dat: Regenerate.
1419 * regformats/s390-te-linux64.dat: Regenerate.
1420 * regformats/s390x-linux64.dat: Regenerate.
1421 * regformats/s390x-linux64v1.dat: Regenerate.
1422 * regformats/s390x-linux64v2.dat: Regenerate.
1423 * regformats/s390x-te-linux64.dat: Regenerate.
1424 * regformats/tic6x-c62x-linux.dat: Regenerate.
1425 * regformats/tic6x-c62x.dat: Regenerate.
1426 * regformats/tic6x-c64x-linux.dat: Regenerate.
1427 * regformats/tic6x-c64x.dat: Regenerate.
1428 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1429 * regformats/tic6x-c64xp.dat: Regenerate.
1430
1431 2014-10-01 Pedro Alves <palves@redhat.com>
1432
1433 * features/Makefile: Update comments.
1434 (XMLTOC): List all xml files we build C files from.
1435 (clean-cfiles): New rule.
1436
1437 2014-10-01 Pedro Alves <palves@redhat.com>
1438
1439 * features/i386/amd64-avx512-linux.c: Regenerate.
1440 * features/i386/amd64-avx512.c: Regenerate.
1441 * features/i386/x32-avx512-linux.c: Regenerate.
1442 * features/i386/x32-avx512.c: Regenerate.
1443
1444 2014-10-01 Pedro Alves <palves@redhat.com>
1445
1446 * features/Makefile (WHICH): Remove arm-with-m,
1447 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1448
1449 2014-10-01 Pedro Alves <palves@redhat.com>
1450
1451 * features/Makefile (clean): New rule.
1452
1453 2014-10-01 Pedro Alves <palves@redhat.com>
1454
1455 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1456 (zmm14h): Add missing end quotes.
1457
1458 2014-10-01 Pedro Alves <palves@redhat.com>
1459
1460 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1461 * features/aarch64.c: Regenerate.
1462
1463 2014-09-30 Don Breazeal <donb@codesourcery.com>
1464
1465 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1466 code so as to work with follow_fork_inferior.
1467 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1468 (inf_ttrace_create_inferior): Remove reference to
1469 inf_ttrace_vfork_ppid.
1470 (inf_ttrace_attach): Ditto.
1471 (inf_ttrace_detach): Ditto.
1472 (inf_ttrace_kill): Use current_inferior instead of
1473 inf_ttrace_vfork_ppid.
1474 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1475 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1476 inferior away from the parent.
1477 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1478 target_follow_fork.
1479 (follow_fork_inferior): New function.
1480 (follow_inferior_reset_breakpoints): Make function static.
1481 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1482 * linux-nat.c (linux_child_follow_fork): Move target-independent
1483 code to infrun.c:follow_fork_inferior.
1484
1485 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1486
1487 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1488 * gdbarch.c: Regenerate.
1489 * gdbarch.h: Likewise.
1490 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1491 gdbarch method 'regset_from_core_section'.
1492 (get_core_register_section): Remove handling for the case that
1493 regset == NULL and regset_from_core_section is defined.
1494 (get_core_registers): Drop check for deleted method.
1495 * procfs.c (procfs_do_thread_registers): Adjust comment.
1496
1497 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1498
1499 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1500 (linux_nat_make_corefile_notes): Remove.
1501 (linux_target_install_ops): Do not set target method
1502 'make_corefile_notes'.
1503 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1504 Remove field.
1505 (linux_corefile_thread_callback): Instead of args->collect, call
1506 linux_collect_thread_registers.
1507 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1508 NULL unless there is a regset iterator.
1509 (linux_make_corefile_notes_1): Remove.
1510 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1511 by linux_make_corefile_notes.
1512 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1513
1514 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1515
1516 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1517 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1518 Remove.
1519 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1520
1521 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1522
1523 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1524 (xtensa_iterate_over_regset_sections): New.
1525 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1526
1527 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1528
1529 * vax-tdep.c (vax_regset_from_core_section): Remove.
1530 (vax_iterate_over_regset_sections): New.
1531 (vax_gdbarch_init): Adjust gdbarch initialization.
1532
1533 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1534
1535 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1536 (tilegx_regset_from_core_section): Remove.
1537 (tilegx_iterate_over_regset_sections): New.
1538 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1539
1540 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1541
1542 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1543 (sparc_iterate_over_regset_sections): New.
1544 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1545 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1546 targets.
1547 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1548 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1549 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1550 target method 'make_corefile_notes'.
1551
1552 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1553
1554 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1555 'sizeof_gregset' and 'sizeof_fpregset'.
1556 * sh-tdep.c (sh_regset_from_core_section): Remove.
1557 (sh_iterate_over_regset_sections): New.
1558 (sh_gdbarch_init): Adjust gdbarch initialization.
1559 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1560 sizeof_fpregset.
1561 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1562 'sizeof_gregset'.
1563
1564 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1565
1566 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1567 (score7_linux_iterate_over_regset_sections): New.
1568 (score_gdbarch_init): Adjust gdbarch initialization.
1569
1570 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1571
1572 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1573 FreeBSD targets.
1574 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1575 method 'make_corefile_notes'.
1576 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1577 (ppcfbsd_regset_from_core_section): Remove.
1578 (ppcfbsd_iterate_over_regset_sections): New.
1579 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1580 initialization.
1581 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1582 (ppcnbsd_iterate_over_regset_sections): New.
1583 (ppcnbsd_init_abi): Adjust.
1584 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1585 (ppcobsd_iterate_over_regset_sections): New.
1586 (ppcobsd_init_abi): Adjust.
1587 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1588 (rs6000_aix_iterate_over_regset_sections): New.
1589 (rs6000_aix_init_osabi): Adjust.
1590
1591 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1592
1593 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1594 (nios2_regset_from_core_section): Remove.
1595 (nios2_iterate_over_regset_sections): New.
1596 (nios2_linux_init_abi): Adjust gdbarch initialization.
1597
1598 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1599
1600 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1601 (am33_iterate_over_regset_sections): New.
1602 (am33_linux_init_osabi): Adjust gdbarch initialization.
1603
1604 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1605
1606 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1607 (mips_linux_iterate_over_regset_sections): New.
1608 (mips_linux_init_abi): Adjust gdbarch initialization.
1609 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1610 (mips64obsd_iterate_over_regset_sections): New.
1611 (mips64obsd_init_abi): Adjust.
1612 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1613 (mipsnbsd_iterate_over_regset_sections): New.
1614 (mipsnbsd_init_abi): Adjust.
1615
1616 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1617
1618 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1619 (m88k_iterate_over_regset_sections): New.
1620 (m88k_gdbarch_init): Adjust gdbarch initialization.
1621
1622 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1623
1624 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1625 (ia64_linux_iterate_over_regset_sections): New.
1626 (ia64_linux_init_abi): Adjust gdbarch initialization.
1627
1628 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1629
1630 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1631 (m68kbsd_iterate_over_regset_sections): New.
1632 (m68kbsd_init_abi): Adjust gdbarch initialization.
1633 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1634 (m68k_linux_iterate_over_regset_sections): New.
1635 (m68k_linux_init_abi): Adjust gdbarch initialization.
1636
1637 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1638
1639 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1640 (m32r_linux_regset_from_core_section): Remove.
1641 (m32r_linux_iterate_over_regset_sections): New.
1642 (m32r_linux_init_abi): Adjust gdbarch initialization.
1643
1644 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1645
1646 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1647 (amd64obsd_iterate_over_regset_sections): New.
1648 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1649 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1650 Remove.
1651 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1652 regset_from_core_section initialization.
1653 * i386-tdep.c (i386_regset_from_core_section): Remove.
1654 (i386_iterate_over_regset_sections): New.
1655 (i386_gdbarch_init): Adjust gdbarch initialization.
1656 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1657 (i386_iterate_over_regset_sections): New prototype.
1658 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1659 Remove.
1660 (i386obsd_aout_iterate_over_regset_sections): New.
1661 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1662 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1663 targets.
1664 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1665 (amd64fbsd_init_abi): Call fbsd_init_abi.
1666 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1667 (i386fbsd4_init_abi): Call fbsd_init_abi.
1668 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1669 target method 'make_corefile_notes'.
1670 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1671
1672 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1673
1674 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1675 (hppa_hpux_iterate_over_regset_sections): New.
1676 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1677 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1678 (hppa_linux_iterate_over_regset_sections): New.
1679 (hppa_linux_init_abi): Adjust.
1680 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1681 (hppanbsd_iterate_over_regset_sections): New.
1682 (hppanbsd_init_abi): Adjust.
1683 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1684 (hppaobsd_iterate_over_regset_sections): New.
1685 (hppaobsd_init_abi): Adjust.
1686
1687 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1688
1689 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1690 (frv_linux_iterate_over_regset_sections): New.
1691 (frv_linux_init_abi): Adjust gdbarch initialization.
1692
1693 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1694
1695 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1696 (armbsd_iterate_over_regset_sections): New prototype.
1697 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1698 (armbsd_iterate_over_regset_sections): New.
1699 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1700 initialization.
1701
1702 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1703
1704 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1705 (alpha_linux_iterate_over_regset_sections): New.
1706 (alpha_linux_init_abi): Adjust gdbarch initialization.
1707 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1708 prototype.
1709 (alphanbsd_iterate_over_regset_sections): New prototype.
1710
1711 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1712
1713 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1714 Remove.
1715 (aarch64_linux_iterate_over_regset_sections): New.
1716 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1717
1718 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1719
1720 * fbsd-tdep.c: New file.
1721 * fbsd-tdep.h: New file.
1722 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1723 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1724 (ALLDEPFILES): Add fbsd-tdep.c.
1725
1726 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1727
1728 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1729 parameter.
1730 * gdbarch.h: Regenerate.
1731 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1732 iterator.
1733 (get_core_register_section): Add parameter 'regset' and use it, if
1734 set. Add parameter 'min_size' and verify the bfd section size
1735 against it.
1736 (get_core_registers_cb): Add parameter 'regset' and pass it to
1737 get_core_register section. For the "standard" register sections
1738 ".reg" and ".reg2", set an appropriate default for human_name.
1739 (get_core_registers): Don't abort when the gdbarch has an iterator
1740 but no regset_from_core_section. Add NULL/0 for parameters
1741 'regset'/'min_size' in calls to get_core_register_section.
1742 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1743 'regset' and use it instead of calling the
1744 regset_from_core_section gdbarch method.
1745 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1746 * i386-tdep.c (i386_supply_xstateregset)
1747 (i386_collect_xstateregset, i386_xstateregset): Moved to
1748 i386-linux-tdep.c.
1749 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1750 .reg-xstate.
1751 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1752 core file support only if the regset iterator hasn't been set.
1753 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1754 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1755 Moved from i386-tdep.c and renamed to *_linux*.
1756 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1757 each callback invocation. Allow any .reg-xstate size when reading
1758 from a core file.
1759 * amd64-tdep.c (amd64_supply_xstateregset)
1760 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1761 amd64-linux-tdep.c.
1762 (amd64_regset_from_core_section): Remove.
1763 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1764 install an amd64-specific regset_from_core_section gdbarch method.
1765 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1766 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1767 Moved from amd64-tdep.c and renamed to *_linux*.
1768 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1769 to each callback invocation. Allow any .reg-xstate size when
1770 reading from a core file.
1771 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1772 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1773 each callback invocation.
1774 (arm_linux_init_abi): No longer set the regset_from_core_section
1775 gdbarch method.
1776 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1777 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1778 each callback invocation.
1779 (ppc_linux_init_abi): No longer set the regset_from_core_section
1780 gdbarch method.
1781 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1782 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1783 (s390_regset_from_core_section): Remove.
1784 (s390_iterate_over_regset_sections): Add regset parameter to each
1785 callback invocation.
1786 (s390_gdbarch_init): No longer set the regset_from_core_section
1787 gdbarch method. Drop initialization of deleted tdep fields.
1788
1789 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1790
1791 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1792 (amd64_linux_iterate_over_regset_sections): New.
1793 (amd64_linux_init_abi_common): Don't install the regset section
1794 list, but the new iterator in gdbarch.
1795 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1796 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1797 (arm_linux_iterate_over_regset_sections): ...here. New function.
1798 (arm_linux_init_abi): Set iterator instead of section list.
1799 * corelow.c (get_core_registers_cb): New function, logic moved
1800 from...
1801 (get_core_registers): ...loop body here. Use new iterator method
1802 instead of walking through the regset section list.
1803 * gdbarch.sh: Remove 'core_regset_sections'. New method
1804 'iterate_over_regset_sections'. New typedef
1805 'iterate_over_regset_sections_cb'.
1806 * gdbarch.c: Regenerate.
1807 * gdbarch.h: Likewise.
1808 * i386-linux-tdep.c (i386_linux_regset_sections)
1809 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1810 Remove.
1811 (i386_linux_iterate_over_regset_sections): New.
1812 (i386_linux_init_abi): Don't choose a regset section list, but
1813 install new iterator in gdbarch.
1814 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1815 (linux_collect_regset_section_cb): New function, logic moved
1816 from...
1817 (linux_collect_thread_registers): ...loop body here. Use iterator
1818 method instead of walking through list.
1819 (linux_make_corefile_notes_1): Check for presence of iterator
1820 method instead of regset section list.
1821 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1822 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1823 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1824 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1825 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1826 (ppc_linux_init_abi): Don't choose from above regset section
1827 lists, but install new iterator in gdbarch.
1828 * regset.h (struct core_regset_section): Remove.
1829 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1830 have_linux_v1, have_linux_v2, and have_tdb.
1831 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1832 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1833 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1834 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1835 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1836 (s390_iterate_over_regset_sections): ...here. New function. Use
1837 new tdep fields.
1838 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1839 regset section lists, but install new iterator.
1840
1841 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1842
1843 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1844
1845 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1846
1847 * progspace.c (print_program_space): Don't prune program spaces
1848 before printing them.
1849
1850 2014-09-25 Pedro Alves <palves@redhat.com>
1851
1852 * infrun.c (user_visible_resume_ptid): Don't check
1853 singlestep_breakpoints_inserted_p.
1854
1855 2014-09-25 Pedro Alves <palves@redhat.com>
1856
1857 * breakpoint.c (should_be_inserted): Add debug output.
1858
1859 2014-09-25 Pedro Alves <palves@redhat.com>
1860
1861 * infrun.c (stepping_past_instruction_at)
1862 (clear_exit_convenience_vars): Point at infrun.h instead of
1863 inferior.h.
1864 (handle_signal_stop): Fix typo.
1865
1866 2014-09-24 Yao Qi <yao@codesourcery.com>
1867
1868 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1869 bitmask.
1870
1871 2014-09-22 Gary Benson <gbenson@redhat.com>
1872
1873 * target.c (target_stop): Updated comment.
1874
1875 2014-09-22 Gary Benson <gbenson@redhat.com>
1876
1877 * target/target.h (target_stop_ptid): Renamed as...
1878 (target_stop_and_wait): New function. Updated comment.
1879 All uses updated.
1880 (target_continue_ptid): Renamed as...
1881 (target_continue_no_signal): New function. Updated comment.
1882 All uses updated.
1883
1884 2014-09-22 Pedro Alves <palves@redhat.com>
1885
1886 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1887 and "auto" merged.
1888 * breakpoint.c (enum ugll_insert_mode): New enum.
1889 (always_inserted_mode): Now a plain boolean.
1890 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1891 (breakpoints_always_inserted_mode): Delete.
1892 (breakpoints_should_be_inserted_now): New function.
1893 (insert_breakpoints): Pass UGLL_INSERT to
1894 update_global_location_list instead of calling
1895 insert_breakpoint_locations manually.
1896 (create_solib_event_breakpoint_1): New, factored out from ...
1897 (create_solib_event_breakpoint): ... this.
1898 (create_and_insert_solib_event_breakpoint): Use
1899 create_solib_event_breakpoint_1 instead of calling
1900 insert_breakpoint_locations manually.
1901 (update_global_location_list): Change parameter type from boolean
1902 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1903 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1904 (update_global_location_list_nothrow): Change parameter type from
1905 boolean to enum ugll_insert_mode.
1906 (_initialize_breakpoint): "breakpoint always-inserted" option is
1907 now a boolean command. Update help text.
1908 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1909 (breakpoints_should_be_inserted_now): New declaration.
1910 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1911 Remove breakpoints_always_inserted_mode check.
1912 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1913 * remote.c (remote_start_remote): Likewise.
1914
1915 2014-09-22 Pedro Alves <palves@redhat.com>
1916
1917 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1918 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1919 Instead, pass UGLL_INSERT to update_global_location_list.
1920 (update_global_location_list): Change parameter type from boolean
1921 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1922 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1923 (create_solib_event_breakpoint_1): New, factored out from ...
1924 (create_solib_event_breakpoint): ... this.
1925 (create_and_insert_solib_event_breakpoint): Use
1926 create_solib_event_breakpoint_1 instead of calling
1927 insert_breakpoint_locations manually.
1928 (update_global_location_list): Handle UGLL_INSERT.
1929
1930 2014-09-22 Pedro Alves <palves@redhat.com>
1931
1932 * breakpoint.c (enum ugll_insert_mode): New enum.
1933 (update_global_location_list)
1934 (update_global_location_list_nothrow): Change parameter type from
1935 boolean to enum ugll_insert_mode. All callers adjusted.
1936
1937 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1938
1939 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1940 SystemTap support in GDB.
1941
1942 2014-09-19 Don Breazeal <donb@codesourcery.com>
1943
1944 * linux-nat.c (linux_handle_extended_wait): Call
1945 linux_ptrace_get_extended_event.
1946 (wait_lwp): Call linux_is_extended_waitstatus.
1947 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1948 and linux_is_extended_waitstatus.
1949 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1950 linux_ptrace_get_extended_event.
1951 (linux_ptrace_get_extended_event): New function.
1952 (linux_is_extended_waitstatus): New function.
1953 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1954 (linux_is_extended_waitstatus): New declarations.
1955
1956 2014-09-19 Yao Qi <yao@codesourcery.com>
1957
1958 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1959 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1960 comments. Callers update.
1961 (dwarf_decode_lines): Likewise.
1962 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1963 comments. Skip the line table if 'lowpc' is greater than
1964 'address'. Don't check
1965 dwarf2_per_objfile->has_section_at_zero.
1966
1967 2014-09-18 Doug Evans <dje@google.com>
1968
1969 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1970 * python/py-symtab.c (stpy_get_producer): New function.
1971 (symtab_object_getset): Add "producer" attribute.
1972
1973 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1974
1975 PR gdb/17384
1976 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1977 (do_captured_read_memory_integer): Remove.
1978 (safe_read_memory_integer): Use target_read_memory directly instead
1979 of catching errors in do_captured_read_memory_integer.
1980
1981 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1982
1983 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1984 not gdb/doc.
1985
1986 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1987
1988 * objc-lang.c (find_implementation_from_class): Remove dead code.
1989
1990 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1991
1992 PR cli/7233
1993 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1994 "fprintf_unfiltered (gdb_stdlog...)".
1995
1996 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1997
1998 PR breakpoints/12526
1999 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2000 val_bitsize.
2001 * breakpoint.c (watch_command_1): Use these fields to retain
2002 bitfield information.
2003 (extract_bitfield_from_watchpoint_value): New function.
2004 (watchpoint_check): Use it.
2005 (update_watchpoint): Use it. Optimize the address and length of a
2006 HW watchpoint pointing to a bitfield.
2007 * value.h (unpack_value_bitfield): New prototype.
2008 * value.c (unpack_value_bitfield): Make extern.
2009
2010 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2011
2012 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2013 x86-dregs.o.
2014 * gnu-nat.c (inf_threads): New function.
2015 * gnu-nat.h (inf_threads_ftype): New typedef.
2016 (inf_threads): New declaration.
2017 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2018 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2019 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2020 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2021 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2022 (i386_gnu_dr_get_control): New functions.
2023 (reg_addr): New structure.
2024 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2025 i386 debugging register hooks.
2026 * NEWS: Mention this.
2027
2028 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2029
2030 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2031 vector data transfer instructions.
2032 (arm_record_coproc_data_proc): Updated.
2033
2034 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2035
2036 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2037 arm_record_exreg_ld_st_insn.
2038 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2039 load/store insns.
2040
2041 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2042
2043 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2044 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2045 processing instructions.
2046
2047 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2048
2049 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2050 for advance SIMD struct ld/st insn.
2051 (thumb2_record_decode_insn_handler): Replace stub handler with
2052 thumb2_record_asimd_struct_ld_st.
2053
2054 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2055
2056 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2057 for asimd, vfp and coprocessor insns.
2058 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2059 and coprocessor insns.
2060 (thumb2_record_coproc_insn): New function.
2061 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2062 handlers.
2063 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2064 opcode 110 insns.
2065
2066 2014-09-13 Doug Evans <xdje42@gmail.com>
2067
2068 * NEWS: Mention new "queue-signal" command.
2069 * infcmd.c (queue_signal_command): New function.
2070 (_initialize_infcmd): Add new queue-signal command.
2071
2072 2014-09-13 Doug Evans <xdje42@gmail.com>
2073
2074 * linux-nat.c (wait_lwp): Add debugging printf.
2075 (linux_nat_wait_1): Ditto.
2076
2077 2014-09-12 Pedro Alves <palves@redhat.com>
2078
2079 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2080 (create_and_insert_solib_event_breakpoint): New functions.
2081 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2082 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2083 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2084 (remove_dbx_link_breakpoint): Delete function.
2085 (insert_dbx_link_bpt_in_file): Use
2086 create_and_insert_solib_event_breakpoint instead of
2087 deprecated_insert_raw_breakpoint.
2088 (procfs_wait): Don't check whether we hit __dbx_link here.
2089 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2090 here.
2091 * solib-irix.c (base_breakpoint): Delete global.
2092 (disable_break): Delete function.
2093 (enable_break): Use create_solib_event_breakpoint
2094 instead of deprecated_insert_raw_breakpoint.
2095 (irix_solib_handle_event): New function.
2096 (irix_solib_create_inferior_hook): Don't run the target or disable
2097 the mapping-complete breakpoint here.
2098 (_initialize_irix_solib): Install irix_solib_handle_event as
2099 so_ops->handle_event hook.
2100
2101 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2102 Ulrich Weigand  <uweigand@de.ibm.com>
2103
2104 PR tdep/17379
2105 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2106 instead of read_memory_unsigned_integer.
2107
2108 2014-09-12 Gary Benson <gbenson@redhat.com>
2109
2110 * nat/linux-waitpid.c: Include common-defs.h.
2111 [GDBSERVER]: Add FIXME comment.
2112 [!GDBSERVER]: Don't include defs.h or signal.h.
2113 (linux_debug) [!GDBSERVER]: Remove empty block.
2114
2115 2014-09-12 Gary Benson <gbenson@redhat.com>
2116
2117 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2118 Don't include defs.h or server.h.
2119
2120 2014-09-12 Gary Benson <gbenson@redhat.com>
2121
2122 * nat/linux-btrace.c: Include common-defs.h.
2123 Don't include defs.h, server.h or gdbthread.h.
2124 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2125
2126 2014-09-12 Gary Benson <gbenson@redhat.com>
2127
2128 * common/agent.c: Include common-defs.h.
2129 Don't include defs.h or server.h.
2130 * common/buffer.c: Likewise.
2131 * common/common-debug.c: Likewise.
2132 * common/common-utils.c: Likewise.
2133 * common/errors.c: Likewise.
2134 * common/filestuff.c: Likewise.
2135 * common/format.c: Likewise.
2136 * common/gdb_vecs.c: Likewise.
2137 * common/print-utils.c: Likewise.
2138 * common/ptid.c: Likewise.
2139 * common/rsp-low.c: Likewise.
2140 * common/signals.c: Likewise.
2141 * common/vec.c: Likewise.
2142 * common/xml-utils.c: Likewise.
2143 * nat/linux-osdata.c: Likewise.
2144 * nat/linux-procfs.c: Likewise.
2145 * nat/linux-ptrace.c: Likewise.
2146 * nat/mips-linux-watch.c: Likewise.
2147 * target/waitstatus.c: Likewise.
2148
2149 2014-09-12 Tom Tromey <tromey@redhat.com>
2150 Gary Benson <gbenson@redhat.com>
2151
2152 * common/common-regcache.h: New file.
2153 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2154 * regcache.h: Include common-regcache.h.
2155 (regcache_read_pc): Don't declare.
2156 * regcache.c (get_thread_regcache_for_ptid): New function.
2157 * nat/linux-btrace.c: Don't include regcache.h.
2158 Include common-regcache.h.
2159 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2160
2161 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2162
2163 * regcache.h (struct regset): Declare.
2164
2165 2014-09-11 Pedro Alves <palves@redhat.com>
2166
2167 PR gdb/17347
2168 * main.c: Include "infrun.h".
2169 (catch_command_errors, catch_command_errors_const): Wait for the
2170 foreground command to complete.
2171 * top.c (maybe_wait_sync_command_done): New function, factored out
2172 from ...
2173 (maybe_wait_sync_command_done): ... here.
2174 * top.h (maybe_wait_sync_command_done): New declaration.
2175
2176 2014-09-11 Tom Tromey <tromey@redhat.com>
2177 Gary Benson <gbenson@redhat.com>
2178
2179 * common/symbol.h: New file.
2180 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2181 * minsyms.c (find_minimal_symbol_address): New function.
2182 * common/agent.c: Include common/symbol.h.
2183 [!GDBSERVER]: Don't include objfiles.h.
2184 (agent_look_up_symbols): Use find_minimal_symbol_address.
2185
2186 2014-09-11 Gary Benson <gbenson@redhat.com>
2187
2188 * target/target.h (target_stop_ptid, target_continue_ptid):
2189 Declare.
2190 * target.c (target_stop_ptid, target_continue_ptid): New
2191 functions.
2192 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2193 (agent_run_command): Always use target_stop_ptid and
2194 target_continue_ptid.
2195
2196 2014-09-11 Tom Tromey <tromey@redhat.com>
2197 Gary Benson <gbenson@redhat.com>
2198
2199 * target/target.h: New file.
2200 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2201 * target.h: Include target/target.h.
2202 (target_read_memory, target_write_memory): Don't declare.
2203 * target.c (target_read_uint32): New function.
2204 * common/agent.c: Include target/target.h.
2205 [!GDBSERVER]: Don't include target.h.
2206 (helper_thread_id): Type changed to uint32_t.
2207 (agent_get_helper_thread_id): Use target_read_uint32.
2208 (agent_run_command): Always use target_read_memory and
2209 target_write_memory.
2210 (agent_capability): Type changed to uint32_t.
2211 (agent_capability_check): Use target_read_uint32.
2212
2213 2014-09-11 Gary Benson <gbenson@redhat.com>
2214
2215 * common/common-debug.h (show_debug_regs): Declare.
2216 * common/common-debug.c (show_debug_regs): Define.
2217 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2218 all uses with show_debug_regs. Replace all uses that considered
2219 debug_hw_points as a multi-value integer with straight boolean
2220 uses.
2221 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2222 with show_debug_regs.
2223 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2224 all uses with show_debug_regs.
2225 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2226 uses with show_debug_regs.
2227
2228 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2229
2230 * findvar.c (address_from_register): Handle targets requiring
2231 a special conversion routine even for plain pointer types.
2232
2233 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2234
2235 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2236 (store_register): Do not call exec_one_dummy_insn.
2237
2238 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2239
2240 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2241 dereference it first. Use value_enclosing_type instead of
2242 value_type.
2243 (ada_array_length): Likewise.
2244
2245 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2246
2247 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2248 Adjust function implementation and documentation accordingly.
2249 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2250 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2251 Update call to ada_value_ptr_subscript.
2252
2253 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2254
2255 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2256 instead of VAL's type.
2257
2258 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2259
2260 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2261
2262 2014-09-09 Doug Evans <xdje42@gmail.com>
2263
2264 PR guile/17367
2265 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2266 last parameter to pkg-config, not first.
2267 * configure.ac: Pass --with-guile provided pkg-config path to
2268 GDB_GUILE_PROGRAM_NAMES.
2269 * configure: Regenerate.
2270
2271 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2272
2273 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2274 Bertazi".
2275
2276 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2277
2278 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2279 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2280 the list of sections determining GDB_OSABI_IRIX.
2281
2282 2014-09-09 James Hogan <james.hogan@imgtec.com>
2283
2284 * MAINTAINERS (Write After Approval): Add "James Hogan".
2285
2286 2014-09-09 James Hogan <james.hogan@imgtec.com>
2287
2288 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2289
2290 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2291
2292 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2293
2294 2014-09-08 Doug Evans <xdje42@gmail.com>
2295
2296 PR 17247
2297 * guile.c: #include <signal.h>.
2298 (_initialize_guile): Block SIGCHLD while initializing Guile.
2299
2300 Replaces the following, which is reverted.
2301
2302 2014-07-26 Doug Evans <xdje42@gmail.com>
2303
2304 PR 17185
2305 * configure.ac: Add check for header gc/gc.h.
2306 Add check for function setenv.
2307 * configure: Regenerate.
2308 * config.in: Regenerate.
2309 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2310
2311 2014-09-08 Doug Evans <xdje42@gmail.com>
2312
2313 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2314 with named constant. Fix style of pointer comparison.
2315 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2316
2317 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2318
2319 PR gdb/17035
2320 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2321 decide whether we display the command on "show user".
2322 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2323 printing command name.
2324 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2325 * cli/cli-decode.c (cli_user_command_p): Create helper function
2326 to verify whether cmd_list_element is a user-defined command.
2327
2328 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2329
2330 PR python/17355
2331 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2332 Fix goto out of TRY_CATCH.
2333
2334 2014-09-06 Doug Evans <xdje42@gmail.com>
2335 Tom Tromey <tromey@redhat.com>
2336
2337 PR 15276
2338 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2339 $_any_caller_matches.
2340 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2341 * python/lib/gdb/function/caller_is.py: New file.
2342
2343 2014-09-06 Doug Evans <xdje42@gmail.com>
2344
2345 * infcmd.c (program_info): Fix typo.
2346
2347 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2348
2349 PR gdb/17235
2350 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2351 'number'. New variable 'has_digit'. Rewrite code to deal with
2352 subexpressions on SDT probes.
2353
2354 2014-09-04 Pedro Alves <palves@redhat.com>
2355
2356 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2357 the input is only one character long.
2358
2359 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2360
2361 PR fortran/17237
2362 * f-valprint.c (f_val_print): Specify the correct print option to
2363 use when printing integer values.
2364
2365 2014-09-04 Gary Benson <gbenson@redhat.com>
2366
2367 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2368 Remove code to cope with LWPs wrapped as PIDs.
2369 Add assertions to ensure no wrapped LWPs are passed.
2370
2371 2014-09-04 Pedro Alves <palves@redhat.com>
2372
2373 * value.c (value_ranges_copy_adjusted): New function, factored out
2374 from ...
2375 (value_contents_copy_raw): ... here.
2376 (unpack_value_bits_as_long_1): Rename back to ...
2377 (unpack_bits_as_long): ... this. Remove 'original_value' and
2378 'result' parameters. Change return type to LONGEST.
2379 (unpack_value_bits_as_long): Delete.
2380 (unpack_value_field_as_long_1): Delete.
2381 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2382 (unpack_value_bitfield): New function.
2383 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2384 (value_fetch_lazy): Use unpack_value_bitfield.
2385 * value.h (unpack_value_bits_as_long): Delete declaration.
2386
2387 2014-09-03 Sasha Smundak <asmundak@google.com>
2388
2389 * python/py-frame.c (frapy_read_register): New function.
2390
2391 2014-09-03 James Hogan <james.hogan@imgtec.com>
2392
2393 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2394 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2395
2396 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2397
2398 PR python/16699
2399 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2400 function.
2401 (add_cmd): Set "completer_handle_brkchars" to NULL.
2402 * cli/cli-decode.h (struct cmd_list_element)
2403 <completer_handle_brkchars>: New field.
2404 * command.h (completer_ftype_void): New typedef.
2405 (set_cmd_completer_handle_brkchars): New prototype.
2406 * completer.c (set_gdb_completion_word_break_characters): New
2407 function.
2408 (complete_line_internal): Call "completer_handle_brkchars"
2409 callback from command.
2410 * completer.h: Include "command.h".
2411 (set_gdb_completion_word_break_characters): New prototype.
2412 * python/py-cmd.c (cmdpy_completer_helper): New function.
2413 (cmdpy_completer_handle_brkchars): New function.
2414 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2415 (cmdpy_init): Set completer_handle_brkchars to
2416 cmdpy_completer_handle_brkchars.
2417
2418 2014-09-03 Gary Benson <gbenson@redhat.com>
2419
2420 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2421 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2422 Loop conditions changed to equivalent form.
2423 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2424 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2425 ALL_DEBUG_ADDRESS_REGISTERS.
2426
2427 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2428
2429 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2430 description fix.
2431
2432 2014-09-02 Doug Evans <dje@google.com>
2433
2434 * typeprint.c (find_global_typedef): Fix comment.
2435
2436 2014-09-02 Gary Benson <gbenson@redhat.com>
2437
2438 * i386-nat.h: Renamed as...
2439 * x86-nat.h: New file. All type, function and variable name
2440 prefixes changed from "i386_" to "x86_". All references updated.
2441 * i386-nat.c: Renamed as...
2442 * x86-nat.c: New file. All type, function and variable name
2443 prefixes changed from "i386_" to "x86_". All references updated.
2444 * common/i386-xstate.h: Renamed as...
2445 * common/x86-xstate.h: New file. All type, function and variable
2446 name prefixes changed from "i386_" to "x86_". All references
2447 updated.
2448 * nat/i386-cpuid.h: Renamed as...
2449 * nat/x86-cpuid.h: New file. All type, function and variable name
2450 prefixes changed from "i386_" to "x86_". All references updated.
2451 * nat/i386-gcc-cpuid.h: Renamed as...
2452 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2453 name prefixes changed from "i386_" to "x86_". All references
2454 updated.
2455 * nat/i386-dregs.h: Renamed as...
2456 * nat/x86-dregs.h: New file. All type, function and variable name
2457 prefixes changed from "i386_" to "x86_". All references updated.
2458 * nat/i386-dregs.c: Renamed as...
2459 * nat/x86-dregs.c: New file. All type, function and variable name
2460 prefixes changed from "i386_" to "x86_". All references updated.
2461
2462 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2463
2464 * varobj.c (_initialize_varobj): Move to the end of file.
2465
2466 2014-08-29 Gary Benson <gbenson@redhat.com>
2467
2468 * common/common-exceptions.h: New file.
2469 * common/common-exceptions.c: Likewise.
2470 * Makefile.in (SFILES): Add common/common-exceptions.c.
2471 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2472 (COMMON_OBS): Add common-exceptions.o.
2473 (common-exceptions.o): New rule.
2474 * exceptions.h (common-exceptions.h): Include.
2475 (gdb_setjmp.h): Do not include.
2476 (return_reason): Moved to common-exceptions.h.
2477 (enum return_reason): Likewise.
2478 (RETURN_MASK): Likewise.
2479 (typedef return_mask): Likewise.
2480 (enum errors): Likewise.
2481 (struct gdb_exception): Likewise.
2482 (exceptions_state_mc_init): Likewise.
2483 (exceptions_state_mc_action_iter): Likewise.
2484 (exceptions_state_mc_action_iter_1): Likewise.
2485 (TRY_CATCH): Likewise.
2486 (throw_exception): Likewise.
2487 (throw_verror): Likewise.
2488 (throw_vquit): Likewise.
2489 (throw_error): Likewise.
2490 (throw_quit): Likewise.
2491 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2492 (enum catcher_action): Likewise.
2493 (struct catcher): Likewise.
2494 (current_catcher): Likewise.
2495 (catcher_list_size): Likewise.
2496 (exceptions_state_mc_init): Likewise.
2497 (catcher_pop): Likewise.
2498 (exceptions_state_mc): Likewise.
2499 (exceptions_state_mc_action_iter): Likewise.
2500 (exceptions_state_mc_action_iter_1): Likewise.
2501 (throw_exception): Likewise.
2502 (exception_messages): Likewise.
2503 (exception_messages_size): Likewise.
2504 (throw_it): Likewise.
2505 (throw_verror): Likewise.
2506 (throw_vquit): Likewise.
2507 (throw_error): Likewise.
2508 (throw_quit): Likewise.
2509 (prepare_to_throw_exception): New function.
2510
2511 2014-08-29 Gary Benson <gbenson@redhat.com>
2512
2513 * common/gdb_setjmp.h: New file.
2514 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2515 * configure.ac: Move sigsetjmp check...
2516 * common/common.m4: ...here.
2517 * configure: Regenerate.
2518 * cp-support.c (SIGJMP_BUF): Delete.
2519 (SIGSETJMP): Likewise.
2520 (SIGLONGJMP): Likewise.
2521 * exceptions.h (gdb_setjmp.h): Include.
2522 (setjmp.h): Do not include.
2523 (EXCEPTIONS_SIGJMP_BUF): Delete.
2524 (EXCEPTIONS_SIGSETJMP): Likewise.
2525 (EXCEPTIONS_SIGLONGJMP): Likewise.
2526 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2527 from gdb_setjmp.h.
2528 * exceptions.c: Likewise.
2529
2530 2014-08-29 Gary Benson <gbenson@redhat.com>
2531
2532 * cleanups.h: Moved to...
2533 * common/cleanups.h: New file.
2534 * cleanups.c: Moved to...
2535 * common/cleanups.c: New file. Include common-defs.h and
2536 cleanups.h. Do not include defs.h.
2537 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2538 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2539 (cleanups.o): New rule.
2540
2541 2014-08-29 Gary Benson <gbenson@redhat.com>
2542
2543 * common/errors.h (internal_warning): New declaration.
2544 (internal_vwarning): Likewise.
2545 * common/errors.c (internal_warning): New function.
2546 * utils.h (internal_warning): Don't declare.
2547 (internal_vwarning): Likewise.
2548 * utils.c (internal_warning): Removed.
2549
2550 2014-08-29 Gary Benson <gbenson@redhat.com>
2551
2552 * main.c (captured_main): Use warning during startup.
2553 Prefix startup warning messages with command name.
2554
2555 2014-08-29 Gary Benson <gbenson@redhat.com>
2556
2557 * main.c (captured_main): Handle usage errors with error.
2558
2559 2014-08-29 Gary Benson <gbenson@redhat.com>
2560
2561 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2562 exit pair with a call to error. Wrap the message with _().
2563
2564 2014-08-29 Gary Benson <gbenson@redhat.com>
2565
2566 * main.c (captured_main): Replace a fprintf/exit
2567 pair with a call to error. Wrap the message with _().
2568
2569 2014-08-29 Gary Benson <gbenson@redhat.com>
2570
2571 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2572 pairs with calls to error. Wrap the message with _().
2573
2574 2014-08-29 Gary Benson <gbenson@redhat.com>
2575
2576 * utils.c (vwarning): Protect calls to target_terminal_ours
2577 and wrap_here.
2578
2579 2014-08-29 Gary Benson <gbenson@redhat.com>
2580
2581 * exceptions.c (print_flush): Protect calls to
2582 target_terminal_ours and wrap_here.
2583
2584 2014-08-29 Gary Benson <gbenson@redhat.com>
2585
2586 * utils.h (filtered_printing_initialized): New declaration.
2587 * utils.c (abort_with_message): New function.
2588 (internal_vproblem): Use abort_with_message for first level
2589 recursive internal problems, and if gdb_stderr is not set up.
2590 Protect calls to target_terminal_ours, begin_line and query.
2591
2592 2014-08-28 Doug Evans <dje@google.com>
2593
2594 * symtab.c (in_prologue): Move definition to better spot.
2595 (skip_prologue_using_sal): Ditto.
2596
2597 2014-08-28 Doug Evans <dje@google.com>
2598
2599 * symtab.c (find_function_start_sal): Move definition to better spot.
2600
2601 2014-08-28 Yao Qi <yao@codesourcery.com>
2602
2603 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2604 found_stack_adjust in forward scan. Remove condition check
2605 on found_stack_adjust which is always true. Indent the code.
2606
2607 2014-08-28 Yao Qi <yao@codesourcery.com>
2608
2609 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2610 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2611 (dwarf_decode_lines): Remove argument
2612 want_line_info. Remove condition check on want_line_info.
2613 Callers update.
2614
2615 2014-08-27 Doug Evans <dje@google.com>
2616
2617 * dwarf2read.c (dwarf_record_line): Fix typo.
2618
2619 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2620
2621 * target.h (struct target_ops::to_terminal_save_ours): Remove
2622 declaration.
2623 (target_terminal_save_ours): Remove macro.
2624 * target-delegates.c: Regenerate.
2625 * inf-child.c (inf_child_target): Don't set the nonexistent
2626 field to_terminal_save_ours.
2627 * inferior.h (child_terminal_save_ours): Remove declaration.
2628 * terminal.h (gdb_save_tty_state): New declaration.
2629 * inflow.c (child_terminal_save_ours): Rename to ...
2630 (gdb_save_tty_state): ... this.
2631 * tui/tui.c: Include terminal.h.
2632 (tui_enable): Use gdb_save_tty_state instead of
2633 target_terminal_save_ours.
2634 (tui_disable): Likewise.
2635
2636 2014-08-25 Doug Evans <dje@google.com>
2637
2638 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2639 Pass NULL instead of 0 for context pointer.
2640
2641 2014-08-25 Yao Qi <yao@codesourcery.com>
2642
2643 * dwarf2read.c: Fix grammatical error.
2644
2645 2014-08-24 Yao Qi <yao@codesourcery.com>
2646
2647 * dwarf2read.c (scan_partial_symbols): Update comments.
2648 Rename argument 'need_pc' with 'set_addrmap'.
2649 (add_partial_namespace): Rename argument 'need_pc' with
2650 'set_addrmap'.
2651 (add_partial_module): Likewise.
2652 (add_partial_subprogram): Likewise. Update comments.
2653 (dwarf2_name): Fix typo.
2654
2655 2014-08-22 Doug Evans <dje@google.com>
2656
2657 PR 17276
2658 * dwarf2read.c (dwarf_record_line_p): New function.
2659 (dwarf_decode_lines_1): Ignore subsequent line number entries
2660 for the same line if any entry had a non-zero discriminator.
2661
2662 2014-08-22 Doug Evans <dje@google.com>
2663
2664 * buildsym.h (record_line_ftype): New typedef.
2665 (record_line): Use it.
2666 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2667 (dwarf_decode_lines_1): Call them.
2668
2669 2014-08-22 Yao Qi <yao@codesourcery.com>
2670
2671 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2672 (ctf_end): Remove code.
2673
2674 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2675
2676 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2677 (linux_make_corefile_notes): call update_thread_list, protected against
2678 exceptions.
2679
2680 2014-08-21 Pedro Alves <palves@redhat.com>
2681
2682 * infcmd.c (attach_command): Remove comment.
2683
2684 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2685
2686 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2687 unsigned LONGEST to ULONGEST.
2688
2689 2014-08-20 Pedro Alves <palves@redhat.com>
2690
2691 * Makefile.in (check-read1): New rule.
2692
2693 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2694
2695 * value.c (value_from_contents_and_address): Strip resolved_type's
2696 typedef layers before checking its TYPE_DATA_LOCATION.
2697
2698 2014-08-20 Pedro Alves <palves@redhat.com>
2699
2700 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2701
2702 2014-08-20 Yao Qi <yao@codesourcery.com>
2703
2704 * amd64-tdep.c (amd64_classify): Add a blank line after the
2705 example. Move "*/" to a new line.
2706 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2707 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2708 * dwarf2read.c (psymtab_include_file_name): Likewise.
2709
2710 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2711 Pedro Alves <palves@redhat.com>
2712
2713 PR symtab/14604
2714 PR symtab/14605
2715 * ada-lang.c (coerce_unspec_val_to_type): Use
2716 value_contents_copy_raw.
2717 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2718 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2719 * cp-valprint.c (cp_print_value_fields): Let the common printing
2720 code handle optimized out values.
2721 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2722 * d-valprint.c (dynamic_array_type): Use
2723 value_bits_any_optimized_out.
2724 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2725 check_any_valid fields.
2726 (check_pieced_value_bits): Delete and inline ...
2727 (check_pieced_synthetic_pointer): ... here.
2728 (check_pieced_value_validity): Delete.
2729 (check_pieced_value_invalid): Delete.
2730 (pieced_value_funcs): Remove check_validity and check_any_valid
2731 fields.
2732 (read_pieced_value): Use mark_value_bits_optimized_out.
2733 (write_pieced_value): Switch to use
2734 mark_value_bytes_optimized_out.
2735 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2736 of assuming the whole value is optimized out.
2737 * findvar.c (read_frame_register_value): Remove special handling
2738 of optimized out registers.
2739 (value_from_register): Use mark_value_bytes_optimized_out.
2740 * frame-unwind.c (frame_unwind_got_optimized): Use
2741 mark_value_bytes_optimized_out.
2742 * jv-valprint.c (java_value_print): Adjust.
2743 (java_print_value_fields): Let the common printing code handle
2744 optimized out values.
2745 * mips-tdep.c (mips_print_register): Remove special handling of
2746 optimized out registers.
2747 * opencl-lang.c (lval_func_check_validity): Delete.
2748 (lval_func_check_any_valid): Delete.
2749 (opencl_value_funcs): Remove check_validity and check_any_valid
2750 fields.
2751 * p-valprint.c (pascal_object_print_value_fields): Let the common
2752 printing code handle optimized out values.
2753 * stack.c (read_frame_arg): Remove special handling of optimized
2754 out values. Fetch both VAL and ENTRYVAL before comparing
2755 contents. Adjust to value_available_contents_eq rename.
2756 * valprint.c (valprint_check_validity)
2757 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2758 (val_print_array_elements): Adjust.
2759 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2760 (value_bits_any_optimized_out): New function.
2761 (value_entirely_covered_by_range_vector): New function, factored
2762 out from value_entirely_unavailable.
2763 (value_entirely_unavailable): Reimplement.
2764 (value_entirely_optimized_out): New function.
2765 (insert_into_bit_range_vector): New function, factored out from
2766 mark_value_bits_unavailable.
2767 (mark_value_bits_unavailable): Reimplement.
2768 (struct ranges_and_idx): New struct.
2769 (find_first_range_overlap_and_match): New function, factored out
2770 from value_available_contents_bits_eq.
2771 (value_available_contents_bits_eq): Rename to ...
2772 (value_contents_bits_eq): ... this. Check both unavailable
2773 contents and optimized out contents.
2774 (value_available_contents_eq): Rename to ...
2775 (value_contents_eq): ... this.
2776 (allocate_value_lazy): Remove reference to the old optimized_out
2777 boolean.
2778 (allocate_optimized_out_value): Use
2779 mark_value_bytes_optimized_out.
2780 (require_not_optimized_out): Adjust to check whether the
2781 optimized_out vec is empty.
2782 (ranges_copy_adjusted): New function, factored out from
2783 value_contents_copy_raw.
2784 (value_contents_copy_raw): Also copy the optimized out ranges.
2785 Assert the destination ranges aren't optimized out.
2786 (value_contents_copy): Update comment, remove call to
2787 require_not_optimized_out.
2788 (value_contents_equal): Adjust to check whether the optimized_out
2789 vec is empty.
2790 (set_value_optimized_out, value_optimized_out_const): Delete.
2791 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2792 New functions.
2793 (value_entirely_optimized_out, value_bits_valid): Delete.
2794 (value_copy): Take a VEC copy of the 'optimized_out' field.
2795 (value_primitive_field): Remove special handling of optimized out.
2796 (value_fetch_lazy): Assert that lazy values have no unavailable
2797 regions. Use value_bits_any_optimized_out. Remove some special
2798 handling for optimized out values.
2799 * value.h: Add intro comment about <optimized out> and
2800 <unavailable>.
2801 (struct lval_funcs): Remove check_validity and check_any_valid
2802 fields.
2803 (set_value_optimized_out, value_optimized_out_const): Remove.
2804 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2805 New declarations.
2806 (value_bits_any_optimized_out): New declaration.
2807 (value_bits_valid): Delete declaration.
2808 (value_available_contents_eq): Rename to ...
2809 (value_contents_eq): ... this, and extend comments.
2810
2811 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2812
2813 Fix -fsanitize=address on unreadable inferior strings.
2814 * valprint.c (val_print_string): Fix access before BUFFER.
2815
2816 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2817
2818 * target.c (target_struct_size): Remove.
2819 (target_struct_allocsize): Remove.
2820 (DEFAULT_ALLOCSIZE): Remove.
2821 (target_ops_p): New typedef.
2822 (DEF_VEC_P (target_ops_p)): New vector type.
2823 (target_structs): Change type to VEC (target_ops_p).
2824 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2825 (find_default_run_target): Rewrite for loop following changes to
2826 target_structs.
2827
2828 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2829
2830 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2831 Adjust code accordingly. Adjust function description comment.
2832
2833 2014-08-19 Yao Qi <yao@codesourcery.com>
2834
2835 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2836 types.
2837
2838 2014-08-19 Alan Modra <amodra@gmail.com>
2839
2840 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2841 * config.in: Regenerate.
2842 * configure: Regenerate.
2843
2844 2014-08-19 Tom Tromey <tromey@redhat.com>
2845 Gary Benson <gbenson@redhat.com>
2846
2847 * common/common-debug.h: New file.
2848 * common/common-debug.c: Likewise.
2849 * debug.c: Likewise.
2850 * Makefile.in (SFILES): Add common/common-debug.c.
2851 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2852 (COMMON_OBS): Add common-debug.o and debug.o.
2853 (common-debug.o): New rule.
2854 * common/common-defs.h: Include common-debug.h.
2855 * common/agent.c (debug_agent_printf): New function.
2856 (DEBUG_AGENT): Redefine.
2857 * nat/i386-dregs.c (debug_printf): Undefine.
2858
2859 2014-08-19 Gary Benson <gbenson@redhat.com>
2860
2861 * common/common-defs.h: Include print-utils.h.
2862 * utils.h: Do not include print-utils.h.
2863
2864 2014-08-19 Tom Tromey <tromey@redhat.com>
2865 Gary Benson <gbenson@redhat.com>
2866
2867 * common/common-types.h: New file.
2868 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2869 * common/common-defs.h: Include common-types.h.
2870 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2871 (ULONGEST): Remove.
2872
2873 2014-08-19 Tom Tromey <tromey@redhat.com>
2874 Gary Benson <gbenson@redhat.com>
2875
2876 * common/errors.h: New file.
2877 * common/errors.c: Likewise.
2878 * Makefile.in (SFILES): Add common/errors.c.
2879 (HFILES_NO_SRCDIR): Add common/errors.h.
2880 (COMMON_OBS): Add errors.o.
2881 (errors.o): New rule.
2882 * common/common-defs.h: Include errors.h.
2883 * utils.h (perror_with_name, error, verror, warning, vwarning):
2884 Don't declare.
2885 * common/common-utils.h: (malloc_failure, internal_error):
2886 Likewise.
2887
2888 2014-08-19 Gary Benson <gbenson@redhat.com>
2889
2890 * utils.c (internal_vproblem): Always print the message.
2891
2892 2014-08-18 Doug Evans <dje@google.com>
2893
2894 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2895
2896 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2897
2898 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2899 Return 0 if TYPE is dynamic.
2900 (print_range): Add handling of dynamic ranges.
2901
2902 2014-08-18 Keven Boell <keven.boell@intel.com>
2903 Joel Brobecker <brobecker@adacore.com>
2904
2905 * gdbtypes.h (struct main_type): Add field "data_location".
2906 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2907 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2908 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2909 a dynamic data location.
2910 (resolve_dynamic_type): Add DW_AT_data_location handling.
2911 (copy_recursive, copy_type): Copy the data_location information
2912 when present.
2913 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2914 * value.c (value_from_contents_and_address): Add
2915 DW_AT_data_location handling.
2916
2917 2014-08-18 Keven Boell <keven.boell@intel.com>
2918 Joel Brobecker <brobecker@adacore.com>
2919
2920 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2921 field "get_object_address".
2922 * dwarf2expr.c (execute_stack_op): Add handling for
2923 DW_OP_push_object_address.
2924 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2925 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2926 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2927 (dwarf_expr_get_obj_addr): New function.
2928 (dwarf_expr_ctx_funcs): Add get_object_address field.
2929 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2930 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2931 (dwarf2_evaluate_property): Add parameter "address". Use it.
2932 (needs_get_obj_addr): New function.
2933 (needs_frame_ctx_funcs): Add get_object_address field.
2934 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2935 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2936 (resolve_dynamic_array): Likewise.
2937
2938 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2939
2940 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2941 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2942 fixed value for records and unions for which some GNAT encodings
2943 are present.
2944
2945 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2946
2947 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2948 rewrite to avoid "else if" and "else" constructs. Should be
2949 a no-op in practice.
2950
2951 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2952
2953 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2954 of lexical block.
2955
2956 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2957
2958 PR c++/17132
2959 * eval.c: Update all calls to find_overload_match.
2960 * valarith.c: Likewise.
2961 (value_user_defined_cpp_op, value_user_defined_op): New
2962 argument NOSIDE. Update all callers.
2963 * valops.c (find_overload_match): New argument NOSIDE.
2964 * value.h (find_overload_match): Update signature.
2965
2966 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2967
2968 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2969 'items' methods instead of 'iteritems' method on dictionaries.
2970
2971 2014-08-15 Doug Evans <dje@google.com>
2972
2973 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2974 closer to use.
2975
2976 2014-08-15 Doug Evans <dje@google.com>
2977
2978 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2979
2980 2014-08-15 Doug Evans <dje@google.com>
2981
2982 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2983
2984 2014-08-15 Doug Evans <dje@google.com>
2985
2986 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2987 unused.
2988
2989 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2990
2991 * dcache.h: Include target.h, to avoid compile time warnings.
2992
2993 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2994
2995 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2996 frame_info" partial declaration.
2997 * gdbarch.h: Regenerate.
2998
2999 2014-08-15 Yao Qi <yao@codesourcery.com>
3000
3001 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3002 Add parameter 'decode_for_pst_p'. Callers update.
3003
3004 2014-08-13 Yao Qi <yao@codesourcery.com>
3005
3006 PR build/17104
3007 * configure.ac: Use local variable 'pos'.
3008 * configure: Regenerated.
3009
3010 2014-08-11 Doug Evans <dje@google.com>
3011
3012 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3013 message, it is redundant with "Reading symbols from ..." message.
3014
3015 2014-08-10 Doug Evans <xdje42@gmail.com>
3016
3017 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3018
3019 2014-08-09 Yao Qi <yao@codesourcery.com>
3020
3021 PR remote/9053
3022 * remote.c (remote_xfer_partial): Remove dead code.
3023
3024 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3025
3026 * ia64-linux-tdep.c: Include "regset.h".
3027 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3028 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3029 (ia64_linux_supply_fpregset): New function.
3030 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3031 (ia64_linux_regset_from_core_section): New function.
3032 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3033 method.
3034
3035 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3036
3037 * m68klinux-tdep.c: Include "regset.h".
3038 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3039 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3040 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3041 (m68k_linux_regset_from_core_section): New function.
3042 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3043 method.
3044
3045 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3046
3047 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3048 function. Move logic to...
3049 (tilegx_linux_regmap): ... this new register map.
3050 (tilegx_linux_regset): Refer to register map, replace supply
3051 method by regcache_supply_regset, and add collect method.
3052 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3053 TILEGX_FIRST_EASY_REGNUM.
3054
3055 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3056
3057 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3058 that calls regcache_supply_regset and handles the EPC register
3059 separately. Move main logic to...
3060 (score7_linux_gregmap): ... this new register map.
3061 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3062 (score7_linux_gregset): Refer to register map. Add collect method.
3063 (score7_linux_regset_from_core_section): Replace
3064 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3065 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3066 (struct regset): Delete unused forward declaraction.
3067 (struct pt_regs): Delete structure definition.
3068 (elf_gregset_t): Delete typedef.
3069
3070 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3071
3072 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3073 (nios2_core_regset): Add collect method.
3074
3075 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3076
3077 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3078 platform-independent and don't write to read-only input buffer.
3079 (m32r_linux_collect_gregset): New function.
3080 (m32r_linux_gregset): Add collect method.
3081
3082 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3083
3084 * hppa-linux-tdep.c (greg_map): Rename to...
3085 (hppa_linux_gregmap): ... this. Also convert to
3086 regcache_map_entry format.
3087 (hppa_linux_supply_regset): Delete function.
3088 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3089 (hppa_linux_fpregmap): ... this new register map.
3090 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3091 register map, replace supply method by regcache_supply_regset, and
3092 add collect method regcache_collect_regset.
3093
3094 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3095
3096 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3097 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3098 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3099 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3100 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3101 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3102 (frv_linux_supply_gregset): Replace main logic by call to
3103 regcache_supply_regset, but keep clearing gr32-gr63.
3104 (frv_linux_supply_fpregset): Delete function.
3105 (frv_linux_gregset): Refer to appropriate register map and add
3106 regcache_collect_regset as the collect method.
3107 (frv_linux_fpregset): Likewise. Also exchange the supply method
3108 by regcache_supply_regset.
3109
3110 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3111
3112 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3113 by call to alpha_supply_int_regs.
3114 (alpha_linux_collect_gregset): New function.
3115 (alpha_linux_supply_fpregset): Replace logic by call to
3116 alpha_supply_fp_regs.
3117 (alpha_linux_collect_fpregset): New function.
3118 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3119
3120 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3121
3122 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3123 by call to regcache_collect_regset.
3124 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3125 instead of aarch64_linux_supply_gregset/_fpregset.
3126 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3127 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3128 header file instead.
3129 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3130 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3131 functions. Move logic to ...
3132 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3133 register maps.
3134 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3135 refer to new register maps, replace *_regset_from_core by
3136 regcache_supply_regset, and also use regcache_collect_regset.
3137 * aarch64-linux-tdep.h: Include "regset.h".
3138 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3139 Delete prototypes.
3140 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3141 macros, moved from C source file.
3142 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3143 variable declarations.
3144
3145 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3146
3147 * s390-linux-nat.c: Include "regset.h".
3148 (regmap_gregset): Delete macro.
3149 (s390_64_regmap_gregset): New register map for
3150 regcache_supply/_collect_regset.
3151 (s390_64_gregset): New regset.
3152 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3153 (regmap_fpregset): Delete macro.
3154 (s390_native_supply, s390_native_collect): Delete functions.
3155 (supply_gregset, fill_gregset): Replace s390-specific regmap
3156 handling by a call to regcache_supply/_collect_regset.
3157 (supply_fpregset, fill_fpregset): Call regcache_supply/
3158 _collect_regset instead of s390_native_supply/_collect.
3159 (fetch_regset, store_regset): Likewise. Also change the last
3160 parameter to a regset instead of a regmap.
3161 (s390_linux_fetch_inferior_registers)
3162 (390_linux_store_inferior_registers): Adjust last parameter in
3163 calls to fetch_regset and store_regset.
3164 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3165 (s390_gregmap): ... this. Also make static const and convert to
3166 regcache_map_entry format.
3167 (s390x_regmap_gregset): Delete.
3168 (s390_regmap_fpregset): Rename to...
3169 (s390_fpregmap): ... this. Make static const and convert to
3170 regcache_map_entry format.
3171 (s390_regmap_upper, s390_regmap_last_break)
3172 (s390x_regmap_last_break, s390_regmap_system_call)
3173 (s390_regmap_tdb): Likewise.
3174 (s390_supply_regset, s390_collect_regset): Remove functions.
3175 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3176 s390_supply_regset.
3177 (s390_gregset, s390_fpregset, s390_upper_regset)
3178 (s390_last_break_regset, s390x_last_break_regset)
3179 (s390_system_call_regset, s390_tdb_regset): Make global and
3180 replace s390_supply/_collect_regset by regcache_supply/
3181 _collect_regset.
3182 (s390x_gregset): Delete.
3183 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3184 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3185 (s390_regmap_fpregset, s390_regmap_last_break)
3186 (s390x_regmap_last_break, s390_regmap_system_call)
3187 (s390_regmap_tdb): Delete global variable declarations.
3188 (s390_gregset, s390_fpregset, s390_last_break_regset)
3189 (s390x_last_break_regset, s390_system_call_regset)
3190 (s390_tdb_regset): New global variable declarations.
3191
3192 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3193
3194 * regcache.c: Include "regset.h".
3195 (regcache_transfer_regset): New local function.
3196 (regcache_supply_regset, regcache_collect_regset): New functions.
3197 * regcache.h (struct regcache_map_entry): New structure.
3198 (REGCACHE_MAP_SKIP): New enum value.
3199 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3200
3201 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3202
3203 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3204 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3205 (ppc_linux_collect_gregset ): Likewise.
3206 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3207 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3208 (ppc_collect_vrregset): Likewise.
3209 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3210 Likewise.
3211
3212 2014-08-07 Yao Qi <yao@codesourcery.com>
3213
3214 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3215 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3216 * remote.c (remote_read_bytes): Likewise.
3217
3218 2014-08-07 Yao Qi <yao@codesourcery.com>
3219
3220 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3221
3222 2014-08-07 Yao Qi <yao@codesourcery.com>
3223
3224 PR remote/17230
3225 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3226 TARGET_XFER_OK instead of 0.
3227
3228 2014-08-07 Gary Benson <gbenson@redhat.com>
3229
3230 * common/common-defs.h: Include errno.h.
3231 * defs.h: Do not include errno.h.
3232 * ada-typeprint.c: Likewise.
3233 * c-typeprint.c: Likewise.
3234 * core-regset.c: Likewise.
3235 * corefile.c: Likewise.
3236 * corelow.c: Likewise.
3237 * event-loop.c: Likewise.
3238 * f-typeprint.c: Likewise.
3239 * gnu-nat.c: Likewise.
3240 * go32-nat.c: Likewise.
3241 * i386gnu-nat.c: Likewise.
3242 * m2-typeprint.c: Likewise.
3243 * nat/linux-btrace.c: Likewise.
3244 * p-typeprint.c: Likewise.
3245 * procfs.c: Likewise.
3246 * remote-sim.c: Likewise.
3247 * rs6000-nat.c: Likewise.
3248 * target.c: Likewise.
3249 * typeprint.c: Likewise.
3250 * ui-file.c: Likewise.
3251 * valops.c: Likewise.
3252 * valprint.c: Likewise.
3253
3254 2014-08-07 Gary Benson <gbenson@redhat.com>
3255
3256 * common/common-defs.h: Include string.h.
3257 * aarch64-tdep.c: Do not include string.h.
3258 * ada-exp.y: Likewise.
3259 * ada-lang.c: Likewise.
3260 * ada-lex.l: Likewise.
3261 * ada-typeprint.c: Likewise.
3262 * ada-valprint.c: Likewise.
3263 * aix-thread.c: Likewise.
3264 * alpha-linux-tdep.c: Likewise.
3265 * alpha-mdebug-tdep.c: Likewise.
3266 * alpha-nat.c: Likewise.
3267 * alpha-osf1-tdep.c: Likewise.
3268 * alpha-tdep.c: Likewise.
3269 * alphanbsd-tdep.c: Likewise.
3270 * amd64-dicos-tdep.c: Likewise.
3271 * amd64-linux-tdep.c: Likewise.
3272 * amd64-nat.c: Likewise.
3273 * amd64-sol2-tdep.c: Likewise.
3274 * amd64fbsd-tdep.c: Likewise.
3275 * amd64obsd-tdep.c: Likewise.
3276 * arch-utils.c: Likewise.
3277 * arm-linux-nat.c: Likewise.
3278 * arm-linux-tdep.c: Likewise.
3279 * arm-tdep.c: Likewise.
3280 * arm-wince-tdep.c: Likewise.
3281 * armbsd-tdep.c: Likewise.
3282 * armnbsd-nat.c: Likewise.
3283 * armnbsd-tdep.c: Likewise.
3284 * armobsd-tdep.c: Likewise.
3285 * avr-tdep.c: Likewise.
3286 * ax-gdb.c: Likewise.
3287 * ax-general.c: Likewise.
3288 * bcache.c: Likewise.
3289 * bfin-tdep.c: Likewise.
3290 * breakpoint.c: Likewise.
3291 * build-id.c: Likewise.
3292 * buildsym.c: Likewise.
3293 * c-exp.y: Likewise.
3294 * c-lang.c: Likewise.
3295 * c-typeprint.c: Likewise.
3296 * c-valprint.c: Likewise.
3297 * charset.c: Likewise.
3298 * cli-out.c: Likewise.
3299 * cli/cli-cmds.c: Likewise.
3300 * cli/cli-decode.c: Likewise.
3301 * cli/cli-dump.c: Likewise.
3302 * cli/cli-interp.c: Likewise.
3303 * cli/cli-logging.c: Likewise.
3304 * cli/cli-script.c: Likewise.
3305 * cli/cli-setshow.c: Likewise.
3306 * cli/cli-utils.c: Likewise.
3307 * coffread.c: Likewise.
3308 * common/agent.c: Likewise.
3309 * common/buffer.c: Likewise.
3310 * common/buffer.h: Likewise.
3311 * common/common-utils.c: Likewise.
3312 * common/filestuff.c: Likewise.
3313 * common/filestuff.c: Likewise.
3314 * common/format.c: Likewise.
3315 * common/print-utils.c: Likewise.
3316 * common/rsp-low.c: Likewise.
3317 * common/signals.c: Likewise.
3318 * common/vec.h: Likewise.
3319 * common/xml-utils.c: Likewise.
3320 * core-regset.c: Likewise.
3321 * corefile.c: Likewise.
3322 * corelow.c: Likewise.
3323 * cp-abi.c: Likewise.
3324 * cp-name-parser.y: Likewise.
3325 * cp-support.c: Likewise.
3326 * cp-valprint.c: Likewise.
3327 * cris-tdep.c: Likewise.
3328 * d-exp.y: Likewise.
3329 * darwin-nat.c: Likewise.
3330 * dbxread.c: Likewise.
3331 * dcache.c: Likewise.
3332 * demangle.c: Likewise.
3333 * dicos-tdep.c: Likewise.
3334 * disasm.c: Likewise.
3335 * doublest.c: Likewise.
3336 * dsrec.c: Likewise.
3337 * dummy-frame.c: Likewise.
3338 * dwarf2-frame.c: Likewise.
3339 * dwarf2loc.c: Likewise.
3340 * dwarf2read.c: Likewise.
3341 * elfread.c: Likewise.
3342 * environ.c: Likewise.
3343 * eval.c: Likewise.
3344 * event-loop.c: Likewise.
3345 * exceptions.c: Likewise.
3346 * exec.c: Likewise.
3347 * expprint.c: Likewise.
3348 * f-exp.y: Likewise.
3349 * f-lang.c: Likewise.
3350 * f-typeprint.c: Likewise.
3351 * f-valprint.c: Likewise.
3352 * fbsd-nat.c: Likewise.
3353 * findcmd.c: Likewise.
3354 * findvar.c: Likewise.
3355 * fork-child.c: Likewise.
3356 * frame.c: Likewise.
3357 * frv-linux-tdep.c: Likewise.
3358 * frv-tdep.c: Likewise.
3359 * gdb.c: Likewise.
3360 * gdb_bfd.c: Likewise.
3361 * gdbarch.c: Likewise.
3362 * gdbarch.sh: Likewise.
3363 * gdbtypes.c: Likewise.
3364 * gnu-nat.c: Likewise.
3365 * gnu-v2-abi.c: Likewise.
3366 * gnu-v3-abi.c: Likewise.
3367 * go-exp.y: Likewise.
3368 * go-lang.c: Likewise.
3369 * go32-nat.c: Likewise.
3370 * guile/guile.c: Likewise.
3371 * guile/scm-auto-load.c: Likewise.
3372 * hppa-hpux-tdep.c: Likewise.
3373 * hppa-linux-nat.c: Likewise.
3374 * hppanbsd-tdep.c: Likewise.
3375 * hppaobsd-tdep.c: Likewise.
3376 * i386-cygwin-tdep.c: Likewise.
3377 * i386-dicos-tdep.c: Likewise.
3378 * i386-linux-tdep.c: Likewise.
3379 * i386-nto-tdep.c: Likewise.
3380 * i386-sol2-tdep.c: Likewise.
3381 * i386-tdep.c: Likewise.
3382 * i386bsd-tdep.c: Likewise.
3383 * i386gnu-nat.c: Likewise.
3384 * i386nbsd-tdep.c: Likewise.
3385 * i386obsd-tdep.c: Likewise.
3386 * i387-tdep.c: Likewise.
3387 * ia64-libunwind-tdep.c: Likewise.
3388 * ia64-linux-nat.c: Likewise.
3389 * inf-child.c: Likewise.
3390 * inf-ptrace.c: Likewise.
3391 * inf-ttrace.c: Likewise.
3392 * infcall.c: Likewise.
3393 * infcmd.c: Likewise.
3394 * inflow.c: Likewise.
3395 * infrun.c: Likewise.
3396 * interps.c: Likewise.
3397 * iq2000-tdep.c: Likewise.
3398 * irix5-nat.c: Likewise.
3399 * jv-exp.y: Likewise.
3400 * jv-lang.c: Likewise.
3401 * jv-typeprint.c: Likewise.
3402 * jv-valprint.c: Likewise.
3403 * language.c: Likewise.
3404 * linux-fork.c: Likewise.
3405 * linux-nat.c: Likewise.
3406 * lm32-tdep.c: Likewise.
3407 * m2-exp.y: Likewise.
3408 * m2-typeprint.c: Likewise.
3409 * m32c-tdep.c: Likewise.
3410 * m32r-linux-nat.c: Likewise.
3411 * m32r-linux-tdep.c: Likewise.
3412 * m32r-rom.c: Likewise.
3413 * m32r-tdep.c: Likewise.
3414 * m68hc11-tdep.c: Likewise.
3415 * m68k-tdep.c: Likewise.
3416 * m68kbsd-tdep.c: Likewise.
3417 * m68klinux-nat.c: Likewise.
3418 * m68klinux-tdep.c: Likewise.
3419 * m88k-tdep.c: Likewise.
3420 * machoread.c: Likewise.
3421 * macrocmd.c: Likewise.
3422 * main.c: Likewise.
3423 * mdebugread.c: Likewise.
3424 * mem-break.c: Likewise.
3425 * memattr.c: Likewise.
3426 * memory-map.c: Likewise.
3427 * mep-tdep.c: Likewise.
3428 * mi/mi-cmd-break.c: Likewise.
3429 * mi/mi-cmd-disas.c: Likewise.
3430 * mi/mi-cmd-env.c: Likewise.
3431 * mi/mi-cmd-stack.c: Likewise.
3432 * mi/mi-cmd-var.c: Likewise.
3433 * mi/mi-cmds.c: Likewise.
3434 * mi/mi-console.c: Likewise.
3435 * mi/mi-getopt.c: Likewise.
3436 * mi/mi-interp.c: Likewise.
3437 * mi/mi-main.c: Likewise.
3438 * mi/mi-parse.c: Likewise.
3439 * microblaze-rom.c: Likewise.
3440 * microblaze-tdep.c: Likewise.
3441 * mingw-hdep.c: Likewise.
3442 * minidebug.c: Likewise.
3443 * minsyms.c: Likewise.
3444 * mips-irix-tdep.c: Likewise.
3445 * mips-linux-tdep.c: Likewise.
3446 * mips-tdep.c: Likewise.
3447 * mips64obsd-tdep.c: Likewise.
3448 * mipsnbsd-tdep.c: Likewise.
3449 * mipsread.c: Likewise.
3450 * mn10300-linux-tdep.c: Likewise.
3451 * mn10300-tdep.c: Likewise.
3452 * monitor.c: Likewise.
3453 * moxie-tdep.c: Likewise.
3454 * mt-tdep.c: Likewise.
3455 * nat/linux-btrace.c: Likewise.
3456 * nat/linux-osdata.c: Likewise.
3457 * nat/linux-procfs.c: Likewise.
3458 * nat/linux-ptrace.c: Likewise.
3459 * nat/linux-waitpid.c: Likewise.
3460 * nbsd-tdep.c: Likewise.
3461 * nios2-linux-tdep.c: Likewise.
3462 * nto-procfs.c: Likewise.
3463 * nto-tdep.c: Likewise.
3464 * objc-lang.c: Likewise.
3465 * objfiles.c: Likewise.
3466 * opencl-lang.c: Likewise.
3467 * osabi.c: Likewise.
3468 * osdata.c: Likewise.
3469 * p-exp.y: Likewise.
3470 * p-lang.c: Likewise.
3471 * p-typeprint.c: Likewise.
3472 * parse.c: Likewise.
3473 * posix-hdep.c: Likewise.
3474 * ppc-linux-nat.c: Likewise.
3475 * ppc-sysv-tdep.c: Likewise.
3476 * ppcfbsd-tdep.c: Likewise.
3477 * ppcnbsd-tdep.c: Likewise.
3478 * ppcobsd-tdep.c: Likewise.
3479 * printcmd.c: Likewise.
3480 * procfs.c: Likewise.
3481 * prologue-value.c: Likewise.
3482 * python/py-auto-load.c: Likewise.
3483 * python/py-gdb-readline.c: Likewise.
3484 * ravenscar-thread.c: Likewise.
3485 * regcache.c: Likewise.
3486 * registry.c: Likewise.
3487 * remote-fileio.c: Likewise.
3488 * remote-m32r-sdi.c: Likewise.
3489 * remote-mips.c: Likewise.
3490 * remote-notif.c: Likewise.
3491 * remote-sim.c: Likewise.
3492 * remote.c: Likewise.
3493 * reverse.c: Likewise.
3494 * rs6000-aix-tdep.c: Likewise.
3495 * ser-base.c: Likewise.
3496 * ser-go32.c: Likewise.
3497 * ser-mingw.c: Likewise.
3498 * ser-pipe.c: Likewise.
3499 * ser-tcp.c: Likewise.
3500 * ser-unix.c: Likewise.
3501 * serial.c: Likewise.
3502 * sh-tdep.c: Likewise.
3503 * sh64-tdep.c: Likewise.
3504 * shnbsd-tdep.c: Likewise.
3505 * skip.c: Likewise.
3506 * sol-thread.c: Likewise.
3507 * solib-dsbt.c: Likewise.
3508 * solib-frv.c: Likewise.
3509 * solib-osf.c: Likewise.
3510 * solib-som.c: Likewise.
3511 * solib-spu.c: Likewise.
3512 * solib-target.c: Likewise.
3513 * solib.c: Likewise.
3514 * somread.c: Likewise.
3515 * source.c: Likewise.
3516 * sparc-nat.c: Likewise.
3517 * sparc-sol2-tdep.c: Likewise.
3518 * sparc-tdep.c: Likewise.
3519 * sparc64-tdep.c: Likewise.
3520 * sparc64fbsd-tdep.c: Likewise.
3521 * sparc64nbsd-tdep.c: Likewise.
3522 * sparcnbsd-tdep.c: Likewise.
3523 * spu-linux-nat.c: Likewise.
3524 * spu-multiarch.c: Likewise.
3525 * spu-tdep.c: Likewise.
3526 * stabsread.c: Likewise.
3527 * stack.c: Likewise.
3528 * std-regs.c: Likewise.
3529 * symfile.c: Likewise.
3530 * symmisc.c: Likewise.
3531 * symtab.c: Likewise.
3532 * target.c: Likewise.
3533 * thread.c: Likewise.
3534 * tilegx-linux-nat.c: Likewise.
3535 * tilegx-tdep.c: Likewise.
3536 * top.c: Likewise.
3537 * tracepoint.c: Likewise.
3538 * tui/tui-command.c: Likewise.
3539 * tui/tui-data.c: Likewise.
3540 * tui/tui-disasm.c: Likewise.
3541 * tui/tui-file.c: Likewise.
3542 * tui/tui-layout.c: Likewise.
3543 * tui/tui-out.c: Likewise.
3544 * tui/tui-regs.c: Likewise.
3545 * tui/tui-source.c: Likewise.
3546 * tui/tui-stack.c: Likewise.
3547 * tui/tui-win.c: Likewise.
3548 * tui/tui-windata.c: Likewise.
3549 * tui/tui-winsource.c: Likewise.
3550 * typeprint.c: Likewise.
3551 * ui-file.c: Likewise.
3552 * ui-out.c: Likewise.
3553 * user-regs.c: Likewise.
3554 * utils.c: Likewise.
3555 * v850-tdep.c: Likewise.
3556 * valarith.c: Likewise.
3557 * valops.c: Likewise.
3558 * valprint.c: Likewise.
3559 * value.c: Likewise.
3560 * varobj.c: Likewise.
3561 * vax-tdep.c: Likewise.
3562 * vaxnbsd-tdep.c: Likewise.
3563 * vaxobsd-tdep.c: Likewise.
3564 * windows-nat.c: Likewise.
3565 * xcoffread.c: Likewise.
3566 * xml-support.c: Likewise.
3567 * xstormy16-tdep.c: Likewise.
3568 * xtensa-linux-nat.c: Likewise.
3569
3570 2014-08-07 Gary Benson <gbenson@redhat.com>
3571
3572 * common/common-defs.h: Include gdb_assert.h.
3573 * aarch64-tdep.c: Do not include gdb_assert.h.
3574 * addrmap.c: Likewise.
3575 * aix-thread.c: Likewise.
3576 * alpha-linux-tdep.c: Likewise.
3577 * alpha-mdebug-tdep.c: Likewise.
3578 * alphanbsd-tdep.c: Likewise.
3579 * amd64-nat.c: Likewise.
3580 * amd64-tdep.c: Likewise.
3581 * amd64bsd-nat.c: Likewise.
3582 * amd64fbsd-nat.c: Likewise.
3583 * amd64fbsd-tdep.c: Likewise.
3584 * amd64nbsd-nat.c: Likewise.
3585 * amd64nbsd-tdep.c: Likewise.
3586 * amd64obsd-nat.c: Likewise.
3587 * amd64obsd-tdep.c: Likewise.
3588 * arch-utils.c: Likewise.
3589 * arm-tdep.c: Likewise.
3590 * armbsd-tdep.c: Likewise.
3591 * auxv.c: Likewise.
3592 * bcache.c: Likewise.
3593 * bfin-tdep.c: Likewise.
3594 * blockframe.c: Likewise.
3595 * breakpoint.c: Likewise.
3596 * bsd-kvm.c: Likewise.
3597 * bsd-uthread.c: Likewise.
3598 * buildsym.c: Likewise.
3599 * c-exp.y: Likewise.
3600 * c-lang.c: Likewise.
3601 * charset.c: Likewise.
3602 * cleanups.c: Likewise.
3603 * cli-out.c: Likewise.
3604 * cli/cli-decode.c: Likewise.
3605 * cli/cli-dump.c: Likewise.
3606 * cli/cli-logging.c: Likewise.
3607 * cli/cli-script.c: Likewise.
3608 * cli/cli-utils.c: Likewise.
3609 * coffread.c: Likewise.
3610 * common/common-utils.c: Likewise.
3611 * common/queue.h: Likewise.
3612 * common/signals.c: Likewise.
3613 * common/vec.h: Likewise.
3614 * complaints.c: Likewise.
3615 * completer.c: Likewise.
3616 * corelow.c: Likewise.
3617 * cp-abi.c: Likewise.
3618 * cp-name-parser.y: Likewise.
3619 * cp-namespace.c: Likewise.
3620 * cp-support.c: Likewise.
3621 * cris-tdep.c: Likewise.
3622 * dbxread.c: Likewise.
3623 * dictionary.c: Likewise.
3624 * doublest.c: Likewise.
3625 * dsrec.c: Likewise.
3626 * dummy-frame.c: Likewise.
3627 * dwarf2-frame-tailcall.c: Likewise.
3628 * dwarf2-frame.c: Likewise.
3629 * dwarf2expr.c: Likewise.
3630 * dwarf2loc.c: Likewise.
3631 * dwarf2read.c: Likewise.
3632 * eval.c: Likewise.
3633 * event-loop.c: Likewise.
3634 * exceptions.c: Likewise.
3635 * expprint.c: Likewise.
3636 * f-valprint.c: Likewise.
3637 * fbsd-nat.c: Likewise.
3638 * findvar.c: Likewise.
3639 * frame-unwind.c: Likewise.
3640 * frame.c: Likewise.
3641 * frv-tdep.c: Likewise.
3642 * gcore.c: Likewise.
3643 * gdb-dlfcn.c: Likewise.
3644 * gdb_bfd.c: Likewise.
3645 * gdbarch.c: Likewise.
3646 * gdbarch.sh: Likewise.
3647 * gdbtypes.c: Likewise.
3648 * gnu-nat.c: Likewise.
3649 * gnu-v3-abi.c: Likewise.
3650 * go-lang.c: Likewise.
3651 * guile/scm-exception.c: Likewise.
3652 * guile/scm-gsmob.c: Likewise.
3653 * guile/scm-lazy-string.c: Likewise.
3654 * guile/scm-math.c: Likewise.
3655 * guile/scm-pretty-print.c: Likewise.
3656 * guile/scm-safe-call.c: Likewise.
3657 * guile/scm-utils.c: Likewise.
3658 * guile/scm-value.c: Likewise.
3659 * h8300-tdep.c: Likewise.
3660 * hppa-hpux-nat.c: Likewise.
3661 * hppa-tdep.c: Likewise.
3662 * hppanbsd-tdep.c: Likewise.
3663 * hppaobsd-tdep.c: Likewise.
3664 * i386-darwin-nat.c: Likewise.
3665 * i386-darwin-tdep.c: Likewise.
3666 * i386-nto-tdep.c: Likewise.
3667 * i386-tdep.c: Likewise.
3668 * i386bsd-nat.c: Likewise.
3669 * i386fbsd-tdep.c: Likewise.
3670 * i386gnu-nat.c: Likewise.
3671 * i386nbsd-tdep.c: Likewise.
3672 * i386obsd-tdep.c: Likewise.
3673 * i387-tdep.c: Likewise.
3674 * ia64-libunwind-tdep.c: Likewise.
3675 * ia64-tdep.c: Likewise.
3676 * inf-ptrace.c: Likewise.
3677 * inf-ttrace.c: Likewise.
3678 * infcall.c: Likewise.
3679 * infcmd.c: Likewise.
3680 * infrun.c: Likewise.
3681 * inline-frame.c: Likewise.
3682 * interps.c: Likewise.
3683 * jv-lang.c: Likewise.
3684 * jv-typeprint.c: Likewise.
3685 * linux-fork.c: Likewise.
3686 * linux-nat.c: Likewise.
3687 * linux-thread-db.c: Likewise.
3688 * m32c-tdep.c: Likewise.
3689 * m32r-linux-nat.c: Likewise.
3690 * m32r-tdep.c: Likewise.
3691 * m68k-tdep.c: Likewise.
3692 * m68kbsd-nat.c: Likewise.
3693 * m68kbsd-tdep.c: Likewise.
3694 * m88k-tdep.c: Likewise.
3695 * machoread.c: Likewise.
3696 * macroexp.c: Likewise.
3697 * macrotab.c: Likewise.
3698 * maint.c: Likewise.
3699 * mdebugread.c: Likewise.
3700 * memory-map.c: Likewise.
3701 * mep-tdep.c: Likewise.
3702 * mi/mi-common.c: Likewise.
3703 * microblaze-tdep.c: Likewise.
3704 * mingw-hdep.c: Likewise.
3705 * mips-linux-nat.c: Likewise.
3706 * mips-linux-tdep.c: Likewise.
3707 * mips-tdep.c: Likewise.
3708 * mips64obsd-tdep.c: Likewise.
3709 * mipsnbsd-tdep.c: Likewise.
3710 * mn10300-linux-tdep.c: Likewise.
3711 * mn10300-tdep.c: Likewise.
3712 * moxie-tdep.c: Likewise.
3713 * mt-tdep.c: Likewise.
3714 * nat/linux-btrace.c: Likewise.
3715 * nat/linux-osdata.c: Likewise.
3716 * nat/linux-ptrace.c: Likewise.
3717 * nat/mips-linux-watch.c: Likewise.
3718 * nios2-linux-tdep.c: Likewise.
3719 * nios2-tdep.c: Likewise.
3720 * objc-lang.c: Likewise.
3721 * objfiles.c: Likewise.
3722 * obsd-nat.c: Likewise.
3723 * opencl-lang.c: Likewise.
3724 * osabi.c: Likewise.
3725 * parse.c: Likewise.
3726 * ppc-linux-nat.c: Likewise.
3727 * ppc-sysv-tdep.c: Likewise.
3728 * ppcfbsd-nat.c: Likewise.
3729 * ppcfbsd-tdep.c: Likewise.
3730 * ppcnbsd-nat.c: Likewise.
3731 * ppcnbsd-tdep.c: Likewise.
3732 * ppcobsd-nat.c: Likewise.
3733 * ppcobsd-tdep.c: Likewise.
3734 * printcmd.c: Likewise.
3735 * procfs.c: Likewise.
3736 * prologue-value.c: Likewise.
3737 * psymtab.c: Likewise.
3738 * python/py-lazy-string.c: Likewise.
3739 * python/py-value.c: Likewise.
3740 * regcache.c: Likewise.
3741 * reggroups.c: Likewise.
3742 * registry.c: Likewise.
3743 * remote-sim.c: Likewise.
3744 * remote.c: Likewise.
3745 * rs6000-aix-tdep.c: Likewise.
3746 * rs6000-tdep.c: Likewise.
3747 * s390-linux-tdep.c: Likewise.
3748 * score-tdep.c: Likewise.
3749 * ser-base.c: Likewise.
3750 * ser-mingw.c: Likewise.
3751 * sh-tdep.c: Likewise.
3752 * sh64-tdep.c: Likewise.
3753 * solib-darwin.c: Likewise.
3754 * solib-spu.c: Likewise.
3755 * solib-svr4.c: Likewise.
3756 * source.c: Likewise.
3757 * sparc-nat.c: Likewise.
3758 * sparc-sol2-tdep.c: Likewise.
3759 * sparc-tdep.c: Likewise.
3760 * sparc64-sol2-tdep.c: Likewise.
3761 * sparc64-tdep.c: Likewise.
3762 * sparc64fbsd-tdep.c: Likewise.
3763 * sparc64nbsd-tdep.c: Likewise.
3764 * sparc64obsd-tdep.c: Likewise.
3765 * sparcnbsd-tdep.c: Likewise.
3766 * sparcobsd-tdep.c: Likewise.
3767 * spu-multiarch.c: Likewise.
3768 * spu-tdep.c: Likewise.
3769 * stabsread.c: Likewise.
3770 * stack.c: Likewise.
3771 * symfile.c: Likewise.
3772 * symtab.c: Likewise.
3773 * target-descriptions.c: Likewise.
3774 * target-memory.c: Likewise.
3775 * target.c: Likewise.
3776 * tic6x-linux-tdep.c: Likewise.
3777 * tic6x-tdep.c: Likewise.
3778 * tilegx-linux-nat.c: Likewise.
3779 * tilegx-tdep.c: Likewise.
3780 * top.c: Likewise.
3781 * tramp-frame.c: Likewise.
3782 * tui/tui-out.c: Likewise.
3783 * tui/tui-winsource.c: Likewise.
3784 * ui-out.c: Likewise.
3785 * user-regs.c: Likewise.
3786 * utils.c: Likewise.
3787 * v850-tdep.c: Likewise.
3788 * valops.c: Likewise.
3789 * value.c: Likewise.
3790 * varobj.c: Likewise.
3791 * vax-nat.c: Likewise.
3792 * xml-syscall.c: Likewise.
3793 * xml-tdesc.c: Likewise.
3794 * xstormy16-tdep.c: Likewise.
3795 * xtensa-linux-nat.c: Likewise.
3796 * xtensa-tdep.c: Likewise.
3797
3798 2014-08-07 Gary Benson <gbenson@redhat.com>
3799
3800 * common/common-defs.h: Include common-utils.h.
3801 * defs.h: Do not include common-utils.h.
3802 * common/gdb_assert.h: Likewise.
3803 * darwin-nat.h: Likewise.
3804 * nat/linux-btrace.c: Likewise.
3805 * target/waitstatus.h: Likewise.
3806
3807 2014-08-07 Gary Benson <gbenson@redhat.com>
3808
3809 * common/common-defs.h: Include ptid.h.
3810 * defs.h: Do not include ptid.h.
3811 * inferior.h: Likewise.
3812 * infrun.h: Likewise.
3813 * nat/linux-btrace.h: Likewise.
3814 * nat/linux-osdata.h: Likewise.
3815 * target/waitstatus.h: Likewise.
3816
3817 2014-08-07 Gary Benson <gbenson@redhat.com>
3818
3819 * common/common-defs.h: Include gdb_locale.h.
3820 * defs.h: Do not include gdb_locale.h.
3821
3822 2014-08-07 Gary Benson <gbenson@redhat.com>
3823
3824 * common/common-defs.h: Include gdb/signals.h.
3825 * defs.h: Do not include gdb/signals.h.
3826
3827 2014-08-07 Gary Benson <gbenson@redhat.com>
3828
3829 * common/common-defs.h: Include pathmax.h.
3830 * defs.h: Do not include pathmax.h.
3831
3832 2014-08-07 Gary Benson <gbenson@redhat.com>
3833
3834 * common/common-defs.h: Include libiberty.h.
3835 * defs.h: Do not include libiberty.h.
3836 * common/queue.h: Likewise.
3837 * cp-name-parser.y: Likewise.
3838 * mi/mi-cmd-catch.c: Likewise.
3839 * python/python.c: Likewise.
3840
3841 2014-08-07 Gary Benson <gbenson@redhat.com>
3842
3843 * common/common-defs.h: Include ansidecl.h.
3844 * defs.h: Do not include ansidecl.h.
3845 * common/buffer.h: Likewise.
3846 * common/common-utils.h: Likewise.
3847
3848 2014-08-07 Gary Benson <gbenson@redhat.com>
3849
3850 * common/common-defs.h: Include stddef.h.
3851 * defs.h: Do not include stddef.h.
3852 * common/common-utils.h: Likewise.
3853 * amd64fbsd-nat.c: Likewise.
3854 * bcache.c: Likewise.
3855 * charset.c: Likewise.
3856 * common/buffer.h: Likewise.
3857 * common/vec.h: Likewise.
3858 * i386bsd-nat.c: Likewise.
3859 * nat/linux-btrace.h: Likewise.
3860 * ppcfbsd-nat.c: Likewise.
3861 * ppcnbsd-tdep.h: Likewise.
3862 * ppcobsd-nat.c: Likewise.
3863 * ppcobsd-tdep.h: Likewise.
3864 * python/py-gdb-readline.c: Likewise.
3865
3866 2014-08-07 Gary Benson <gbenson@redhat.com>
3867
3868 * common/common-defs.h: Include stdarg.h.
3869 * defs.h: Do not include stdarg.h.
3870 * ada-lang.c: Likewise.
3871 * common/common-utils.h: Likewise.
3872 * guile/scm-string.c: Likewise.
3873 * guile/scm-utils.c: Likewise.
3874 * m32c-tdep.c: Likewise.
3875
3876 2014-08-07 Gary Benson <gbenson@redhat.com>
3877
3878 * common/common-defs.h: Include stdlib.h.
3879 * defs.h: Do not include stdlib.h.
3880 * addrmap.c: Likewise.
3881 * bcache.c: Likewise.
3882 * common/buffer.c: Likewise.
3883 * common/common-utils.c: Likewise.
3884 * cp-name-parser.y: Likewise.
3885 * go32-nat.c: Likewise.
3886 * mn10300-linux-tdep.c: Likewise.
3887 * nat/linux-osdata.c: Likewise.
3888 * tui/tui.c: Likewise.
3889 * windows-nat.c: Likewise.
3890
3891 2014-08-07 Gary Benson <gbenson@redhat.com>
3892
3893 * common/common-defs.h: Include stdio.h.
3894 * defs.h: Do not include stdio.h.
3895 * ada-lang.c: Likewise.
3896 * common/buffer.c: Likewise.
3897 * common/common-utils.c: Likewise.
3898 * cp-name-parser.y: Likewise.
3899 * gnu-nat.c: Likewise.
3900 * go32-nat.c: Likewise.
3901 * i386gnu-nat.c: Likewise.
3902 * proc-api.c: Likewise.
3903 * proc-events.c: Likewise.
3904 * proc-flags.c: Likewise.
3905 * proc-why.c: Likewise.
3906 * python/python-internal.h: Likewise.
3907 * target-memory.c: Likewise.
3908 * tui/tui-io.c: Likewise.
3909 * tui/tui.c: Likewise.
3910
3911 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3912
3913 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3914 (scan_dyntag_auxv): Same.
3915
3916 2014-08-06 Yao Qi <yao@codesourcery.com>
3917
3918 * amd64-linux-nat.c: Remove duplicated include
3919 "x86-linux-nat.h".
3920 * i386-linux-nat.c: Likewise.
3921
3922 2014-08-06 Yao Qi <yao@codesourcery.com>
3923
3924 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3925 operand" with "Special opcode" in comments.
3926
3927 2014-08-05 Gary Benson <gbenson@redhat.com>
3928
3929 * interps.c (initialize_interps): Remove prototype.
3930 (interpreter_initialized): Remove static global.
3931 (interp_add): Do not call initialize_interps.
3932 (initialize_interps): Remove function.
3933
3934 2014-08-05 Gary Benson <gbenson@redhat.com>
3935
3936 * utils.c (vwarning): Remove spurious va_end.
3937
3938 2014-08-05 Alan Modra <amodra@gmail.com>
3939
3940 * charset.c (convert_between_encodings): Cast result of obstack_base.
3941 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3942 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3943 (read_unwind_info): Use size_t for some locals.
3944 * jit.c (finalize_symtab): Likewise.
3945 * utils.c (hashtab_obstack_allocate): Likewise.
3946 * symmisc.c (print_objfile_statistics): Update format strings.
3947
3948 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3949
3950 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3951 (Changes in GDB 7.8): ... here.
3952
3953 2014-08-04 Tom Tromey <tromey@redhat.com>
3954
3955 * target.c (set_targetdebug): New function.
3956 (initialize_targets): Pass set_targetdebug when creating "set
3957 debug target".
3958
3959 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3960
3961 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3962 if detecting a variable-sized field that is not the last field.
3963 Fix struct type length computation.
3964
3965 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3966
3967 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3968 Add debug trace.
3969
3970 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3971
3972 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3973 Remove "+ 8" offset in computation of CHAIN_VMA.
3974
3975 2014-07-31 Doug Evans <dje@google.com>
3976
3977 * inflow.c (child_terminal_inferior): Add comment.
3978 (child_terminal_ours_for_output): Add comment.
3979 (child_terminal_ours): Add comment.
3980 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3981 (linux_nat_terminal_ours): Add comment.
3982
3983 2014-07-31 Gary Benson <gbenson@redhat.com>
3984
3985 * common/btrace-common.h: Do not include defs.h or server.h.
3986 * nat/mips-linux-watch.h: Likewise.
3987 * gdb-dlfcn.h: Do not include defs.h.
3988 * tracefile.h: Likewise.
3989
3990 2014-07-30 Roland McGrath <mcgrathr@google.com>
3991
3992 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3993
3994 2014-07-30 Tom Tromey <tromey@redhat.com>
3995
3996 * bsd-kvm.c (bsd_kvm_open): Constify.
3997 * corelow.c (core_open): Constify.
3998 * ctf.c (ctf_open): Constify.
3999 * dbug-rom.c (dbug_open): Constify.
4000 * exec.c (exec_open): Constify.
4001 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4002 * microblaze-rom.c (picobug_open): Constify.
4003 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4004 Constify.
4005 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4006 * record-btrace.c (record_btrace_open): Constify.
4007 * record-full.c (record_full_core_open_1, record_full_open_1)
4008 (record_full_open): Constify.
4009 * remote-m32r-sdi.c (m32r_open): Constify.
4010 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4011 (rockhopper_open, lsi_open): Constify.
4012 * remote-sim.c (gdbsim_open): Constify.
4013 * remote.c (remote_open, extended_remote_open, remote_open_1):
4014 Constify.
4015 * target.h (struct target_ops) <to_open>: Make "arg" const.
4016 * tracefile-tfile.c (tfile_open): Constify.
4017
4018 2014-07-30 Tom Tromey <tromey@redhat.com>
4019
4020 * breakpoint.c (map_breakpoint_numbers): Update.
4021 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4022 (get_number_const): New function.
4023 (get_number): Rewrite using get_number_const.
4024 (init_number_or_range): Make "string" const.
4025 (number_is_in_list): Make "list" const.
4026 * cli/cli-utils.h (get_number_const): Declare.
4027 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4028 (init_number_or_range, number_is_in_list): Update.
4029 * printcmd.c (map_display_numbers): Update.
4030 * value.c (value_from_history_ref): Constify.
4031 * value.h (value_from_history_ref): Update.
4032
4033 2014-07-30 Tom Tromey <tromey@redhat.com>
4034
4035 * corefile.c (hook_type, call_extra_exec_file_hooks)
4036 (specify_exec_file_hook): Constify.
4037 * exec.c (exec_file_attach): Make "filename" const.
4038 * gdbcore.h (deprecated_exec_file_display_hook)
4039 (specify_exec_file_hook, exec_file_attach): Constify.
4040 * main.c (captured_main): Use catch_command_errors_const.
4041
4042 2014-07-30 Tom Tromey <tromey@redhat.com>
4043
4044 * target.c (open_target): New function.
4045 (add_target_with_completer, add_deprecated_target_alias): Use
4046 set_cmd_sfunc, set_cmd_context.
4047 (debug_to_open): Remove.
4048 (setup_target_debug): Update.
4049
4050 2014-07-30 Yao Qi <yao@codesourcery.com>
4051
4052 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4053 comments.
4054 * parse.c (exp_iterate): Update comments.
4055
4056 2014-07-30 Gary Benson <gbenson@redhat.com>
4057
4058 * common/common-defs.h: New file.
4059 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4060 * defs.h: Include common-defs.h.
4061 Do not include config.h or build-gnulib/config.h.
4062
4063 2014-07-30 Gary Benson <gbenson@redhat.com>
4064
4065 * common/common-utils.h: Do not include config.h.
4066 * nat/linux-btrace.h: Likewise.
4067
4068 2014-07-30 Gary Benson <gbenson@redhat.com>
4069
4070 * btrace.c: Include defs.h.
4071 * common/ptid.c: Include defs.h or server.h as appropriate.
4072 * nat/mips-linux-watch.c: Likewise.
4073
4074 2014-07-29 Tom Tromey <tromey@redhat.com>
4075
4076 * target.c (target_is_pushed): Simplify.
4077
4078 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4079
4080 GDB 7.8 released.
4081
4082 2014-07-29 Yao Qi <yao@codesourcery.com>
4083
4084 PR gdb/17206
4085 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4086
4087 2014-07-28 Doug Evans <xdje42@gmail.com>
4088
4089 PR guile/17203
4090 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4091 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4092 parameters.
4093
4094 2014-07-28 Will Newton <will.newton@linaro.org>
4095
4096 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4097 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4098 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4099 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4100 (THUMB2_EABI_SYSCALL): Likewise.
4101 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4102 struct tramp_frame.
4103 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4104 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4105
4106 2014-07-27 Doug Evans <xdje42@gmail.com>
4107
4108 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4109
4110 2014-07-27 Doug Evans <xdje42@gmail.com>
4111
4112 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4113
4114 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4115 Doug Evans <xdje42@gmail.com>
4116
4117 PR guile/17146
4118 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4119 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4120 * configure.ac: Try to use guild to compile an scm file, if it fails
4121 then disable guile support.
4122 * configure: Regenerate.
4123 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4124 GUILE_FILE_LIST.
4125 (GUILE_COMPILED_FILES): New variable.
4126 (GUILE_FILES) Update.
4127 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4128 (stamp-guile): Compile scm files.
4129 * guile/guile.c (boot_guile_support): New function.
4130 (standard_throw_args_p): New function.
4131 (print_standard_throw_error, print_throw_error): New functions.
4132 (handle_boot_error): New function.
4133 (initialize_scheme_side): Rewrite to call boot_guile_support.
4134 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4135 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4136
4137 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4138 Doug Evans <xdje42@gmail.com>
4139
4140 PR guile/17146
4141 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4142 * guile/lib/gdb/support.scm: New file.
4143 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4144 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4145 All uses updated.
4146 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4147 All uses updated.
4148 (%assert-type): Ditto, and renamed to assert-type.
4149 (%exception-print-style): Delete.
4150
4151 2014-07-26 Doug Evans <xdje42@gmail.com>
4152
4153 PR build/17105
4154 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4155 * configure: Regenerate.
4156 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4157 PYTHON_FILES.
4158 (PYTHON_FILES): New variable.
4159 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4160 (GUILE_FILES): New variable.
4161 (stamp-python, install-python, uninstall-python): Handle empty
4162 file list.
4163 (stamp-guile, install-guile, uninstall-guile): Ditto.
4164
4165 2014-07-26 Doug Evans <xdje42@gmail.com>
4166
4167 PR guile/17177
4168 * guile/lib/gdb.scm (pretty-printers): Export.
4169 (set-pretty-printers!): Export.
4170 * guile/lib/gdb/printing.scm (gdb module): Update.
4171 (prepend-pretty-printer!, append-pretty-printer!): Update.
4172 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4173 (pretty_printer_list_var): Delete.
4174 (pretty_printer_list): New static global.
4175 (gdbscm_pretty_printers): New function.
4176 (gdbscm_set_pretty_printers_x): New function.
4177 (ppscm_find_pretty_printer_from_gdb): Update.
4178 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4179 (gdbscm_initialize_pretty_printers): Update.
4180
4181 2014-07-26 Doug Evans <xdje42@gmail.com>
4182
4183 PR 17185
4184 * configure.ac: Add check for header gc/gc.h.
4185 Add check for function setenv.
4186 * configure: Regenerate.
4187 * config.in: Regenerate.
4188 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4189
4190 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4191
4192 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4193 variation in gdbarch matching.
4194
4195 2014-07-25 Tom Tromey <tromey@redhat.com>
4196
4197 * exec.c (using_exec_ops): Remove.
4198 (exec_close_1): Update. Remove extraneous block, reindent.
4199 (add_target_sections): Use target_is_pushed.
4200
4201 2014-07-25 Pedro Alves <palves@redhat.com>
4202
4203 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4204 * monitor.c (monitor_create_inferior): Likewise.
4205 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4206 * remote-sim.c (gdbsim_create_inferior): Likewise.
4207 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4208 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4209 * windows-nat.c (do_initial_windows_stuff): Likewise.
4210
4211 2014-07-25 Pedro Alves <palves@redhat.com>
4212
4213 * NEWS: Mention signal passing and "signal" command changes.
4214 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4215 comment.
4216 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4217 call.
4218 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4219 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4220 (jump_command): Adjust clear_proceed_status call.
4221 (signal_command): Warn if other thread that are resumed have
4222 signals that will be delivered. Adjust clear_proceed_status call.
4223 (until_next_command, finish_command)
4224 (proceed_after_attach_callback, attach_command_post_wait)
4225 (attach_command): Adjust clear_proceed_status call.
4226 * infrun.c (proceed_after_vfork_done): Likewise.
4227 (proceed_after_attach_callback): Adjust comment.
4228 (clear_proceed_status_thread): Clear stop_signal if not in pass
4229 state.
4230 (clear_proceed_status_callback): Delete.
4231 (clear_proceed_status): New 'step' parameter. Only clear the
4232 proceed status of threads the command being prepared is about to
4233 resume.
4234 (proceed): If passed in an explicit signal, override stop_signal
4235 with it. Don't pass the last stop signal to the thread we're
4236 resuming.
4237 (init_wait_for_inferior): Adjust clear_proceed_status call.
4238 (switch_back_to_stepped_thread): Clear the signal if it should not
4239 be passed.
4240 * infrun.h (clear_proceed_status): New 'step' parameter.
4241 (user_visible_resume_ptid): Add comment.
4242 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4243 signal is in pass state.
4244 * remote.c (append_pending_thread_resumptions): Likewise.
4245 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4246
4247 2014-07-25 Tom Tromey <tromey@redhat.com>
4248
4249 * target.h (target_stopped_data_address)
4250 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4251 parentheses.
4252
4253 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4254
4255 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4256 comments.
4257 (avr_pointer_to_address): Likewise.
4258
4259 2014-07-24 Tom Tromey <tromey@redhat.com>
4260
4261 * monitor.c (compile_pattern): Update.
4262 * target.h (struct target_ops) <to_shortname, to_longname,
4263 to_doc>: Now const.
4264
4265 2014-07-24 Tom Tromey <tromey@redhat.com>
4266
4267 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4268 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4269 (add_info_alias, add_com): Make "doc" const.
4270 (print_doc_line): Make "str" const.
4271 (delete_cmd): Update.
4272 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4273 (print_doc_line): Update.
4274 * cli/cli-script.c (document_command): Update.
4275 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4276 (add_com, add_info, add_info_alias): Update.
4277 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4278 * python/py-cmd.c (cmdpy_destroyer): Update.
4279
4280 2014-07-24 Tom Tromey <tromey@redhat.com>
4281
4282 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4283 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4284 (help_cmd_list): Constify.
4285 (lookup_cmd): Update.
4286 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4287 const.
4288 (help_cmd_list, apropos_cmd): Update.
4289 * cli/cli-script.c (show_user): Update.
4290 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4291 * cli/cli-setshow.h (cmd_show_list): Update.
4292 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4293 (cmd_show_list): Update.
4294 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4295 * python/py-cmd.c (cmdpy_destroyer): Update.
4296
4297 2014-07-24 Tom Tromey <tromey@redhat.com>
4298
4299 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4300 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4301 const.
4302 * command.h (deprecate_cmd): Update.
4303 * maint.c (maintenance_do_deprecate): Add casts.
4304
4305 2014-07-24 Tom Tromey <tromey@redhat.com>
4306
4307 * cli/cli-decode.c (help_cmd): Make parameter "const".
4308 * cli/cli-decode.h (help_cmd): Update.
4309
4310 2014-07-24 Tom Tromey <tromey@redhat.com>
4311
4312 * stack.c (up_silently_base, down_silently_base): Make argument
4313 const.
4314
4315 2014-07-24 Tom Tromey <tromey@redhat.com>
4316
4317 * solib.c (solib_add): Make "pattern" const.
4318 * solib.h (solib_add): Update.
4319
4320 2014-07-24 Tom Tromey <tromey@redhat.com>
4321
4322 * remote.c (remote_serial_open, print_packet, putpkt)
4323 (putpkt_binary): Constify.
4324 * remote.h (putpkt): Update.
4325
4326 2014-07-24 Tom Tromey <tromey@redhat.com>
4327
4328 * monitor.c (monitor_open): Make "args" const.
4329 * monitor.h (monitor_open): Update.
4330
4331 2014-07-24 Tom Tromey <tromey@redhat.com>
4332
4333 * maint.c (match_bfd_flags): Make "string" const.
4334 (print_bfd_section_info): Remove casts.
4335 (print_objfile_section_info): Make "string" const.
4336
4337 2014-07-24 Tom Tromey <tromey@redhat.com>
4338
4339 * inf-child.c (inf_child_open_target): Make "arg" const.
4340 * inf-child.h (inf_child_open_target): Update.
4341
4342 2014-07-24 Tom Tromey <tromey@redhat.com>
4343
4344 * environ.c (unset_in_environ): Make "var" const.
4345 * environ.h (unset_in_environ): Update.
4346
4347 2014-07-24 Tom Tromey <tromey@redhat.com>
4348
4349 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4350 Make "cmd" const.
4351 (scan_filename_with_cleanup): Likewise.
4352 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4353 Make arguments const.
4354 (restore_command): Update.
4355
4356 2014-07-24 Pedro Alves <palves@redhat.com>
4357
4358 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4359
4360 2014-07-24 Tom Tromey <tromey@redhat.com>
4361 Gary Benson <gbenson@redhat.com>
4362
4363 * nat/linux-ptrace.c (additional_flags): New global.
4364 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4365 additional_flags; don't check GDBSERVER.
4366 (linux_ptrace_set_additional_flags): New function.
4367 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4368 Declare.
4369 * linux-nat.c (_initialize_linux_nat): Call
4370 linux_ptrace_set_additional_flags.
4371
4372 2014-07-24 Tom Tromey <tromey@redhat.com>
4373
4374 * make-target-delegates (munge_type, write_debugmethod): New
4375 functions.
4376 (debug_names): New global.
4377 ($TARGET_DEBUG_PRINTER): New global.
4378 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4379 name.
4380 Write debug methods. Generate init_debug_target.
4381 * target-debug.h: New file.
4382 * target-delegates.c: Rebuild.
4383 * target.c: Include target-debug.h.
4384 (debug_target): Hoist definition.
4385 (target_kill, target_get_section_table, target_memory_map)
4386 (target_flash_erase, target_flash_done, target_detach)
4387 (target_disconnect, target_wait, target_resume)
4388 (target_pass_signals, target_program_signals, target_follow_fork)
4389 (target_mourn_inferior, target_search_memory)
4390 (target_thread_address_space, target_close)
4391 (target_find_new_threads, target_core_of_thread)
4392 (target_verify_memory, target_insert_mask_watchpoint)
4393 (target_remove_mask_watchpoint): Remove targetdebug code.
4394 (debug_to_post_attach, debug_to_prepare_to_store)
4395 (debug_to_files_info, debug_to_insert_breakpoint)
4396 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4397 (debug_to_region_ok_for_hw_watchpoint)
4398 (debug_to_can_accel_watchpoint_condition)
4399 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4400 (debug_to_watchpoint_addr_within_range)
4401 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4402 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4403 (debug_to_terminal_init, debug_to_terminal_inferior)
4404 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4405 (debug_to_terminal_save_ours, debug_to_terminal_info)
4406 (debug_to_load, debug_to_post_startup_inferior)
4407 (debug_to_insert_fork_catchpoint)
4408 (debug_to_remove_fork_catchpoint)
4409 (debug_to_insert_vfork_catchpoint)
4410 (debug_to_remove_vfork_catchpoint)
4411 (debug_to_insert_exec_catchpoint)
4412 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4413 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4414 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4415 (setup_target_debug): Call init_debug_target.
4416 * target.h (TARGET_DEBUG_PRINTER): New macro.
4417 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4418 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4419
4420 2014-07-24 Gary Benson <gbenson@redhat.com>
4421
4422 * exceptions.h (throw_vfatal): Renamed to...
4423 (throw_vquit): New declaration.
4424 (throw_quit): Likewise.
4425 * exceptions.c (throw_vfatal): Renamed to...
4426 (throw_vquit): New function.
4427 (throw_quit): Likewise.
4428 (throw_error): Call throw_verror rather than throw_it.
4429 * utils.h (vfatal): Removed.
4430 (fatal): Likewise.
4431 * utils.c (vfatal): Removed.
4432 (fatal): Likewise.
4433 (internal_verror): Replaced call to fatal with call to throw_quit.
4434 (quit): Replaced calls to fatal with calls to throw_quit.
4435
4436 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4437
4438 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4439 target_read_code.
4440
4441 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4442
4443 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4444 less than zero in conditional expression.
4445
4446 2014-07-23 Tom Tromey <tromey@redhat.com>
4447
4448 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4449 ($INTRO_PART): Don't match whitespace.
4450 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4451 argument matching.
4452 ($METHOD): Add $METHOD_TRAILER.
4453 (trim): Rewrite.
4454 (scan_target_h): New sub.
4455 Change main loop not to collect state.
4456 * target-delegates.c: Rebuild.
4457
4458 2014-07-23 Gary Benson <gbenson@redhat.com>
4459
4460 * cp-support.c (gdb_demangle): Fix build on systems without
4461 sigaltstack.
4462
4463 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4464
4465 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4466 for reference entry value target data value.
4467
4468 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4469
4470 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4471 value_available_contents_eq.
4472
4473 2014-07-22 Pedro Alves <palves@redhat.com>
4474
4475 * value.c (allocate_optimized_out_value): Don't mark value as
4476 non-lazy.
4477
4478 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4479
4480 * MAINTAINERS (Write After Approval): Update my email address.
4481
4482 2014-07-20 Doug Evans <dje@google.com>
4483
4484 PR server/17147
4485 * remote.c (putpkt_binary): Add text to error message.
4486
4487 2014-07-20 Yao Qi <yao@codesourcery.com>
4488
4489 * eval.c: Remove "Chill" from comments.
4490 * gdbtypes.h: Likewise.
4491 * symtab.h: Likewise.
4492
4493 2014-07-20 Yao Qi <yao@codesourcery.com>
4494
4495 * std-operator.def: Update comments to TERNOP_SLICE.
4496
4497 2014-07-20 Yao Qi <yao@codesourcery.com>
4498
4499 * std-operator.def: Remove BINOP_RANGE.
4500 * breakpoint.c (watchpoint_exp_is_const): Update.
4501 * expprint.c (dump_subexp_body_standard): Likewise.
4502 * eval.c (init_array_element): Remove dead code.
4503 (evaluate_subexp_standard): Likewise.
4504
4505 2014-07-20 Yao Qi <yao@codesourcery.com>
4506
4507 * std-operator.def: Remove BINOP_IN.
4508 * breakpoint.c (watchpoint_exp_is_const): Update.
4509 * eval.c (evaluate_subexp_standard): Likewise.
4510 * expprint.c (dump_subexp_body_standard): Likewise.
4511
4512 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4513
4514 * microblaze-tdep.c (microblaze_register_names): Add
4515 the rshr and rslr register names.
4516 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4517 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4518 Use of tdesc_numbered_register. Use of
4519 microblaze_register_g_packet_guesses. Use of
4520 tdesc_use_registers. Use of set_gdbarch_register_type.
4521 (microblaze_register_g_packet_guesses): New.
4522 * microblaze-tdep.h (microblaze_reg_num): Add
4523 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4524 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4525 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4526 * features/microblaze-core.xml: New file.
4527 * features/microblaze-stack-protect.xml: New file.
4528 * features/microblaze-with-stack-protect.c: New file.
4529 * features/microblaze-with-stack-protect.xml: New file.
4530 * features/microblaze.xml: New file.
4531 * features/microblaze.c: New file.
4532 * features/Makefile (microblaze-with-stack-protect): Add
4533 microblaze-with-stack-protect microblaze and microblaze-expedite.
4534 * regformats/microblaze-with-stack-protect.dat: New file.
4535 * regformats/microblaze.dat: New file.
4536 * doc/gdb.texinfo (MicroBlaze Features): Added.
4537
4538 2014-07-18 Tom Tromey <tromey@redhat.com>
4539
4540 * exec.c (exec_ops): Now static.
4541 * exec.h (exec_ops): Don't declare.
4542
4543 2014-07-18 Tom Tromey <tromey@redhat.com>
4544
4545 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4546 to find_target_beneath.
4547 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4548 find_target_beneath.
4549 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4550
4551 2014-07-18 Tom Tromey <tromey@redhat.com>
4552
4553 PR gdb/17130:
4554 * utils.c (quit): Use target_supports_terminal_ours.
4555 * target.h (target_supports_terminal_ours): Declare.
4556 * target.c (target_supports_delete_record): Don't check
4557 to_delete_record against NULL.
4558 (target_supports_terminal_ours): New function.
4559
4560 2014-07-18 Tom Tromey <tromey@redhat.com>
4561
4562 PR gdb/17130:
4563 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4564 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4565 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4566 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4567 * windows-nat.c (windows_xfer_partial): Always delegate.
4568 * record-btrace.c (record_btrace_xfer_partial): Simplify
4569 delegation.
4570 (record_btrace_fetch_registers, record_btrace_store_registers)
4571 (record_btrace_prepare_to_store, record_btrace_resume)
4572 (record_btrace_wait, record_btrace_find_new_threads)
4573 (record_btrace_thread_alive): Likewise.
4574 * procfs.c (procfs_xfer_partial): Always delegate.
4575 * corelow.c (core_xfer_partial): Always delegate.
4576 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4577
4578 2014-07-18 Tom Tromey <tromey@redhat.com>
4579
4580 * exec.c (exec_make_note_section): Move earlier.
4581
4582 2014-07-17 Doug Evans <dje@google.com>
4583
4584 PR gdb/17170
4585 * maint.c (count_symtabs_and_blocks): Handle NULL
4586 current_program_space.
4587 (report_command_stats): Check global enabled flag in addition to
4588 recorded enabled flag.
4589 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4590
4591 2014-07-16 Pedro Alves <palves@redhat.com>
4592
4593 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4594
4595 2014-07-16 Tom Tromey <tromey@redhat.com>
4596
4597 * target.h (struct target_ops) <to_delete_record>: Reformat
4598 comment.
4599
4600 2014-07-16 Tom Tromey <tromey@redhat.com>
4601
4602 * target-delegates.c: Rebuild.
4603
4604 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4605
4606 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4607 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4608 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4609 (avr_pointer_to_address): Likewise.
4610 (avr_address_class_type_flags): New function.
4611 (avr_address_class_type_flags_to_name): Likewise.
4612 (avr_address_class_name_to_type_flags): Likewise.
4613 (avr_gdbarch_init): Set address_class_type_flags,
4614 address_class_type_flags_to_name and
4615 address_class_name_to_type_flags.
4616
4617 2014-07-15 Pedro Alves <palves@redhat.com>
4618
4619 * linux-nat.c (kill_callback): Save errno and work with saved
4620 copy.
4621
4622 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4623
4624 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4625
4626 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4627
4628 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4629 breakpoint support correctly.
4630
4631 2014-07-14 Pedro Alves <palves@redhat.com>
4632
4633 * utils.c (prompt_for_continue): Call target_terminal_ours.
4634
4635 2014-07-14 Pedro Alves <palves@redhat.com>
4636
4637 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4638 catch_errors. Don't re-enable stdin or notify observers where,
4639 and rethrow error.
4640 (fetch_inferior_event_wrapper): Delete.
4641
4642 2014-07-14 Pedro Alves <palves@redhat.com>
4643
4644 PR gdb/17072
4645 * top.c: Include "inf-loop.h".
4646 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4647 field.
4648 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4649 was async before.
4650 (gdb_readline_wrapper): Store whether the target is async, and
4651 make it sync.
4652
4653 2014-07-14 Pedro Alves <palves@redhat.com>
4654
4655 PR gdb/17072
4656 * top.c (gdb_readline_wrapper_line): Tweak comment.
4657 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4658 the input handler callback.
4659
4660 2014-07-14 Pedro Alves <palves@redhat.com>
4661
4662 PR gdb/17072
4663 * main.c: Include event-top.h.
4664 (handle_command_errors): New function.
4665 (catch_command_errors, catch_command_errors_const): Use it.
4666
4667 2014-07-14 Pedro Alves <palves@redhat.com>
4668
4669 * exceptions.c (catch_command_errors, catch_command_errors_const):
4670 Moved to main.c.
4671 * exceptions.h (catch_command_errors_ftype)
4672 (catch_command_errors_const_ftype): Moved to main.c.
4673 (catch_command_errors, catch_command_errors_const): Delete
4674 declarations.
4675 * main.c (catch_command_errors_ftype)
4676 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4677 (catch_command_errors, catch_command_errors_const)): Moved here
4678 from exceptions.c and make static.
4679
4680 2014-07-14 Pedro Alves <palves@redhat.com>
4681
4682 * exceptions.c (print_any_exception): Delete.
4683 (catch_exceptions_with_msg): Use exception_print instead of
4684 print_any_exception.
4685 (catch_errors): Use exception_fprintf instead of
4686 print_any_exception.
4687 (catch_command_errors, catch_command_errors_const): Use
4688 exception_print instead of print_any_exception.
4689
4690 2014-07-14 Pedro Alves <palves@redhat.com>
4691
4692 * infcall.c (run_inferior_call): Set 'sync_execution' while
4693 running the inferior call.
4694
4695 2014-07-14 Pedro Alves <palves@redhat.com>
4696
4697 * value.c (value_contents_equal): Delete function.
4698 * value.h (value_contents_equal): Delete declaration.
4699
4700 2014-07-14 Tom Tromey <tromey@redhat.com>
4701
4702 PR exp/17106:
4703 * gdbtypes.c (is_dynamic_type_internal): New function, from
4704 is_dynamic_type.
4705 (is_dynamic_type): Rewrite.
4706 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4707 (resolve_dynamic_struct): Likewise.
4708 (resolve_dynamic_type_internal): New function, from
4709 resolve_dynamic_type.
4710 (resolve_dynamic_type): Rewrite.
4711
4712 2014-07-14 Tom Tromey <tromey@redhat.com>
4713
4714 * target.c (target_require_runnable): Also check record_stratum.
4715 Update comment.
4716
4717 2014-07-11 Yao Qi <yao@codesourcery.com>
4718
4719 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4720 thumb_instruction_restores_sp return true.
4721
4722 2014-07-11 Yao Qi <yao@codesourcery.com>
4723
4724 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4725 (thumb_in_function_epilogue_p): Call
4726 thumb_instruction_restores_sp.
4727
4728 2014-07-11 Yao Qi <yao@codesourcery.com>
4729
4730 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4731 'add sp, #imm'.
4732 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4733
4734 2014-07-11 Gary Benson <gbenson@redhat.com>
4735
4736 * amd64-linux-nat.c (gdbcore.h): Remove include.
4737 (regset.h): Likewise.
4738 (nat/linux-btrace.h): Likewise.
4739 (btrace.h): Likewise.
4740 (gdb_assert.h): Likewise.
4741 (string.h): Likewise.
4742 (sys/uio.h): Likewise.
4743 (sys/debugreg.h): Likewise.
4744 (sys/syscall.h): Likewise.
4745 (sys/procfs.h): Likewise.
4746 (sys/user.h): Likewise.
4747 (asm/ptrace.h): Likewise.
4748 (i386-nat.h): Likewise.
4749 * i386-linux-nat.c (i386-nat.h): Likewise.
4750 (regset.h): Likewise.
4751 (target.h): Likewise.
4752 (linux-nat.h): Likewise.
4753 (nat/linux-btrace.h): Likewise.
4754 (btrace.h): Likewise.
4755 (gdb_assert.h): Likewise.
4756 (string.h): Likewise.
4757 (sys/uio.h): Likewise.
4758 (sys/user.h): Likewise.
4759 (sys/procfs.h): Likewise.
4760 (sys/reg.h): Likewise.
4761 (sys/debugreg.h): Likewise.
4762 (ORIG_EAX): Remove definition.
4763
4764 2014-07-11 Gary Benson <gbenson@redhat.com>
4765
4766 * i386-linux-nat.h: New file.
4767 * x86-linux-nat.h: Likewise.
4768 * x86-linux-nat.c: Likewise.
4769 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4770 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4771 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4772 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4773 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4774 (PTRACE_SETREGSET): Likewise.
4775 (arch_lwp_info): Now in x86-linux-nat.c.
4776 (have_ptrace_getregset): Now in x86-linux-nat.h.
4777 (x86_linux_dr_get): Now in x86-linux-nat.c.
4778 (x86_linux_dr_set): Likewise.
4779 (x86_linux_dr_get_addr): Likewise.
4780 (x86_linux_dr_get_control): Likewise.
4781 (x86_linux_dr_get_status): Likewise.
4782 (update_debug_registers_callback): Likewise.
4783 (x86_linux_dr_set_control): Likewise.
4784 (x86_linux_dr_set_addr): Likewise.
4785 (x86_linux_prepare_to_resume): Likewise.
4786 (x86_linux_new_thread): Likewise.
4787 (x86_linux_new_fork): Likewise.
4788 (x86_linux_get_thread_area): Likewise.
4789 (super_post_startup_inferior): Likewise.
4790 (x86_linux_child_post_startup_inferior): Likewise.
4791 (AMD64_LINUX_USER64_CS): Likewise.
4792 (AMD64_LINUX_X32_DS): Likewise.
4793 (x86_linux_read_description): Likewise.
4794 (x86_linux_enable_btrace): Likewise.
4795 (x86_linux_disable_btrace): Likewise.
4796 (x86_linux_teardown_btrace): Likewise.
4797 (x86_linux_read_btrace): Likewise.
4798 (x86_linux_create_target): Likewise.
4799 (x86_linux_add_target): Likewise.
4800 * i386-linux-nat.c (x86-linux-nat.h): New include.
4801 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4802 (PTRACE_SETREGSET): Likewise.
4803 (arch_lwp_info): Now in x86-linux-nat.c.
4804 (have_ptrace_getregset): Now in x86-linux-nat.h.
4805 (x86_linux_dr_get): Now in x86-linux-nat.c.
4806 (x86_linux_dr_set): Likewise.
4807 (x86_linux_dr_get_addr): Likewise.
4808 (x86_linux_dr_get_control): Likewise.
4809 (x86_linux_dr_get_status): Likewise.
4810 (update_debug_registers_callback): Likewise.
4811 (x86_linux_dr_set_control): Likewise.
4812 (x86_linux_dr_set_addr): Likewise.
4813 (x86_linux_prepare_to_resume): Likewise.
4814 (x86_linux_new_thread): Likewise.
4815 (x86_linux_new_fork): Likewise.
4816 (x86_linux_get_thread_area): Likewise.
4817 (super_post_startup_inferior): Likewise.
4818 (x86_linux_child_post_startup_inferior): Likewise.
4819 (AMD64_LINUX_USER64_CS): Likewise.
4820 (AMD64_LINUX_X32_DS): Likewise.
4821 (x86_linux_read_description): Likewise.
4822 (x86_linux_enable_btrace): Likewise.
4823 (x86_linux_disable_btrace): Likewise.
4824 (x86_linux_teardown_btrace): Likewise.
4825 (x86_linux_read_btrace): Likewise.
4826 (x86_linux_create_target): Likewise.
4827 (x86_linux_add_target): Likewise.
4828
4829 2014-07-11 Gary Benson <gbenson@redhat.com>
4830
4831 * amd64-linux-nat.c: Comment and whitespace changes.
4832 * i386-linux-nat.c: Comment and whitespace changes.
4833
4834 2014-07-11 Gary Benson <gbenson@redhat.com>
4835
4836 * amd64-linux-nat.c (x86_linux_create_target): New function.
4837 (x86_linux_add_target): Likewise.
4838 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4839 * i386-linux-nat.c (x86_linux_create_target): New function.
4840 (x86_linux_add_target): Likewise.
4841 (_initialize_i386_linux_nat): Delegate to the above new functions.
4842
4843 2014-07-11 Gary Benson <gbenson@redhat.com>
4844
4845 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4846 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4847 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4848 (ps_get_thread_area): Delegate to the above.
4849
4850 2014-07-11 Gary Benson <gbenson@redhat.com>
4851
4852 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4853 x86_linux_read_description. All uses updated. amd64-specific
4854 code conditionalized. Conditionalized i386-specific code added.
4855 Redundant cast removed.
4856 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4857 x86_linux_read_description. All uses updated. i386-specific
4858 code conditionalized. Conditionalized amd64-specific code added.
4859 One sizeof replaced with the actual type it is describing.
4860
4861 2014-07-11 Gary Benson <gbenson@redhat.com>
4862
4863 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4864 x86_linux_dr_get. All uses updated.
4865 (amd64_linux_dr_set): Renamed to
4866 x86_linux_dr_set. All uses updated.
4867 (amd64_linux_dr_get_addr): Renamed to
4868 x86_linux_dr_get_addr. All uses updated.
4869 (amd64_linux_dr_get_control): Renamed to
4870 x86_linux_dr_get_control. All uses updated.
4871 (amd64_linux_dr_get_status): Renamed to
4872 x86_linux_dr_get_status. All uses updated.
4873 (amd64_linux_dr_set_control): Renamed to
4874 x86_linux_dr_set_control. All uses updated.
4875 (amd64_linux_dr_set_addr): Renamed to
4876 x86_linux_dr_set_addr. All uses updated.
4877 (amd64_linux_prepare_to_resume): Renamed to
4878 x86_linux_prepare_to_resume. All uses updated.
4879 (amd64_linux_new_thread): Renamed to
4880 x86_linux_new_thread. All uses updated.
4881 (amd64_linux_new_fork): Renamed to
4882 x86_linux_new_fork. All uses updated.
4883 (amd64_linux_child_post_startup_inferior): Renamed to
4884 x86_linux_child_post_startup_inferior. All uses updated.
4885 (amd64_linux_enable_btrace): Renamed to
4886 x86_linux_enable_btrace. All uses updated.
4887 (amd64_linux_disable_btrace): Renamed to
4888 x86_linux_disable_btrace. All uses updated.
4889 (amd64_linux_teardown_btrace): Renamed to
4890 x86_linux_teardown_btrace. All uses updated.
4891 (amd64_linux_read_btrace): Renamed to
4892 x86_linux_read_btrace. All uses updated.
4893 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4894 x86_linux_dr_get. All uses updated.
4895 (i386_linux_dr_set): Renamed to
4896 x86_linux_dr_set. All uses updated.
4897 (i386_linux_dr_get_addr): Renamed to
4898 x86_linux_dr_get_addr. All uses updated.
4899 (i386_linux_dr_get_control): Renamed to
4900 x86_linux_dr_get_control. All uses updated.
4901 (i386_linux_dr_get_status): Renamed to
4902 x86_linux_dr_get_status. All uses updated.
4903 (i386_linux_dr_set_control): Renamed to
4904 x86_linux_dr_set_control. All uses updated.
4905 (i386_linux_dr_set_addr): Renamed to
4906 x86_linux_dr_set_addr. All uses updated.
4907 (i386_linux_prepare_to_resume): Renamed to
4908 x86_linux_prepare_to_resume. All uses updated.
4909 (i386_linux_new_thread): Renamed to
4910 x86_linux_new_thread. All uses updated.
4911 (i386_linux_new_fork): Renamed to
4912 x86_linux_new_fork. All uses updated.
4913 (i386_linux_child_post_startup_inferior): Renamed to
4914 x86_linux_child_post_startup_inferior. All uses updated.
4915 (i386_linux_enable_btrace): Renamed to
4916 x86_linux_enable_btrace. All uses updated.
4917 (i386_linux_disable_btrace): Renamed to
4918 x86_linux_disable_btrace. All uses updated.
4919 (i386_linux_teardown_btrace): Renamed to
4920 x86_linux_teardown_btrace. All uses updated.
4921 (i386_linux_read_btrace): Renamed to
4922 x86_linux_read_btrace. All uses updated.
4923
4924 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4925
4926 * remote.c (extended_remote_post_attach): New function.
4927 (init_extended_remote_ops): Install it as to_post_attach method.
4928
4929 2014-07-09 Pedro Alves <palves@redhat.com>
4930
4931 * infcmd.c (attach_command_post_wait): Don't call
4932 target_terminal_inferior here.
4933 (attach_command): Call it here instead.
4934
4935 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4936
4937 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4938 field.
4939 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4940 from varobj.c, with additional checks.
4941 (c_varobj_ops): Fill in is_path_expr_parent field.
4942 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4943 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4944 field.
4945 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4946 ops method.
4947 (varobj_default_is_path_expr_parent): New function.
4948 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4949 (varobj_default_is_path_expr_parent): Declare new function.
4950
4951 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4952
4953 * infcmd.c (finish_backward): Turn internal error into normal error.
4954
4955 2014-07-07 Pedro Alves <palves@redhat.com>
4956
4957 PR gdb/17096
4958 * remote.c (async_handle_remote_sigint)
4959 (async_handle_remote_sigint_twice): Call
4960 gdb_call_async_signal_handler instead of
4961 mark_async_signal_handler.
4962
4963 2014-07-07 Tom Tromey <tromey@redhat.com>
4964
4965 * target-delegates.c: Rebuild.
4966 * target.c (target_info_record): Remove.
4967 * record.c (info_record_command): Unconditionally call
4968 to_info_record.
4969 * target.h (struct target_ops) <to_info_record>: Use
4970 TARGET_DEFAULT_IGNORE.
4971 (target_info_record): Remove.
4972
4973 2014-07-07 Tom Tromey <tromey@redhat.com>
4974
4975 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4976 TARGET_DEFAULT_NORETURN.
4977 * target.c (generic_tls_error): New function.
4978 (target_translate_tls_address): Don't search target stack.
4979 * target-delegates.c: Rebuild.
4980 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4981 stack.
4982 * linux-thread-db.c (thread_db_get_thread_local_address):
4983 Unconditionally call beneath target.
4984
4985 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4986
4987 * cli/cli-logging.c (pop_output_files): Assign targerr to
4988 gdb_stdtargerr.
4989
4990 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4991
4992 * MAINTAINERS (Write After Approval): Update my email address.
4993
4994 2014-07-02 Gary Benson <gbenson@redhat.com>
4995
4996 * proc-service.c (ps_xfer_memory): Update comment.
4997 (ps_pstop): Remove unused function.
4998 (ps_pcontinue): Likewise.
4999 (ps_lstop): Likewise.
5000 (ps_lcontinue): Likewise.
5001 (ps_lgetxregsize): Likewise.
5002 (ps_lgetxregs): Likewise.
5003 (ps_lsetxregs): Likewise.
5004 (ps_plog): Likewise.
5005 (ps_ptread): Likewise.
5006 (ps_ptwrite): Likewise.
5007
5008 2014-07-01 Mark Wielaard <mjw@redhat.com>
5009
5010 * dwarf2read.c (add_array_cv_type): New function.
5011 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5012 (read_tag_volatile_type): Likewise.
5013
5014 2014-07-01 Tom Tromey <tromey@redhat.com>
5015
5016 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5017 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5018 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5019 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5020 * command.h (cmd_cfunc_ftype): Move earlier.
5021 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5022 (add_com, add_info): Use cmd_cfunc_ftype.
5023
5024 2014-06-30 Tom Tromey <tromey@redhat.com>
5025
5026 * symtab.c (operator_chars): Make parameters and return type
5027 const.
5028 (file_matches): Make "files" const.
5029 (struct search_symbols_data) <files>: Now const.
5030 (search_symbols): Make "regexp" and "files" parameters const.
5031 Update.
5032 (symtab_symbol_info): Remove cast.
5033 (rbreak_command): Update.
5034 * symtab.h (search_symbols): Update.
5035
5036 2014-06-27 Yao Qi <yao@codesourcery.com>
5037
5038 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5039 Change parameter type to 'struct thread_info *'. Caller
5040 updated.
5041 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5042 Update declaration.
5043 * dummy-frame.c (struct dummy_frame_id): New.
5044 (dummy_frame_id_eq): New function.
5045 (struct dummy_frame) <id>: Change its type to 'struct
5046 dummy_frame_id'.
5047 (dummy_frame_push): Add parameter ptid and save it in
5048 dummy_frame_id.
5049 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5050 inferior_ptid.
5051 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5052 to inferior_ptid.
5053 (lookup_dummy_frame): Change parameter type to 'struct
5054 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5055 instead of frame_id_eq.
5056 (dummy_frame_pop): Add parameter ptid. Callers updated.
5057 Update comments. Compose dummy_frame_id and pass it to
5058 lookup_dummy_frame.
5059 (dummy_frame_discard): Add parameter ptid.
5060 (dummy_frame_sniffer): Compose dummy_frame_id and call
5061 dummy_frame_id_eq instead of frame_id_eq.
5062 (fprint_dummy_frames): Print ptid.
5063 * dummy-frame.h: Remove comments.
5064 (dummy_frame_push): Add ptid in declaration.
5065 (dummy_frame_pop, dummy_frame_discard): Likewise.
5066
5067 2014-06-26 Tom Tromey <tromey@redhat.com>
5068
5069 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5070 * command.h (error_no_arg): Update.
5071
5072 2014-06-26 Tom Tromey <tromey@redhat.com>
5073
5074 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5075 (do_show_command): Make "arg" const.
5076 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5077
5078 2014-06-26 Tom Tromey <tromey@redhat.com>
5079
5080 * record-full.c (record_full_get_bookmark): Make "args" const.
5081 (record_full_goto_bookmark): Make "raw_bookmark" const.
5082 * record.c (record_goto): New function.
5083 (cmd_record_goto): Use it. Now static.
5084 * record.h (record_goto): Declare.
5085 (cmd_record_goto): Remove declaration.
5086 * target-delegates.c: Rebuild.
5087 * target.h (struct target_ops) <to_get_bookmark,
5088 to_goto_bookmark>: Make parameter const.
5089
5090 2014-06-26 Tom Tromey <tromey@redhat.com>
5091
5092 * defs.h (generic_load): Update.
5093 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5094 * monitor.c (monitor_load): Make "args" const.
5095 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5096 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5097 const.
5098 (mips_load): Make "file" const.
5099 * remote-sim.c (gdbsim_load): Make "args" const.
5100 * remote.c (remote_load): Make "name" const.
5101 * symfile.c (generic_load): Make "args" const.
5102 * target-delegates.c: Rebuild.
5103 * target.c (target_load): Make "arg" const.
5104 (debug_to_load): Make "args" const.
5105 * target.h (struct target_ops) <to_load>: Make parameter const.
5106 (target_load): Update.
5107
5108 2014-06-26 Tom Tromey <tromey@redhat.com>
5109
5110 PR symtab/16902:
5111 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5112 (dwarf2_physname, read_partial_die)
5113 (guess_partial_die_structure_name, fixup_partial_die)
5114 (guess_full_die_structure_name, anonymous_struct_prefix)
5115 (dwarf2_name): Use per-BFD obstack.
5116
5117 2014-06-26 Yao Qi <yao@codesourcery.com>
5118
5119 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5120 dummyframe and this_id into inner block below.
5121
5122 2014-06-26 Yao Qi <yao@codesourcery.com>
5123
5124 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5125 with "signal_pass[0]" in the initialization of signal_pass.
5126
5127 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5128
5129 * record-btrace.c (record_btrace_generating_corefile)
5130 (record_btrace_prepare_to_generate_core)
5131 (record_btrace_done_generating_core): New.
5132 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5133 (record_btrace_store_registers, record_btrace_prepare_to_store):
5134 Forward request when generating a core file.
5135 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5136 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5137 to_done_generating_core.
5138
5139 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5140
5141 * target.h (target_ops) <to_prepare_to_generate_core>
5142 <to_done_generating_core>: New.
5143 (target_prepare_to_generate_core, target_done_generating_core): New.
5144 * target.c (target_prepare_to_generate_core)
5145 (target_done_generating_core): New.
5146 * target-delegates.c: Regenerate.
5147 * gcore.c: (write_gcore_file): Rename to ...
5148 (write_gcore_file_1): ...this.
5149 (write_gcore_file): Call target_prepare_to_generate_core
5150 and target_done_generating_core.
5151
5152 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5153
5154 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5155 * gcore.c (write_gcore_file): Free memory returned from
5156 make_corefile_notes.
5157 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5158 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5159
5160 2014-06-24 Yao Qi <yao@codesourcery.com>
5161
5162 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5163 (arm_linux_init_abi): Set skip_trampoline_code with
5164 gdbarch_skip_trampoline_code instead of
5165 find_solib_trampoline_target.
5166
5167 2014-06-24 Yao Qi <yao@codesourcery.com>
5168
5169 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5170 arm_skip_bx_reg returns non-zero.
5171
5172 2014-06-24 Yao Qi <yao@codesourcery.com>
5173
5174 * arm-tdep.c (arm_skip_bx_reg): New function.
5175 (arm_skip_stub): Call arm_skip_bx_reg.
5176
5177 2014-06-23 Don Breazeal <donb@codesourcery.com>
5178
5179 * MAINTAINERS: Add myself as write-after-approval maintainer.
5180
5181 2014-06-23 Pedro Alves <palves@redhat.com>
5182
5183 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5184 DR_CONTROL before setting DR0..DR3.
5185 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5186 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5187 bits of DR_CONTROL related to the debug register slot being
5188 disabled. If all slots are vacant, clear local slowdown as well,
5189 and assert DR_CONTROL is 0.
5190
5191 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5192
5193 * python/lib/gdb/command/xmethods.py
5194 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5195 current progspace only if the string "progspace" matches LOCUS_RE.
5196
5197 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5198
5199 Fix --with-system-readline with readline-6.3 patch 5.
5200 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5201 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5202 types.
5203
5204 2014-06-20 Tom Tromey <tromey@redhat.com>
5205
5206 * dwarf2read.c (dw2_get_real_path): Use correct type in
5207 OBSTACK_CALLOC.
5208 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5209
5210 2014-06-20 Gary Benson <gbenson@redhat.com>
5211
5212 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5213 * common/glibc_thread_db.h: Likewise.
5214 * common/i386-cpuid.h: Likewise.
5215 * common/i386-gcc-cpuid.h: Likewise.
5216 * common/linux-btrace.h: Likewise.
5217 * common/linux-osdata.h: Likewise.
5218 * common/linux-procfs.h: Likewise.
5219 * common/linux-ptrace.h: Likewise.
5220 * common/mips-linux-watch.h: Likewise.
5221 * common/linux-btrace.c: Moved to nat.
5222 * common/linux-osdata.c: Likewise.
5223 * common/linux-procfs.c: Likewise.
5224 * common/linux-ptrace.c: Likewise.
5225 * common/mips-linux-watch.c: Likewise.
5226 * nat/gdb_thread_db.h: Moved from common.
5227 * nat/glibc_thread_db.h: Likewise.
5228 * nat/i386-cpuid.h: Likewise.
5229 * nat/i386-gcc-cpuid.h: Likewise.
5230 * nat/linux-btrace.c: Likewise.
5231 * nat/linux-btrace.h: Likewise.
5232 * nat/linux-osdata.c: Likewise.
5233 * nat/linux-osdata.h: Likewise.
5234 * nat/linux-procfs.c: Likewise.
5235 * nat/linux-procfs.h: Likewise.
5236 * nat/linux-ptrace.c: Likewise.
5237 * nat/linux-ptrace.h: Likewise.
5238 * nat/mips-linux-watch.c: Likewise.
5239 * nat/mips-linux-watch.h: Likewise.
5240 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5241 (object file files): Reordered.
5242 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5243 of glibc_thread_db.h.
5244
5245 2014-06-20 Gary Benson <gbenson@redhat.com>
5246
5247 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5248 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5249 (i386_dr_low): Likewise.
5250 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5251 (i386_dr_low_set_addr): Likewise.
5252 (i386_dr_low_get_addr): Likewise.
5253 (i386_dr_low_can_set_control): Likewise.
5254 (i386_dr_low_set_control): Likewise.
5255 (i386_dr_low_get_control): Likewise.
5256 (i386_dr_low_get_status): Likewise.
5257 (i386_get_debug_register_length): Likewise.
5258 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5259 (i386_dr_low): Likewise.
5260 * nat/i386-dregs.c (i386-low.h): Remove include.
5261 (i386-nat.h): Likewise.
5262 (nat/i386-dregs.h): New include.
5263 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5264 (i386_dr_low_set_addr): Likewise.
5265 (i386_dr_low_get_addr): Likewise.
5266 (i386_dr_low_can_set_control): Likewise.
5267 (i386_dr_low_set_control): Likewise.
5268 (i386_dr_low_get_control): Likewise.
5269 (i386_dr_low_get_status): Likewise.
5270 (i386_get_debug_register_length): Likewise.
5271 (debug_hw_points): Likewise.
5272
5273 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5274
5275 * Makefile.in (SFILES): Add d-exp.y.
5276 (YYFILES): Add d-exp.c.
5277 (YYOBJ): Add d-exp.o.
5278 (local-maintainer-clean): Delete d-exp.c.
5279 * d-exp.y: New file.
5280 * d-lang.h (d_parse): New declaration.
5281 (d_error): New declaration.
5282 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5283 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5284 PREC_ORDER operators.
5285 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5286
5287 2014-06-19 Yao Qi <yao@codesourcery.com>
5288
5289 * gdbthread.h (any_running): Remove the declaration.
5290 * thread.c (any_running): Remove.
5291
5292 2014-06-19 Yao Qi <yao@codesourcery.com>
5293
5294 * gdbthread.h (struct thread_info) <state>: Change its type to
5295 'enum thread_state'. Update comments.
5296
5297 2014-06-19 Pedro Alves <palves@redhat.com>
5298
5299 * gdbthread.h (ALL_THREADS): Delete.
5300 (ALL_NON_EXITED_THREADS): New macro.
5301 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5302 instead of ALL_THREADS.
5303 * infrun.c (find_thread_needs_step_over)
5304 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5305 instead of ALL_THREADS.
5306 * record-btrace.c (record_btrace_open)
5307 (record_btrace_stop_recording, record_btrace_close)
5308 (record_btrace_is_replaying, record_btrace_resume)
5309 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5310 * remote.c (append_pending_thread_resumptions): Likewise.
5311 * thread.c (thread_apply_all_command): Likewise.
5312
5313 2014-06-19 Gary Benson <gbenson@redhat.com>
5314
5315 * i386-nat.c (i386_stopped_by_watchpoint):
5316 Use i386_dr_stopped_by_watchpoint.
5317 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5318 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5319
5320 2014-06-19 Gary Benson <gbenson@redhat.com>
5321
5322 * nat/i386-dregs.c: New file.
5323 * Makefile.in (i386-dregs.o): New rule.
5324 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5325 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5326 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5327 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5328 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5329 * config/i386/go32.mh (NATDEPFILES): Likewise.
5330 * config/i386/linux.mh (NATDEPFILES): Likewise.
5331 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5332 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5333 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5334 * i386-nat.h (debug_hw_points): New declaration.
5335 * i386-nat.c (breakpoint.h): Remove include.
5336 (command.h): Likewise.
5337 (target.h): Likewise.
5338 (gdb_assert.h): Likewise.
5339 (debug_hw_points): Made nonstatic.
5340 (debug_printf): Now in i386-dregs.c.
5341 (TARGET_HAS_DR_LEN_8): Likewise.
5342 (DR_CONTROL_SHIFT): Likewise.
5343 (DR_CONTROL_SIZE): Likewise.
5344 (DR_RW_EXECUTE): Likewise.
5345 (DR_RW_WRITE): Likewise.
5346 (DR_RW_READ): Likewise.
5347 (DR_RW_IORW): Likewise.
5348 (DR_LEN_1): Likewise.
5349 (DR_LEN_2): Likewise.
5350 (DR_LEN_4): Likewise.
5351 (DR_LEN_8): Likewise.
5352 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5353 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5354 (DR_ENABLE_SIZE): Likewise.
5355 (DR_LOCAL_SLOWDOWN): Likewise.
5356 (DR_GLOBAL_SLOWDOWN): Likewise.
5357 (DR_CONTROL_RESERVED): Likewise.
5358 (I386_DR_CONTROL_MASK): Likewise.
5359 (I386_DR_VACANT): Likewise.
5360 (I386_DR_LOCAL_ENABLE): Likewise.
5361 (I386_DR_GLOBAL_ENABLE): Likewise.
5362 (I386_DR_DISABLE): Likewise.
5363 (I386_DR_SET_RW_LEN): Likewise.
5364 (I386_DR_GET_RW_LEN): Likewise.
5365 (I386_DR_WATCH_HIT): Likewise.
5366 (i386_wp_op_t): Likewise.
5367 (i386_show_dr): Likewise.
5368 (i386_length_and_rw_bits): Likewise.
5369 (i386_insert_aligned_watchpoint): Likewise.
5370 (i386_remove_aligned_watchpoint): Likewise.
5371 (i386_handle_nonaligned_watchpoint): Likewise.
5372 (i386_update_inferior_debug_regs): Likewise.
5373 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5374 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5375 (i386_region_ok_for_watchpoint):
5376 Use i386_dr_region_ok_for_watchpoint.
5377 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5378
5379 2014-06-19 Gary Benson <gbenson@redhat.com>
5380
5381 * i386-nat.c (i386_insert_hw_breakpoint): Use
5382 i386_insert_watchpoint.
5383 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5384
5385 2014-06-19 Gary Benson <gbenson@redhat.com>
5386
5387 * i386-nat.c (i386_dr_show): Renamed to
5388 i386_show_dr and made static. All uses updated.
5389 (i386_dr_length_and_rw_bits): Renamed to
5390 i386_length_and_rw_bits and made static.
5391 All uses updated.
5392 (i386_dr_insert_aligned_watchpoint): Renamed to
5393 i386_insert_aligned_watchpoint and made static.
5394 All uses updated.
5395 (i386_dr_remove_aligned_watchpoint): Renamed to
5396 i386_remove_aligned_watchpoint and made static.
5397 All uses updated.
5398 (i386_dr_update_inferior_debug_regs): Renamed to
5399 i386_update_inferior_debug_regs and made static.
5400 All uses updated.
5401 * nat/i386-dregs.h (i386_dr_show): Removed.
5402 (i386_dr_length_and_rw_bits): Likewise.
5403 (i386_dr_insert_aligned_watchpoint): Likewise.
5404 (i386_dr_remove_aligned_watchpoint): Likewise.
5405 (i386_dr_update_inferior_debug_regs): Likewise.
5406
5407 2014-06-19 Gary Benson <gbenson@redhat.com>
5408
5409 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5410 * configure: Regenerate.
5411 * config.in: Likewise.
5412 * main.c (signal.h): New include.
5413 (setup_alternate_signal_stack): New function.
5414 (captured_main): Call the above.
5415 * cp-support.c (signal.h): New include.
5416 (catch_demangler_crashes): New flag.
5417 (SIGJMP_BUF): New define.
5418 (SIGSETJMP): Likewise.
5419 (SIGLONGJMP): Likewise.
5420 (gdb_demangle_jmp_buf): New static global.
5421 (gdb_demangle_attempt_core_dump): Likewise.
5422 (gdb_demangle_signal_handler): New function.
5423 (gdb_demangle): If catch_demangler_crashes is set, install the
5424 above signal handler before calling bfd_demangle, and restore
5425 the original signal handler afterwards. Display the offending
5426 symbol and call demangler_warning the first time a segmentation
5427 fault is caught.
5428 (_initialize_cp_support): New maint set/show command.
5429
5430 2014-06-19 Gary Benson <gbenson@redhat.com>
5431
5432 * utils.h (resource_limit_kind): New enum.
5433 (can_dump_core): New declaration.
5434 (warn_cant_dump_core): Likewise.
5435 (dump_core): Likewise.
5436 * utils.c (dump_core): Made nonstatic. Added new
5437 parameter "limit_kind".
5438 (can_dump_core): Made nonstatic. Moved printing code to...
5439 (warn_cant_dump_core): New function.
5440 (can_dump_core_warn): Likewise.
5441 (internal_vproblem): Replace calls to can_dump_core with
5442 calls to can_dump_core_warn. Supply new argument to each.
5443
5444 2014-06-19 Gary Benson <gbenson@redhat.com>
5445
5446 * utils.h (demangler_vwarning): New declaration.
5447 (demangler_warning): Likewise.
5448 * utils.c (struct internal_problem)
5449 <user_settable_should_quit>: New field.
5450 <user_settable_should_dump_core>: Likewise
5451 (internal_error_problem): Add values for above new fields.
5452 (internal_warning_problem): Likewise.
5453 (demangler_warning_problem): New static global.
5454 (demangler_vwarning): New function.
5455 (demangler_warning): Likewise.
5456 (add_internal_problem_command): Selectively add commands.
5457 (_initialize_utils): New internal problem command.
5458 * maint.c (maintenance_demangler_warning): New function.
5459 (_initialize_maint_cmds): New command.
5460
5461 2014-06-18 Tom Tromey <tromey@redhat.com>
5462
5463 * f-valprint.c (info_common_command_for_block): Update.
5464 * symtab.h (struct general_symbol_info) <common_block>: Now
5465 const.
5466
5467 2014-06-18 Tom Tromey <tromey@redhat.com>
5468
5469 * symtab.h (struct symtab) <blockvector>: Now const.
5470 * ada-lang.c (ada_add_global_exceptions): Update.
5471 * buildsym.c (augment_type_symtab): Update.
5472 * dwarf2read.c (dw2_lookup_symbol): Update.
5473 * jit.c (finalize_symtab): Update.
5474 * jv-lang.c (add_class_symtab_symbol): Update.
5475 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5476 Update.
5477 * objfiles.c (objfile_relocate1): Update.
5478 * psymtab.c (lookup_symbol_aux_psymtabs)
5479 (maintenance_check_psymtabs): Update.
5480 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5481 Update.
5482 * spu-tdep.c (spu_catch_start): Update.
5483 * symmisc.c (dump_symtab_1): Update.
5484 * symtab.c (lookup_global_symbol_from_objfile)
5485 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5486 (basic_lookup_transparent_type_quick)
5487 (basic_lookup_transparent_type, find_pc_sect_symtab)
5488 (find_pc_sect_line, search_symbols): Update.
5489 * block.c (find_block_in_blockvector): Make "bl" const.
5490 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5491 const.
5492 (blockvector_contains_pc): Make "bv" const.
5493 (block_for_pc_sect): Update.
5494 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5495 (blockvector_contains_pc): Update.
5496 * breakpoint.c (resolve_sal_pc): Update.
5497 * inline-frame.c (block_starting_point_at): Update.
5498
5499 2014-06-18 Tom Tromey <tromey@redhat.com>
5500
5501 * completer.c (complete_line): Make "line_buffer" const.
5502 * completer.h (complete_line): Update.
5503
5504 2014-06-18 Tom Tromey <tromey@redhat.com>
5505
5506 * symtab.c (add_macro_name): Remove unneeded cast.
5507
5508 2014-06-18 Tom Tromey <tromey@redhat.com>
5509
5510 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5511 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5512
5513 2014-06-18 Tom Tromey <tromey@redhat.com>
5514
5515 * probe.c (info_probes_for_ops): Make "arg" const.
5516 * probe.h (info_probes_for_ops): Update.
5517
5518 2014-06-18 Tom Tromey <tromey@redhat.com>
5519
5520 * varobj.c (varobj_create): Update.
5521 * valops.c (value_of_this): Update.
5522 * tracepoint.c (add_local_symbols, scope_info): Update.
5523 * symtab.h (struct general_symbol_info) <block>: Now const.
5524 * symtab.c (skip_prologue_sal)
5525 (default_make_symbol_completion_list_break_on)
5526 (skip_prologue_using_sal): Update.
5527 * stack.h (iterate_over_block_locals)
5528 (iterate_over_block_local_vars): Update.
5529 * stack.c (print_frame_args): Update.
5530 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5531 parameter const.
5532 (get_selected_block): Make return type const.
5533 * python/py-frame.c (frapy_block): Update.
5534 * python/py-block.c (gdbpy_block_for_pc): Update.
5535 * p-exp.y (%union) <bval>: Now const.
5536 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5537 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5538 * m2-exp.y (%union) <bval>: Now const.
5539 * linespec.c (get_current_search_block): Make return type const.
5540 (create_sals_line_offset, find_label_symbols): Update.
5541 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5542 Update.
5543 (block_starting_point_at): Make "block" const.
5544 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5545 (check_exception_resume): Update.
5546 * guile/scm-frame.c (gdbscm_frame_block): Update.
5547 * guile/scm-block.c (gdbscm_lookup_block): Update.
5548 * frame.h (get_frame_block): Update.
5549 (get_selected_block): Make return type const.
5550 * frame.c (frame_id_inner): Update.
5551 * f-valprint.c (info_common_command_for_block)
5552 (info_common_command): Update.
5553 * dwarf2loc.c (dwarf2_find_location_expression)
5554 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5555 (locexpr_describe_location_piece): Update.
5556 * c-exp.y (%union) <bval>: Now const.
5557 * breakpoint.c (resolve_sal_pc): Update.
5558 * blockframe.c (get_frame_block):Make return type const.
5559 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5560 (block_innermost_frame): Update.
5561 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5562 (block_for_pc, block_for_pc_sect): Update.
5563 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5564 'pblock' const.
5565 (block_for_pc_sect, block_for_pc): Make return type const.
5566 * ax-gdb.c (gen_expr): Update.
5567 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5568 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5569 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5570 (ada_read_var_value): Update.
5571 * ada-exp.y (struct name_info) <block>: Now const.
5572 (%union): Likewise.
5573 (block_lookup): Constify.
5574
5575 2014-06-18 Gary Benson <gbenson@redhat.com>
5576
5577 * nat/i386-dregs.h: New file.
5578 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5579 * i386-nat.h (i386-dregs.h): New include.
5580 (DR_FIRSTADDR): Now in i386-dregs.h.
5581 (DR_LASTADDR): Likewise.
5582 (DR_NADDR): Likewise.
5583 (DR_STATUS): Likewise.
5584 (DR_CONTROL): Likewise.
5585 (i386_debug_reg_state): Likewise.
5586 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5587
5588 2014-06-18 Don Breazeal <donb@codesourcery.com>
5589
5590 * breakpoint.c (set_longjmp_breakpoint): Call
5591 momentary_breakpoint_from_master with additional argument.
5592 (set_longjmp_breakpoint_for_call_dummy): Call
5593 momentary_breakpoint_from_master with additional argument.
5594 (set_std_terminate_breakpoint): Call
5595 momentary_breakpoint_from_master with additional argument.
5596 (momentary_breakpoint_from_master): Add argument to function
5597 definition and use it to initialize structure member flag.
5598 (clone_momentary_breakpoint): Call
5599 momentary_breakpoint_from_master with additional argument.
5600 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5601 member flags set in momentary_breakpoint_from_master.
5602
5603 2014-06-18 Gary Benson <gbenson@redhat.com>
5604
5605 * i386-nat.c (i386_show_dr): Renamed to
5606 i386_dr_show and made nonstatic. All uses updated.
5607 (i386_length_and_rw_bits): Renamed to
5608 i386_dr_length_and_rw_bits and made nonstatic.
5609 All uses updated.
5610 (i386_insert_aligned_watchpoint): Renamed to
5611 i386_dr_insert_aligned_watchpoint and made nonstatic.
5612 All uses updated.
5613 (i386_remove_aligned_watchpoint): Renamed to
5614 i386_dr_remove_aligned_watchpoint and made nonstatic.
5615 All uses updated.
5616 (i386_update_inferior_debug_regs): Renamed to
5617 i386_dr_update_inferior_debug_regs and made nonstatic.
5618 All uses updated.
5619
5620 2014-06-18 Gary Benson <gbenson@redhat.com>
5621
5622 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5623 (i386_dr_low_can_set_control): Likewise.
5624 (i386_dr_low_set_addr): Likewise.
5625 (i386_dr_low_set_control): Likewise.
5626 (i386_dr_low_get_addr): Likewise.
5627 (i386_dr_low_get_status): Likewise.
5628 (i386_dr_low_get_control): Likewise.
5629 (i386_insert_aligned_watchpoint): Use new macros.
5630 (i386_update_inferior_debug_regs): Likewise.
5631 (i386_stopped_data_address): Likewise.
5632
5633 2014-06-18 Gary Benson <gbenson@redhat.com>
5634
5635 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5636 New parameter. All uses updated.
5637
5638 2014-06-18 Gary Benson <gbenson@redhat.com>
5639
5640 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5641 All uses updated.
5642
5643 2014-06-18 Gary Benson <gbenson@redhat.com>
5644
5645 * i386-nat.c (debug_printf): New macro.
5646 (i386_get_debug_register_length): Likewise.
5647 (TARGET_HAS_DR_LEN_8): Use above macro.
5648 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5649 and printf_unfiltered. Use phex to format values.
5650
5651 2014-06-18 Gary Benson <gbenson@redhat.com>
5652
5653 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5654 Make const.
5655
5656 2014-06-18 Gary Benson <gbenson@redhat.com>
5657
5658 * i386-nat.c: Comment changes.
5659
5660 2014-06-18 Gary Benson <gbenson@redhat.com>
5661
5662 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5663
5664 2014-06-18 Gary Benson <gbenson@redhat.com>
5665
5666 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5667 (i386_insert_aligned_watchpoint): Likewise.
5668 (i386_remove_aligned_watchpoint): Likewise.
5669 (i386_handle_nonaligned_watchpoint): Likewise.
5670
5671 2014-06-18 Gary Benson <gbenson@redhat.com>
5672
5673 * i386-nat.c: Whitespace changes.
5674
5675 2014-06-17 Samuel Bronson <naesten@gmail.com>
5676
5677 * MAINTAINERS: Update Roland McGrath's email address.
5678 Thanks to Sergio Durigan Junior for pointing out that he left
5679 Red Hat a while ago, and giving me a current address.
5680
5681 2014-06-17 Tom Tromey <tromey@redhat.com>
5682
5683 * utils.h (savestring): Remove declaration.
5684
5685 2014-06-17 Tom Tromey <tromey@redhat.com>
5686
5687 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5688
5689 2014-06-16 Keith Seitz <keiths@redhat.com>
5690
5691 PR mi/15863
5692 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5693 to update the varobj if inferior_ptid is null_ptid.
5694
5695 2014-06-16 Tom Tromey <tromey@redhat.com>
5696
5697 * target.h (struct target_ops) <to_info_proc>: Make parameter
5698 const.
5699 (target_info_proc): Update.
5700 * target.c (target_info_proc): Make "args" const.
5701 * procfs.c (procfs_info_proc): Update.
5702 * linux-tdep.c (linux_info_proc): Update.
5703 (linux_core_info_proc_mappings): Make "args" const.
5704 (linux_core_info_proc): Update.
5705 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5706 * gdbarch.c: Rebuild.
5707 * gdbarch.h: Rebuild.
5708 * corelow.c (core_info_proc): Update.
5709
5710 2014-06-16 Tom Tromey <tromey@redhat.com>
5711
5712 * target.h (struct target_ops) <to_disconnect>: Make parameter
5713 const.
5714 (target_disconnect): Update.
5715 * target.c (target_disconnect): Make "args" const.
5716 * target-delegates.c: Rebuild.
5717 * remote.c (remote_disconnect): Update.
5718 * record.h (record_disconnect): Update.
5719 * record.c (record_disconnect): Update.
5720 * inf-child.c (inf_child_disconnect): Update.
5721
5722 2014-06-16 Tom Tromey <tromey@redhat.com>
5723
5724 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5725 * target.c (debug_to_rcmd, default_rcmd): Update.
5726 * target-delegates.c: Rebuild.
5727 * remote.c (remote_rcmd): Update.
5728 * monitor.c (monitor_rcmd): Update.
5729
5730 2014-06-16 Pedro Alves <palves@redhat.com>
5731
5732 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5733 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5734 have OBJF_SHARED set.
5735 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5736 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5737 instead of OBJF_USERLOADED.
5738 * objfiles.h (OBJF_SHARED): Update comment.
5739 (userloaded_objfile_contains_address_p): Rename to ...
5740 (shared_objfile_contains_address_p): ... this, and update
5741 comments.
5742 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5743 new objfile.
5744 (remove_symbol_file_command): Skip objfiles that don't have
5745 OBJF_SHARED set.
5746
5747 2014-06-16 Tom Tromey <tromey@redhat.com>
5748
5749 * minsyms.h (prim_record_minimal_symbol)
5750 (prim_record_minimal_symbol_and_info): Update comments.
5751
5752 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5753
5754 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5755 or --without-guile, according to how GDB was built.
5756
5757 2014-06-13 Tom Tromey <tromey@redhat.com>
5758
5759 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5760 to help_list.
5761 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5762 to help_list.
5763 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5764 help_list.
5765 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5766 help_list.Pass all_commands, not -1, to help_list.
5767 * cli/cli-dump.c (dump_command, append_command)
5768 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5769 (binary_dump_command, binary_append_command): Pass all_commands,
5770 not -1, to help_list.
5771 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5772 -1, to help_list.
5773 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5774 -1, to help_list.
5775 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5776 help_list.
5777 * top.c (set_history): Pass all_commands, not -1, to help_list.
5778 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5779 all_commands, not -1, to help_list.
5780 * symfile.c (overlay_command): Pass all_commands, not -1, to
5781 help_list.
5782 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5783 help_list.
5784 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5785 help_list.
5786 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5787 -1, to help_list.
5788 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5789 not -1, to help_list.
5790 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5791 not -1, to help_list.
5792 * maint.c (maintenance_command, maintenance_info_command)
5793 (maintenance_print_command, maintenance_set_cmd): Pass
5794 all_commands, not -1, to help_list.
5795 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5796 help_list.
5797 * language.c (set_check): Pass all_commands, not -1, to help_list.
5798 * infcmd.c (unset_command): Pass all_commands, not -1, to
5799 help_list.
5800 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5801 help_list.
5802 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5803 help_list.
5804 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5805 help_list.
5806 * breakpoint.c (save_command): Pass all_commands, not -1, to
5807 help_list.
5808 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5809 all_commands, not -1, to help_list.
5810
5811 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5812
5813 * regcache.c (struct register_to_invalidate): New structure.
5814 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5815 functions.
5816 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5817
5818 2014-06-12 Yao Qi <yao@codesourcery.com>
5819
5820 * varobj.c (varobj_get_num_children): Call
5821 varobj_is_dynamic_p.
5822 (varobj_list_children): Likewise.
5823 (varobj_update): Likewise. Update comments.
5824
5825 2014-06-12 Yao Qi <yao@codesourcery.com>
5826
5827 * varobj.c (varobj_pretty_printed_p): Rename to ...
5828 (varobj_is_dynamic_p): ... this. New function.
5829 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5830 (varobj_is_dynamic_p): Declare.
5831 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5832 (mi_print_value_p, varobj_update_one): Likewise.
5833
5834 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5835 Yao Qi <yao@codesourcery.com>
5836
5837 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5838 (varobj_get_iterator): Wrap up code for pretty-printer by
5839 "#if HAVE_PYTHON" and "#endif".
5840 (update_dynamic_varobj_children): Likewise.
5841
5842 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5843 Yao Qi <yao@codesourcery.com>
5844
5845 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5846 gdb_python_initialized is false. Move some code from varobj.c.
5847 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5848 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5849 (struct varobj_item): Moved to varobj-iter.h".
5850 (varobj_clear_saved_item): New function.
5851 (update_dynamic_varobj_children): Move python-related code to
5852 py-varobj.c.
5853 (free_variable): Call varobj_clear_saved_item and
5854 varobj_iter_delete.
5855
5856 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5857 Yao Qi <yao@codesourcery.com>
5858
5859 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5860 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5861 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5862 (py-varobj.o): New rule.
5863 * python/py-varobj.c: New file.
5864 * python/python-internal.h (py_varobj_get_iterator): Declare.
5865 * varobj-iter.h: New file.
5866 * varobj.c: Include "varobj-iter.h"
5867 (struct varobj) <child_iter>: Change its type from "PyObject *"
5868 to "struct varobj_iter *".
5869 <saved_item>: Likewise.
5870 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5871 [HAVE_PYTHON] (varobj_get_iterator): New function.
5872 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5873 python-specific code to python/py-varobj.c.
5874 (install_visualizer): Call varobj_iter_delete instead of
5875 Py_XDECREF.
5876 * varobj.h (varobj_ensure_python_env): Declare.
5877
5878 2014-06-12 Yao Qi <yao@codesourcery.com>
5879
5880 * varobj.c (struct varobj_item): New structure.
5881 (create_child_with_value): Update declaration.
5882 (varobj_add_child): Replace arguments 'name' and 'value' with
5883 'item'. All callers updated.
5884 (install_dynamic_child): Likewise.
5885 (update_dynamic_varobj_children): Likewise.
5886 (varobj_add_child): Likewise.
5887 (create_child_with_value): Likewise.
5888
5889 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5890
5891 * NEWS: Create a new section for the next release branch.
5892 Rename the section of the current branch, now that it has
5893 been cut.
5894
5895 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5896
5897 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5898 * version.in: Bump version to 7.8.50.DATE-cvs.
5899
5900 2014-06-11 Pedro Alves <palves@redhat.com>
5901
5902 PR remote/17028
5903 * ser-mingw.c (net_windows_socket_check_pending): New function.
5904 (net_windows_select_thread): Ignore spurious wakeups. Use
5905 net_windows_socket_check_pending.
5906 (net_windows_wait_handle): Check for pending events with
5907 ioctlsocket, through net_windows_socket_check_pending, instead of
5908 checking the socket's event.
5909
5910 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5911
5912 * python/python-internal.h (gdb_PyObject_GetAttrString)
5913 (gdb_PyObject_HasAttrString): New inline function definitions.
5914 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5915 char * of the second argument to PyObject_GetAttrString.
5916
5917 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5918
5919 * serial.c (serial_write): Fix index of character to be printed
5920 in call to serial_logchar when serial debug traces are enabled.
5921
5922 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5923
5924 * gdbtypes (resolve_dynamic_range): Add function description.
5925
5926 2014-06-09 Pedro Alves <palves@redhat.com>
5927
5928 * linux-nat.c (linux_child_follow_fork): Initialize status with
5929 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5930 inner block. Only pass the signal to PTRACE_DETACH if in pass
5931 state.
5932
5933 2014-06-09 Gary Benson <gbenson@redhat.com>
5934
5935 * common/signals.c (gdb_signal_from_host): Reorder to separate
5936 the always-available ANSI-standard signals from the signals that
5937 require checking.
5938 (do_gdb_signal_to_host): Likewise.
5939 * proc-events.c (signal_table): Likewise.
5940
5941 2014-06-08 Hui Zhu <hui@codesourcery.com>
5942
5943 * common/linux-ptrace.c (linux_disable_event_reporting): New
5944 function.
5945 * common/linux-ptrace.h (linux_disable_event_reporting): New
5946 declaration.
5947 * linux-nat.c (linux_child_follow_fork): Do a single step before
5948 detach.
5949
5950 2014-06-07 Keith Seitz <keiths@redhat.com>
5951
5952 Revert:
5953 PR c++/16253
5954 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5955 from symbol_matches_domain in symtab.c. All local callers
5956 of symbol_matches_domain updated.
5957 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5958 search STRUCT_DOMAIN.
5959 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5960 independently. standard_lookup will do that automatically.
5961 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5962 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5963 (cp_lookup_symbol_in_namespace): Likewise.
5964 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5965 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5966 may return a STRUCT_DOMAIN match.
5967 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5968 * cp-support.c: Include language.h.
5969 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5970 VAR_DOMAIN.
5971 * psymtab.c (match_partial_symbol): Compare the requested
5972 domain with the symbol's domain directly.
5973 (lookup_partial_symbol): Likewise.
5974 * symtab.c (lookup_symbol_in_language): Explain when/why
5975 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5976 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5977 appropriate languages.
5978 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5979 and moved to ada-lang.c
5980 (lookup_block_symbol): Explain that this function only returns
5981 symbol matching the requested DOMAIN.
5982 Compare the requested domain with the symbol's domain directly.
5983 (iterate_over_symbols): Compare the requested domain with the
5984 symbol's domain directly.
5985 * symtab.h (symbol_matches_domain): Remove.
5986
5987 2014-06-06 Doug Evans <xdje42@gmail.com>
5988
5989 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5990 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5991 (gdbscm_guile_version_is_at_least): Declare.
5992 (gdbscm_scm_string_to_int): Declare.
5993 * guile/guile.c (gdbscm_guile_major_version): New global.
5994 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5995 (guile_datadir): New static global.
5996 (gdbscm_guile_data_directory): New function.
5997 (initialize_scheme_side): Update.
5998 (misc_guile_functions): Add guile-data-directory.
5999 (initialize_gdb_module): Fetch guile version number.
6000 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6001 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6002 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6003 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6004 comments.
6005 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6006 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6007 * guile/scm-value.c (gdbscm_value_to_string): Only call
6008 scm_port_conversion_strategy if Guile version >= 2.0.6.
6009
6010 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6011
6012 * main.c (print_gdb_help): Add -q and --silent.
6013
6014 2014-06-06 Gary Benson <gbenson@redhat.com>
6015
6016 * common/signals.c: Remove preprocessor conditionals for
6017 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6018 SIGSEGV and SIGTERM.
6019 * proc-events.c: Likewise.
6020
6021 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6022
6023 * symfile.c (symfile_free_objfile): Remove restriction to
6024 OBJF_USERLOADED.
6025 * symfile-mem.c (symbol_file_add_from_memory): Call
6026 add_target_sections_of_objfile.
6027
6028 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6029
6030 * guile/scm-value.c (gdbscm_history_append_x): Use
6031 'vlscm_get_value_smob_arg_unsafe' instead of
6032 'vlscm_scm_to_value'.
6033
6034 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6035
6036 PR mi/15806
6037 * utils.c (printchar): Don't escape at all if quoter is NUL.
6038 Update function documentation to clarify effect of parameter
6039 QUOTER.
6040 * remote.c (escape_buffer): Pass '\\' as the quoter to
6041 fputstrn_unfiltered.
6042 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6043 generate the output.
6044 (mi_solib_unloaded): Same.
6045
6046 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6047
6048 * development.sh: Delete.
6049 * Makefile.in (config.status): Adjust dependency on development.sh.
6050 * configure.ac: Adjust development.sh source call.
6051 * configure: Regenerate.
6052
6053 2014-06-04 Doug Evans <xdje42@gmail.com>
6054
6055 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6056 is_scheme_bkpt, spec.
6057 (bpscm_make_breakpoint_smob): Initialize new members.
6058 (gdbscm_create_breakpoint_x): Split into two ...
6059 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6060 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6061 (scheme_function breakpoint_functions): Update.
6062 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6063 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6064 register-breakpoint!.
6065
6066 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6067
6068 PR server/17023
6069 * mem-break.c (z_type_supported): Return zero if
6070 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6071
6072 2014-06-04 Tom Tromey <tromey@redhat.com>
6073
6074 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6075 value_from_contents_and_address_unresolved.
6076 (ada_template_to_fixed_record_type_1): Likewise.
6077 (ada_which_variant_applies): Likewise.
6078 * value.h (value_from_contents_and_address_unresolved): Declare.
6079 * value.c (value_from_contents_and_address_unresolved): New
6080 function.
6081 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6082 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6083 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6084
6085 2014-06-04 Tom Tromey <tromey@redhat.com>
6086
6087 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6088
6089 2014-06-04 Tom Tromey <tromey@redhat.com>
6090
6091 * procfs.c (procfs_attach): Make "args" const.
6092 * windows-nat.c (windows_attach): Make "args" const.
6093 * nto-procfs.c (procfs_attach): Make "args" const.
6094 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6095 * go32-nat.c (go32_attach): Make "args" const.
6096 * gnu-nat.c (gnu_attach): Make "args" const.
6097 * darwin-nat.c (darwin_attach): Make "args" const.
6098 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6099 * linux-nat.c (linux_nat_attach): Make "args" const.
6100 * remote.c (extended_remote_attach_1, extended_remote_attach):
6101 Make "args" const.
6102 * target.h (struct target_ops) <to_attach>: Make "args" const.
6103 (find_default_attach): Likewise.
6104 * utils.c (parse_pid_to_attach): Make "args" const.
6105 * utils.h (parse_pid_to_attach): Update.
6106
6107 2014-06-04 Tom Tromey <tromey@redhat.com>
6108
6109 * target-delegates.c: Rebuild.
6110 * target.c (default_thread_address_space): New function.
6111 (target_thread_address_space): Simplify.
6112 * target.h (struct target_ops) <to_thread_address_space>: Add
6113 TARGET_DEFAULT_FUNC.
6114
6115 2014-06-04 Doug Evans <xdje42@gmail.com>
6116
6117 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6118
6119 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6120
6121 * record-btrace.c: Include event-loop.h and inf-loop.h.
6122 (record_btrace_resume_exec_dir)
6123 (record_btrace_async_inferior_event_handler)
6124 (record_btrace_handle_async_inferior_event): New.
6125 (record_btrace_open): Create async event handler.
6126 (record_btrace_close): Delete async event handler.
6127 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6128 Mark async event handler.
6129 (record_btrace_execution_direction): New.
6130 (init_record_btrace_ops): Initialize to_execution_direction.
6131
6132 2014-06-03 Doug Evans <xdje42@gmail.com>
6133
6134 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6135 (gdbscm_make_parameter): Ditto.
6136
6137 2014-06-03 Doug Evans <dje@google.com>
6138
6139 * exec.c (exec_close_1): Call clear_section_table instead of
6140 resize_section_table.
6141 (clear_section_table): New function.
6142 (resize_section_table): Make static. Rename arg num_added to
6143 adjustment.
6144 * exec.h (clear_section_table): Declare.
6145 (resize_section_table): Delete.
6146 * progspace.c (release_program_space): Call clear_section_table
6147 instead of resize_section_table.
6148
6149 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6150
6151 * NEWS (Python Scripting): Add entry about the new xmethods
6152 feature.
6153
6154 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6155
6156 * python/py-xmethods.c: New file.
6157 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6158 (objfpy_dealloc): XDECREF on the new xmethods field.
6159 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6160 field.
6161 (objfpy_get_xmethods): New function.
6162 (objfile_getset): New entry 'xmethods'.
6163 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6164 (pspy_dealloc): XDECREF on the new xmethods field.
6165 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6166 field.
6167 (pspy_get_xmethods): New function.
6168 (pspace_getset): New entry 'xmethods'.
6169 * python/python-internal.h: Add declarations for new functions.
6170 * python/python.c (_initialize_python): Invoke
6171 gdbpy_initialize_xmethods.
6172 * python/lib/gdb/__init__.py (xmethods): New
6173 attribute.
6174 * python/lib/gdb/xmethod.py: New file.
6175 * python/lib/gdb/command/xmethods.py: New file.
6176
6177 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6178
6179 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6180 best match method returned by find_overload_match is an xmethod.
6181 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6182 the best matching operator returned by find_overload_match is an
6183 xmethod.
6184 * valops.c: #include "extension.h".
6185 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6186 Return void. The list of matching source methods is returned in
6187 "fn_list" and a vector of matching debug method workers is
6188 returned in "xm_worker_vec". Update all callers.
6189 (value_find_oload_method_list): Likewise.
6190 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6191 non-NULL, then the index of the best matching method in this
6192 vector is returned. Update all callers.
6193 (find_overload_match): Include xmethods while performing overload
6194 resolution.
6195
6196 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6197
6198 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6199 * extension-priv.h (struct extension_language_ops): Add the
6200 xmethod interface.
6201 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6202 get_matching_xmethod_workers, get_xmethod_argtypes,
6203 invoke_xmethod, free_xmethod_worker,
6204 free_xmethod_worker_vec): New functions.
6205 * extension.h: #include "common/vec.h".
6206 New function declarations.
6207 (struct xmethod_worker): New struct.
6208 (VEC (xmethod_worker_ptr)): New vector type.
6209 (xmethod_worker_ptr): New typedef.
6210 (xmethod_worker_vec): Likewise.
6211 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6212 builtin_type.
6213 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6214 (struct builtin_type): New field "xmethod".
6215 * valarith.c (value_ptradd): Assert that the value argument is not
6216 lval_xcallable.
6217 * valops.c (value_must_coerce_to_target): Return 0 for
6218 lval_xcallable values.
6219 * value.c (struct value): New field XM_WORKER in the field
6220 LOCATION.
6221 (value_address, value_raw_address): Return 0 for lval_xcallable
6222 values.
6223 (set_value_address): Assert that the value is not an
6224 lval_xcallable.
6225 (value_free): Free the associated xmethod worker when freeing
6226 lval_xcallable values.
6227 (set_value_component_location): Assert that the WHOLE value is not
6228 lval_xcallable.
6229 (value_of_xmethod, call_xmethod): New functions.
6230 * value.h: Declare "struct xmethod_worker".
6231 Declare new functions value_of_xmethod, call_xmethod.
6232
6233 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6234 Pedro Alves <palves@redhat.com>
6235
6236 PR breakpoints/17000
6237 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6238 New function, extracted from software_breakpoint_inserted_here_p.
6239 (software_breakpoint_inserted_here_p): Replace factored out code
6240 by call to find_non_raw_software_breakpoint_inserted_here.
6241 (bp_target_info_copy_insertion_state): New function.
6242 (bkpt_insert_location): Handle the case of a single-step
6243 breakpoint already inserted at the same address.
6244 (bkpt_remove_location): Handle the case of a single-step
6245 breakpoint still inserted at the same address.
6246 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6247 breakpoint already inserted at the same address.
6248 (deprecated_remove_raw_breakpoint): Handle the case of a
6249 non-raw breakpoint still inserted at the same address.
6250 (find_single_step_breakpoint): New function, extracted from
6251 single_step_breakpoint_inserted_here_p.
6252 (find_single_step_breakpoint): New function,
6253 factored out from single_step_breakpoint_inserted_here_p.
6254 (single_step_breakpoint_inserted_here_p): Reimplement.
6255
6256 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6257
6258 Pushed by Joel Brobecker <brobecker@adacore.com>
6259 * source.c (show_substitute_path_command): Fix display of matching
6260 substitution rules.
6261
6262 2014-06-03 Gary Benson <gbenson@redhat.com>
6263
6264 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6265
6266 2014-06-02 Doug Evans <xdje42@gmail.com>
6267
6268 Add parameter support for Guile.
6269 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6270 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6271 (scm-param.o): New rule.
6272 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6273 (gdbscm_misc_error): Declare.
6274 (gdbscm_canonicalize_command_name): Declare.
6275 (gdbscm_scm_to_host_string): Declare.
6276 (gdbscm_scm_from_host_string): Declare.
6277 (gdbscm_initialize_parameters): Declare.
6278 * guile/guile.c (initialize_gdb_module): Call
6279 gdbscm_initialize_parameters.
6280 * guile/lib/gdb.scm: Export parameter symbols.
6281 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6282 cmdscm_canonicalize_name and made public. All callers updated.
6283 * guile/scm-exception.c (gdbscm_misc_error): New function.
6284 * guile/scm-param.c: New file.
6285 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6286 (gdbscm_scm_to_host_string): New function.
6287 (gdbscm_scm_from_host_string): New function.
6288 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6289
6290 2014-06-02 Doug Evans <xdje42@gmail.com>
6291
6292 Add command support for Guile.
6293 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6294 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6295 (scm-cmd.o): New rule.
6296 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6297 (gdbscm_user_error_p): Declare.
6298 (gdbscm_parse_command_name): Declare.
6299 (gdbscm_valid_command_class_p): Declare.
6300 (gdbscm_initialize_commands): Declare.
6301 * guile/guile.c (initialize_gdb_module): Call
6302 gdbscm_initialize_commands.
6303 * guile/lib/gdb.scm: Export command symbols.
6304 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6305 (throw-user-error): New function.
6306 * guile/scm-cmd.c: New file.
6307 * guile/scm-exception.c (user_error_symbol): New static global.
6308 (gdbscm_user_error_p): New function.
6309 (gdbscm_initialize_exceptions): Set user_error_symbol.
6310 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6311
6312 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6313
6314 * top.c (command_loop): Handle comments here...
6315 (command_line_input): ... not here.
6316
6317 2014-06-02 Doug Evans <xdje42@gmail.com>
6318
6319 Add progspace support for Guile.
6320 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6321 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6322 (scm-progspace.o): New rule.
6323 * guile/guile-internal.h (pspace_smob): New typedef.
6324 (psscm_pspace_smob_pretty_printers): Declare.
6325 (psscm_pspace_smob_from_pspace): Declare.
6326 (psscm_scm_from_pspace): Declare.
6327 * guile/guile.c (initialize_gdb_module): Call
6328 gdbscm_initialize_pspaces.
6329 * guile/lib/gdb.scm: Export progspace symbols.
6330 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6331 support.
6332 (append-pretty-printer!): Ditto.
6333 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6334 Implement.
6335 * guile/scm-progspace.c: New file.
6336
6337 2014-06-03 Alan Modra <amodra@gmail.com>
6338
6339 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6340 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6341
6342 2014-06-02 Doug Evans <dje@google.com>
6343
6344 Add support for skeletonless type units.
6345 * dwarf2read.c (struct dwarf2_per_objfile): New member
6346 n_allocated_type_units.
6347 (struct dwarf2_per_objfile) <tu_stats>: New member
6348 nr_all_type_units_reallocs.
6349 (create_signatured_type_table_from_index): Initialize
6350 n_allocated_type_units
6351 (create_all_type_units): Ditto.
6352 (add_type_unit): Move up in file. New arg slot.
6353 All callers updated. Increase space for all_type_units more
6354 efficiently.
6355 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6356 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6357 (lookup_dwp_signatured_type): Ditto.
6358 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6359 All callers updated.
6360 (build_type_psymtabs_1): Leave type_unit_groups as
6361 NULL if no TUs present.
6362 (print_tu_stats): New function.
6363 (process_skeletonless_type_unit): New function.
6364 (process_dwo_file_for_skeletonless_type_units): New
6365 function.
6366 (process_skeletonless_type_units): New function.
6367 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6368 Call print tu_stats if debugging enabled.
6369
6370 2014-06-02 Pedro Alves <palves@redhat.com>
6371
6372 * breakpoint.c (build_target_command_list): Don't build a command
6373 list if we have any duplicate location that isn't a dprintf.
6374
6375 2014-06-02 Pedro Alves <palves@redhat.com>
6376
6377 * breakpoint.c (dprintf_breakpoint_hit): New function.
6378 (initialize_breakpoint_ops): Install it as dprintf's
6379 breakpoint_hit method.
6380
6381 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6382
6383 * source.c (substitute_path_rule_matches): Simplify using
6384 filename_ncmp instead of FILENAME_CMP.
6385
6386 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6387
6388 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6389
6390 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6391
6392 * configure.ac: When Guile is available, check for the
6393 availability of 'scm_new_smob'.
6394 * configure, config.h.in: Regenerate.
6395 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6396 function.
6397
6398 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6399
6400 * frame.c (struct frame_info): Add stop_string field.
6401 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6402 (get_prev_frame_always): Old content moved into
6403 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6404 TRY_CATCH, handle MEMORY_ERROR exceptions.
6405 (frame_stop_reason_string): New function definition.
6406 * frame.h (unwind_stop_reason_to_string): Extend comment to
6407 mention frame_stop_reason_string.
6408 (frame_stop_reason_string): New function declaration.
6409 * stack.c (frame_info): Switch to frame_stop_reason_string.
6410 (backtrace_command_1): Switch to frame_stop_reason_string.
6411 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6412 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6413 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6414
6415 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6416
6417 * frame.c (frame_stop_reason_string): Rename to ...
6418 (unwind_stop_reason_to_string): this.
6419 * frame.h (frame_stop_reason_string): Rename to ...
6420 (unwind_stop_reason_to_string): this.
6421 * stack.c (frame_info): Update call to frame_stop_reason_string.
6422 (backtrace_command_1): Likewise.
6423 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6424 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6425
6426 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6427
6428 * frame.c (remove_prev_frame): New function.
6429 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6430 remove_prev_frame.
6431
6432 2014-05-29 Pedro Alves <palves@redhat.com>
6433
6434 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6435 and make it const. When a single-step decays to a continue,
6436 clear 'step', not 'hw_step'. Pass whether the caller wanted
6437 to step to user_visible_resume_ptid, not what we ask the
6438 target to do.
6439
6440 2014-05-29 Pedro Alves <palves@redhat.com>
6441
6442 * infrun.c (process_event_stop_test, handle_step_into_function)
6443 (handle_step_into_function_backward): Adjust.
6444 Don't set the even thread's stop_step and call stop_waiting before
6445 calling end_stepping_range. Instead do that ...
6446 (end_stepping_range): ... here. Take an ecs pointer parameter.
6447
6448 2014-05-29 Pedro Alves <palves@redhat.com>
6449
6450 * infrun.c (stop_stepping): Rename to ...
6451 (stop_waiting): ... this.
6452 (proceed): Update comment.
6453 (process_event_stop_test, handle_inferior_event)
6454 (handle_signal_stop, handle_step_into_function)
6455 (handle_step_into_function_backward): Update.
6456
6457 2014-05-29 Pedro Alves <palves@redhat.com>
6458
6459 * infcall.c (run_inferior_call): Don't check whether the current
6460 thread is running after the proceed call.
6461
6462 2014-05-29 Pedro Alves <palves@redhat.com>
6463 Tom Tromey <tromey@redhat.com>
6464
6465 * NEWS: Mention "maint set target-async", "set mi-async", and that
6466 background execution commands are now always available.
6467 * target.h (target_async_permitted): Update comment.
6468 * target.c (target_async_permitted, target_async_permitted_1):
6469 Default to 1.
6470 (set_target_async_command): Rename to ...
6471 (maint_set_target_async_command): ... this.
6472 (show_target_async_command): Rename to ...
6473 (maint_show_target_async_command): ... this.
6474 (_initialize_target): Adjust.
6475 * infcmd.c (prepare_execution_command): Make extern.
6476 * inferior.h (prepare_execution_command): Declare.
6477 * infrun.c (set_observer_mode): Leave target async alone.
6478 * mi/mi-interp.c (mi_interpreter_init): Install
6479 mi_on_sync_execution_done as sync_execution_done observer.
6480 (mi_on_sync_execution_done): New function.
6481 (mi_execute_command_input_handler): Don't print the prompt if we
6482 just started a synchronous command with an async target.
6483 (mi_on_resume): Check sync_execution before printing prompt.
6484 * mi/mi-main.h (mi_async_p): Declare.
6485 * mi/mi-main.c: Include gdbcmd.h.
6486 (mi_async_p): New function.
6487 (mi_async, mi_async_1): New globals.
6488 (set_mi_async_command, show_mi_async_command, mi_async): New
6489 functions.
6490 (exec_continue): Call prepare_execution_command.
6491 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6492 (mi_execute_async_cli_command): Use mi_async_p.
6493 (_initialize_mi_main): Install "set mi-async". Make
6494 "target-async" a deprecated alias.
6495
6496 2014-05-29 Pedro Alves <palves@redhat.com>
6497
6498 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6499 (_initialize_cli_interp): Adjust.
6500 * event-loop.c: Include "observer.h".
6501 (start_event_loop): Notify 'command_error' observers instead of
6502 calling display_gdb_prompt. Remove FIXME comment.
6503 * event-top.c (display_gdb_prompt): Remove call into the
6504 interpreters.
6505 * inf-loop.c: Include "observer.h".
6506 (inferior_event_handler): Notify 'command_error' observers instead
6507 of calling display_gdb_prompt.
6508 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6509 observers instead of calling display_gdb_prompt.
6510 * interps.c (interp_set): Don't call display_gdb_prompt.
6511 (current_interp_display_prompt_p): Delete.
6512 * interps.h (interp_prompt_p): Delete declaration.
6513 (interp_prompt_p_ftype): Delete.
6514 (struct interp_procs) <prompt_proc_p>: Delete field.
6515 (current_interp_display_prompt_p): Delete declaration.
6516 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6517 (_initialize_mi_interp): Adjust.
6518 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6519 'command_error' observers.
6520 (tui_on_sync_execution_done, tui_on_command_error): New
6521 functions.
6522 (tui_display_prompt_p): Delete.
6523 (_initialize_tui_interp): Adjust.
6524
6525 2014-05-29 Pedro Alves <palves@redhat.com>
6526
6527 PR gdb/13860
6528 * cli/cli-interp.c: Include infrun.h and observer.h.
6529 (cli_uiout, cli_interp): New globals.
6530 (cli_on_signal_received, cli_on_end_stepping_range)
6531 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6532 functions.
6533 (cli_interpreter_init): Install them as 'end_stepping_range',
6534 'signal_received' 'signal_exited', 'exited' and 'no_history'
6535 observers.
6536 (_initialize_cli_interp): Remove cli_interp local.
6537 * infrun.c (handle_inferior_event): Call the several stop reason
6538 observers instead of printing the stop reason directly.
6539 (end_stepping_range): New function.
6540 (print_end_stepping_range_reason, print_signal_exited_reason)
6541 (print_exited_reason, print_signal_received_reason)
6542 (print_no_history_reason): Make static, and add an uiout
6543 parameter. Print to that instead of to CURRENT_UIOUT.
6544 * infrun.h (print_end_stepping_range_reason)
6545 (print_signal_exited_reason, print_exited_reason)
6546 (print_signal_received_reason print_no_history_reason): New
6547 declarations.
6548 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6549 'mi_uiout'.
6550 <cli_uiout>: New field.
6551 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6552 uiout for CLI output. Install 'signal_received',
6553 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6554 observers.
6555 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6556 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6557 (mi_on_no_history): New functions.
6558 (ui_out_free_cleanup): Delete function.
6559 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6560 instead use the one already stored in the MI interpreter data.
6561 (mi_ui_out): Adjust.
6562 * tui/tui-interp.c: Include infrun.h and observer.h.
6563 (tui_interp): New global.
6564 (tui_on_signal_received, tui_on_end_stepping_range)
6565 (tui_on_signal_exited, tui_on_exited)
6566 (tui_on_no_history): New functions.
6567 (tui_init): Install them as 'end_stepping_range',
6568 'signal_received' 'signal_exited', 'exited' and 'no_history'
6569 observers.
6570 (_initialize_tui_interp): Delete tui_interp local.
6571
6572 2014-05-29 Pedro Alves <palves@redhat.com>
6573
6574 PR gdb/15713
6575 * linux-nat.c (linux_nat_resume_callback): Rename the second
6576 parameter to 'except'. Skip LP if it points to EXCEPT.
6577 (linux_nat_resume): Don't mark the event lwp as not stopped
6578 before resuming sibling lwps. Instead ask
6579 linux_nat_resume_callback to skip the event lwp. Mark it as not
6580 stopped after actually resuming it.
6581 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6582 resuming it.
6583 (wait_lwp): Mark the lwp as stopped here.
6584 (stop_wait_callback): Mark the lwp as not stopped right after
6585 resuming it. Don't mark lwps as stopped here.
6586 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6587 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6588
6589 2014-05-29 Pedro Alves <palves@redhat.com>
6590
6591 PR PR15693
6592 * infrun.c (resume): Determine how much to resume depending on
6593 whether the caller wanted a step, not whether we can hardware step
6594 the target. Mark all threads that we intend to run as running,
6595 unless we're calling an inferior function.
6596 (normal_stop): If the thread is running an infcall, don't finish
6597 thread state.
6598 * target.c (target_resume): Don't mark threads as running here.
6599
6600 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6601
6602 * serial.c (_initialize_serial): Remove support for
6603 the "set remotebaud" and "show remotebaud" commands.
6604 * NEWS: Add entry documenting the removal of that command.
6605
6606 2014-05-28 Yao Qi <yao@codesourcery.com>
6607
6608 * charset.c: Fix typo in comments.
6609
6610 2014-05-27 Gary Benson <gbenson@redhat.com>
6611
6612 * utils.c (internal_vproblem): Prompt for a bug report.
6613
6614 2014-05-26 Andy Wingo <wingo@igalia.com>
6615
6616 * guile/scm-arch.c (arscm_mark_arch_smob):
6617 * guile/scm-block.c (bkscm_mark_block_smob)
6618 (bkscm_mark_block_syms_progress_smob):
6619 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6620 * guile/scm-exception.c (exscm_mark_exception_smob):
6621 * guile/scm-frame.c (frscm_mark_frame_smob):
6622 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6623 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6624 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6625 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6626 (ppscm_mark_pretty_printer_worker_smob):
6627 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6628 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6629 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6630 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6631 mark functions.
6632 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6633 function.
6634
6635 2014-05-26 Andy Wingo <wingo@igalia.com>
6636 Doug Evans <xdje42@gmail.com>
6637
6638 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6639 empty_base_class. All uses updated.
6640 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6641 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6642 Adapt all callers.
6643 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6644 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6645 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6646 (gdbscm_gsmob_has_property_p, add_property_name)
6647 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6648 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6649 (gdb-object-has-property?, gdb-object-properties): Remove.
6650 (gdb-object-kind): Renamed from gsmob-kind.
6651
6652 2014-05-26 Andy Wingo <wingo@igalia.com>
6653
6654 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6655 * configure: Regenerate.
6656
6657 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6658
6659 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6660
6661 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6662
6663 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6664 (replay_memory_access_read_only, replay_memory_access_read_write)
6665 (replay_memory_access_types, replay_memory_access)
6666 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6667 (cmd_set_record_btrace, cmd_show_record_btrace)
6668 (cmd_show_replay_memory_access): New.
6669 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6670 (record_btrace_remove_breakpoint): Replace
6671 record_btrace_allow_memory_access with replay_memory_access.
6672 (_initialize_record_btrace): Add commands.
6673 * NEWS: Announce it.
6674
6675 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6676
6677 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6678
6679 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6680
6681 * MAINTAINERS (Write After Approval): Move self back from
6682 paper trail.
6683
6684 2014-05-22 Pedro Alves <palves@redhat.com>
6685
6686 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6687 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6688 (disable_randomization, enum exec_direction_kind)
6689 (execution_direction, stop_registers, start_remote)
6690 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6691 (wait_for_inferior, normal_stop, get_last_target_status)
6692 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6693 (insert_step_resume_breakpoint_at_sal)
6694 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6695 (set_step_info, print_stop_event, signal_stop_state)
6696 (signal_print_state, signal_pass_state, signal_stop_update)
6697 (signal_print_update, signal_pass_update)
6698 (update_signals_program_target, clear_exit_convenience_vars)
6699 (displaced_step_dump_bytes, update_observer_mode)
6700 (signal_catch_update, gdb_signal_from_command): Move
6701 declarations ...
6702 * infrun.h: ... to this new file.
6703 * amd64-tdep.c: Include infrun.h.
6704 * annotate.c: Include infrun.h.
6705 * arch-utils.c: Include infrun.h.
6706 * arm-linux-tdep.c: Include infrun.h.
6707 * arm-tdep.c: Include infrun.h.
6708 * break-catch-sig.c: Include infrun.h.
6709 * breakpoint.c: Include infrun.h.
6710 * common/agent.c: Include infrun.h instead of inferior.h.
6711 * corelow.c: Include infrun.h.
6712 * event-top.c: Include infrun.h.
6713 * go32-nat.c: Include infrun.h.
6714 * i386-tdep.c: Include infrun.h.
6715 * inf-loop.c: Include infrun.h.
6716 * infcall.c: Include infrun.h.
6717 * infcmd.c: Include infrun.h.
6718 * infrun.c: Include infrun.h.
6719 * linux-fork.c: Include infrun.h.
6720 * linux-nat.c: Include infrun.h.
6721 * linux-thread-db.c: Include infrun.h.
6722 * monitor.c: Include infrun.h.
6723 * nto-tdep.c: Include infrun.h.
6724 * procfs.c: Include infrun.h.
6725 * record-btrace.c: Include infrun.h.
6726 * record-full.c: Include infrun.h.
6727 * remote-m32r-sdi.c: Include infrun.h.
6728 * remote-mips.c: Include infrun.h.
6729 * remote-notif.c: Include infrun.h.
6730 * remote-sim.c: Include infrun.h.
6731 * remote.c: Include infrun.h.
6732 * reverse.c: Include infrun.h.
6733 * rs6000-tdep.c: Include infrun.h.
6734 * s390-linux-tdep.c: Include infrun.h.
6735 * solib-irix.c: Include infrun.h.
6736 * solib-osf.c: Include infrun.h.
6737 * solib-svr4.c: Include infrun.h.
6738 * target.c: Include infrun.h.
6739 * top.c: Include infrun.h.
6740 * windows-nat.c: Include infrun.h.
6741 * mi/mi-interp.c: Include infrun.h.
6742 * mi/mi-main.c: Include infrun.h.
6743 * python/py-threadevent.c: Include infrun.h.
6744
6745 2014-05-22 Pedro Alves <palves@redhat.com>
6746
6747 * infrun.c (handle_inferior_event): Store the exit code for
6748 --return-child-result here, instead of ...
6749 (print_exited_reason): ... here.
6750
6751 2014-05-21 Pedro Alves <palves@redhat.com>
6752
6753 PR gdb/13860
6754 * gdbthread.h (struct thread_control_state): New field
6755 `command_interp'.
6756 * infrun.c (follow_fork): Copy the new thread control field to the
6757 child fork thread.
6758 (clear_proceed_status_thread): Clear the new thread control field.
6759 (proceed): Set the new thread control field.
6760 * interps.h (command_interp): Declare.
6761 * interps.c (command_interpreter): New global.
6762 (command_interp): New function.
6763 (interp_exec): Set `command_interpreter' while here.
6764 * cli-out.c (cli_uiout_dtor): New function.
6765 (cli_ui_out_impl): Install it.
6766 * mi/mi-interp.c: Include cli-out.h.
6767 (mi_cmd_interpreter_exec): Add comment.
6768 (restore_current_uiout_cleanup): New function.
6769 (ui_out_free_cleanup): New function.
6770 (mi_on_normal_stop): If finishing an execution command started by
6771 a CLI command, or any kind of breakpoint-like event triggered,
6772 print the stop event to the output (CLI) stream.
6773 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6774
6775 2014-05-21 Pedro Alves <palves@redhat.com>
6776
6777 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6778 current source line having changed.
6779 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6780 * infrun.c (normal_stop): Adjust call to
6781 set_current_sal_from_frame.
6782 * source.c (clear_lines_listed_range): New function.
6783 (set_current_source_symtab_and_line, identify_source_line): Clear
6784 the lines listed range.
6785 (line_info): Handle the first "info line" after the current source
6786 line having changed.
6787 * stack.c (print_stack_frame): Remove center handling.
6788 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6789 center sal.line.
6790
6791 2014-05-21 Pedro Alves <palves@redhat.com>
6792
6793 * inf-child.c (inf_child_mourn_inferior): New function.
6794 * inf-child.h (inf_child_mourn_inferior): New declaration.
6795 * darwin-nat.c (darwin_mourn_inferior): Use
6796 inf_child_mourn_inferior.
6797 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6798 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6799 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6800 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6801 * windows-nat.c (windows_mourn_inferior): Likewise.
6802
6803 2014-05-21 Doug Evans <xdje42@gmail.com>
6804
6805 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6806
6807 2014-05-21 Doug Evans <xdje42@gmail.com>
6808
6809 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6810 (gdbscm_out_of_range_error): Ditto.
6811 (gdbscm_memory_error): Ditto.
6812 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6813 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6814 (gdbscm_out_of_range_error): Update.
6815 (gdbscm_memory_error): Update.
6816 (gdbscm_scm_to_target_string_unsafe): Delete.
6817
6818 2014-05-21 Pedro Alves <palves@redhat.com>
6819
6820 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6821 globals.
6822 (inf_child_open_target): New function.
6823 (inf_child_open): Use inf_child_open_target to push the target
6824 instead of erroring out.
6825 (inf_child_disconnect, inf_child_close)
6826 (inf_child_maybe_unpush_target): New functions.
6827 (inf_child_target): Install inf_child_disconnect and
6828 inf_child_close. Store a pointer to the returned object.
6829 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6830 declarations.
6831 * target.c (auto_connect_native_target): New global.
6832 (show_default_run_target): New function.
6833 (find_default_run_target): Return NULL if automatically connecting
6834 to the native target is disabled.
6835 (_initialize_target): Install set/show auto-connect-native-target.
6836 * NEWS: Mention "set auto-connect-native-target", and "target
6837 native".
6838 * linux-nat.c (super_close): New global.
6839 (linux_nat_close): Call super_close.
6840 (linux_nat_add_target): Store a pointer to the base class's
6841 to_close method.
6842 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6843 inf_child_maybe_unpush.
6844 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6845 already pushed.
6846 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6847 the inferior. Use inf_child_maybe_unpush_target.
6848 (inf_ttrace_attach): Don't push the target if it is already
6849 pushed.
6850 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6851 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6852 after mourning the inferior. Use inf_child_maybe_unpush_target.
6853 (darwin_attach_pid): Don't push the target if it is already
6854 pushed.
6855 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6856 mourning the inferior. Use inf_child_maybe_unpush_target.
6857 (gnu_detach): Use inf_child_maybe_unpush_target.
6858 * go32-nat.c (go32_create_inferior): Don't push the target if it
6859 is already pushed.
6860 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6861 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6862 (procfs_open): Rename to ...
6863 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6864 comments. Can target_preopen before changing node. Call
6865 inf_child_open_target to push the target explicitly.
6866 (procfs_attach): Don't push the target if it is already pushed.
6867 (procfs_detach): Use inf_child_maybe_unpush_target.
6868 (procfs_create_inferior): Don't push the target if it is already
6869 pushed.
6870 (nto_native_ops): New global.
6871 (procfs_open): Reimplement.
6872 (procfs_native_open): New function.
6873 (init_procfs_targets): Install procfs_native_open as to_open of
6874 "target native". Store a pointer to the "native" target in
6875 nto_native_ops.
6876 * procfs.c (procfs_attach): Don't push the target if it is already
6877 pushed.
6878 (procfs_detach): Use inf_child_maybe_unpush_target.
6879 (procfs_mourn_inferior): Only unpush the target after mourning the
6880 inferior. Use inf_child_maybe_unpush_target.
6881 (procfs_init_inferior): Don't push the target if it is already
6882 pushed.
6883 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6884 if it is already pushed.
6885
6886 2014-05-21 Pedro Alves <palves@redhat.com>
6887
6888 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6889 and "procfs" targets are now called "native" instead.
6890
6891 2014-05-21 Pedro Alves <palves@redhat.com>
6892
6893 * go32-nat.c (go32_open): Delete.
6894 (go32_target): Don't override the to_open method.
6895
6896 2014-05-21 Pedro Alves <palves@redhat.com>
6897
6898 * nto-procfs.c (procfs_can_run): New function.
6899 (nto_procfs_ops): New global.
6900 (init_procfs_targets): New, based on procfs_target. Install
6901 "target native" in addition to "target procfs".
6902 (_initialize_procfs): Call init_procfs_targets instead of adding
6903 the target here.
6904
6905 2014-05-21 Pedro Alves <palves@redhat.com>
6906
6907 * windows-nat.c (windows_target): Don't override to_shortname,
6908 to_longname or to_doc.
6909
6910 2014-05-21 Pedro Alves <palves@redhat.com>
6911
6912 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6913 to_doc.
6914
6915 2014-05-21 Pedro Alves <palves@redhat.com>
6916
6917 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6918 to_shortname, to_longname or to_doc.
6919
6920 2014-05-21 Pedro Alves <palves@redhat.com>
6921
6922 * go32-nat.c (go32_target): Don't override to_shortname,
6923 to_longname or to_doc.
6924
6925 2014-05-21 Pedro Alves <palves@redhat.com>
6926
6927 * inf-child.c (inf_child_open): Remove mention of "child".
6928 (inf_child_target): Rename target to "native" instead of "child".
6929
6930 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6931
6932 * Makefile.in (SFILES): Delete "regset.c".
6933 (COMMON_OBS): Delete "regset.o".
6934 * regset.c: Remove.
6935 * regset.h (regset_alloc): Delete prototype.
6936
6937 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6938
6939 * sparc-linux-tdep.c (sparc32_linux_gregset)
6940 (sparc32_linux_fpregset): New static regset structures.
6941 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6942 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6943 'fpregset' fields.
6944 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6945 (sparc64_linux_fpregset): New static regset structures.
6946 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6947 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6948 New static regset structures.
6949 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6950 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6951 New static regset structures.
6952 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6953 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6954 New static regset structures.
6955 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6956 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6957 New static regset structures.
6958 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6959
6960 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6961
6962 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6963 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6964 register maps ("regmaps") from "*regset" to "*regmap". Do this
6965 for all regmap types and variables.
6966 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6967 (sparc32_linux_supply_core_gregset)
6968 (sparc32_linux_collect_core_gregset)
6969 (sparc32_linux_supply_core_fpregset)
6970 (sparc32_linux_collect_core_fpregset): Likewise.
6971 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6972 (sparc_gregmap, sparc_fpregmap): ... these.
6973 (sparc_supply_gregset, sparc_collect_gregset)
6974 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6975 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6976 (_initialize_sparc_nat): Rename regmaps.
6977 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6978 (sparc_gregmap, sparc_fpregmap): ... these.
6979 (sparc_supply_gregset, sparc_collect_gregset)
6980 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6981 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6982 Rename macros to...
6983 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6984 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6985 Likewise.
6986 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6987 Rename to...
6988 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6989 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6990 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6991 regmaps.
6992 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6993 (sparc32_bsd_fpregset): Rename to...
6994 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6995 (sparc32_bsd_fpregmap): ... these.
6996 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6997 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6998 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6999 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7000 (struct sparc_gregmap, struct sparc_fpregmap)
7001 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7002 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7003 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7004 (sparc32_supply_regset, sparc32_collect_gregset)
7005 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7006 prototypes.
7007 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7008 (sparc64_linux_ptrace_gregmap): ... this.
7009 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7010 (_initialize_sparc64_linux_nat): Rename regmaps.
7011 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7012 (sparc64_linux_core_gregmap): ... this.
7013 (sparc64_linux_supply_core_gregset)
7014 (sparc64_linux_collect_core_gregset)
7015 (sparc64_linux_supply_core_fpregset)
7016 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7017 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7018 (sparc64_sol2_fpregset): Rename to...
7019 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7020 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7021 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7022 regmaps.
7023 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7024 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7025 (sparc64_bsd_fpregset): Rename to...
7026 (struct sparc_gregmap, sparc64_sol2_gregmap)
7027 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7028 (sparc64_bsd_fpregmap): ... these.
7029 (sparc64_supply_gregset, sparc64_collect_gregset)
7030 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7031 prototypes.
7032 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7033 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7034 (sparc64fbsd_gregmap): ... this.
7035 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7036 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7037 Rename regmaps.
7038 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7039 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7040 (sparc64nbsd_collect_fpregset): Likewise.
7041 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7042 (sparc64nbsd_gregmap): ... this.
7043 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7044 regmaps.
7045 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7046 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7047 (sparc64obsd_gregmap): ... this.
7048 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7049 regmaps.
7050 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7051 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7052 (sparc32nbsd_gregmap): ... this.
7053 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7054 regmaps.
7055
7056 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7057
7058 * score-tdep.c (score7_linux_gregset): New static regset
7059 structure.
7060 (score7_linux_regset_from_core_section): Remove dynamic regset
7061 allocation.
7062 (score_gdbarch_init): Drop allocation of tdep structure.
7063 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7064
7065 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7066
7067 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7068 regset structures.
7069 (am33_regset_from_core_section): Remove dynamic regset
7070 allocations.
7071
7072 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7073
7074 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7075 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7076 structures.
7077 (mips_linux_regset_from_core_section): Remove dynamic regset
7078 allocations.
7079 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7080 'gregset64', 'fpregset', and 'fpregset64'.
7081 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7082 deleted tdep fields.
7083
7084 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7085
7086 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7087 regset structures.
7088 (amd64_regset_from_core_section): Remove dynamic regset
7089 allocations.
7090 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7091 structure.
7092 (amd64obsd_regset_from_core_section): Remove dynamic regset
7093 allocation.
7094 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7095 Likewise.
7096 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7097 x86-common regset supply function.
7098 * i386-tdep.c (i386_collect_gregset): Make static.
7099 (i386_gregset): New global regset structure.
7100 (i386_fpregset, i386_xstateregset): New static regset structures.
7101 (i386_regset_from_core_section): Remove dynamic regset
7102 allocations.
7103 (i386_gdbarch_init): Remove initialization of tdep fields
7104 'gregset', 'fpregset', and 'xstateregset'.
7105 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7106 'fpregset', and 'xstateregset'.
7107 (i386_collect_gregset): Remove prototype.
7108 (i386_gregset): New declaration.
7109 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7110 structure.
7111 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7112 allocation.
7113
7114 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7115
7116 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7117 (arm_linux_vfpregset): New static regset structures.
7118 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7119 regset structures.
7120 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7121 and 'vfpregset' fields.
7122
7123 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7124
7125 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7126 (aarch64_linux_fpregset): New static regset structures.
7127 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7128 of regset structures.
7129 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7130 'fpregset' fields.
7131
7132 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7133
7134 * regset.h (struct regset): Remove gdbarch field.
7135 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7136 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7137 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7138 Likewise.
7139 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7140 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7141 (ppc32_linux_vsxregset): Likewise.
7142 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7143 via the regcache instead of the regset.
7144 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7145 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7146 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7147 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7148 Likewise.
7149
7150 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7151
7152 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7153 Constify structures.
7154 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7155 (alphanbsd_aout_gregset): Likewise.
7156 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7157 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7158 Likewise.
7159 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7160 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7161 Likewise.
7162 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7163 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7164 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7165 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7166 * m88k-tdep.c (m88k_gregset): Likewise.
7167 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7168 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7169 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7170 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7171 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7172 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7173 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7174 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7175 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7176 Likewise.
7177 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7178 * sh-tdep.h (sh_corefile_gregset): Likewise.
7179 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7180 * vax-tdep.c (vax_gregset): Likewise.
7181
7182 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7183
7184 Fix TLS access for -static -pthread.
7185 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7186 (try_thread_db_load_1): Initialize it.
7187 (thread_db_get_thread_local_address): Call it if LM is zero.
7188 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7189 * target.h (struct target_ops) (to_get_thread_local_address): Add
7190 load_module_addr comment.
7191
7192 2014-05-21 Pedro Alves <palves@redhat.com>
7193
7194 * dcache.c (dcache_read_memory_partial): If reading the cache line
7195 fails, fallback to reading just the memory the caller wanted.
7196
7197 2014-05-20 Doug Evans <dje@google.com>
7198
7199 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7200 instead of get_current_arch.
7201
7202 2014-05-20 Pedro Alves <palves@redhat.com>
7203
7204 * NEWS: Mention that compare-sections now works with all targets.
7205
7206 * remote.c (PACKET_qCRC): New enum value.
7207 (remote_verify_memory): Don't send qCRC if the target has no
7208 execution. Use packet_support/packet_ok. If the target doesn't
7209 support the qCRC packet, fallback to a deep memory copy.
7210 (compare_sections_command): Say "target image" instead of "remote
7211 executable".
7212 (_initialize_remote): Add PACKET_qCRC to the list of config
7213 packets that have no associated command. Extend comment.
7214 * target.c (simple_verify_memory, default_verify_memory): New
7215 function.
7216 * target.h (struct target_ops) <to_verify_memory>: Default to
7217 default_verify_memory.
7218 (simple_verify_memory): New declaration.
7219 * target-delegates.c: Regenerate.
7220
7221 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7222
7223 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7224
7225 2014-05-20 Hui Zhu <hui@codesourcery.com>
7226 Yao Qi <yao@codesourcery.com>
7227
7228 PR backtrace/16558
7229 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7230 and change address of sp and pc.
7231
7232 2014-05-19 Tom Tromey <tromey@redhat.com>
7233
7234 * gdbtypes.c (rank_function): Use XNEWVEC.
7235 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7236
7237 2014-05-19 Doug Evans <dje@google.com>
7238
7239 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7240 build_type_unit_groups and moved closer to only caller. Remove
7241 arguments. All references updated. Remove outdated .gdb_index
7242 comment.
7243 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7244 build_type_psymtabs_1.
7245
7246 2014-05-19 Doug Evans <dje@google.com>
7247
7248 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7249 n_type_unit_groups, all_type_unit_groups. All uses removed.
7250 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7251 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7252 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7253 (add_type_unit_group_to_table): Delete.
7254
7255 2014-05-19 Doug Evans <dje@google.com>
7256
7257 * eval.c (evaluate_subexp_standard): Add some comments.
7258
7259 2014-05-17 Doug Evans <xdje42@gmail.com>
7260
7261 * progspace.c (remove_program_space): Delete, unused.
7262 * progspace.h (remove_program_space): Ditto.
7263
7264 2014-05-17 Doug Evans <xdje42@gmail.com>
7265
7266 * inferior.c (prune_inferiors): Fix comment.
7267 (remove_inferior_command): Call prune_program_spaces.
7268
7269 2014-05-16 Doug Evans <dje@google.com>
7270
7271 New command line option -D.
7272 * NEWS: Mention it.
7273 * main.c (set_gdb_data_directory): New function.
7274 (captured_main): Recognize -D. Flag error for --data-directory "".
7275 Call set_gdb_data_directory.
7276 (print_gdb_help): Print --data-directory, -D.
7277 * main.h (set_gdb_data_directory): Declare.
7278 * top.c (staged_gdb_datadir): New static global.
7279 (set_gdb_datadir): Call set_gdb_data_directory
7280 (show_gdb_datadir): New function.
7281 (init_main): Update init of data-directory parameter.
7282
7283 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7284
7285 Import the "dirfd" gnulib module.
7286 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7287 * gnulib/aclocal.m4: Update.
7288 * gnulib/config.in: Update.
7289 * gnulib/configure: Update.
7290 * gnulib/import/Makefile.am: Update.
7291 * gnulib/import/Makefile.in: Update.
7292 * gnulib/import/dirfd.c: New.
7293 * gnulib/import/m4/dirfd.m4: New.
7294 * gnulib/import/m4/gnulib-cache.m4: Update.
7295 * gnulib/import/m4/gnulib-comp.m4: Update.
7296
7297 2014-05-16 Pierre Muller <muller@sourceware.org>
7298 Yao Qi <yao@codesourcery.com>
7299
7300 * valprint.c (print_wchar): Move the code on checking whether
7301 W is a printable wide char to the default branch of switch
7302 statement below. Call wchar_printable instead of gdb_iswprint.
7303
7304 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7305
7306 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7307 ldr.w and ldrd instructions.
7308
7309 2014-05-15 Doug Evans <dje@google.com>
7310
7311 * dwarf2read.c (read_structure_type): Delete outdated comments.
7312
7313 2014-05-14 Tom Tromey <tromey@redhat.com>
7314
7315 * macrocmd.c (print_macro_definition): Reindent.
7316
7317 2014-05-13 Doug Evans <xdje42@gmail.com>
7318
7319 * python/py-cmd.c (cmdpy_completer): Add comment.
7320 (completers): Make const.
7321
7322 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7323
7324 * infrun.c (resume): Remove should_resume (unused). Move up
7325 declaration of resume_ptid.
7326
7327 2014-05-13 Tom Tromey <tromey@redhat.com>
7328
7329 * language.h (unop_type_check): Remove.
7330 (binop_type_check): Don't declare.
7331
7332 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7333
7334 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7335 call to regcache_raw_collect.
7336
7337 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7338
7339 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7340 mi_console->quote as the quoting character.
7341
7342 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7343
7344 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7345
7346 2014-04-29 Tom Tromey <tromey@redhat.com>
7347
7348 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7349 "show debug varobj".
7350
7351 2014-05-07 Kyle McMartin <kyle@redhat.com>
7352
7353 Pushed by Joel Brobecker <brobecker@adacore.com>.
7354 * aarch64-tdep.c (aarch64_software_single_step): New function.
7355 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7356 with aarch64_software_single_step.
7357
7358 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7359
7360 GDB 7.7.1 released.
7361
7362 2014-05-05 Keith Seitz <keiths@redhat.com>
7363
7364 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7365 variable or history value is successfully parsed.
7366
7367 2014-05-05 Yao Qi <yao@codesourcery.com>
7368 Pedro Alves <palves@redhat.com>
7369
7370 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7371 address of blocks that intersects the requested range. Trim
7372 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7373 sections.
7374 * ctf.c (ctf_xfer_partial): Likewise.
7375
7376 2014-05-05 Yao Qi <yao@codesourcery.com>
7377
7378 * printcmd.c (display_command): Remove the check to
7379 target_has_execution.
7380
7381 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7382
7383 * ppcobsd-nat.c: Include "obsd-nat.h".
7384 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7385 add_target.
7386 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7387
7388 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7389
7390 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7391 and 16-bit signed and unsigned arguments. Update comment.
7392 (stap_parse_probe_arguments): Extend code to handle such
7393 arguments. Use warning instead of complaint to notify about
7394 unrecognized bitness.
7395
7396 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7397
7398 PR breakpoints/16889
7399 * stap-probe.c (stap_parse_probe_arguments): Simplify
7400 check for non-prefixed probes (i.e., probes whose
7401 arguments do not start with "N@"). Always set the
7402 argument type to a sane value.
7403
7404 2014-05-01 David Taylor <dtaylor@emc.com>
7405
7406 * remote.c (compare_sections_command): Add -r option to compare
7407 all loadable read-only sections.
7408
7409 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7410
7411 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7412 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7413 Update all callers.
7414 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7415 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7416 Remove unused CORE_ADDR argument. Update all callers.
7417
7418 2014-04-29 Pedro Alves <palves@redhat.com>
7419
7420 * remote.c (struct packet_config) <detect>: Extend comment.
7421 (add_packet_config_cmd): Don't set the config's detect or support
7422 fields here.
7423 (init_all_packet_configs): Also initialize the config's 'detect'
7424 field.
7425 (reset_all_packet_configs_support): New function.
7426 (remote_open_1): Call reset_all_packet_configs_support instead of
7427 init_all_packet_configs.
7428 (_initialize_remote): Initialize all packet configs. Assert that
7429 all packets have an associated command, except a few known
7430 outliers.
7431
7432 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7433
7434 * dwarf2read.c (read_subrange_type): Handle dynamic
7435 DW_AT_lower_bound attributes.
7436
7437 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7438
7439 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7440 dynamic bounds before computing its upper bound.
7441 (ada_discrete_type_low_bound): Same as above with the lower bound.
7442
7443 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7444
7445 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7446 range types. Adjust the array handling implementation to
7447 take advantage of this change.
7448 (resolve_dynamic_range): New function, mostly extracted from
7449 resolve_dynamic_bounds.
7450 (resolve_dynamic_array): New function, mostly extracted from
7451 resolve_dynamic_bounds.
7452 (resolve_dynamic_bounds): Delete.
7453 (resolve_dynamic_type): Reimplement. Add handling of
7454 TYPE_CODE_RANGE types.
7455
7456 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7457
7458 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7459 handling of parallel ___XA types.
7460
7461 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7462
7463 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7464 unnecessary second call to static_unwrap_type.
7465
7466 2014-04-27 Hui Zhu <hui@codesourcery.com>
7467
7468 * stack.c (print_frame_info): Call do_gdb_disassembly with
7469 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7470
7471 2014-04-26 Doug Evans <xdje42@gmail.com>
7472
7473 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7474
7475 2014-04-25 Pedro Alves <palves@redhat.com>
7476
7477 PR server/16255
7478 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7479 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7480 and newline from built string.
7481 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7482 (linux_ptrace_attach_fail_reason): ... this.
7483 * linux-nat.c (linux_nat_attach): Adjust to use
7484 linux_ptrace_attach_fail_reason.
7485
7486 2014-04-25 Pedro Alves <palves@redhat.com>
7487
7488 * remote.c (struct remote_state): Remove multi_process_aware,
7489 non_stop_aware, cond_tracepoints, cond_breakpoints,
7490 breakpoint_commands, fast_tracepoints, static_tracepoints,
7491 install_in_trace, disconnected_tracing,
7492 enable_disable_tracepoints, string_tracing, and
7493 augmented_libraries_svr4_read fields.
7494 (remote_multi_process_p): Move further below in the file.
7495 (struct packet_config): Add comments.
7496 (update_packet_config): Delete function.
7497 (show_packet_config_cmd): Use packet_config_support.
7498 (add_packet_config_cmd): Use NULL as set callback.
7499 (packet_ok): "set remote foo-packet"-style commands no longer
7500 change config->supported -- adjust.
7501 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7502 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7503 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7504 (PACKET_QNonStop, PACKET_multiprocess_feature)
7505 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7506 (PACKET_DisconnectedTracing_feature)
7507 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7508 (set_remote_protocol_packet_cmd): Delete function.
7509 (packet_config_support, packet_support): New functions.
7510 (set_remote_protocol_Z_packet_cmd): Don't call
7511 update_packet_config.
7512 (remote_query_attached, remote_pass_signals)
7513 (remote_program_signals, remote_threads_info)
7514 (remote_threads_extra_info, remote_start_remote): Use
7515 packet_support.
7516 (remote_start_remote): Use packet_config_support and
7517 packet_support.
7518 (init_all_packet_configs): Set all packets to unknown support,
7519 instead of calling update_packet_config.
7520 (remote_check_symbols): Use packet_support.
7521 (remote_supported_packet): Unconditionally set the packet config's
7522 support status.
7523 (remote_multi_process_feature, remote_non_stop_feature)
7524 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7525 (remote_breakpoint_commands_feature)
7526 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7527 (remote_install_in_trace_feature)
7528 (remote_disconnected_tracing_feature)
7529 (remote_enable_disable_tracepoint_feature)
7530 (remote_string_tracing_feature)
7531 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7532 (remote_protocol_features): Adjust to use remote_supported_packet
7533 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7534 "ConditionalTracepoints", "ConditionalBreakpoints",
7535 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7536 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7537 "EnableDisableTracepoints", and "tracenz".
7538 (remote_query_supported): Use packet_support.
7539 (remote_open_1): Adjust.
7540 (extended_remote_attach_1): Use packet_support. Switch on the
7541 result of packet_ok instead of checking whether the packet ended
7542 up disabled.
7543 (remote_vcont_resume): Use packet_support.
7544 (remote_resume, remote_stop_ns, fetch_register_using_p)
7545 (remote_prepare_to_store, store_register_using_P)
7546 (check_binary_download, remote_write_bytes): Use packet_support.
7547 (remote_vkill): Use packet_support. Switch on the result of
7548 packet_ok instead of checking whether the packet ended up
7549 disabled.
7550 (extended_remote_supports_disable_randomization): Use
7551 packet_support.
7552 (extended_remote_run): Switch on the result of packet_ok instead
7553 of checking whether the packet ended up disabled.
7554 (remote_insert_breakpoint, remote_remove_breakpoint)
7555 (remote_insert_watchpoint, remote_remove_watchpoint)
7556 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7557 packet_support.
7558 (remote_search_memory): Use packet_config_support.
7559 (remote_get_thread_local_address, remote_get_tib_address)
7560 (remote_hostio_send_command, remote_can_execute_reverse): Use
7561 packet_support.
7562 (remote_supports_cond_tracepoints)
7563 (remote_supports_cond_breakpoints)
7564 (remote_supports_fast_tracepoints)
7565 (remote_supports_static_tracepoints)
7566 (remote_supports_install_in_trace)
7567 (remote_supports_enable_disable_tracepoint)
7568 (remote_supports_string_tracing)
7569 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7570 the packet config says the feature is enabled or disabled.
7571 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7572 (remote_get_trace_status): Use packet_support.
7573 (remote_set_disconnected_tracing): Adjust to check whether the
7574 feature is enabled with packet_support.
7575 (remote_set_trace_buffer_size, remote_use_agent)
7576 (remote_can_use_agent, remote_supports_btrace): Use
7577 packet_support.
7578 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7579 Use packet_config_support.
7580 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7581 the packet config says the feature is enabled or disabled.
7582 (set_range_stepping): Use packet_support.
7583
7584 2014-04-25 Tom Tromey <tromey@redhat.com>
7585
7586 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7587 argument.
7588
7589 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7590
7591 * NEWS: Mention support for C99 variable length arrays.
7592
7593 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7594
7595 * ada-lang.c (standard_exc): Expand introductory comment.
7596
7597 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7598 Walfred Tedeschi <walfred.tedeschi@intel.com>
7599
7600 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7601 AVX512 registers.
7602 (amd64_linux_read_description): Add code to handle AVX512 xstate
7603 mask and return respective tdesc.
7604 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7605 and features/i386/x32-avx512-linux.c.
7606 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7607 (amd64_linux_core_read_description): Add code to handle AVX512
7608 xstate mask and return respective tdesc.
7609 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7610 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7611 calculation.
7612 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7613 (tdesc_amd64_avx512_linux): New prototype.
7614 (tdesc_x32_avx512_linux): Likewise.
7615 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7616 features/i386/x32-avx512.c.
7617 (amd64_ymm_avx512_names): New register names for pseudo
7618 registers YMM16-31.
7619 (amd64_ymmh_avx512_names): New register names for raw registers
7620 YMMH16-31.
7621 (amd64_k_names): New register names for K registers.
7622 (amd64_zmmh_names): New register names for ZMM raw registers.
7623 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7624 (amd64_xmm_avx512_names): New register names for XMM16-31
7625 registers.
7626 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7627 registers.
7628 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7629 if feature is present.
7630 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7631 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7632 (AMD64_NUM_REGS): Adjust to new number of registers.
7633 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7634 registers supplied via XSTATE by AVX512 registers.
7635 (i386_linux_read_description): Add case for AVX512.
7636 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7637 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7638 (i386_linux_core_read_description): Add case for AVX512.
7639 (i386_linux_init_abi): Install supported register note section
7640 for AVX512.
7641 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7642 AVX512.
7643 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7644 registers to be number of zmm7h + 1.
7645 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7646 * i386-tdep.c: Include features/i386/i386-avx512.c.
7647 (i386_zmm_names): Add ZMM pseudo register names array.
7648 (i386_zmmh_names): Add ZMM raw register names array.
7649 (i386_k_names): Add K raw register names array.
7650 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7651 registers. AVX512 has 16 more ZMM registers than there are YMM
7652 registers.
7653 (i386_zmmh_regnum_p): Add function to look up register number of
7654 ZMM raw registers.
7655 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7656 (i386_k_regnum_p): Likewise for K raw registers.
7657 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7658 registers added by AVX512.
7659 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7660 registers added by AVX512.
7661 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7662 added by AVX512.
7663 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7664 (i386_pseudo_register_name): Add ZMM pseudo registers.
7665 (i386_zmm_type): Construct and return vector registers type for ZMM
7666 registers.
7667 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7668 ZMM0-31 pseudo registers and K registers.
7669 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7670 and YMM16-31 registers from register cache.
7671 (i386_pseudo_register_write): Add code to write K, ZMM and
7672 YMM16-31 registers.
7673 (i386_register_reggroup_p): Add code to include/exclude AVX512
7674 registers in/from respective register groups.
7675 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7676 registers if feature is present in xcr0.
7677 (i386_gdbarch_init): Add code to initialize AVX512 feature
7678 variables in tdep structure, wire in pseudo registers and call
7679 initialize_tdesc_i386_avx512.
7680 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7681 variables.
7682 (i386_regnum): Add AVX512 registers.
7683 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7684 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7685 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7686 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7687 512 bits wide.
7688 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7689 (i386_ymm_avx512_regnum_p): Likewise.
7690 (i386_k_regnum_p): Likewise.
7691 (i386_zmm_regnum_p): Likewise.
7692 (i386_zmmh_regnum_p): Likewise.
7693 * i387-tdep.c : Update year in copyright notice.
7694 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7695 XSAVE buffer.
7696 (XSAVE_YMM_AVX512_ADDR): New macro.
7697 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7698 XSAVE buffer.
7699 (XSAVE_XMM_AVX512_ADDR): New macro.
7700 (xsave_avx512_k_offset): New table for K register offsets in
7701 XSAVE buffer.
7702 (XSAVE_AVX512_K_ADDR): New macro.
7703 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7704 in XSAVE buffer.
7705 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7706 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7707 buffer.
7708 (i387_collect_xsave): Add code to collect AVX512 registers from
7709 XSAVE buffer.
7710 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7711 of XMM16-31 registers.
7712 (I387_NUM_K_REGS): New define for number of K registers.
7713 (I387_K0_REGNUM): New define for K0 register number.
7714 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7715 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7716 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7717 registers.
7718 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7719 (I387_XMM16_REGNUM): New define for XMM16 register number.
7720 (I387_YMM0_REGNUM): New define for YMM0 register number.
7721 (I387_KEND_REGNUM): New define for last K register number.
7722 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7723 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7724 number.
7725 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7726 number.
7727 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7728 size.
7729 * features/Makefile: Add AVX512 related files.
7730 * features/i386/32bit-avx512.xml: New file.
7731 * features/i386/64bit-avx512.xml: Likewise.
7732 * features/i386/amd64-avx512-linux.c: Likewise.
7733 * features/i386/amd64-avx512-linux.xml: Likewise.
7734 * features/i386/amd64-avx512.c: Likewise.
7735 * features/i386/amd64-avx512.xml: Likewise.
7736 * features/i386/i386-avx512-linux.c: Likewise.
7737 * features/i386/i386-avx512-linux.xml: Likewise.
7738 * features/i386/i386-avx512.c: Likewise.
7739 * features/i386/i386-avx512.xml: Likewise.
7740 * features/i386/x32-avx512-linux.c: Likewise.
7741 * features/i386/x32-avx512-linux.xml: Likewise.
7742 * features/i386/x32-avx512.c: Likewise.
7743 * features/i386/x32-avx512.xml: Likewise.
7744 * regformats/i386/amd64-avx512-linux.dat: New file.
7745 * regformats/i386/amd64-avx512.dat: Likewise.
7746 * regformats/i386/i386-avx512-linux.dat: Likewise.
7747 * regformats/i386/i386-avx512.dat: Likewise.
7748 * regformats/i386/x32-avx512-linux.dat: Likewise.
7749 * regformats/i386/x32-avx512.dat: Likewise.
7750 * NEWS: Add note about new support for AVX512.
7751
7752
7753 2014-04-23 Pedro Alves <palves@redhat.com>
7754
7755 * breakpoint.c (insert_bp_location): Tolerate errors if the
7756 breakpoint is set in a user-loaded objfile.
7757 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7758 location is marked shlib_disabled. If the breakpoint is set in a
7759 user-loaded objfile is a GDB-side memory breakpoint, validate it
7760 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7761 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7762 flag.
7763 * mem-break.c (memory_validate_breakpoint): New function.
7764 * objfiles.c (userloaded_objfile_contains_address_p): New
7765 function.
7766 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7767 * target.h (memory_validate_breakpoint): New declaration.
7768
7769 2014-04-23 Pedro Alves <palves@redhat.com>
7770
7771 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7772 the breakpoint is set in a shared library, only suppress
7773 errors for software breakpoints, not hardware breakpoints.
7774
7775 2014-04-22 Pedro Alves <palves@redhat.com>
7776
7777 * infrun.c (schedlock_applies): New function, factored out from
7778 find_thread_needs_step_over.
7779 (find_thread_needs_step_over): Use it.
7780 (switch_back_to_stepped_thread): Always clear trap_expected if the
7781 step over is finished. Return early if scheduler locking applies.
7782 Look for the stepping thread and a potential step-over thread with
7783 a single loop.
7784 (currently_stepping_or_nexting_callback): Delete.
7785
7786 2014-04-22 Nick Clifton <nickc@redhat.com>
7787
7788 * NEWS: Mention that ARM sim now supports tracing.
7789
7790 2014-04-22 Yao Qi <yao@codesourcery.com>
7791
7792 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7793 to ...
7794 * tracefile.c (tracefile_fetch_registers): ... it. New
7795 function.
7796 * tracefile.h (tracefile_fetch_registers): Declare.
7797 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7798 tracefile_fetch_registers.
7799
7800 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7801
7802 PR gdb/14018
7803 * windows-nat.c (thread_rec): Don't display a warning when
7804 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7805 fails for any reason, set th->suspended to -1, so that we don't
7806 try to resume such a thread. Also, don't return NULL in these
7807 cases, to avoid completely ruin the session due to "PC register is
7808 not available" error.
7809 (do_windows_fetch_inferior_registers): Check errors in
7810 GetThreadContext call.
7811 (windows_continue): Accept an additional argument KILLED; if not
7812 zero, ignore errors in the SetThreadContext call, since the
7813 inferior was killed and is shutting down.
7814 (windows_resume, get_windows_debug_event)
7815 (windows_create_inferior, windows_mourn_inferior)
7816 (windows_kill_inferior): All callers of windows_continue changed
7817 to adjust to its new calling sequence.
7818
7819 2014-04-19 Yao Qi <yao@codesourcery.com>
7820
7821 * ctf.c (ctf_open): Call post_create_inferior.
7822
7823 2014-04-19 Yao Qi <yao@codesourcery.com>
7824
7825 * ctf.c (handle_id): New static variable.
7826 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7827 value. Get the declaration of event "register" and get length
7828 of field "contents".
7829
7830 2014-04-19 Yao Qi <yao@codesourcery.com>
7831
7832 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7833
7834 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7835
7836 * valops.c (oload_method_static): Remove unnecessary argument
7837 METHOD. Update all callers.
7838
7839 2014-04-18 Pedro alves <palves@redhat.com>
7840 Tom Tromey <tromey@redhat.com>
7841
7842 PR backtrace/15558
7843 * frame.c (get_prev_frame_1): Rename to ...
7844 (get_prev_frame_always): ... this, and make extern. Adjust.
7845 (skip_artificial_frames): Use get_prev_frame_always.
7846 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7847 (get_frame_unwind_stop_reason): Adjust to rename.
7848 * frame.h (get_prev_frame_always): Declare.
7849 * inline-frame.c: Include frame.h.
7850 (inline_frame_this_id): Use get_prev_frame_always.
7851
7852 2014-04-18 Tristan Gingold <gingold@adacore.com>
7853
7854 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7855 code by using bfd_mach_o_get_base_address.
7856
7857 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7858
7859 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7860 (spu_ax_pseudo_register_collect): New function.
7861 (spu_ax_pseudo_register_push_stack): Likewise.
7862 (spu_dwarf_reg_to_regnum): Likewise.
7863 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7864
7865 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7866
7867 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7868 Replace FRAME argument with FRAME_ID.
7869 * gdbarch.c, gdbarch.h: Regenerate.
7870 * findvar.c (default_value_from_register): Add GDBARCH argument;
7871 replace FRAME by FRAME_ID. No longer call get_frame_id.
7872 (value_from_register): Update call to gdbarch_value_from_register.
7873 * value.h (default_value_from_register): Update prototype.
7874 * s390-linux-tdep.c (s390_value_from_register): Update interface
7875 and call to default_value_from_register.
7876 * spu-tdep.c (spu_value_from_register): Likewise.
7877
7878 * findvar.c (address_from_register): Remove TYPE argument.
7879 Do not call value_from_register; use gdbarch_value_from_register
7880 with null_frame_id instead.
7881 * value.h (address_from_register): Update prototype.
7882 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7883 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7884 address_from_register interface change.
7885
7886 2014-04-17 Yao Qi <yao@codesourcery.com>
7887
7888 * gdbtypes.h: Update comments to link to types and macros'
7889 definitions.
7890
7891 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7892
7893 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7894
7895 2014-04-16 Keith Seitz <keiths@redhat.com>
7896
7897 PR gdb/15827
7898 * dwarf2read.c (skip_one_die): Check that all relative-offset
7899 sibling DIEs fall within range of the current reader's buffer.
7900 (read_partial_die): Likewise.
7901
7902 2014-04-16 Keith Seitz <keiths@redhat.com>
7903
7904 PR c++/16597
7905 * cp-namespace.c (lookup_symbol_file): If the type name of
7906 `this' is NULL, return immediately.
7907
7908 2014-04-14 Keith Seitz <keiths@redhat.com>
7909
7910 PR c++/16253
7911 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7912 from symbol_matches_domain in symtab.c. All local callers
7913 of symbol_matches_domain updated.
7914 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7915 search STRUCT_DOMAIN.
7916 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7917 independently. standard_lookup will do that automatically.
7918 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7919 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7920 (cp_lookup_symbol_in_namespace): Likewise.
7921 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7922 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7923 may return a STRUCT_DOMAIN match.
7924 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7925 * cp-support.c: Include language.h.
7926 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7927 VAR_DOMAIN.
7928 * psymtab.c (match_partial_symbol): Compare the requested
7929 domain with the symbol's domain directly.
7930 (lookup_partial_symbol): Likewise.
7931 * symtab.c (lookup_symbol_in_language): Explain when/why
7932 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7933 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7934 appropriate languages.
7935 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7936 and moved to ada-lang.c
7937 (lookup_block_symbol): Explain that this function only returns
7938 symbol matching the requested DOMAIN.
7939 Compare the requested domain with the symbol's domain directly.
7940 (iterate_over_symbols): Compare the requested domain with the
7941 symbol's domain directly.
7942 * symtab.h (symbol_matches_domain): Remove.
7943
7944 2014-04-14 Tom Tromey <tromey@redhat.com>
7945
7946 PR c++/15246:
7947 * c-exp.y (type_aggregate_p): New function.
7948 (qualified_name, classify_inner_name): Use it.
7949 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7950 and TYPE_TARGET_TYPE of an enum type.
7951 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7952 an enum type.
7953 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7954 handle TYPE_DECLARED_CLASS.
7955 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7956 types.
7957 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7958 * valops.c (enum_constant_from_type): New function.
7959 (value_aggregate_elt): Use it.
7960 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7961 TYPE_CODE_ENUM.
7962
7963 2014-04-14 Tom Tromey <tromey@redhat.com>
7964
7965 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7966 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7967 const.
7968 * value.h (value_aggregate_elt): Update.
7969
7970 2014-04-14 Tom Tromey <tromey@redhat.com>
7971
7972 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7973
7974 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7975
7976 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7977 (evaluate_subexp_standard): Pass noside argument.
7978 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7979 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7980 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7981 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7982 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7983
7984 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7985
7986 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7987 points to a constant blob.
7988
7989 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7990
7991 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7992 property and store it as the high bound and flag the range accordingly.
7993 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7994 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7995 * gdbtypes.h (enum range_flags): New enum.
7996 (struct range_bounds): Add flags member.
7997
7998 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7999
8000 * c-typeprint.c (c_type_print_varspec_suffix): Added
8001 check for not yet resolved high bound. If unresolved, print
8002 "variable length" string to the console instead of random
8003 length.
8004
8005 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8006
8007 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8008 value.
8009 (ada_template_to_fixed_record_type_1): Likewise.
8010 (ada_to_fixed_type_1): Likewise.
8011 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8012 (cp_print_value): Likewise.
8013 * d-valprint.c (dynamic_array_type): Likewise.
8014 * findvar.c (address_of_variable): Likewise.
8015 * jv-valprint.c (java_value_print): Likewise.
8016 * valops.c (value_ind): Likewise.
8017 * value.c (coerce_ref): Likewise.
8018
8019 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8020
8021 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8022 value and retrieve the dynamic type size.
8023
8024 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8025
8026 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8027 passed to sizeof is dynamic evaluate the argument to compute the length.
8028
8029 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8030 Joel Brobecker <brobecker@adacore.com>
8031
8032 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8033 (dwarf2_evaluate_property): New function.
8034 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8035 * dwarf2read.c (attr_to_dynamic_prop): New function.
8036 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8037 attribute.
8038 * gdbtypes.c: Include dwarf2loc.h.
8039 (is_dynamic_type): New function.
8040 (resolve_dynamic_type): New function.
8041 (resolve_dynamic_bounds): New function.
8042 (get_type_length): New function.
8043 (check_typedef): Use get_type_length to compute type length.
8044 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8045 (TYPE_LOW_BOUND_KIND): New macro.
8046 (is_dynamic_type): New function prototype.
8047 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8048 to resolve dynamic properties of the type. Update comment.
8049 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8050
8051 2014-04-14 Richard Henderson <rth@redhat.com>
8052
8053 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8054
8055 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8056 Doug Evans <xdje42@gmail.com>
8057
8058 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8059 dereference TYPE_CODE_REF values.
8060
8061 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8062
8063 Revert the following changes due to regressions:
8064
8065 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8066 (dwarf2_evaluate_property): New function.
8067 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8068 * dwarf2read.c (attr_to_dynamic_prop): New function.
8069 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8070 attribute.
8071 * gdbtypes.c: Include dwarf2loc.h.
8072 (is_dynamic_type): New function.
8073 (resolve_dynamic_type): New function.
8074 (resolve_dynamic_bounds): New function.
8075 (get_type_length): New function.
8076 (check_typedef): Use get_type_length to compute type length.
8077 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8078 (TYPE_LOW_BOUND_KIND): New macro.
8079 (is_dynamic_type): New function prototype.
8080 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8081 to resolve dynamic properties of the type. Update comment.
8082 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8083
8084 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8085 passed to sizeof is dynamic evaluate the argument to compute the length.
8086
8087 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8088 value and retrieve the dynamic type size.
8089
8090 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8091 (ada_template_to_fixed_record_type_1): Likewise.
8092 (ada_to_fixed_type_1): Likewise.
8093 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8094 (cp_print_value): Likewise.
8095 * d-valprint.c (dynamic_array_type): Likewise.
8096 * eval.c (evaluate_subexp_with_coercion): Likewise.
8097 * findvar.c (address_of_variable): Likewise.
8098 * jv-valprint.c (java_value_print): Likewise.
8099 * valops.c (value_ind): Likewise.
8100 * value.c (coerce_ref): Likewise.
8101
8102 * c-typeprint.c (c_type_print_varspec_suffix): Added
8103 check for not yet resolved high bound. If unresolved, print
8104 "variable length" string to the console instead of random
8105 length.
8106
8107 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8108 property and store it as the high bound and flag the range accordingly.
8109 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8110 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8111 * gdbtypes.h (enum range_flags): New enum.
8112 (struct range_bounds): Add flags member.
8113
8114 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8115 points to a constant blob.
8116
8117 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8118 (evaluate_subexp_standard): Pass noside argument.
8119 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8120 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8121 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8122 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8123 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8124
8125 2014-04-11 Keith Seitz <keiths@redhat.com>
8126
8127 PR c++/16675
8128 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8129 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8130 reference types.
8131
8132 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8133
8134 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8135 (evaluate_subexp_standard): Pass noside argument.
8136 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8137 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8138 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8139 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8140 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8141
8142 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8143
8144 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8145 points to a constant blob.
8146
8147 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8148
8149 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8150 property and store it as the high bound and flag the range accordingly.
8151 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8152 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8153 * gdbtypes.h (enum range_flags): New enum.
8154 (struct range_bounds): Add flags member.
8155
8156 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8157
8158 * c-typeprint.c (c_type_print_varspec_suffix): Added
8159 check for not yet resolved high bound. If unresolved, print
8160 "variable length" string to the console instead of random
8161 length.
8162
8163 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8164
8165 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8166 (ada_template_to_fixed_record_type_1): Likewise.
8167 (ada_to_fixed_type_1): Likewise.
8168 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8169 (cp_print_value): Likewise.
8170 * d-valprint.c (dynamic_array_type): Likewise.
8171 * eval.c (evaluate_subexp_with_coercion): Likewise.
8172 * findvar.c (address_of_variable): Likewise.
8173 * jv-valprint.c (java_value_print): Likewise.
8174 * valops.c (value_ind): Likewise.
8175 * value.c (coerce_ref): Likewise.
8176
8177 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8178
8179 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8180 value and retrieve the dynamic type size.
8181
8182 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8183
8184 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8185 passed to sizeof is dynamic evaluate the argument to compute the length.
8186
8187 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8188
8189 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8190 (dwarf2_evaluate_property): New function.
8191 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8192 * dwarf2read.c (attr_to_dynamic_prop): New function.
8193 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8194 attribute.
8195 * gdbtypes.c: Include dwarf2loc.h.
8196 (is_dynamic_type): New function.
8197 (resolve_dynamic_type): New function.
8198 (resolve_dynamic_bounds): New function.
8199 (get_type_length): New function.
8200 (check_typedef): Use get_type_length to compute type length.
8201 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8202 (TYPE_LOW_BOUND_KIND): New macro.
8203 (is_dynamic_type): New function prototype.
8204 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8205 to resolve dynamic properties of the type. Update comment.
8206 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8207
8208 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8209
8210 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8211 declaring high/low bounds and change uses accordingly. Call
8212 create_range_type instead of create_static_range_type.
8213 * gdbtypes.c (create_range_type): New function.
8214 (create_range_type): Convert bounds into struct bound_prop and pass
8215 them to create_range_type.
8216 * gdbtypes.h (struct bound_prop): New struct.
8217 (create_range_type): New function prototype.
8218 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8219 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8220 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8221 part of the bound.
8222 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8223
8224 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8225
8226 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8227 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8228 * ada-lang.c: All uses of create_range_type updated.
8229 * coffread.c: All uses of create_range_type updated.
8230 * dwarf2read.c: All uses of create_range_type updated.
8231 * f-exp.y: All uses of create_range_type updated.
8232 * m2-valprint.c: All uses of create_range_type updated.
8233 * mdebugread.c: All uses of create_range_type updated.
8234 * stabsread.c: All uses of create_range_type updated.
8235 * valops.c: All uses of create_range_type updated.
8236 * valprint.c: All uses of create_range_type updated.
8237
8238 2014-04-10 Pedro Alves <palves@redhat.com>
8239
8240 * breakpoint.c (single_step_breakpoints)
8241 (single_step_gdbarch): Move up in the file.
8242 (one_breakpoint_xfer_memory): New function, factored out from ...
8243 (breakpoint_xfer_memory): ... here. Also process single-step
8244 breakpoints.
8245
8246 2014-04-09 Tristan Gingold <gingold@adacore.com>
8247
8248 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8249 comments.
8250 (darwin_decode_exception_message): Free port only after use.
8251
8252 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8253
8254 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8255 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8256 when setting the size of call_length.
8257
8258 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8259
8260 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8261 dereference TYPE_CODE_REF values.
8262
8263 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8264
8265 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8266 end of warning message.
8267
8268 2014-04-03 Doug Evans <dje@google.com>
8269
8270 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8271 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8272
8273 2014-04-02 Alan Modra <amodra@gmail.com>
8274
8275 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8276 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8277 (struct symbol_file_add_from_memory_args): Add size field.
8278 (find_vdso_size): New function.
8279 (add_vsyscall_page): Attempt to find vdso size.
8280
8281 2014-04-01 Doug Evans <dje@google.com>
8282
8283 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8284
8285 2014-04-01 Tristan Gingold <gingold@adacore.com>
8286
8287 * darwin-nat.c (darwin_encode_reply): Add prototype.
8288 (darwin_decode_exception_message): Reply to unknown inferiors.
8289 (darwin_decode_message): Handle message by id. Ignore message
8290 to unknown inferior.
8291 (darwin_wait): Discard unknown messages, add debug trace.
8292
8293 2014-03-31 Doug Evans <dje@google.com>
8294
8295 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8296 comp_dir_string.
8297
8298 2014-03-31 Doug Evans <dje@google.com>
8299
8300 New option "set print symbol-loading".
8301 * NEWS: Mention it.
8302 * solib.c (solib_read_symbols): Only print symbol loading messages
8303 if requested.
8304 (solib_add): If symbol loading is in "brief" mode, notify user
8305 symbols are being loaded.
8306 (reload_shared_libraries_1): Ditto.
8307 * symfile.c (print_symbol_loading_off): New static global.
8308 (print_symbol_loading_brief): New static global.
8309 (print_symbol_loading_full): New static global.
8310 (print_symbol_loading_enums): New static global.
8311 (print_symbol_loading): New static global.
8312 (print_symbol_loading_p): New function.
8313 (symbol_file_add_with_addrs): Only print symbol loading messages
8314 if requested.
8315 (_initialize_symfile): Register "print symbol-loading" set/show
8316 command.
8317 * symfile.h (print_symbol_loading_p): Declare.
8318
8319 2014-03-30 Doug Evans <xdje42@gmail.com>
8320
8321 * infrun.c (set_last_target_status): New function.
8322 (handle_inferior_event): Call it.
8323
8324 2014-03-30 Doug Evans <xdje42@gmail.com>
8325
8326 * inferior.h (enum stop_kind): Improve comment.
8327
8328 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8329
8330 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8331 a reference, strip the reference layer before calling
8332 the lang_ops value_has_mutated callback.
8333
8334 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8335
8336 Remove some globals from our parser.
8337 * language.c (unk_lang_parser): Add "struct parser_state"
8338 argument.
8339 * language.h (struct language_defn) <la_parser>: Likewise.
8340 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8341 (initialize_expout): Add "struct parser_state" argument.
8342 Rewrite function to use the parser state.
8343 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8344 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8345 write_exp_elt_longcst, write_exp_elt_dblcst,
8346 write_exp_elt_decfloatcst, write_exp_elt_type,
8347 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8348 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8349 write_dollar_variable): Likewise.
8350 (parse_exp_in_context_1): Use parser state.
8351 (insert_type_address_space): Add "struct parser_state" argument.
8352 Use parser state.
8353 (increase_expout_size): New function.
8354 * parser-defs.h: Forward declare "struct language_defn" and
8355 "struct parser_state".
8356 (expout, expout_size, expout_ptr): Remove extern declarations.
8357 (parse_gdbarch, parse_language): Rewrite macro declarations to
8358 accept the parser state.
8359 (struct parser_state): New struct.
8360 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8361 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8362 write_exp_elt_decfloatcst, write_exp_elt_type,
8363 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8364 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8365 write_exp_msymbol, write_dollar_variable,
8366 mark_struct_expression, insert_type_address_space): Add "struct
8367 parser_state" argument.
8368 (increase_expout_size): New function.
8369 * utils.c (do_clear_parser_state): New function.
8370 (make_cleanup_clear_parser_state): Likewise.
8371 * utils.h (make_cleanup_clear_parser_state): New function
8372 prototype.
8373 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8374 Update calls to write_exp* in order to pass the parser state.
8375 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8376 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8377 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8378 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8379 * stap-probe.c (stap_parse_register_operand): Likewise.
8380 (stap_parse_single_operand): Likewise.
8381 (stap_parse_argument_1): Likewise.
8382 (stap_parse_argument): Use parser state.
8383 * stap-probe.h: Include "parser-defs.h".
8384 (struct stap_parse_info) <pstate>: New field.
8385 * c-exp.y (parse_type): Rewrite to use parser state.
8386 (yyparse): Redefine to c_parse_internal.
8387 (pstate): New global variable.
8388 (parse_number): Add "struct parser_state" argument.
8389 (write_destructor_name): Likewise.
8390 (type_exp): Update calls to write_exp* and similars in order to
8391 use parser state.
8392 (exp1, exp, variable, qualified_name, space_identifier,
8393 typename, typebase): Likewise.
8394 (write_destructor_name, parse_number, lex_one_token,
8395 classify_name, classify_inner_name, c_parse): Add "struct
8396 parser_state" argument. Update function to use parser state.
8397 * c-lang.h: Forward declare "struct parser_state".
8398 (c_parse): Add "struct parser_state" argument.
8399 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8400 (yyparse): Redefine macro to ada_parse_internal.
8401 (pstate): New variable.
8402 (write_int, write_object_renaming, write_var_or_type,
8403 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8404 type_int, type_long, type_long_long, type_float, type_double,
8405 type_long_double, type_char, type_boolean, type_system_address):
8406 Add "struct parser_state" argument.
8407 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8408 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8409 var_or_type, aggregate, aggregate_component_list,
8410 positional_list, others, component_group,
8411 component_associations): Update calls to write_exp* and similar
8412 functions in order to use parser state.
8413 (ada_parse, write_var_from_sym, write_int,
8414 write_exp_op_with_string, write_object_renaming,
8415 find_primitive_type, write_selectors, write_ambiguous_var,
8416 write_var_or_type, write_name_assoc, type_int, type_long,
8417 type_long_long, type_float, type_double, type_long_double,
8418 type_char, type_boolean, type_system_address): Add "struct
8419 parser_state" argument. Adjust function to use parser state.
8420 * ada-lang.c (parse): Likewise.
8421 * ada-lang.h: Forward declare "struct parser_state".
8422 (ada_parse): Add "struct parser_state" argument.
8423 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8424 calls to both functions.
8425 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8426 parser state.
8427 (yyparse): Redefine macro to f_parse_internal.
8428 (pstate): New variable.
8429 (parse_number): Add "struct parser_state" argument.
8430 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8431 and similars in order to use parser state.
8432 (parse_number): Adjust code to use parser state.
8433 (yylex): Likewise.
8434 (f_parse): New function.
8435 * f-lang.h: Forward declare "struct parser_state".
8436 (f_parse): Add "struct parser_state" argument.
8437 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8438 parser state.
8439 (yyparse): Redefine macro for java_parse_internal.
8440 (pstate): New variable.
8441 (push_expression_name, push_expression_name, insert_exp): Add
8442 "struct parser_state" argument.
8443 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8444 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8445 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8446 PostIncrementExpression, PostDecrementExpression,
8447 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8448 UnaryExpressionNotPlusMinus, CastExpression,
8449 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8450 RelationalExpression, EqualityExpression, AndExpression,
8451 ExclusiveOrExpression, InclusiveOrExpression,
8452 ConditionalAndExpression, ConditionalOrExpression,
8453 ConditionalExpression, Assignment, LeftHandSide): Update
8454 calls to write_exp* and similars in order to use parser state.
8455 (parse_number): Ajust code to use parser state.
8456 (yylex): Likewise.
8457 (java_parse): New function.
8458 (push_variable): Add "struct parser_state" argument. Adjust
8459 code to user parser state.
8460 (push_fieldnames, push_qualified_expression_name,
8461 push_expression_name, insert_exp): Likewise.
8462 * jv-lang.h: Forward declare "struct parser_state".
8463 (java_parse): Add "struct parser_state" argument.
8464 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8465 parser state.
8466 (yyparse): Redefine macro to m2_parse_internal.
8467 (pstate): New variable.
8468 (type_exp, exp, fblock, variable, type): Update calls to
8469 write_exp* and similars to use parser state.
8470 (yylex): Likewise.
8471 (m2_parse): New function.
8472 * m2-lang.h: Forward declare "struct parser_state".
8473 (m2_parse): Add "struct parser_state" argument.
8474 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8475 * objc-lang.h: Forward declare "struct parser_state".
8476 (end_msglist): Add "struct parser_state" argument.
8477 * p-exp.y (parse_type): Rewrite macro to use parser state.
8478 (yyparse): Redefine macro to pascal_parse_internal.
8479 (pstate): New variable.
8480 (parse_number): Add "struct parser_state" argument.
8481 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8482 write_exp* and similars in order to use parser state.
8483 (parse_number, yylex): Adjust code to use parser state.
8484 (pascal_parse): New function.
8485 * p-lang.h: Forward declare "struct parser_state".
8486 (pascal_parse): Add "struct parser_state" argument.
8487 * go-exp.y (parse_type): Rewrite macro to use parser state.
8488 (yyparse): Redefine macro to go_parse_internal.
8489 (pstate): New variable.
8490 (parse_number): Add "struct parser_state" argument.
8491 (type_exp, exp1, exp, variable, type): Update calls to
8492 write_exp* and similars in order to use parser state.
8493 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8494 to use parser state.
8495 (go_parse): Likewise.
8496 * go-lang.h: Forward declare "struct parser_state".
8497 (go_parse): Add "struct parser_state" argument.
8498
8499 2014-03-27 Doug Evans <dje@google.com>
8500
8501 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8502
8503 2014-03-27 Doug Evans <dje@google.com>
8504
8505 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8506 Remove argument abbrev_section. All callers updated.
8507
8508 2014-03-27 Doug Evans <dje@google.com>
8509
8510 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8511 addr_base, ranges_base.
8512
8513 2014-03-26 Keith Seitz <keiths@redhat.com>
8514
8515 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8516 types, not VAR_DOMAIN.
8517
8518 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8519
8520 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8521 "ra" registers.
8522 * features/nios2-linux.c: Regenerated.
8523 * features/nios2.c: Regenerated.
8524
8525 2014-03-25 Pedro Alves <palves@redhat.com>
8526
8527 * cli/cli-script.c (script_from_file): Force the interpreter to
8528 sync mode.
8529
8530 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8531
8532 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8533 small stack allocation.
8534
8535 2014-03-24 Tristan Gingold <gingold@adacore.com>
8536
8537 * darwin-nat.c (exc_server): Remove unused prototype.
8538 (darwin_dump_message): Correctly display data on x86_64.
8539 (darwin_encode_reply): Fix style.
8540 Add comments and fix indentation.
8541
8542 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8543
8544 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8545
8546 2014-03-22 Doug Evans <xdje42@gmail.com>
8547
8548 * infcmd.c: Whitespace fixes.
8549 (interrupt_command): Merge two function comments into one.
8550
8551 2014-03-22 Doug Evans <xdje42@gmail.com>
8552
8553 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8554 All uses updated.
8555
8556 2014-03-22 Yao Qi <yao@codesourcery.com>
8557
8558 * remote.c (target_read_live_memory): Remove.
8559 (memory_xfer_live_readonly_partial): Rename it to
8560 remote_xfer_live_readonly_partial. Remove argument 'object'.
8561 All callers updated. Call remote_read_bytes_1
8562 instead of target_read_live_memory.
8563 * tracepoint.c (set_traceframe_number): Remove.
8564 (make_cleanup_restore_traceframe_number): Likewise .
8565 * tracepoint.h (set_traceframe_number): Remove declaration.
8566 (make_cleanup_restore_traceframe_number): Likewise.
8567
8568 2014-03-22 Yao Qi <yao@codesourcery.com>
8569
8570 * remote.c (remote_read_bytes): Move code on reading from the
8571 remote stub to ...
8572 (remote_read_bytes_1): ... here. New function.
8573
8574 2014-03-22 Yao Qi <yao@codesourcery.com>
8575
8576 * ctf.c (ctf_xfer_partial): Check the return value of
8577 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8578 return TARGET_XFER_UNAVAILABLE.
8579 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8580 * target.c (target_read_live_memory): Move it to remote.c.
8581 (memory_xfer_live_readonly_partial): Likewise.
8582 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8583 * remote.c (target_read_live_memory): Moved from target.c.
8584 (memory_xfer_live_readonly_partial): Likewise.
8585 (remote_read_bytes): Factored out from
8586 memory_xfer_partial_1.
8587
8588 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8589
8590 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8591 NULL pointer.
8592
8593 2014-03-21 Pedro Alves <palves@redhat.com>
8594
8595 * infrun.c (normal_stop): Extend comment.
8596
8597 2014-03-21 Hui Zhu <hui@codesourcery.com>
8598 Pedro Alves <palves@redhat.com>
8599
8600 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8601 static buffer.
8602 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8603 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8604 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8605
8606 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8607
8608 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8609 `z' formatted output modifier.
8610
8611 2014-03-20 Tom Tromey <tromey@redhat.com>
8612 Sergio Durigan Junior <sergiodj@redhat.com>
8613
8614 * probe.c (parse_probes): Turn assert into an ordinary error.
8615 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8616 exceptions when parsing probes. Rearrange the code for clarity.
8617
8618 2014-03-20 Tom Tromey <tromey@redhat.com>
8619
8620 PR gdb/14135
8621 * top.c (execute_command): Only dispatch events if the command
8622 started the target.
8623
8624 2014-03-20 Tom Tromey <tromey@redhat.com>
8625
8626 PR cli/15718
8627 * infcall.c: Include event-top.h.
8628 (run_inferior_call): Call async_disable_stdin if needed.
8629
8630 2014-03-20 Pedro Alves <palves@redhat.com>
8631
8632 * infrun.c (prepare_to_proceed): Delete.
8633 (thread_still_needs_step_over): New function.
8634 (find_thread_needs_step_over): New function.
8635 (proceed): If the current thread needs a step-over, set its
8636 steping_over_breakpoint flag. Adjust to use
8637 find_thread_needs_step_over instead of prepare_to_proceed.
8638 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8639 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8640 breakpoint.
8641 (switch_back_to_stepped_thread): Step over breakpoints of all
8642 threads not the stepping thread, before switching back to the
8643 stepping thread.
8644
8645 2014-03-20 Pedro Alves <palves@redhat.com>
8646
8647 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8648 extern.
8649 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8650 * infrun.c (saved_singlestep_ptid)
8651 (stepping_past_singlestep_breakpoint): Delete.
8652 (resume): Remove stepping_past_singlestep_breakpoint handling.
8653 (proceed): Store the prev_pc of the stepping thread too.
8654 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8655 singlestep_pc.
8656 (enum infwait_states): Delete infwait_thread_hop_state.
8657 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8658 field.
8659 (handle_inferior_event): Adjust.
8660 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8661 handling and the thread-hop code. Before removing single-step
8662 breakpoints, check whether the thread hit a single-step breakpoint
8663 of another thread. If it did, the trap is not a random signal.
8664 (switch_back_to_stepped_thread): If the event thread hit a
8665 single-step breakpoint, unblock it before switching to the
8666 stepping thread. Handle the case of the stepped thread having
8667 advanced already.
8668 (keep_going): Handle the case of the current thread moving past a
8669 single-step breakpoint.
8670
8671 2014-03-20 Pedro Alves <palves@redhat.com>
8672
8673 PR breakpoints/7143
8674 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8675 are being stepped over.
8676 (breakpoint_address_match): Make extern.
8677 * breakpoint.h (breakpoint_address_match): New declaration.
8678 * inferior.h (stepping_past_instruction_at): New declaration.
8679 * infrun.c (struct step_over_info): New type.
8680 (step_over_info): New global.
8681 (set_step_over_info, clear_step_over_info)
8682 (stepping_past_instruction_at): New functions.
8683 (handle_inferior_event): Clear the step-over info when
8684 trap_expected is cleared.
8685 (resume): Remove now stale comment.
8686 (clear_proceed_status): Clear step-over info.
8687 (proceed): Adjust step-over handling to set or clear the step-over
8688 info instead of removing all breakpoints.
8689 (handle_signal_stop): When setting up a thread-hop, don't remove
8690 breakpoints here.
8691 (stop_stepping): Clear step-over info.
8692 (keep_going): Adjust step-over handling to set or clear step-over
8693 info and then always inserting breakpoints, instead of removing
8694 all breakpoints when stepping over one.
8695
8696 2014-03-20 Pedro Alves <palves@redhat.com>
8697
8698 * infrun.c (previous_inferior_ptid): Adjust comment.
8699 (deferred_step_ptid): Delete.
8700 (infrun_thread_ptid_changed, prepare_to_proceed)
8701 (init_wait_for_inferior): Adjust.
8702 (handle_signal_stop): Delete deferred_step_ptid handling.
8703
8704 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8705
8706 PR gdb/15358
8707 * defs.h (sync_quit_force_run): New declaration.
8708 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8709 * event-top.c (async_sigterm_handler): New declaration.
8710 (async_sigterm_token): New variable.
8711 (async_init_signals): Create also async_sigterm_token.
8712 (async_sigterm_handler): New function.
8713 (sync_quit_force_run): New variable.
8714 (handle_sigterm): Replace quit_force call by other calls.
8715 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8716
8717 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8718
8719 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8720 offset into SPE pseudo registers.
8721
8722 2014-03-18 Pedro Alves <palves@redhat.com>
8723
8724 PR gdb/13860
8725 * inferior.h (print_stop_event): Declare.
8726 * infrun.c (print_stop_event): New, factored out from ...
8727 (normal_stop): ... this.
8728 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8729 of bpstat_print/print_stack_frame.
8730
8731 2014-03-17 Tom Tromey <tromey@redhat.com>
8732
8733 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8734
8735 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8736
8737 * ada-lang.c (decode_constrained_packed_array): Perform a
8738 minimal coercion for reference with coerce_ref instead of
8739 ada_coerce_ref.
8740
8741 2014-03-17 Tristan Gingold <gingold@adacore.com>
8742
8743 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8744 (darwin_solib_create_inferior_hook): Emit a warning if version
8745 is unhandled.
8746
8747 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8748
8749 * python/py-value.c (get_field_flag): Cast flag_name argument to
8750 PyObject_GetAttrString to support Python 2.4.
8751
8752 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8753
8754 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8755 (Global Maintainers): Remove Jan Kratochvil.
8756
8757 2014-03-14 Pedro Alves <palves@redhat.com>
8758
8759 * inferior.h (terminal_ours_for_output): Rename to ...
8760 (child_terminal_ours_for_output): ... this.
8761 (terminal_save_ours): Rename to ...
8762 (child_terminal_save_ours): ... this.
8763 (terminal_ours): Rename to ...
8764 (child_terminal_ours): ... this.
8765 (terminal_inferior): Rename to ...
8766 (child_terminal_inferior): ... this.
8767 (terminal_init_inferior): Rename to ...
8768 (child_terminal_init_inferior): ... this.
8769 (terminal_init_inferior_with_pgrp): Rename to ...
8770 (child_terminal_init_inferior_with_pgrp): ... this.
8771 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8772 (child_terminal_init_with_pgrp): ... this.
8773 (terminal_save_ours): Rename to ...
8774 (child_terminal_save_ours): ... this.
8775 (terminal_init_inferior): Rename to ...
8776 (child_terminal_init): ... this. Adjust.
8777 (terminal_inferior): Rename to ...
8778 (child_terminal_inferior): ... this.
8779 (terminal_ours_for_output): Rename to ...
8780 (child_terminal_ours_for_output): ... this. Adjust.
8781 (terminal_ours): Rename to ...
8782 (child_terminal_ours): ... this.
8783 (terminal_ours_1): Rename to ...
8784 (child_terminal_ours_1): ... this. Adjust.
8785 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8786 * windows-nat.c (do_initial_windows_stuff): Adjust.
8787 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8788 (gnu_terminal_init): ... this. Adjust.
8789 (gnu_target): Adjust.
8790 * inf-child.c (inf_child_target): Adjust.
8791
8792 2014-03-13 Doug Evans <xdje42@gmail.com>
8793
8794 PR guile/16612
8795 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8796 new eq?-hashtab.
8797
8798 2014-03-13 Doug Evans <xdje42@gmail.com>
8799
8800 * value.c (record_latest_value): Call release_value_or_incref
8801 instead of release_value.
8802
8803 2014-03-13 Pedro Alves <palves@redhat.com>
8804
8805 * procfs.c (procfs_target): Don't override to_shortname,
8806 to_longname or to_doc.
8807
8808 2014-03-13 Pedro Alves <palves@redhat.com>
8809
8810 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8811 Unix in user visible strings.
8812
8813 2014-03-12 Stan Shebs <stan@codesourcery.com>
8814
8815 * gdbtypes.h: Annotate comments for Doxygen, add a page
8816 block comment with some general info.
8817
8818 2014-03-12 Pedro Alves <palves@redhat.com>
8819
8820 * infcmd.c (prepare_execution_command): New function, factored out
8821 from several execution commands.
8822 (run_command_1, continue_command, step_1, jump_command)
8823 (signal_command, until_command, advance_command, finish_command)
8824 (attach_command): Use prepare_execution_command.
8825
8826 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8827
8828 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8829 (MAX_BPTS): Define.
8830 (MAX_WPTS): Define.
8831 (struct arm_linux_thread_points): Removed.
8832 (struct arm_linux_process_info): New.
8833 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8834 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8835 (arm_linux_find_breakpoints_by_tid): Removed.
8836 (struct arch_lwp_info): New.
8837 (arm_linux_find_process_pid): New functions.
8838 (arm_linux_add_process): New functions.
8839 (arm_linux_process_info_get): New functions.
8840 (arm_linux_forget_process): New function.
8841 (arm_linux_get_debug_reg_state): New function.
8842 (struct update_registers_data): New.
8843 (update_registers_callback): New function.
8844 (arm_linux_insert_hw_breakpoint1): Updated.
8845 (arm_linux_remove_hw_breakpoint1): Updated.
8846 (arm_linux_insert_hw_breakpoint): Updated.
8847 (arm_linux_remove_hw_breakpoint): Updated.
8848 (arm_linux_insert_watchpoint): Updated.
8849 (arm_linux_remove_watchpoint): Updated.
8850 (arm_linux_new_thread): Updated.
8851 (arm_linux_prepare_to_resume): New function.
8852 (arm_linux_new_fork): New function.
8853 (_initialize_arm_linux_nat): Updated.
8854
8855 2014-03-12 Pedro Alves <palves@redhat.com>
8856
8857 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8858
8859 2014-03-12 Tom Tromey <tromey@redhat.com>
8860
8861 * inf-child.c (return_zero): New function.
8862 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8863 * aix-thread.c (aix_thread_inferior_created): New function.
8864 (aix_thread_attach): Remove.
8865 (init_aix_thread_ops): Don't set to_attach.
8866 (_initialize_aix_thread): Register inferior_created observer.
8867 * corelow.c (init_core_ops): Don't set to_attach or
8868 to_create_inferior.
8869 * exec.c (init_exec_ops): Don't set to_attach or
8870 to_create_inferior.
8871 * infcmd.c (run_command_1): Use find_run_target. Make direct
8872 target calls.
8873 (attach_command): Use find_attach_target. Make direct target
8874 calls.
8875 * record-btrace.c (init_record_btrace_ops): Don't set
8876 to_create_inferior.
8877 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8878 Remove.
8879 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8880 set to_create_inferior.
8881 * target.c (complete_target_initialization): Add assertion.
8882 (target_create_inferior): Remove.
8883 (find_default_attach, find_default_create_inferior): Remove.
8884 (find_attach_target, find_run_target): New functions.
8885 (find_default_is_async_p, find_default_can_async_p)
8886 (target_supports_non_stop, target_attach): Remove.
8887 (init_dummy_target): Don't set to_create_inferior or
8888 to_supports_non_stop.
8889 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8890 TARGET_DEFAULT_FUNC.
8891 <to_create_inferior>: Add comment.
8892 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8893 TARGET_DEFAULT_RETURN.
8894 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8895 (find_attach_target, find_run_target): Declare.
8896 (target_create_inferior): Remove.
8897 (target_has_execution_1): Update comment.
8898 (target_supports_non_stop): Remove.
8899 * target-delegates.c: Rebuild.
8900
8901 2014-03-12 Pedro Alves <palves@redhat.com>
8902
8903 * inf-child.h: Update comment to not mention Unix.
8904
8905 2014-03-12 Pedro Alves <palves@redhat.com>
8906
8907 * inf-child.c: Update top comment to not mention Unix. Add
8908 generic comment describing how this target is meant to be used.
8909 (inf_child_post_attach, inf_child_post_startup_inferior)
8910 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8911 Unix in comment.
8912
8913 2014-03-12 Pedro Alves <palves@redhat.com>
8914
8915 * nto-procfs.c: Include inf-child.h.
8916 (procfs_ops): Delete global.
8917 (procfs_can_run): Delete method.
8918 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8919 target pointer instead of referencing procfs_ops.
8920 (procfs_prepare_to_store): Delete.
8921 (init_procfs_ops): Delete function.
8922 (procfs_target): New function, based on init_procfs_ops, but
8923 inherit inf_child_target.
8924 (_initialize_procfs): Use procfs_target.
8925
8926 2014-03-12 Pedro Alves <palves@redhat.com>
8927
8928 * windows-nat.c: Include inf-child.h.
8929 (windows_ops): Delete global.
8930 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8931 methods.
8932 (init_windows_ops): Delete function.
8933 (windows_target): New function, based on init_windows_ops, but
8934 inherit inf_child_target.
8935 (_initialize_windows_nat): Use windows_target. Install x86
8936 specific target methods here.
8937
8938 2014-03-10 Doug Evans <xdje42@gmail.com>
8939
8940 * guile/guile.c (call_initialize_gdb_module): New function.
8941 (initialize_guile): Replace call to scm_init_guile with call to
8942 scm_with_guile.
8943
8944 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8945
8946 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8947 in call to TYPE_CODE macro.
8948
8949 2014-03-10 Jerome Guitton <guitton@adacore.com>
8950
8951 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8952 Resolve tagged types to full view.
8953
8954 2014-03-10 Hui Zhu <hui@codesourcery.com>
8955
8956 * target.h (target_insert_breakpoint): Remove "hardware" from its
8957 comments.
8958
8959 2014-03-07 Doug Evans <dje@google.com>
8960
8961 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8962
8963 2014-03-07 Doug Evans <dje@google.com>
8964
8965 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8966 Remove unused local comp_dir_attr. Assert exactly one of
8967 stub_comp_unit_die, stub_comp_dir is non-NULL.
8968
8969 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8970
8971 * target.h (complete_target_initialization, add_target):
8972 Add comment.
8973
8974 2014-03-07 Pedro Alves <palves@redhat.com>
8975
8976 * go32-nat.c: Include inf-child.h.
8977 (go32_ops): Delete global.
8978 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8979 Delete methods.
8980 (go32_create_inferior): Push the passed in target pointer instead
8981 of referencing go32_ops.
8982 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8983 (go32_target): New function, based on init_go32_ops, but inherit
8984 inf_child_target.
8985 (_initialize_go32_nat): Use go32_target. Move parts of
8986 init_go32_ops here.
8987
8988 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8989
8990 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8991 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8992 SYMBOL_VALUE_ADDRESS.
8993 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8994
8995 2014-03-06 Yao Qi <yao@codesourcery.com>
8996
8997 * breakpoint.c (get_tracepoint_by_number): Remove argument
8998 optional_p. All callers updated. Adjust comments. Update
8999 output message.
9000 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9001
9002 2014-03-06 Yao Qi <yao@codesourcery.com>
9003
9004 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9005 early if get_number returns zero. Use 'p' instead of 'args'.
9006
9007 2014-03-06 Yao Qi <yao@codesourcery.com>
9008
9009 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9010 message.
9011
9012 2014-03-06 Yao Qi <yao@codesourcery.com>
9013
9014 PR breakpoints/16508
9015 * tracepoint.c (check_trace_running): New function.
9016 (trace_find_command): Move code to check_trace_running and
9017 call check_trace_running.
9018 (trace_find_pc_command): Likewise.
9019 (trace_find_tracepoint_command): Likewise.
9020 (trace_find_line_command): Likewise.
9021 (trace_find_range_command): Likewise.
9022 * tracepoint.h (check_trace_running): Likewise.
9023 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9024
9025 2014-03-06 Yao Qi <yao@codesourcery.com>
9026
9027 * target.h (struct target_ops) <to_traceframe_info>: Use
9028 TARGET_DEFAULT_NORETURN (tcomplain ()).
9029 * target-delegates.c: Regenerated.
9030
9031 2014-03-05 Pedro Alves <palves@redhat.com>
9032
9033 PR gdb/16575
9034 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9035 void. Update comment.
9036 (dcache_xfer_memory): Delete.
9037 (dcache_read_memory_partial): New, based on the read bits of
9038 dcache_xfer_memory.
9039 (dcache_update): Add status parameter. Use ULONGEST for len, and
9040 adjust. Discard cache lines if the reason for the update was
9041 error.
9042 * dcache.h (dcache_xfer_memory): Delete declaration.
9043 (dcache_read_memory_partial): New declaration.
9044 (dcache_update): Update prototype.
9045 * target.c (raw_memory_xfer_partial): Update the dcache here.
9046 (memory_xfer_partial_1): Don't handle dcache writes here.
9047
9048 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9049
9050 * remote-sim.c (gdbsim_load): Add const to prog.
9051
9052 2014-03-03 Tom Tromey <tromey@redhat.com>
9053
9054 * elfread.c (probe_key): Change to bfd_data.
9055 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9056 now per-BFD, not per-objfile.
9057 * stap-probe.c (stap_probe_destroy): Update comment.
9058 (handle_stap_probe): Allocate on the per-BFD obstack.
9059
9060 2014-03-03 Tom Tromey <tromey@redhat.com>
9061
9062 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9063 * breakpoint.c (create_longjmp_master_breakpoint): Use
9064 get_probe_address.
9065 (add_location_to_breakpoint, bkpt_probe_insert_location)
9066 (bkpt_probe_remove_location): Update.
9067 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9068 * elfread.c (elf_symfile_relocate_probe): Remove.
9069 (elf_probe_fns): Update.
9070 (insert_exception_resume_breakpoint): Change type of "probe"
9071 parameter to bound_probe.
9072 (check_exception_resume): Update.
9073 * objfiles.c (objfile_relocate1): Don't relocate probes.
9074 * probe.c (bound_probe_s): New typedef.
9075 (parse_probes): Use get_probe_address. Set sal's objfile.
9076 (find_probe_by_pc): Return a bound_probe.
9077 (collect_probes): Return a VEC(bound_probe_s).
9078 (compare_probes): Update.
9079 (gen_ui_out_table_header_info): Change type of "probes"
9080 parameter. Update.
9081 (info_probes_for_ops): Update.
9082 (get_probe_address): New function.
9083 (probe_safe_evaluate_at_pc): Update.
9084 * probe.h (struct probe_ops) <get_probe_address>: New field.
9085 <set_semaphore, clear_semaphore>: Add objfile parameter.
9086 (struct probe) <objfile>: Remove field.
9087 <arch>: New field.
9088 <address>: Update comment.
9089 (struct bound_probe): New.
9090 (find_probe_by_pc): Return a bound_probe.
9091 (get_probe_address): Declare.
9092 * solib-svr4.c (struct probe_and_action) <address>: New field.
9093 (hash_probe_and_action, equal_probe_and_action): Update.
9094 (register_solib_event_probe): Add address parameter.
9095 (solib_event_probe_at): Update.
9096 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9097 get_probe_address.
9098 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9099 (stap_get_probe_address): New function.
9100 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9101 (compile_probe_arg): Update.
9102 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9103 address.
9104 (handle_stap_probe): Don't relocate the probe.
9105 (stap_relocate): Remove.
9106 (stap_gen_info_probes_table_values): Update.
9107 (stap_probe_ops): Remove stap_relocate.
9108 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9109 (debug_sym_probe_fns): Update.
9110 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9111 * symtab.c (init_sal): Use memset.
9112 * symtab.h (struct symtab_and_line) <objfile>: New field.
9113 * tracepoint.c (start_tracing, stop_tracing): Update.
9114
9115 2014-03-03 Tom Tromey <tromey@redhat.com>
9116
9117 * probe.h (parse_probes, find_probe_by_pc)
9118 (find_probes_in_objfile): Fix comments.
9119
9120 2014-03-02 Doug Evans <xdje42@gmail.com>
9121
9122 * infrun.c (handle_signal_stop): Replace test for
9123 TARGET_WAITKIND_STOPPED with an assert.
9124
9125 2014-03-02 Doug Evans <xdje42@gmail.com>
9126
9127 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9128
9129 2014-03-02 Doug Evans <xdje42@gmail.com>
9130
9131 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9132
9133 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9134
9135 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9136
9137 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9138
9139 * i386obsd-nat.c: Include "obsd-nat.h".
9140 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9141 add_target.
9142 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9143
9144 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9145
9146 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9147
9148 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9149
9150 * mips64obsd-nat.c: Include "obsd-nath".
9151 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9152 add_target
9153 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9154
9155 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9156
9157 * amd64obsd-nat.c: Include "obsd-nat,h.
9158 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9159 add_target.
9160 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9161
9162 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9163
9164 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9165 (find_overload_match): Update call to find_oload_champ.
9166 (find_oload_champ_namespace_loop): Likewise
9167
9168 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9169
9170 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9171
9172 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9173 * config/sparc/obsd64.mh: New file.
9174 * sparc64obsd-nat.c: New file.
9175
9176 * obsd-nat.h: New file.
9177 * obsd-nat.c: New file.
9178 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9179 (ALLDEPFILES): Add obsd-nat.c.
9180
9181 2014-02-28 Tom Tromey <tromey@redhat.com>
9182
9183 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9184 * cli-out.h (cli_ui_out_impl): Now const.
9185 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9186 * ui-out.c (struct ui_out) <impl>: Now const.
9187 (default_ui_out_impl): Now const.
9188 (ui_out_new): Make 'impl' parameter const.
9189 * ui-out.h (ui_out_new): Update.
9190
9191 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9192
9193 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9194
9195 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9196
9197 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9198
9199 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9200
9201 Additional PR 8882 fix.
9202 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9203
9204 2014-02-27 Pedro Alves <palves@redhat.com>
9205
9206 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9207 isn't set.
9208
9209 2014-02-27 Pedro Alves <palves@redhat.com>
9210
9211 PR 12702
9212 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9213 * nat/linux-waitpid.c: Include string.h.
9214 (status_to_str): Moved here and made extern.
9215 * nat/linux-waitpid.h (status_to_str): New declaration.
9216
9217 2014-02-27 Hui Zhu <hui@codesourcery.com>
9218
9219 PR 12702
9220 * infrun.c (ptid_match): Move ...
9221 * common/ptid.c (ptid_match): ... here.
9222 * inferior.h (ptid_match): Move ...
9223 * common/ptid.h (ptid_match): ... here.
9224
9225 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9226
9227 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9228 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9229 gdb_target_obs.
9230
9231 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9232
9233 * obsd-tdep.c (obsd_auxv_parse): New function.
9234 (obsd_init_abi): Set auxv_parse.
9235
9236 * gdbarch.sh (auxv_parse): New.
9237 * gdbarch.h: Regenerated.
9238 * gdbarch.c: Regenerated.
9239 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9240
9241 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9242
9243 * guile/scm-value.c (gdbscm_history_append_x): New function.
9244 (value_functions): Add it.
9245
9246 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9247
9248 * dwarf2read.c (attr_value_as_address): New function.
9249 (dwarf2_find_base_address, read_call_site_scope): Use
9250 attr_value_as_address in place of DW_ADDR.
9251 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9252 the low and high addresses. Slight rework of the handling
9253 of the high pc being a constant form, and limit it to
9254 DWARF verson 4 or higher.
9255 (dwarf2_record_block_ranges): Likewise.
9256 (read_partial_die): Likewise.
9257 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9258
9259 2014-02-26 Tom Tromey <tromey@redhat.com>
9260
9261 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9262
9263 2014-02-26 Tom Tromey <tromey@redhat.com>
9264
9265 * elfread.c (elf_read_minimal_symbols): Return early if
9266 minimal symbols have already been read. Add "ei" parameter.
9267 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9268 * minsyms.c (prim_record_minimal_symbol_full): Update.
9269 * objfiles.h (struct objstats) <n_minsyms>: Move...
9270 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9271 * symmisc.c (print_objfile_statistics): Update.
9272
9273 2014-02-26 Tom Tromey <tromey@redhat.com>
9274
9275 * elfread.c (elf_read_minimal_symbols): New function, from
9276 elf_symfile_read.
9277 (elf_symfile_read): Call it.
9278
9279 2014-02-26 Tom Tromey <tromey@redhat.com>
9280
9281 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9282 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9283 (lookup_minimal_symbol_solib_trampoline)
9284 (lookup_minimal_symbol_by_pc_section_1)
9285 (lookup_minimal_symbol_and_objfile): Update.
9286 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9287 Don't allocate a minimal symbol if minsyms have already been read.
9288 (build_minimal_symbol_hash_tables): Update.
9289 (install_minimal_symbols): Do nothing if minsyms already read.
9290 Use the per-BFD obstack.
9291 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9292 * objfiles.c (allocate_objfile): Call
9293 terminate_minimal_symbol_table later.
9294 (have_minimal_symbols): Update.
9295 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9296 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9297 Move from struct objfile.
9298 <minsyms_read>: New field.
9299 (struct objfile) <msymbols, minimal_symbol_count,
9300 msymbol_hash, msymbol_demangled_hash>: Move.
9301 (ALL_OBJFILE_MSYMBOLS): Update.
9302 * symfile.c (read_symbols): Set minsyms_read.
9303 (reread_symbols): Update.
9304 * symmisc.c (dump_objfile, dump_msymbols): Update.
9305
9306 2014-02-26 Tom Tromey <tromey@redhat.com>
9307
9308 * minsyms.c (msymbols_sort): Remove.
9309 * minsyms.h (msymbols_sort): Remove.
9310 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9311 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9312 * elfread.c (elf_symtab_read): Don't add section offsets.
9313 * xcoffread.c (record_minimal_symbol): Don't add section offset
9314 to minimal symbol address.
9315 * somread.c (text_offset, data_offset): Remove.
9316 (som_symtab_read): Don't add section offsets to minimal symbol
9317 addresses.
9318 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9319 Don't add section offsets to minimal symbols.
9320 * coffread.c (coff_symtab_read): Don't add section offsets
9321 to minimal symbol addresses.
9322 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9323 to minimal symbol addresses.
9324 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9325 section offset to minimal symbol addresses.
9326 * mdebugread.c (parse_partial_symbols): Don't add section
9327 offset to minimal symbol addresses.
9328 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9329 offset to minimal symbol addresses.
9330
9331 2014-02-26 Tom Tromey <tromey@redhat.com>
9332
9333 * ada-lang.c (ada_main_name): Update.
9334 (ada_add_standard_exceptions): Update.
9335 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9336 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9337 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9338 * auxv.c (ld_so_xfer_auxv): Update.
9339 * avr-tdep.c (avr_scan_prologue): Update.
9340 * ax-gdb.c (gen_var_ref): Update.
9341 * blockframe.c (get_pc_function_start)
9342 (find_pc_partial_function_gnu_ifunc): Update.
9343 * breakpoint.c (create_overlay_event_breakpoint)
9344 (create_longjmp_master_breakpoint)
9345 (create_std_terminate_master_breakpoint)
9346 (create_exception_master_breakpoint): Update.
9347 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9348 * c-valprint.c (c_val_print): Update.
9349 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9350 * common/agent.c (agent_look_up_symbols): Update.
9351 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9352 * dwarf2loc.c (call_site_to_target_addr): Update.
9353 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9354 * elfread.c (elf_gnu_ifunc_record_cache)
9355 (elf_gnu_ifunc_resolve_by_got): Update.
9356 * findvar.c (default_read_var_value): Update.
9357 * frame.c (inside_main_func): Update.
9358 * frv-tdep.c (frv_frame_this_id): Update.
9359 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9360 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9361 Update.
9362 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9363 (hppa_hpux_find_dummy_bpaddr): Update.
9364 * hppa-tdep.c (hppa_symbol_address): Update.
9365 * infcmd.c (until_next_command): Update.
9366 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9367 Update.
9368 * linespec.c (minsym_found, add_minsym): Update.
9369 * linux-nat.c (get_signo): Update.
9370 * linux-thread-db.c (inferior_has_bug): Update.
9371 * m32c-tdep.c (m32c_return_value)
9372 (m32c_m16c_address_to_pointer): Update.
9373 * m32r-tdep.c (m32r_frame_this_id): Update.
9374 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9375 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9376 * maint.c (maintenance_translate_address): Update.
9377 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9378 (frob_address): New function.
9379 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9380 frob_address. Rename parameter to "pc_in".
9381 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9382 addresses.
9383 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9384 Update.
9385 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9386 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9387 * objc-lang.c (find_objc_msgsend): Update.
9388 * objfiles.c (objfile_relocate1): Update.
9389 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9390 * p-valprint.c (pascal_val_print): Update.
9391 * parse.c (write_exp_msymbol): Update.
9392 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9393 (ppc_elfv2_skip_entrypoint): Update.
9394 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9395 * printcmd.c (build_address_symbolic, msym_info)
9396 (address_info): Update.
9397 * proc-service.c (ps_pglobal_lookup): Update.
9398 * psymtab.c (find_pc_sect_psymtab_closer)
9399 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9400 Change msymbol parameter to bound_minimal_symbol.
9401 * ravenscar-thread.c (get_running_thread_id): Update.
9402 * remote.c (remote_check_symbols): Update.
9403 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9404 address.
9405 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9406 * solib-dsbt.c (lm_base): Update.
9407 * solib-frv.c (lm_base, main_got): Update.
9408 * solib-irix.c (locate_base): Update.
9409 * solib-som.c (som_solib_create_inferior_hook)
9410 (link_map_start): Update.
9411 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9412 * solib-svr4.c (elf_locate_base, enable_break): Update.
9413 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9414 (flush_ea_cache): Update.
9415 * stabsread.c (define_symbol, scan_file_globals): Update.
9416 * stack.c (find_frame_funname): Update.
9417 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9418 (debug_qf_find_pc_sect_symtab): Update.
9419 * symfile.c (simple_read_overlay_table)
9420 (simple_overlay_update): Update.
9421 * symfile.h (struct quick_symbol_functions)
9422 <find_pc_sect_symtab>: Change type of msymbol to
9423 bound_minimal_symbol.
9424 * symmisc.c (dump_msymbols): Update.
9425 * symtab.c (find_pc_sect_symtab_via_partial)
9426 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9427 (search_symbols, print_msymbol_info): Update.
9428 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9429 (MSYMBOL_VALUE_ADDRESS): Redefine.
9430 (BMSYMBOL_VALUE_ADDRESS): New macro.
9431 * tracepoint.c (scope_info): Update.
9432 * tui/tui-disasm.c (tui_find_disassembly_address)
9433 (tui_get_begin_asm_address): Update.
9434 * valops.c (find_function_in_inferior): Update.
9435 * value.c (value_static_field, value_fn_field): Update.
9436
9437 2014-02-26 Tom Tromey <tromey@redhat.com>
9438
9439 * ada-lang.c (ada_update_initial_language): Update.
9440 (ada_main_name, ada_has_this_exception_support): Update.
9441 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9442 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9443 * arm-tdep.c (arm_skip_stub): Update.
9444 * auxv.c (ld_so_xfer_auxv): Update.
9445 * avr-tdep.c (avr_scan_prologue): Update.
9446 * ax-gdb.c (gen_var_ref): Update.
9447 * breakpoint.c (struct breakpoint_objfile_data)
9448 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9449 type to bound_minimal_symbol.
9450 (create_overlay_event_breakpoint)
9451 (create_longjmp_master_breakpoint)
9452 (create_std_terminate_master_breakpoint)
9453 (create_exception_master_breakpoint): Update.
9454 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9455 * c-exp.y (classify_name): Update.
9456 * coffread.c (coff_symfile_read): Update.
9457 * common/agent.c (agent_look_up_symbols): Update.
9458 * d-lang.c (d_main_name): Update.
9459 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9460 * dec-thread.c (enable_dec_thread): Update.
9461 * dwarf2loc.c (call_site_to_target_addr): Update.
9462 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9463 * eval.c (evaluate_subexp_standard): Update.
9464 * findvar.c (struct minsym_lookup_data) <result>: Change type
9465 to bound_minimal_symbol.
9466 <objfile>: Remove.
9467 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9468 * frame.c (inside_main_func): Update.
9469 * frv-tdep.c (frv_frame_this_id): Update.
9470 * gcore.c (call_target_sbrk): Update.
9471 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9472 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9473 Update.
9474 * go-lang.c (go_main_name): Update.
9475 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9476 (hppa_hpux_find_import_stub_for_addr): Update.
9477 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9478 Update. Change return type.
9479 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9480 type.
9481 * jit.c (jit_breakpoint_re_set_internal): Update.
9482 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9483 Update.
9484 * linux-nat.c (get_signo): Update.
9485 * linux-thread-db.c (inferior_has_bug): Update
9486 * m32c-tdep.c (m32c_return_value)
9487 (m32c_m16c_address_to_pointer): Update.
9488 * m32r-tdep.c (m32r_frame_this_id): Update.
9489 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9490 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9491 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9492 lookup_minimal_symbol. Change return type.
9493 (lookup_minimal_symbol): Remove.
9494 (lookup_bound_minimal_symbol): Update.
9495 (lookup_minimal_symbol_text): Change return type.
9496 (lookup_minimal_symbol_solib_trampoline): Change return type.
9497 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9498 (lookup_minimal_symbol_solib_trampoline): Change return type.
9499 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9500 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9501 (value_nsstring, find_imps): Update.
9502 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9503 * p-lang.c (pascal_main_name): Update.
9504 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9505 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9506 * proc-service.c (ps_pglobal_lookup): Update.
9507 * ravenscar-thread.c (get_running_thread_msymbol): Change
9508 return type.
9509 (has_ravenscar_runtime, get_running_thread_id): Update.
9510 * remote.c (remote_check_symbols): Update.
9511 * sol-thread.c (ps_pglobal_lookup): Update.
9512 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9513 * solib-dsbt.c (lm_base): Update.
9514 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9515 Update.
9516 * solib-irix.c (locate_base): Update.
9517 * solib-som.c (som_solib_create_inferior_hook)
9518 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9519 Update.
9520 * solib-spu.c (spu_enable_break): Update.
9521 * solib-svr4.c (elf_locate_base, enable_break): Update.
9522 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9523 (flush_ea_cache): Update.
9524 * stabsread.c (define_symbol): Update.
9525 * symfile.c (simple_read_overlay_table): Update.
9526 * symtab.c (find_pc_sect_line): Update.
9527 * tracepoint.c (scope_info): Update.
9528 * tui-disasm.c (tui_get_begin_asm_address): Update.
9529 * value.c (value_static_field): Update.
9530
9531 2014-02-26 Tom Tromey <tromey@redhat.com>
9532
9533 * minsyms.c (prim_record_minimal_symbol_full): Use
9534 SET_MSYMBOL_VALUE_ADDRESS.
9535 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9536 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9537 SET_MSYMBOL_VALUE_ADDRESS.
9538 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9539 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9540
9541 2014-02-26 Tom Tromey <tromey@redhat.com>
9542
9543 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9544 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9545 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9546 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9547 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9548 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9549 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9550 * ada-lang.c (ada_main_name): Update.
9551 (ada_lookup_simple_minsym): Update.
9552 (ada_make_symbol_completion_list): Update.
9553 (ada_add_standard_exceptions): Update.
9554 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9555 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9556 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9557 * arm-tdep.c (skip_prologue_function): Update.
9558 (arm_skip_stack_protector, arm_skip_stub): Update.
9559 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9560 (arm_wince_skip_main_prologue): Update.
9561 * auxv.c (ld_so_xfer_auxv): Update.
9562 * avr-tdep.c (avr_scan_prologue): Update.
9563 * ax-gdb.c (gen_var_ref): Update.
9564 * block.c (call_site_for_pc): Update.
9565 * blockframe.c (get_pc_function_start): Update.
9566 (find_pc_partial_function_gnu_ifunc): Update.
9567 * breakpoint.c (create_overlay_event_breakpoint): Update.
9568 (create_longjmp_master_breakpoint): Update.
9569 (create_std_terminate_master_breakpoint): Update.
9570 (create_exception_master_breakpoint): Update.
9571 (resolve_sal_pc): Update.
9572 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9573 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9574 Update.
9575 * c-valprint.c (c_val_print): Update.
9576 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9577 * coffread.c (coff_symfile_read): Update.
9578 * common/agent.c (agent_look_up_symbols): Update.
9579 * dbxread.c (find_stab_function_addr): Update.
9580 (end_psymtab): Update.
9581 * dwarf2loc.c (call_site_to_target_addr): Update.
9582 (func_verify_no_selftailcall): Update.
9583 (tailcall_dump): Update.
9584 (call_site_find_chain_1): Update.
9585 (dwarf_expr_reg_to_entry_parameter): Update.
9586 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9587 (elf_gnu_ifunc_resolve_by_got): Update.
9588 * f-valprint.c (info_common_command): Update.
9589 * findvar.c (read_var_value): Update.
9590 * frame.c (get_prev_frame_1): Update.
9591 (inside_main_func): Update.
9592 * frv-tdep.c (frv_skip_main_prologue): Update.
9593 (frv_frame_this_id): Update.
9594 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9595 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9596 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9597 (gnuv3_skip_trampoline): Update.
9598 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9599 (hppa64_hpux_in_solib_call_trampoline): Update.
9600 (hppa_hpux_skip_trampoline_code): Update.
9601 (hppa64_hpux_search_dummy_call_sequence): Update.
9602 (hppa_hpux_find_import_stub_for_addr): Update.
9603 (hppa_hpux_find_dummy_bpaddr): Update.
9604 * hppa-tdep.c (hppa_symbol_address)
9605 (hppa_lookup_stub_minimal_symbol): Update.
9606 * i386-tdep.c (i386_skip_main_prologue): Update.
9607 (i386_pe_skip_trampoline_code): Update.
9608 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9609 * infcall.c (get_function_name): Update.
9610 * infcmd.c (until_next_command): Update.
9611 * jit.c (jit_breakpoint_re_set_internal): Update.
9612 (jit_inferior_init): Update.
9613 * linespec.c (minsym_found): Update.
9614 (add_minsym): Update.
9615 * linux-fork.c (info_checkpoints_command): Update.
9616 * linux-nat.c (get_signo): Update.
9617 * linux-thread-db.c (inferior_has_bug): Update.
9618 * m32c-tdep.c (m32c_return_value): Update.
9619 (m32c_m16c_address_to_pointer): Update.
9620 (m32c_m16c_pointer_to_address): Update.
9621 * m32r-tdep.c (m32r_frame_this_id): Update.
9622 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9623 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9624 * maint.c (maintenance_translate_address): Update.
9625 * minsyms.c (add_minsym_to_hash_table): Update.
9626 (add_minsym_to_demangled_hash_table): Update.
9627 (msymbol_objfile): Update.
9628 (lookup_minimal_symbol): Update.
9629 (iterate_over_minimal_symbols): Update.
9630 (lookup_minimal_symbol_text): Update.
9631 (lookup_minimal_symbol_by_pc_name): Update.
9632 (lookup_minimal_symbol_solib_trampoline): Update.
9633 (lookup_minimal_symbol_by_pc_section_1): Update.
9634 (lookup_minimal_symbol_and_objfile): Update.
9635 (prim_record_minimal_symbol_full): Update.
9636 (compare_minimal_symbols): Update.
9637 (compact_minimal_symbols): Update.
9638 (build_minimal_symbol_hash_tables): Update.
9639 (install_minimal_symbols): Update.
9640 (terminate_minimal_symbol_table): Update.
9641 (find_solib_trampoline_target): Update.
9642 (minimal_symbol_upper_bound): Update.
9643 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9644 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9645 (mips_skip_pic_trampoline_code): Update.
9646 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9647 * objc-lang.c (selectors_info): Update.
9648 (classes_info): Update.
9649 (find_methods): Update.
9650 (find_imps): Update.
9651 (find_objc_msgsend): Update.
9652 * objfiles.c (objfile_relocate1): Update.
9653 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9654 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9655 * p-valprint.c (pascal_val_print): Update.
9656 * parse.c (write_exp_msymbol): Update.
9657 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9658 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9659 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9660 * printcmd.c (build_address_symbolic): Update.
9661 (sym_info): Update.
9662 (address_info): Update.
9663 * proc-service.c (ps_pglobal_lookup): Update.
9664 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9665 (find_pc_sect_psymtab): Update.
9666 * python/py-framefilter.c (py_print_frame): Update.
9667 * ravenscar-thread.c (get_running_thread_id): Update.
9668 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9669 Update.
9670 * remote.c (remote_check_symbols): Update.
9671 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9672 (rs6000_skip_trampoline_code): Update.
9673 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9674 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9675 * solib-dsbt.c (lm_base): Update.
9676 * solib-frv.c (lm_base): Update.
9677 (main_got): Update.
9678 * solib-irix.c (locate_base): Update.
9679 * solib-som.c (som_solib_create_inferior_hook): Update.
9680 (som_solib_desire_dynamic_linker_symbols): Update.
9681 (link_map_start): Update.
9682 * solib-spu.c (spu_enable_break): Update.
9683 (ocl_enable_break): Update.
9684 * solib-svr4.c (elf_locate_base): Update.
9685 (enable_break): Update.
9686 * spu-tdep.c (spu_get_overlay_table): Update.
9687 (spu_catch_start): Update.
9688 (flush_ea_cache): Update.
9689 * stabsread.c (define_symbol): Update.
9690 (scan_file_globals): Update.
9691 * stack.c (find_frame_funname): Update.
9692 (frame_info): Update.
9693 * symfile.c (simple_read_overlay_table): Update.
9694 (simple_overlay_update): Update.
9695 * symmisc.c (dump_msymbols): Update.
9696 * symtab.c (fixup_section): Update.
9697 (find_pc_sect_line): Update.
9698 (skip_prologue_sal): Update.
9699 (search_symbols): Update.
9700 (print_msymbol_info): Update.
9701 (rbreak_command): Update.
9702 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9703 (completion_list_objc_symbol): Update.
9704 (default_make_symbol_completion_list_break_on): Update.
9705 * tracepoint.c (scope_info): Update.
9706 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9707 (tui_get_begin_asm_address): Update.
9708 * valops.c (find_function_in_inferior): Update.
9709 * value.c (value_static_field): Update.
9710 (value_fn_field): Update.
9711
9712 2014-02-26 Tom Tromey <tromey@redhat.com>
9713
9714 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9715 bound minimal symbols. Move code that knows about minsym
9716 table layout...
9717 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9718 function.
9719 * minsyms.h (minimal_symbol_upper_bound): Declare.
9720 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9721 minimal_symbol_upper_bound.
9722
9723 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9724
9725 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9726 Use the type's name if its basic type does not have a tag.
9727
9728 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9729
9730 * dwarf2read.c (read_subrange_type): Add comment.
9731
9732 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9733
9734 * dwarf2read.c (update_enumeration_type_from_children): New
9735 function, mostly extracted from process_structure_scope.
9736 (read_enumeration_type): Call update_enumeration_type_from_children.
9737 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9738 and flag_flag_enum fields.
9739
9740 2014-02-26 Pedro Alves <palves@redhat.com>
9741
9742 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9743 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9744 to_xfer_partial method.
9745
9746 2014-02-26 Pedro Alves <palves@redhat.com>
9747
9748 * target.c (complete_target_initialization): Don't install
9749 default_xfer_partial as to_xfer_partial hook.
9750 (nomemory): Delete.
9751 (update_current_target): Don't INHERIT nor de_fault
9752 deprecated_xfer_memory. Delete de_fault macro.
9753 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9754 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9755 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9756 field.
9757
9758 2014-02-26 Pedro Alves <palves@redhat.com>
9759
9760 * go32-nat.c (my_write_child): New function.
9761 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9762 (go32_xfer_partial): New function.
9763 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9764 Instead install a to_xfer_partial hook.
9765
9766 2014-02-26 Pedro Alves <palves@redhat.com>
9767
9768 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9769 to_xfer_partial helper. Rewrite.
9770 (procfs_xfer_partial): New function.
9771 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9772 Install a to_xfer_partial hook.
9773
9774 2014-02-26 Pedro Alves <palves@redhat.com>
9775
9776 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9777 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9778 (m32r_xfer_partial): New function.
9779 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9780 Install a to_xfer_partial hook.
9781
9782 2014-02-26 Pedro Alves <palves@redhat.com>
9783
9784 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9785 helper.
9786 (mips_xfer_partial): New function.
9787 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9788 hook. Install a to_xfer_partial hook.
9789
9790 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9791
9792 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9793 * gdbtypes.c (create_array_type_with_stride): New function,
9794 renaming create_array_type, but with an added parameter
9795 called "bit_stride".
9796 (create_array_type): Re-implement using
9797 create_array_type_with_stride.
9798 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9799 and DW_AT_bit_stride attributes.
9800
9801 2014-02-26 Pedro Alves <palves@redhat.com>
9802
9803 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9804 task-specific breakpoints.
9805
9806 2014-02-25 Pedro Alves <palves@redhat.com>
9807
9808 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9809 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9810
9811 2014-02-25 Stan Shebs <stan@codesourcery.com>
9812
9813 * defs.h: Annotate comments for Doxygen.
9814
9815 2014-02-25 Tom Tromey <tromey@redhat.com>
9816
9817 * target.h (target_ignore): Don't declare.
9818 * target.c (target_ignore): Remove.
9819
9820 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9821
9822 PR gdb/16626
9823 * auto-load.c (auto_load_objfile_script_1): Change filename to
9824 debugfile.
9825
9826 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9827
9828 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9829 documentation. Adjust prototype to match the target_ops
9830 to_xfer_partial method. Adjust implementation accordingly.
9831
9832 2014-02-25 Hui Zhu <hui@codesourcery.com>
9833
9834 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9835 to_traceframe_info.
9836
9837 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9838
9839 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9840 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9841 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9842 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9843 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9844 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9845 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9846 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9847 New constants.
9848 (rl78_register_type): Use a data pointer type for SP and
9849 new pseudo registers mentioned above. Use a 16 bit integer
9850 type for all other register pairs.
9851 (rl78_register_name, rl78_g10_register_name): Update for
9852 new pseudo registers.
9853 (rl78_pseudo_register_read): Likewise.
9854 (rl78_pseudo_register_write): Likewise.
9855 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9856 to the newly added pseudo registers.
9857
9858 2014-02-24 Doug Evans <dje@google.com>
9859
9860 * value.c (record_latest_value): Fix comment.
9861 * printcmd.c (print_command_1): Remove code to handle -1 return from
9862 record_latest_value.
9863
9864 2014-02-24 Pedro Alves <palves@redhat.com>
9865
9866 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9867 deprecated_xfer_memory hook.
9868 (procfs_xfer_partial): Call procfs_xfer_memory instead
9869 of the deprecated_xfer_memory target hook.
9870 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9871 helper.
9872
9873 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9874
9875 * windows-nat.c (windows_xfer_shared_libraries): Return
9876 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9877 requested object is TARGET_OBJECT_LIBRARIES.
9878
9879 2014-02-24 Yao Qi <yao@codesourcery.com>
9880
9881 * target.h (enum target_xfer_status)
9882 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9883 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9884 explicitly. New.
9885 * corefile.c (memory_error_message): User updated.
9886 * exec.c (section_table_read_available_memory): Likewise.
9887 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9888 * target.c (target_xfer_status_to_string): Likewise.
9889 (raw_memory_xfer_partial): Likewise.
9890 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9891 * valops.c (read_value_memory): Likewise.
9892 * exec.h: Update comments.
9893
9894 2014-02-24 Yao Qi <yao@codesourcery.com>
9895
9896 * target.c (target_xfer_status_to_string): Rename argument err
9897 to status.
9898 * target.h (target_xfer_status_to_string): Update declaration.
9899 Replace target_xfer_error_to_string with
9900 target_xfer_status_to_string in comment.
9901
9902 2014-02-24 Yao Qi <yao@codesourcery.com>
9903
9904 * mips-linux-nat.c (super_close): Update its type.
9905 (mips_linux_close): Pass 'self' to super_close.
9906
9907 2014-02-24 Yao Qi <yao@codesourcery.com>
9908
9909 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9910 * corefile.c (read_memory): Adjusted.
9911 * target.c (target_write_with_progress): Adjusted.
9912
9913 2014-02-23 Yao Qi <yao@codesourcery.com>
9914
9915 Revert two patches:
9916
9917 2013-10-25 Yao Qi <yao@codesourcery.com>
9918
9919 * remote.c (remote_traceframe_info): Return early if
9920 traceframe is not selected.
9921
9922 2013-07-19 Yao Qi <yao@codesourcery.com>
9923
9924 * target.c (update_current_target): Change the default action
9925 of 'to_traceframe_info' from tcomplain to return_zero.
9926 * target.h (struct target_ops) <to_traceframe_info>: Add more
9927 comments.
9928
9929 2014-02-23 Yao Qi <yao@codesourcery.com>
9930
9931 * valops.c (read_value_memory): Rewrite it. Call
9932 target_xfer_partial in a loop.
9933 * exec.h (section_table_available_memory): Remove declaration.
9934 Move comments to ...
9935 * exec.c (section_table_available_memory): ... here. Make it
9936 static.
9937
9938 2014-02-23 Yao Qi <yao@codesourcery.com>
9939
9940 * exec.c (section_table_read_available_memory): New function.
9941 * exec.h (section_table_read_available_memory): Declare.
9942 * ctf.c (ctf_xfer_partial): Call
9943 section_table_read_available_memory.
9944 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9945
9946 2014-02-23 Yao Qi <yao@codesourcery.com>
9947
9948 * ctf.c (ctf_xfer_partial): Move code to ...
9949 * exec.c (exec_read_partial_read_only): ... it. New function.
9950 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9951 * tracefile.c: Include "exec.h".
9952 * exec.h (exec_read_partial_read_only): Declare.
9953
9954 2014-02-23 Yao Qi <yao@codesourcery.com>
9955
9956 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9957 (tfile_has_memory): Remove.
9958 (init_tfile_ops): Don't set fields to_has_all_memory and
9959 to_has_memory of tfile_ops.
9960 * tracefile.c (tracefile_has_all_memory): New function.
9961 (tracefile_has_memory): New function.
9962 (init_tracefile_ops): Initialize fields to_has_all_memory and
9963 to_has_memory of 'ops'.
9964
9965 2014-02-23 Yao Qi <yao@codesourcery.com>
9966
9967 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9968 (ctf_thread_alive, ctf_get_trace_status): Remove.
9969 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9970 init_tracefile_ops.
9971 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9972 (tfile_has_stack, tfile_has_registers): Remove.
9973 (tfile_thread_alive): Remove.
9974 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9975 init_tracefile_ops.
9976 * tracefile.c (tracefile_has_stack): New function.
9977 (tracefile_has_registers): New function.
9978 (tracefile_thread_alive): New function.
9979 (tracefile_get_trace_status): New function.
9980 (init_tracefile_ops): New function.
9981 * tracefile.h (init_tracefile_ops): Declare.
9982
9983 2014-02-23 Yao Qi <yao@codesourcery.com>
9984
9985 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9986 (O_LARGEFILE): Likewise.
9987 (tfile_ops): Likewise.
9988 (TRACE_HEADER_SIZE): Likewise.
9989 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9990 (cur_data_size): Likewise.
9991 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9992 (tfile_close, tfile_files_info): Likewise.
9993 (tfile_get_trace_status): Likewise.
9994 (tfile_get_tracepoint_status): Likewise.
9995 (tfile_get_traceframe_address): Likewise.
9996 (tfile_trace_find, match_blocktype): Likewise.
9997 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9998 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9999 (tfile_get_trace_state_variable_value): Likewise.
10000 (tfile_has_all_memory, tfile_has_memory): Likewise.
10001 (tfile_has_stack, tfile_has_registers): Likewise.
10002 (tfile_thread_alive, build_traceframe_info): Likewise.
10003 (tfile_traceframe_info, init_tfile_ops): Likewise.
10004 (_initialize_tracepoint): Don't call init_tfile_ops
10005 and add_target_with_completer.
10006 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10007 exec.h, completer.h and filenames.h.
10008 (_initialize_tracefile_tfile): New function.
10009
10010 2014-02-23 Yao Qi <yao@codesourcery.com>
10011
10012 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10013 tracefile-tfile.o.
10014 (HFILES_NO_SRCDIR): Add tracefile.h.
10015 * ctf.c: Include "tracefile.h".
10016 * tracefile.h: New file.
10017 * tracefile.c: New file
10018 * tracefile-tfile.c: New file.
10019 * tracepoint.c: Include "tracefile.h".
10020 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10021 (stop_reason_names): Add const.
10022 (trace_file_writer_xfree): Move it to tracefile.c.
10023 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10024 (trace_save_ctf): Likewise.
10025 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10026 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10027 (tfile_write_header, tfile_write_regblock_type): Likewise.
10028 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10029 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10030 (tfile_write_raw_data, tfile_end): Likewise.
10031 (tfile_trace_file_writer_new): Likewise.
10032 (free_uploaded_tp): Make it extern.
10033 (free_uploaded_tsv): Make it extern.
10034 (_initialize_tracepoint): Move code to register command 'tsave'
10035 to tracefile.c.
10036 * tracepoint.h (stop_reason_names): Declare.
10037 (struct trace_frame_write_ops): Move it to tracefile.h.
10038 (struct trace_file_write_ops): Likewise.
10039 (struct trace_file_writer): Likewise.
10040 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10041
10042 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10043
10044 PR gdb/16594
10045 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10046 process name.
10047 (get_cores_used_by_process): New parameter num_cores, use it.
10048 (linux_xfer_osdata_processes): Pass num_cores to it.
10049 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10050 process name.
10051
10052 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10053
10054 * target.c (memory_xfer_partial): Fix length arg in call to
10055 breakpoint_xfer_memory.
10056
10057 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10058
10059 PR tdep/16397
10060 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10061 number comes after the + or - signs. Adjust length of register
10062 name to be extracted.
10063
10064 2014-02-20 Tom Tromey <tromey@redhat.com>
10065
10066 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10067 (ada_varobj_ops): Mark "extern".
10068
10069 2014-02-20 Tom Tromey <tromey@redhat.com>
10070
10071 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10072
10073 2014-02-20 Doug Evans <xdje42@gmail.com>
10074
10075 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10076 All callers updated.
10077 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10078 All callers updated.
10079 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10080 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10081
10082 2014-02-20 lin zuojian <manjian2006@gmail.com>
10083 Joel Brobecker <brobecker@adacore.com>
10084 Doug Evans <xdje42@gmail.com>
10085
10086 PR symtab/16581
10087 * dwarf2read.c (struct die_info): New member in_process.
10088 (reset_die_in_process): New function.
10089 (process_die): Set it at the start, reset when returning.
10090 (inherit_abstract_dies): Only call process_die if origin_child_die
10091 not already being processed.
10092
10093 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10094
10095 * windows-nat.c (handle_unload_dll): Add function documentation.
10096 (do_initial_windows_stuff): Add comment explaining why we wait
10097 until after inferior initialization has finished before
10098 processing all DLLs.
10099
10100 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10101
10102 * windows-nat.c (get_module_name): Delete.
10103 (windows_get_exec_module_filename): New function, mostly
10104 inspired from get_module_name.
10105 (windows_pid_to_exec_file): Replace call to get_module_name
10106 by call to windows_get_exec_module_filename.
10107
10108 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10109
10110 * windows-nat.c (handle_load_dll): Rewrite this function's
10111 introductory comment. Remove code using get_module_name
10112 to get the DLL's name.
10113
10114 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10115
10116 * windows-nat.c (get_windows_debug_event): Ignore
10117 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10118 if windows_initialization_done == 0.
10119 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10120 Adjust implementation to always load all DLLs.
10121 (do_initial_windows_stuff): Replace call to
10122 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10123
10124 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10125
10126 * windows-nat.c (_initialize_windows_nat): Deprecate the
10127 "dll-symbols" command. Turn the "add-shared-symbol-files"
10128 and "assf" aliases into commands, and deprecate them as well.
10129 * NEWS: Add entry explaining that "dll-symbols" and its two
10130 aliases are now deprecated.
10131
10132 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10133
10134 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10135 new-line in debug string. Remove trailing spaces.
10136
10137 2014-02-19 Stan Shebs <stan@codesourcery.com>
10138
10139 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10140
10141 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10142
10143 * NEWS: Add entry for the new feature
10144 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10145 and class values.
10146
10147 2014-02-19 Stan Shebs <stan@codesourcery.com>
10148
10149 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10150
10151 2014-02-19 Pedro Alves <palves@redhat.com>
10152
10153 * common/ptid.h (struct ptid): Mention that process_stratum
10154 targets should prefer ptid.lwp.
10155
10156 2014-02-19 Pedro Alves <palves@redhat.com>
10157
10158 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10159 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10160 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10161 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10162 store remote thread ids rather than ptid.tid.
10163 (_initialize_remote): Adjust.
10164
10165 2014-02-19 Tom Tromey <tromey@redhat.com>
10166
10167 * target.c (target_get_unwinder): Rewrite.
10168 (target_get_tailcall_unwinder): Rewrite.
10169 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10170 (record_btrace_to_get_tailcall_unwinder): New function.
10171 (init_record_btrace_ops): Update.
10172 * target.h (struct target_ops) <to_get_unwinder,
10173 to_get_tailcall_unwinder>: Now function pointers. Use
10174 TARGET_DEFAULT_RETURN.
10175
10176 2014-02-19 Tom Tromey <tromey@redhat.com>
10177
10178 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10179 argument.
10180 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10181
10182 2014-02-19 Tom Tromey <tromey@redhat.com>
10183
10184 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10185 directly.
10186 * target-delegates.c: Rebuild.
10187 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10188 TARGET_DEFAULT_FUNC.
10189 * target.c (default_target_decr_pc_after_break): Rename from
10190 forward_target_decr_pc_after_break. Simplify.
10191 (target_decr_pc_after_break): Rely on delegation.
10192
10193 2014-02-19 Tom Tromey <tromey@redhat.com>
10194
10195 * target.c (update_current_target): Do not INHERIT to_doc or
10196 to_magic. Do not de_fault to_open or to_close.
10197
10198 2014-02-19 Tom Tromey <tromey@redhat.com>
10199
10200 * gcore.h (objfile_find_memory_regions): Declare.
10201 * gcore.c (objfile_find_memory_regions): No longer static. Add
10202 "self" argument.
10203 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10204 * exec.c: Include gcore.h.
10205 (exec_set_find_memory_regions): Remove.
10206 (exec_find_memory_regions): Remove.
10207 (exec_do_find_memory_regions): Remove.
10208 (init_exec_ops): Update.
10209 * defs.h (exec_set_find_memory_regions): Remove.
10210
10211 2014-02-19 Tom Tromey <tromey@redhat.com>
10212
10213 * target-delegates.c: Rebuild.
10214 * target.h (struct target_ops) <to_extra_thread_info,
10215 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10216 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10217 not 0, in TARGET_DEFAULT_RETURN.
10218
10219 2014-02-19 Tom Tromey <tromey@redhat.com>
10220
10221 * target.c (complete_target_initialization): Remove casts. Use
10222 return_zero_has_execution.
10223 (return_zero): Add "ignore" argument.
10224 (return_zero_has_execution): New function.
10225 (init_dummy_target): Remove casts. Use
10226 return_zero_has_execution.
10227
10228 2014-02-19 Tom Tromey <tromey@redhat.com>
10229
10230 * target.c (update_current_target): Update comments. Do not
10231 INHERIT to_stratum.
10232
10233 2014-02-19 Tom Tromey <tromey@redhat.com>
10234
10235 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10236 needed.
10237 * corelow.c (core_read_description): Delegate when needed.
10238 * remote.c (remote_read_description): Delegate when needed.
10239 * target-delegates.c: Rebuild.
10240 * target.c (target_read_description): Rewrite.
10241 * target.h (struct target_ops) <to_read_description>: Update
10242 comment. Use TARGET_DEFAULT_RETURN.
10243
10244 2014-02-19 Tom Tromey <tromey@redhat.com>
10245
10246 * target-delegates.c: Rebuild.
10247 * target.c (update_current_target): Don't inherit or default
10248 to_can_run.
10249 (find_default_run_target): Check against delegate_can_run.
10250 * target.h (struct target_ops) <to_can_run>: Use
10251 TARGET_DEFAULT_RETURN.
10252
10253 2014-02-19 Tom Tromey <tromey@redhat.com>
10254
10255 * target-delegates.c: Rebuild.
10256 * target.c (target_disconnect): Unconditionally delegate.
10257 * target.h (struct target_ops) <to_disconnect>: Use
10258 TARGET_DEFAULT_NORETURN.
10259
10260 2014-02-19 Tom Tromey <tromey@redhat.com>
10261
10262 * record.c (record_stop): Unconditionally delegate.
10263 * target-delegates.c: Rebuild.
10264 * target.c (target_stop_recording): Unconditionally delegate.
10265 * target.h (struct target_ops) <to_stop_recording>: Use
10266 TARGET_DEFAULT_IGNORE.
10267
10268 2014-02-19 Tom Tromey <tromey@redhat.com>
10269
10270 * target-delegates.c: Rebuild.
10271 * target.c (target_enable_btrace): Unconditionally delegate.
10272 * target.h (struct target_ops) <to_enable_btrace>: Use
10273 TARGET_DEFAULT_NORETURN.
10274
10275 2014-02-19 Tom Tromey <tromey@redhat.com>
10276
10277 * target-delegates.c: Rebuild.
10278 * target.c (target_read_btrace): Unconditionally delegate.
10279 * target.h (struct target_ops) <to_read_btrace>: Use
10280 TARGET_DEFAULT_NORETURN.
10281
10282 2014-02-19 Tom Tromey <tromey@redhat.com>
10283
10284 * target-delegates.c: Rebuild.
10285 * target.c (target_teardown_btrace): Unconditionally delegate.
10286 * target.h (struct target_ops) <to_teardown_btrace>: Use
10287 TARGET_DEFAULT_NORETURN.
10288
10289 2014-02-19 Tom Tromey <tromey@redhat.com>
10290
10291 * target-delegates.c: Rebuild.
10292 * target.c (target_disable_btrace): Unconditionally delegate.
10293 * target.h (struct target_ops) <to_disable_btrace>: Use
10294 TARGET_DEFAULT_NORETURN.
10295
10296 2014-02-19 Tom Tromey <tromey@redhat.com>
10297
10298 * target-delegates.c: Rebuild.
10299 * target.c (default_search_memory): New function.
10300 (simple_search_memory): Update comment.
10301 (target_search_memory): Unconditionally delegate.
10302 * target.h (struct target_ops) <to_search_memory>: Use
10303 TARGET_DEFAULT_FUNC.
10304
10305 2014-02-19 Tom Tromey <tromey@redhat.com>
10306
10307 * auxv.c (default_auxv_parse): No longer static.
10308 (target_auxv_parse): Unconditionally delegate.
10309 * auxv.h (default_auxv_parse): Declare.
10310 * target-delegates.c: Rebuild.
10311 * target.c: Include auxv.h.
10312 * target.h (struct target_ops) <to_auxv_parse>: Use
10313 TARGET_DEFAULT_FUNC.
10314
10315 2014-02-19 Tom Tromey <tromey@redhat.com>
10316
10317 * target-delegates.c: Rebuild.
10318 * target.c (target_memory_map): Unconditionally delegate.
10319 * target.h (struct target_ops) <to_memory_map>: Use
10320 TARGET_DEFAULT_RETURN.
10321
10322 2014-02-19 Tom Tromey <tromey@redhat.com>
10323
10324 * target-delegates.c: Rebuild.
10325 * target.c (target_thread_alive): Unconditionally delegate.
10326 * target.h (struct target_ops) <to_thread_alive>: Use
10327 TARGET_DEFAULT_RETURN.
10328
10329 2014-02-19 Tom Tromey <tromey@redhat.com>
10330
10331 * target-delegates.c: Rebuild.
10332 * target.c (target_save_record): Unconditionally delegate.
10333 * target.h (struct target_ops) <to_save_record>: Use
10334 TARGET_DEFAULT_NORETURN.
10335
10336 2014-02-19 Tom Tromey <tromey@redhat.com>
10337
10338 * target-delegates.c: Rebuild.
10339 * target.c (target_delete_record): Unconditionally delegate.
10340 * target.h (struct target_ops) <to_delete_record>: Use
10341 TARGET_DEFAULT_NORETURN.
10342
10343 2014-02-19 Tom Tromey <tromey@redhat.com>
10344
10345 * target-delegates.c: Rebuild.
10346 * target.c (target_record_is_replaying): Unconditionally
10347 delegate.
10348 * target.h (struct target_ops) <to_record_is_replaying>: Use
10349 TARGET_DEFAULT_RETURN.
10350
10351 2014-02-19 Tom Tromey <tromey@redhat.com>
10352
10353 * target-delegates.c: Rebuild.
10354 * target.c (target_goto_record_begin): Unconditionally delegate.
10355 * target.h (struct target_ops) <to_goto_record_begin>: Use
10356 TARGET_DEFAULT_NORETURN.
10357
10358 2014-02-19 Tom Tromey <tromey@redhat.com>
10359
10360 * target-delegates.c: Rebuild.
10361 * target.c (target_goto_record_end): Unconditionally delegate.
10362 * target.h (struct target_ops) <to_goto_record_end>: Use
10363 TARGET_DEFAULT_NORETURN.
10364
10365 2014-02-19 Tom Tromey <tromey@redhat.com>
10366
10367 * target-delegates.c: Rebuild.
10368 * target.c (target_goto_record): Unconditionally delegate.
10369 * target.h (struct target_ops) <to_goto_record>: Use
10370 TARGET_DEFAULT_NORETURN.
10371
10372 2014-02-19 Tom Tromey <tromey@redhat.com>
10373
10374 * target-delegates.c: Rebuild.
10375 * target.c (target_insn_history): Unconditionally delegate.
10376 * target.h (struct target_ops) <to_insn_history>: Use
10377 TARGET_DEFAULT_NORETURN.
10378
10379 2014-02-19 Tom Tromey <tromey@redhat.com>
10380
10381 * target-delegates.c: Rebuild.
10382 * target.c (target_insn_history_from): Unconditionally delegate.
10383 * target.h (struct target_ops) <to_insn_history_from>: Use
10384 TARGET_DEFAULT_NORETURN.
10385
10386 2014-02-19 Tom Tromey <tromey@redhat.com>
10387
10388 * target-delegates.c: Rebuild.
10389 * target.c (target_insn_history_range): Unconditionally delegate.
10390 * target.h (struct target_ops) <to_insn_history_range>: Use
10391 TARGET_DEFAULT_NORETURN.
10392
10393 2014-02-19 Tom Tromey <tromey@redhat.com>
10394
10395 * target-delegates.c: Rebuild.
10396 * target.c (target_call_history): Unconditionally delegate.
10397 * target.h (struct target_ops) <to_call_history>: Use
10398 TARGET_DEFAULT_NORETURN.
10399
10400 2014-02-19 Tom Tromey <tromey@redhat.com>
10401
10402 * target-delegates.c: Rebuild.
10403 * target.c (target_call_history_from): Unconditionally delegate.
10404 * target.h (struct target_ops) <to_call_history_from>: Use
10405 TARGET_DEFAULT_NORETURN.
10406
10407 2014-02-19 Tom Tromey <tromey@redhat.com>
10408
10409 * target-delegates.c: Rebuild.
10410 * target.c (target_call_history_range): Unconditionally delegate.
10411 * target.h (struct target_ops) <to_call_history_range>: Use
10412 TARGET_DEFAULT_NORETURN.
10413
10414 2014-02-19 Tom Tromey <tromey@redhat.com>
10415
10416 * target-delegates.c: Rebuild.
10417 * target.c (target_verify_memory): Unconditionally delegate.
10418 * target.h (struct target_ops) <to_verify_memory>: Use
10419 TARGET_DEFAULT_NORETURN.
10420
10421 2014-02-19 Tom Tromey <tromey@redhat.com>
10422
10423 * target-delegates.c: Rebuild.
10424 * target.c (target_core_of_thread): Unconditionally delegate.
10425 * target.h (struct target_ops) <to_core_of_thread>: Use
10426 TARGET_DEFAULT_RETURN.
10427
10428 2014-02-19 Tom Tromey <tromey@redhat.com>
10429
10430 * target-delegates.c: Rebuild.
10431 * target.c (target_flash_done): Unconditionally delegate.
10432 * target.h (struct target_ops) <to_flash_done>: Use
10433 TARGET_DEFAULT_NORETURN.
10434
10435 2014-02-19 Tom Tromey <tromey@redhat.com>
10436
10437 * target-delegates.c: Rebuild.
10438 * target.c (target_flash_erase): Unconditionally delegate.
10439 * target.h (struct target_ops) <to_flash_erase>: Use
10440 TARGET_DEFAULT_NORETURN.
10441
10442 2014-02-19 Tom Tromey <tromey@redhat.com>
10443
10444 * target-delegates.c: Rebuild.
10445 * target.c (target_get_section_table): Unconditionally delegate.
10446 * target.h (struct target_ops) <to_get_section_table>: Use
10447 TARGET_DEFAULT_RETURN.
10448
10449 2014-02-19 Tom Tromey <tromey@redhat.com>
10450
10451 * target-delegates.c: Rebuild.
10452 * target.c (target_pid_to_str): Unconditionally delegate.
10453 (init_dummy_target): Don't initialize to_pid_to_str.
10454 (default_pid_to_str): Rename from dummy_pid_to_str.
10455 * target.h (struct target_ops) <to_pid_to_str>: Use
10456 TARGET_DEFAULT_FUNC.
10457
10458 2014-02-19 Tom Tromey <tromey@redhat.com>
10459
10460 * target-delegates.c: Rebuild.
10461 * target.c (target_find_new_threads): Unconditionally delegate.
10462 * target.h (struct target_ops) <to_find_new_threads>: Use
10463 TARGET_DEFAULT_RETURN.
10464
10465 2014-02-19 Tom Tromey <tromey@redhat.com>
10466
10467 * target-delegates.c: Rebuild.
10468 * target.c (target_program_signals): Unconditionally delegate.
10469 * target.h (struct target_ops) <to_program_signals>: Use
10470 TARGET_DEFAULT_IGNORE.
10471
10472 2014-02-19 Tom Tromey <tromey@redhat.com>
10473
10474 * target-delegates.c: Rebuild.
10475 * target.c (target_pass_signals): Unconditionally delegate.
10476 * target.h (struct target_ops) <to_pass_signals>: Use
10477 TARGET_DEFAULT_IGNORE.
10478
10479 2014-02-19 Tom Tromey <tromey@redhat.com>
10480
10481 * target-delegates.c: Rebuild.
10482 * target.c (default_mourn_inferior): New function.
10483 (target_mourn_inferior): Unconditionally delegate.
10484 * target.h (struct target_ops) <to_mourn_inferior>: Use
10485 TARGET_DEFAULT_FUNC.
10486
10487 2014-02-19 Tom Tromey <tromey@redhat.com>
10488
10489 * target-delegates.c: Rebuild.
10490 * target.c (default_follow_fork): New function.
10491 (target_follow_fork): Unconditionally delegate.
10492 * target.h (struct target_ops) <to_follow_fork>: Use
10493 TARGET_DEFAULT_FUNC.
10494
10495 2014-02-19 Tom Tromey <tromey@redhat.com>
10496
10497 * target-delegates.c: Rebuild.
10498 * target.c (target_kill): Unconditionally delegate.
10499 * target.h (struct target_ops) <to_kill>: Use
10500 TARGET_DEFAULT_NORETURN.
10501
10502 2014-02-19 Tom Tromey <tromey@redhat.com>
10503
10504 * target-delegates.c: Rebuild.
10505 * target.c (target_masked_watch_num_registers): Unconditionally
10506 delegate.
10507 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10508 Use TARGET_DEFAULT_RETURN.
10509
10510 2014-02-19 Tom Tromey <tromey@redhat.com>
10511
10512 * target-delegates.c: Rebuild.
10513 * target.c (target_remove_mask_watchpoint): Unconditionally
10514 delegate.
10515 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10516 TARGET_DEFAULT_RETURN.
10517
10518 2014-02-19 Tom Tromey <tromey@redhat.com>
10519
10520 * target-delegates.c: Rebuild.
10521 * target.c (target_insert_mask_watchpoint): Unconditionally
10522 delegate.
10523 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10524 TARGET_DEFAULT_RETURN.
10525
10526 2014-02-19 Tom Tromey <tromey@redhat.com>
10527
10528 * target-delegates.c: Rebuild.
10529 * target.c (target_ranged_break_num_registers): Unconditionally
10530 delegate.
10531 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10532 Use TARGET_DEFAULT_RETURN.
10533
10534 2014-02-19 Tom Tromey <tromey@redhat.com>
10535
10536 * target-delegates.c: Rebuild.
10537 * target.c (target_fetch_registers): Unconditionally delegate.
10538 * target.h (struct target_ops) <to_fetch_registers>: Use
10539 TARGET_DEFAULT_NORETURN.
10540
10541 2014-02-19 Tom Tromey <tromey@redhat.com>
10542
10543 * target-delegates.c: Rebuild.
10544 * target.c (update_current_target): Don't inherit or default
10545 to_stop.
10546 * target.h (struct target_ops) <to_stop>: Use
10547 TARGET_DEFAULT_IGNORE.
10548
10549 2014-02-19 Tom Tromey <tromey@redhat.com>
10550
10551 * target-delegates.c: Rebuild.
10552 * target.c (update_current_target): Don't inherit or default
10553 to_can_run_breakpoint_commands.
10554 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10555 Use TARGET_DEFAULT_RETURN.
10556
10557 2014-02-19 Tom Tromey <tromey@redhat.com>
10558
10559 * target-delegates.c: Rebuild.
10560 * target.c (update_current_target): Don't inherit or default
10561 to_supports_evaluation_of_breakpoint_conditions.
10562 * target.h (struct target_ops)
10563 <to_supports_evaluation_of_breakpoint_conditions>: Use
10564 TARGET_DEFAULT_RETURN.
10565
10566 2014-02-19 Tom Tromey <tromey@redhat.com>
10567
10568 * target-delegates.c: Rebuild.
10569 * target.c (update_current_target): Don't inherit or default
10570 to_augmented_libraries_svr4_read.
10571 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10572 Use TARGET_DEFAULT_RETURN.
10573
10574 2014-02-19 Tom Tromey <tromey@redhat.com>
10575
10576 * target-delegates.c: Rebuild.
10577 * target.c (update_current_target): Don't inherit or default
10578 to_can_use_agent.
10579 * target.h (struct target_ops) <to_can_use_agent>: Use
10580 TARGET_DEFAULT_RETURN.
10581
10582 2014-02-19 Tom Tromey <tromey@redhat.com>
10583
10584 * target-delegates.c: Rebuild.
10585 * target.c (update_current_target): Don't inherit or default
10586 to_use_agent.
10587 * target.h (struct target_ops) <to_use_agent>: Use
10588 TARGET_DEFAULT_NORETURN.
10589
10590 2014-02-19 Tom Tromey <tromey@redhat.com>
10591
10592 * target-delegates.c: Rebuild.
10593 * target.c (update_current_target): Don't inherit or default
10594 to_traceframe_info.
10595 (return_null): Remove.
10596 * target.h (struct target_ops) <to_traceframe_info>: Use
10597 TARGET_DEFAULT_RETURN.
10598
10599 2014-02-19 Tom Tromey <tromey@redhat.com>
10600
10601 * target-delegates.c: Rebuild.
10602 * target.c (update_current_target): Don't inherit or default
10603 to_static_tracepoint_markers_by_strid.
10604 * target.h (struct target_ops)
10605 <to_static_tracepoint_markers_by_strid>: Use
10606 TARGET_DEFAULT_NORETURN.
10607
10608 2014-02-19 Tom Tromey <tromey@redhat.com>
10609
10610 * target-delegates.c: Rebuild.
10611 * target.c (update_current_target): Don't inherit or default
10612 to_static_tracepoint_marker_at.
10613 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10614 Use TARGET_DEFAULT_RETURN.
10615
10616 2014-02-19 Tom Tromey <tromey@redhat.com>
10617
10618 * target-delegates.c: Rebuild.
10619 * target.c (update_current_target): Don't inherit or default
10620 to_set_permissions.
10621 * target.h (struct target_ops) <to_set_permissions>: Use
10622 TARGET_DEFAULT_IGNORE.
10623
10624 2014-02-19 Tom Tromey <tromey@redhat.com>
10625
10626 * target-delegates.c: Rebuild.
10627 * target.c (update_current_target): Don't inherit or default
10628 to_get_tib_address.
10629 * target.h (struct target_ops) <to_get_tib_address>: Use
10630 TARGET_DEFAULT_NORETURN.
10631
10632 2014-02-19 Tom Tromey <tromey@redhat.com>
10633
10634 * target-delegates.c: Rebuild.
10635 * target.c (update_current_target): Don't inherit or default
10636 to_set_trace_notes.
10637 * target.h (struct target_ops) <to_set_trace_notes>: Use
10638 TARGET_DEFAULT_RETURN.
10639
10640 2014-02-19 Tom Tromey <tromey@redhat.com>
10641
10642 * target-delegates.c: Rebuild.
10643 * target.c (update_current_target): Don't initialize
10644 to_set_trace_buffer_size.
10645 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10646 TARGET_DEFAULT_IGNORE.
10647
10648 2014-02-19 Tom Tromey <tromey@redhat.com>
10649
10650 * target-delegates.c: Rebuild.
10651 * target.c (update_current_target): Don't inherit or default
10652 to_set_circular_trace_buffer.
10653 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10654 TARGET_DEFAULT_IGNORE.
10655
10656 2014-02-19 Tom Tromey <tromey@redhat.com>
10657
10658 * target-delegates.c: Rebuild.
10659 * target.c (update_current_target): Don't inherit or default
10660 to_set_disconnected_tracing.
10661 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10662 TARGET_DEFAULT_IGNORE.
10663
10664 2014-02-19 Tom Tromey <tromey@redhat.com>
10665
10666 * target-delegates.c: Rebuild.
10667 * target.c (update_current_target): Don't inherit or default
10668 to_get_min_fast_tracepoint_insn_len.
10669 (return_minus_one): Remove.
10670 * target.h (struct target_ops)
10671 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10672
10673 2014-02-19 Tom Tromey <tromey@redhat.com>
10674
10675 * target-delegates.c: Rebuild.
10676 * target.c (update_current_target): Don't inherit or default
10677 to_get_raw_trace_data.
10678 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10679 TARGET_DEFAULT_NORETURN.
10680
10681 2014-02-19 Tom Tromey <tromey@redhat.com>
10682
10683 * target-delegates.c: Rebuild.
10684 * target.c (update_current_target): Don't inherit or default
10685 to_upload_trace_state_variables.
10686 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10687 Use TARGET_DEFAULT_RETURN.
10688
10689 2014-02-19 Tom Tromey <tromey@redhat.com>
10690
10691 * target-delegates.c: Rebuild.
10692 * target.c (update_current_target): Don't inherit or default
10693 to_upload_tracepoints.
10694 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10695 TARGET_DEFAULT_RETURN.
10696
10697 2014-02-19 Tom Tromey <tromey@redhat.com>
10698
10699 * target-delegates.c: Rebuild.
10700 * target.c (update_current_target): Don't inherit or default
10701 to_save_trace_data.
10702 * target.h (struct target_ops) <to_save_trace_data>: Use
10703 TARGET_DEFAULT_NORETURN.
10704
10705 2014-02-19 Tom Tromey <tromey@redhat.com>
10706
10707 * target-delegates.c: Rebuild.
10708 * target.c (update_current_target): Don't inherit or default
10709 to_get_trace_state_variable_value.
10710 * target.h (struct target_ops)
10711 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10712
10713 2014-02-19 Tom Tromey <tromey@redhat.com>
10714
10715 * target-delegates.c: Rebuild.
10716 * target.c (update_current_target): Don't inherit or default
10717 to_trace_find.
10718 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10719
10720 2014-02-19 Tom Tromey <tromey@redhat.com>
10721
10722 * target-delegates.c: Rebuild.
10723 * target.c (update_current_target): Don't inherit or default
10724 to_trace_stop.
10725 * target.h (struct target_ops) <to_trace_stop>: Use
10726 TARGET_DEFAULT_NORETURN.
10727
10728 2014-02-19 Tom Tromey <tromey@redhat.com>
10729
10730 * target-delegates.c: Rebuild.
10731 * target.c (update_current_target): Don't inherit or default
10732 to_get_tracepoint_status.
10733 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10734 TARGET_DEFAULT_NORETURN.
10735
10736 2014-02-19 Tom Tromey <tromey@redhat.com>
10737
10738 * target-delegates.c: Rebuild.
10739 * target.c (update_current_target): Don't inherit or default
10740 to_get_trace_status.
10741 * target.h (struct target_ops) <to_get_trace_status>: Use
10742 TARGET_DEFAULT_RETURN.
10743
10744 2014-02-19 Tom Tromey <tromey@redhat.com>
10745
10746 * target-delegates.c: Rebuild.
10747 * target.c (update_current_target): Don't inherit or default
10748 to_trace_start.
10749 * target.h (struct target_ops) <to_trace_start>: Use
10750 TARGET_DEFAULT_NORETURN.
10751
10752 2014-02-19 Tom Tromey <tromey@redhat.com>
10753
10754 * target-delegates.c: Rebuild.
10755 * target.c (update_current_target): Don't inherit or default
10756 to_trace_set_readonly_regions.
10757 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10758 Use TARGET_DEFAULT_NORETURN.
10759
10760 2014-02-19 Tom Tromey <tromey@redhat.com>
10761
10762 * target-delegates.c: Rebuild.
10763 * target.c (update_current_target): Don't inherit or default
10764 to_disable_tracepoint.
10765 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10766 TARGET_DEFAULT_NORETURN.
10767
10768 2014-02-19 Tom Tromey <tromey@redhat.com>
10769
10770 * target-delegates.c: Rebuild.
10771 * target.c (update_current_target): Don't inherit or default
10772 to_enable_tracepoint.
10773 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10774 TARGET_DEFAULT_NORETURN.
10775
10776 2014-02-19 Tom Tromey <tromey@redhat.com>
10777
10778 * target-delegates.c: Rebuild.
10779 * target.c (update_current_target): Don't inherit or default
10780 to_download_trace_state_variable.
10781 * target.h (struct target_ops) <to_download_trace_state_variable>:
10782 Use TARGET_DEFAULT_NORETURN.
10783
10784 2014-02-19 Tom Tromey <tromey@redhat.com>
10785
10786 * target-delegates.c: Rebuild.
10787 * target.c (update_current_target): Don't inherit or default
10788 to_can_download_tracepoint.
10789 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10790 TARGET_DEFAULT_RETURN.
10791
10792 2014-02-19 Tom Tromey <tromey@redhat.com>
10793
10794 * target-delegates.c: Rebuild.
10795 * target.c (update_current_target): Don't inherit or default
10796 to_download_tracepoint.
10797 * target.h (struct target_ops) <to_download_tracepoint>: Use
10798 TARGET_DEFAULT_NORETURN.
10799
10800 2014-02-19 Tom Tromey <tromey@redhat.com>
10801
10802 * target-delegates.c: Rebuild.
10803 * target.c (update_current_target): Don't inherit or default
10804 to_trace_init.
10805 * target.h (struct target_ops) <to_trace_init>: Use
10806 TARGET_DEFAULT_RETURN.
10807
10808 2014-02-19 Tom Tromey <tromey@redhat.com>
10809
10810 * target-delegates.c: Rebuild.
10811 * target.c (update_current_target): Don't inherit or default
10812 to_supports_string_tracing.
10813 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10814 TARGET_DEFAULT_RETURN.
10815
10816 2014-02-19 Tom Tromey <tromey@redhat.com>
10817
10818 * target-delegates.c: Rebuild.
10819 * target.c (update_current_target): Don't inherit or default
10820 to_supports_enable_disable_tracepoint.
10821 * target.h (struct target_ops)
10822 <to_supports_enable_disable_tracepoint>: Use
10823 TARGET_DEFAULT_RETURN.
10824
10825 2014-02-19 Tom Tromey <tromey@redhat.com>
10826
10827 * target-delegates.c: Rebuild.
10828 * target.c (update_current_target): Don't inherit or default
10829 to_supports_multi_process.
10830 * target.h (struct target_ops) <to_supports_multi_process>: Use
10831 TARGET_DEFAULT_RETURN.
10832
10833 2014-02-19 Tom Tromey <tromey@redhat.com>
10834
10835 * target-delegates.c: Rebuild.
10836 * target.c (update_current_target): Don't inherit or default
10837 to_get_ada_task_ptid.
10838 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10839 TARGET_DEFAULT_FUNC.
10840
10841 2014-02-19 Tom Tromey <tromey@redhat.com>
10842
10843 * target-delegates.c: Rebuild.
10844 * target.c (update_current_target): Don't inherit or default
10845 to_thread_architecture.
10846 * target.h (struct target_ops) <to_thread_architecture>: Use
10847 TARGET_DEFAULT_FUNC.
10848
10849 2014-02-19 Tom Tromey <tromey@redhat.com>
10850
10851 * target-delegates.c: Rebuild.
10852 * target.c (update_current_target): Don't inherit or default
10853 to_execution_direction.
10854 * target.h (struct target_ops) <to_execution_direction>: Use
10855 TARGET_DEFAULT_FUNC.
10856
10857 2014-02-19 Tom Tromey <tromey@redhat.com>
10858
10859 * target-delegates.c: Rebuild.
10860 * target.c (update_current_target): Don't inherit or default
10861 to_can_execute_reverse.
10862 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10863 TARGET_DEFAULT_RETURN.
10864 (target_can_execute_reverse): Unconditionally delegate.
10865
10866 2014-02-19 Tom Tromey <tromey@redhat.com>
10867
10868 * target-delegates.c: Rebuild.
10869 * target.c (update_current_target): Don't inherit or default
10870 to_goto_bookmark.
10871 (dummy_goto_bookmark): Remove.
10872 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10873 * target.h (struct target_ops) <to_goto_bookmark>: Use
10874 TARGET_DEFAULT_NORETURN.
10875
10876 2014-02-19 Tom Tromey <tromey@redhat.com>
10877
10878 * target-delegates.c: Rebuild.
10879 * target.c (update_current_target): Don't inherit or default
10880 to_get_bookmark.
10881 (dummy_get_bookmark): Remove.
10882 (init_dummy_target): Don't inherit or default to_get_bookmark.
10883 * target.h (struct target_ops) <to_get_bookmark>: Use
10884 TARGET_DEFAULT_NORETURN
10885
10886 2014-02-19 Tom Tromey <tromey@redhat.com>
10887
10888 * target-delegates.c: Rebuild.
10889 * target.c (update_current_target): Don't inherit or default
10890 to_make_corefile_notes.
10891 (init_dummy_target): Don't initialize to_make_corefile_notes.
10892 * target.h (struct target_ops) <to_make_corefile_notes>: 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_find_memory_regions.
10900 (init_dummy_target): Don't initialize to_find_memory_regions.
10901 * target.h (struct target_ops) <to_find_memory_regions>: Use
10902 TARGET_DEFAULT_FUNC.
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_log_command.
10909 * target.h (struct target_ops) <to_log_command>: Use
10910 TARGET_DEFAULT_IGNORE.
10911 (target_log_command): Unconditionally delegate.
10912
10913 2014-02-19 Tom Tromey <tromey@redhat.com>
10914
10915 * target-delegates.c: Rebuild.
10916 * target.c (update_current_target): Don't inherit or default
10917 to_pid_to_exec_file.
10918 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10919 TARGET_DEFAULT_RETURN.
10920
10921 2014-02-19 Tom Tromey <tromey@redhat.com>
10922
10923 * target-delegates.c: Rebuild.
10924 * target.c (update_current_target): Don't inherit or default
10925 to_thread_name.
10926 (target_thread_name): Unconditionally delegate.
10927 * target.h (struct target_ops) <to_thread_name>: Use
10928 TARGET_DEFAULT_RETURN.
10929
10930 2014-02-19 Tom Tromey <tromey@redhat.com>
10931
10932 * target-delegates.c: Rebuild.
10933 * target.c (update_current_target): Don't inherit or default
10934 to_extra_thread_info.
10935 * target.h (struct target_ops) <to_extra_thread_info>: Use
10936 TARGET_DEFAULT_RETURN.
10937
10938 2014-02-19 Tom Tromey <tromey@redhat.com>
10939
10940 * target-delegates.c: Rebuild.
10941 * target.c (update_current_target): Don't inherit or default
10942 to_has_exited.
10943 * target.h (struct target_ops) <to_has_exited>: Use
10944 TARGET_DEFAULT_RETURN..
10945
10946 2014-02-19 Tom Tromey <tromey@redhat.com>
10947
10948 * target-delegates.c: Rebuild.
10949 * target.c (update_current_target): Don't inherit or default
10950 to_set_syscall_catchpoint.
10951 (return_one): Remove.
10952 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10953 TARGET_DEFAULT_RETURN.
10954
10955 2014-02-19 Tom Tromey <tromey@redhat.com>
10956
10957 * target-delegates.c: Rebuild.
10958 * target.c (update_current_target): Don't inherit or default
10959 to_insert_exec_catchpoint.
10960 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10961 TARGET_DEFAULT_RETURN.
10962
10963 2014-01-08 Tom Tromey <tromey@redhat.com>
10964
10965 * target-delegates.c: Rebuild.
10966 * target.c (update_current_target): Don't inherit or default
10967 to_insert_exec_catchpoint.
10968 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10969 TARGET_DEFAULT_RETURN.
10970
10971 2014-02-19 Tom Tromey <tromey@redhat.com>
10972
10973 * target-delegates.c: Rebuild.
10974 * target.c (update_current_target): Don't inherit or default
10975 to_remove_vfork_catchpoint.
10976 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10977 TARGET_DEFAULT_RETURN.
10978
10979 2014-02-19 Tom Tromey <tromey@redhat.com>
10980
10981 * target-delegates.c: Rebuild.
10982 * target.c (update_current_target): Don't inherit or default
10983 to_insert_vfork_catchpoint.
10984 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10985 TARGET_DEFAULT_RETURN.
10986
10987 2014-02-19 Tom Tromey <tromey@redhat.com>
10988
10989 * target-delegates.c: Rebuild.
10990 * target.c (update_current_target): Don't inherit or default
10991 to_remove_fork_catchpoint.
10992 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10993 TARGET_DEFAULT_RETURN.
10994
10995 2014-02-19 Tom Tromey <tromey@redhat.com>
10996
10997 * target-delegates.c: Rebuild.
10998 * target.c (update_current_target): Don't inherit or default
10999 to_insert_fork_catchpoint.
11000 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11001 TARGET_DEFAULT_RETURN.
11002
11003 2014-02-19 Tom Tromey <tromey@redhat.com>
11004
11005 * target-delegates.c: Rebuild.
11006 * target.c (update_current_target): Don't inherit or default
11007 to_post_startup_inferior.
11008 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11009 TARGET_DEFAULT_IGNORE.
11010
11011 2014-02-19 Tom Tromey <tromey@redhat.com>
11012
11013 * target-delegates.c: Rebuild.
11014 * target.c (update_current_target): Don't inherit or default
11015 to_load.
11016 * target.h (struct target_ops) <to_load>: Use
11017 TARGET_DEFAULT_NORETURN.
11018
11019 2014-02-19 Tom Tromey <tromey@redhat.com>
11020
11021 * target-delegates.c: Rebuild.
11022 * target.c (update_current_target): Don't inherit or default
11023 to_terminal_info.
11024 * target.h (struct target_ops) <to_terminal_info>: Use
11025 TARGET_DEFAULT_FUNC.
11026
11027 2014-02-19 Tom Tromey <tromey@redhat.com>
11028
11029 * target-delegates.c: Rebuild.
11030 * target.c (update_current_target): Don't inherit or default
11031 to_terminal_save_ours.
11032 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11033 TARGET_DEFAULT_IGNORE.
11034
11035 2014-02-19 Tom Tromey <tromey@redhat.com>
11036
11037 * target-delegates.c: Rebuild.
11038 * target.c (update_current_target): Don't inherit or default
11039 to_terminal_ours.
11040 * target.h (struct target_ops) <to_terminal_ours>: Use
11041 TARGET_DEFAULT_IGNORE.
11042
11043 2014-02-19 Tom Tromey <tromey@redhat.com>
11044
11045 * target-delegates.c: Rebuild.
11046 * target.c (update_current_target): Don't inherit or default
11047 to_terminal_ours_for_output.
11048 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11049 TARGET_DEFAULT_IGNORE.
11050
11051 2014-02-19 Tom Tromey <tromey@redhat.com>
11052
11053 * target-delegates.c: Rebuild.
11054 * target.c (update_current_target): Don't inherit or default
11055 to_terminal_inferior.
11056 * target.h (struct target_ops) <to_terminal_inferior>: Use
11057 TARGET_DEFAULT_IGNORE.
11058
11059 2014-02-19 Tom Tromey <tromey@redhat.com>
11060
11061 * target-delegates.c: Rebuild.
11062 * target.c (update_current_target): Don't inherit or default
11063 to_terminal_init.
11064 * target.h (struct target_ops) <to_terminal_init>: Use
11065 TARGET_DEFAULT_IGNORE.
11066
11067 2014-02-19 Tom Tromey <tromey@redhat.com>
11068
11069 * target-delegates.c: Rebuild.
11070 * target.c (update_current_target): Don't inherit or default
11071 to_can_accel_watchpoint_condition.
11072 * target.h (struct target_ops)
11073 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11074
11075 2014-02-19 Tom Tromey <tromey@redhat.com>
11076
11077 * target-delegates.c: Rebuild.
11078 * target.c (update_current_target): Don't inherit or default
11079 to_region_ok_for_hw_watchpoint.
11080 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11081 Use TARGET_DEFAULT_FUNC.
11082
11083 2014-02-19 Tom Tromey <tromey@redhat.com>
11084
11085 * target-delegates.c: Rebuild.
11086 * target.c (update_current_target): Don't inherit or default
11087 to_watchpoint_addr_within_range.
11088 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11089 Use TARGET_DEFAULT_FUNC.
11090
11091 2014-02-19 Tom Tromey <tromey@redhat.com>
11092
11093 * target-delegates.c: Rebuild.
11094 * target.c (update_current_target): Don't inherit or default
11095 to_remove_watchpoint.
11096 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11097 TARGET_DEFAULT_NORETURN.
11098
11099 2014-02-19 Tom Tromey <tromey@redhat.com>
11100
11101 * target-delegates.c: Rebuild.
11102 * target.c (update_current_target): Don't inherit or default
11103 to_insert_watchpoint.
11104 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11105 TARGET_DEFAULT_RETURN.
11106
11107 2014-02-19 Tom Tromey <tromey@redhat.com>
11108
11109 * target-delegates.c: Rebuild.
11110 * target.c (update_current_target): Don't inherit or default
11111 to_remove_hw_breakpoint.
11112 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11113 TARGET_DEFAULT_RETURN.
11114
11115 2014-02-19 Tom Tromey <tromey@redhat.com>
11116
11117 * target-delegates.c: Rebuild.
11118 * target.c (update_current_target): Don't inherit or default
11119 to_insert_hw_breakpoint.
11120 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11121 TARGET_DEFAULT_RETURN.
11122
11123 2014-02-19 Tom Tromey <tromey@redhat.com>
11124
11125 * target-delegates.c: Rebuild.
11126 * target.c (update_current_target): Don't inherit or default
11127 to_can_use_hw_breakpoint.
11128 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11129 TARGET_DEFAULT_RETURN.
11130
11131 2014-02-19 Tom Tromey <tromey@redhat.com>
11132
11133 * target-delegates.c: Rebuild.
11134 * target.c (update_current_target): Don't inherit or default
11135 to_files_info.
11136 * target.h (struct target_ops) <to_files_info>: Use
11137 TARGET_DEFAULT_IGNORE.
11138
11139 2014-02-19 Tom Tromey <tromey@redhat.com>
11140
11141 * target-delegates.c: Rebuild.
11142 * target.c (update_current_target): Don't inherit or default
11143 to_store.
11144 * target.h (struct target_ops) <to_store>: Use
11145 TARGET_DEFAULT_NORETURN.
11146
11147 2014-02-19 Tom Tromey <tromey@redhat.com>
11148
11149 * target-delegates.c: Rebuild.
11150 * target.c (update_current_target): Don't inherit or default
11151 to_post_attach.
11152 * target.h (struct target_ops) <to_post_attach>: Use
11153 TARGET_DEFAULT_IGNORE.
11154
11155 2014-02-19 Tom Tromey <tromey@redhat.com>
11156
11157 * target-delegates.c: Rebuild.
11158 * target.c (update_current_target): Don't inherit or default
11159 to_rcmd.
11160 (default_rcmd): New function.
11161 (do_monitor_command): Unconditionally delegate.
11162 * target.h (struct target_ops) <to_rmcd>: Use
11163 TARGET_DEFAULT_FUNC.
11164
11165 2014-02-19 Tom Tromey <tromey@redhat.com>
11166
11167 * target-delegates.c: Rebuild.
11168 * target.c (init_dummy_target): Don't initialize to_attach.
11169 (target_attach): Unconditionally delegate.
11170 * target.h (struct target_ops) <to_attach>: Use
11171 TARGET_DEFAULT_FUNC.
11172
11173 2014-02-19 Tom Tromey <tromey@redhat.com>
11174
11175 * target-delegates.c: Rebuild.
11176 * target.c (target_detach): Unconditionally delegate.
11177 (init_dummy_target): Don't initialize to_detach.
11178 * target.h (struct target_ops) <to_detach>: Use
11179 TARGET_DEFAULT_IGNORE.
11180
11181 2014-02-19 Tom Tromey <tromey@redhat.com>
11182
11183 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11184 Add argument.
11185 (target_augmented_libraries_svr4_read): Add argument.
11186 * target.c (update_current_target): Update.
11187 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11188 argument.
11189
11190 2014-02-19 Tom Tromey <tromey@redhat.com>
11191
11192 * target.h (struct target_ops) <to_call_history_range>: Add
11193 argument.
11194 * target.c (target_call_history_range): Add argument.
11195 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11196 argument.
11197 (record_btrace_call_history_from): Update.
11198
11199 2014-02-19 Tom Tromey <tromey@redhat.com>
11200
11201 * target.h (struct target_ops) <to_call_history_from>: Add
11202 argument.
11203 * target.c (target_call_history_from): Add argument.
11204 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11205 argument.
11206
11207 2014-02-19 Tom Tromey <tromey@redhat.com>
11208
11209 * target.h (struct target_ops) <to_call_history>: Add argument.
11210 * target.c (target_call_history): Add argument.
11211 * record-btrace.c (record_btrace_call_history): Add 'self'
11212 argument.
11213
11214 2014-02-19 Tom Tromey <tromey@redhat.com>
11215
11216 * target.h (struct target_ops) <to_insn_history_range>: Add
11217 argument.
11218 * target.c (target_insn_history_range): Add argument.
11219 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11220 argument.
11221 (record_btrace_insn_history_from): Update.
11222
11223 2014-02-19 Tom Tromey <tromey@redhat.com>
11224
11225 * target.h (struct target_ops) <to_insn_history_from>: Add
11226 argument.
11227 * target.c (target_insn_history_from): Add argument.
11228 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11229 argument.
11230
11231 2014-02-19 Tom Tromey <tromey@redhat.com>
11232
11233 * target.h (struct target_ops) <to_insn_history>: Add argument.
11234 * target.c (target_insn_history): Add argument.
11235 * record-btrace.c (record_btrace_insn_history): Add 'self'
11236 argument.
11237
11238 2014-02-19 Tom Tromey <tromey@redhat.com>
11239
11240 * target.h (struct target_ops) <to_goto_record>: Add argument.
11241 * target.c (target_goto_record): Add argument.
11242 * record-full.c (record_full_goto): Add 'self' argument.
11243 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11244
11245 2014-02-19 Tom Tromey <tromey@redhat.com>
11246
11247 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11248 * target.c (target_goto_record_end): Add argument.
11249 * record-full.c (record_full_goto_end): Add 'self' argument.
11250 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11251
11252 2014-02-19 Tom Tromey <tromey@redhat.com>
11253
11254 * target.h (struct target_ops) <to_goto_record_begin>: Add
11255 argument.
11256 * target.c (target_goto_record_begin): Add argument.
11257 * record-full.c (record_full_goto_begin): Add 'self' argument.
11258 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11259 argument.
11260
11261 2014-02-19 Tom Tromey <tromey@redhat.com>
11262
11263 * target.h (struct target_ops) <to_record_is_replaying>: Add
11264 argument.
11265 * target.c (target_record_is_replaying): Add argument.
11266 * record-full.c (record_full_is_replaying): Add 'self' argument.
11267 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11268 argument.
11269 (record_btrace_xfer_partial, record_btrace_store_registers)
11270 (record_btrace_prepare_to_store, record_btrace_resume)
11271 (record_btrace_wait, record_btrace_decr_pc_after_break)
11272 (record_btrace_find_new_threads, record_btrace_thread_alive):
11273 Update.
11274
11275 2014-02-19 Tom Tromey <tromey@redhat.com>
11276
11277 * target.h (struct target_ops) <to_delete_record>: Add argument.
11278 * target.c (target_delete_record): Add argument.
11279 * record-full.c (record_full_delete): Add 'self' argument.
11280
11281 2014-02-19 Tom Tromey <tromey@redhat.com>
11282
11283 * target.h (struct target_ops) <to_save_record>: Add argument.
11284 * target.c (target_save_record): Add argument.
11285 * record-full.c (record_full_save): Add 'self' argument.
11286 (record_full_save): Add 'self' argument.
11287
11288 2014-02-19 Tom Tromey <tromey@redhat.com>
11289
11290 * target.h (struct target_ops) <to_info_record>: Add argument.
11291 * target.c (target_info_record): Add argument.
11292 * record.c (info_record_command): Add argument.
11293 * record-full.c (record_full_info): Add 'self' argument.
11294 * record-btrace.c (record_btrace_info): Add 'self' argument.
11295
11296 2014-02-19 Tom Tromey <tromey@redhat.com>
11297
11298 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11299 * target.c (target_stop_recording): Add argument.
11300 * record.c (record_stop): Add argument.
11301 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11302 argument.
11303
11304 2014-02-19 Tom Tromey <tromey@redhat.com>
11305
11306 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11307 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11308 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11309 argument.
11310 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11311 (_initialize_amd64_linux_nat): Use it.
11312 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11313 (_initialize_i386_linux_nat): Use it.
11314
11315 2014-02-19 Tom Tromey <tromey@redhat.com>
11316
11317 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11318 * target.c (target_teardown_btrace): Add argument.
11319 * remote.c (remote_teardown_btrace): Add 'self' argument.
11320 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11321 argument.
11322 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11323 argument.
11324
11325 2014-02-19 Tom Tromey <tromey@redhat.com>
11326
11327 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11328 * target.c (target_disable_btrace): Add argument.
11329 * remote.c (remote_disable_btrace): Add 'self' argument.
11330 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11331 argument.
11332 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11333 argument.
11334
11335 2014-02-19 Tom Tromey <tromey@redhat.com>
11336
11337 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11338 * target.c (target_enable_btrace): Add argument.
11339 * remote.c (remote_enable_btrace): Add 'self' argument.
11340 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11341 argument.
11342 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11343 argument.
11344
11345 2014-02-19 Tom Tromey <tromey@redhat.com>
11346
11347 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11348 (target_can_use_agent): Add argument.
11349 * target.c (update_current_target): Update.
11350 * remote.c (remote_can_use_agent): Add 'self' argument.
11351 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11352
11353 2014-02-19 Tom Tromey <tromey@redhat.com>
11354
11355 * target.h (struct target_ops) <to_use_agent>: Add argument.
11356 (target_use_agent): Add argument.
11357 * target.c (update_current_target): Update.
11358 * remote.c (remote_use_agent): Add 'self' argument.
11359 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11360
11361 2014-02-19 Tom Tromey <tromey@redhat.com>
11362
11363 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11364 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11365 (target_traceframe_info): Add argument.
11366 * target.c (update_current_target): Update.
11367 * remote.c (remote_traceframe_info): Add 'self' argument.
11368 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11369
11370 2014-02-19 Tom Tromey <tromey@redhat.com>
11371
11372 * target.h (target_static_tracepoint_markers_by_strid): Add
11373 argument.
11374 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11375 'self' argument.
11376 * target.c (update_current_target): Update.
11377 * remote.c (struct target_ops)
11378 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11379 * linux-nat.c (struct target_ops)
11380 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11381
11382 2014-02-19 Tom Tromey <tromey@redhat.com>
11383
11384 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11385 Add argument.
11386 (target_static_tracepoint_marker_at): Add argument.
11387 * target.c (update_current_target): Update.
11388 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11389 argument.
11390
11391 2014-02-19 Tom Tromey <tromey@redhat.com>
11392
11393 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11394 (target_set_permissions): Add argument.
11395 * target.c (update_current_target): Update.
11396 * remote.c (remote_set_permissions): Add 'self' argument.
11397 (remote_start_remote): Update.
11398
11399 2014-02-19 Tom Tromey <tromey@redhat.com>
11400
11401 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11402 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11403 (target_get_tib_address): Add argument.
11404 * target.c (update_current_target): Update.
11405 * remote.c (remote_get_tib_address): Add 'self' argument.
11406
11407 2014-02-19 Tom Tromey <tromey@redhat.com>
11408
11409 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11410 (target_set_trace_notes): Add argument.
11411 * target.c (update_current_target): Update.
11412 * remote.c (remote_set_trace_notes): Add 'self' argument.
11413
11414 2014-02-19 Tom Tromey <tromey@redhat.com>
11415
11416 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11417 argument.
11418 (target_set_trace_buffer_size): Add argument.
11419 * target.c (update_current_target): Update.
11420 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11421
11422 2014-02-19 Tom Tromey <tromey@redhat.com>
11423
11424 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11425 argument.
11426 (target_set_circular_trace_buffer): Add argument.
11427 * target.c (update_current_target): Update.
11428 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11429 argument.
11430
11431 2014-02-19 Tom Tromey <tromey@redhat.com>
11432
11433 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11434 argument.
11435 (target_set_disconnected_tracing): Add argument.
11436 * target.c (update_current_target): Update.
11437 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11438
11439 2014-02-19 Tom Tromey <tromey@redhat.com>
11440
11441 * target.h (struct target_ops)
11442 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11443 (target_get_min_fast_tracepoint_insn_len): Add argument.
11444 * target.c (update_current_target): Update.
11445 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11446 argument.
11447
11448 2014-02-19 Tom Tromey <tromey@redhat.com>
11449
11450 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11451 argument.
11452 (target_get_raw_trace_data): Add argument.
11453 * target.c (update_current_target): Update.
11454 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11455
11456 2014-02-19 Tom Tromey <tromey@redhat.com>
11457
11458 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11459 Add argument.
11460 (target_upload_trace_state_variables): Add argument.
11461 * target.c (update_current_target): Update.
11462 * remote.c (remote_upload_trace_state_variables): Add 'self'
11463 argument.
11464 (remote_start_remote): Update.
11465
11466 2014-02-19 Tom Tromey <tromey@redhat.com>
11467
11468 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11469 argument.
11470 (target_upload_tracepoints): Add argument.
11471 * target.c (update_current_target): Update.
11472 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11473 (remote_start_remote): Update.
11474
11475 2014-02-19 Tom Tromey <tromey@redhat.com>
11476
11477 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11478 (target_save_trace_data): Add argument.
11479 * target.c (update_current_target): Update.
11480 * remote.c (remote_save_trace_data): Add 'self' argument.
11481
11482 2014-02-19 Tom Tromey <tromey@redhat.com>
11483
11484 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11485 argument.
11486 * target.h (struct target_ops)
11487 <to_get_trace_state_variable_value>: Add argument.
11488 (target_get_trace_state_variable_value): Add argument.
11489 * target.c (update_current_target): Update.
11490 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11491 argument.
11492 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11493
11494 2014-02-19 Tom Tromey <tromey@redhat.com>
11495
11496 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11497 * target.h (struct target_ops) <to_trace_find>: Add argument.
11498 (target_trace_find): Add argument.
11499 * target.c (update_current_target): Update.
11500 * remote.c (remote_trace_find): Add 'self' argument.
11501 * ctf.c (ctf_trace_find): Add 'self' argument.
11502
11503 2014-02-19 Tom Tromey <tromey@redhat.com>
11504
11505 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11506 (target_trace_stop): Add argument.
11507 * target.c (update_current_target): Update.
11508 * remote.c (remote_trace_stop): Add 'self' argument.
11509
11510 2014-02-19 Tom Tromey <tromey@redhat.com>
11511
11512 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11513 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11514 argument.
11515 (target_get_tracepoint_status): Add argument.
11516 * target.c (update_current_target): Update.
11517 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11518
11519 2014-02-19 Tom Tromey <tromey@redhat.com>
11520
11521 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11522 * target.h (struct target_ops) <to_get_trace_status>: Add
11523 argument.
11524 (target_get_trace_status): Add argument.
11525 * target.c (update_current_target): Update.
11526 * remote.c (remote_get_trace_status): Add 'self' argument.
11527 (remote_start_remote, remote_can_download_tracepoint): Update.
11528 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11529
11530 2014-02-19 Tom Tromey <tromey@redhat.com>
11531
11532 * target.h (struct target_ops) <to_trace_start>: Add argument.
11533 (target_trace_start): Add argument.
11534 * target.c (update_current_target): Update.
11535 * remote.c (remote_trace_start): Add 'self' argument.
11536
11537 2014-02-19 Tom Tromey <tromey@redhat.com>
11538
11539 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11540 Add argument.
11541 (target_trace_set_readonly_regions): Add argument.
11542 * target.c (update_current_target): Update.
11543 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11544 argument.
11545
11546 2014-02-19 Tom Tromey <tromey@redhat.com>
11547
11548 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11549 argument.
11550 (target_disable_tracepoint): Add argument.
11551 * target.c (update_current_target): Update.
11552 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11553
11554 2014-02-19 Tom Tromey <tromey@redhat.com>
11555
11556 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11557 argument.
11558 (target_enable_tracepoint): Add argument.
11559 * target.c (update_current_target): Update.
11560 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11561
11562 2014-02-19 Tom Tromey <tromey@redhat.com>
11563
11564 * target.h (struct target_ops) <to_download_trace_state_variable>:
11565 Add argument.
11566 (target_download_trace_state_variable): Add argument.
11567 * target.c (update_current_target): Update.
11568 * remote.c (remote_download_trace_state_variable): Add 'self'
11569 argument.
11570
11571 2014-02-19 Tom Tromey <tromey@redhat.com>
11572
11573 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11574 argument.
11575 (target_can_download_tracepoint): Add argument.
11576 * target.c (update_current_target): Update.
11577 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11578
11579 2014-02-19 Tom Tromey <tromey@redhat.com>
11580
11581 * target.h (struct target_ops) <to_download_tracepoint>: Add
11582 argument.
11583 (target_download_tracepoint): Add argument.
11584 * target.c (update_current_target): Update.
11585 * remote.c (remote_download_tracepoint): Add 'self' argument.
11586
11587 2014-02-19 Tom Tromey <tromey@redhat.com>
11588
11589 * target.h (struct target_ops) <to_trace_init>: Add argument.
11590 (target_trace_init): Add argument.
11591 * target.c (update_current_target): Update.
11592 * remote.c (remote_trace_init): Add 'self' argument.
11593
11594 2014-02-19 Tom Tromey <tromey@redhat.com>
11595
11596 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11597 * target.c (target_fileio_readlink): Add argument.
11598 * remote.c (remote_hostio_readlink): Add 'self' argument.
11599 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11600
11601 2014-02-19 Tom Tromey <tromey@redhat.com>
11602
11603 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11604 * target.c (target_fileio_unlink): Add argument.
11605 * remote.c (remote_hostio_unlink): Add 'self' argument.
11606 (remote_file_delete): Update.
11607 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11608
11609 2014-02-19 Tom Tromey <tromey@redhat.com>
11610
11611 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11612 * target.c (target_fileio_close): Add argument.
11613 * remote.c (remote_hostio_close): Add 'self' argument.
11614 (remote_hostio_close_cleanup): Update.
11615 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11616 Update.
11617 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11618
11619 2014-02-19 Tom Tromey <tromey@redhat.com>
11620
11621 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11622 * target.c (target_fileio_pread): Add argument.
11623 * remote.c (remote_hostio_pread): Add 'self' argument.
11624 (remote_bfd_iovec_pread, remote_file_get): Update.
11625 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11626
11627 2014-02-19 Tom Tromey <tromey@redhat.com>
11628
11629 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11630 * target.c (target_fileio_pwrite): Add argument.
11631 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11632 (remote_file_put): Update.
11633 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11634
11635 2014-02-19 Tom Tromey <tromey@redhat.com>
11636
11637 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11638 * target.c (target_fileio_open): Add argument.
11639 * remote.c (remote_hostio_open): Add 'self' argument.
11640 (remote_bfd_iovec_open): Add 'self' argument.
11641 (remote_file_put): Add 'self' argument.
11642 (remote_file_get): Add 'self' argument.
11643 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11644
11645 2014-02-19 Tom Tromey <tromey@redhat.com>
11646
11647 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11648 Add argument.
11649 (target_can_run_breakpoint_commands): Add argument.
11650 * target.c (update_current_target): Update.
11651 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11652 argument.
11653 (remote_insert_breakpoint): Add 'self' argument.
11654 (remote_insert_hw_breakpoint): Add 'self' argument.
11655 (remote_can_run_breakpoint_commands): Add 'self' argument.
11656
11657 2014-02-19 Tom Tromey <tromey@redhat.com>
11658
11659 * target.h (struct target_ops)
11660 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11661 (target_supports_evaluation_of_breakpoint_conditions): Add
11662 argument.
11663 * target.c (update_current_target): Update.
11664 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11665 argument.
11666 (remote_insert_breakpoint): Add 'self' argument.
11667 (remote_insert_hw_breakpoint): Add 'self' argument.
11668 (remote_supports_cond_breakpoints): Add 'self' argument.
11669
11670 2014-02-19 Tom Tromey <tromey@redhat.com>
11671
11672 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11673 argument.
11674 (target_supports_string_tracing): Add argument.
11675 * target.c (update_current_target): Update.
11676 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11677
11678 2014-02-19 Tom Tromey <tromey@redhat.com>
11679
11680 * target.h (struct target_ops)
11681 <to_supports_disable_randomization>: Add argument.
11682 * target.c (find_default_supports_disable_randomization): Add
11683 argument.
11684 (target_supports_disable_randomization): Add argument.
11685 (find_default_supports_disable_randomization): Add 'self'
11686 argument.
11687 * remote.c (extended_remote_supports_disable_randomization): Add
11688 'self' argument.
11689 (remote_supports_disable_randomization): Add 'self' argument.
11690 (extended_remote_create_inferior): Update.
11691 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11692 'self' argument.
11693
11694 2014-02-19 Tom Tromey <tromey@redhat.com>
11695
11696 * target.h (struct target_ops)
11697 <to_supports_enable_disable_tracepoint>: Add argument.
11698 (target_supports_enable_disable_tracepoint): Add argument.
11699 * target.c (update_current_target): Update.
11700 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11701 argument.
11702
11703 2014-02-19 Tom Tromey <tromey@redhat.com>
11704
11705 * target.h (struct target_ops) <to_supports_multi_process>: Add
11706 argument.
11707 (target_supports_multi_process): Add argument.
11708 * target.c (update_current_target): Update.
11709 * remote.c (remote_supports_multi_process): Add 'self' argument.
11710 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11711 argument.
11712 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11713 argument.
11714
11715 2014-02-19 Tom Tromey <tromey@redhat.com>
11716
11717 * target.h (struct target_ops) <to_execution_direction>: Add
11718 argument.
11719 (target_execution_direction): Add argument.
11720 * target.c (default_execution_direction): Add 'self' argument.
11721 * record-full.c (record_full_execution_direction): Add 'self'
11722 argument.
11723
11724 2014-02-19 Tom Tromey <tromey@redhat.com>
11725
11726 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11727 argument.
11728 (target_can_execute_reverse): Add argument.
11729 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11730 * record-full.c (record_full_can_execute_reverse): Add 'self'
11731 argument.
11732 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11733 argument.
11734
11735 2014-02-19 Tom Tromey <tromey@redhat.com>
11736
11737 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11738 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11739 argument.
11740 (target_get_ada_task_ptid): Add argument.
11741 * target.c (update_current_target): Update.
11742 (default_get_ada_task_ptid): Add 'self' argument.
11743 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11744 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11745 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11746 argument.
11747 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11748 argument.
11749 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11750 argument.
11751 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11752 argument.
11753 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11754 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11755 argument.
11756
11757 2014-02-19 Tom Tromey <tromey@redhat.com>
11758
11759 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11760 (target_goto_bookmark): Add argument.
11761 * target.c (dummy_goto_bookmark): Add 'self' argument.
11762 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11763
11764 2014-02-19 Tom Tromey <tromey@redhat.com>
11765
11766 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11767 (target_get_bookmark): Add argument.
11768 * target.c (dummy_get_bookmark): Add 'self' argument.
11769 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11770
11771 2014-02-19 Tom Tromey <tromey@redhat.com>
11772
11773 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11774 argument.
11775 (target_make_corefile_notes): Add argument.
11776 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11777 * procfs.c (procfs_make_note_section): Add 'self' argument.
11778 (procfs_make_note_section): Add 'self' argument.
11779 (procfs_make_note_section): Add 'self' argument.
11780 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11781 argument.
11782 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11783 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11784 * exec.c (exec_make_note_section): Add 'self' argument.
11785 (exec_make_note_section): Add 'self' argument.
11786
11787 2014-02-19 Tom Tromey <tromey@redhat.com>
11788
11789 * target.h (struct target_ops) <to_find_memory_regions>: Add
11790 argument.
11791 (target_find_memory_regions): Add argument.
11792 * target.c (dummy_find_memory_regions): Add 'self' argument.
11793 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11794 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11795 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11796 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11797 * exec. (exec_do_find_memory_regions): New global.
11798 (exec_set_find_memory_regions): Rewrite.
11799 (exec_find_memory_regions): New function.
11800 (init_exec_ops): Use exec_find_memory_regions.
11801
11802 2014-02-19 Tom Tromey <tromey@redhat.com>
11803
11804 * target.h (struct target_ops) <to_supports_non_stop>: Add
11805 argument.
11806 * target.c (find_default_supports_non_stop): Add argument.
11807 (target_supports_non_stop): Add argument.
11808 (find_default_supports_non_stop): Add 'self' argument.
11809 * remote.c (remote_supports_non_stop): Add 'self' argument.
11810 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11811
11812 2014-02-19 Tom Tromey <tromey@redhat.com>
11813
11814 * target.h (struct target_ops) <to_log_command>: Add argument.
11815 (target_log_command): Add argument.
11816 * serial.h (serial_log_command): Add 'self' argument.
11817 * serial.c (serial_log_command): Add 'self' argument.
11818
11819 2014-02-19 Tom Tromey <tromey@redhat.com>
11820
11821 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11822 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11823 argument.
11824 (target_pid_to_exec_file): Add argument.
11825 * target.c (debug_to_pid_to_exec_file): Add argument.
11826 (update_current_target): Update.
11827 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11828 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11829 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11830 (linux_handle_extended_wait): Update.
11831 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11832 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11833 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11834 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11835
11836 2014-02-19 Tom Tromey <tromey@redhat.com>
11837
11838 * target.h (struct target_ops) <to_rcmd>: Add argument.
11839 (target_rcmd): Add argument.
11840 * target.c (debug_to_rcmd): Add argument.
11841 (update_current_target, do_monitor_command): Update.
11842 * remote.c (remote_rcmd): Add 'self' argument.
11843 * monitor.c (monitor_rcmd): Add 'self' argument.
11844
11845 2014-02-19 Tom Tromey <tromey@redhat.com>
11846
11847 * windows-nat.c (windows_stop): Add 'self' argument.
11848 * target.h (struct target_ops) <to_stop>: Add argument.
11849 * target.c (target_stop): Add argument.
11850 (debug_to_stop): Add argument.
11851 (update_current_target): Update.
11852 * remote.c (remote_stop): Add 'self' argument.
11853 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11854 (gdbsim_cntrl_c): Update.
11855 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11856 * procfs.c (procfs_stop): Add 'self' argument.
11857 * nto-procfs.c (procfs_stop): Add 'self' argument.
11858 * monitor.c (monitor_stop): Add 'self' argument.
11859 (monitor_open): Update.
11860 * linux-nat.c (linux_nat_stop): Add argument.
11861 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11862 * gnu-nat.c (gnu_stop): Add 'self' argument.
11863 * darwin-nat.c (darwin_stop): Add 'self' argument.
11864
11865 2014-02-19 Tom Tromey <tromey@redhat.com>
11866
11867 * target.h (struct target_ops) <to_thread_name>: Add argument.
11868 * target.c (target_thread_name): Add argument.
11869 (update_current_target): Update.
11870 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11871
11872 2014-02-19 Tom Tromey <tromey@redhat.com>
11873
11874 * target.h (struct target_ops) <to_extra_thread_info>: Add
11875 argument.
11876 (target_extra_thread_info): Add argument.
11877 * target.c (update_current_target): Update.
11878 * remote.c (remote_threads_extra_info): Add 'self' argument.
11879 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11880 argument.
11881 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11882 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11883 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11884 argument.
11885 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11886 argument.
11887 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11888 argument.
11889 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11890 argument.
11891
11892 2014-02-19 Tom Tromey <tromey@redhat.com>
11893
11894 * target.h (struct target_ops) <to_program_signals>: Add argument.
11895 * target.c (target_program_signals): Add argument.
11896 * remote.c (remote_program_signals): Add 'self' argument.
11897
11898 2014-02-19 Tom Tromey <tromey@redhat.com>
11899
11900 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11901 * target.c (target_pass_signals): Add argument.
11902 * remote.c (remote_pass_signals): Add 'self' argument.
11903 (remote_start_remote): Update.
11904 * procfs.c (procfs_pass_signals): Add 'self' argument.
11905 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11906 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11907 (linux_nat_create_inferior, linux_nat_attach): Update.
11908
11909 2014-02-19 Tom Tromey <tromey@redhat.com>
11910
11911 * windows-nat.c (windows_can_run): Add 'self' argument.
11912 * target.h (struct target_ops) <to_can_run>: Add argument.
11913 (target_can_run): Add argument.
11914 * target.c (debug_to_can_run): Add argument.
11915 (update_current_target): Update.
11916 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11917 * inf-child.c (inf_child_can_run): Add 'self' argument.
11918 * go32-nat.c (go32_can_run): Add 'self' argument.
11919
11920 2014-02-19 Tom Tromey <tromey@redhat.com>
11921
11922 * target.h (struct target_ops) <to_has_exited>: Add argument.
11923 (target_has_exited): Add argument.
11924 * target.c (debug_to_has_exited): Add argument.
11925 (update_current_target): Update.
11926
11927 2014-02-19 Tom Tromey <tromey@redhat.com>
11928
11929 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11930 argument.
11931 (target_set_syscall_catchpoint): Add argument.
11932 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11933 argument.
11934 * target.c (update_current_target): Update.
11935
11936 2014-02-19 Tom Tromey <tromey@redhat.com>
11937
11938 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11939 argument.
11940 (target_remove_exec_catchpoint): Add argument.
11941 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11942 (update_current_target): Update.
11943 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11944 argument.
11945
11946 2014-02-19 Tom Tromey <tromey@redhat.com>
11947
11948 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11949 argument.
11950 (target_insert_exec_catchpoint): Add argument.
11951 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11952 (update_current_target): Update.
11953 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11954 argument.
11955
11956 2014-02-19 Tom Tromey <tromey@redhat.com>
11957
11958 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11959 argument.
11960 (target_remove_vfork_catchpoint): Add argument.
11961 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11962 (update_current_target): Update.
11963 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11964 argument.
11965
11966 2014-02-19 Tom Tromey <tromey@redhat.com>
11967
11968 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11969 argument.
11970 (target_insert_vfork_catchpoint): Add argument.
11971 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11972 (update_current_target): Update.
11973 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11974 argument.
11975
11976 2014-02-19 Tom Tromey <tromey@redhat.com>
11977
11978 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11979 argument.
11980 (target_remove_fork_catchpoint): Add argument.
11981 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11982 (update_current_target): Update.
11983 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11984 argument.
11985
11986 2014-02-19 Tom Tromey <tromey@redhat.com>
11987
11988 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11989 argument.
11990 (target_insert_fork_catchpoint): Add argument.
11991 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11992 (update_current_target): Update.
11993 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11994 argument.
11995
11996 2014-02-19 Tom Tromey <tromey@redhat.com>
11997
11998 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11999 argument.
12000 (target_post_startup_inferior): Add argument.
12001 * target.c (debug_to_post_startup_inferior): Add argument.
12002 (update_current_target): Update.
12003 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12004 argument.
12005 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12006 argument.
12007 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12008 argument.
12009 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12010 argument.
12011 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12012 'self' argument.
12013 (super_post_startup_inferior): Likewise.
12014 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12015 'self' argument.
12016 (super_post_startup_inferior): Likewise.
12017 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12018 Add 'self' argument.
12019 (super_post_startup_inferior): Likewise.
12020
12021 2014-02-19 Tom Tromey <tromey@redhat.com>
12022
12023 * target.h (struct target_ops) <to_load>: Add argument.
12024 * target.c (target_load): Add argument.
12025 (debug_to_load): Add argument.
12026 (update_current_target): Update.
12027 * remote.c (remote_load): Add 'self' argument.
12028 * remote-sim.c (gdbsim_load): Add 'self' argument.
12029 * remote-mips.c (mips_load): Add 'self' argument.
12030 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12031 * monitor.c (monitor_load): Add 'self' argument.
12032 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12033
12034 2014-02-19 Tom Tromey <tromey@redhat.com>
12035
12036 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12037 (target_terminal_info): Add argument.
12038 * target.c (debug_to_terminal_info): Add argument.
12039 (default_terminal_info): Likewise.
12040 * inflow.c (child_terminal_info): Add 'self' argument.
12041 * inferior.h (child_terminal_info): Add 'self' argument.
12042 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12043
12044 2014-02-19 Tom Tromey <tromey@redhat.com>
12045
12046 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12047 argument.
12048 (target_terminal_save_ours): Add argument.
12049 * target.c (debug_to_terminal_save_ours): Add argument.
12050 (update_current_target): Update.
12051 * inflow.c (terminal_save_ours): Add 'self' argument.
12052 * inferior.h (terminal_save_ours): Add 'self' argument.
12053
12054 2014-02-19 Tom Tromey <tromey@redhat.com>
12055
12056 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12057 (target_terminal_ours): Add argument.
12058 * target.c (debug_to_terminal_ours): Add argument.
12059 (update_current_target): Update.
12060 * remote.c (remote_terminal_ours): Add 'self' argument.
12061 (remote_close): Update.
12062 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12063 * inflow.c (terminal_ours): Add 'self' argument.
12064 * inferior.h (terminal_ours): Add 'self' argument.
12065 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12066
12067 2014-02-19 Pedro Alves <palves@redhat.com>
12068 Tom Tromey <tromey@redhat.com>
12069
12070 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12071 argument.
12072 (target_terminal_ours_for_output): Add argument.
12073 * target.c (debug_to_terminal_ours_for_output): Add argument.
12074 (update_current_target): Update.
12075 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12076 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12077 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12078
12079 2014-02-19 Tom Tromey <tromey@redhat.com>
12080
12081 * target.h (struct target_ops) <to_terminal_inferior>: Add
12082 argument.
12083 * target.c (target_terminal_inferior): Add argument.
12084 (update_current_target): Update.
12085 * remote.c (remote_terminal_inferior): Add 'self' argument.
12086 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12087 * inflow.c (terminal_inferior): Add 'self' argument.
12088 * inferior.h (terminal_inferior): Add 'self' argument.
12089 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12090 (go32_terminal_inferior): Add 'self' argument.
12091
12092 2014-02-19 Tom Tromey <tromey@redhat.com>
12093
12094 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12095 (target_terminal_init): Add argument.
12096 * target.c (debug_to_terminal_init): Add argument.
12097 (update_current_target): Update.
12098 * inflow.c (terminal_init_inferior): Add 'self' argument.
12099 * inferior.h (terminal_init_inferior): Add 'self' argument.
12100 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12101 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12102
12103 2014-02-19 Tom Tromey <tromey@redhat.com>
12104
12105 * target.h (struct target_ops)
12106 <to_can_accel_watchpoint_condition>: Add argument.
12107 (target_can_accel_watchpoint_condition): Add argument.
12108 * target.c (debug_to_can_accel_watchpoint_condition): Add
12109 argument.
12110 (update_current_target): Update.
12111 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12112 'self' argument.
12113
12114 2014-02-19 Tom Tromey <tromey@redhat.com>
12115
12116 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12117 Add argument.
12118 (target_region_ok_for_hw_watchpoint): Add argument.
12119 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12120 (default_region_ok_for_hw_watchpoint): Add argument.
12121 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12122 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12123 argument.
12124 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12125 argument.
12126 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12127 argument.
12128 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12129 'self' argument.
12130 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12131 'self' argument.
12132 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12133 'self' argument.
12134 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12135 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12136 'self' argument.
12137 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12138 Add 'self' argument.
12139
12140 2014-02-19 Tom Tromey <tromey@redhat.com>
12141
12142 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12143 argument.
12144 (target_insert_watchpoint): Add argument.
12145 * target.c (debug_to_insert_watchpoint): Add argument.
12146 (update_current_target): Update.
12147 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12148 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12149 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12150 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12151 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12152 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12153 argument.
12154 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12155 (procfs_insert_hw_watchpoint): Add 'self' argument.
12156 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12157 argument.
12158 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12159 argument.
12160 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12161 argument.
12162 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12163 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12164 argument.
12165 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12166 'self' argument.
12167
12168 2014-02-19 Tom Tromey <tromey@redhat.com>
12169
12170 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12171 argument.
12172 (target_remove_watchpoint): Add argument.
12173 * target.c (debug_to_remove_watchpoint): Add argument.
12174 (update_current_target): Update.
12175 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12176 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12177 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12178 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12179 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12180 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12181 argument.
12182 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12183 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12184 argument.
12185 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12186 argument.
12187 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12188 argument.
12189 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12190 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12191 argument.
12192 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12193 'self' argument.
12194
12195 2014-02-19 Tom Tromey <tromey@redhat.com>
12196
12197 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12198 argument.
12199 (target_remove_hw_breakpoint): Add argument.
12200 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12201 (update_current_target): Update.
12202 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12203 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12204 argument.
12205 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12206 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12207 argument.
12208 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12209 'self' argument.
12210
12211 2014-02-19 Tom Tromey <tromey@redhat.com>
12212
12213 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12214 argument.
12215 (target_insert_hw_breakpoint): Add argument.
12216 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12217 (update_current_target): Update.
12218 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12219 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12220 argument.
12221 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12222 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12223 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12224 argument.
12225 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12226 'self' argument.
12227
12228 2014-02-19 Tom Tromey <tromey@redhat.com>
12229
12230 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12231 argument.
12232 (target_can_use_hardware_watchpoint): Add argument.
12233 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12234 (update_current_target): Update.
12235 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12236 argument.
12237 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12238 argument.
12239 * remote.c (remote_check_watch_resources): Add 'self' argument.
12240 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12241 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12242 argument.
12243 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12244 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12245 argument.
12246 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12247 argument.
12248 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12249 argument.
12250 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12251 argument.
12252 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12253 argument.
12254 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12255 argument.
12256 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12257 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12258 argument.
12259 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12260 'self' argument.
12261
12262 2014-02-19 Tom Tromey <tromey@redhat.com>
12263
12264 * target.h (struct target_ops) <to_post_attach>: Add argument.
12265 (target_post_attach): Add argument.
12266 * target.c (debug_to_post_attach): Add argument.
12267 (update_current_target): Update.
12268 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12269 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12270 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12271 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12272 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12273
12274 2014-02-19 Tom Tromey <tromey@redhat.com>
12275
12276 * windows-nat.c (windows_close): Add 'self' argument.
12277 * tracepoint.c (tfile_close): Add 'self' argument.
12278 * target.h (struct target_ops) <to_close>: Add argument.
12279 * target.c (target_close): Add argument.
12280 (update_current_target): Update.
12281 * remote.c (remote_close): Add 'self' argument.
12282 * remote-sim.c (gdbsim_close): Add 'self' argument.
12283 * remote-mips.c (mips_close): Add 'self' argument.
12284 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12285 * record-full.c (record_full_close): Add 'self' argument.
12286 * record-btrace.c (record_btrace_close): Add 'self' argument.
12287 * monitor.h (monitor_close): Add 'self' argument.
12288 * monitor.c (monitor_close): Add 'self' argument.
12289 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12290 * linux-nat.c (linux_nat_close): Add argument.
12291 * go32-nat.c (go32_close): Add 'self' argument.
12292 * exec.c (exec_close_1): Add 'self' argument.
12293 * ctf.c (ctf_close): Add 'self' argument.
12294 * corelow.c (core_close): Add 'self' argument.
12295 (core_close_cleanup): Update.
12296 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12297 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12298
12299 2014-02-19 Tom Tromey <tromey@redhat.com>
12300
12301 * remote.c (remote_load): New function.
12302 (init_remote_ops): Use it.
12303
12304 2014-02-19 Tom Tromey <tromey@redhat.com>
12305
12306 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12307 argument.
12308 * common/linux-btrace.h (linux_supports_btrace): Update.
12309 * remote.c (remote_supports_btrace): Add "self" argument.
12310 * target-delegates.c: Rebuild.
12311 * target.c (target_supports_btrace): Remove.
12312 * target.h (struct target_ops) <to_supports_btrace>: Add
12313 target_ops argument.
12314 (target_supports_btrace): New define.
12315
12316 2014-02-19 Tom Tromey <tromey@redhat.com>
12317
12318 * record-full.c (record_full_beneath_to_resume_ops)
12319 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12320 (record_full_beneath_to_wait)
12321 (record_full_beneath_to_store_registers_ops)
12322 (record_full_beneath_to_store_registers)
12323 (record_full_beneath_to_xfer_partial_ops)
12324 (record_full_beneath_to_xfer_partial)
12325 (record_full_beneath_to_insert_breakpoint_ops)
12326 (record_full_beneath_to_insert_breakpoint)
12327 (record_full_beneath_to_remove_breakpoint_ops)
12328 (record_full_beneath_to_remove_breakpoint)
12329 (record_full_beneath_to_stopped_by_watchpoint)
12330 (record_full_beneath_to_stopped_data_address)
12331 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12332 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12333 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12334 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12335 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12336 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12337 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12338 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12339 (record_full_resume, record_full_wait_1)
12340 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12341 (record_full_store_registers, record_full_xfer_partial)
12342 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12343 (record_full_async, record_full_core_xfer_partial): Use target
12344 delegation.
12345 * target-delegates.c: Rebuild.
12346 * target.c (current_xfer_partial): Remove.
12347 (update_current_target): Do not INHERIT or de_fault
12348 to_insert_breakpoint, to_remove_breakpoint,
12349 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12350 to_is_async_p, to_async. Do not set to_xfer_partial field.
12351 (default_xfer_partial): Simplify.
12352 (current_xfer_partial): Remove.
12353 (target_wait, target_resume): Simplify.
12354 (find_default_can_async_p, find_default_is_async_p): Update.
12355 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12356 to_xfer_partial, to_stopped_by_watchpoint,
12357 to_stopped_data_address.
12358 (target_store_registers): Simplify.
12359 (forward_target_remove_breakpoint)
12360 (forward_target_insert_breakpoint): Remove.
12361 (target_remove_breakpoint, target_insert_breakpoint)
12362 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12363 * target.h (struct target_ops) <to_resume, to_wait,
12364 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12365 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12366 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12367 markup.
12368 (forward_target_remove_breakpoint)
12369 (forward_target_insert_breakpoint): Remove.
12370 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12371 directly.
12372 (record_btrace_insert_breakpoint): Delegate directly.
12373
12374 2014-02-19 Tom Tromey <tromey@redhat.com>
12375
12376 PR build/7701:
12377 * target-delegates.c: New file.
12378 * target.c: Include target-delegates.c.
12379 (init_dummy_target): Call install_dummy_methods.
12380 (complete_target_initialization): Call install_delegators.
12381 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12382 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12383 * make-target-delegates: New file.
12384
12385 2014-02-19 Tom Tromey <tromey@redhat.com>
12386
12387 * record.c (find_record_target): Use find_target_at.
12388 * target.c (find_target_at): New function.
12389 * target.h (find_target_at): Declare.
12390
12391 2014-02-19 Tom Tromey <tromey@redhat.com>
12392
12393 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12394 Add 'ops' argument.
12395 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12396 'ops' argument.
12397 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12398 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12399 'ops' argument.
12400 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12401 argument.
12402 * linux-nat.c (save_sigtrap): Update.
12403 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12404 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12405 (linux_nat_close): Update.
12406 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12407 argument.
12408 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12409 argument.
12410 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12411 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12412 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12413 (tmp_to_async): Add 'ops' argument.
12414 (record_full_stopped_by_watchpoint, record_full_async)
12415 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12416 argument.
12417 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12418 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12419 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12420 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12421 (remote_is_async_p, remote_async): Add 'ops' argument.
12422 (remote_stopped_data_address): Update.
12423 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12424 * target.c (update_current_target)
12425 (find_default_can_async_p, find_default_is_async_p): Update.
12426 (init_dummy_target): Update.
12427 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12428 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12429 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12430 (target_can_async_p, target_is_async_p, target_async)
12431 (target_stopped_by_watchpoint): Update.
12432
12433 2014-02-19 Yao Qi <yao@codesourcery.com>
12434
12435 PR gdb/16220
12436 * gdbarch.sh: Remove startup_gdbarch.
12437 * gdbarch.c: Regenerated.
12438 * gdbarch.h: Likewise.
12439
12440 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12441
12442 * rl78-tdep.c (rl78_g10_register_name): New function.
12443 (rl78_return_value): Add g10 support.
12444 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12445 g10.
12446
12447 2014-02-17 Doug Evans <xdje42@gmail.com>
12448
12449 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12450 (SUBDIR_GUILE_SRCS): Ditto.
12451 (scm-gsmob.o): Ditto.
12452
12453 2014-02-17 Yao Qi <yao@codesourcery.com>
12454
12455 * gnu-nat.c (ILL_RPC): Declare defined function.
12456
12457 2014-02-17 Yao Qi <yao@codesourcery.com>
12458
12459 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12460 mach_msg_type_number_t.
12461 (gnu_write_inferior): Likewise.
12462
12463 2014-02-17 Yao Qi <yao@codesourcery.com>
12464
12465 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12466 in format string.
12467 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12468 (inf_validate_procs, inf_signal): Likewise.
12469 (S_exception_raise_request): Likewise.
12470 (do_mach_notify_dead_name): Likewise.
12471 (steal_exc_port): Likewise.
12472 (gnu_read_inferior): Change 'copy_count''s type to
12473 mach_msg_type_number_t.
12474 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12475 format string.
12476
12477 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12478
12479 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12480 flag. Adjust all users; in particular...
12481 (gnu_wait): ..., don't decrement its value in here...
12482 (gnu_create_inferior): ..., and instead set the flag in here,
12483 around the startup_inferior call, and call that one with
12484 START_INFERIOR_TRAPS_EXPECTED.
12485
12486 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12487 (ILL_RPC): ... new macro.
12488 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12489 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12490 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12491 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12492 functions with ILL_RPC macro.
12493 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12494 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12495 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12496 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12497 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12498 (S_proc_getlogin_reply, S_proc_getsid_reply)
12499 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12500 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12501 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12502 (S_proc_getnports_reply, S_proc_is_important_reply)
12503 (S_proc_get_code_reply): New stub functions, generated with
12504 ILL_RPC macro.
12505
12506 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12507 collected the type check structures.
12508
12509 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12510
12511 2014-02-14 Doug Evans <dje@google.com>
12512
12513 * target.c (target_write_partial): Fix result type.
12514
12515 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12516
12517 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12518 the proper offsets to access fpregset_t.
12519
12520 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12521
12522 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12523 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12524 * h8300-tdep.c (setmachinelist): Remove global.
12525 * hppa-tdep.c (hppa_sigtramp): Remove global.
12526 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12527 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12528 * ravenscar-thread.c (update_target_observer): Remove global.
12529 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12530
12531 2014-02-12 Tom Tromey <tromey@redhat.com>
12532
12533 * common/rsp-low.c: Update comments.
12534 * common/rsp-low.h: Update comments.
12535
12536 2014-02-12 Tom Tromey <tromey@redhat.com>
12537
12538 * common/rsp-low.c (convert_ascii_to_int): Remove.
12539 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12540
12541 2014-02-12 Tom Tromey <tromey@redhat.com>
12542
12543 * common/rsp-low.h (unhexify): Don't declare.
12544 * common/rsp-low.c (unhexify): Remove.
12545
12546 2014-02-12 Tom Tromey <tromey@redhat.com>
12547
12548 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12549 * common/rsp-low.c (convert_int_to_ascii): Remove.
12550
12551 2014-02-12 Tom Tromey <tromey@redhat.com>
12552
12553 * common/rsp-low.h (hexify): Don't declare.
12554 * common/rsp-low.c (hexify): Remove.
12555
12556 2014-02-12 Tom Tromey <tromey@redhat.com>
12557
12558 * common/rsp-low.c (hexify): Never take strlen of argument.
12559
12560 2014-02-12 Tom Tromey <tromey@redhat.com>
12561
12562 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12563 * remote.c (extended_remote_run, remote_rcmd)
12564 (remote_download_trace_state_variable, remote_save_trace_data)
12565 (remote_set_trace_notes): Update.
12566 * tracepoint.c (encode_source_string, tfile_write_status)
12567 (tfile_write_uploaded_tsv): Update.
12568
12569 2014-02-12 Tom Tromey <tromey@redhat.com>
12570
12571 * tracepoint.c: Include rsp-low.h.
12572 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12573 * remote.c: Include rsp-low.h.
12574 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12575 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12576 (remote_unescape_input): Move to common/rsp-low.c.
12577 * common/rsp-low.h: New file.
12578 * common/rsp-low.c: New file.
12579 * Makefile.in (SFILES): Add common/rsp-low.c.
12580 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12581 (COMMON_OBS): Add rsp-low.o.
12582 (rsp-low.o): New target.
12583
12584 2014-02-12 Tom Tromey <tromey@redhat.com>
12585
12586 * utils.h: Include print-utils.h.
12587 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12588 (int_string, core_addr_to_string, core_addr_to_string_nz)
12589 (hex_string, hex_string_custom): Don't declare.
12590 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12591 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12592 (hex_string_custom, int_string, core_addr_to_string)
12593 (core_addr_to_string_nz, host_address_to_string): Move to
12594 common/print-utils.c.
12595 * common/print-utils.h: New file.
12596 * common/print-utils.c: New file
12597 * Makefile.in (SFILES): Add common/print-utils.c.
12598 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12599 (COMMON_OBS): Add print-utils.o.
12600 (print-utils.o): New target.
12601
12602 2014-02-12 Tom Tromey <tromey@redhat.com>
12603
12604 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12605
12606 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12607
12608 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12609
12610 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12611
12612 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12613 if a PT_IO ptrace request returns sucessfully but indicates that 0
12614 bytes were transferred.
12615
12616 2014-02-12 Pedro Alves <palves@redhat.com>
12617 Kevin Buettner <kevinb@redhat.com>
12618
12619 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12620 TYPE_INSTANCE_FLAG_CODE_SPACE.
12621
12622 2014-02-12 Pedro Alves <palves@redhat.com>
12623
12624 * h8300-tdep.c (pseudo_from_raw_register)
12625 (raw_from_pseudo_register): New functions.
12626 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12627 them.
12628
12629 2014-02-12 Pedro Alves <palves@redhat.com>
12630
12631 * h8300-tdep.c (h8300_register_sim_regno): New function.
12632 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12633 gdbarch_register_sim_regno hook.
12634
12635 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12636
12637 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12638
12639 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12640
12641 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12642
12643 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12644
12645 * obsd-tdep.h (obsd_init_abi): New prototype.
12646 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12647 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12648 (obsd_init_abi): New functions.
12649 * i386obsd-tdep.c: Include "obsd-tdep.h".
12650 (i386obsd_init_abi): Call obsd_init_abi.
12651 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12652 (amd64obsd_init_abi): Call obsd_init_abi.
12653 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12654 obsd-tdep.c to gdb_target_obs.
12655
12656 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12657
12658 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12659 double float arguments to 16-byte in the argument slots.
12660
12661 2014-02-11 Doug Evans <xdje42@gmail.com>
12662
12663 * configure.ac: Don't crash if pkg-config is not found and guile
12664 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12665 in guile checks.
12666 * configure: Regenerate.
12667
12668 2014-02-11 Yao Qi <yao@codesourcery.com>
12669
12670 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12671 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12672 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12673 * gnu-nat.c (gnu_xfer_memory): Likewise.
12674 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12675 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12676 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12677 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12678
12679 2014-02-11 Yao Qi <yao@codesourcery.com>
12680
12681 * target.h (enum target_xfer_error): Rename to ...
12682 (enum target_xfer_status): ... it. New. All users updated.
12683 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12684 New.
12685 (TARGET_XFER_STATUS_ERROR_P): New macro.
12686 (target_xfer_error_to_string): Remove declaration.
12687 (target_xfer_status_to_string): Declare.
12688 (target_xfer_partial_ftype): Adjust it.
12689 (struct target_ops) <to_xfer_partial>: Return
12690 target_xfer_status. Add argument xfered_len. Update
12691 comments.
12692 * target.c (target_xfer_error_to_string): Rename to ...
12693 (target_xfer_status_to_string): ... it. New. All callers
12694 updated.
12695 (target_read_live_memory): Likewise. Call target_xfer_partial
12696 instead of target_read.
12697 (memory_xfer_live_readonly_partial): Return
12698 target_xfer_status. Add argument xfered_len.
12699 (raw_memory_xfer_partial): Likewise.
12700 (memory_xfer_partial_1): Likewise.
12701 (memory_xfer_partial): Likewise.
12702 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12703 properly. Update debug message.
12704 (default_xfer_partial, current_xfer_partial): Likewise.
12705 (target_write_partial): Likewise.
12706 (target_read_partial): Likewise. All callers updated.
12707 (read_whatever_is_readable): Likewise.
12708 (target_write_with_progress): Likewise.
12709 (target_read_alloc_1): Likewise.
12710
12711 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12712 * auxv.c (procfs_xfer_auxv): Likewise.
12713 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12714 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12715 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12716 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12717 * corefile.c (read_memory): Adjust.
12718 * corelow.c (core_xfer_partial): Likewise.
12719 * ctf.c (ctf_xfer_partial): Likewise.
12720 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12721 updated.
12722 (darwin_xfer_partial): Likewise.
12723 * exec.c (section_table_xfer_memory_partial): Likewise. All
12724 callers updated.
12725 (exec_xfer_partial): Likewise.
12726 * exec.h (section_table_xfer_memory_partial): Update
12727 declaration.
12728 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12729 negative.
12730 (gnu_xfer_partial): Likewise.
12731 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12732 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12733 (ia64_hpux_xfer_solib_got): Likewise.
12734 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12735 type of 'partial_len' to ULONGEST.
12736 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12737 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12738 (linux_nat_xfer_partial): Likewise.
12739 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12740 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12741 * monitor.c (monitor_xfer_memory): Likewise.
12742 (monitor_xfer_partial): Likewise.
12743 * procfs.c (procfs_xfer_partial): Likewise.
12744 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12745 * record-full.c (record_full_xfer_partial): Likewise.
12746 (record_full_core_xfer_partial): Likewise.
12747 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12748 (gdbsim_xfer_partial): Likewise.
12749 * remote.c (remote_write_bytes_aux): Likewise. All callers
12750 updated.
12751 (remote_write_bytes, remote_read_bytes): Likewise. All
12752 callers updated.
12753 (remote_flash_erase): Likewise. All callers updated.
12754 (remote_write_qxfer): Likewise. All callers updated.
12755 (remote_read_qxfer): Likewise. All callers updated.
12756 (remote_xfer_partial): Likewise.
12757 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12758 (rs6000_xfer_shared_libraries): Likewise.
12759 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12760 (sol_thread_xfer_partial): Likewise.
12761 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12762 (sparc_xfer_partial): Likewise.
12763 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12764 updated.
12765 (spu_xfer_partial): Likewise.
12766 * spu-multiarch.c (spu_xfer_partial): Likewise.
12767 * tracepoint.c (tfile_xfer_partial): Likewise.
12768 * windows-nat.c (windows_xfer_memory): Likewise.
12769 (windows_xfer_shared_libraries): Likewise.
12770 (windows_xfer_partial): Likewise.
12771 * valprint.c: Replace 'target_xfer_error' with
12772 'target_xfer_status' in comments.
12773
12774 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12775
12776 Checked in by Joel Brobecker <brobecker@adacore.com>.
12777 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12778
12779 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12780
12781 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12782 function parameters.
12783
12784 2014-02-10 Will Newton <will.newton@linaro.org>
12785
12786 * elfread.c (elf_rel_plt_read): Look for a .got section if
12787 looking up .got.plt fails.
12788 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12789 on address passed to elf_gnu_ifunc_record_cache.
12790 (elf_gnu_ifunc_resolve_addr): Likewise.
12791 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12792
12793 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12794
12795 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12796 (X_RETTURN): New macro.
12797 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12798
12799 * sparc64-tdep.c (sparc64_init_abi): Hook
12800 sparc_in_function_epilogue_p.
12801
12802 2014-02-10 Gary Benson <gbenson@redhat.com>
12803
12804 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12805 Rename name_matcher to symbol_matcher.
12806
12807 2014-02-10 Gary Benson <gbenson@redhat.com>
12808
12809 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12810 Use expand_symtabs_file_matcher_ftype and
12811 expand_symtabs_symbol_matcher_ftype.
12812
12813 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12814
12815 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12816 (struct ada_symbol_cache): New.
12817 (ada_free_symbol_cache): Forward declare.
12818 (struct ada_pspace_data): New.
12819 (ada_pspace_data_handle): New static global.
12820 (get_ada_pspace_data, ada_pspace_data_cleanup)
12821 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12822 (cache_space, cache): Delete, now folded inside struct
12823 ada_pspace_data.
12824 (ada_get_symbol_cache): New function.
12825 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12826 implementation.
12827 (_initialize_ada_language): Remove initialization of cache_space.
12828 Move call to observer_attach_inferior_exit up, grouping it
12829 with the other observer registrations inside this function.
12830 Rename command to be more general. Add call to
12831 register_program_space_data_with_cleanup.
12832
12833 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12834
12835 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12836 ada_new_objfile_observer.
12837 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12838 (_initialize_tasks): Update uses of ada_new_objfile_observer
12839 and ada_tasks_normal_stop_observer.
12840
12841 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12842
12843 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12844 returned by the 'Length attribute to integer.
12845
12846 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12847
12848 * ada-lang.c (_initialize_ada_language): Initialize
12849 cache_space obstack.
12850
12851 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12852
12853 * ada-lang.c (HASH_SIZE): New macro.
12854 (struct cache_entry): New type.
12855 (cache_space, cache): New static globals.
12856 (ada_clear_symbol_cache, find_entry): New functions.
12857 (lookup_cached_symbol, cache_symbol): Implement.
12858 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12859 (_initialize_ada_language): Attach ada_new_objfile_observer
12860 and ada_free_objfile_observer.
12861
12862 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12863
12864 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12865 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12866 struct block * parameter.
12867 (ada_lookup_symbol_list_worker): Constify local variable "block".
12868 Remove cast which is no longer necessary.
12869
12870 2014-02-10 Doug Evans <xdje42@gmail.com>
12871
12872 Add Guile as an extension language.
12873 * NEWS: Mention Guile scripting.
12874 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12875 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12876 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12877 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12878 (CLIBS): Add GUILE_LIBS.
12879 (install-guile): New rule.
12880 (guile.o): New rule.
12881 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12882 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12883 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12884 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12885 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12886 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12887 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12888 * configure.ac: New option --with-guile.
12889 * configure: Regenerate.
12890 * config.in: Regenerate.
12891 * auto-load.c: Remove #include "python/python.h". Add #include
12892 "gdb/section-scripts.h".
12893 (source_section_scripts): Handle Guile scripts.
12894 (_initialize_auto_load): Add name of Guile objfile script to
12895 scripts-directory help text.
12896 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12897 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12898 (struct breakpoint): New member scm_bp_object.
12899 * defs.h (enum command_control_type): New value guile_control.
12900 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12901 "extension.h".
12902 (show_user): Update comment.
12903 (_initialize_cli_cmds): Update help text for "show user". Update help
12904 text for max-user-call-depth.
12905 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12906 "extension.h".
12907 (multi_line_command_p): Add guile_control.
12908 (print_command_lines): Handle guile_control.
12909 (execute_control_command, recurse_read_control_structure): Ditto.
12910 (process_next_line): Recognize "guile" commands.
12911 * disasm.c (gdb_disassemble_info): Make non-static.
12912 * disasm.h: #include "dis-asm.h".
12913 (struct gdbarch): Add forward decl.
12914 (gdb_disassemble_info): Declare.
12915 * extension.c: #include "guile/guile.h".
12916 (extension_languages): Add guile.
12917 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12918 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12919 * gdbtypes.c (get_unsigned_type_max): New function.
12920 (get_signed_type_minmax): New function.
12921 * gdbtypes.h (get_unsigned_type_max): Declare.
12922 (get_signed_type_minmax): Declare.
12923 * guile/README: New file.
12924 * guile/guile-internal.h: New file.
12925 * guile/guile.c: New file.
12926 * guile/guile.h: New file.
12927 * guile/scm-arch.c: New file.
12928 * guile/scm-auto-load.c: New file.
12929 * guile/scm-block.c: New file.
12930 * guile/scm-breakpoint.c: New file.
12931 * guile/scm-disasm.c: New file.
12932 * guile/scm-exception.c: New file.
12933 * guile/scm-frame.c: New file.
12934 * guile/scm-gsmob.c: New file.
12935 * guile/scm-iterator.c: New file.
12936 * guile/scm-lazy-string.c: New file.
12937 * guile/scm-math.c: New file.
12938 * guile/scm-objfile.c: New file.
12939 * guile/scm-ports.c: New file.
12940 * guile/scm-pretty-print.c: New file.
12941 * guile/scm-safe-call.c: New file.
12942 * guile/scm-string.c: New file.
12943 * guile/scm-symbol.c: New file.
12944 * guile/scm-symtab.c: New file.
12945 * guile/scm-type.c: New file.
12946 * guile/scm-utils.c: New file.
12947 * guile/scm-value.c: New file.
12948 * guile/lib/gdb.scm: New file.
12949 * guile/lib/gdb/boot.scm: New file.
12950 * guile/lib/gdb/experimental.scm: New file.
12951 * guile/lib/gdb/init.scm: New file.
12952 * guile/lib/gdb/iterator.scm: New file.
12953 * guile/lib/gdb/printing.scm: New file.
12954 * guile/lib/gdb/types.scm: New file.
12955 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12956 (VPATH): Add $(GUILE_SRCDIR).
12957 (GUILE_DIR): New variable.
12958 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12959 (all): Add stamp-guile dependency.
12960 (stamp-guile): New rule.
12961 (clean-guile, install-guile, uninstall-guile): New rules.
12962 (install-only): Add install-guile dependency.
12963 (uninstall): Add uninstall-guile dependency.
12964 (clean): Add clean-guile dependency.
12965
12966 2014-02-09 Doug Evans <xdje42@gmail.com>
12967
12968 Revert this patch (which I approved, mea culpa).
12969
12970 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12971
12972 * Makefile.in (all-lib): Remove.
12973 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12974
12975 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12976
12977 Fix Python stack corruption.
12978 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12979 gdb_py_longest.
12980
12981 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12982
12983 * Makefile.in (all-lib): Remove.
12984 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12985
12986 2014-02-07 Doug Evans <dje@google.com>
12987
12988 * extension-priv.h (extension_language_script_ops): Add comment.
12989 (extension_language_ops): Add comment.
12990 (active_ext_lang_state): Fix typo in comment.
12991
12992 2014-02-07 Pedro Alves <palves@redhat.com>
12993
12994 PR breakpoints/16292
12995 * infrun.c (handle_signal_stop) <signal arrives while stepping
12996 over a breakpoint>: Switch back to the stepping thread.
12997
12998 2014-02-07 Yao Qi <yao@codesourcery.com>
12999
13000 * target.c (target_xfer_partial): Return zero if LEN is zero.
13001
13002 2014-02-07 Yao Qi <yao@codesourcery.com>
13003
13004 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13005 (ld_so_xfer_auxv): Likewise.
13006 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13007 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13008 * corelow.c (core_xfer_partial): Likewise.
13009 * ctf.c (ctf_xfer_partial): Likewise.
13010 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13011 (darwin_xfer_partial): Likewise.
13012 * exec.c (exec_xfer_partial): Likewise.
13013 * gnu-nat.c (gnu_xfer_partial): Likewise.
13014 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13015 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13016 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13017 * linux-nat.c (linux_xfer_siginfo): Likewise.
13018 (linux_proc_xfer_spu): Likewise.
13019 * procfs.c (procfs_xfer_partial): Likewise.
13020 * record-full.c (record_full_xfer_partial): Likewise.
13021 (record_full_core_xfer_partial): Likewise.
13022 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13023 * remote.c (remote_write_qxfer): Likewise.
13024 (remote_write_qxfer, remote_read_qxfer): Likewise.
13025 (remote_xfer_partial): Likewise.
13026 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13027 (rs6000_xfer_shared_libraries): Likewise.
13028 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13029 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13030 (spu_xfer_partial): Likewise.
13031 * target.c (memory_xfer_partial_1): Likewise.
13032 * tracepoint.c (tfile_xfer_partial): Likewise.
13033 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13034 (windows_xfer_partial): Likewise.
13035
13036 2014-02-07 Yao Qi <yao@codesourcery.com>
13037
13038 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13039 comments.
13040 (core_xfer_shared_libraries_aix): Likewise.
13041 * gdbarch.c, gdbarch.h: Regenerated.
13042 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13043 ULONGEST. Change 'len_avail' type to ULONGEST.
13044 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13045 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13046 declaration.
13047 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13048
13049 2014-02-07 Yao Qi <yao@codesourcery.com>
13050
13051 * corefile.c (memory_error): Get 'exception' from ERR and pass
13052 'exception' to throw_error.
13053
13054 2014-02-06 Doug Evans <xdje42@gmail.com>
13055
13056 * configure.ac (libpython checking): Remove all but python.o from
13057 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13058 * configure: Regenerate.
13059
13060 * Makefile.in (SFILES): Add extension.c.
13061 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13062 (COMMON_OBS): Add extension.o.
13063 * extension.h: New file.
13064 * extension-priv.h: New file.
13065 * extension.c: New file.
13066
13067 * python/python-internal.h: #include "extension.h".
13068 (gdbpy_auto_load_enabled): Declare.
13069 (gdbpy_apply_val_pretty_printer): Declare.
13070 (gdbpy_apply_frame_filter): Declare.
13071 (gdbpy_preserve_values): Declare.
13072 (gdbpy_breakpoint_cond_says_stop): Declare.
13073 (gdbpy_breakpoint_has_cond): Declare.
13074 (void source_python_script_for_objfile): Delete.
13075 * python/python.c: #include "extension-priv.h".
13076 Delete inclusion of "observer.h".
13077 (extension_language_python): Moved here and renamed from
13078 script_language_python in py-auto-load.c.
13079 Redefined to be of type extension_language_defn.
13080 (python_extension_script_ops): New global.
13081 (python_extension_ops): New global.
13082 (struct python_env): New member previous_active.
13083 (restore_python_env): Call restore_active_ext_lang.
13084 (ensure_python_env): Call set_active_ext_lang.
13085 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13086 New arg extlang.
13087 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13088 New arg extlang.
13089 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13090 New arg extlang.
13091 (gdbpy_eval_from_control_command): Renamed from
13092 eval_python_from_control_command, made static. New arg extlang.
13093 (gdbpy_source_script) Renamed from source_python_script, made static.
13094 New arg extlang.
13095 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13096 result to int. New arg extlang.
13097 (gdbpy_source_objfile_script): Renamed from
13098 source_python_script_for_objfile, made static. New arg extlang.
13099 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13100 static. New args extlang, extlang_printers. Change result type to
13101 "void".
13102 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13103 static. New arg extlang. Rename arg printers to extlang_printers
13104 and change type to ext_lang_type_printers *.
13105 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13106 static. Replace argument arg with extlang, extlang_printers.
13107 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13108 (!HAVE_PYTHON, source_python_script): Delete.
13109 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13110 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13111 (!HAVE_PYTHON, start_type_printers): Delete.
13112 (!HAVE_PYTHON, apply_type_printers): Delete.
13113 (!HAVE_PYTHON, free_type_printers): Delete.
13114 (_initialize_python): Delete call to observer_attach_before_prompt.
13115 (finalize_python): Set/restore active extension language.
13116 (gdbpy_finish_initialization) Renamed from
13117 finish_python_initialization, made static. New arg extlang.
13118 (gdbpy_initialized): New function.
13119 * python/python.h: #include "extension.h". Delete #include
13120 "value.h", "mi/mi-cmds.h".
13121 (extension_language_python): Declare.
13122 (GDBPY_AUTO_FILE_NAME): Delete.
13123 (enum py_bt_status): Moved to extension.h and renamed to
13124 ext_lang_bt_status.
13125 (enum frame_filter_flags): Moved to extension.h.
13126 (enum py_frame_args): Moved to extension.h and renamed to
13127 ext_lang_frame_args.
13128 (finish_python_initialization): Delete.
13129 (eval_python_from_control_command): Delete.
13130 (source_python_script): Delete.
13131 (apply_val_pretty_printer): Delete.
13132 (apply_frame_filter): Delete.
13133 (preserve_python_values): Delete.
13134 (gdbpy_script_language_defn): Delete.
13135 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13136 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13137
13138 * auto-load.c: #include "extension.h".
13139 (GDB_AUTO_FILE_NAME): Delete.
13140 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13141 (script_language_gdb): Delete, moved to extension.c and renamed to
13142 extension_language_gdb.
13143 (source_gdb_script_for_objfile): Delete.
13144 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13145 (loaded_script): Change type of language member to
13146 struct extension_language_defn *.
13147 (init_loaded_scripts_info): Initialize
13148 unsupported_script_warning_printed.
13149 (maybe_add_script): Make static. Change type of language arg to
13150 struct extension_language_defn *.
13151 (clear_section_scripts): Reset unsupported_script_warning_printed.
13152 (auto_load_objfile_script_1): Rewrite to use extension language API.
13153 (auto_load_objfile_script): Make public. Remove support-compiled-in
13154 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13155 (source_section_scripts): Rewrite to use extension language API.
13156 (load_auto_scripts_for_objfile): Rewrite to use
13157 auto_load_scripts_for_objfile.
13158 (collect_matching_scripts_data): Change type of language member to
13159 struct extension_language_defn *.
13160 (auto_load_info_scripts): Change type of language arg to
13161 struct extension_language_defn *.
13162 (unsupported_script_warning_print): New function.
13163 (script_not_found_warning_print): Make static.
13164 (_initialize_auto_load): Rewrite construction of scripts-directory
13165 help.
13166 * auto-load.h (struct objfile): Add forward decl.
13167 (struct script_language): Delete.
13168 (struct auto_load_pspace_info): Add forward decl.
13169 (struct extension_language_defn): Add forward decl.
13170 (maybe_add_script): Delete.
13171 (auto_load_objfile_script): Declare.
13172 (script_not_found_warning_print): Delete.
13173 (auto_load_info_scripts): Update prototype.
13174 (auto_load_gdb_scripts_enabled): Declare.
13175 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13176 auto_load_python_scripts_enabled and made public.
13177 (script_language_python): Delete, moved to python.c.
13178 (gdbpy_script_language_defn): Delete.
13179 (info_auto_load_python_scripts): Update to use
13180 extension_language_python.
13181
13182 * breakpoint.c (condition_command): Replace call to
13183 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13184 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13185 with call to breakpoint_ext_lang_cond_says_stop.
13186 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13187 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13188 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13189 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13190 New arg slang.
13191 (local_setattro): Print name of extension language with existing
13192 stop condition.
13193
13194 * valprint.c (val_print, value_print): Update to call
13195 apply_ext_lang_val_pretty_printer.
13196 * cp-valprint.c (cp_print_value): Update call to
13197 apply_ext_lang_val_pretty_printer.
13198 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13199 (gdbpy_apply_val_pretty_printer): Renamed from
13200 apply_val_pretty_printer. New arg extlang.
13201 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13202
13203 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13204 extension language API.
13205 * cli/cli-script.c (execute_control_command): Update to call
13206 eval_ext_lang_from_control_command.
13207
13208 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13209 enum ext_lang_bt_status values. Update call to
13210 apply_ext_lang_frame_filter.
13211 (mi_cmd_stack_list_locals): Ditto.
13212 (mi_cmd_stack_list_args): Ditto.
13213 (mi_cmd_stack_list_variables): Ditto.
13214 * mi/mi-main.c: Delete #include "python/python-internal.h".
13215 Add #include "extension.h".
13216 (mi_cmd_list_features): Replace reference to python internal variable
13217 gdb_python_initialized with call to ext_lang_initialized_p.
13218
13219 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13220 Update to use enum ext_lang_frame_args. Update to call
13221 apply_ext_lang_frame_filter.
13222 * python/py-framefilter.c (extract_sym): Update to use enum
13223 ext_lang_bt_status.
13224 (extract_value, py_print_type, py_print_value): Ditto.
13225 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13226 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13227 (py_print_frame): Ditto.
13228 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13229 New arg extlang. Update to use enum ext_lang_bt_status.
13230
13231 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13232 finish_python_initialization. Replace with call to
13233 finish_ext_lang_initialization.
13234
13235 * typeprint.c (do_free_global_table): Update to call
13236 free_ext_lang_type_printers.
13237 (create_global_typedef_table): Update to call
13238 start_ext_lang_type_printers.
13239 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13240 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13241 (type_print_options): Change type of global_printers from "void *"
13242 to "struct ext_lang_type_printers *".
13243
13244 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13245 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13246 (gdbpy_preserve_values): Renamed from preserve_python_values.
13247 New arg extlang.
13248 (!HAVE_PYTHON, preserve_python_values): Delete.
13249
13250 * utils.c (quit_flag): Delete, moved to extension.c.
13251 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13252 extension.c.
13253
13254 * eval.c: Delete #include "python/python.h".
13255 * main.c: Delete #include "python/python.h".
13256
13257 * defs.h: Update comment.
13258
13259 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13260
13261 GDB 7.7 released.
13262
13263 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13264
13265 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13266 defined.
13267
13268 2014-02-05 Yao Qi <yao@codesourcery.com>
13269
13270 * remote.c (remote_pass_signals): Remove local 'buf' and use
13271 rs->buf.
13272 (remote_program_signals): Likewise.
13273
13274 2014-02-05 Yao Qi <yao@codesourcery.com>
13275
13276 * ctf.c: Include "inferior.h" and "gdbthread.h".
13277 (CTF_PID): A new macro.
13278 (ctf_open): Call inferior_appeared and add_thread_silent.
13279 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13280 (ctf_thread_alive): New function.
13281 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13282
13283 2014-02-05 Yao Qi <yao@codesourcery.com>
13284
13285 Revert this patch:
13286
13287 2013-05-24 Yao Qi <yao@codesourcery.com>
13288
13289 * tracepoint.c (TFILE_PID): Remove.
13290 (tfile_open): Don't add thread and inferior.
13291 (tfile_close): Don't set 'inferior_ptid'. Don't call
13292 exit_inferior_silent.
13293 (tfile_thread_alive): Remove.
13294 (init_tfile_ops): Don't set field 'to_thread_alive' of
13295 tfile_ops.
13296
13297 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13298
13299 * remote.c (remote_start_remote): Call remote_check_symbols even
13300 if only symbol-file (not file) has been given.
13301
13302 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13303
13304 * gdbarch.sh (skip_entrypoint): New callback.
13305 * gdbarch.c, gdbarch.h: Regenerate.
13306 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13307 * infrun.c (fill_in_stop_func): Likewise.
13308 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13309 (ppc_elfv2_elf_make_msymbol_special): New function.
13310 (ppc_elfv2_skip_entrypoint): Likewise.
13311 (ppc_linux_init_abi): Install them for ELFv2.
13312
13313 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13314
13315 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13316 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13317 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13318 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13319 structures returned in GPRs.
13320
13321 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13322
13323 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13324 offset to the stack parameter list for the ELFv2 ABI.
13325
13326 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13327
13328 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13329 set_gdbarch_convert_from_func_ptr_addr and
13330 set_gdbarch_elf_make_msymbol_special for ELFv1.
13331 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13332 function descriptors on ELFv1.
13333 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13334 set up r12 at function entry.
13335
13336 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13337
13338 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13339 (struct gdbarch_tdep): New member elf_abi.
13340
13341 * rs6000-tdep.c: Include "elf/ppc64.h".
13342 (rs6000_gdbarch_init): Detect ELF ABI version.
13343
13344 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13345
13346 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13347 within a register pair holding a DFP 128-bit value on little-endian.
13348 (ppc64_sysv_abi_return_value_base): Likewise.
13349 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13350 (dfp_pseudo_register_write): Likewise.
13351
13352 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13353
13354 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13355 offset on little-endian when passing _Decimal32.
13356 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13357
13358 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13359
13360 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13361 of the overlapped FP register within the VSX register on little-
13362 endian platforms.
13363 (efpr_pseudo_register_write): Likewise.
13364
13365 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13366
13367 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13368 offset on little-endian when passing small structures.
13369
13370 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13371
13372 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13373 (struct ppc64_sysv_argpos): New data structure.
13374 (ppc64_sysv_abi_push_float): Remove.
13375 (ppc64_sysv_abi_push_val): New function.
13376 (ppc64_sysv_abi_push_integer): Likewise.
13377 (ppc64_sysv_abi_push_freg): Likewise.
13378 (ppc64_sysv_abi_push_vreg): Likewise.
13379 (ppc64_sysv_abi_push_param): Likewise.
13380 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13381 (ppc64_sysv_abi_return_value_base): New function.
13382 (ppc64_sysv_abi_return_value): Refactor to use it.
13383
13384 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13385
13386 * NEWS: Document new target powerpc64le-*-linux*.
13387
13388 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13389
13390 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13391 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13392 core dumps.
13393 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13394 register set used in ELF core dumps. Add floating-point register set.
13395
13396 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13397
13398 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13399 dwarf2_to_gdb[] table using symbolic constants. Adjust
13400 penultimate entry from number representing the PC register
13401 to symbolic constant representing the MDR register. Add
13402 constant for the PC register to the end of the table.
13403
13404 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13405
13406 * bsd-kvm.c: Include <sys/param.h>
13407
13408 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13409
13410 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13411
13412 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13413
13414 * ada-lang.h (clear_ada_sym_cache): Delete.
13415
13416 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13417
13418 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13419
13420 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13421
13422 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13423 the sigreturn register save area only if the syscall is
13424 sigreturn.
13425
13426 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13427
13428 * valops.c (value_slice): Minor reformatting.
13429
13430 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13431
13432 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13433
13434 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13435
13436 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13437 New static globals.
13438 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13439 (ada_ignore_descriptive_types_p): New static global.
13440 (find_parallel_type_by_descriptive_type): Return immediately
13441 if ada_ignore_descriptive_types_p is set.
13442 (_initialize_ada_language): Register new commands "maintenance
13443 set ada", "maintenance show ada", "maintenance set ada
13444 ignore-descriptive-types" and "maintenance show ada
13445 ignore-descriptive-types".
13446 * NEWS: Add entry for new "maint ada set/show
13447 ignore-descriptive-types" commands.
13448
13449 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13450
13451 * record-btrace.c (record_btrace_close): Call btrace_teardown
13452 for all threads.
13453
13454 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13455
13456 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13457 "ui-out.h".
13458
13459 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13460
13461 * ada-typeprint (type_is_full_subrange_of_target_type):
13462 New function.
13463 (print_range): Add parameter bounds_prefered_p. If not set,
13464 try printing range types using the name of their base type.
13465 (print_range_type): Add parameter bounds_prefered_p.
13466 Use it in call to print_range.
13467 (print_array_type, ada_print_type): Update calls to print_range
13468 and print_range_type.
13469
13470 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13471
13472 * ada-typeprint.c (print_array_type, print_choices, print_range)
13473 (print_range_bound, print_dynamic_range_bound, print_range_type):
13474 Remove declaration.
13475
13476 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13477
13478 * ada-typeprint.c (print_range): Add missing empty line
13479 after local declaration.
13480
13481 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13482
13483 * ada-valprint.c (print_optional_low_bound): Get index_type's
13484 target type for as long as it is a TYPE_CODE_RANGE.
13485
13486 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13487
13488 * procfs.c (procfs_make_note_section): Remove assertion and
13489 associated comment.
13490
13491 2014-01-24 Yao Qi <yao@codesourcery.com>
13492
13493 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13494 * corelow.c (get_core_siginfo): Likewise.
13495
13496 2014-01-24 Yao Qi <yao@codesourcery.com>
13497
13498 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13499 ULONGEST. Don't check 'len' is negative.
13500 (remote_write_bytes): Change type of 'len' to ULONGEST.
13501
13502 2014-01-23 Tom Tromey <tromey@redhat.com>
13503
13504 PR python/16485:
13505 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13506 Handle exception from frame.block.
13507 (FrameVars.fetch_frame_locals): Likewise.
13508
13509 2014-01-23 Tom Tromey <tromey@redhat.com>
13510
13511 PR python/16487:
13512 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13513 on a NULL pointer. Move "goto error" to correct place.
13514
13515 2014-01-23 Tom Tromey <tromey@redhat.com>
13516
13517 PR python/16491:
13518 * python/py-framefilter.c (apply_frame_filter): Call
13519 ensure_python_env after computing gdbarch.
13520
13521 2014-01-23 Yao Qi <yao@codesourcery.com>
13522
13523 * target.c (raw_memory_xfer_partial): Change argument type
13524 from void * to gdb_byte *.
13525 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13526
13527 2014-01-22 Doug Evans <dje@google.com>
13528
13529 New gdbserver option --debug-format=timestamp.
13530 * NEWS: Mention it.
13531
13532 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13533
13534 * syscalls/s390x-linux.xml: New file.
13535 * syscalls/s390-linux.xml: New file.
13536 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13537 (XML_SYSCALL_FILENAME_S390X): Likewise.
13538 (op_svc): New enum value for SVC opcode.
13539 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13540 (s390_linux_get_syscall_number): New function.
13541 (s390_gdbarch_init): Register '*get_syscall_number' and the
13542 syscall xml file name.
13543 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13544 "s390-linux.xml" and "s390x-linux.xml".
13545 * NEWS: Announce new feature.
13546
13547 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13548
13549 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13550
13551 2014-01-22 Pedro Alves <palves@redhat.com>
13552
13553 * xtensa-config.c: Include defs.h.
13554
13555 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13556
13557 * common/common-utils.h: Add "ARI:" comment beside __func__
13558 reference.
13559
13560 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13561
13562 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13563 documentation a bit.
13564
13565 2014-01-21 Roland McGrath <mcgrathr@google.com>
13566
13567 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13568 * configure: Regenerate.
13569 * aclocal.m4: Regenerate.
13570 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13571 New substituted variables.
13572 (install-strip): New target.
13573 (INSTALL_SCRIPT): New substituted variable.
13574 (FLAGS_TO_PASS): Add it.
13575 (install-only): Use $(INSTALL_SCRIPT) rather than
13576 $(INSTALL_PROGRAM) for gcore.
13577
13578 2014-01-20 Tom Tromey <tromey@redhat.com>
13579
13580 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13581 together.
13582
13583 2014-01-20 Tom Tromey <tromey@redhat.com>
13584
13585 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13586 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13587 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13588 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13589 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13590 (struct cmd_list_element) <flags>: Remove.
13591 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13592 doc_allocated>: New fields.
13593 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13594 bitfields.
13595 * maint.c (maintenance_do_deprecate): Update.
13596 * top.c (execute_command): Update.
13597
13598 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13599
13600 * xtensa-linux-nat.c: Include asm/ptrace.h.
13601
13602 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13603
13604 * Makefile.in (SFILES): Add d-support.c.
13605 (COMMON_OBS): Add d-support.o.
13606 * d-lang.h (d_parse_symbol): Add comment, now defined in
13607 d-support.c.
13608 * d-lang.c (parse_call_convention)
13609 (parse_attributes, parse_function_types)
13610 (parse_function_args, parse_type, parse_identifier)
13611 (call_convention_p, d_parse_symbol): Move functions to ...
13612 * d-support.c: ... New file.
13613
13614 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13615
13616 * d-lang.h (d_parse_symbol): Add declaration.
13617 * d-lang.c (extract_identifiers)
13618 (extract_type_info): Remove functions.
13619 (parse_call_convention, parse_attributes)
13620 (parse_function_types, parse_function_args)
13621 (parse_type, parse_identifier, call_convention_p)
13622 (d_parse_symbol): New functions.
13623 (d_demangle): Use d_parse_symbol to demangle D symbols.
13624
13625 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13626
13627 * d-lang.h (struct builtin_d_type): New data type.
13628 (builtin_d_type): Add declaration.
13629 * d-lang.c (d_language_arch_info, build_d_types)
13630 (builtin_d_type): New functions.
13631 (enum d_primitive_types): New data type.
13632 (d_language_defn): Change c_language_arch_info to
13633 d_language_arch_info.
13634 (d_type_data): New static variable.
13635 (_initialize_d_language): Initialize d_type_data.
13636
13637 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13638
13639 * d-lang.h (d_main_name): Add declaration.
13640 * d-lang.c (d_main_name): New function.
13641 * symtab.c (find_main_name): Add call to d_main_name.
13642
13643 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13644
13645 * d-lang.c (d_language_defn): Change macro_expansion_c to
13646 macro_expansion_no.
13647
13648 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13649
13650 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13651
13652 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13653
13654 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13655 gdb_exception" declaration.
13656 * remote.c (getpkt_or_notif_sane): Likewise.
13657
13658 2014-01-17 Doug Evans <dje@google.com>
13659
13660 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13661 function, contents of dirnames_to_char_ptr_vec_append moved here.
13662 (delim_string_to_char_ptr_vec): New function.
13663 (dirnames_to_char_ptr_vec_append): Rewrite.
13664 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13665
13666 2014-01-17 Doug Evans <dje@google.com>
13667
13668 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13669 and moved here ...
13670 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13671 #include "common-utils.h".
13672 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13673 * common/vec.h (VEC_ASSERT_PASS): Update.
13674 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13675 (MACH_CHECK_ERROR): Update.
13676
13677 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13678
13679 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13680 comments.
13681 * gdbarch.h: Regenerate.
13682
13683 2014-01-16 Tom Tromey <tromey@redhat.com>
13684
13685 * value.c (struct value) <regnum>: Move earlier.
13686
13687 2014-01-16 Tom Tromey <tromey@redhat.com>
13688
13689 * remote.c (extended_remote_create_inferior): Rename from
13690 extended_remote_create_inferior_1. Add "ops" argument. Remove
13691 old implementation.
13692
13693 2014-01-16 Pedro Alves <palves@redhat.com>
13694
13695 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13696 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13697 the backchain.
13698
13699 2014-01-16 Doug Evans <dje@google.com>
13700
13701 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13702
13703 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13704
13705 * btrace.h (btrace_thread_flag): New.
13706 (struct btrace_thread_info) <flags>: New.
13707 * record-btrace.c (record_btrace_resume_thread)
13708 (record_btrace_find_thread_to_move, btrace_step_no_history)
13709 (btrace_step_stopped, record_btrace_start_replaying)
13710 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13711 (record_btrace_find_resume_thread): New.
13712 (record_btrace_resume, record_btrace_wait): Extend.
13713 (record_btrace_can_execute_reverse): New.
13714 (record_btrace_open): Fail in non-stop mode.
13715 (record_btrace_set_replay): Split into this, ...
13716 (record_btrace_stop_replaying): ... this, ...
13717 (record_btrace_clear_histories): ... and this.
13718 (init_record_btrace_ops): Init to_can_execute_reverse.
13719 * NEWS: Announce it.
13720
13721 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13722
13723 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13724 (forward_target_decr_pc_after_break)
13725 (target_decr_pc_after_break): New.
13726 * target.c (forward_target_decr_pc_after_break)
13727 (target_decr_pc_after_break): New.
13728 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13729 instead of gdbarch_decr_pc_after_break.
13730 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13731 instead of gdbarch_decr_pc_after_break.
13732 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13733 instead of gdbarch_decr_pc_after_break.
13734 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13735 instead of gdbarch_decr_pc_after_break.
13736 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13737 instead of gdbarch_decr_pc_after_break.
13738 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13739 instead of gdbarch_decr_pc_after_break.
13740
13741 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13742
13743 * btrace.c: Include regcache.h.
13744 (btrace_add_pc): New.
13745 (btrace_enable): Call btrace_add_pc.
13746 (btrace_is_empty): New.
13747 * btrace.h (btrace_is_empty): New.
13748 * record-btrace.c (require_btrace, record_btrace_info): Call
13749 btrace_is_empty.
13750
13751 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13752
13753 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13754 Support delta reads.
13755 (linux_disable_btrace): Change return type.
13756 * common/linux-btrace.h (linux_read_btrace): Change parameters
13757 and return type to allow error reporting. Update users.
13758 (linux_disable_btrace): Change return type. Update users.
13759 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13760 New.
13761 (btrace_error): New.
13762 (btrace_block) <begin>: Comment on BEGIN == 0.
13763 * btrace.c (btrace_compute_ftrace): Start from the end of
13764 the current trace.
13765 (btrace_stitch_trace, btrace_clear_history): New.
13766 (btrace_fetch): Read delta trace, return if replaying.
13767 (btrace_clear): Move clear history code to btrace_clear_history.
13768 (parse_xml_btrace): Throw an error if parsing failed.
13769 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13770 and return type to allow error reporting.
13771 (target_read_btrace): Change parameters and return type to allow
13772 error reporting.
13773 * target.c (target_read_btrace): Update.
13774 * remote.c (remote_read_btrace): Support delta reads. Pass
13775 errors on.
13776 * NEWS: Announce it.
13777
13778 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13779
13780 * record.h (record_btrace_frame_unwind)
13781 (record_btrace_tailcall_frame_unwind): New declarations.
13782 * dwarf2-frame: Include record.h
13783 (dwarf2_frame_cfa): Throw an error for btrace frames.
13784 * record-btrace.c: Include hashtab.h.
13785 (btrace_get_bfun_name): New.
13786 (btrace_call_history): Call btrace_get_bfun_name.
13787 (struct btrace_frame_cache): New.
13788 (bfcache): New.
13789 (bfcache_hash, bfcache_eq, bfcache_new): New.
13790 (btrace_get_frame_function): New.
13791 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13792 (record_btrace_frame_this_id): Compute own id.
13793 (record_btrace_frame_prev_register): Provide PC, throw_error
13794 for all other registers.
13795 (record_btrace_frame_sniffer): Detect btrace frames.
13796 (record_btrace_tailcall_frame_sniffer): New.
13797 (record_btrace_frame_dealloc_cache): New.
13798 (record_btrace_frame_unwind): Add new functions.
13799 (record_btrace_tailcall_frame_unwind): New.
13800 (_initialize_record_btrace): Allocate cache.
13801 * btrace.c (btrace_clear): Call reinit_frame_cache.
13802 * NEWS: Announce it.
13803
13804 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13805
13806 * record-btrace.c (record_btrace_set_replay)
13807 (record_btrace_goto_begin, record_btrace_goto_end)
13808 (record_btrace_goto): New.
13809 (init_record_btrace_ops): Initialize them.
13810 * NEWS: Announce it.
13811
13812 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13813
13814 * record-btrace.c (record_btrace_find_new_threads)
13815 (record_btrace_thread_alive): New.
13816 (init_record_btrace_ops): Initialize to_find_new_threads and
13817 to_thread_alive.
13818
13819 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13820
13821 * record-btrace.c (record_btrace_resume): New.
13822 (record_btrace_wait): New.
13823 (init_record_btrace_ops): Initialize to_wait and to_resume.
13824
13825 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13826
13827 * record-btrace.c (record_btrace_xfer_partial)
13828 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13829 (record_btrace_allow_memory_access): New.
13830 (init_record_btrace_ops): Initialize new methods.
13831 * target.c (raw_memory_xfer_partial): Bail out if target reports
13832 that this memory is not available.
13833
13834 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13835
13836 * target.h (target_ops) <to_insert_breakpoint>
13837 <to_remove_breakpoint>: Add target_ops parameter.
13838 (forward_target_insert_breakpoint): New.
13839 (forward_target_remove_breakpoint): New.
13840 (memory_remove_breakpoint, memory_insert_breakpoint):
13841 Add target_ops parameter.
13842 * target.c (target_insert_breakpoint): Split into this and ...
13843 (forward_target_insert_breakpoint): ... this.
13844 (target_remove_breakpoint): Split into this and ...
13845 (forward_target_remove_breakpoint): ... this.
13846 (debug_to_insert_breakpoint): Add target_ops parameter.
13847 Call forward_target_insert_breakpoint.
13848 (debug_to_remove_breakpoint): Add target_ops parameter.
13849 Call forward_target_remove_breakpoint.
13850 (update_current_target): Do not inherit or default to_insert_breakpoint
13851 and to_remove_breakpoint.
13852 * corelow.c (ignore): Add target_ops parameter.
13853 * exec.c (ignore): Add target_ops parameter.
13854 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13855 Add target_ops parameter.
13856 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13857 Add target_ops parameter.
13858 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13859 Add target_ops parameter.
13860 * record-full.c (record_full_beneath_to_insert_breakpoint)
13861 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13862 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13863 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13864 (record_full_core_remove_breakpoint): Add target_ops parameter.
13865 Update users.
13866 (record_full_beneath_to_insert_breakpoint_ops)
13867 (record_full_beneath_to_remove_breakpoint_ops)
13868 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13869 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13870 tmp_to_remove_breakpoint_ops,
13871 record_full_beneath_to_insert_breakpoint_ops, and
13872 record_full_beneath_to_remove_breakpoint_ops.
13873 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13874 (m32r_remove_breakpoint): Add target_ops parameter.
13875 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13876 Add target_ops parameter.
13877 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13878 Add target_ops parameter.
13879
13880 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13881 Markus Metzger <markus.t.metzger@intel.com>
13882
13883 * record-btrace.c: Include frame-unwind.h.
13884 (record_btrace_frame_unwind_stop_reason)
13885 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13886 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13887 New.
13888 (init_record_btrace_ops): Install it.
13889
13890 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13891
13892 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13893 get_prev_frame_1.
13894
13895 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13896
13897 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13898 earlier.
13899
13900 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13901
13902 * frame-unwind.c: Include target.h.
13903 (frame_unwind_try_unwinder): New function with code from ...
13904 (frame_unwind_find_by_frame): ... here. New variable
13905 unwinder_from_target, call also target_get_unwinder)
13906 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13907 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13908 * target.h (struct target_ops): New fields to_get_unwinder and
13909 to_get_tailcall_unwinder.
13910 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13911
13912 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13913
13914 * record-btrace.c (record_btrace_fetch_registers)
13915 (record_btrace_store_registers)
13916 (record_btrace_to_prepare_to_store): New.
13917 (init_record_btrace_ops): Add the above.
13918
13919 2014-01-16 Tom Tromey <tromey@redhat.com>
13920
13921 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13922 * target.h (struct target_ops) <to_prepare_to_store>: Add
13923 argument.
13924 (target_prepare_to_store): Add argument.
13925 * target.c (debug_to_prepare_to_store): Add argument.
13926 (update_current_target): Update.
13927 * remote.c (remote_prepare_to_store): Add 'self' argument.
13928 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13929 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13930 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13931 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13932 argument.
13933 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13934 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13935 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13936 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13937 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13938
13939 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13940
13941 * btrace.h (replay) <replay>: New.
13942 (btrace_is_replaying): New.
13943 * btrace.c (btrace_clear): Free replay iterator.
13944 (btrace_is_replaying): New.
13945 * record-btrace.c (record_btrace_is_replaying): New.
13946 (record_btrace_info): Print insn number if replaying.
13947 (record_btrace_insn_history): Start at replay position.
13948 (record_btrace_call_history): Start at replay position.
13949 (init_record_btrace_ops): Init to_record_is_replaying.
13950
13951 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13952
13953 * record-btrace.c (record_btrace_insn_history_range): Include
13954 end.
13955 (record_btrace_insn_history_from): Adjust range.
13956 (record_btrace_call_history_range): Include
13957 end.
13958 (record_btrace_call_history_from): Adjust range.
13959 * NEWS: Announce changes.
13960
13961 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13962
13963 * record.h (enum record_print_flag)
13964 <record_print_indent_calls>: New.
13965 * record.c (get_call_history_modifiers): Recognize /c modifier.
13966 (_initialize_record): Document /c modifier.
13967 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13968 Reorder fields. Optionally indent the function name. Update
13969 all users.
13970 * NEWS: Announce changes.
13971
13972 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13973
13974 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13975
13976 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13977
13978 * btrace.c (ftrace_new_function): Start counting at one.
13979 * record-btrace.c (record_btrace_info): Adjust number of calls
13980 and insns.
13981 * NEWS: Announce it.
13982
13983 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13984
13985 * record-btrace.c (btrace_call_history_insn_range): Print
13986 insn range as [begin, end].
13987
13988 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13989
13990 * btrace.h (struct btrace_func_link): New.
13991 (enum btrace_function_flag): New.
13992 (struct btrace_inst): Rename to ...
13993 (struct btrace_insn): ...this. Update all users.
13994 (struct btrace_func) <ibegin, iend>: Remove.
13995 (struct btrace_func_link): New.
13996 (struct btrace_func): Rename to ...
13997 (struct btrace_function): ...this. Update all users.
13998 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13999 (number, level, flags>: New.
14000 (struct btrace_insn_iterator): Rename to ...
14001 (struct btrace_insn_history): ...this.
14002 Update all users.
14003 (struct btrace_insn_iterator, btrace_call_iterator): New.
14004 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14005 (struct btrace_target_info) <begin, end, level>
14006 <insn_history, call_history>: New.
14007 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14008 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14009 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14010 (btrace_call_number, btrace_call_begin, btrace_call_end)
14011 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14012 (btrace_find_function_by_number, btrace_set_insn_history)
14013 (btrace_set_call_history): New.
14014 * btrace.c (btrace_init_insn_iterator)
14015 (btrace_init_func_iterator, compute_itrace): Remove.
14016 (ftrace_print_function_name, ftrace_print_filename)
14017 (ftrace_skip_file): Change
14018 parameter to const.
14019 (ftrace_init_func): Remove.
14020 (ftrace_debug): Use new btrace_function fields.
14021 (ftrace_function_switched): Also consider gaining and
14022 losing symbol information).
14023 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14024 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14025 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14026 New.
14027 (ftrace_new_function): Move. Remove debug print.
14028 (ftrace_update_lines, ftrace_update_insns): New.
14029 (ftrace_update_function): Check for call, ret, and jump.
14030 (compute_ftrace): Renamed to ...
14031 (btrace_compute_ftrace): ...this. Rewritten to compute call
14032 stack.
14033 (btrace_fetch, btrace_clear): Updated.
14034 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14035 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14036 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14037 (btrace_call_number, btrace_call_begin, btrace_call_end)
14038 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14039 (btrace_find_function_by_number, btrace_set_insn_history)
14040 (btrace_set_call_history): New.
14041 * record-btrace.c (require_btrace): Use new btrace thread
14042 info fields.
14043 (record_btrace_info, btrace_insn_history)
14044 (record_btrace_insn_history, record_btrace_insn_history_range):
14045 Use new btrace thread info fields and new iterator.
14046 (btrace_func_history_src_line): Rename to ...
14047 (btrace_call_history_src_line): ...this. Use new btrace
14048 thread info fields.
14049 (btrace_func_history): Rename to ...
14050 (btrace_call_history): ...this. Use new btrace thread info
14051 fields and new iterator.
14052 (record_btrace_call_history, record_btrace_call_history_range):
14053 Use new btrace thread info fields and new iterator.
14054
14055 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14056
14057 * frame.h (frame_id_build_unavailable_stack_special): New.
14058 * frame.c (frame_id_build_unavailable_stack_special): New.
14059
14060 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14061
14062 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14063 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14064 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14065 to gdbarch.
14066 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14067 (i386_insn_is_jump, i386_jmp_p): New.
14068 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14069 insn_is_jump to gdbarch.
14070 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14071 * gdbarch.h: Regenerated.
14072 * gdbarch.c: Regenerated.
14073 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14074 (default_insn_is_jump): New.
14075 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14076 (default_insn_is_jump): New.
14077
14078 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14079
14080 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14081 Change to ...
14082 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14083 (btrace_read_type) <btrace_read_new>: Change to ...
14084 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14085
14086 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14087
14088 * common/linux-btrace.c (linux_read_btrace): Free trace from
14089 previous iteration.
14090
14091 2014-01-15 Doug Evans <dje@google.com>
14092
14093 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14094 uint32_t.
14095
14096 2014-01-15 Tom Tromey <tromey@redhat.com>
14097
14098 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14099 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14100 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14101 (set_objfile_main_name): New function.
14102 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14103 language_of_main>: New fields.
14104 (set_objfile_main_name): Declare.
14105 * symtab.c (find_main_name): Loop over objfiles to find the main
14106 name and language.
14107 (set_main_name): Now static.
14108 (get_main_info): Add comment.
14109 * symtab.h (set_main_name): Don't declare.
14110
14111 2014-01-15 Tom Tromey <tromey@redhat.com>
14112
14113 * symtab.c (main_progspace_key): New global.
14114 (struct main_info): New.
14115 (name_of_main, language_of_main): Remove.
14116 (get_main_info, main_info_cleanup): New function.
14117 (set_main_name, main_name, main_language): Use get_main_info.
14118 (_initialize_symtab): Initialize main_progspace_key.
14119
14120 2014-01-15 Tom Tromey <tromey@redhat.com>
14121
14122 * dbxread.c (process_one_symbol): Update.
14123 * dwarf2read.c (read_partial_die): Update.
14124 * symfile.c (set_initial_language): Call main_language.
14125 * symtab.c (language_of_main): Now static.
14126 (set_main_name): Add 'lang' parameter.
14127 (find_main_name): Update.
14128 (main_language): New function.
14129 (symtab_observer_executable_changed): Update.
14130 * symtab.h (set_main_name): Update.
14131 (language_of_main): Remove.
14132 (main_language): Declare.
14133
14134 2014-01-15 Tom Tromey <tromey@redhat.com>
14135
14136 * symfile.c (init_entry_point_info): Use new "initialized" field.
14137 Update.
14138 * objfiles.h (struct entry_point) <initialized>: New field.
14139 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14140 (struct objfile) <ei>: ...here. Remove.
14141 * objfiles.c (entry_point_address_query): Update.
14142
14143 2014-01-15 Tom Tromey <tromey@redhat.com>
14144
14145 * objfiles.c (entry_point_address_query): Relocate entry point
14146 address.
14147 (objfile_relocate1): Do not relocate entry point address.
14148 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14149 <the_bfd_section_index>: New field.
14150 * symfile.c (init_entry_point_info): Find the entry point's
14151 section.
14152
14153 2014-01-15 Tom Tromey <tromey@redhat.com>
14154
14155 * solib-frv.c (enable_break): Use entry_point_address_query.
14156
14157 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14158
14159 * NEWS: Add note on improved process record-replay on
14160 arm*-linux* targets.
14161
14162 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14163
14164 * arm-tdep.c (enum arm_record_result): New enum.
14165 (arm_record_unsupported_insn): New function.
14166 (arm_record_coproc_data_proc): Removed.
14167 (thumb2_record_ld_st_multiple): New function.
14168 (thumb2_record_ld_st_dual_ex_tbb): New function.
14169 (thumb2_record_data_proc_sreg_mimm): New function.
14170 (thumb2_record_ps_dest_generic): New function.
14171 (thumb2_record_branch_misc_cntrl): New function.
14172 (thumb2_record_str_single_data): New function.
14173 (thumb2_record_ld_mem_hints): New function.
14174 (thumb2_record_ld_word): New function.
14175 (thumb2_record_lmul_lmla_div): New function.
14176 (thumb2_record_decode_insn_handler): New function.
14177 (decode_insn): Add thumb32 instruction handlers.
14178
14179 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14180
14181 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14182 (struct arm_linux_record_tdep): Declare.
14183 (arm_canonicalize_syscall): New function.
14184 (arm_all_but_pc_registers_record): New function.
14185 (arm_linux_syscall_record): New function.
14186 (arm_linux_init_abi): Add syscall recording constructs.
14187 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14188 decoding. (arm_record_coproc_data_proc): Update arm syscall
14189 decoding.
14190 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14191 <arm_syscall_record>: New field.
14192 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14193 gdb_target_obs.
14194
14195 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14196
14197 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14198 register for push instruction recording.
14199
14200 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14201
14202 * arm-tdep.c (thumb_record_misc): Update to correct logical
14203 error while recording ldm, ldmia and pop instructions.
14204
14205 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14206
14207 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14208
14209 2014-01-15 Pedro Alves <palves@redhat.com>
14210
14211 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14212 (go32_resume, go32_fetch_registers, store_register)
14213 (go32_store_registers, go32_prepare_to_store)
14214 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14215 (go32_create_inferior, go32_can_run, go32_terminal_init)
14216 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14217 declarations.
14218
14219 2014-01-15 Tom Tromey <tromey@redhat.com>
14220
14221 * target.h (async_callback_ftype): New typedef.
14222 (struct target_ops) <to_async>: Use it.
14223
14224 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14225
14226 * python/py-value.c (get_field_type): Remove unnecessary curly
14227 braces for single-statement if block.
14228
14229 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14230
14231 * python/py-type.c (convert_field): Add missing empty line
14232 after declarations.
14233
14234 2014-01-14 Doug Evans <dje@google.com>
14235
14236 * symfile.h (expand_symtabs_matching): Renamed from
14237 expand_partial_symbol_names. Update prototype.
14238 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14239 * symfile.c (expand_symtabs_matching): Renamed from
14240 expand_partial_symbol_names. New args file_matcher, kind.
14241 Rename arg fun to symbol_matcher.
14242 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14243 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14244 ada_expand_partial_symbol_name.
14245 (ada_make_symbol_completion_list): Update to call
14246 expand_symtabs_matching.
14247 (ada_add_global_exceptions): Call expand_symtabs_matching.
14248 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14249 call map_symbol_filenames.
14250 * symtab.c (sources_info): Update to call map_symbol_filenames.
14251 (search_symbols): Call expand_symtabs_matching.
14252 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14253 (default_make_symbol_completion_list_break_on): Update to call
14254 expand_symtabs_matching.
14255 (make_source_files_completion_list): Update to call
14256 map_symbol_filenames.
14257
14258 2014-01-14 Doug Evans <dje@google.com>
14259
14260 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14261 (expand_symtabs_symbol_matcher_ftype): New typedef.
14262 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14263 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14264 * symfile.c (expand_partial_symbol_names): Update to use
14265 expand_symtabs_symbol_matcher_ftype.
14266 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14267 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14268 Arg name_matcher renamed to symbol_matcher.
14269 * psymtab.c (recursively_search_psymtabs): Update to use
14270 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14271 sym_matcher.
14272 (expand_symtabs_matching_via_partial): Update to use
14273 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14274 Arg name_matcher renamed to symbol_matcher.
14275
14276 2014-01-14 Doug Evans <dje@google.com>
14277
14278 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14279 (map_partial_symbol_filenames): Ditto.
14280 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14281 (map_partial_symbol_filenames): Ditto.
14282 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14283 (map_partial_symbol_filenames): Ditto.
14284 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14285 (map_partial_symbol_filenames): Ditto.
14286 * symtab.c: Delete #include "psymtab.h".
14287
14288 2014-01-14 Pedro Alves <palves@redhat.com>
14289 Tom Tromey <tromey@redhat.com>
14290
14291 * infrun.c (use_displaced_stepping): Use find_record_target
14292 instead of RECORD_IS_USED.
14293 (adjust_pc_after_break): Use record_full_is_used instead of
14294 RECORD_IS_USED.
14295 * record-btrace.c (record_btrace_open): Call record_preopen
14296 instead of checking RECORD_IS_USED.
14297 * record-full.c (record_full_shortname)
14298 (record_full_core_shortname): New globals.
14299 (record_full_is_used): New function.
14300 (find_full_open): Call record_preopen instead of checking
14301 RECORD_IS_USED.
14302 (init_record_full_ops): Set the target's shortname to
14303 record_full_shortname.
14304 (init_record_full_core_ops): Set the target's shortname to
14305 record_full_core_shortname.
14306 * record-full.h (record_full_is_used): Declare.
14307 * record.c (find_record_target): Make extern.
14308 (record_preopen): New function.
14309 * record.h (RECORD_IS_USED): Delete macro.
14310 (find_record_target, record_preopen): Declare functions.
14311
14312 2014-01-14 Yao Qi <yao@codesourcery.com>
14313
14314 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14315 'len''s type to ULONGEST.
14316 (core_xfer_shared_libraries_aix): Likewise.
14317 * gdbarch.c, gdbarch.h: Regenerated.
14318 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14319 Change type of 'len' to ULONGEST.
14320 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14321 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14322
14323 2014-01-14 Yao Qi <yao@codesourcery.com>
14324
14325 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14326 type of 'len' to ULONGEST.
14327 (linux_xfer_osdata_processgroups): Likewise.
14328 (linux_xfer_osdata_threads): Likewise.
14329 (linux_xfer_osdata_fds): Likewise.
14330 (linux_xfer_osdata_isockets): Likewise.
14331 (linux_xfer_osdata_shm): Likewise.
14332 (linux_xfer_osdata_sem): Likewise.
14333 (linux_xfer_osdata_msg): Likewise.
14334 (linux_common_xfer_osdata): Likewise.
14335 (struct osdata_type) <getter>: Likewise.
14336 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14337 the declaration.
14338
14339 2014-01-14 Yao Qi <yao@codesourcery.com>
14340
14341 * target.h (target_xfer_partial_ftype): Update.
14342 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14343 ULONGEST.
14344 * aix-thread.c (aix_thread_xfer_partial): Change type of
14345 argument 'len' to ULONGEST.
14346 * auxv.c (procfs_xfer_auxv): Likewise.
14347 (ld_so_xfer_auxv): Likewise.
14348 (memory_xfer_auxv): Likewise.
14349 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14350 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14351 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14352 * corelow.c (core_xfer_partial): Likewise.
14353 * ctf.c (ctf_xfer_partial): Likewise.
14354 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14355 '%u'.
14356 (darwin_read_dyld_info): Likewise.
14357 (darwin_xfer_partial): Likewise.
14358 * exec.c (section_table_xfer_memory_partial): Likewise.
14359 (exec_xfer_partial): Likewise.
14360 * exec.h (section_table_xfer_memory_partial): Update
14361 declaration.
14362 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14363 instead of plongest.
14364 (gnu_xfer_partial): Likewise.
14365 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14366 (ia64_hpux_xfer_solib_got): Likewise.
14367 (ia64_hpux_xfer_partial): Likewise.
14368 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14369 * inf-ptrace.c (inf_ptrace_xfer_partial):
14370 * inf-ttrace.c (inf_ttrace_xfer_partial):
14371 * linux-nat.c (linux_xfer_siginfo): Likewise.
14372 (linux_nat_xfer_partial): Likewise.
14373 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14374 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14375 * monitor.c (monitor_xfer_memory): Likewise.
14376 (monitor_xfer_partial): Likewise.
14377 * procfs.c (procfs_xfer_partial): Likewise.
14378 * record-full.c (record_full_xfer_partial): Likewise.
14379 (record_full_core_xfer_partial): Likewise.
14380 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14381 instead of plongest.
14382 (gdbsim_xfer_partial): Likewise.
14383 * remote.c (remote_xfer_partial): Likewise.
14384 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14385 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14386 declaration.
14387 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14388 (rs6000_xfer_shared_libraries): Likewise.
14389 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14390 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14391 (sparc_xfer_partial): Likewise.
14392 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14393 (spu_xfer_partial): Likewise.
14394 * spu-multiarch.c (spu_xfer_partial): Likewise.
14395 * target.c (target_read_live_memory): Likewise.
14396 (memory_xfer_live_readonly_partial): Likewise.
14397 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14398 (target_xfer_partial, default_xfer_partial): Likewise.
14399 (current_xfer_partial): Likewise.
14400 * tracepoint.c (tfile_xfer_partial): Likewise.
14401 * windows-nat.c (windows_xfer_memory): Likewise. Call
14402 pulongest instead of plongest.
14403 (windows_xfer_partial): Likewise.
14404 (windows_xfer_shared_libraries): Likewise.
14405
14406 2014-01-14 Yao Qi <yao@codesourcery.com>
14407
14408 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14409 target_xfer_partial_ftype.
14410
14411 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14412
14413 PR python/15464
14414 PR python/16113
14415 * valops.c (value_struct_elt_bitpos): New function
14416 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14417 object to 'None' if the field name is an empty string ("").
14418 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14419 attribute to look for a field when 'name' is 'None'.
14420 (get_field_type): New function
14421
14422 2014-01-13 Doug Evans <dje@google.com>
14423
14424 PR symtab/16426
14425 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14426 (try_open_dwop_file): Ditto.
14427 * gdb_bfd.c: #include "vec.h".
14428 (bfdp): New typedef.
14429 (struct gdb_bfd_data): New member included_bfds.
14430 (gdb_bfd_unref): Unref all included bfds.
14431 (gdb_bfd_record_inclusion): New function.
14432 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14433
14434 2014-01-13 Tom Tromey <tromey@redhat.com>
14435
14436 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14437
14438 2014-01-13 Tom Tromey <tromey@redhat.com>
14439
14440 * defs.h (use_windows): Remove.
14441 * gdb.c (main): Update.
14442 * main.c (captured_main, gdb_main): Update.
14443 * main.h (struct captured_main_args) <use_windows>: Remove.
14444 * top.c (use_windows): Remove.
14445
14446 2014-01-13 Tom Tromey <tromey@redhat.com>
14447
14448 * defs.h (deprecated_flush_hook): Remove.
14449
14450 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14451
14452 PR threads/16216
14453 * linux-thread-db.c (try_thread_db_load): Add parameter
14454 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14455 (try_thread_db_load_from_pdir_1): Move it there from here.
14456 (try_thread_db_load_from_sdir): Update caller.
14457 (try_thread_db_load_from_dir): Move it there from here.
14458
14459 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14460
14461 * regformats/regdat.sh: Always rewrite the register file.
14462
14463 2014-01-13 Pedro Alves <palves@redhat.com>
14464
14465 * Makefile.in (CHECK_HEADERS): New variable.
14466 (check-headers:): New rule.
14467
14468 2014-01-13 Tom Tromey <tromey@redhat.com>
14469
14470 * cli/cli-setshow.c (do_set_command): Update.
14471 * defs.h (deprecated_set_hook): Remove.
14472 * top.c (deprecated_set_hook): Remove.
14473
14474 2014-01-13 Pedro Alves <palves@redhat.com>
14475
14476 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14477 the tracepoint if the PC is a pseudo-register.
14478
14479 2014-01-13 Tom Tromey <tromey@redhat.com>
14480
14481 * defs.h (XCALLOC): Remove.
14482 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14483 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14484 * dwarf2loc.c (allocate_piece_closure): Likewise.
14485 * elfread.c (elf_symfile_segments): Likewise.
14486 (elf_symfile_segments): Likewise.
14487 * gdbtypes.c (copy_type_recursive): Likewise.
14488 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14489 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14490 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14491 XCALLOC.
14492 * mt-tdep.c (mt_gdbarch_init): Likewise.
14493 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14494 XCALLOC.
14495 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14496 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14497 * registry.c (registry_alloc_data): Likewise.
14498 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14499 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14500 * serial.c (serial_fdopen_ops): Likewise.
14501 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14502 XCALLOC.
14503 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14504 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14505 not XCALLOC.
14506
14507 2014-01-13 Tom Tromey <tromey@redhat.com>
14508
14509 * defs.h (XMALLOC): Remove.
14510 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14511 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14512 * cli-out.c (struct ui_out *): Likewise.
14513 * cli/cli-dump.c (add_dump_command): Likewise.
14514 (add_dump_command): Likewise.
14515 * complaints.c (get_complaints): Likewise.
14516 (find_complaint): Likewise.
14517 * dwarf2-frame.c (execute_cfa_program): Likewise.
14518 * dwarf2read.c (abbrev_table_read_table): Likewise.
14519 * gdbarch.sh: Likewise.
14520 * gdbarch.c: Rebuild.
14521 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14522 * interps.c (interp_new): Likewise.
14523 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14524 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14525 * mi/mi-console.c (mi_console_file_new): Likewise.
14526 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14527 * mi/mi-out.c (mi_out_new): Likewise.
14528 * mi/mi-parse.c (mi_parse): Likewise.
14529 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14530 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14531 * observer.c (xalloc_observer_list_node): Likewise.
14532 * regcache.c (regcache_xmalloc_1): Likewise.
14533 * reggroups.c (reggroup_new): Likewise.
14534 (_initialize_reggroup): Likewise.
14535 * registry.c (register_data_with_cleanup): Likewise.
14536 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14537 * ser-base.c (serial_ttystate): Likewise.
14538 * ser-mingw.c (make_pipe_state): Likewise.
14539 * ser-pipe.c (pipe_open): Likewise.
14540 * serial.c (serial_open): Likewise.
14541 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14542 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14543 (tui_alloc_win_info): Likewise.
14544 (tui_add_content_elements): Likewise.
14545 * tui/tui-file.c (tui_file_new): Likewise.
14546 * tui/tui-out.c (tui_out_new): Likewise.
14547 * ui-file.c (mem_file_new): Likewise.
14548 * ui-out.c (push_level): Likewise.
14549 (make_cleanup_ui_out_end): Likewise.
14550 (append_header_to_list): Likewise.
14551 (ui_out_new): Likewise.
14552 * user-regs.c (user_reg_add_builtin): Likewise.
14553
14554 2014-01-13 Tom Tromey <tromey@redhat.com>
14555
14556 * defs.h (XZALLOC): Remove.
14557 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14558 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14559 (get_ada_tasks_inferior_data): Likewise.
14560 * auto-load.c (get_auto_load_pspace_data): Likewise.
14561 * auxv.c (get_auxv_inferior_data): Likewise.
14562 * bfd-target.c (target_bfd_reopen): Likewise.
14563 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14564 (deprecated_insert_raw_breakpoint): Likewise.
14565 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14566 * corelow.c (core_open): Likewise.
14567 * darwin-nat.c (darwin_check_new_threads): Likewise.
14568 (darwin_attach_pid): Likewise.
14569 * dummy-frame.c (dummy_frame_push): Likewise.
14570 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14571 * dwarf2loc.c (allocate_piece_closure): Likewise.
14572 * elfread.c (elf_symfile_segments): Likewise.
14573 * eval.c (ptrmath_type_p): Likewise.
14574 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14575 * gdbtypes.c (alloc_type_arch): Likewise.
14576 (alloc_type_instance): Likewise.
14577 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14578 * inf-child.c (inf_child_can_use_agent): Likewise.
14579 * inflow.c (get_inflow_inferior_data): Likewise.
14580 * infrun.c (save_infcall_suspend_state): Likewise.
14581 * jit.c (jit_reader_load): Likewise.
14582 (get_jit_objfile_data): Likewise.
14583 (get_jit_program_space_data): Likewise.
14584 (jit_object_open_impl): Likewise.
14585 (jit_symtab_open_impl): Likewise.
14586 (jit_block_open_impl): Likewise.
14587 (jit_frame_sniffer): Likewise.
14588 * linux-fork.c (add_fork): Likewise.
14589 * maint.c (make_command_stats_cleanup): Likewise.
14590 * objfiles.c (get_objfile_pspace_data): Likewise.
14591 * opencl-lang.c (struct lval_closure): Likewise.
14592 * osdata.c (osdata_start_osdata): Likewise.
14593 * progspace.c (new_address_space): Likewise.
14594 (add_program_space): Likewise.
14595 * remote-sim.c (get_sim_inferior_data): Likewise.
14596 * sh-tdep.c (sh_gdbarch_init): Likewise.
14597 * skip.c (Ignore): Likewise.
14598 (skip_delete_command): Likewise.
14599 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14600 (library_list_start_library): Likewise.
14601 (solib_aix_current_sos): Likewise.
14602 * solib-darwin.c (get_darwin_info): Likewise.
14603 (darwin_current_sos): Likewise.
14604 * solib-dsbt.c (get_dsbt_info): Likewise.
14605 * solib-ia64-hpux.c (new_so_list): Likewise.
14606 (ia64_hpux_get_solib_linkage_addr): Likewise.
14607 * solib-spu.c (append_ocl_sos): Likewise.
14608 (spu_current_sos): Likewise.
14609 * solib-svr4.c (get_svr4_info): Likewise.
14610 (svr4_keep_data_in_core): Likewise.
14611 (library_list_start_library): Likewise.
14612 (svr4_default_sos): Likewise.
14613 (svr4_read_so_list): Likewise.
14614 * solib-target.c (library_list_start_library): Likewise.
14615 (solib_target_current_sos): Likewise.
14616 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14617 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14618 * symfile.c (default_symfile_segments): Likewise.
14619 * target-descriptions.c (tdesc_data_init): Likewise.
14620 (tdesc_create_reg): Likewise.
14621 (struct tdesc_type *): Likewise.
14622 (tdesc_create_vector): Likewise.
14623 (tdesc_set_struct_size): Likewise.
14624 (struct tdesc_type *): Likewise.
14625 (tdesc_free_feature): Likewise.
14626 (tdesc_create_feature): Likewise.
14627 * windows-nat.c (windows_add_thread): Likewise.
14628 (windows_make_so): Likewise.
14629 * xml-support.c (gdb_xml_body_text): Likewise.
14630 (gdb_xml_create_parser_and_cleanup): Likewise.
14631 (xml_process_xincludes): Likewise.
14632 * xml-syscall.c (allocate_syscalls_info): Likewise.
14633 (syscall_create_syscall_desc): Likewise.
14634
14635 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14636
14637 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14638 function, with code from i386_stap_parse_special_token.
14639 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14640 (i386_stap_parse_special_token): Move code to the two functions
14641 above; simplify it.
14642
14643 2014-01-09 Pedro Alves <palves@redhat.com>
14644 Hui Zhu <hui@codesourcery.com>
14645
14646 PR gdb/16101
14647 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14648 bp_err_string. Don't mark the location shlib_disabled if the
14649 error thrown wasn't a generic or memory error. Catch errors
14650 thrown while inserting breakpoints in overlayed code. Output
14651 error message of software breakpoints.
14652 * remote.c (remote_insert_breakpoint): If this breakpoint has
14653 target-side commands but this stub doesn't support Z0 packets,
14654 throw NOT_SUPPORTED_ERROR error.
14655 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14656 * target.h (target_insert_breakpoint): Extend comment.
14657 (target_insert_hw_breakpoint): Add comment.
14658
14659 2014-01-08 Pedro Alves <palves@redhat.com>
14660
14661 * remote.c (remote_add_thread): Add threads silently if starting
14662 up.
14663 (remote_notice_new_inferior): If in all-stop, and starting up,
14664 don't call notice_new_inferior.
14665 (get_current_thread): New function, factored out from ...
14666 (add_current_inferior_and_thread): ... this. Adjust.
14667 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14668 found any thread, then select the remote's current thread as GDB's
14669 current thread too.
14670
14671 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14672
14673 * NEWS: Create a new section for the next release branch.
14674 Rename the section of the current branch, now that it has
14675 been cut.
14676
14677 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14678
14679 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14680 * version.in: Bump version to 7.7.50.DATE-cvs.
14681
14682 2014-01-08 Yao Qi <yao@codesourcery.com>
14683
14684 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14685 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14686 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14687
14688 2014-01-08 Yao Qi <yao@codesourcery.com>
14689
14690 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14691 return value of bfd_get_filename to symbol_file_add_from_bfd.
14692
14693 2014-01-08 Pierre Muller <muller@sourceware.org>
14694
14695 Fix PR16201.
14696 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14697 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14698 to prim_record_mininal_symbol_and_info.
14699 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14700 in call to prim_record_minimal_symbol_and_info.
14701 (read_pe_exported_syms): Set index field of section_data.
14702
14703 2014-01-07 Andrew Pinski <apinski@cavium.com>
14704
14705 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14706 * features/aarch64.c: Regenerate.
14707
14708 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14709
14710 * target.c (return_null): Define.
14711 (update_current_target): Use it instead of return_zero for
14712 functions that return a pointer.
14713
14714 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14715
14716 * source.c (add_path): Fix check for duplicated paths in the previously
14717 included paths.
14718
14719 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14720
14721 * ada-lang.c: Remove duplicated include statements.
14722 * alphabsd-nat.c: Ditto.
14723 * amd64-darwin-tdep.c: Ditto.
14724 * amd64fbsd-nat.c: Ditto.
14725 * auto-load.c: Ditto.
14726 * ax-gdb.c: Ditto.
14727 * breakpoint.c: Ditto.
14728 * dbxread.c: Ditto.
14729 * fork-child.c: Ditto.
14730 * gdb_usleep.c: Ditto.
14731 * i386-darwin-tdep.c: Ditto.
14732 * i386fbsd-nat.c: Ditto.
14733 * infcmd.c: Ditto.
14734 * inferior.c: Ditto.
14735 * jv-lang.c: Ditto.
14736 * linux-nat.c: Ditto.
14737 * linux-tdep.c: Ditto.
14738 * m68kbsd-nat.c: Ditto.
14739 * m68klinux-nat.c: Ditto.
14740 * microblaze-tdep.c: Ditto.
14741 * mips-linux-tdep.c: Ditto.
14742 * mn10300-tdep.c: Ditto.
14743 * nto-tdep.c: Ditto.
14744 * opencl-lang.c: Ditto.
14745 * osdata.c: Ditto.
14746 * printcmd.c: Ditto.
14747 * regcache.c: Ditto.
14748 * remote-m32r-sdi.c: Ditto.
14749 * remote.c: Ditto.
14750 * symfile.c: Ditto.
14751 * symtab.c: Ditto.
14752 * tilegx-linux-nat.c: Ditto.
14753 * tilegx-tdep.c: Ditto.
14754 * tracepoint.c: Ditto.
14755 * valops.c: Ditto.
14756 * vaxbsd-nat.c: Ditto.
14757 * windows-nat.c: Ditto.
14758 * xtensa-tdep.c: Ditto.
14759
14760 2014-01-07 Yao Qi <yao@codesourcery.com>
14761
14762 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14763
14764 2014-01-07 Yao Qi <yao@codesourcery.com>
14765 Joel Brobecker <brobecker@adacore.com>
14766
14767 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14768 (pdc_write_regs): Likewise.
14769 (fetch_regs_kernel_thread): Likewise.
14770 (store_regs_kernel_thread): Likewise.
14771
14772 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14773
14774 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14775 tagged type objects to their actual type.
14776
14777 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14778
14779 * ada-valprint.c (print_field_values): Add "language" parameter.
14780 Update calls to print_field_values and print_variant_part.
14781 Pass new parameter "language" in call to val_print instead
14782 of "current_language". Replace call to ada_val_print by call
14783 to val_print.
14784 (print_variant_part): Add "language" parameter.
14785 (ada_val_print_struct_union): Update call to print_field_values.
14786
14787 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14788
14789 * ada-valprint.c (ui_memcpy): Delete.
14790 (ada_print_floating): Update documentation. Add empty line
14791 between between function documentation and implementation.
14792 Delete variable "buffer". Use ui_file_xstrdup in place of
14793 ui_file_put. Minor adjustments following this change.
14794
14795 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14796
14797 * ada-valprint.c (ada_val_print_string): New function,
14798 extracted from ada_val_print_array.
14799 (ada_val_print_array): Replace extracted code by call
14800 to ada_val_print_string followed by a return. Move
14801 "else" branch to the function's top block.
14802
14803 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14804
14805 * ada-valprint.c (ada_val_print_array): Move implementation
14806 down. Rename parameter "offset" and "val" into "offset_aligned"
14807 and "original_value" respectively. Add parameter "offset".
14808
14809 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14810
14811 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14812 re-organizing the code. Change the "???" message printed
14813 when target type is a TYPE_CODE_UNDEF into
14814 "<ref to undefined type>".
14815
14816 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14817
14818 * ada-valprint.c (print_record): Delete, implementation inlined...
14819 (ada_val_print_struct_union): ... here. Remove call to
14820 ada_check_typedef in inlined implementation.
14821
14822 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14823
14824 * ada-valprint.c (ada_val_print_gnat_array): New function,
14825 extracted from ada_val_print_1;
14826 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14827 (ada_val_print_flt, ada_val_print_struct_union)
14828 (ada_val_print_ref): Likewise.
14829 (ada_val_print_1): Delete variables i and elttype.
14830 Replace extracted-out code by call to corresponding
14831 new functions.
14832
14833 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14834
14835 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14836
14837 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14838
14839 * ada-valprint.c (ada_val_print_1): Replace calls to
14840 ada_val_print_1 by calls to val_print.
14841
14842 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14843
14844 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14845 Update calls to self accordingly. Replace calls to c_val_print
14846 by calls to val_print.
14847
14848 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14849
14850 * ada-valprint.c (print_record): Delete declaration.
14851 (adjust_type_signedness, ada_val_print_1): Likewise.
14852 (ada_val_print): Move function implementation down.
14853 (print_variant_part, print_field_values, print_record):
14854 Move function implementation up.
14855
14856 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14857
14858 * python/py-type.c (typy_get_name): New function.
14859 (type_object_getset): Add entry for attribute "name".
14860 * NEWS: Add entry mentioning this new attribute.
14861
14862 2014-01-07 Yao Qi <yao@codesourcery.com>
14863
14864 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14865 statement.
14866
14867 2014-01-07 Yao Qi <yao@codesourcery.com>
14868
14869 * gnu-nat.c (info_port_rights): Add qualifier const to
14870 argument args.
14871
14872 2014-01-07 Yao Qi <yao@codesourcery.com>
14873
14874 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14875
14876 2014-01-07 Yao Qi <yao@codesourcery.com>
14877
14878 * gnu-nat.c (make_inf) Update declaration.
14879 (make_inf): Make it static.
14880 (inf_set_traced): Likewise.
14881 (inf_port_to_thread, inf_task_died_status): Likewise.
14882
14883 2014-01-07 Yao Qi <yao@codesourcery.com>
14884
14885 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14886
14887 2014-01-07 Yao Qi <yao@codesourcery.com>
14888
14889 * gnu-nat.c (_initialize_gnu_nat): Declare.
14890
14891 2014-01-07 Yao Qi <yao@codesourcery.com>
14892
14893 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14894 'enum bfd_endian'.
14895 (struct gdbarch_info) <byte_order>: Change type to
14896 'enum bfd_endian'.
14897 <byte_order_for_code>: Likewise.
14898 * gdbarch.c, gdbarch.h: Regenerated.
14899
14900 2014-01-06 Sasha Smundak <asmundak@google.com>
14901
14902 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14903
14904 2014-01-06 Tom Tromey <tromey@redhat.com>
14905
14906 * doublest.c (convert_doublest_to_floatformat): Use const, not
14907 CONST.
14908 * somread.c (som_symtab_read): Likewise.
14909
14910 2014-01-07 Hui Zhu <hui@codesourcery.com>
14911
14912 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14913 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14914 (gdb_bfd_fopen): Ditto.
14915 (gdb_bfd_openr): Ditto.
14916 (gdb_bfd_openw): Ditto.
14917 (gdb_bfd_openr_iovec): Ditto.
14918 (gdb_bfd_fdopenr): Ditto.
14919 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14920 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14921 with xstrdup.
14922 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14923 with xstrdup.
14924 * symfile-mem.c (symbol_file_add_from_memory): Removed
14925 gdb_bfd_stash_filename.
14926
14927 2014-01-03 Doug Evans <dje@google.com>
14928
14929 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14930 output.
14931
14932 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14933
14934 Update year range in copyright notice of all files.
14935
14936 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14937
14938 * top.c (print_gdb_version): Set copyright year to 2014.
14939
14940 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14941
14942 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14943
14944 For older changes see ChangeLog-2013.
14945 \f
14946 Local Variables:
14947 mode: change-log
14948 left-margin: 8
14949 fill-column: 74
14950 version-control: never
14951 coding: utf-8
14952 End:
This page took 0.316704 seconds and 3 git commands to generate.