Add missing parenthesis
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1ada499f
YQ
12014-11-15 Yao Qi <yao@codesourcery.com>
2
3 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
4
355e2102
JB
52014-11-14 Joel Brobecker <brobecker@adacore.com>
6
7 * common/common-defs.h: Move <stdarg.h> #include ahead of
8 <stdio.h> #include.
9
83030110
PA
102014-11-14 Pedro Alves <palves@redhat.com>
11
12 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
13 [!PHONY_ICONV] (gdb_iconv): New function.
14 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
15
a8719064
DE
162014-11-13 Doug Evans <dje@google.com>
17
18 PR symtab/17591
19 * dwarf2read.c (find_slot_in_mapped_hash): Handle
20 "(anonymous namespace)".
21
60f7655a
DE
222014-11-13 Doug Evans <dje@google.com>
23
24 * dwarf2read.c (update_enumeration_type_from_children): Avoid
25 infinite loop.
26
5784b3ca
JK
272014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
28
29 * NEWS (maint set target-async): Fix typo.
30
6218dc4b
PA
312014-11-12 Pedro Alves <palves@redhat.com>
32
33 * infrun.c (enum infwait_states, infwait_state): Delete.
34
af48d08f
PA
352014-11-12 Pedro Alves <palves@redhat.com>
36
37 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
38 Rewrite stepping over a permanent breakpoint.
39 (thread_still_needs_step_over, proceed): Don't set
40 stepping_over_breakpoint for permanent breakpoints.
41 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
42 single-step breakpoints out of the target on hardware step
43 targets.
44 (process_event_stop_test): If stepping a permanent breakpoint
45 doesn't hit the step-resume breakpoint, delete the step-resume
46 breakpoint.
47 (switch_back_to_stepped_thread): Also check if the stepped thread
48 has advanced already on hardware step targets.
49 (currently_stepping): Return true if the thread stepped a
50 breakpoint.
51
1a853c52
PA
522014-11-12 Pedro Alves <palves@redhat.com>
53
54 Mark locations as permanent, not the whole breakpoint.
55 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
56 (mark_breakpoints_out): Don't mark permanent breakpoints as
57 uninserted.
58 (breakpoint_init_inferior): Use mark_breakpoints_out.
59 (breakpoint_here_p): Adjust.
60 (bpstat_stop_status, describe_other_breakpoints): Remove handling
61 of permanent breakpoints.
62 (make_breakpoint_permanent): Mark each location as permanent,
63 instead of marking the breakpoint.
64 (add_location_to_breakpoint): If the location is permanent, mark
65 it as such, and as inserted.
66 (init_breakpoint_sal): Don't make the breakpoint permanent here.
67 (bp_location_compare, update_global_location_list): Adjust.
68 (update_breakpoint_locations): Don't make the breakpoint permanent
69 here.
70 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
71 breakpoints.
72 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
73 (struct bp_location) <permanent>: New field.
74 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
75 reference to bp_permanent.
76
ae9bb220
PA
772014-11-12 Pedro Alves <palves@redhat.com>
78
79 * arch-utils.c (default_skip_permanent_breakpoint): New function.
80 * arch-utils.h (default_skip_permanent_breakpoint): New
81 declaration.
82 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
83 Install default_skip_permanent_breakpoint as default method.
84 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
85 (i386_gdbarch_init): Don't install it.
86 * infrun.c (resume): Assume there's always a
87 gdbarch_skip_permanent_breakpoint implementation.
88 * gdbarch.h, gdbarch.c: Regenerate.
89
015de688
DC
902014-11-11 Daniel Colascione <dancol@dancol.org>
91
92 Warn about cross-PID-namespace debugging.
93 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
94 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
95 * linux-thread-db.c (check_pid_namespace_match): New function.
96 (thread_db_inferior_created): Call it.
97
26a84859
DE
982014-11-10 Doug Evans <xdje42@gmail.com>
99
100 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
101 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
102
712a2e6d
DE
1032014-11-10 Doug Evans <xdje42@gmail.com>
104
105 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
106
af3768e9
DE
1072014-11-10 Doug Evans <xdje42@gmail.com>
108
109 PR symtab/17564
110 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
111 (lookup_static_symbol): Move definition to new location and rewrite.
112 (lookup_symbol_in_objfile): New function.
113 (lookup_symbol_global_iterator_cb): Call it.
114
b1f28d99
UW
1152014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
116
117 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
118
b7a084be
PA
1192014-11-07 Pedro Alves <palves@redhat.com>
120
121 * infrun.c (process_event_stop_test) <subroutine check>: Don't
122 check if we did a "nexti" inside a prologue.
123 * symtab.c (in_prologue): Delete function.
124 * symtab.h (in_prologue): Delete declaration.
125
67be31e5
DE
1262014-11-06 Doug Evans <xdje42@gmail.com>
127
128 * symtab.h (lookup_global_symbol): Improve function comment.
129
08724ab7
DE
1302014-11-06 Doug Evans <xdje42@gmail.com>
131
132 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
133 All callers updated.
134 * symtab.h (lookup_global_symbol): Update decl.
135 (lookup_static_symbol): Move decl to better location.
136
d9060ba6
DE
1372014-11-06 Doug Evans <xdje42@gmail.com>
138
139 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
140
74016e12
DE
1412014-11-06 Doug Evans <xdje42@gmail.com>
142
143 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
144 All callers updated.
145 (lookup_symbol_in_all_objfiles): Renamed from
146 lookup_symbol_aux_symtabs. All callers updated.
147 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
148 All callers updated.
149 (lookup_symbol_in_objfile_symtabs): Renamed from
150 lookup_symbol_aux_objfile. All callers updated.
151
d1a2d36d
DE
1522014-11-06 Doug Evans <xdje42@gmail.com>
153
154 * symtab.c (lookup_symbol_in_block): Renamed from
155 lookup_symbol_aux_block. All callers updated.
156
24d864bb
DE
1572014-11-06 Doug Evans <xdje42@gmail.com>
158
159 * symtab.c (lookup_static_symbol): Renamed from
160 lookup_static_symbol_aux. All callers updated.
161 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
162 All callers updated.
163
358d6ab3
DE
1642014-11-06 Doug Evans <xdje42@gmail.com>
165
166 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
167 * block.c (block_lookup_symbol): Use it.
168 * cp-support.c (make_symbol_overload_list_block): Use it.
169 * symtab.c (iterate_over_symbols): Use it.
170
16b2eaa1
DE
1712014-11-06 Doug Evans <xdje42@gmail.com>
172
173 * symtab.c (lookup_block_symbol): Moved to ...
174 * block.c (block_lookup_symbol): ... here and renamed.
175 All callers updated.
176 * block.h (block_lookup_symbol): Declare.
177 * symtab.h (lookup_block_symbol): Delete.
178
2dd2cd1c
DE
1792014-11-06 Doug Evans <xdje42@gmail.com>
180
181 * ada-lang.c (ada_make_symbol_completion_list): Use
182 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
183 * symtab.c (lookup_objfile_from_block): Ditto.
184
d4c58915
DE
1852014-11-06 Doug Evans <xdje42@gmail.com>
186
187 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
188 TYPE_CODE_STRUCT.
189
9c1877ea
DE
1902014-11-06 Doug Evans <xdje42@gmail.com>
191
192 * objfiles.c (get_objfile_arch): Constify.
193 * objfiles.h (get_objfile_arch): Update prototype.
194 * solib.c (solib_global_lookup): Fetch arch from objfile,
195 not target_gdbarch.
196
426a4079
SL
1972014-11-06 Sandra Loosemore <sandra@codesourcery.com>
198
199 * nios2-tdep.c (wild_insn): Delete.
200 (profiler_insn, irqentry_insn): Delete.
201 (nios2_match_sequence): Delete.
202 (nios2_analyze_prologue): Update comments. Remove matching
203 of obsolete profiler_insn and irqentry_insn sequences.
204
ee11262d
AM
2052014-11-05 Alan Modra <amodra@gmail.com>
206
207 * charset.c (convert_between_encodings): Shrink obstack using
208 obstack_blank_fast.
209 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
210 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
211 to char* before doing pointer arithmetic.
ee11262d 212
c87e6d00
SM
2132014-11-04 Simon Marchi <simon.marchi@ericsson.com>
214
215 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
216
441ef17f
PA
2172014-11-04 Pedro Alves <palves@redhat.com>
218
219 * breakpoint.c (breakpoint_thread_match): Delete function.
220 * breakpoint.h (breakpoint_thread_match): Delete declaration.
221
e0f52461
SC
2222014-11-03 Siva Chandra Reddy <sivachandra@google.com>
223
224 PR c++/17494
225 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
226 the method args also under EVAL_SKIP when evaluating method
227 calls under EVAL_SKIP.
228
a0b4d890
YQ
2292014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
230
231 * dwarf2loc.c (read_pieced_value): Do big endian
232 processing only if gdb_regnum is not -1.
233 (write_pieced_value): Ditto.
234
2352014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
236
237 * arm-linux-tdep.c (arm_linux_init_abi): Use
238 info.byte_order_for_code to choose endianity of breakpoint
239 instructions snippets.
240
2412014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
242
243 * arm-tdep.c (extract_arm_insn): Use
244 gdbarch_byte_order_for_code to read arm instruction.
245
e82149ff
DE
2462014-11-02 Doug Evans <xdje42@gmail.com>
247
248 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
249
d7ee84f1
DE
2502014-11-02 Doug Evans <xdje42@gmail.com>
251
252 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
253 main_subfile before returning.
254
4f072d17
DE
2552014-10-31 Doug Evans <xdje42@gmail.com>
256
257 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
258 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
259
8301c89e
DE
2602014-10-31 Doug Evans <xdje42@gmail.com>
261
262 * valops.c (value_cast_pointers): Fix whitespace.
263 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
264 Ditto.
265
02be9a71
DE
2662014-10-30 Doug Evans <dje@google.com>
267
268 * NEWS: Mention ability add attributes to gdb.Objfile and
269 gdb.Progspace objects.
270 * python/py-objfile.c (objfile_object): New member dict.
271 (objfpy_dealloc): Py_XDECREF dict.
272 (objfpy_initialize): Initialize dict.
273 (objfile_getset): Add __dict__.
274 (objfile_object_type): Set tp_dictoffset member.
275 * python/py-progspace.c (progspace_object): New member dict.
276 (pspy_dealloc): Py_XDECREF dict.
277 (pspy_initialize): Initialize dict.
278 (pspace_getset): Add __dict__.
279 (pspace_object_type): Set tp_dictoffset member.
280
6427bef6
YQ
2812014-10-30 Yao Qi <yao@codesourcery.com>
282
283 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
284 replace '\\' with '\\\\'.
285
f60325be
JB
2862014-10-29 Joel Brobecker <brobecker@adacore.com>
287
288 GDB 7.8.1 released.
289
ab917dfb
PA
2902014-10-29 Pedro Alves <palves@redhat.com>
291
292 PR gdb/17408
293 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
294 instead of assuming a thread with a stepping range is always
295 stepping.
296
d3d4baed
PA
2972014-10-29 Pedro Alves <palves@redhat.com>
298
299 PR python/17372
300 * event-top.c (change_line_handler): Call
301 gdb_rl_callback_handler_remove instead of
302 rl_callback_handler_remove.
303 (callback_handler_installed): New global.
304 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
305 (gdb_rl_callback_handler_reinstall): New functions.
306 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
307 gdb_rl_callback_handler_install instead of
308 rl_callback_handler_remove and rl_callback_handler_install.
309 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
310 instead of rl_callback_handler_remove.
311 * event-top.h (gdb_rl_callback_handler_remove)
312 (gdb_rl_callback_handler_install)
313 (gdb_rl_callback_handler_reinstall): New declarations.
314 * infrun.c (reinstall_readline_callback_handler_cleanup): New
315 cleanup function.
316 (fetch_inferior_event): Install it.
317 * top.c (gdb_readline_wrapper_line) Call
318 gdb_rl_callback_handler_remove instead of
319 rl_callback_handler_remove.
320 (gdb_readline_wrapper_cleanup): Don't call
321 rl_callback_handler_install.
322
6e5d7f39
PA
3232014-10-29 Pedro Alves <palves@redhat.com>
324
325 * event-top.c (command_line_handler): Clear the first byte of
326 linebuffer, when it is first allocated.
327
551cb6a5
PA
3282014-10-29 Pedro Alves <palves@redhat.com>
329
330 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
331 TRY_CATCH.
332
1e1e619b
PA
3332014-10-29 Pedro Alves <palves@redhat.com>
334
335 PR tui/16138
336 PR tui/17519
337 * tui/tui-interp.c (tui_is_toplevel): Delete global.
338 (tui_allowed_p): Delete function.
339 * tui/tui.c: Include "interps.h".
340 (tui_enable): Don't use tui_allowed_p. Error out here with
341 detailed error messages if the TUI is the top level interpreter,
342 or if output is not a terminal. Use newterm instead of initscr,
343 and error out if initializing the terminal fails. Also error out if
344 the terminal doesn't support cursor addressing.
345 * tui/tui.h (tui_allowed_p): Delete declaration.
346
6041179a
JB
3472014-10-29 Joel Brobecker <brobecker@adacore.com>
348
349 * arm-tdep.c (arm_skip_stack_protector): Return early if
350 address loaded by first "ldr" instruction does not have
351 a corresponding minimal symbol. Update comment.
352
6ae274b7
YQ
3532014-10-29 Yao Qi <yao@codesourcery.com>
354
355 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
356 loaded address correctly of ldr instruction.
357
7f5ef605
PA
3582014-10-28 Pedro Alves <palves@redhat.com>
359
360 PR gdb/12623
361 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
362 field.
363 * infrun.c (resume) <stepping breakpoint instruction>: Set the
364 thread's stepped_breakpoint field. Skip if reverse debugging.
365 Add comment.
366 (init_thread_stepping_state, handle_signal_stop): Clear the
367 thread's stepped_breakpoint field.
368
7d1a114c
PA
3692014-10-27 Pedro Alves <palves@redhat.com>
370
371 * remote.c (remote_thread_alive): New, factored out from ...
372 (remote_thread_alive): ... this.
373 (remote_update_thread_list): Bail out before deleting threads if
374 the target returned an empty list, and, the current thread has a
375 magic/fake ptid.
376
e5f8a7cc
PA
3772014-10-27 Pedro Alves <palves@redhat.com>
378
379 * infrun.c (handle_signal_stop): Also skip handlers when a random
380 signal arrives while handling a "stepi" or a "nexti". Set the
381 thread's 'step_after_step_resume_breakpoint' flag.
382
71e396f9
LM
3832014-10-27 Luis Machado <lgustavo@codesourcery.com>
384
385 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
386 (arm_record_ld_st_imm_offset): Reimplement to cover all
387 load/store cases for ARM opcode 010.
388 (arm_record_ld_st_multiple): Reimplement to cover all
389 load/store cases for ARM opcode 100.
390
3aee438b
DE
3912014-10-26 Doug Evans <xdje42@gmail.com>
392
393 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
394
f88cb4b6
DE
3952014-10-26 Doug Evans <xdje42@gmail.com>
396
397 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
398 parameter "kind" to "block_index".
399 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
400 "block_index".
401 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
402
a023a30f
DE
4032014-10-26 Doug Evans <xdje42@gmail.com>
404
405 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
406
4c35218e
DE
4072014-10-26 Doug Evans <xdje42@gmail.com>
408
409 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
410 obstack_alloc.
411
f08e8df3
DE
4122014-10-26 Doug Evans <xdje42@gmail.com>
413
414 * parser-defs.h (block_found): Move decl from here ...
415 * symtab.h (block_found): ... to here.
416
cf901d3b
DE
4172014-10-26 Doug Evans <xdje42@gmail.com>
418
419 * symtab.h (struct field_of_this_result): Fix typo in comment.
420 (lookup_symbol_in_language): Move function comment here.
421 (lookup_symbol): Improve function comment.
422 (basic_lookup_symbol_nonlocal): Ditto.
423 (lookup_symbol_static, lookup_symbol_global): Ditto.
424 (lookup_symbol_aux_block): Ditto.
425 (lookup_language_this): Add function comment.
426 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
427 function comment.
428 (lookup_block_symbol): Improve function comment.
429 (lookup_struct): Fix capitalization in function comment.
430 (lookup_transparent_type): Add function comment.
431 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
432 Improve function comment.
433 (lookup_objfile_from_block): Add function comment.
434 * symtab.c (lookup_symbol_in_language): Update function comment.
435 (lookup_symbol, lookup_language_this): Ditto.
436 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
437 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
438 (basic_lookup_symbol_nonlocal): Ditto.
439 (lookup_symbol_static, lookup_symbol_global): Ditto.
440 (lookup_transparent_type, lookup_block_symbol): Ditto.
441
ff6c39cf
DE
4422014-10-25 Doug Evans <xdje42@gmail.com>
443
444 * symtab.c (types_info): Delete forward decl.
445 (functions_info, variables_info, sources_info): Ditto.
446 (_initialize_symtab): Rewrite forward decl to use
447 initialize_file_ftype.
448
ec201f0c
DE
4492014-10-25 Doug Evans <xdje42@gmail.com>
450
451 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
452
ca040673
DE
4532014-10-25 Doug Evans <xdje42@gmail.com>
454
455 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
456 of local var child_die.
457
6f259a23
DB
4582014-10-24 Don Breazeal <donb@codesourcery.com>
459
460 * infrun.c (follow_fork_inferior): Update fork message printing
461 to use target_terminal_ours_for_output instead of
462 target_terminal_ours, to use _() for all format strings, to print
463 "vfork" instead of "fork" for vforks, and to add a detach message.
464 (handle_vfork_child_exec_or_exit): Update message printing to use
465 target_terminal_ours_for_output instead of target_terminal_ours, to
466 use _() for all format strings, and to fix some formatting.
467
09dd9a69
PA
4682014-10-24 Pedro Alves <palves@redhat.com>
469
470 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
471 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
472 * config/vax/vax.mh: Delete.
473 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
474 obsolete configurations section.
475 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
476 * vax-nat.c: Delete file.
477
5ab806de
PA
4782014-10-24 Pedro Alves <palves@redhat.com>
479
480 * NEWS (Removed targets): Add OS/arch column.
481
3433cfa5
SC
4822014-10-24 Siva Chandra Reddy <sivachandra@google.com>
483
484 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
485 on the arg type of a constructor only if it is of reference type.
486
96ba4233
SL
4872014-10-23 Sandra Loosemore <sandra@codesourcery.com>
488
489 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
490 accessors and constants from nios2 opcodes update.
491 (nios2_get_next_pc): Likewise.
492
28153fd3
DE
4932014-10-19 Doug Evans <xdje42@gmail.com>
494
495 * gdbthread.h (set_running): Fix comment.
496 (set_executing, finish_thread_state): Fix comment.
497
fc9b8e47
DE
4982014-10-18 Doug Evans <xdje42@gmail.com>
499
500 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
501
4ffbba72
DE
5022014-10-17 Doug Evans <dje@google.com>
503
504 * NEWS: Mention new event gdb.clear_objfiles.
505 * python/py-event.h (emit_clear_objfiles_event): Clear
506 * python/py-events.h (events_object): New member clear_objfiles.
507 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
508 event.
509 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
510 emit clear_objfiles event.
511 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
512 function.
513 (emit_clear_objfiles_event): New function.
514 (clear_objfiles): New event.
515 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
516 Declare.
517 * python/python.c (_initialize_python): Call
518 gdbpy_initialize_clear_objfiles_event.
519
d096d8c1
DE
5202014-10-17 Doug Evans <dje@google.com>
521
522 * NEWS: Mention new gdb.Objfile.progspace attribute.
523 * python/py-objfile.c (objfpy_get_progspace): New function.
524 (objfile_getset): New entry for "progspace".
525
6c4486e6
PA
5262014-10-17 Pedro Alves <palves@redhat.com>
527
528 PR gdb/17471
529 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
530 returns a copy of the input.
531 (run_command_1, continue_command, step_1, jump_command)
532 (signal_command, until_command, advance_command, finish_command)
533 (attach_command): Adjust and install a cleanup to free the
534 stripped args.
535
0ff33695
PA
5362014-10-17 Pedro Alves <palves@redhat.com>
537
538 PR gdb/17300
539 * infcmd.c (continue_1): If continuing all threads in the
540 foreground, make sure the inferior's terminal settings are put in
541 effect.
542
6fdebc3d
PA
5432014-10-17 Pedro Alves <palves@redhat.com>
544
545 PR gdb/17472
546 * annotate.c (annotate_breakpoints_invalid): Use
547 target_terminal_our_for_output instead of target_terminal_ours.
548 Give back the terminal to the target.
549 (annotate_frames_invalid): Likewise.
550
5842f62a
PA
5512014-10-17 Pedro Alves <palves@redhat.com>
552
553 * target.c (enum terminal_state): New enum.
554 (terminal_state): New global.
555 (target_terminal_init): New function.
556 (target_terminal_inferior): Skip if inferior already owns the
557 terminal.
558 (target_terminal_ours, target_terminal_ours_for_output): New
559 functions.
560 * target.h (target_terminal_init): Convert to function prototype.
561 (target_terminal_ours_for_output): Convert to function prototype
562 and tweak comment.
563 (target_terminal_ours): Convert to function prototype and tweak
564 comment.
565 * windows-nat.c (do_initial_windows_stuff): Call
566 target_terminal_init instead of child_terminal_init_with_pgrp.
567
32a8097b
PA
5682014-10-17 Pedro Alves <palves@redhat.com>
569
570 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
571 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
572 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
573 solib-osf.c.
574 * NEWS: Mention that support for alpha*-*-osf* has been removed.
575 * ada-lang.h [__alpha__ && __osf__]
576 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
577 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
578 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
579 GDB_OSABI_OSF1.
580 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
581 files.
582 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
583 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
584 * configure: Regenerate.
585 * configure.ac: Remove references to osf.
586 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
587 section. Remove all other references to osf.
588 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
589 Remove all other references to osf.
590 * dec-thread.c: Delete file.
591 * defs.h (GDB_OSABI_OSF1): Delete.
592 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
593 defined.
594 * osabi.c (gdb_osabi_names): Delete "OSF/1".
595 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
596 Delete code.
597 (unconditionally_kill_inferior)
598 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
599 * solib-osf.c: Delete file.
600
80134cf5
PA
6012014-10-17 Pedro Alves <palves@redhat.com>
602
603 * remote.c (clear_threads_listing_context): Move higher up, out of
604 the HAVE_LIBEXPAT guard.
605
89c7137f
TG
6062014-10-16 Tristan Gingold <gingold@adacore.com>
607
608 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
609 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
610 on amd64.
611
44ee4a52
PA
6122014-10-15 Pedro Alves <palves@redhat.com>
613
614 * dec-thread.c (dec_thread_count_gdb_threads)
615 (dec_thread_add_gdb_thread): Delete.
616 (dec_thread_update_thread_list): Delete.
617 (dec_thread_find_new_threads): Rename to ...
618 (dec_thread_update_thread_list): ... this. Delete GDB-size
619 threads that are no longer found in dec_thread_list.
620 (resync_thread_list): Delete.
621 (dec_thread_wait): Call dec_thread_update_thread_list instead of
622 resync_thread_list.
623
ab970af1
PA
6242014-10-15 Pedro Alves <palves@redhat.com>
625
626 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
627 * remote.c (remote_update_thread_list): Skip calling prune_threads
628 if any thread listing method is supported, and instead walk over
629 the set of remote threads listed, deleting those that are not
630 found in GDB's thread list.
631
e8032dde
PA
6322014-10-15 Pedro Alves <palves@redhat.com>
633
634 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
635 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
636 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
637 (bsd_uthread_target): Adjust.
638 * corelow.c (core_open): Adjust.
639 * dec-thread.c (dec_thread_find_new_threads): Update comment.
640 (dec_thread_update_thread_list): New function.
641 (init_dec_thread_ops): Adjust.
642 * gdbthread.h (prune_threads): New declaration.
643 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
644 (thread_db_update_thread_list): ... this. Call prune_threads.
645 (init_thread_db_ops): Adjust.
646 * nto-procfs.c (procfs_find_new_threads): Rename to ...
647 (procfs_update_thread_list): ... this. Call prune_threads.
648 (procfs_attach, procfs_create_inferior, init_procfs_targets):
649 Adjust.
650 * obsd-nat.c (obsd_find_new_threads): Rename to ...
651 (obsd_update_thread_list): ... this. Call prune_threads.
652 (obsd_add_target): Adjust.
653 * procfs.c (procfs_target): Adjust.
654 (procfs_notice_thread): Update comment.
655 (procfs_find_new_threads): Rename to ...
656 (procfs_update_thread_list): ... this. Call prune_threads.
657 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
658 comment.
659 (ravenscar_wait): Adjust.
660 (ravenscar_find_new_threads): Rename to ...
661 (ravenscar_update_thread_list): ... this. Call prune_threads.
662 (init_ravenscar_thread_ops): Adjust.
663 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
664 (record_btrace_update_thread_list): ... this. Adjust comment.
665 (init_record_btrace_ops): Adjust.
666 * remote.c (remote_threads_info): Rename to ...
667 (remote_update_thread_list): ... this. Call prune_threads.
668 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
669 Adjust.
670 * sol-thread.c (check_for_thread_db): Adjust.
671 (sol_find_new_threads_callback): Rename to ...
672 (sol_update_thread_list_callback): ... this.
673 (sol_find_new_threads): Rename to ...
674 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
675 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
676 * target-delegates.c: Regenerate.
677 * target.c (target_find_new_threads): Rename to ...
678 (target_update_thread_list): ... this.
679 * target.h (struct target_ops): Rename to_find_new_threads field
680 to to_update_thread_list.
681 (target_find_new_threads): Rename to ...
682 (target_update_thread_list): ... this.
683 * thread.c (prune_threads): Make extern.
684 (update_thread_list): Adjust.
685
6dc54d91
PA
6862014-10-15 Pedro Alves <palves@redhat.com>
687
688 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
689 Add describing comment. Return -1 if the qL packet is not
690 supported.
691 (struct thread_item, thread_item_t): Move higher up in
692 the file. Add comments.
693 (struct threads_parsing_context): Move higher up in
694 the file, add comments, and remote to ...
695 (struct threads_listing_context): ... this.
696 (remote_newthread_step): Don't add the thread to GDB's thread
697 database here. Instead push it to the thread_listing_context
698 list.
699 (remote_find_new_threads): Rename to ...
700 (remote_get_threads_with_ql): ... this. Add target_ops and
701 targets_listing_context parameters. Pass down context.
702 (start_thread): Adjust.
703 (clear_threads_parsing_context): Rename to ...
704 (clear_threads_listing_context): ... this.
705 (remote_get_threads_with_qxfer): New, with parts salvaged from old
706 remote_threads_info.
707 (remote_get_threads_with_qthreadinfo): Ditto.
708 (remote_threads_info): Reimplement.
709
36728e82
PA
7102014-10-15 Pedro Alves <palves@redhat.com>
711
712 * infrun.c (resume): Don't force displaced-stepping for all
713 single-steps on software single-stepping archs.
714
34b7e8a6
PA
7152014-10-15 Pedro Alves <palves@redhat.com>
716
717 * breakpoint.c (single_step_breakpoints): Delete global.
718 (insert_single_step_breakpoint): Adjust to store the breakpoint
719 pointer in the current thread.
720 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
721 (cancel_single_step_breakpoints): Delete functions.
722 (breakpoint_has_location_inserted_here): Make extern.
723 (single_step_breakpoint_inserted_here_p): Adjust to walk the
724 breakpoint list.
725 * breakpoint.h (breakpoint_has_location_inserted_here): New
726 declaration.
727 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
728 (cancel_single_step_breakpoints): Remove declarations.
729 * gdbthread.h (struct thread_control_state)
730 <single_step_breakpoints>: New field.
731 (delete_single_step_breakpoints)
732 (thread_has_single_step_breakpoints_set)
733 (thread_has_single_step_breakpoint_here): New declarations.
734 * infrun.c (follow_exec): Also clear the single-step breakpoints.
735 (singlestep_breakpoints_inserted_p, singlestep_ptid)
736 (singlestep_pc): Delete globals.
737 (infrun_thread_ptid_changed): Remove references to removed
738 globals.
739 (resume_cleanups): Delete the current thread's single-step
740 breakpoints.
741 (maybe_software_singlestep): Remove references to removed globals.
742 (resume): Adjust to use thread_has_single_step_breakpoints_set and
743 delete_single_step_breakpoints.
744 (init_wait_for_inferior): Remove references to removed globals.
745 (delete_thread_infrun_breakpoints): Delete the thread's
746 single-step breakpoints too.
747 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
748 single-step breakpoints here.
749 (delete_stopped_threads_single_step_breakpoints): New function.
750 (adjust_pc_after_break): Adjust to use
751 thread_has_single_step_breakpoints_set.
752 (handle_inferior_event): Remove references to removed globals.
753 Use delete_stopped_threads_single_step_breakpoints.
754 (handle_signal_stop): Adjust to per-thread single-step
755 breakpoints. Swap test order to do cheaper tests first.
756 (switch_back_to_stepped_thread): Extend debug output. Remove
757 references to removed globals.
758 * record-full.c (record_full_wait_1): Adjust to per-thread
759 single-step breakpoints.
760 * thread.c (delete_single_step_breakpoints)
761 (thread_has_single_step_breakpoints_set)
762 (thread_has_single_step_breakpoint_here): New functions.
763 (clear_thread_inferior_resources): Also delete the thread's
764 single-step breakpoints.
765
5b834a0a
PA
7662014-10-15 Pedro Alves <palves@redhat.com>
767
768 * thread.c (delete_thread_breakpoint): New function.
769 (delete_step_resume_breakpoint)
770 (delete_exception_resume_breakpoint): Use it.
771 (delete_at_next_stop): New function.
772 (clear_thread_inferior_resources): Use delete_at_next_stop.
773
a1fd2fa5
PA
7742014-10-15 Pedro Alves <palves@redhat.com>
775
776 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
777 (breakpoint_inserted_here_p): ... here. Remove special case for
778 software single-step breakpoints.
779 (find_non_raw_software_breakpoint_inserted_here): Inline ...
780 (software_breakpoint_inserted_here_p): ... here. Remove special
781 case for software single-step breakpoints.
782 (bp_target_info_copy_insertion_state)
783 (deprecated_insert_raw_breakpoint)
784 (deprecated_remove_raw_breakpoint): Delete functions.
785 * breakpoint.h (deprecated_insert_raw_breakpoint)
786 (deprecated_remove_raw_breakpoint): Remove declarations.
787
7c16b83e
PA
7882014-10-15 Pedro Alves <palves@redhat.com>
789
790 PR breakpoints/9649
791 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
792 Delete array globals.
793 (single_step_breakpoints): New global.
794 (breakpoint_xfer_memory): Remove special handling for single-step
795 breakpoints.
796 (update_breakpoints_after_exec): Delete bp_single_step
797 breakpoints.
798 (detach_breakpoints): Remove special handling for single-step
799 breakpoints.
800 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
801 (bpstat_stop_status): Add comment.
802 (bpstat_what, bptype_string, print_one_breakpoint_location)
803 (adjust_breakpoint_address, init_bp_location): Handle
804 bp_single_step.
805 (new_single_step_breakpoint): New function.
806 (set_momentary_breakpoint, bkpt_remove_location): Remove special
807 handling for single-step breakpoints.
808 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
809 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
810 Rewrite.
811 (detach_single_step_breakpoints, find_single_step_breakpoint):
812 Delete functions.
813 (breakpoint_has_location_inserted_here): New function.
814 (single_step_breakpoint_inserted_here_p): Rewrite.
815 * breakpoint.h: Remove FIXME.
816 (enum bptype) <bp_single_step>: New enum value.
817 (insert_single_step_breakpoint): Update comment.
818 * infrun.c (resume_cleanups)
819 (delete_step_thread_step_resume_breakpoint): Remove single-step
820 breakpoints.
821 (fetch_inferior_event): Install a cleanup that removes infrun
822 breakpoints.
823 (switch_back_to_stepped_thread) <expect thread advanced also>:
824 Clear step-over info.
825
0cbcdb96
PA
8262014-10-15 Pedro Alves <palves@redhat.com>
827
828 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
829 (delete_thread_infrun_breakpoints): New function, with parts
830 salvaged from delete_step_resume_breakpoint_callback.
831 (delete_step_thread_step_resume_breakpoint): Delete.
832 (for_each_just_stopped_thread_callback_func): New typedef.
833 (for_each_just_stopped_thread): New function.
834 (delete_just_stopped_threads_infrun_breakpoints): New function.
835 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
836 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
837 ... this. Adjust.
838 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
839
963f9c80
PA
8402014-10-15 Pedro Alves <palves@redhat.com>
841
842 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
843 trying to step past a non-steppable watchpoint.
844 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
845 field.
846 * infrun.c (struct step_over_info): Add new field
847 'nonsteppable_watchpoint_p' and adjust comments.
848 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
849 Adjust.
850 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
851 (stepping_past_nonsteppable_watchpoint): New function.
852 (step_over_info_valid_p): Also return true if stepping past a
853 nonsteppable watchpoint.
854 (proceed): Adjust call to set_step_over_info. Remove reference to
855 init_infwait_state.
856 (init_wait_for_inferior): Remove reference to init_infwait_state.
857 (waiton_ptid): Delete global.
858 (struct execution_control_state)
859 <stepped_after_stopped_by_watchpoint>: Delete field.
860 (wait_for_inferior, fetch_inferior_event): Always pass
861 minus_one_ptid to target_wait.
862 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
863 field.
864 (init_infwait_state): Delete function.
865 (handle_inferior_event): Remove infwait_state handling.
866 (handle_signal_stop) <watchpoints handling>: Adjust after
867 stepped_after_stopped_by_watchpoint removal. Don't remove
868 breakpoints here nor set infwait_state. Set the thread's
869 stepping_over_watchpoint flag, and call keep_going instead.
870 (keep_going): Handle stepping_over_watchpoint. Adjust
871 set_step_over_info calls.
872 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
873 function.
874
6cc83d2a
PA
8752014-10-15 Pedro Alves <palves@redhat.com>
876
877 * infrun.c (step_over_info_valid_p): New function.
878 (resume): Use step_over_info_valid_p instead of checking the
879 threads's trap_expected flag.
880
6979730b
DE
8812014-10-15 Doug Evans <dje@google.com>
882 Walfred Tedeschi <walfred.tedeschi@intel.com>
883
884 PR python/17364
885 * python/lib/gdb/__init__.py (packages): Add "printer".
886 * python/lib/gdb/command/bound_registers.py: Moved to ...
887 * python/lib/gdb/printer/bound_registers.py: ... here.
888 Add printer to global set of builtin printers. Rename printer from
889 "bound" to "mpx_bound128".
890 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
891 registered as global "builtin" printer.
892 (add_builtin_pretty_printer): New function.
893 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
894 gdb/printer/__init__.py.
895
35a49624
IB
8962014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
897
898 * Makefile.in (SFILES): Remove d-support.c.
899 (COMMON_OBS): Remove d-support.o.
900 * d-lang.h (d_parse_symbol): Remove declaration.
901 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
902 * d-support.c: Remove file.
903
8fa0c4f8
AA
9042014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
905
906 * gdb/infrun.c (process_event_stop_test): Apply
907 gdbarch_addr_bits_remove to longjmp resume address.
908
3666da81
PA
9092014-10-15 Pedro Alves <palves@redhat.com>
910
911 * regformats/microblaze.dat: Delete file.
912
449aa9df
AKA
9132014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
914
915 * features/Makefile (microblaze-expedite): Replace pc with rpc.
916 * regformats/microblaze-with-stack-protect.dat: Regenerate.
917
ebb8ece2
SC
9182014-10-15 Siva Chandra Reddy <sivachandra@google.com>
919
920 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
921 as non-trivial.
922
82c48ac7
SC
9232014-10-15 Siva Chandra Reddy <sivachandra@google.com>
924
925 PR c++/13403
926 PR c++/15154
927 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
928 with qualified args.
929
c40cc657
JB
9302014-10-14 Joel Brobecker <brobecker@adacore.com>
931
932 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
933 of the case where the second operand is a pointer.
934 <BINOP_SUB>: Likewise.
935
0ea5cda8
SDJ
9362014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
937
938 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
939 only if it is not NULL.
940 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
941 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
942 (struct probe_ops) <clear_semaphore>: Likewise.
943 * tracepoint.c (start_tracing): Call set_semaphore only if it is
944 not NULL.
945 (stop_tracing): Likewise, for clear_semaphore.
946
f7088df3
SDJ
9472014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
948
949 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
950 using language_c, instead of current_language.
951
4e1bbde0
DE
9522014-10-13 Doug Evans <dje@google.com>
953
6ff5a0f6 954 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 955 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 956 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
957 (pspy_new, pspace_to_pspace_object): Call it.
958
c780cc2f
JK
9592014-10-13 Miroslav Franc <mfranc@redhat.com>
960 Jan Kratochvil <jan.kratochvil@redhat.com>
961
962 Fix "save breakpoints" for "catch" command.
963 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
964 newline.
965
99894e11
JK
9662014-10-12 Miroslav Franc <mfranc@redhat.com>
967
968 Fix "save breakpoints" for "disable $bpnum" command.
969 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
970
3831839c
PA
9712014-10-10 Pedro Alves <palves@redhat.com>
972
973 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
974 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
975 (HFILES_NO_SRCDIR): Remove solib-irix.h.
976 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
977 and been removed.
978 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
979 * configure.ac: Remove references to IRIX.
980 * configure.host: Add *-*-irix* to the obsolete hosts section.
981 Remove all other references to irix.
982 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
983 Delete files.
984
cc3afae2
AKA
9852014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
986
987 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
988 isn't valid, release the tdesc arch data and return NULL.
989
cdfa0b0a
PA
9902014-10-10 Pedro Alves <palves@redhat.com>
991
992 * linux-tdep.c: Include observer.h.
993 (linux_inferior_data): New global.
994 (struct linux_info): New structure.
995 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
996 (get_linux_inferior_data): New functions.
997 (linux_vsyscall_range): Rename to ...
998 (linux_vsyscall_range_raw): ... this.
999 (linux_vsyscall_range): New function; handles caching.
1000 (_initialize_linux_tdep): Register linux_inferior_data. Install
1001 inferior_exit and inferior_appeared observers.
1002
8b9a549d
PA
10032014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1004 Pedro Alves <palves@redhat.com>
1005
1006 PR symtab/14466
1007 * solib-svr4.c (svr4_read_so_list): Rename to ...
1008 (svr4_current_sos_1): ... this and change the function comment.
1009 (svr4_current_sos): New function.
1010
3437254d
PA
10112014-10-10 Pedro Alves <palves@redhat.com>
1012
1013 * arch-utils.c (default_vsyscall_range): New function.
1014 * arch-utils.h (default_vsyscall_range): New declaration.
1015 * gdbarch.sh (vsyscall_range): New hook.
1016 * gdbarch.h, gdbarch.c: Regenerate.
1017 * linux-tdep.c (linux_vsyscall_range): New function.
1018 (linux_init_abi): Install linux_vsyscall_range as
1019 vsyscall_range gdbarch hook.
1020 * memrange.c (address_in_mem_range): New function.
1021 * memrange.h (address_in_mem_range): New declaration.
1022 * symfile-mem.c (find_vdso_size): Delete function.
1023 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1024
31cc0b80
PA
10252014-10-10 Pedro Alves <palves@redhat.com>
1026
1027 * infrun.c (normal_stop): Fix typo in comment.
1028
3e3286a2
SDJ
10292014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1030
1031 PR tdep/9390
1032 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1033 typo when using logical AND to determine instruction type.
1034
fcbdedf8
YQ
10352014-10-09 Yao Qi <yao@codesourcery.com>
1036
1037 * infrun.c (handle_signal_stop): Remove local variable
1038 'printed'.
1039
db984616
SS
10402014-10-08 Stan Shebs <stan@codesourcery.com>
1041
1042 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1043
3ba37e6c
GB
10442014-10-08 Gary Benson <gbenson@redhat.com>
1045
1046 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1047
a442d071
GB
10482014-10-08 Gary Benson <gbenson@redhat.com>
1049
1050 * common/common-defs.h: Include common-exceptions.h.
1051 * exceptions.h: Do not include common-exceptions.h.
1052
6f1947e8
GB
10532014-10-08 Gary Benson <gbenson@redhat.com>
1054
1055 * common/common-defs.h: Include cleanups.h.
1056 * common/common-exceptions.c: Do not include cleanups.h.
1057 * utils.h: Likewise.
1058
c765fdb9
GB
10592014-10-08 Gary Benson <gbenson@redhat.com>
1060
1061 * ada-lang.c: Do not include exceptions.h.
1062 * ada-valprint.c: Likewise.
1063 * amd64-tdep.c: Likewise.
1064 * auto-load.c: Likewise.
1065 * block.c: Likewise.
1066 * break-catch-throw.c: Likewise.
1067 * breakpoint.c: Likewise.
1068 * btrace.c: Likewise.
1069 * c-lang.c: Likewise.
1070 * cli/cli-cmds.c: Likewise.
1071 * cli/cli-interp.c: Likewise.
1072 * cli/cli-script.c: Likewise.
1073 * completer.c: Likewise.
1074 * corefile.c: Likewise.
1075 * corelow.c: Likewise.
1076 * cp-abi.c: Likewise.
1077 * cp-support.c: Likewise.
1078 * cp-valprint.c: Likewise.
1079 * darwin-nat.c: Likewise.
1080 * dwarf2-frame-tailcall.c: Likewise.
1081 * dwarf2-frame.c: Likewise.
1082 * dwarf2loc.c: Likewise.
1083 * dwarf2read.c: Likewise.
1084 * eval.c: Likewise.
1085 * event-loop.c: Likewise.
1086 * event-top.c: Likewise.
1087 * f-valprint.c: Likewise.
1088 * frame-unwind.c: Likewise.
1089 * frame.c: Likewise.
1090 * gdbtypes.c: Likewise.
1091 * gnu-v2-abi.c: Likewise.
1092 * gnu-v3-abi.c: Likewise.
1093 * guile/scm-auto-load.c: Likewise.
1094 * guile/scm-breakpoint.c: Likewise.
1095 * guile/scm-cmd.c: Likewise.
1096 * guile/scm-frame.c: Likewise.
1097 * guile/scm-lazy-string.c: Likewise.
1098 * guile/scm-param.c: Likewise.
1099 * guile/scm-symbol.c: Likewise.
1100 * guile/scm-type.c: Likewise.
1101 * hppa-hpux-tdep.c: Likewise.
1102 * i386-tdep.c: Likewise.
1103 * inf-loop.c: Likewise.
1104 * infcall.c: Likewise.
1105 * infcmd.c: Likewise.
1106 * infrun.c: Likewise.
1107 * interps.c: Likewise.
1108 * interps.h: Likewise.
1109 * jit.c: Likewise.
1110 * linespec.c: Likewise.
1111 * linux-nat.c: Likewise.
1112 * linux-thread-db.c: Likewise.
1113 * m32r-rom.c: Likewise.
1114 * main.c: Likewise.
1115 * memory-map.c: Likewise.
1116 * mi/mi-cmd-break.c: Likewise.
1117 * mi/mi-cmd-stack.c: Likewise.
1118 * mi/mi-interp.c: Likewise.
1119 * mi/mi-main.c: Likewise.
1120 * monitor.c: Likewise.
1121 * nto-procfs.c: Likewise.
1122 * objc-lang.c: Likewise.
1123 * p-valprint.c: Likewise.
1124 * parse.c: Likewise.
1125 * ppc-linux-tdep.c: Likewise.
1126 * printcmd.c: Likewise.
1127 * probe.c: Likewise.
1128 * python/py-auto-load.c: Likewise.
1129 * python/py-breakpoint.c: Likewise.
1130 * python/py-cmd.c: Likewise.
1131 * python/py-finishbreakpoint.c: Likewise.
1132 * python/py-frame.c: Likewise.
1133 * python/py-framefilter.c: Likewise.
1134 * python/py-function.c: Likewise.
1135 * python/py-gdb-readline.c: Likewise.
1136 * python/py-inferior.c: Likewise.
1137 * python/py-infthread.c: Likewise.
1138 * python/py-lazy-string.c: Likewise.
1139 * python/py-linetable.c: Likewise.
1140 * python/py-param.c: Likewise.
1141 * python/py-prettyprint.c: Likewise.
1142 * python/py-symbol.c: Likewise.
1143 * python/py-type.c: Likewise.
1144 * python/py-value.c: Likewise.
1145 * python/python-internal.h: Likewise.
1146 * python/python.c: Likewise.
1147 * record-btrace.c: Likewise.
1148 * record-full.c: Likewise.
1149 * regcache.c: Likewise.
1150 * remote-fileio.c: Likewise.
1151 * remote-mips.c: Likewise.
1152 * remote.c: Likewise.
1153 * rs6000-aix-tdep.c: Likewise.
1154 * rs6000-nat.c: Likewise.
1155 * skip.c: Likewise.
1156 * solib-darwin.c: Likewise.
1157 * solib-dsbt.c: Likewise.
1158 * solib-frv.c: Likewise.
1159 * solib-ia64-hpux.c: Likewise.
1160 * solib-spu.c: Likewise.
1161 * solib-svr4.c: Likewise.
1162 * solib.c: Likewise.
1163 * spu-tdep.c: Likewise.
1164 * stack.c: Likewise.
1165 * stap-probe.c: Likewise.
1166 * symfile-mem.c: Likewise.
1167 * symmisc.c: Likewise.
1168 * target.c: Likewise.
1169 * thread.c: Likewise.
1170 * top.c: Likewise.
1171 * tracepoint.c: Likewise.
1172 * tui/tui-interp.c: Likewise.
1173 * typeprint.c: Likewise.
1174 * utils.c: Likewise.
1175 * valarith.c: Likewise.
1176 * valops.c: Likewise.
1177 * valprint.c: Likewise.
1178 * value.c: Likewise.
1179 * varobj.c: Likewise.
1180 * windows-nat.c: Likewise.
1181 * xml-support.c: Likewise.
1182
484933d1
MR
11832014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1184
1185 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1186 name implies.
1187 (extended_mips16_next_pc): Update accordingly.
1188
ab50adb6
MR
11892014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1190
1191 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1192 function.
1193 (micromips_instruction_is_compact_branch): Likewise.
1194 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1195 or a compact jump, reaching a jump delay slot, or seeing a
1196 second non-prologue instruction.
1197 (micromips_scan_prologue): Also terminate scanning upon seeing a
1198 compact branch or jump, or reaching a branch or jump delay slot.
1199 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1200 or jump delay slot, or seeing a second non-prologue instruction.
1201 (mips32_instruction_has_delay_slot): Retain instruction
1202 examination code only, update arguments accordingly and move
1203 instruction fetch pieces to...
1204 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1205 (micromips_instruction_has_delay_slot): Likewise and to...
1206 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1207 (mips16_instruction_has_delay_slot): Likewise and to...
1208 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1209 (mips_single_step_through_delay): Update accordingly.
1210 (mips_adjust_breakpoint_address): Likewise.
1211
ae790652
MR
12122014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1213
1214 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1215 !mustbe32 also return 1 for 32-bit instructions.
1216 (mips16_instruction_has_delay_slot): Likewise. Add an
1217 explanatory comment.
1218
9b807e7b
MR
12192014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1220
1221 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1222 symbols special.
1223
0d5ed153
MR
12242014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1225
1226 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1227 update comments.
1228 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1229 for the breakpoint's address. Don't preinitialize `placed_size'.
1230 (insert_bp_location): Set `reqstd_address' rather than
1231 `placed_address'.
1232 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1233 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1234 address.
1235 (bkpt_remove_location): Likewise.
1236 (deprecated_insert_raw_breakpoint): Likewise.
1237 (deprecated_remove_raw_breakpoint): Likewise.
1238 (find_single_step_breakpoint): Likewise.
1239 * mem-break.c (default_memory_insert_breakpoint): Use
1240 `reqstd_address' for the breakpoint's address. Don't set
1241 `placed_address' or `placed_size' if breakpoint contents couldn't
1242 have been determined.
1243 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1244 the breakpoint's address.
1245 (remote_insert_hw_breakpoint): Likewise. Don't set
1246 `placed_address' or `placed_size' if breakpoint couldn't have been
1247 set.
1248 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1249 `reqstd_address' for the breakpoint's address.
1250 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1251 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1252 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1253 * microblaze-linux-tdep.c
1254 (microblaze_linux_memory_remove_breakpoint): Likewise.
1255 * monitor.c (monitor_insert_breakpoint): Likewise.
1256 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1257 (procfs_insert_hw_breakpoint): Likewise.
1258 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1259 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1260 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1261 * remote-mips.c (mips_insert_breakpoint): Likewise.
1262 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1263
3e871532
LM
12642014-10-03 Luis Machado <lgustavo@codesourcery.com>
1265
1266 * valops.c (value_assign): Check for bit field assignments
1267 before calling architecture-specific register value
1268 conversion functions.
1269
ec48dc8b
PM
12702014-10-03 Pierre Muller <muller@sourceware.org>
1271
1272 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1273
b57bacec
PA
12742014-10-02 Pedro Alves <palves@redhat.com>
1275
1276 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1277 threads_are_executing.
1278 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1279 describing comment.
1280 * gdbthread.h (threads_are_executing): Declare.
1281 (handle_signal_stop) <random signals>: Don't print about the
1282 signal here if stopping.
1283 (end_stepping_range): Don't notify observers here.
1284 (normal_stop): Update the thread list. If stopped by a random
1285 signal or a stepping range ended, notify observers.
1286 * thread.c (threads_executing): New global.
1287 (init_thread_list): Clear 'threads_executing'.
1288 (set_executing): Set or clear 'threads_executing'.
1289 (threads_are_executing): New function.
1290 (update_threads_executing): New function.
1291 (update_thread_list): Use it.
1292
13fd3ff3
PA
12932014-10-02 Pedro Alves <palves@redhat.com>
1294
1295 PR breakpoints/17431
1296 * breakpoint.c (update_breakpoints_after_exec): Don't create
1297 overlay, longjmp, std terminate nor exception breakpoints here.
1298
32990ada
PA
12992014-10-02 Pedro Alves <palves@redhat.com>
1300
1301 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1302 Adjust comments.
1303 * inferior.c (find_inferior_for_program_space): Give preference to
1304 the current inferior.
1305 * inferior.h (find_inferior_for_program_space): Update comment.
1306 * progspace.c (switch_to_program_space_and_thread): Prefer the
1307 current inferior if it's bound to the program space requested. If
1308 the inferior found doesn't have a PID yet, don't bother looking up
1309 a thread.
1310 * progspace.h (switch_to_program_space_and_thread): Adjust
1311 comment.
1312 * thread.c (any_thread_of_process, any_live_thread_of_process):
1313 Give preference to the current thread.
1314
0fec99e8
PA
13152014-10-01 Pedro Alves <palves@redhat.com>
1316
1317 * breakpoint.c (insert_bp_location): Error out if inserting a
1318 software breakpoint at a read-only address.
1319 * target.c (memory_xfer_check_region): New function, factored out
1320 from ...
1321 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1322 ULONGEST.
1323 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1324 against the memory region attributes.
1325
2ddf4301
SM
13262014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1327
1328 * NEWS: Announce new exit-code field in -list-thread-groups
1329 output.
1330 * inferior.c (exit_inferior_1): Don't clear exit code.
1331 (inferior_appeared): Clear exit code.
1332 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1333 code.
1334
5fdeec1d
PA
13352014-10-01 Pedro Alves <palves@redhat.com>
1336
1337 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1338 GENERATED" along with emacs/vi read-only markers.
1339 * regformats/aarch64.dat: Regenerate.
1340 * regformats/arm-with-iwmmxt.dat: Regenerate.
1341 * regformats/arm-with-neon.dat: Regenerate.
1342 * regformats/arm-with-vfpv2.dat: Regenerate.
1343 * regformats/arm-with-vfpv3.dat: Regenerate.
1344 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1345 * regformats/i386/amd64-avx.dat: Regenerate.
1346 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1347 * regformats/i386/amd64-avx512.dat: Regenerate.
1348 * regformats/i386/amd64-linux.dat: Regenerate.
1349 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1350 * regformats/i386/amd64-mpx.dat: Regenerate.
1351 * regformats/i386/amd64.dat: Regenerate.
1352 * regformats/i386/i386-avx-linux.dat: Regenerate.
1353 * regformats/i386/i386-avx.dat: Regenerate.
1354 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1355 * regformats/i386/i386-avx512.dat: Regenerate.
1356 * regformats/i386/i386-linux.dat: Regenerate.
1357 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1358 * regformats/i386/i386-mmx.dat: Regenerate.
1359 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1360 * regformats/i386/i386-mpx.dat: Regenerate.
1361 * regformats/i386/i386.dat: Regenerate.
1362 * regformats/i386/x32-avx-linux.dat: Regenerate.
1363 * regformats/i386/x32-avx.dat: Regenerate.
1364 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1365 * regformats/i386/x32-avx512.dat: Regenerate.
1366 * regformats/i386/x32-linux.dat: Regenerate.
1367 * regformats/i386/x32.dat: Regenerate.
1368 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1369 * regformats/mips-dsp-linux.dat: Regenerate.
1370 * regformats/mips-linux.dat: Regenerate.
1371 * regformats/mips64-dsp-linux.dat: Regenerate.
1372 * regformats/mips64-linux.dat: Regenerate.
1373 * regformats/nios2-linux.dat: Regenerate.
1374 * regformats/rs6000/powerpc-32.dat: Regenerate.
1375 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1376 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1377 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1378 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1379 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1380 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1381 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1382 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1383 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1384 * regformats/s390-linux32.dat: Regenerate.
1385 * regformats/s390-linux32v1.dat: Regenerate.
1386 * regformats/s390-linux32v2.dat: Regenerate.
1387 * regformats/s390-linux64.dat: Regenerate.
1388 * regformats/s390-linux64v1.dat: Regenerate.
1389 * regformats/s390-linux64v2.dat: Regenerate.
1390 * regformats/s390-te-linux64.dat: Regenerate.
1391 * regformats/s390x-linux64.dat: Regenerate.
1392 * regformats/s390x-linux64v1.dat: Regenerate.
1393 * regformats/s390x-linux64v2.dat: Regenerate.
1394 * regformats/s390x-te-linux64.dat: Regenerate.
1395 * regformats/tic6x-c62x-linux.dat: Regenerate.
1396 * regformats/tic6x-c62x.dat: Regenerate.
1397 * regformats/tic6x-c64x-linux.dat: Regenerate.
1398 * regformats/tic6x-c64x.dat: Regenerate.
1399 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1400 * regformats/tic6x-c64xp.dat: Regenerate.
1401
db74e4ba
PA
14022014-10-01 Pedro Alves <palves@redhat.com>
1403
1404 * features/Makefile: Update comments.
1405 (XMLTOC): List all xml files we build C files from.
1406 (clean-cfiles): New rule.
1407
d63f2f84
PA
14082014-10-01 Pedro Alves <palves@redhat.com>
1409
1410 * features/i386/amd64-avx512-linux.c: Regenerate.
1411 * features/i386/amd64-avx512.c: Regenerate.
1412 * features/i386/x32-avx512-linux.c: Regenerate.
1413 * features/i386/x32-avx512.c: Regenerate.
1414
20ad026d
PA
14152014-10-01 Pedro Alves <palves@redhat.com>
1416
1417 * features/Makefile (WHICH): Remove arm-with-m,
1418 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1419
acc9fe45
PA
14202014-10-01 Pedro Alves <palves@redhat.com>
1421
1422 * features/Makefile (clean): New rule.
1423
e001e535
PA
14242014-10-01 Pedro Alves <palves@redhat.com>
1425
1426 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1427 (zmm14h): Add missing end quotes.
1428
bdc14417
PA
14292014-10-01 Pedro Alves <palves@redhat.com>
1430
1431 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1432 * features/aarch64.c: Regenerate.
1433
d83ad864
DB
14342014-09-30 Don Breazeal <donb@codesourcery.com>
1435
1436 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1437 code so as to work with follow_fork_inferior.
1438 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1439 (inf_ttrace_create_inferior): Remove reference to
1440 inf_ttrace_vfork_ppid.
1441 (inf_ttrace_attach): Ditto.
1442 (inf_ttrace_detach): Ditto.
1443 (inf_ttrace_kill): Use current_inferior instead of
1444 inf_ttrace_vfork_ppid.
1445 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1446 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1447 inferior away from the parent.
1448 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1449 target_follow_fork.
1450 (follow_fork_inferior): New function.
1451 (follow_inferior_reset_breakpoints): Make function static.
1452 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1453 * linux-nat.c (linux_child_follow_fork): Move target-independent
1454 code to infrun.c:follow_fork_inferior.
1455
29082443
AA
14562014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1457
1458 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1459 * gdbarch.c: Regenerate.
1460 * gdbarch.h: Likewise.
1461 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1462 gdbarch method 'regset_from_core_section'.
1463 (get_core_register_section): Remove handling for the case that
1464 regset == NULL and regset_from_core_section is defined.
1465 (get_core_registers): Drop check for deleted method.
1466 * procfs.c (procfs_do_thread_registers): Adjust comment.
1467
f968fe80
AA
14682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1469
1470 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1471 (linux_nat_make_corefile_notes): Remove.
1472 (linux_target_install_ops): Do not set target method
1473 'make_corefile_notes'.
1474 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1475 Remove field.
1476 (linux_corefile_thread_callback): Instead of args->collect, call
1477 linux_collect_thread_registers.
1478 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1479 NULL unless there is a regset iterator.
1480 (linux_make_corefile_notes_1): Remove.
1481 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1482 by linux_make_corefile_notes.
1483 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1484
174ad59a
AA
14852014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1486
1487 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1488 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1489 Remove.
1490 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1491
97094034
AA
14922014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1493
1494 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1495 (xtensa_iterate_over_regset_sections): New.
1496 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1497
f73d3ce7
AA
14982014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1499
1500 * vax-tdep.c (vax_regset_from_core_section): Remove.
1501 (vax_iterate_over_regset_sections): New.
1502 (vax_gdbarch_init): Adjust gdbarch initialization.
1503
cb24567a
AA
15042014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1505
1506 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1507 (tilegx_regset_from_core_section): Remove.
1508 (tilegx_iterate_over_regset_sections): New.
1509 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1510
e5139de8
AA
15112014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1512
1513 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1514 (sparc_iterate_over_regset_sections): New.
1515 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1516 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1517 targets.
1518 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1519 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1520 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1521 target method 'make_corefile_notes'.
1522
c6d41a6f
AA
15232014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1524
1525 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1526 'sizeof_gregset' and 'sizeof_fpregset'.
1527 * sh-tdep.c (sh_regset_from_core_section): Remove.
1528 (sh_iterate_over_regset_sections): New.
1529 (sh_gdbarch_init): Adjust gdbarch initialization.
1530 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1531 sizeof_fpregset.
1532 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1533 'sizeof_gregset'.
1534
9845a0b5
AA
15352014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1536
1537 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1538 (score7_linux_iterate_over_regset_sections): New.
1539 (score_gdbarch_init): Adjust gdbarch initialization.
1540
23ea9aeb
AA
15412014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1542
1543 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1544 FreeBSD targets.
1545 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1546 method 'make_corefile_notes'.
1547 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1548 (ppcfbsd_regset_from_core_section): Remove.
1549 (ppcfbsd_iterate_over_regset_sections): New.
1550 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1551 initialization.
1552 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1553 (ppcnbsd_iterate_over_regset_sections): New.
1554 (ppcnbsd_init_abi): Adjust.
1555 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1556 (ppcobsd_iterate_over_regset_sections): New.
1557 (ppcobsd_init_abi): Adjust.
1558 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1559 (rs6000_aix_iterate_over_regset_sections): New.
1560 (rs6000_aix_init_osabi): Adjust.
1561
c5b8d704
AA
15622014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1563
1564 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1565 (nios2_regset_from_core_section): Remove.
1566 (nios2_iterate_over_regset_sections): New.
1567 (nios2_linux_init_abi): Adjust gdbarch initialization.
1568
3636e608
AA
15692014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1570
1571 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1572 (am33_iterate_over_regset_sections): New.
1573 (am33_linux_init_osabi): Adjust gdbarch initialization.
1574
d4036235
AA
15752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1576
1577 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1578 (mips_linux_iterate_over_regset_sections): New.
1579 (mips_linux_init_abi): Adjust gdbarch initialization.
1580 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1581 (mips64obsd_iterate_over_regset_sections): New.
1582 (mips64obsd_init_abi): Adjust.
1583 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1584 (mipsnbsd_iterate_over_regset_sections): New.
1585 (mipsnbsd_init_abi): Adjust.
1586
b61ddd6e
AA
15872014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1588
1589 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1590 (m88k_iterate_over_regset_sections): New.
1591 (m88k_gdbarch_init): Adjust gdbarch initialization.
1592
55a2906a
AA
15932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1594
1595 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1596 (ia64_linux_iterate_over_regset_sections): New.
1597 (ia64_linux_init_abi): Adjust gdbarch initialization.
1598
022c98ab
AA
15992014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1600
1601 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1602 (m68kbsd_iterate_over_regset_sections): New.
1603 (m68kbsd_init_abi): Adjust gdbarch initialization.
1604 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1605 (m68k_linux_iterate_over_regset_sections): New.
1606 (m68k_linux_init_abi): Adjust gdbarch initialization.
1607
5fac247f
AA
16082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1609
1610 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1611 (m32r_linux_regset_from_core_section): Remove.
1612 (m32r_linux_iterate_over_regset_sections): New.
1613 (m32r_linux_init_abi): Adjust gdbarch initialization.
1614
490496c3
AA
16152014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1616
1617 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1618 (amd64obsd_iterate_over_regset_sections): New.
1619 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1620 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1621 Remove.
1622 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1623 regset_from_core_section initialization.
1624 * i386-tdep.c (i386_regset_from_core_section): Remove.
1625 (i386_iterate_over_regset_sections): New.
1626 (i386_gdbarch_init): Adjust gdbarch initialization.
1627 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1628 (i386_iterate_over_regset_sections): New prototype.
1629 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1630 Remove.
1631 (i386obsd_aout_iterate_over_regset_sections): New.
1632 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1633 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1634 targets.
1635 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1636 (amd64fbsd_init_abi): Call fbsd_init_abi.
1637 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1638 (i386fbsd4_init_abi): Call fbsd_init_abi.
1639 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1640 target method 'make_corefile_notes'.
1641 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1642
50c5eb53
AA
16432014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1644
1645 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1646 (hppa_hpux_iterate_over_regset_sections): New.
1647 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1648 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1649 (hppa_linux_iterate_over_regset_sections): New.
1650 (hppa_linux_init_abi): Adjust.
1651 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1652 (hppanbsd_iterate_over_regset_sections): New.
1653 (hppanbsd_init_abi): Adjust.
1654 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1655 (hppaobsd_iterate_over_regset_sections): New.
1656 (hppaobsd_init_abi): Adjust.
1657
66afae4f
AA
16582014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1659
1660 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1661 (frv_linux_iterate_over_regset_sections): New.
1662 (frv_linux_init_abi): Adjust gdbarch initialization.
1663
ed09174e
AA
16642014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1665
1666 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1667 (armbsd_iterate_over_regset_sections): New prototype.
1668 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1669 (armbsd_iterate_over_regset_sections): New.
1670 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1671 initialization.
1672
dff2166e
AA
16732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1674
1675 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1676 (alpha_linux_iterate_over_regset_sections): New.
1677 (alpha_linux_init_abi): Adjust gdbarch initialization.
1678 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1679 prototype.
1680 (alphanbsd_iterate_over_regset_sections): New prototype.
1681
4108500a
AA
16822014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1683
1684 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1685 Remove.
1686 (aarch64_linux_iterate_over_regset_sections): New.
1687 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1688
a904c024
AA
16892014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1690
1691 * fbsd-tdep.c: New file.
1692 * fbsd-tdep.h: New file.
1693 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1694 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1695 (ALLDEPFILES): Add fbsd-tdep.c.
1696
8f0435f7
AA
16972014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1698
1699 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1700 parameter.
1701 * gdbarch.h: Regenerate.
1702 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1703 iterator.
1704 (get_core_register_section): Add parameter 'regset' and use it, if
1705 set. Add parameter 'min_size' and verify the bfd section size
1706 against it.
1707 (get_core_registers_cb): Add parameter 'regset' and pass it to
1708 get_core_register section. For the "standard" register sections
1709 ".reg" and ".reg2", set an appropriate default for human_name.
1710 (get_core_registers): Don't abort when the gdbarch has an iterator
1711 but no regset_from_core_section. Add NULL/0 for parameters
1712 'regset'/'min_size' in calls to get_core_register_section.
1713 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1714 'regset' and use it instead of calling the
1715 regset_from_core_section gdbarch method.
1716 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1717 * i386-tdep.c (i386_supply_xstateregset)
1718 (i386_collect_xstateregset, i386_xstateregset): Moved to
1719 i386-linux-tdep.c.
1720 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1721 .reg-xstate.
1722 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1723 core file support only if the regset iterator hasn't been set.
1724 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1725 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1726 Moved from i386-tdep.c and renamed to *_linux*.
1727 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1728 each callback invocation. Allow any .reg-xstate size when reading
1729 from a core file.
1730 * amd64-tdep.c (amd64_supply_xstateregset)
1731 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1732 amd64-linux-tdep.c.
1733 (amd64_regset_from_core_section): Remove.
1734 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1735 install an amd64-specific regset_from_core_section gdbarch method.
1736 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1737 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1738 Moved from amd64-tdep.c and renamed to *_linux*.
1739 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1740 to each callback invocation. Allow any .reg-xstate size when
1741 reading from a core file.
1742 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1743 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1744 each callback invocation.
1745 (arm_linux_init_abi): No longer set the regset_from_core_section
1746 gdbarch method.
1747 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1748 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1749 each callback invocation.
1750 (ppc_linux_init_abi): No longer set the regset_from_core_section
1751 gdbarch method.
1752 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1753 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1754 (s390_regset_from_core_section): Remove.
1755 (s390_iterate_over_regset_sections): Add regset parameter to each
1756 callback invocation.
1757 (s390_gdbarch_init): No longer set the regset_from_core_section
1758 gdbarch method. Drop initialization of deleted tdep fields.
1759
5aa82d05
AA
17602014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1761
1762 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1763 (amd64_linux_iterate_over_regset_sections): New.
1764 (amd64_linux_init_abi_common): Don't install the regset section
1765 list, but the new iterator in gdbarch.
1766 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1767 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1768 (arm_linux_iterate_over_regset_sections): ...here. New function.
1769 (arm_linux_init_abi): Set iterator instead of section list.
1770 * corelow.c (get_core_registers_cb): New function, logic moved
1771 from...
1772 (get_core_registers): ...loop body here. Use new iterator method
1773 instead of walking through the regset section list.
1774 * gdbarch.sh: Remove 'core_regset_sections'. New method
1775 'iterate_over_regset_sections'. New typedef
1776 'iterate_over_regset_sections_cb'.
1777 * gdbarch.c: Regenerate.
1778 * gdbarch.h: Likewise.
1779 * i386-linux-tdep.c (i386_linux_regset_sections)
1780 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1781 Remove.
1782 (i386_linux_iterate_over_regset_sections): New.
1783 (i386_linux_init_abi): Don't choose a regset section list, but
1784 install new iterator in gdbarch.
1785 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1786 (linux_collect_regset_section_cb): New function, logic moved
1787 from...
1788 (linux_collect_thread_registers): ...loop body here. Use iterator
1789 method instead of walking through list.
1790 (linux_make_corefile_notes_1): Check for presence of iterator
1791 method instead of regset section list.
1792 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1793 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1794 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1795 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1796 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1797 (ppc_linux_init_abi): Don't choose from above regset section
1798 lists, but install new iterator in gdbarch.
1799 * regset.h (struct core_regset_section): Remove.
1800 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1801 have_linux_v1, have_linux_v2, and have_tdb.
1802 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1803 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1804 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1805 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1806 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1807 (s390_iterate_over_regset_sections): ...here. New function. Use
1808 new tdep fields.
1809 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1810 regset section lists, but install new iterator.
1811
2eca4a8d
JK
18122014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1813
1814 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1815
a73c2b56
SM
18162014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1817
1818 * progspace.c (print_program_space): Don't prune program spaces
1819 before printing them.
1820
03d46957
PA
18212014-09-25 Pedro Alves <palves@redhat.com>
1822
1823 * infrun.c (user_visible_resume_ptid): Don't check
1824 singlestep_breakpoints_inserted_p.
1825
e558d7c1
PA
18262014-09-25 Pedro Alves <palves@redhat.com>
1827
1828 * breakpoint.c (should_be_inserted): Add debug output.
1829
7f89fd65
PA
18302014-09-25 Pedro Alves <palves@redhat.com>
1831
1832 * infrun.c (stepping_past_instruction_at)
1833 (clear_exit_convenience_vars): Point at infrun.h instead of
1834 inferior.h.
1835 (handle_signal_stop): Fix typo.
1836
b7576e5c
YQ
18372014-09-24 Yao Qi <yao@codesourcery.com>
1838
1839 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1840 bitmask.
1841
9a6cf368
GB
18422014-09-22 Gary Benson <gbenson@redhat.com>
1843
1844 * target.c (target_stop): Updated comment.
1845
03f4463b
GB
18462014-09-22 Gary Benson <gbenson@redhat.com>
1847
1848 * target/target.h (target_stop_ptid): Renamed as...
1849 (target_stop_and_wait): New function. Updated comment.
1850 All uses updated.
1851 (target_continue_ptid): Renamed as...
1852 (target_continue_no_signal): New function. Updated comment.
1853 All uses updated.
1854
a25a5a45
PA
18552014-09-22 Pedro Alves <palves@redhat.com>
1856
1857 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1858 and "auto" merged.
1859 * breakpoint.c (enum ugll_insert_mode): New enum.
1860 (always_inserted_mode): Now a plain boolean.
1861 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1862 (breakpoints_always_inserted_mode): Delete.
1863 (breakpoints_should_be_inserted_now): New function.
1864 (insert_breakpoints): Pass UGLL_INSERT to
1865 update_global_location_list instead of calling
1866 insert_breakpoint_locations manually.
1867 (create_solib_event_breakpoint_1): New, factored out from ...
1868 (create_solib_event_breakpoint): ... this.
1869 (create_and_insert_solib_event_breakpoint): Use
1870 create_solib_event_breakpoint_1 instead of calling
1871 insert_breakpoint_locations manually.
1872 (update_global_location_list): Change parameter type from boolean
1873 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1874 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1875 (update_global_location_list_nothrow): Change parameter type from
1876 boolean to enum ugll_insert_mode.
1877 (_initialize_breakpoint): "breakpoint always-inserted" option is
1878 now a boolean command. Update help text.
1879 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1880 (breakpoints_should_be_inserted_now): New declaration.
1881 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1882 Remove breakpoints_always_inserted_mode check.
1883 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1884 * remote.c (remote_start_remote): Likewise.
1885
04086b45
PA
18862014-09-22 Pedro Alves <palves@redhat.com>
1887
1888 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1889 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1890 Instead, pass UGLL_INSERT to update_global_location_list.
1891 (update_global_location_list): Change parameter type from boolean
1892 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1893 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1894 (create_solib_event_breakpoint_1): New, factored out from ...
1895 (create_solib_event_breakpoint): ... this.
1896 (create_and_insert_solib_event_breakpoint): Use
1897 create_solib_event_breakpoint_1 instead of calling
1898 insert_breakpoint_locations manually.
1899 (update_global_location_list): Handle UGLL_INSERT.
1900
44702360
PA
19012014-09-22 Pedro Alves <palves@redhat.com>
1902
1903 * breakpoint.c (enum ugll_insert_mode): New enum.
1904 (update_global_location_list)
1905 (update_global_location_list_nothrow): Change parameter type from
1906 boolean to enum ugll_insert_mode. All callers adjusted.
1907
93c6145a
JB
19082014-09-19 Joel Brobecker <brobecker@adacore.com>
1909
1910 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1911 SystemTap support in GDB.
1912
89a5711c
DB
19132014-09-19 Don Breazeal <donb@codesourcery.com>
1914
1915 * linux-nat.c (linux_handle_extended_wait): Call
1916 linux_ptrace_get_extended_event.
1917 (wait_lwp): Call linux_is_extended_waitstatus.
1918 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1919 and linux_is_extended_waitstatus.
1920 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1921 linux_ptrace_get_extended_event.
1922 (linux_ptrace_get_extended_event): New function.
1923 (linux_is_extended_waitstatus): New function.
1924 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1925 (linux_is_extended_waitstatus): New declarations.
1926
c3b7b696
YQ
19272014-09-19 Yao Qi <yao@codesourcery.com>
1928
1929 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1930 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1931 comments. Callers update.
1932 (dwarf_decode_lines): Likewise.
1933 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1934 comments. Skip the line table if 'lowpc' is greater than
1935 'address'. Don't check
1936 dwarf2_per_objfile->has_section_at_zero.
1937
2b4fd423
DE
19382014-09-18 Doug Evans <dje@google.com>
1939
1940 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1941 * python/py-symtab.c (stpy_get_producer): New function.
1942 (symtab_object_getset): Add "producer" attribute.
1943
5e43d467
UW
19442014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1945
1946 PR gdb/17384
1947 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1948 (do_captured_read_memory_integer): Remove.
1949 (safe_read_memory_integer): Use target_read_memory directly instead
1950 of catching errors in do_captured_read_memory_integer.
1951
04e79979
MR
19522014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1953
1954 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1955 not gdb/doc.
1956
76aeec5b
SDJ
19572014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1958
1959 * objc-lang.c (find_implementation_from_class): Remove dead code.
1960
2f693f9d
SDJ
19612014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1962
1963 PR cli/7233
1964 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1965 "fprintf_unfiltered (gdb_stdlog...)".
1966
bb9d5f81
PP
19672014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1968
1969 PR breakpoints/12526
1970 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1971 val_bitsize.
1972 * breakpoint.c (watch_command_1): Use these fields to retain
1973 bitfield information.
1974 (extract_bitfield_from_watchpoint_value): New function.
1975 (watchpoint_check): Use it.
1976 (update_watchpoint): Use it. Optimize the address and length of a
1977 HW watchpoint pointing to a bitfield.
1978 * value.h (unpack_value_bitfield): New prototype.
1979 * value.c (unpack_value_bitfield): Make extern.
1980
05db5edd
ST
19812014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1982
1983 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1984 x86-dregs.o.
1985 * gnu-nat.c (inf_threads): New function.
1986 * gnu-nat.h (inf_threads_ftype): New typedef.
1987 (inf_threads): New declaration.
1988 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1989 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1990 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1991 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1992 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1993 (i386_gnu_dr_get_control): New functions.
1994 (reg_addr): New structure.
1995 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1996 i386 debugging register hooks.
1997 * NEWS: Mention this.
1998
5a578da5
OJ
19992014-08-13 Omair Javaid <omair.javaid@linaro.org>
2000
2001 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2002 vector data transfer instructions.
2003 (arm_record_coproc_data_proc): Updated.
2004
f20f80dd
OJ
20052014-08-13 Omair Javaid <omair.javaid@linaro.org>
2006
2007 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2008 arm_record_exreg_ld_st_insn.
2009 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2010 load/store insns.
2011
851f26ae
OJ
20122014-08-13 Omair Javaid <omair.javaid@linaro.org>
2013
2014 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2015 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2016 processing instructions.
2017
1e1b6563
OJ
20182014-08-13 Omair Javaid <omair.javaid@linaro.org>
2019
2020 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2021 for advance SIMD struct ld/st insn.
2022 (thumb2_record_decode_insn_handler): Replace stub handler with
2023 thumb2_record_asimd_struct_ld_st.
2024
60cc5e93
OJ
20252014-08-13 Omair Javaid <omair.javaid@linaro.org>
2026
2027 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2028 for asimd, vfp and coprocessor insns.
2029 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2030 and coprocessor insns.
2031 (thumb2_record_coproc_insn): New function.
2032 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2033 handlers.
2034 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2035 opcode 110 insns.
2036
81219e53
DE
20372014-09-13 Doug Evans <xdje42@gmail.com>
2038
2039 * NEWS: Mention new "queue-signal" command.
2040 * infcmd.c (queue_signal_command): New function.
2041 (_initialize_infcmd): Add new queue-signal command.
2042
d36bf488
DE
20432014-09-13 Doug Evans <xdje42@gmail.com>
2044
2045 * linux-nat.c (wait_lwp): Add debugging printf.
2046 (linux_nat_wait_1): Ditto.
2047
f37f681c
PA
20482014-09-12 Pedro Alves <palves@redhat.com>
2049
2050 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2051 (create_and_insert_solib_event_breakpoint): New functions.
2052 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2053 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2054 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2055 (remove_dbx_link_breakpoint): Delete function.
2056 (insert_dbx_link_bpt_in_file): Use
2057 create_and_insert_solib_event_breakpoint instead of
2058 deprecated_insert_raw_breakpoint.
2059 (procfs_wait): Don't check whether we hit __dbx_link here.
2060 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2061 here.
2062 * solib-irix.c (base_breakpoint): Delete global.
2063 (disable_break): Delete function.
2064 (enable_break): Use create_solib_event_breakpoint
2065 instead of deprecated_insert_raw_breakpoint.
2066 (irix_solib_handle_event): New function.
2067 (irix_solib_create_inferior_hook): Don't run the target or disable
2068 the mapping-complete breakpoint here.
2069 (_initialize_irix_solib): Install irix_solib_handle_event as
2070 so_ops->handle_event hook.
2071
9d9bf2df
EBM
20722014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2073 Ulrich Weigand  <uweigand@de.ibm.com>
2074
2075 PR tdep/17379
2076 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2077 instead of read_memory_unsigned_integer.
2078
b006a80e
GB
20792014-09-12 Gary Benson <gbenson@redhat.com>
2080
2081 * nat/linux-waitpid.c: Include common-defs.h.
2082 [GDBSERVER]: Add FIXME comment.
2083 [!GDBSERVER]: Don't include defs.h or signal.h.
2084 (linux_debug) [!GDBSERVER]: Remove empty block.
2085
296b1496
GB
20862014-09-12 Gary Benson <gbenson@redhat.com>
2087
2088 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2089 Don't include defs.h or server.h.
2090
53f81362
GB
20912014-09-12 Gary Benson <gbenson@redhat.com>
2092
2093 * nat/linux-btrace.c: Include common-defs.h.
2094 Don't include defs.h, server.h or gdbthread.h.
2095 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2096
727605ca
GB
20972014-09-12 Gary Benson <gbenson@redhat.com>
2098
2099 * common/agent.c: Include common-defs.h.
2100 Don't include defs.h or server.h.
2101 * common/buffer.c: Likewise.
2102 * common/common-debug.c: Likewise.
2103 * common/common-utils.c: Likewise.
2104 * common/errors.c: Likewise.
2105 * common/filestuff.c: Likewise.
2106 * common/format.c: Likewise.
2107 * common/gdb_vecs.c: Likewise.
2108 * common/print-utils.c: Likewise.
2109 * common/ptid.c: Likewise.
2110 * common/rsp-low.c: Likewise.
2111 * common/signals.c: Likewise.
2112 * common/vec.c: Likewise.
2113 * common/xml-utils.c: Likewise.
2114 * nat/linux-osdata.c: Likewise.
2115 * nat/linux-procfs.c: Likewise.
2116 * nat/linux-ptrace.c: Likewise.
2117 * nat/mips-linux-watch.c: Likewise.
2118 * target/waitstatus.c: Likewise.
2119
361c8ade
GB
21202014-09-12 Tom Tromey <tromey@redhat.com>
2121 Gary Benson <gbenson@redhat.com>
2122
2123 * common/common-regcache.h: New file.
2124 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2125 * regcache.h: Include common-regcache.h.
2126 (regcache_read_pc): Don't declare.
2127 * regcache.c (get_thread_regcache_for_ptid): New function.
2128 * nat/linux-btrace.c: Don't include regcache.h.
2129 Include common-regcache.h.
2130 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2131
a01cbb49
TS
21322014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2133
2134 * regcache.h (struct regset): Declare.
2135
98880d46
PA
21362014-09-11 Pedro Alves <palves@redhat.com>
2137
2138 PR gdb/17347
2139 * main.c: Include "infrun.h".
2140 (catch_command_errors, catch_command_errors_const): Wait for the
2141 foreground command to complete.
2142 * top.c (maybe_wait_sync_command_done): New function, factored out
2143 from ...
2144 (maybe_wait_sync_command_done): ... here.
2145 * top.h (maybe_wait_sync_command_done): New declaration.
2146
bd9269f7
GB
21472014-09-11 Tom Tromey <tromey@redhat.com>
2148 Gary Benson <gbenson@redhat.com>
2149
2150 * common/symbol.h: New file.
2151 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2152 * minsyms.c (find_minimal_symbol_address): New function.
2153 * common/agent.c: Include common/symbol.h.
2154 [!GDBSERVER]: Don't include objfiles.h.
2155 (agent_look_up_symbols): Use find_minimal_symbol_address.
2156
f8c1d06b
GB
21572014-09-11 Gary Benson <gbenson@redhat.com>
2158
2159 * target/target.h (target_stop_ptid, target_continue_ptid):
2160 Declare.
2161 * target.c (target_stop_ptid, target_continue_ptid): New
2162 functions.
2163 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2164 (agent_run_command): Always use target_stop_ptid and
2165 target_continue_ptid.
2166
721ec300
GB
21672014-09-11 Tom Tromey <tromey@redhat.com>
2168 Gary Benson <gbenson@redhat.com>
2169
2170 * target/target.h: New file.
2171 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2172 * target.h: Include target/target.h.
2173 (target_read_memory, target_write_memory): Don't declare.
2174 * target.c (target_read_uint32): New function.
2175 * common/agent.c: Include target/target.h.
2176 [!GDBSERVER]: Don't include target.h.
2177 (helper_thread_id): Type changed to uint32_t.
2178 (agent_get_helper_thread_id): Use target_read_uint32.
2179 (agent_run_command): Always use target_read_memory and
2180 target_write_memory.
2181 (agent_capability): Type changed to uint32_t.
2182 (agent_capability_check): Use target_read_uint32.
2183
c5e92cca
GB
21842014-09-11 Gary Benson <gbenson@redhat.com>
2185
2186 * common/common-debug.h (show_debug_regs): Declare.
2187 * common/common-debug.c (show_debug_regs): Define.
2188 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2189 all uses with show_debug_regs. Replace all uses that considered
2190 debug_hw_points as a multi-value integer with straight boolean
2191 uses.
2192 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2193 with show_debug_regs.
2194 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2195 all uses with show_debug_regs.
2196 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2197 uses with show_debug_regs.
2198
eeef931a
UW
21992014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2200
2201 * findvar.c (address_from_register): Handle targets requiring
2202 a special conversion routine even for plain pointer types.
2203
8efa9855
UW
22042014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2205
2206 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2207 (store_register): Do not call exec_one_dummy_insn.
2208
eb479039
JB
22092014-09-10 Joel Brobecker <brobecker@adacore.com>
2210
2211 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2212 dereference it first. Use value_enclosing_type instead of
2213 value_type.
2214 (ada_array_length): Likewise.
2215
deede10c
JB
22162014-09-10 Joel Brobecker <brobecker@adacore.com>
2217
2218 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2219 Adjust function implementation and documentation accordingly.
2220 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2221 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2222 Update call to ada_value_ptr_subscript.
2223
7828a5f5
JB
22242014-09-10 Joel Brobecker <brobecker@adacore.com>
2225
2226 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2227 instead of VAL's type.
2228
35782f14
JB
22292014-09-10 Joel Brobecker <brobecker@adacore.com>
2230
2231 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2232
d342a0da
DE
22332014-09-09 Doug Evans <xdje42@gmail.com>
2234
2235 PR guile/17367
2236 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2237 last parameter to pkg-config, not first.
2238 * configure.ac: Pass --with-guile provided pkg-config path to
2239 GDB_GUILE_PROGRAM_NAMES.
2240 * configure: Regenerate.
2241
b4a3d263
GKB
22422014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2243
2244 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2245 Bertazi".
2246
6e466374
MR
22472014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2248
2249 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2250 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2251 the list of sections determining GDB_OSABI_IRIX.
2252
a1ada89a
JH
22532014-09-09 James Hogan <james.hogan@imgtec.com>
2254
2255 * MAINTAINERS (Write After Approval): Add "James Hogan".
2256
86db008d
JH
22572014-09-09 James Hogan <james.hogan@imgtec.com>
2258
2259 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2260
72fde3df
JB
22612014-09-09 Joel Brobecker <brobecker@adacore.com>
2262
2263 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2264
92d8d229
DE
22652014-09-08 Doug Evans <xdje42@gmail.com>
2266
2267 PR 17247
2268 * guile.c: #include <signal.h>.
2269 (_initialize_guile): Block SIGCHLD while initializing Guile.
2270
2271 Replaces the following, which is reverted.
2272
2273 2014-07-26 Doug Evans <xdje42@gmail.com>
2274
2275 PR 17185
2276 * configure.ac: Add check for header gc/gc.h.
2277 Add check for function setenv.
2278 * configure: Regenerate.
2279 * config.in: Regenerate.
2280 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2281
d81412aa
DE
22822014-09-08 Doug Evans <xdje42@gmail.com>
2283
2284 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2285 with named constant. Fix style of pointer comparison.
2286 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2287
a9f116cb
GKB
22882014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2289
2290 PR gdb/17035
2291 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2292 decide whether we display the command on "show user".
2293 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2294 printing command name.
2295 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2296 * cli/cli-decode.c (cli_user_command_p): Create helper function
2297 to verify whether cmd_list_element is a user-defined command.
2298
c75bd3a2
JK
22992014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2300
2301 PR python/17355
2302 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2303 Fix goto out of TRY_CATCH.
2304
faa42425 23052014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 2306 Tom Tromey <tromey@redhat.com>
faa42425
DE
2307
2308 PR 15276
2309 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2310 $_any_caller_matches.
2311 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2312 * python/lib/gdb/function/caller_is.py: New file.
2313
0d41ba00
DE
23142014-09-06 Doug Evans <xdje42@gmail.com>
2315
2316 * infcmd.c (program_info): Fix typo.
2317
474ca4f6
SDJ
23182014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2319
2320 PR gdb/17235
2321 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2322 'number'. New variable 'has_digit'. Rewrite code to deal with
2323 subexpressions on SDT probes.
2324
ebf13736
PA
23252014-09-04 Pedro Alves <palves@redhat.com>
2326
2327 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2328 the input is only one character long.
2329
eb0b0463
SDJ
23302014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2331
2332 PR fortran/17237
2333 * f-valprint.c (f_val_print): Specify the correct print option to
2334 use when printing integer values.
2335
5ee44bfa
GB
23362014-09-04 Gary Benson <gbenson@redhat.com>
2337
2338 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2339 Remove code to cope with LWPs wrapped as PIDs.
2340 Add assertions to ensure no wrapped LWPs are passed.
2341
4875ffdb
PA
23422014-09-04 Pedro Alves <palves@redhat.com>
2343
2344 * value.c (value_ranges_copy_adjusted): New function, factored out
2345 from ...
2346 (value_contents_copy_raw): ... here.
2347 (unpack_value_bits_as_long_1): Rename back to ...
2348 (unpack_bits_as_long): ... this. Remove 'original_value' and
2349 'result' parameters. Change return type to LONGEST.
2350 (unpack_value_bits_as_long): Delete.
2351 (unpack_value_field_as_long_1): Delete.
2352 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2353 (unpack_value_bitfield): New function.
2354 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2355 (value_fetch_lazy): Use unpack_value_bitfield.
2356 * value.h (unpack_value_bits_as_long): Delete declaration.
2357
5f3b99cf
SS
23582014-09-03 Sasha Smundak <asmundak@google.com>
2359
2360 * python/py-frame.c (frapy_read_register): New function.
2361
ac740bc7
JH
23622014-09-03 James Hogan <james.hogan@imgtec.com>
2363
2364 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2365 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2366
7d793aa9
SDJ
23672014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2368
2369 PR python/16699
2370 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2371 function.
2372 (add_cmd): Set "completer_handle_brkchars" to NULL.
2373 * cli/cli-decode.h (struct cmd_list_element)
2374 <completer_handle_brkchars>: New field.
2375 * command.h (completer_ftype_void): New typedef.
2376 (set_cmd_completer_handle_brkchars): New prototype.
2377 * completer.c (set_gdb_completion_word_break_characters): New
2378 function.
2379 (complete_line_internal): Call "completer_handle_brkchars"
2380 callback from command.
2381 * completer.h: Include "command.h".
2382 (set_gdb_completion_word_break_characters): New prototype.
2383 * python/py-cmd.c (cmdpy_completer_helper): New function.
2384 (cmdpy_completer_handle_brkchars): New function.
2385 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2386 (cmdpy_init): Set completer_handle_brkchars to
2387 cmdpy_completer_handle_brkchars.
2388
97ea6506
GB
23892014-09-03 Gary Benson <gbenson@redhat.com>
2390
2391 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2392 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2393 Loop conditions changed to equivalent form.
2394 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2395 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2396 ALL_DEBUG_ADDRESS_REGISTERS.
2397
d1437815
JB
23982014-09-03 Joel Brobecker <brobecker@adacore.com>
2399
2400 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2401 description fix.
2402
9b94fcf1
DE
24032014-09-02 Doug Evans <dje@google.com>
2404
2405 * typeprint.c (find_global_typedef): Fix comment.
2406
df7e5265
GB
24072014-09-02 Gary Benson <gbenson@redhat.com>
2408
2409 * i386-nat.h: Renamed as...
2410 * x86-nat.h: New file. All type, function and variable name
2411 prefixes changed from "i386_" to "x86_". All references updated.
2412 * i386-nat.c: Renamed as...
2413 * x86-nat.c: New file. All type, function and variable name
2414 prefixes changed from "i386_" to "x86_". All references updated.
2415 * common/i386-xstate.h: Renamed as...
2416 * common/x86-xstate.h: New file. All type, function and variable
2417 name prefixes changed from "i386_" to "x86_". All references
2418 updated.
2419 * nat/i386-cpuid.h: Renamed as...
2420 * nat/x86-cpuid.h: New file. All type, function and variable name
2421 prefixes changed from "i386_" to "x86_". All references updated.
2422 * nat/i386-gcc-cpuid.h: Renamed as...
2423 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2424 name prefixes changed from "i386_" to "x86_". All references
2425 updated.
2426 * nat/i386-dregs.h: Renamed as...
2427 * nat/x86-dregs.h: New file. All type, function and variable name
2428 prefixes changed from "i386_" to "x86_". All references updated.
2429 * nat/i386-dregs.c: Renamed as...
2430 * nat/x86-dregs.c: New file. All type, function and variable name
2431 prefixes changed from "i386_" to "x86_". All references updated.
2432
1c3569d4
MR
24332014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2434
2435 * varobj.c (_initialize_varobj): Move to the end of file.
2436
ff55e1b5
GB
24372014-08-29 Gary Benson <gbenson@redhat.com>
2438
2439 * common/common-exceptions.h: New file.
2440 * common/common-exceptions.c: Likewise.
2441 * Makefile.in (SFILES): Add common/common-exceptions.c.
2442 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2443 (COMMON_OBS): Add common-exceptions.o.
2444 (common-exceptions.o): New rule.
2445 * exceptions.h (common-exceptions.h): Include.
2446 (gdb_setjmp.h): Do not include.
2447 (return_reason): Moved to common-exceptions.h.
2448 (enum return_reason): Likewise.
2449 (RETURN_MASK): Likewise.
2450 (typedef return_mask): Likewise.
2451 (enum errors): Likewise.
2452 (struct gdb_exception): Likewise.
2453 (exceptions_state_mc_init): Likewise.
2454 (exceptions_state_mc_action_iter): Likewise.
2455 (exceptions_state_mc_action_iter_1): Likewise.
2456 (TRY_CATCH): Likewise.
2457 (throw_exception): Likewise.
2458 (throw_verror): Likewise.
2459 (throw_vquit): Likewise.
2460 (throw_error): Likewise.
2461 (throw_quit): Likewise.
2462 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2463 (enum catcher_action): Likewise.
2464 (struct catcher): Likewise.
2465 (current_catcher): Likewise.
2466 (catcher_list_size): Likewise.
2467 (exceptions_state_mc_init): Likewise.
2468 (catcher_pop): Likewise.
2469 (exceptions_state_mc): Likewise.
2470 (exceptions_state_mc_action_iter): Likewise.
2471 (exceptions_state_mc_action_iter_1): Likewise.
2472 (throw_exception): Likewise.
2473 (exception_messages): Likewise.
2474 (exception_messages_size): Likewise.
2475 (throw_it): Likewise.
2476 (throw_verror): Likewise.
2477 (throw_vquit): Likewise.
2478 (throw_error): Likewise.
2479 (throw_quit): Likewise.
2480 (prepare_to_throw_exception): New function.
2481
e9bcb658
GB
24822014-08-29 Gary Benson <gbenson@redhat.com>
2483
2484 * common/gdb_setjmp.h: New file.
2485 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2486 * configure.ac: Move sigsetjmp check...
2487 * common/common.m4: ...here.
2488 * configure: Regenerate.
2489 * cp-support.c (SIGJMP_BUF): Delete.
2490 (SIGSETJMP): Likewise.
2491 (SIGLONGJMP): Likewise.
2492 * exceptions.h (gdb_setjmp.h): Include.
2493 (setjmp.h): Do not include.
2494 (EXCEPTIONS_SIGJMP_BUF): Delete.
2495 (EXCEPTIONS_SIGSETJMP): Likewise.
2496 (EXCEPTIONS_SIGLONGJMP): Likewise.
2497 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2498 from gdb_setjmp.h.
2499 * exceptions.c: Likewise.
2500
e3180625
GB
25012014-08-29 Gary Benson <gbenson@redhat.com>
2502
2503 * cleanups.h: Moved to...
2504 * common/cleanups.h: New file.
2505 * cleanups.c: Moved to...
2506 * common/cleanups.c: New file. Include common-defs.h and
2507 cleanups.h. Do not include defs.h.
2508 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2509 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2510 (cleanups.o): New rule.
2511
e3d6ba5d
GB
25122014-08-29 Gary Benson <gbenson@redhat.com>
2513
2514 * common/errors.h (internal_warning): New declaration.
2515 (internal_vwarning): Likewise.
2516 * common/errors.c (internal_warning): New function.
2517 * utils.h (internal_warning): Don't declare.
2518 (internal_vwarning): Likewise.
2519 * utils.c (internal_warning): Removed.
2520
075c7033
GB
25212014-08-29 Gary Benson <gbenson@redhat.com>
2522
2523 * main.c (captured_main): Use warning during startup.
2524 Prefix startup warning messages with command name.
2525
91b35fd0
GB
25262014-08-29 Gary Benson <gbenson@redhat.com>
2527
2528 * main.c (captured_main): Handle usage errors with error.
2529
b1ec390e
GB
25302014-08-29 Gary Benson <gbenson@redhat.com>
2531
2532 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2533 exit pair with a call to error. Wrap the message with _().
2534
fd0ef3dd
GB
25352014-08-29 Gary Benson <gbenson@redhat.com>
2536
2537 * main.c (captured_main): Replace a fprintf/exit
2538 pair with a call to error. Wrap the message with _().
2539
e0e6bcab
GB
25402014-08-29 Gary Benson <gbenson@redhat.com>
2541
2542 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2543 pairs with calls to error. Wrap the message with _().
2544
0d2f5c07
GB
25452014-08-29 Gary Benson <gbenson@redhat.com>
2546
2547 * utils.c (vwarning): Protect calls to target_terminal_ours
2548 and wrap_here.
2549
5df43998
GB
25502014-08-29 Gary Benson <gbenson@redhat.com>
2551
2552 * exceptions.c (print_flush): Protect calls to
2553 target_terminal_ours and wrap_here.
2554
2437fd32
GB
25552014-08-29 Gary Benson <gbenson@redhat.com>
2556
2557 * utils.h (filtered_printing_initialized): New declaration.
2558 * utils.c (abort_with_message): New function.
2559 (internal_vproblem): Use abort_with_message for first level
2560 recursive internal problems, and if gdb_stderr is not set up.
2561 Protect calls to target_terminal_ours, begin_line and query.
2562
f1f58506
DE
25632014-08-28 Doug Evans <dje@google.com>
2564
2565 * symtab.c (in_prologue): Move definition to better spot.
2566 (skip_prologue_using_sal): Ditto.
2567
aab2f208
DE
25682014-08-28 Doug Evans <dje@google.com>
2569
2570 * symtab.c (find_function_start_sal): Move definition to better spot.
2571
6b65d1b6
YQ
25722014-08-28 Yao Qi <yao@codesourcery.com>
2573
2574 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2575 found_stack_adjust in forward scan. Remove condition check
2576 on found_stack_adjust which is always true. Indent the code.
2577
a1b34d15
YQ
25782014-08-28 Yao Qi <yao@codesourcery.com>
2579
2580 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2581 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2582 (dwarf_decode_lines): Remove argument
2583 want_line_info. Remove condition check on want_line_info.
2584 Callers update.
2585
d5962de5
DE
25862014-08-27 Doug Evans <dje@google.com>
2587
2588 * dwarf2read.c (dwarf_record_line): Fix typo.
2589
9b139002
SDJ
25902014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2591
2592 * target.h (struct target_ops::to_terminal_save_ours): Remove
2593 declaration.
2594 (target_terminal_save_ours): Remove macro.
2595 * target-delegates.c: Regenerate.
2596 * inf-child.c (inf_child_target): Don't set the nonexistent
2597 field to_terminal_save_ours.
2598 * inferior.h (child_terminal_save_ours): Remove declaration.
2599 * terminal.h (gdb_save_tty_state): New declaration.
2600 * inflow.c (child_terminal_save_ours): Rename to ...
2601 (gdb_save_tty_state): ... this.
2602 * tui/tui.c: Include terminal.h.
2603 (tui_enable): Use gdb_save_tty_state instead of
2604 target_terminal_save_ours.
2605 (tui_disable): Likewise.
2606
9debeba0
DE
26072014-08-25 Doug Evans <dje@google.com>
2608
2609 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2610 Pass NULL instead of 0 for context pointer.
2611
428fc5fc
YQ
26122014-08-25 Yao Qi <yao@codesourcery.com>
2613
2614 * dwarf2read.c: Fix grammatical error.
2615
cdc07690
YQ
26162014-08-24 Yao Qi <yao@codesourcery.com>
2617
2618 * dwarf2read.c (scan_partial_symbols): Update comments.
2619 Rename argument 'need_pc' with 'set_addrmap'.
2620 (add_partial_namespace): Rename argument 'need_pc' with
2621 'set_addrmap'.
2622 (add_partial_module): Likewise.
2623 (add_partial_subprogram): Likewise. Update comments.
2624 (dwarf2_name): Fix typo.
2625
a05a36a5
DE
26262014-08-22 Doug Evans <dje@google.com>
2627
2628 PR 17276
2629 * dwarf2read.c (dwarf_record_line_p): New function.
2630 (dwarf_decode_lines_1): Ignore subsequent line number entries
2631 for the same line if any entry had a non-zero discriminator.
2632
252a6764
DE
26332014-08-22 Doug Evans <dje@google.com>
2634
2635 * buildsym.h (record_line_ftype): New typedef.
2636 (record_line): Use it.
2637 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2638 (dwarf_decode_lines_1): Call them.
2639
510db052
YQ
26402014-08-22 Yao Qi <yao@codesourcery.com>
2641
2642 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2643 (ctf_end): Remove code.
2644
22fd09ae
JK
26452014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2646
2647 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2648 (linux_make_corefile_notes): call update_thread_list, protected against
2649 exceptions.
2650
656e8868
PA
26512014-08-21 Pedro Alves <palves@redhat.com>
2652
2653 * infcmd.c (attach_command): Remove comment.
2654
de589d04
WN
26552014-08-21 Bin Cheng <bin.cheng@arm.com>
2656
2657 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2658 unsigned LONGEST to ULONGEST.
2659
2a31c623
PA
26602014-08-20 Pedro Alves <palves@redhat.com>
2661
2662 * Makefile.in (check-read1): New rule.
2663
d36430db
JB
26642014-08-20 Joel Brobecker <brobecker@adacore.com>
2665
2666 * value.c (value_from_contents_and_address): Strip resolved_type's
2667 typedef layers before checking its TYPE_DATA_LOCATION.
2668
000339af
PA
26692014-08-20 Pedro Alves <palves@redhat.com>
2670
2671 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2672
5f52445b
YQ
26732014-08-20 Yao Qi <yao@codesourcery.com>
2674
2675 * amd64-tdep.c (amd64_classify): Add a blank line after the
2676 example. Move "*/" to a new line.
2677 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2678 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2679 * dwarf2read.c (psymtab_include_file_name): Likewise.
2680
9a0dc9e3
PA
26812014-08-19 Andrew Burgess <aburgess@broadcom.com>
2682 Pedro Alves <palves@redhat.com>
2683
2684 PR symtab/14604
2685 PR symtab/14605
2686 * ada-lang.c (coerce_unspec_val_to_type): Use
2687 value_contents_copy_raw.
2688 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2689 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2690 * cp-valprint.c (cp_print_value_fields): Let the common printing
2691 code handle optimized out values.
2692 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2693 * d-valprint.c (dynamic_array_type): Use
2694 value_bits_any_optimized_out.
2695 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2696 check_any_valid fields.
2697 (check_pieced_value_bits): Delete and inline ...
2698 (check_pieced_synthetic_pointer): ... here.
2699 (check_pieced_value_validity): Delete.
2700 (check_pieced_value_invalid): Delete.
2701 (pieced_value_funcs): Remove check_validity and check_any_valid
2702 fields.
2703 (read_pieced_value): Use mark_value_bits_optimized_out.
2704 (write_pieced_value): Switch to use
2705 mark_value_bytes_optimized_out.
2706 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2707 of assuming the whole value is optimized out.
2708 * findvar.c (read_frame_register_value): Remove special handling
2709 of optimized out registers.
2710 (value_from_register): Use mark_value_bytes_optimized_out.
2711 * frame-unwind.c (frame_unwind_got_optimized): Use
2712 mark_value_bytes_optimized_out.
2713 * jv-valprint.c (java_value_print): Adjust.
2714 (java_print_value_fields): Let the common printing code handle
2715 optimized out values.
2716 * mips-tdep.c (mips_print_register): Remove special handling of
2717 optimized out registers.
2718 * opencl-lang.c (lval_func_check_validity): Delete.
2719 (lval_func_check_any_valid): Delete.
2720 (opencl_value_funcs): Remove check_validity and check_any_valid
2721 fields.
2722 * p-valprint.c (pascal_object_print_value_fields): Let the common
2723 printing code handle optimized out values.
2724 * stack.c (read_frame_arg): Remove special handling of optimized
2725 out values. Fetch both VAL and ENTRYVAL before comparing
2726 contents. Adjust to value_available_contents_eq rename.
2727 * valprint.c (valprint_check_validity)
2728 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2729 (val_print_array_elements): Adjust.
2730 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2731 (value_bits_any_optimized_out): New function.
2732 (value_entirely_covered_by_range_vector): New function, factored
2733 out from value_entirely_unavailable.
2734 (value_entirely_unavailable): Reimplement.
2735 (value_entirely_optimized_out): New function.
2736 (insert_into_bit_range_vector): New function, factored out from
2737 mark_value_bits_unavailable.
2738 (mark_value_bits_unavailable): Reimplement.
2739 (struct ranges_and_idx): New struct.
2740 (find_first_range_overlap_and_match): New function, factored out
2741 from value_available_contents_bits_eq.
2742 (value_available_contents_bits_eq): Rename to ...
2743 (value_contents_bits_eq): ... this. Check both unavailable
2744 contents and optimized out contents.
2745 (value_available_contents_eq): Rename to ...
2746 (value_contents_eq): ... this.
2747 (allocate_value_lazy): Remove reference to the old optimized_out
2748 boolean.
2749 (allocate_optimized_out_value): Use
2750 mark_value_bytes_optimized_out.
2751 (require_not_optimized_out): Adjust to check whether the
2752 optimized_out vec is empty.
2753 (ranges_copy_adjusted): New function, factored out from
2754 value_contents_copy_raw.
2755 (value_contents_copy_raw): Also copy the optimized out ranges.
2756 Assert the destination ranges aren't optimized out.
2757 (value_contents_copy): Update comment, remove call to
2758 require_not_optimized_out.
2759 (value_contents_equal): Adjust to check whether the optimized_out
2760 vec is empty.
2761 (set_value_optimized_out, value_optimized_out_const): Delete.
2762 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2763 New functions.
2764 (value_entirely_optimized_out, value_bits_valid): Delete.
2765 (value_copy): Take a VEC copy of the 'optimized_out' field.
2766 (value_primitive_field): Remove special handling of optimized out.
2767 (value_fetch_lazy): Assert that lazy values have no unavailable
2768 regions. Use value_bits_any_optimized_out. Remove some special
2769 handling for optimized out values.
2770 * value.h: Add intro comment about <optimized out> and
2771 <unavailable>.
2772 (struct lval_funcs): Remove check_validity and check_any_valid
2773 fields.
2774 (set_value_optimized_out, value_optimized_out_const): Remove.
2775 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2776 New declarations.
2777 (value_bits_any_optimized_out): New declaration.
2778 (value_bits_valid): Delete declaration.
2779 (value_available_contents_eq): Rename to ...
2780 (value_contents_eq): ... this, and extend comments.
2781
6694c411
JK
27822014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2783
2784 Fix -fsanitize=address on unreadable inferior strings.
2785 * valprint.c (val_print_string): Fix access before BUFFER.
2786
89a1c21a
SM
27872014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2788
2789 * target.c (target_struct_size): Remove.
2790 (target_struct_allocsize): Remove.
2791 (DEFAULT_ALLOCSIZE): Remove.
2792 (target_ops_p): New typedef.
2793 (DEF_VEC_P (target_ops_p)): New vector type.
2794 (target_structs): Change type to VEC (target_ops_p).
2795 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2796 (find_default_run_target): Rewrite for loop following changes to
2797 target_structs.
2798
cb417230
JB
27992014-08-19 Joel Brobecker <brobecker@adacore.com>
2800
2801 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2802 Adjust code accordingly. Adjust function description comment.
2803
817e0957
YQ
28042014-08-19 Yao Qi <yao@codesourcery.com>
2805
2806 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2807 types.
2808
2974be62
AM
28092014-08-19 Alan Modra <amodra@gmail.com>
2810
2811 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2812 * config.in: Regenerate.
2813 * configure: Regenerate.
2814
34abf635
GB
28152014-08-19 Tom Tromey <tromey@redhat.com>
2816 Gary Benson <gbenson@redhat.com>
2817
2818 * common/common-debug.h: New file.
2819 * common/common-debug.c: Likewise.
2820 * debug.c: Likewise.
2821 * Makefile.in (SFILES): Add common/common-debug.c.
2822 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2823 (COMMON_OBS): Add common-debug.o and debug.o.
2824 (common-debug.o): New rule.
2825 * common/common-defs.h: Include common-debug.h.
2826 * common/agent.c (debug_agent_printf): New function.
2827 (DEBUG_AGENT): Redefine.
2828 * nat/i386-dregs.c (debug_printf): Undefine.
2829
f6e94d78
GB
28302014-08-19 Gary Benson <gbenson@redhat.com>
2831
2832 * common/common-defs.h: Include print-utils.h.
2833 * utils.h: Do not include print-utils.h.
2834
9239eeab
GB
28352014-08-19 Tom Tromey <tromey@redhat.com>
2836 Gary Benson <gbenson@redhat.com>
2837
2838 * common/common-types.h: New file.
2839 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2840 * common/common-defs.h: Include common-types.h.
2841 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2842 (ULONGEST): Remove.
2843
ef87c8bb
GB
28442014-08-19 Tom Tromey <tromey@redhat.com>
2845 Gary Benson <gbenson@redhat.com>
2846
2847 * common/errors.h: New file.
2848 * common/errors.c: Likewise.
2849 * Makefile.in (SFILES): Add common/errors.c.
2850 (HFILES_NO_SRCDIR): Add common/errors.h.
2851 (COMMON_OBS): Add errors.o.
2852 (errors.o): New rule.
2853 * common/common-defs.h: Include errors.h.
2854 * utils.h (perror_with_name, error, verror, warning, vwarning):
2855 Don't declare.
2856 * common/common-utils.h: (malloc_failure, internal_error):
2857 Likewise.
2858
196a707b
GB
28592014-08-19 Gary Benson <gbenson@redhat.com>
2860
2861 * utils.c (internal_vproblem): Always print the message.
2862
ded4fc8f
DE
28632014-08-18 Doug Evans <dje@google.com>
2864
2865 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2866
950c97d8
JB
28672014-08-18 Joel Brobecker <brobecker@adacore.com>
2868
2869 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2870 Return 0 if TYPE is dynamic.
2871 (print_range): Add handling of dynamic ranges.
2872
3cdcd0ce
JB
28732014-08-18 Keven Boell <keven.boell@intel.com>
2874 Joel Brobecker <brobecker@adacore.com>
2875
2876 * gdbtypes.h (struct main_type): Add field "data_location".
2877 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2878 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2879 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2880 a dynamic data location.
2881 (resolve_dynamic_type): Add DW_AT_data_location handling.
2882 (copy_recursive, copy_type): Copy the data_location information
2883 when present.
2884 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2885 * value.c (value_from_contents_and_address): Add
2886 DW_AT_data_location handling.
2887
08412b07
JB
28882014-08-18 Keven Boell <keven.boell@intel.com>
2889 Joel Brobecker <brobecker@adacore.com>
2890
2891 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2892 field "get_object_address".
2893 * dwarf2expr.c (execute_stack_op): Add handling for
2894 DW_OP_push_object_address.
2895 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2896 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2897 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2898 (dwarf_expr_get_obj_addr): New function.
2899 (dwarf_expr_ctx_funcs): Add get_object_address field.
2900 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2901 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2902 (dwarf2_evaluate_property): Add parameter "address". Use it.
2903 (needs_get_obj_addr): New function.
2904 (needs_frame_ctx_funcs): Add get_object_address field.
2905 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2906 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2907 (resolve_dynamic_array): Likewise.
2908
84754697
JB
29092014-08-18 Joel Brobecker <brobecker@adacore.com>
2910
2911 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2912 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2913 fixed value for records and unions for which some GNAT encodings
2914 are present.
2915
da5c522f
JB
29162014-08-18 Joel Brobecker <brobecker@adacore.com>
2917
2918 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2919 rewrite to avoid "else if" and "else" constructs. Should be
2920 a no-op in practice.
2921
0d72a7c3
JB
29222014-08-18 Joel Brobecker <brobecker@adacore.com>
2923
2924 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2925 of lexical block.
2926
e66d4446
SC
29272014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2928
2929 PR c++/17132
2930 * eval.c: Update all calls to find_overload_match.
2931 * valarith.c: Likewise.
2932 (value_user_defined_cpp_op, value_user_defined_op): New
2933 argument NOSIDE. Update all callers.
2934 * valops.c (find_overload_match): New argument NOSIDE.
2935 * value.h (find_overload_match): Update signature.
2936
940df408
SC
29372014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2938
2939 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2940 'items' methods instead of 'iteritems' method on dictionaries.
2941
699ca60a
DE
29422014-08-15 Doug Evans <dje@google.com>
2943
2944 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2945 closer to use.
2946
37780ee5
DE
29472014-08-15 Doug Evans <dje@google.com>
2948
2949 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2950
0ad93d4f
DE
29512014-08-15 Doug Evans <dje@google.com>
2952
2953 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2954
20d8c372
DE
29552014-08-15 Doug Evans <dje@google.com>
2956
2957 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2958 unused.
2959
cb039ba4
EZ
29602014-08-15 Eli Zaretskii <eliz@gnu.org>
2961
2962 * dcache.h: Include target.h, to avoid compile time warnings.
2963
eb7a547a
JB
29642014-08-15 Joel Brobecker <brobecker@adacore.com>
2965
2966 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2967 frame_info" partial declaration.
2968 * gdbarch.h: Regenerate.
2969
783cecc8
YQ
29702014-08-15 Yao Qi <yao@codesourcery.com>
2971
2972 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2973 Add parameter 'decode_for_pst_p'. Callers update.
2974
65c749e7
YQ
29752014-08-13 Yao Qi <yao@codesourcery.com>
2976
2977 PR build/17104
2978 * configure.ac: Use local variable 'pos'.
2979 * configure: Regenerated.
2980
d769e349
DE
29812014-08-11 Doug Evans <dje@google.com>
2982
2983 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2984 message, it is redundant with "Reading symbols from ..." message.
2985
24f1235e
DE
29862014-08-10 Doug Evans <xdje42@gmail.com>
2987
2988 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2989
dcd2e6ef
YQ
29902014-08-09 Yao Qi <yao@codesourcery.com>
2991
2992 PR remote/9053
2993 * remote.c (remote_xfer_partial): Remove dead code.
2994
070bdf0b
AA
29952014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2996
2997 * ia64-linux-tdep.c: Include "regset.h".
2998 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2999 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3000 (ia64_linux_supply_fpregset): New function.
3001 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3002 (ia64_linux_regset_from_core_section): New function.
3003 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3004 method.
3005
08f9f542
AA
30062014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3007
3008 * m68klinux-tdep.c: Include "regset.h".
3009 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3010 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3011 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3012 (m68k_linux_regset_from_core_section): New function.
3013 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3014 method.
3015
8f1cee41
AA
30162014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3017
3018 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3019 function. Move logic to...
3020 (tilegx_linux_regmap): ... this new register map.
3021 (tilegx_linux_regset): Refer to register map, replace supply
3022 method by regcache_supply_regset, and add collect method.
3023 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3024 TILEGX_FIRST_EASY_REGNUM.
3025
c5741217
AA
30262014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3027
3028 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3029 that calls regcache_supply_regset and handles the EPC register
3030 separately. Move main logic to...
3031 (score7_linux_gregmap): ... this new register map.
3032 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3033 (score7_linux_gregset): Refer to register map. Add collect method.
3034 (score7_linux_regset_from_core_section): Replace
3035 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3036 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3037 (struct regset): Delete unused forward declaraction.
3038 (struct pt_regs): Delete structure definition.
3039 (elf_gregset_t): Delete typedef.
3040
81580573
AA
30412014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3042
3043 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3044 (nios2_core_regset): Add collect method.
3045
ba199d7d
AA
30462014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3047
3048 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3049 platform-independent and don't write to read-only input buffer.
3050 (m32r_linux_collect_gregset): New function.
3051 (m32r_linux_gregset): Add collect method.
3052
0006a9da
AA
30532014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3054
3055 * hppa-linux-tdep.c (greg_map): Rename to...
3056 (hppa_linux_gregmap): ... this. Also convert to
3057 regcache_map_entry format.
3058 (hppa_linux_supply_regset): Delete function.
3059 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3060 (hppa_linux_fpregmap): ... this new register map.
3061 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3062 register map, replace supply method by regcache_supply_regset, and
3063 add collect method regcache_collect_regset.
3064
901e1b23
AA
30652014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3066
3067 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3068 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3069 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3070 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3071 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3072 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3073 (frv_linux_supply_gregset): Replace main logic by call to
3074 regcache_supply_regset, but keep clearing gr32-gr63.
3075 (frv_linux_supply_fpregset): Delete function.
3076 (frv_linux_gregset): Refer to appropriate register map and add
3077 regcache_collect_regset as the collect method.
3078 (frv_linux_fpregset): Likewise. Also exchange the supply method
3079 by regcache_supply_regset.
3080
1d6e7555
AA
30812014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3082
3083 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3084 by call to alpha_supply_int_regs.
3085 (alpha_linux_collect_gregset): New function.
3086 (alpha_linux_supply_fpregset): Replace logic by call to
3087 alpha_supply_fp_regs.
3088 (alpha_linux_collect_fpregset): New function.
3089 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3090
d4d793bf
AA
30912014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3092
3093 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3094 by call to regcache_collect_regset.
3095 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3096 instead of aarch64_linux_supply_gregset/_fpregset.
3097 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3098 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3099 header file instead.
3100 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3101 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3102 functions. Move logic to ...
3103 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3104 register maps.
3105 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3106 refer to new register maps, replace *_regset_from_core by
3107 regcache_supply_regset, and also use regcache_collect_regset.
3108 * aarch64-linux-tdep.h: Include "regset.h".
3109 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3110 Delete prototypes.
3111 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3112 macros, moved from C source file.
3113 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3114 variable declarations.
3115
99b7da5d
AA
31162014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3117
3118 * s390-linux-nat.c: Include "regset.h".
3119 (regmap_gregset): Delete macro.
3120 (s390_64_regmap_gregset): New register map for
3121 regcache_supply/_collect_regset.
3122 (s390_64_gregset): New regset.
3123 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3124 (regmap_fpregset): Delete macro.
3125 (s390_native_supply, s390_native_collect): Delete functions.
3126 (supply_gregset, fill_gregset): Replace s390-specific regmap
3127 handling by a call to regcache_supply/_collect_regset.
3128 (supply_fpregset, fill_fpregset): Call regcache_supply/
3129 _collect_regset instead of s390_native_supply/_collect.
3130 (fetch_regset, store_regset): Likewise. Also change the last
3131 parameter to a regset instead of a regmap.
3132 (s390_linux_fetch_inferior_registers)
3133 (390_linux_store_inferior_registers): Adjust last parameter in
3134 calls to fetch_regset and store_regset.
3135 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3136 (s390_gregmap): ... this. Also make static const and convert to
3137 regcache_map_entry format.
3138 (s390x_regmap_gregset): Delete.
3139 (s390_regmap_fpregset): Rename to...
3140 (s390_fpregmap): ... this. Make static const and convert to
3141 regcache_map_entry format.
3142 (s390_regmap_upper, s390_regmap_last_break)
3143 (s390x_regmap_last_break, s390_regmap_system_call)
3144 (s390_regmap_tdb): Likewise.
3145 (s390_supply_regset, s390_collect_regset): Remove functions.
3146 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3147 s390_supply_regset.
3148 (s390_gregset, s390_fpregset, s390_upper_regset)
3149 (s390_last_break_regset, s390x_last_break_regset)
3150 (s390_system_call_regset, s390_tdb_regset): Make global and
3151 replace s390_supply/_collect_regset by regcache_supply/
3152 _collect_regset.
3153 (s390x_gregset): Delete.
3154 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3155 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3156 (s390_regmap_fpregset, s390_regmap_last_break)
3157 (s390x_regmap_last_break, s390_regmap_system_call)
3158 (s390_regmap_tdb): Delete global variable declarations.
3159 (s390_gregset, s390_fpregset, s390_last_break_regset)
3160 (s390x_last_break_regset, s390_system_call_regset)
3161 (s390_tdb_regset): New global variable declarations.
3162
0b309272
AA
31632014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3164
3165 * regcache.c: Include "regset.h".
3166 (regcache_transfer_regset): New local function.
3167 (regcache_supply_regset, regcache_collect_regset): New functions.
3168 * regcache.h (struct regcache_map_entry): New structure.
3169 (REGCACHE_MAP_SKIP): New enum value.
3170 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3171
7fefa8d7
AA
31722014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3173
3174 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3175 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3176 (ppc_linux_collect_gregset ): Likewise.
3177 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3178 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3179 (ppc_collect_vrregset): Likewise.
3180 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3181 Likewise.
3182
96c4f946
YQ
31832014-08-07 Yao Qi <yao@codesourcery.com>
3184
3185 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3186 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3187 * remote.c (remote_read_bytes): Likewise.
3188
fffbe6a8
YQ
31892014-08-07 Yao Qi <yao@codesourcery.com>
3190
3191 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3192
5ee8a82c
YQ
31932014-08-07 Yao Qi <yao@codesourcery.com>
3194
3195 PR remote/17230
3196 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3197 TARGET_XFER_OK instead of 0.
3198
bb974a24
GB
31992014-08-07 Gary Benson <gbenson@redhat.com>
3200
3201 * common/common-defs.h: Include errno.h.
3202 * defs.h: Do not include errno.h.
3203 * ada-typeprint.c: Likewise.
3204 * c-typeprint.c: Likewise.
3205 * core-regset.c: Likewise.
3206 * corefile.c: Likewise.
3207 * corelow.c: Likewise.
3208 * event-loop.c: Likewise.
3209 * f-typeprint.c: Likewise.
3210 * gnu-nat.c: Likewise.
3211 * go32-nat.c: Likewise.
3212 * i386gnu-nat.c: Likewise.
3213 * m2-typeprint.c: Likewise.
3214 * nat/linux-btrace.c: Likewise.
3215 * p-typeprint.c: Likewise.
3216 * procfs.c: Likewise.
3217 * remote-sim.c: Likewise.
3218 * rs6000-nat.c: Likewise.
3219 * target.c: Likewise.
3220 * typeprint.c: Likewise.
3221 * ui-file.c: Likewise.
3222 * valops.c: Likewise.
3223 * valprint.c: Likewise.
3224
6d3d12eb
GB
32252014-08-07 Gary Benson <gbenson@redhat.com>
3226
3227 * common/common-defs.h: Include string.h.
3228 * aarch64-tdep.c: Do not include string.h.
3229 * ada-exp.y: Likewise.
3230 * ada-lang.c: Likewise.
3231 * ada-lex.l: Likewise.
3232 * ada-typeprint.c: Likewise.
3233 * ada-valprint.c: Likewise.
3234 * aix-thread.c: Likewise.
3235 * alpha-linux-tdep.c: Likewise.
3236 * alpha-mdebug-tdep.c: Likewise.
3237 * alpha-nat.c: Likewise.
3238 * alpha-osf1-tdep.c: Likewise.
3239 * alpha-tdep.c: Likewise.
3240 * alphanbsd-tdep.c: Likewise.
3241 * amd64-dicos-tdep.c: Likewise.
3242 * amd64-linux-tdep.c: Likewise.
3243 * amd64-nat.c: Likewise.
3244 * amd64-sol2-tdep.c: Likewise.
3245 * amd64fbsd-tdep.c: Likewise.
3246 * amd64obsd-tdep.c: Likewise.
3247 * arch-utils.c: Likewise.
3248 * arm-linux-nat.c: Likewise.
3249 * arm-linux-tdep.c: Likewise.
3250 * arm-tdep.c: Likewise.
3251 * arm-wince-tdep.c: Likewise.
3252 * armbsd-tdep.c: Likewise.
3253 * armnbsd-nat.c: Likewise.
3254 * armnbsd-tdep.c: Likewise.
3255 * armobsd-tdep.c: Likewise.
3256 * avr-tdep.c: Likewise.
3257 * ax-gdb.c: Likewise.
3258 * ax-general.c: Likewise.
3259 * bcache.c: Likewise.
3260 * bfin-tdep.c: Likewise.
3261 * breakpoint.c: Likewise.
3262 * build-id.c: Likewise.
3263 * buildsym.c: Likewise.
3264 * c-exp.y: Likewise.
3265 * c-lang.c: Likewise.
3266 * c-typeprint.c: Likewise.
3267 * c-valprint.c: Likewise.
3268 * charset.c: Likewise.
3269 * cli-out.c: Likewise.
3270 * cli/cli-cmds.c: Likewise.
3271 * cli/cli-decode.c: Likewise.
3272 * cli/cli-dump.c: Likewise.
3273 * cli/cli-interp.c: Likewise.
3274 * cli/cli-logging.c: Likewise.
3275 * cli/cli-script.c: Likewise.
3276 * cli/cli-setshow.c: Likewise.
3277 * cli/cli-utils.c: Likewise.
3278 * coffread.c: Likewise.
3279 * common/agent.c: Likewise.
3280 * common/buffer.c: Likewise.
3281 * common/buffer.h: Likewise.
3282 * common/common-utils.c: Likewise.
3283 * common/filestuff.c: Likewise.
3284 * common/filestuff.c: Likewise.
3285 * common/format.c: Likewise.
3286 * common/print-utils.c: Likewise.
3287 * common/rsp-low.c: Likewise.
3288 * common/signals.c: Likewise.
3289 * common/vec.h: Likewise.
3290 * common/xml-utils.c: Likewise.
3291 * core-regset.c: Likewise.
3292 * corefile.c: Likewise.
3293 * corelow.c: Likewise.
3294 * cp-abi.c: Likewise.
3295 * cp-name-parser.y: Likewise.
3296 * cp-support.c: Likewise.
3297 * cp-valprint.c: Likewise.
3298 * cris-tdep.c: Likewise.
3299 * d-exp.y: Likewise.
3300 * darwin-nat.c: Likewise.
3301 * dbxread.c: Likewise.
3302 * dcache.c: Likewise.
3303 * demangle.c: Likewise.
3304 * dicos-tdep.c: Likewise.
3305 * disasm.c: Likewise.
3306 * doublest.c: Likewise.
3307 * dsrec.c: Likewise.
3308 * dummy-frame.c: Likewise.
3309 * dwarf2-frame.c: Likewise.
3310 * dwarf2loc.c: Likewise.
3311 * dwarf2read.c: Likewise.
3312 * elfread.c: Likewise.
3313 * environ.c: Likewise.
3314 * eval.c: Likewise.
3315 * event-loop.c: Likewise.
3316 * exceptions.c: Likewise.
3317 * exec.c: Likewise.
3318 * expprint.c: Likewise.
3319 * f-exp.y: Likewise.
3320 * f-lang.c: Likewise.
3321 * f-typeprint.c: Likewise.
3322 * f-valprint.c: Likewise.
3323 * fbsd-nat.c: Likewise.
3324 * findcmd.c: Likewise.
3325 * findvar.c: Likewise.
3326 * fork-child.c: Likewise.
3327 * frame.c: Likewise.
3328 * frv-linux-tdep.c: Likewise.
3329 * frv-tdep.c: Likewise.
3330 * gdb.c: Likewise.
3331 * gdb_bfd.c: Likewise.
3332 * gdbarch.c: Likewise.
3333 * gdbarch.sh: Likewise.
3334 * gdbtypes.c: Likewise.
3335 * gnu-nat.c: Likewise.
3336 * gnu-v2-abi.c: Likewise.
3337 * gnu-v3-abi.c: Likewise.
3338 * go-exp.y: Likewise.
3339 * go-lang.c: Likewise.
3340 * go32-nat.c: Likewise.
3341 * guile/guile.c: Likewise.
3342 * guile/scm-auto-load.c: Likewise.
3343 * hppa-hpux-tdep.c: Likewise.
3344 * hppa-linux-nat.c: Likewise.
3345 * hppanbsd-tdep.c: Likewise.
3346 * hppaobsd-tdep.c: Likewise.
3347 * i386-cygwin-tdep.c: Likewise.
3348 * i386-dicos-tdep.c: Likewise.
3349 * i386-linux-tdep.c: Likewise.
3350 * i386-nto-tdep.c: Likewise.
3351 * i386-sol2-tdep.c: Likewise.
3352 * i386-tdep.c: Likewise.
3353 * i386bsd-tdep.c: Likewise.
3354 * i386gnu-nat.c: Likewise.
3355 * i386nbsd-tdep.c: Likewise.
3356 * i386obsd-tdep.c: Likewise.
3357 * i387-tdep.c: Likewise.
3358 * ia64-libunwind-tdep.c: Likewise.
3359 * ia64-linux-nat.c: Likewise.
3360 * inf-child.c: Likewise.
3361 * inf-ptrace.c: Likewise.
3362 * inf-ttrace.c: Likewise.
3363 * infcall.c: Likewise.
3364 * infcmd.c: Likewise.
3365 * inflow.c: Likewise.
3366 * infrun.c: Likewise.
3367 * interps.c: Likewise.
3368 * iq2000-tdep.c: Likewise.
3369 * irix5-nat.c: Likewise.
3370 * jv-exp.y: Likewise.
3371 * jv-lang.c: Likewise.
3372 * jv-typeprint.c: Likewise.
3373 * jv-valprint.c: Likewise.
3374 * language.c: Likewise.
3375 * linux-fork.c: Likewise.
3376 * linux-nat.c: Likewise.
3377 * lm32-tdep.c: Likewise.
3378 * m2-exp.y: Likewise.
3379 * m2-typeprint.c: Likewise.
3380 * m32c-tdep.c: Likewise.
3381 * m32r-linux-nat.c: Likewise.
3382 * m32r-linux-tdep.c: Likewise.
3383 * m32r-rom.c: Likewise.
3384 * m32r-tdep.c: Likewise.
3385 * m68hc11-tdep.c: Likewise.
3386 * m68k-tdep.c: Likewise.
3387 * m68kbsd-tdep.c: Likewise.
3388 * m68klinux-nat.c: Likewise.
3389 * m68klinux-tdep.c: Likewise.
3390 * m88k-tdep.c: Likewise.
3391 * machoread.c: Likewise.
3392 * macrocmd.c: Likewise.
3393 * main.c: Likewise.
3394 * mdebugread.c: Likewise.
3395 * mem-break.c: Likewise.
3396 * memattr.c: Likewise.
3397 * memory-map.c: Likewise.
3398 * mep-tdep.c: Likewise.
3399 * mi/mi-cmd-break.c: Likewise.
3400 * mi/mi-cmd-disas.c: Likewise.
3401 * mi/mi-cmd-env.c: Likewise.
3402 * mi/mi-cmd-stack.c: Likewise.
3403 * mi/mi-cmd-var.c: Likewise.
3404 * mi/mi-cmds.c: Likewise.
3405 * mi/mi-console.c: Likewise.
3406 * mi/mi-getopt.c: Likewise.
3407 * mi/mi-interp.c: Likewise.
3408 * mi/mi-main.c: Likewise.
3409 * mi/mi-parse.c: Likewise.
3410 * microblaze-rom.c: Likewise.
3411 * microblaze-tdep.c: Likewise.
3412 * mingw-hdep.c: Likewise.
3413 * minidebug.c: Likewise.
3414 * minsyms.c: Likewise.
3415 * mips-irix-tdep.c: Likewise.
3416 * mips-linux-tdep.c: Likewise.
3417 * mips-tdep.c: Likewise.
3418 * mips64obsd-tdep.c: Likewise.
3419 * mipsnbsd-tdep.c: Likewise.
3420 * mipsread.c: Likewise.
3421 * mn10300-linux-tdep.c: Likewise.
3422 * mn10300-tdep.c: Likewise.
3423 * monitor.c: Likewise.
3424 * moxie-tdep.c: Likewise.
3425 * mt-tdep.c: Likewise.
3426 * nat/linux-btrace.c: Likewise.
3427 * nat/linux-osdata.c: Likewise.
3428 * nat/linux-procfs.c: Likewise.
3429 * nat/linux-ptrace.c: Likewise.
3430 * nat/linux-waitpid.c: Likewise.
3431 * nbsd-tdep.c: Likewise.
3432 * nios2-linux-tdep.c: Likewise.
3433 * nto-procfs.c: Likewise.
3434 * nto-tdep.c: Likewise.
3435 * objc-lang.c: Likewise.
3436 * objfiles.c: Likewise.
3437 * opencl-lang.c: Likewise.
3438 * osabi.c: Likewise.
3439 * osdata.c: Likewise.
3440 * p-exp.y: Likewise.
3441 * p-lang.c: Likewise.
3442 * p-typeprint.c: Likewise.
3443 * parse.c: Likewise.
3444 * posix-hdep.c: Likewise.
3445 * ppc-linux-nat.c: Likewise.
3446 * ppc-sysv-tdep.c: Likewise.
3447 * ppcfbsd-tdep.c: Likewise.
3448 * ppcnbsd-tdep.c: Likewise.
3449 * ppcobsd-tdep.c: Likewise.
3450 * printcmd.c: Likewise.
3451 * procfs.c: Likewise.
3452 * prologue-value.c: Likewise.
3453 * python/py-auto-load.c: Likewise.
3454 * python/py-gdb-readline.c: Likewise.
3455 * ravenscar-thread.c: Likewise.
3456 * regcache.c: Likewise.
3457 * registry.c: Likewise.
3458 * remote-fileio.c: Likewise.
3459 * remote-m32r-sdi.c: Likewise.
3460 * remote-mips.c: Likewise.
3461 * remote-notif.c: Likewise.
3462 * remote-sim.c: Likewise.
3463 * remote.c: Likewise.
3464 * reverse.c: Likewise.
3465 * rs6000-aix-tdep.c: Likewise.
3466 * ser-base.c: Likewise.
3467 * ser-go32.c: Likewise.
3468 * ser-mingw.c: Likewise.
3469 * ser-pipe.c: Likewise.
3470 * ser-tcp.c: Likewise.
3471 * ser-unix.c: Likewise.
3472 * serial.c: Likewise.
3473 * sh-tdep.c: Likewise.
3474 * sh64-tdep.c: Likewise.
3475 * shnbsd-tdep.c: Likewise.
3476 * skip.c: Likewise.
3477 * sol-thread.c: Likewise.
3478 * solib-dsbt.c: Likewise.
3479 * solib-frv.c: Likewise.
3480 * solib-osf.c: Likewise.
3481 * solib-som.c: Likewise.
3482 * solib-spu.c: Likewise.
3483 * solib-target.c: Likewise.
3484 * solib.c: Likewise.
3485 * somread.c: Likewise.
3486 * source.c: Likewise.
3487 * sparc-nat.c: Likewise.
3488 * sparc-sol2-tdep.c: Likewise.
3489 * sparc-tdep.c: Likewise.
3490 * sparc64-tdep.c: Likewise.
3491 * sparc64fbsd-tdep.c: Likewise.
3492 * sparc64nbsd-tdep.c: Likewise.
3493 * sparcnbsd-tdep.c: Likewise.
3494 * spu-linux-nat.c: Likewise.
3495 * spu-multiarch.c: Likewise.
3496 * spu-tdep.c: Likewise.
3497 * stabsread.c: Likewise.
3498 * stack.c: Likewise.
3499 * std-regs.c: Likewise.
3500 * symfile.c: Likewise.
3501 * symmisc.c: Likewise.
3502 * symtab.c: Likewise.
3503 * target.c: Likewise.
3504 * thread.c: Likewise.
3505 * tilegx-linux-nat.c: Likewise.
3506 * tilegx-tdep.c: Likewise.
3507 * top.c: Likewise.
3508 * tracepoint.c: Likewise.
3509 * tui/tui-command.c: Likewise.
3510 * tui/tui-data.c: Likewise.
3511 * tui/tui-disasm.c: Likewise.
3512 * tui/tui-file.c: Likewise.
3513 * tui/tui-layout.c: Likewise.
3514 * tui/tui-out.c: Likewise.
3515 * tui/tui-regs.c: Likewise.
3516 * tui/tui-source.c: Likewise.
3517 * tui/tui-stack.c: Likewise.
3518 * tui/tui-win.c: Likewise.
3519 * tui/tui-windata.c: Likewise.
3520 * tui/tui-winsource.c: Likewise.
3521 * typeprint.c: Likewise.
3522 * ui-file.c: Likewise.
3523 * ui-out.c: Likewise.
3524 * user-regs.c: Likewise.
3525 * utils.c: Likewise.
3526 * v850-tdep.c: Likewise.
3527 * valarith.c: Likewise.
3528 * valops.c: Likewise.
3529 * valprint.c: Likewise.
3530 * value.c: Likewise.
3531 * varobj.c: Likewise.
3532 * vax-tdep.c: Likewise.
3533 * vaxnbsd-tdep.c: Likewise.
3534 * vaxobsd-tdep.c: Likewise.
3535 * windows-nat.c: Likewise.
3536 * xcoffread.c: Likewise.
3537 * xml-support.c: Likewise.
3538 * xstormy16-tdep.c: Likewise.
3539 * xtensa-linux-nat.c: Likewise.
3540
dccbb609
GB
35412014-08-07 Gary Benson <gbenson@redhat.com>
3542
3543 * common/common-defs.h: Include gdb_assert.h.
3544 * aarch64-tdep.c: Do not include gdb_assert.h.
3545 * addrmap.c: Likewise.
3546 * aix-thread.c: Likewise.
3547 * alpha-linux-tdep.c: Likewise.
3548 * alpha-mdebug-tdep.c: Likewise.
3549 * alphanbsd-tdep.c: Likewise.
3550 * amd64-nat.c: Likewise.
3551 * amd64-tdep.c: Likewise.
3552 * amd64bsd-nat.c: Likewise.
3553 * amd64fbsd-nat.c: Likewise.
3554 * amd64fbsd-tdep.c: Likewise.
3555 * amd64nbsd-nat.c: Likewise.
3556 * amd64nbsd-tdep.c: Likewise.
3557 * amd64obsd-nat.c: Likewise.
3558 * amd64obsd-tdep.c: Likewise.
3559 * arch-utils.c: Likewise.
3560 * arm-tdep.c: Likewise.
3561 * armbsd-tdep.c: Likewise.
3562 * auxv.c: Likewise.
3563 * bcache.c: Likewise.
3564 * bfin-tdep.c: Likewise.
3565 * blockframe.c: Likewise.
3566 * breakpoint.c: Likewise.
3567 * bsd-kvm.c: Likewise.
3568 * bsd-uthread.c: Likewise.
3569 * buildsym.c: Likewise.
3570 * c-exp.y: Likewise.
3571 * c-lang.c: Likewise.
3572 * charset.c: Likewise.
3573 * cleanups.c: Likewise.
3574 * cli-out.c: Likewise.
3575 * cli/cli-decode.c: Likewise.
3576 * cli/cli-dump.c: Likewise.
3577 * cli/cli-logging.c: Likewise.
3578 * cli/cli-script.c: Likewise.
3579 * cli/cli-utils.c: Likewise.
3580 * coffread.c: Likewise.
3581 * common/common-utils.c: Likewise.
3582 * common/queue.h: Likewise.
3583 * common/signals.c: Likewise.
3584 * common/vec.h: Likewise.
3585 * complaints.c: Likewise.
3586 * completer.c: Likewise.
3587 * corelow.c: Likewise.
3588 * cp-abi.c: Likewise.
3589 * cp-name-parser.y: Likewise.
3590 * cp-namespace.c: Likewise.
3591 * cp-support.c: Likewise.
3592 * cris-tdep.c: Likewise.
3593 * dbxread.c: Likewise.
3594 * dictionary.c: Likewise.
3595 * doublest.c: Likewise.
3596 * dsrec.c: Likewise.
3597 * dummy-frame.c: Likewise.
3598 * dwarf2-frame-tailcall.c: Likewise.
3599 * dwarf2-frame.c: Likewise.
3600 * dwarf2expr.c: Likewise.
3601 * dwarf2loc.c: Likewise.
3602 * dwarf2read.c: Likewise.
3603 * eval.c: Likewise.
3604 * event-loop.c: Likewise.
3605 * exceptions.c: Likewise.
3606 * expprint.c: Likewise.
3607 * f-valprint.c: Likewise.
3608 * fbsd-nat.c: Likewise.
3609 * findvar.c: Likewise.
3610 * frame-unwind.c: Likewise.
3611 * frame.c: Likewise.
3612 * frv-tdep.c: Likewise.
3613 * gcore.c: Likewise.
3614 * gdb-dlfcn.c: Likewise.
3615 * gdb_bfd.c: Likewise.
3616 * gdbarch.c: Likewise.
3617 * gdbarch.sh: Likewise.
3618 * gdbtypes.c: Likewise.
3619 * gnu-nat.c: Likewise.
3620 * gnu-v3-abi.c: Likewise.
3621 * go-lang.c: Likewise.
3622 * guile/scm-exception.c: Likewise.
3623 * guile/scm-gsmob.c: Likewise.
3624 * guile/scm-lazy-string.c: Likewise.
3625 * guile/scm-math.c: Likewise.
3626 * guile/scm-pretty-print.c: Likewise.
3627 * guile/scm-safe-call.c: Likewise.
3628 * guile/scm-utils.c: Likewise.
3629 * guile/scm-value.c: Likewise.
3630 * h8300-tdep.c: Likewise.
3631 * hppa-hpux-nat.c: Likewise.
3632 * hppa-tdep.c: Likewise.
3633 * hppanbsd-tdep.c: Likewise.
3634 * hppaobsd-tdep.c: Likewise.
3635 * i386-darwin-nat.c: Likewise.
3636 * i386-darwin-tdep.c: Likewise.
3637 * i386-nto-tdep.c: Likewise.
3638 * i386-tdep.c: Likewise.
3639 * i386bsd-nat.c: Likewise.
3640 * i386fbsd-tdep.c: Likewise.
3641 * i386gnu-nat.c: Likewise.
3642 * i386nbsd-tdep.c: Likewise.
3643 * i386obsd-tdep.c: Likewise.
3644 * i387-tdep.c: Likewise.
3645 * ia64-libunwind-tdep.c: Likewise.
3646 * ia64-tdep.c: Likewise.
3647 * inf-ptrace.c: Likewise.
3648 * inf-ttrace.c: Likewise.
3649 * infcall.c: Likewise.
3650 * infcmd.c: Likewise.
3651 * infrun.c: Likewise.
3652 * inline-frame.c: Likewise.
3653 * interps.c: Likewise.
3654 * jv-lang.c: Likewise.
3655 * jv-typeprint.c: Likewise.
3656 * linux-fork.c: Likewise.
3657 * linux-nat.c: Likewise.
3658 * linux-thread-db.c: Likewise.
3659 * m32c-tdep.c: Likewise.
3660 * m32r-linux-nat.c: Likewise.
3661 * m32r-tdep.c: Likewise.
3662 * m68k-tdep.c: Likewise.
3663 * m68kbsd-nat.c: Likewise.
3664 * m68kbsd-tdep.c: Likewise.
3665 * m88k-tdep.c: Likewise.
3666 * machoread.c: Likewise.
3667 * macroexp.c: Likewise.
3668 * macrotab.c: Likewise.
3669 * maint.c: Likewise.
3670 * mdebugread.c: Likewise.
3671 * memory-map.c: Likewise.
3672 * mep-tdep.c: Likewise.
3673 * mi/mi-common.c: Likewise.
3674 * microblaze-tdep.c: Likewise.
3675 * mingw-hdep.c: Likewise.
3676 * mips-linux-nat.c: Likewise.
3677 * mips-linux-tdep.c: Likewise.
3678 * mips-tdep.c: Likewise.
3679 * mips64obsd-tdep.c: Likewise.
3680 * mipsnbsd-tdep.c: Likewise.
3681 * mn10300-linux-tdep.c: Likewise.
3682 * mn10300-tdep.c: Likewise.
3683 * moxie-tdep.c: Likewise.
3684 * mt-tdep.c: Likewise.
3685 * nat/linux-btrace.c: Likewise.
3686 * nat/linux-osdata.c: Likewise.
3687 * nat/linux-ptrace.c: Likewise.
3688 * nat/mips-linux-watch.c: Likewise.
3689 * nios2-linux-tdep.c: Likewise.
3690 * nios2-tdep.c: Likewise.
3691 * objc-lang.c: Likewise.
3692 * objfiles.c: Likewise.
3693 * obsd-nat.c: Likewise.
3694 * opencl-lang.c: Likewise.
3695 * osabi.c: Likewise.
3696 * parse.c: Likewise.
3697 * ppc-linux-nat.c: Likewise.
3698 * ppc-sysv-tdep.c: Likewise.
3699 * ppcfbsd-nat.c: Likewise.
3700 * ppcfbsd-tdep.c: Likewise.
3701 * ppcnbsd-nat.c: Likewise.
3702 * ppcnbsd-tdep.c: Likewise.
3703 * ppcobsd-nat.c: Likewise.
3704 * ppcobsd-tdep.c: Likewise.
3705 * printcmd.c: Likewise.
3706 * procfs.c: Likewise.
3707 * prologue-value.c: Likewise.
3708 * psymtab.c: Likewise.
3709 * python/py-lazy-string.c: Likewise.
3710 * python/py-value.c: Likewise.
3711 * regcache.c: Likewise.
3712 * reggroups.c: Likewise.
3713 * registry.c: Likewise.
3714 * remote-sim.c: Likewise.
3715 * remote.c: Likewise.
3716 * rs6000-aix-tdep.c: Likewise.
3717 * rs6000-tdep.c: Likewise.
3718 * s390-linux-tdep.c: Likewise.
3719 * score-tdep.c: Likewise.
3720 * ser-base.c: Likewise.
3721 * ser-mingw.c: Likewise.
3722 * sh-tdep.c: Likewise.
3723 * sh64-tdep.c: Likewise.
3724 * solib-darwin.c: Likewise.
3725 * solib-spu.c: Likewise.
3726 * solib-svr4.c: Likewise.
3727 * source.c: Likewise.
3728 * sparc-nat.c: Likewise.
3729 * sparc-sol2-tdep.c: Likewise.
3730 * sparc-tdep.c: Likewise.
3731 * sparc64-sol2-tdep.c: Likewise.
3732 * sparc64-tdep.c: Likewise.
3733 * sparc64fbsd-tdep.c: Likewise.
3734 * sparc64nbsd-tdep.c: Likewise.
3735 * sparc64obsd-tdep.c: Likewise.
3736 * sparcnbsd-tdep.c: Likewise.
3737 * sparcobsd-tdep.c: Likewise.
3738 * spu-multiarch.c: Likewise.
3739 * spu-tdep.c: Likewise.
3740 * stabsread.c: Likewise.
3741 * stack.c: Likewise.
3742 * symfile.c: Likewise.
3743 * symtab.c: Likewise.
3744 * target-descriptions.c: Likewise.
3745 * target-memory.c: Likewise.
3746 * target.c: Likewise.
3747 * tic6x-linux-tdep.c: Likewise.
3748 * tic6x-tdep.c: Likewise.
3749 * tilegx-linux-nat.c: Likewise.
3750 * tilegx-tdep.c: Likewise.
3751 * top.c: Likewise.
3752 * tramp-frame.c: Likewise.
3753 * tui/tui-out.c: Likewise.
3754 * tui/tui-winsource.c: Likewise.
3755 * ui-out.c: Likewise.
3756 * user-regs.c: Likewise.
3757 * utils.c: Likewise.
3758 * v850-tdep.c: Likewise.
3759 * valops.c: Likewise.
3760 * value.c: Likewise.
3761 * varobj.c: Likewise.
3762 * vax-nat.c: Likewise.
3763 * xml-syscall.c: Likewise.
3764 * xml-tdesc.c: Likewise.
3765 * xstormy16-tdep.c: Likewise.
3766 * xtensa-linux-nat.c: Likewise.
3767 * xtensa-tdep.c: Likewise.
3768
e76df0d0
GB
37692014-08-07 Gary Benson <gbenson@redhat.com>
3770
3771 * common/common-defs.h: Include common-utils.h.
3772 * defs.h: Do not include common-utils.h.
3773 * common/gdb_assert.h: Likewise.
3774 * darwin-nat.h: Likewise.
3775 * nat/linux-btrace.c: Likewise.
3776 * target/waitstatus.h: Likewise.
3777
4cb9c816
GB
37782014-08-07 Gary Benson <gbenson@redhat.com>
3779
3780 * common/common-defs.h: Include ptid.h.
3781 * defs.h: Do not include ptid.h.
3782 * inferior.h: Likewise.
3783 * infrun.h: Likewise.
3784 * nat/linux-btrace.h: Likewise.
3785 * nat/linux-osdata.h: Likewise.
3786 * target/waitstatus.h: Likewise.
3787
3995eeee
GB
37882014-08-07 Gary Benson <gbenson@redhat.com>
3789
3790 * common/common-defs.h: Include gdb_locale.h.
3791 * defs.h: Do not include gdb_locale.h.
3792
cb9f1a9b
GB
37932014-08-07 Gary Benson <gbenson@redhat.com>
3794
3795 * common/common-defs.h: Include gdb/signals.h.
3796 * defs.h: Do not include gdb/signals.h.
3797
a5fceff8
GB
37982014-08-07 Gary Benson <gbenson@redhat.com>
3799
3800 * common/common-defs.h: Include pathmax.h.
3801 * defs.h: Do not include pathmax.h.
3802
b9391142
GB
38032014-08-07 Gary Benson <gbenson@redhat.com>
3804
3805 * common/common-defs.h: Include libiberty.h.
3806 * defs.h: Do not include libiberty.h.
3807 * common/queue.h: Likewise.
3808 * cp-name-parser.y: Likewise.
3809 * mi/mi-cmd-catch.c: Likewise.
3810 * python/python.c: Likewise.
3811
0e443c87
GB
38122014-08-07 Gary Benson <gbenson@redhat.com>
3813
3814 * common/common-defs.h: Include ansidecl.h.
3815 * defs.h: Do not include ansidecl.h.
3816 * common/buffer.h: Likewise.
3817 * common/common-utils.h: Likewise.
3818
8ebb3f56
GB
38192014-08-07 Gary Benson <gbenson@redhat.com>
3820
3821 * common/common-defs.h: Include stddef.h.
3822 * defs.h: Do not include stddef.h.
3823 * common/common-utils.h: Likewise.
3824 * amd64fbsd-nat.c: Likewise.
3825 * bcache.c: Likewise.
3826 * charset.c: Likewise.
3827 * common/buffer.h: Likewise.
3828 * common/vec.h: Likewise.
3829 * i386bsd-nat.c: Likewise.
3830 * nat/linux-btrace.h: Likewise.
3831 * ppcfbsd-nat.c: Likewise.
3832 * ppcnbsd-tdep.h: Likewise.
3833 * ppcobsd-nat.c: Likewise.
3834 * ppcobsd-tdep.h: Likewise.
3835 * python/py-gdb-readline.c: Likewise.
3836
8980bdf6
GB
38372014-08-07 Gary Benson <gbenson@redhat.com>
3838
3839 * common/common-defs.h: Include stdarg.h.
3840 * defs.h: Do not include stdarg.h.
3841 * ada-lang.c: Likewise.
3842 * common/common-utils.h: Likewise.
3843 * guile/scm-string.c: Likewise.
3844 * guile/scm-utils.c: Likewise.
3845 * m32c-tdep.c: Likewise.
3846
d7096f71
GB
38472014-08-07 Gary Benson <gbenson@redhat.com>
3848
3849 * common/common-defs.h: Include stdlib.h.
3850 * defs.h: Do not include stdlib.h.
3851 * addrmap.c: Likewise.
3852 * bcache.c: Likewise.
3853 * common/buffer.c: Likewise.
3854 * common/common-utils.c: Likewise.
3855 * cp-name-parser.y: Likewise.
3856 * go32-nat.c: Likewise.
3857 * mn10300-linux-tdep.c: Likewise.
3858 * nat/linux-osdata.c: Likewise.
3859 * tui/tui.c: Likewise.
3860 * windows-nat.c: Likewise.
3861
d02f550d
GB
38622014-08-07 Gary Benson <gbenson@redhat.com>
3863
3864 * common/common-defs.h: Include stdio.h.
3865 * defs.h: Do not include stdio.h.
3866 * ada-lang.c: Likewise.
3867 * common/buffer.c: Likewise.
3868 * common/common-utils.c: Likewise.
3869 * cp-name-parser.y: Likewise.
3870 * gnu-nat.c: Likewise.
3871 * go32-nat.c: Likewise.
3872 * i386gnu-nat.c: Likewise.
3873 * proc-api.c: Likewise.
3874 * proc-events.c: Likewise.
3875 * proc-flags.c: Likewise.
3876 * proc-why.c: Likewise.
3877 * python/python-internal.h: Likewise.
3878 * target-memory.c: Likewise.
3879 * tui/tui-io.c: Likewise.
3880 * tui/tui.c: Likewise.
3881
b6d7a4bf
SM
38822014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3883
3884 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3885 (scan_dyntag_auxv): Same.
3886
af19829b
YQ
38872014-08-06 Yao Qi <yao@codesourcery.com>
3888
3889 * amd64-linux-nat.c: Remove duplicated include
3890 "x86-linux-nat.h".
3891 * i386-linux-nat.c: Likewise.
3892
8e07a239
YQ
38932014-08-06 Yao Qi <yao@codesourcery.com>
3894
3895 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3896 operand" with "Special opcode" in comments.
3897
7bfe8241
GB
38982014-08-05 Gary Benson <gbenson@redhat.com>
3899
3900 * interps.c (initialize_interps): Remove prototype.
3901 (interpreter_initialized): Remove static global.
3902 (interp_add): Do not call initialize_interps.
3903 (initialize_interps): Remove function.
3904
d6c95504
GB
39052014-08-05 Gary Benson <gbenson@redhat.com>
3906
3907 * utils.c (vwarning): Remove spurious va_end.
3908
241fd515
AM
39092014-08-05 Alan Modra <amodra@gmail.com>
3910
3911 * charset.c (convert_between_encodings): Cast result of obstack_base.
3912 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3913 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3914 (read_unwind_info): Use size_t for some locals.
3915 * jit.c (finalize_symtab): Likewise.
3916 * utils.c (hashtab_obstack_allocate): Likewise.
3917 * symmisc.c (print_objfile_statistics): Update format strings.
3918
dc304a94
JK
39192014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3920
3921 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3922 (Changes in GDB 7.8): ... here.
3923
3cecbbbe
TT
39242014-08-04 Tom Tromey <tromey@redhat.com>
3925
3926 * target.c (set_targetdebug): New function.
3927 (initialize_targets): Pass set_targetdebug when creating "set
3928 debug target".
3929
6908c509
JB
39302014-08-01 Joel Brobecker <brobecker@adacore.com>
3931
3932 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3933 if detecting a variable-sized field that is not the last field.
3934 Fix struct type length computation.
3935
53e8f97d
JB
39362014-08-01 Joel Brobecker <brobecker@adacore.com>
3937
3938 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3939 Add debug trace.
3940
e068c55d
JB
39412014-08-01 Joel Brobecker <brobecker@adacore.com>
3942
3943 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3944 Remove "+ 8" offset in computation of CHAIN_VMA.
3945
4d4ca2a1
DE
39462014-07-31 Doug Evans <dje@google.com>
3947
3948 * inflow.c (child_terminal_inferior): Add comment.
3949 (child_terminal_ours_for_output): Add comment.
3950 (child_terminal_ours): Add comment.
3951 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3952 (linux_nat_terminal_ours): Add comment.
3953
462f517e
GB
39542014-07-31 Gary Benson <gbenson@redhat.com>
3955
3956 * common/btrace-common.h: Do not include defs.h or server.h.
3957 * nat/mips-linux-watch.h: Likewise.
3958 * gdb-dlfcn.h: Do not include defs.h.
3959 * tracefile.h: Likewise.
3960
74228e77
RM
39612014-07-30 Roland McGrath <mcgrathr@google.com>
3962
3963 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3964
014f9477
TT
39652014-07-30 Tom Tromey <tromey@redhat.com>
3966
3967 * bsd-kvm.c (bsd_kvm_open): Constify.
3968 * corelow.c (core_open): Constify.
3969 * ctf.c (ctf_open): Constify.
3970 * dbug-rom.c (dbug_open): Constify.
3971 * exec.c (exec_open): Constify.
3972 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3973 * microblaze-rom.c (picobug_open): Constify.
3974 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3975 Constify.
3976 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3977 * record-btrace.c (record_btrace_open): Constify.
3978 * record-full.c (record_full_core_open_1, record_full_open_1)
3979 (record_full_open): Constify.
3980 * remote-m32r-sdi.c (m32r_open): Constify.
3981 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3982 (rockhopper_open, lsi_open): Constify.
3983 * remote-sim.c (gdbsim_open): Constify.
3984 * remote.c (remote_open, extended_remote_open, remote_open_1):
3985 Constify.
3986 * target.h (struct target_ops) <to_open>: Make "arg" const.
3987 * tracefile-tfile.c (tfile_open): Constify.
3988
e799154c
TT
39892014-07-30 Tom Tromey <tromey@redhat.com>
3990
3991 * breakpoint.c (map_breakpoint_numbers): Update.
3992 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3993 (get_number_const): New function.
3994 (get_number): Rewrite using get_number_const.
3995 (init_number_or_range): Make "string" const.
3996 (number_is_in_list): Make "list" const.
3997 * cli/cli-utils.h (get_number_const): Declare.
3998 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3999 (init_number_or_range, number_is_in_list): Update.
4000 * printcmd.c (map_display_numbers): Update.
4001 * value.c (value_from_history_ref): Constify.
4002 * value.h (value_from_history_ref): Update.
4003
5f08566b
TT
40042014-07-30 Tom Tromey <tromey@redhat.com>
4005
4006 * corefile.c (hook_type, call_extra_exec_file_hooks)
4007 (specify_exec_file_hook): Constify.
4008 * exec.c (exec_file_attach): Make "filename" const.
4009 * gdbcore.h (deprecated_exec_file_display_hook)
4010 (specify_exec_file_hook, exec_file_attach): Constify.
4011 * main.c (captured_main): Use catch_command_errors_const.
4012
8981c758
TT
40132014-07-30 Tom Tromey <tromey@redhat.com>
4014
4015 * target.c (open_target): New function.
4016 (add_target_with_completer, add_deprecated_target_alias): Use
4017 set_cmd_sfunc, set_cmd_context.
4018 (debug_to_open): Remove.
4019 (setup_target_debug): Update.
4020
a1c7835a
YQ
40212014-07-30 Yao Qi <yao@codesourcery.com>
4022
4023 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4024 comments.
4025 * parse.c (exp_iterate): Update comments.
4026
976411d6
GB
40272014-07-30 Gary Benson <gbenson@redhat.com>
4028
4029 * common/common-defs.h: New file.
4030 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4031 * defs.h: Include common-defs.h.
4032 Do not include config.h or build-gnulib/config.h.
4033
5d4848a4
GB
40342014-07-30 Gary Benson <gbenson@redhat.com>
4035
4036 * common/common-utils.h: Do not include config.h.
4037 * nat/linux-btrace.h: Likewise.
4038
d41f6d8e
GB
40392014-07-30 Gary Benson <gbenson@redhat.com>
4040
4041 * btrace.c: Include defs.h.
4042 * common/ptid.c: Include defs.h or server.h as appropriate.
4043 * nat/mips-linux-watch.c: Likewise.
4044
84202f9c
TT
40452014-07-29 Tom Tromey <tromey@redhat.com>
4046
4047 * target.c (target_is_pushed): Simplify.
4048
2530441c
JB
40492014-07-29 Joel Brobecker <brobecker@adacore.com>
4050
4051 GDB 7.8 released.
4052
7e09a223
YQ
40532014-07-29 Yao Qi <yao@codesourcery.com>
4054
4055 PR gdb/17206
4056 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4057
7ebdbe92
DE
40582014-07-28 Doug Evans <xdje42@gmail.com>
4059
4060 PR guile/17203
4061 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4062 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4063 parameters.
4064
f347ffc9
WN
40652014-07-28 Will Newton <will.newton@linaro.org>
4066
4067 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4068 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4069 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4070 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4071 (THUMB2_EABI_SYSCALL): Likewise.
4072 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4073 struct tramp_frame.
4074 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4075 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4076
37c5f1f7
DE
40772014-07-27 Doug Evans <xdje42@gmail.com>
4078
4079 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4080
0c3abbc7
DE
40812014-07-27 Doug Evans <xdje42@gmail.com>
4082
4083 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4084
e76c5d17
DE
40852014-07-26 Ludovic Courtès <ludo@gnu.org>
4086 Doug Evans <xdje42@gmail.com>
4087
4088 PR guile/17146
4089 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4090 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4091 * configure.ac: Try to use guild to compile an scm file, if it fails
4092 then disable guile support.
4093 * configure: Regenerate.
4094 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4095 GUILE_FILE_LIST.
4096 (GUILE_COMPILED_FILES): New variable.
4097 (GUILE_FILES) Update.
4098 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4099 (stamp-guile): Compile scm files.
4100 * guile/guile.c (boot_guile_support): New function.
4101 (standard_throw_args_p): New function.
4102 (print_standard_throw_error, print_throw_error): New functions.
4103 (handle_boot_error): New function.
4104 (initialize_scheme_side): Rewrite to call boot_guile_support.
4105 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4106 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4107
186fcde0
DE
41082014-07-26 Ludovic Courtès <ludo@gnu.org>
4109 Doug Evans <xdje42@gmail.com>
4110
4111 PR guile/17146
4112 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4113 * guile/lib/gdb/support.scm: New file.
4114 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4115 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4116 All uses updated.
4117 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4118 All uses updated.
4119 (%assert-type): Ditto, and renamed to assert-type.
4120 (%exception-print-style): Delete.
4121
4df42755
DE
41222014-07-26 Doug Evans <xdje42@gmail.com>
4123
4124 PR build/17105
4125 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4126 * configure: Regenerate.
4127 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4128 PYTHON_FILES.
4129 (PYTHON_FILES): New variable.
4130 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4131 (GUILE_FILES): New variable.
4132 (stamp-python, install-python, uninstall-python): Handle empty
4133 file list.
4134 (stamp-guile, install-guile, uninstall-guile): Ditto.
4135
ee7333ae
DE
41362014-07-26 Doug Evans <xdje42@gmail.com>
4137
4138 PR guile/17177
4139 * guile/lib/gdb.scm (pretty-printers): Export.
4140 (set-pretty-printers!): Export.
4141 * guile/lib/gdb/printing.scm (gdb module): Update.
4142 (prepend-pretty-printer!, append-pretty-printer!): Update.
4143 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4144 (pretty_printer_list_var): Delete.
4145 (pretty_printer_list): New static global.
4146 (gdbscm_pretty_printers): New function.
4147 (gdbscm_set_pretty_printers_x): New function.
4148 (ppscm_find_pretty_printer_from_gdb): Update.
4149 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4150 (gdbscm_initialize_pretty_printers): Update.
4151
74edf516
DE
41522014-07-26 Doug Evans <xdje42@gmail.com>
4153
4154 PR 17185
4155 * configure.ac: Add check for header gc/gc.h.
4156 Add check for function setenv.
4157 * configure: Regenerate.
4158 * config.in: Regenerate.
4159 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4160
d54398a7
MR
41612014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4162
4163 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4164 variation in gdbarch matching.
4165
ab16fce8
TT
41662014-07-25 Tom Tromey <tromey@redhat.com>
4167
4168 * exec.c (using_exec_ops): Remove.
4169 (exec_close_1): Update. Remove extraneous block, reindent.
4170 (add_target_sections): Use target_is_pushed.
4171
88056fbb
PA
41722014-07-25 Pedro Alves <palves@redhat.com>
4173
4174 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4175 * monitor.c (monitor_create_inferior): Likewise.
4176 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4177 * remote-sim.c (gdbsim_create_inferior): Likewise.
4178 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4179 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4180 * windows-nat.c (do_initial_windows_stuff): Likewise.
4181
70509625
PA
41822014-07-25 Pedro Alves <palves@redhat.com>
4183
4184 * NEWS: Mention signal passing and "signal" command changes.
4185 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4186 comment.
4187 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4188 call.
4189 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4190 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4191 (jump_command): Adjust clear_proceed_status call.
4192 (signal_command): Warn if other thread that are resumed have
4193 signals that will be delivered. Adjust clear_proceed_status call.
4194 (until_next_command, finish_command)
4195 (proceed_after_attach_callback, attach_command_post_wait)
4196 (attach_command): Adjust clear_proceed_status call.
4197 * infrun.c (proceed_after_vfork_done): Likewise.
4198 (proceed_after_attach_callback): Adjust comment.
4199 (clear_proceed_status_thread): Clear stop_signal if not in pass
4200 state.
4201 (clear_proceed_status_callback): Delete.
4202 (clear_proceed_status): New 'step' parameter. Only clear the
4203 proceed status of threads the command being prepared is about to
4204 resume.
4205 (proceed): If passed in an explicit signal, override stop_signal
4206 with it. Don't pass the last stop signal to the thread we're
4207 resuming.
4208 (init_wait_for_inferior): Adjust clear_proceed_status call.
4209 (switch_back_to_stepped_thread): Clear the signal if it should not
4210 be passed.
4211 * infrun.h (clear_proceed_status): New 'step' parameter.
4212 (user_visible_resume_ptid): Add comment.
4213 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4214 signal is in pass state.
4215 * remote.c (append_pending_thread_resumptions): Likewise.
4216 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4217
d8be2939
TT
42182014-07-25 Tom Tromey <tromey@redhat.com>
4219
4220 * target.h (target_stopped_data_address)
4221 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4222 parentheses.
4223
7d0d9d2b
PL
42242014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4225
4226 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4227 comments.
4228 (avr_pointer_to_address): Likewise.
4229
e9e7f724
TT
42302014-07-24 Tom Tromey <tromey@redhat.com>
4231
4232 * monitor.c (compile_pattern): Update.
4233 * target.h (struct target_ops) <to_shortname, to_longname,
4234 to_doc>: Now const.
4235
1947513d
TT
42362014-07-24 Tom Tromey <tromey@redhat.com>
4237
4238 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4239 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4240 (add_info_alias, add_com): Make "doc" const.
4241 (print_doc_line): Make "str" const.
4242 (delete_cmd): Update.
4243 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4244 (print_doc_line): Update.
4245 * cli/cli-script.c (document_command): Update.
4246 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4247 (add_com, add_info, add_info_alias): Update.
4248 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4249 * python/py-cmd.c (cmdpy_destroyer): Update.
4250
64e61d29
TT
42512014-07-24 Tom Tromey <tromey@redhat.com>
4252
4253 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4254 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4255 (help_cmd_list): Constify.
4256 (lookup_cmd): Update.
4257 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4258 const.
4259 (help_cmd_list, apropos_cmd): Update.
4260 * cli/cli-script.c (show_user): Update.
4261 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4262 * cli/cli-setshow.h (cmd_show_list): Update.
4263 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4264 (cmd_show_list): Update.
4265 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4266 * python/py-cmd.c (cmdpy_destroyer): Update.
4267
429e55ea
TT
42682014-07-24 Tom Tromey <tromey@redhat.com>
4269
4270 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4271 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4272 const.
4273 * command.h (deprecate_cmd): Update.
4274 * maint.c (maintenance_do_deprecate): Add casts.
4275
64669f3b
TT
42762014-07-24 Tom Tromey <tromey@redhat.com>
4277
4278 * cli/cli-decode.c (help_cmd): Make parameter "const".
4279 * cli/cli-decode.h (help_cmd): Update.
4280
d3d3328b
TT
42812014-07-24 Tom Tromey <tromey@redhat.com>
4282
4283 * stack.c (up_silently_base, down_silently_base): Make argument
4284 const.
4285
414842dc
TT
42862014-07-24 Tom Tromey <tromey@redhat.com>
4287
4288 * solib.c (solib_add): Make "pattern" const.
4289 * solib.h (solib_add): Update.
4290
baa336ce
TT
42912014-07-24 Tom Tromey <tromey@redhat.com>
4292
4293 * remote.c (remote_serial_open, print_packet, putpkt)
4294 (putpkt_binary): Constify.
4295 * remote.h (putpkt): Update.
4296
5a19e2d0
TT
42972014-07-24 Tom Tromey <tromey@redhat.com>
4298
4299 * monitor.c (monitor_open): Make "args" const.
4300 * monitor.h (monitor_open): Update.
4301
fc4baa5e
TT
43022014-07-24 Tom Tromey <tromey@redhat.com>
4303
4304 * maint.c (match_bfd_flags): Make "string" const.
4305 (print_bfd_section_info): Remove casts.
4306 (print_objfile_section_info): Make "string" const.
4307
0d5f0dbe
TT
43082014-07-24 Tom Tromey <tromey@redhat.com>
4309
4310 * inf-child.c (inf_child_open_target): Make "arg" const.
4311 * inf-child.h (inf_child_open_target): Update.
4312
41c77899
TT
43132014-07-24 Tom Tromey <tromey@redhat.com>
4314
4315 * environ.c (unset_in_environ): Make "var" const.
4316 * environ.h (unset_in_environ): Update.
4317
93db0d79
TT
43182014-07-24 Tom Tromey <tromey@redhat.com>
4319
4320 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4321 Make "cmd" const.
4322 (scan_filename_with_cleanup): Likewise.
4323 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4324 Make arguments const.
4325 (restore_command): Update.
4326
36d6eb95
PA
43272014-07-24 Pedro Alves <palves@redhat.com>
4328
4329 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4330
8009206a
TT
43312014-07-24 Tom Tromey <tromey@redhat.com>
4332 Gary Benson <gbenson@redhat.com>
4333
4334 * nat/linux-ptrace.c (additional_flags): New global.
4335 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4336 additional_flags; don't check GDBSERVER.
4337 (linux_ptrace_set_additional_flags): New function.
4338 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4339 Declare.
4340 * linux-nat.c (_initialize_linux_nat): Call
4341 linux_ptrace_set_additional_flags.
4342
a7068b60
TT
43432014-07-24 Tom Tromey <tromey@redhat.com>
4344
4345 * make-target-delegates (munge_type, write_debugmethod): New
4346 functions.
4347 (debug_names): New global.
4348 ($TARGET_DEBUG_PRINTER): New global.
4349 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4350 name.
4351 Write debug methods. Generate init_debug_target.
4352 * target-debug.h: New file.
4353 * target-delegates.c: Rebuild.
4354 * target.c: Include target-debug.h.
4355 (debug_target): Hoist definition.
4356 (target_kill, target_get_section_table, target_memory_map)
4357 (target_flash_erase, target_flash_done, target_detach)
4358 (target_disconnect, target_wait, target_resume)
4359 (target_pass_signals, target_program_signals, target_follow_fork)
4360 (target_mourn_inferior, target_search_memory)
4361 (target_thread_address_space, target_close)
4362 (target_find_new_threads, target_core_of_thread)
4363 (target_verify_memory, target_insert_mask_watchpoint)
4364 (target_remove_mask_watchpoint): Remove targetdebug code.
4365 (debug_to_post_attach, debug_to_prepare_to_store)
4366 (debug_to_files_info, debug_to_insert_breakpoint)
4367 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4368 (debug_to_region_ok_for_hw_watchpoint)
4369 (debug_to_can_accel_watchpoint_condition)
4370 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4371 (debug_to_watchpoint_addr_within_range)
4372 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4373 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4374 (debug_to_terminal_init, debug_to_terminal_inferior)
4375 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4376 (debug_to_terminal_save_ours, debug_to_terminal_info)
4377 (debug_to_load, debug_to_post_startup_inferior)
4378 (debug_to_insert_fork_catchpoint)
4379 (debug_to_remove_fork_catchpoint)
4380 (debug_to_insert_vfork_catchpoint)
4381 (debug_to_remove_vfork_catchpoint)
4382 (debug_to_insert_exec_catchpoint)
4383 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4384 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4385 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4386 (setup_target_debug): Call init_debug_target.
4387 * target.h (TARGET_DEBUG_PRINTER): New macro.
4388 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4389 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4390
2c51604d
GB
43912014-07-24 Gary Benson <gbenson@redhat.com>
4392
4393 * exceptions.h (throw_vfatal): Renamed to...
4394 (throw_vquit): New declaration.
4395 (throw_quit): Likewise.
4396 * exceptions.c (throw_vfatal): Renamed to...
4397 (throw_vquit): New function.
4398 (throw_quit): Likewise.
4399 (throw_error): Call throw_verror rather than throw_it.
4400 * utils.h (vfatal): Removed.
4401 (fatal): Likewise.
4402 * utils.c (vfatal): Removed.
4403 (fatal): Likewise.
4404 (internal_verror): Replaced call to fatal with call to throw_quit.
4405 (quit): Replaced calls to fatal with calls to throw_quit.
4406
34211963
ME
44072014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4408
4409 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4410 target_read_code.
4411
a52b4d3e
ME
44122014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4413
4414 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4415 less than zero in conditional expression.
4416
a8bdc56b
TT
44172014-07-23 Tom Tromey <tromey@redhat.com>
4418
4419 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4420 ($INTRO_PART): Don't match whitespace.
4421 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4422 argument matching.
4423 ($METHOD): Add $METHOD_TRAILER.
4424 (trim): Rewrite.
4425 (scan_target_h): New sub.
4426 Change main loop not to collect state.
4427 * target-delegates.c: Rebuild.
4428
91b52240
GB
44292014-07-23 Gary Benson <gbenson@redhat.com>
4430
4431 * cp-support.c (gdb_demangle): Fix build on systems without
4432 sigaltstack.
4433
45326f6f
JK
44342014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4435
4436 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4437 for reference entry value target data value.
4438
e214cf6c
JK
44392014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4440
4441 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4442 value_available_contents_eq.
4443
bddbbedd
PA
44442014-07-22 Pedro Alves <palves@redhat.com>
4445
4446 * value.c (allocate_optimized_out_value): Don't mark value as
4447 non-lazy.
4448
45c71484
JW
44492014-07-22 Jiong Wang <jiong.wang@arm.com>
4450
4451 * MAINTAINERS (Write After Approval): Update my email address.
4452
9597b22a
DE
44532014-07-20 Doug Evans <dje@google.com>
4454
4455 PR server/17147
4456 * remote.c (putpkt_binary): Add text to error message.
4457
91101fe5
YQ
44582014-07-20 Yao Qi <yao@codesourcery.com>
4459
4460 * eval.c: Remove "Chill" from comments.
4461 * gdbtypes.h: Likewise.
4462 * symtab.h: Likewise.
4463
c9402c95
YQ
44642014-07-20 Yao Qi <yao@codesourcery.com>
4465
4466 * std-operator.def: Update comments to TERNOP_SLICE.
4467
ae8fddda
YQ
44682014-07-20 Yao Qi <yao@codesourcery.com>
4469
4470 * std-operator.def: Remove BINOP_RANGE.
4471 * breakpoint.c (watchpoint_exp_is_const): Update.
4472 * expprint.c (dump_subexp_body_standard): Likewise.
4473 * eval.c (init_array_element): Remove dead code.
4474 (evaluate_subexp_standard): Likewise.
4475
9c816640
YQ
44762014-07-20 Yao Qi <yao@codesourcery.com>
4477
4478 * std-operator.def: Remove BINOP_IN.
4479 * breakpoint.c (watchpoint_exp_is_const): Update.
4480 * eval.c (evaluate_subexp_standard): Likewise.
4481 * expprint.c (dump_subexp_body_standard): Likewise.
4482
164224e9
ME
44832014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4484
4485 * microblaze-tdep.c (microblaze_register_names): Add
4486 the rshr and rslr register names.
4487 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4488 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4489 Use of tdesc_numbered_register. Use of
4490 microblaze_register_g_packet_guesses. Use of
4491 tdesc_use_registers. Use of set_gdbarch_register_type.
4492 (microblaze_register_g_packet_guesses): New.
4493 * microblaze-tdep.h (microblaze_reg_num): Add
4494 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4495 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4496 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4497 * features/microblaze-core.xml: New file.
4498 * features/microblaze-stack-protect.xml: New file.
4499 * features/microblaze-with-stack-protect.c: New file.
4500 * features/microblaze-with-stack-protect.xml: New file.
4501 * features/microblaze.xml: New file.
4502 * features/microblaze.c: New file.
4503 * features/Makefile (microblaze-with-stack-protect): Add
4504 microblaze-with-stack-protect microblaze and microblaze-expedite.
4505 * regformats/microblaze-with-stack-protect.dat: New file.
4506 * regformats/microblaze.dat: New file.
4507 * doc/gdb.texinfo (MicroBlaze Features): Added.
4508
e8b2341c
TT
45092014-07-18 Tom Tromey <tromey@redhat.com>
4510
4511 * exec.c (exec_ops): Now static.
4512 * exec.h (exec_ops): Don't declare.
4513
44e89118
TT
45142014-07-18 Tom Tromey <tromey@redhat.com>
4515
4516 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4517 to find_target_beneath.
4518 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4519 find_target_beneath.
4520 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4521
b0ed115f
TT
45222014-07-18 Tom Tromey <tromey@redhat.com>
4523
4524 PR gdb/17130:
4525 * utils.c (quit): Use target_supports_terminal_ours.
4526 * target.h (target_supports_terminal_ours): Declare.
4527 * target.c (target_supports_delete_record): Don't check
4528 to_delete_record against NULL.
4529 (target_supports_terminal_ours): New function.
4530
e75fdfca
TT
45312014-07-18 Tom Tromey <tromey@redhat.com>
4532
4533 PR gdb/17130:
4534 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4535 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4536 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4537 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4538 * windows-nat.c (windows_xfer_partial): Always delegate.
4539 * record-btrace.c (record_btrace_xfer_partial): Simplify
4540 delegation.
4541 (record_btrace_fetch_registers, record_btrace_store_registers)
4542 (record_btrace_prepare_to_store, record_btrace_resume)
4543 (record_btrace_wait, record_btrace_find_new_threads)
4544 (record_btrace_thread_alive): Likewise.
4545 * procfs.c (procfs_xfer_partial): Always delegate.
4546 * corelow.c (core_xfer_partial): Always delegate.
4547 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4548
83814951
TT
45492014-07-18 Tom Tromey <tromey@redhat.com>
4550
4551 * exec.c (exec_make_note_section): Move earlier.
4552
b8b8facf
DE
45532014-07-17 Doug Evans <dje@google.com>
4554
74b49205 4555 PR gdb/17170
b8b8facf
DE
4556 * maint.c (count_symtabs_and_blocks): Handle NULL
4557 current_program_space.
4558 (report_command_stats): Check global enabled flag in addition to
4559 recorded enabled flag.
4560 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4561
69ff6be5
PA
45622014-07-16 Pedro Alves <palves@redhat.com>
4563
4564 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4565
252db1b5
TT
45662014-07-16 Tom Tromey <tromey@redhat.com>
4567
4568 * target.h (struct target_ops) <to_delete_record>: Reformat
4569 comment.
4570
a432721e
TT
45712014-07-16 Tom Tromey <tromey@redhat.com>
4572
4573 * target-delegates.c: Rebuild.
4574
487d9753
PL
45752014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4576
4577 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4578 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4579 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4580 (avr_pointer_to_address): Likewise.
4581 (avr_address_class_type_flags): New function.
4582 (avr_address_class_type_flags_to_name): Likewise.
4583 (avr_address_class_name_to_type_flags): Likewise.
4584 (avr_gdbarch_init): Set address_class_type_flags,
4585 address_class_type_flags_to_name and
4586 address_class_name_to_type_flags.
4587
57745c90
PA
45882014-07-15 Pedro Alves <palves@redhat.com>
4589
4590 * linux-nat.c (kill_callback): Save errno and work with saved
4591 copy.
4592
2d40be18
SM
45932014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4594
4595 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4596
572f6555
EBM
45972014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4598
4599 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4600 breakpoint support correctly.
4601
cc1c52ad
PA
46022014-07-14 Pedro Alves <palves@redhat.com>
4603
4604 * utils.c (prompt_for_continue): Call target_terminal_ours.
4605
1e973570
PA
46062014-07-14 Pedro Alves <palves@redhat.com>
4607
4608 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4609 catch_errors. Don't re-enable stdin or notify observers where,
4610 and rethrow error.
4611 (fetch_inferior_event_wrapper): Delete.
4612
93d6eb10
PA
46132014-07-14 Pedro Alves <palves@redhat.com>
4614
4615 PR gdb/17072
4616 * top.c: Include "inf-loop.h".
4617 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4618 field.
4619 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4620 was async before.
4621 (gdb_readline_wrapper): Store whether the target is async, and
4622 make it sync.
4623
0017922d
PA
46242014-07-14 Pedro Alves <palves@redhat.com>
4625
4626 PR gdb/17072
4627 * top.c (gdb_readline_wrapper_line): Tweak comment.
4628 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4629 the input handler callback.
4630
94696ad3
PA
46312014-07-14 Pedro Alves <palves@redhat.com>
4632
4633 PR gdb/17072
4634 * main.c: Include event-top.h.
4635 (handle_command_errors): New function.
4636 (catch_command_errors, catch_command_errors_const): Use it.
4637
9d1e69a2
PA
46382014-07-14 Pedro Alves <palves@redhat.com>
4639
4640 * exceptions.c (catch_command_errors, catch_command_errors_const):
4641 Moved to main.c.
4642 * exceptions.h (catch_command_errors_ftype)
4643 (catch_command_errors_const_ftype): Moved to main.c.
4644 (catch_command_errors, catch_command_errors_const): Delete
4645 declarations.
4646 * main.c (catch_command_errors_ftype)
4647 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4648 (catch_command_errors, catch_command_errors_const)): Moved here
4649 from exceptions.c and make static.
4650
feefc97b
PA
46512014-07-14 Pedro Alves <palves@redhat.com>
4652
4653 * exceptions.c (print_any_exception): Delete.
4654 (catch_exceptions_with_msg): Use exception_print instead of
4655 print_any_exception.
4656 (catch_errors): Use exception_fprintf instead of
4657 print_any_exception.
4658 (catch_command_errors, catch_command_errors_const): Use
4659 exception_print instead of print_any_exception.
4660
c933f875
PA
46612014-07-14 Pedro Alves <palves@redhat.com>
4662
4663 * infcall.c (run_inferior_call): Set 'sync_execution' while
4664 running the inferior call.
4665
feb6f816
PA
46662014-07-14 Pedro Alves <palves@redhat.com>
4667
4668 * value.c (value_contents_equal): Delete function.
4669 * value.h (value_contents_equal): Delete declaration.
4670
d98b7a16
TT
46712014-07-14 Tom Tromey <tromey@redhat.com>
4672
4673 PR exp/17106:
4674 * gdbtypes.c (is_dynamic_type_internal): New function, from
4675 is_dynamic_type.
4676 (is_dynamic_type): Rewrite.
4677 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4678 (resolve_dynamic_struct): Likewise.
4679 (resolve_dynamic_type_internal): New function, from
4680 resolve_dynamic_type.
4681 (resolve_dynamic_type): Rewrite.
4682
548740d6
TT
46832014-07-14 Tom Tromey <tromey@redhat.com>
4684
4685 * target.c (target_require_runnable): Also check record_stratum.
4686 Update comment.
4687
808f7ab1
YQ
46882014-07-11 Yao Qi <yao@codesourcery.com>
4689
4690 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4691 thumb_instruction_restores_sp return true.
4692
540314bd
YQ
46932014-07-11 Yao Qi <yao@codesourcery.com>
4694
4695 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4696 (thumb_in_function_epilogue_p): Call
4697 thumb_instruction_restores_sp.
4698
1db01f22
YQ
46992014-07-11 Yao Qi <yao@codesourcery.com>
4700
4701 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4702 'add sp, #imm'.
4703 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4704
3116063b
GB
47052014-07-11 Gary Benson <gbenson@redhat.com>
4706
4707 * amd64-linux-nat.c (gdbcore.h): Remove include.
4708 (regset.h): Likewise.
4709 (nat/linux-btrace.h): Likewise.
4710 (btrace.h): Likewise.
4711 (gdb_assert.h): Likewise.
4712 (string.h): Likewise.
4713 (sys/uio.h): Likewise.
4714 (sys/debugreg.h): Likewise.
4715 (sys/syscall.h): Likewise.
4716 (sys/procfs.h): Likewise.
4717 (sys/user.h): Likewise.
4718 (asm/ptrace.h): Likewise.
4719 (i386-nat.h): Likewise.
4720 * i386-linux-nat.c (i386-nat.h): Likewise.
4721 (regset.h): Likewise.
4722 (target.h): Likewise.
4723 (linux-nat.h): Likewise.
4724 (nat/linux-btrace.h): Likewise.
4725 (btrace.h): Likewise.
4726 (gdb_assert.h): Likewise.
4727 (string.h): Likewise.
4728 (sys/uio.h): Likewise.
4729 (sys/user.h): Likewise.
4730 (sys/procfs.h): Likewise.
4731 (sys/reg.h): Likewise.
4732 (sys/debugreg.h): Likewise.
4733 (ORIG_EAX): Remove definition.
4734
040baaf6
GB
47352014-07-11 Gary Benson <gbenson@redhat.com>
4736
4737 * i386-linux-nat.h: New file.
4738 * x86-linux-nat.h: Likewise.
4739 * x86-linux-nat.c: Likewise.
4740 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4741 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4742 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4743 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4744 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4745 (PTRACE_SETREGSET): Likewise.
4746 (arch_lwp_info): Now in x86-linux-nat.c.
4747 (have_ptrace_getregset): Now in x86-linux-nat.h.
4748 (x86_linux_dr_get): Now in x86-linux-nat.c.
4749 (x86_linux_dr_set): Likewise.
4750 (x86_linux_dr_get_addr): Likewise.
4751 (x86_linux_dr_get_control): Likewise.
4752 (x86_linux_dr_get_status): Likewise.
4753 (update_debug_registers_callback): Likewise.
4754 (x86_linux_dr_set_control): Likewise.
4755 (x86_linux_dr_set_addr): Likewise.
4756 (x86_linux_prepare_to_resume): Likewise.
4757 (x86_linux_new_thread): Likewise.
4758 (x86_linux_new_fork): Likewise.
4759 (x86_linux_get_thread_area): Likewise.
4760 (super_post_startup_inferior): Likewise.
4761 (x86_linux_child_post_startup_inferior): Likewise.
4762 (AMD64_LINUX_USER64_CS): Likewise.
4763 (AMD64_LINUX_X32_DS): Likewise.
4764 (x86_linux_read_description): Likewise.
4765 (x86_linux_enable_btrace): Likewise.
4766 (x86_linux_disable_btrace): Likewise.
4767 (x86_linux_teardown_btrace): Likewise.
4768 (x86_linux_read_btrace): Likewise.
4769 (x86_linux_create_target): Likewise.
4770 (x86_linux_add_target): Likewise.
4771 * i386-linux-nat.c (x86-linux-nat.h): New include.
4772 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4773 (PTRACE_SETREGSET): Likewise.
4774 (arch_lwp_info): Now in x86-linux-nat.c.
4775 (have_ptrace_getregset): Now in x86-linux-nat.h.
4776 (x86_linux_dr_get): Now in x86-linux-nat.c.
4777 (x86_linux_dr_set): Likewise.
4778 (x86_linux_dr_get_addr): Likewise.
4779 (x86_linux_dr_get_control): Likewise.
4780 (x86_linux_dr_get_status): Likewise.
4781 (update_debug_registers_callback): Likewise.
4782 (x86_linux_dr_set_control): Likewise.
4783 (x86_linux_dr_set_addr): Likewise.
4784 (x86_linux_prepare_to_resume): Likewise.
4785 (x86_linux_new_thread): Likewise.
4786 (x86_linux_new_fork): Likewise.
4787 (x86_linux_get_thread_area): Likewise.
4788 (super_post_startup_inferior): Likewise.
4789 (x86_linux_child_post_startup_inferior): Likewise.
4790 (AMD64_LINUX_USER64_CS): Likewise.
4791 (AMD64_LINUX_X32_DS): Likewise.
4792 (x86_linux_read_description): Likewise.
4793 (x86_linux_enable_btrace): Likewise.
4794 (x86_linux_disable_btrace): Likewise.
4795 (x86_linux_teardown_btrace): Likewise.
4796 (x86_linux_read_btrace): Likewise.
4797 (x86_linux_create_target): Likewise.
4798 (x86_linux_add_target): Likewise.
4799
1aa7e42c
GB
48002014-07-11 Gary Benson <gbenson@redhat.com>
4801
4802 * amd64-linux-nat.c: Comment and whitespace changes.
4803 * i386-linux-nat.c: Comment and whitespace changes.
4804
c1e246a0
GB
48052014-07-11 Gary Benson <gbenson@redhat.com>
4806
4807 * amd64-linux-nat.c (x86_linux_create_target): New function.
4808 (x86_linux_add_target): Likewise.
4809 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4810 * i386-linux-nat.c (x86_linux_create_target): New function.
4811 (x86_linux_add_target): Likewise.
4812 (_initialize_i386_linux_nat): Delegate to the above new functions.
4813
8c420b8d
GB
48142014-07-11 Gary Benson <gbenson@redhat.com>
4815
4816 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4817 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4818 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4819 (ps_get_thread_area): Delegate to the above.
4820
cb1da100
GB
48212014-07-11 Gary Benson <gbenson@redhat.com>
4822
4823 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4824 x86_linux_read_description. All uses updated. amd64-specific
4825 code conditionalized. Conditionalized i386-specific code added.
4826 Redundant cast removed.
4827 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4828 x86_linux_read_description. All uses updated. i386-specific
4829 code conditionalized. Conditionalized amd64-specific code added.
4830 One sizeof replaced with the actual type it is describing.
4831
2acf3cd0
GB
48322014-07-11 Gary Benson <gbenson@redhat.com>
4833
4834 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4835 x86_linux_dr_get. All uses updated.
4836 (amd64_linux_dr_set): Renamed to
4837 x86_linux_dr_set. All uses updated.
4838 (amd64_linux_dr_get_addr): Renamed to
4839 x86_linux_dr_get_addr. All uses updated.
4840 (amd64_linux_dr_get_control): Renamed to
4841 x86_linux_dr_get_control. All uses updated.
4842 (amd64_linux_dr_get_status): Renamed to
4843 x86_linux_dr_get_status. All uses updated.
4844 (amd64_linux_dr_set_control): Renamed to
4845 x86_linux_dr_set_control. All uses updated.
4846 (amd64_linux_dr_set_addr): Renamed to
4847 x86_linux_dr_set_addr. All uses updated.
4848 (amd64_linux_prepare_to_resume): Renamed to
4849 x86_linux_prepare_to_resume. All uses updated.
4850 (amd64_linux_new_thread): Renamed to
4851 x86_linux_new_thread. All uses updated.
4852 (amd64_linux_new_fork): Renamed to
4853 x86_linux_new_fork. All uses updated.
4854 (amd64_linux_child_post_startup_inferior): Renamed to
4855 x86_linux_child_post_startup_inferior. All uses updated.
4856 (amd64_linux_enable_btrace): Renamed to
4857 x86_linux_enable_btrace. All uses updated.
4858 (amd64_linux_disable_btrace): Renamed to
4859 x86_linux_disable_btrace. All uses updated.
4860 (amd64_linux_teardown_btrace): Renamed to
4861 x86_linux_teardown_btrace. All uses updated.
4862 (amd64_linux_read_btrace): Renamed to
4863 x86_linux_read_btrace. All uses updated.
4864 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4865 x86_linux_dr_get. All uses updated.
4866 (i386_linux_dr_set): Renamed to
4867 x86_linux_dr_set. All uses updated.
4868 (i386_linux_dr_get_addr): Renamed to
4869 x86_linux_dr_get_addr. All uses updated.
4870 (i386_linux_dr_get_control): Renamed to
4871 x86_linux_dr_get_control. All uses updated.
4872 (i386_linux_dr_get_status): Renamed to
4873 x86_linux_dr_get_status. All uses updated.
4874 (i386_linux_dr_set_control): Renamed to
4875 x86_linux_dr_set_control. All uses updated.
4876 (i386_linux_dr_set_addr): Renamed to
4877 x86_linux_dr_set_addr. All uses updated.
4878 (i386_linux_prepare_to_resume): Renamed to
4879 x86_linux_prepare_to_resume. All uses updated.
4880 (i386_linux_new_thread): Renamed to
4881 x86_linux_new_thread. All uses updated.
4882 (i386_linux_new_fork): Renamed to
4883 x86_linux_new_fork. All uses updated.
4884 (i386_linux_child_post_startup_inferior): Renamed to
4885 x86_linux_child_post_startup_inferior. All uses updated.
4886 (i386_linux_enable_btrace): Renamed to
4887 x86_linux_enable_btrace. All uses updated.
4888 (i386_linux_disable_btrace): Renamed to
4889 x86_linux_disable_btrace. All uses updated.
4890 (i386_linux_teardown_btrace): Renamed to
4891 x86_linux_teardown_btrace. All uses updated.
4892 (i386_linux_read_btrace): Renamed to
4893 x86_linux_read_btrace. All uses updated.
4894
b9c1d481
AS
48952014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4896
4897 * remote.c (extended_remote_post_attach): New function.
4898 (init_extended_remote_ops): Install it as to_post_attach method.
4899
7180e04a
PA
49002014-07-09 Pedro Alves <palves@redhat.com>
4901
4902 * infcmd.c (attach_command_post_wait): Don't call
4903 target_terminal_inferior here.
4904 (attach_command): Call it here instead.
4905
9a9a7608
AB
49062014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4907
4908 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4909 field.
4910 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4911 from varobj.c, with additional checks.
4912 (c_varobj_ops): Fill in is_path_expr_parent field.
4913 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4914 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4915 field.
4916 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4917 ops method.
4918 (varobj_default_is_path_expr_parent): New function.
4919 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4920 (varobj_default_is_path_expr_parent): Declare new function.
4921
1f267ae3
MM
49222014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4923
4924 * infcmd.c (finish_backward): Turn internal error into normal error.
4925
b2ee242b
PA
49262014-07-07 Pedro Alves <palves@redhat.com>
4927
8a869bca 4928 PR gdb/17096
b2ee242b
PA
4929 * remote.c (async_handle_remote_sigint)
4930 (async_handle_remote_sigint_twice): Call
4931 gdb_call_async_signal_handler instead of
4932 mark_async_signal_handler.
4933
38e229b2
TT
49342014-07-07 Tom Tromey <tromey@redhat.com>
4935
4936 * target-delegates.c: Rebuild.
4937 * target.c (target_info_record): Remove.
4938 * record.c (info_record_command): Unconditionally call
4939 to_info_record.
4940 * target.h (struct target_ops) <to_info_record>: Use
4941 TARGET_DEFAULT_IGNORE.
4942 (target_info_record): Remove.
4943
f0f9ff95
TT
49442014-07-07 Tom Tromey <tromey@redhat.com>
4945
4946 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4947 TARGET_DEFAULT_NORETURN.
4948 * target.c (generic_tls_error): New function.
4949 (target_translate_tls_address): Don't search target stack.
4950 * target-delegates.c: Rebuild.
4951 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4952 stack.
4953 * linux-thread-db.c (thread_db_get_thread_local_address):
4954 Unconditionally call beneath target.
4955
4a5be5ee
MK
49562014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4957
4958 * cli/cli-logging.c (pop_output_files): Assign targerr to
4959 gdb_stdtargerr.
4960
92c3b204
AB
49612014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4962
4963 * MAINTAINERS (Write After Approval): Update my email address.
4964
9b11e3a7
GB
49652014-07-02 Gary Benson <gbenson@redhat.com>
4966
4967 * proc-service.c (ps_xfer_memory): Update comment.
4968 (ps_pstop): Remove unused function.
4969 (ps_pcontinue): Likewise.
4970 (ps_lstop): Likewise.
4971 (ps_lcontinue): Likewise.
4972 (ps_lgetxregsize): Likewise.
4973 (ps_lgetxregs): Likewise.
4974 (ps_lsetxregs): Likewise.
4975 (ps_plog): Likewise.
4976 (ps_ptread): Likewise.
4977 (ps_ptwrite): Likewise.
4978
cf363f18
MW
49792014-07-01 Mark Wielaard <mjw@redhat.com>
4980
4981 * dwarf2read.c (add_array_cv_type): New function.
4982 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4983 (read_tag_volatile_type): Likewise.
4984
82ae6c8d
TT
49852014-07-01 Tom Tromey <tromey@redhat.com>
4986
4987 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4988 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4989 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4990 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4991 * command.h (cmd_cfunc_ftype): Move earlier.
4992 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4993 (add_com, add_info): Use cmd_cfunc_ftype.
4994
96142726
TT
49952014-06-30 Tom Tromey <tromey@redhat.com>
4996
4997 * symtab.c (operator_chars): Make parameters and return type
4998 const.
4999 (file_matches): Make "files" const.
5000 (struct search_symbols_data) <files>: Now const.
5001 (search_symbols): Make "regexp" and "files" parameters const.
5002 Update.
5003 (symtab_symbol_info): Remove cast.
5004 (rbreak_command): Update.
5005 * symtab.h (search_symbols): Update.
5006
b67a2c6f
YQ
50072014-06-27 Yao Qi <yao@codesourcery.com>
5008
5009 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5010 Change parameter type to 'struct thread_info *'. Caller
5011 updated.
5012 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5013 Update declaration.
5014 * dummy-frame.c (struct dummy_frame_id): New.
5015 (dummy_frame_id_eq): New function.
5016 (struct dummy_frame) <id>: Change its type to 'struct
5017 dummy_frame_id'.
5018 (dummy_frame_push): Add parameter ptid and save it in
5019 dummy_frame_id.
5020 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5021 inferior_ptid.
5022 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5023 to inferior_ptid.
5024 (lookup_dummy_frame): Change parameter type to 'struct
5025 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5026 instead of frame_id_eq.
5027 (dummy_frame_pop): Add parameter ptid. Callers updated.
5028 Update comments. Compose dummy_frame_id and pass it to
5029 lookup_dummy_frame.
5030 (dummy_frame_discard): Add parameter ptid.
5031 (dummy_frame_sniffer): Compose dummy_frame_id and call
5032 dummy_frame_id_eq instead of frame_id_eq.
5033 (fprint_dummy_frames): Print ptid.
5034 * dummy-frame.h: Remove comments.
5035 (dummy_frame_push): Add ptid in declaration.
5036 (dummy_frame_pop, dummy_frame_discard): Likewise.
5037
5b10184c
TT
50382014-06-26 Tom Tromey <tromey@redhat.com>
5039
5040 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5041 * command.h (error_no_arg): Update.
5042
06900326
TT
50432014-06-26 Tom Tromey <tromey@redhat.com>
5044
5045 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5046 (do_show_command): Make "arg" const.
5047 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5048
c2bcbb1d
TT
50492014-06-26 Tom Tromey <tromey@redhat.com>
5050
5051 * record-full.c (record_full_get_bookmark): Make "args" const.
5052 (record_full_goto_bookmark): Make "raw_bookmark" const.
5053 * record.c (record_goto): New function.
5054 (cmd_record_goto): Use it. Now static.
5055 * record.h (record_goto): Declare.
5056 (cmd_record_goto): Remove declaration.
5057 * target-delegates.c: Rebuild.
5058 * target.h (struct target_ops) <to_get_bookmark,
5059 to_goto_bookmark>: Make parameter const.
5060
9cbe5fff
TT
50612014-06-26 Tom Tromey <tromey@redhat.com>
5062
5063 * defs.h (generic_load): Update.
5064 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5065 * monitor.c (monitor_load): Make "args" const.
5066 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5067 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5068 const.
5069 (mips_load): Make "file" const.
5070 * remote-sim.c (gdbsim_load): Make "args" const.
5071 * remote.c (remote_load): Make "name" const.
5072 * symfile.c (generic_load): Make "args" const.
5073 * target-delegates.c: Rebuild.
5074 * target.c (target_load): Make "arg" const.
5075 (debug_to_load): Make "args" const.
5076 * target.h (struct target_ops) <to_load>: Make parameter const.
5077 (target_load): Update.
5078
34a68019
TT
50792014-06-26 Tom Tromey <tromey@redhat.com>
5080
5081 PR symtab/16902:
5082 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5083 (dwarf2_physname, read_partial_die)
5084 (guess_partial_die_structure_name, fixup_partial_die)
5085 (guess_full_die_structure_name, anonymous_struct_prefix)
5086 (dwarf2_name): Use per-BFD obstack.
5087
efc889c1
YQ
50882014-06-26 Yao Qi <yao@codesourcery.com>
5089
5090 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5091 dummyframe and this_id into inner block below.
5092
4395285e
YQ
50932014-06-26 Yao Qi <yao@codesourcery.com>
5094
5095 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5096 with "signal_pass[0]" in the initialization of signal_pass.
5097
aef92902
MM
50982014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5099
5100 * record-btrace.c (record_btrace_generating_corefile)
5101 (record_btrace_prepare_to_generate_core)
5102 (record_btrace_done_generating_core): New.
5103 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5104 (record_btrace_store_registers, record_btrace_prepare_to_store):
5105 Forward request when generating a core file.
5106 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5107 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5108 to_done_generating_core.
5109
5fff78c4
MM
51102014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5111
5112 * target.h (target_ops) <to_prepare_to_generate_core>
5113 <to_done_generating_core>: New.
5114 (target_prepare_to_generate_core, target_done_generating_core): New.
5115 * target.c (target_prepare_to_generate_core)
5116 (target_done_generating_core): New.
5117 * target-delegates.c: Regenerate.
5118 * gcore.c: (write_gcore_file): Rename to ...
5119 (write_gcore_file_1): ...this.
5120 (write_gcore_file): Call target_prepare_to_generate_core
5121 and target_done_generating_core.
5122
1d1f1ccb
MM
51232014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5124
5125 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5126 * gcore.c (write_gcore_file): Free memory returned from
5127 make_corefile_notes.
5128 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5129 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5130
3343ef86
YQ
51312014-06-24 Yao Qi <yao@codesourcery.com>
5132
5133 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5134 (arm_linux_init_abi): Set skip_trampoline_code with
5135 gdbarch_skip_trampoline_code instead of
5136 find_solib_trampoline_target.
5137
18d18ac8
YQ
51382014-06-24 Yao Qi <yao@codesourcery.com>
5139
5140 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5141 arm_skip_bx_reg returns non-zero.
5142
80d8d390
YQ
51432014-06-24 Yao Qi <yao@codesourcery.com>
5144
5145 * arm-tdep.c (arm_skip_bx_reg): New function.
5146 (arm_skip_stub): Call arm_skip_bx_reg.
5147
6a18a01c
DB
51482014-06-23 Don Breazeal <donb@codesourcery.com>
5149
5150 * MAINTAINERS: Add myself as write-after-approval maintainer.
5151
8e9db26e
PA
51522014-06-23 Pedro Alves <palves@redhat.com>
5153
5154 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5155 DR_CONTROL before setting DR0..DR3.
5156 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5157 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5158 bits of DR_CONTROL related to the debug register slot being
5159 disabled. If all slots are vacant, clear local slowdown as well,
5160 and assert DR_CONTROL is 0.
5161
70afc5b7
SC
51622014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5163
5164 * python/lib/gdb/command/xmethods.py
5165 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5166 current progspace only if the string "progspace" matches LOCUS_RE.
5167
840ed64d
JK
51682014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5169
5170 Fix --with-system-readline with readline-6.3 patch 5.
5171 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5172 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5173 types.
5174
26f2dc30
TT
51752014-06-20 Tom Tromey <tromey@redhat.com>
5176
5177 * dwarf2read.c (dw2_get_real_path): Use correct type in
5178 OBSTACK_CALLOC.
5179 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5180
125f8a3d
GB
51812014-06-20 Gary Benson <gbenson@redhat.com>
5182
5183 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5184 * common/glibc_thread_db.h: Likewise.
5185 * common/i386-cpuid.h: Likewise.
5186 * common/i386-gcc-cpuid.h: Likewise.
5187 * common/linux-btrace.h: Likewise.
5188 * common/linux-osdata.h: Likewise.
5189 * common/linux-procfs.h: Likewise.
5190 * common/linux-ptrace.h: Likewise.
5191 * common/mips-linux-watch.h: Likewise.
5192 * common/linux-btrace.c: Moved to nat.
5193 * common/linux-osdata.c: Likewise.
5194 * common/linux-procfs.c: Likewise.
5195 * common/linux-ptrace.c: Likewise.
5196 * common/mips-linux-watch.c: Likewise.
5197 * nat/gdb_thread_db.h: Moved from common.
5198 * nat/glibc_thread_db.h: Likewise.
5199 * nat/i386-cpuid.h: Likewise.
5200 * nat/i386-gcc-cpuid.h: Likewise.
5201 * nat/linux-btrace.c: Likewise.
5202 * nat/linux-btrace.h: Likewise.
5203 * nat/linux-osdata.c: Likewise.
5204 * nat/linux-osdata.h: Likewise.
5205 * nat/linux-procfs.c: Likewise.
5206 * nat/linux-procfs.h: Likewise.
5207 * nat/linux-ptrace.c: Likewise.
5208 * nat/linux-ptrace.h: Likewise.
5209 * nat/mips-linux-watch.c: Likewise.
5210 * nat/mips-linux-watch.h: Likewise.
5211 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5212 (object file files): Reordered.
5213 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5214 of glibc_thread_db.h.
5215
42995dbd
GB
52162014-06-20 Gary Benson <gbenson@redhat.com>
5217
5218 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5219 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5220 (i386_dr_low): Likewise.
5221 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5222 (i386_dr_low_set_addr): Likewise.
5223 (i386_dr_low_get_addr): Likewise.
5224 (i386_dr_low_can_set_control): Likewise.
5225 (i386_dr_low_set_control): Likewise.
5226 (i386_dr_low_get_control): Likewise.
5227 (i386_dr_low_get_status): Likewise.
5228 (i386_get_debug_register_length): Likewise.
5229 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5230 (i386_dr_low): Likewise.
5231 * nat/i386-dregs.c (i386-low.h): Remove include.
5232 (i386-nat.h): Likewise.
5233 (nat/i386-dregs.h): New include.
5234 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5235 (i386_dr_low_set_addr): Likewise.
5236 (i386_dr_low_get_addr): Likewise.
5237 (i386_dr_low_can_set_control): Likewise.
5238 (i386_dr_low_set_control): Likewise.
5239 (i386_dr_low_get_control): Likewise.
5240 (i386_dr_low_get_status): Likewise.
5241 (i386_get_debug_register_length): Likewise.
5242 (debug_hw_points): Likewise.
5243
3ed9baed
IB
52442014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5245
5246 * Makefile.in (SFILES): Add d-exp.y.
5247 (YYFILES): Add d-exp.c.
5248 (YYOBJ): Add d-exp.o.
5249 (local-maintainer-clean): Delete d-exp.c.
5250 * d-exp.y: New file.
5251 * d-lang.h (d_parse): New declaration.
5252 (d_error): New declaration.
5253 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5254 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5255 PREC_ORDER operators.
5256 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5257
78c164b0
YQ
52582014-06-19 Yao Qi <yao@codesourcery.com>
5259
5260 * gdbthread.h (any_running): Remove the declaration.
5261 * thread.c (any_running): Remove.
5262
f6e29b6e
YQ
52632014-06-19 Yao Qi <yao@codesourcery.com>
5264
5265 * gdbthread.h (struct thread_info) <state>: Change its type to
5266 'enum thread_state'. Update comments.
5267
034f788c
PA
52682014-06-19 Pedro Alves <palves@redhat.com>
5269
5270 * gdbthread.h (ALL_THREADS): Delete.
5271 (ALL_NON_EXITED_THREADS): New macro.
5272 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5273 instead of ALL_THREADS.
5274 * infrun.c (find_thread_needs_step_over)
5275 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5276 instead of ALL_THREADS.
5277 * record-btrace.c (record_btrace_open)
5278 (record_btrace_stop_recording, record_btrace_close)
5279 (record_btrace_is_replaying, record_btrace_resume)
5280 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5281 * remote.c (append_pending_thread_resumptions): Likewise.
5282 * thread.c (thread_apply_all_command): Likewise.
5283
46e33252
GB
52842014-06-19 Gary Benson <gbenson@redhat.com>
5285
5286 * i386-nat.c (i386_stopped_by_watchpoint):
5287 Use i386_dr_stopped_by_watchpoint.
5288 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5289 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5290
3a8ee006
GB
52912014-06-19 Gary Benson <gbenson@redhat.com>
5292
5293 * nat/i386-dregs.c: New file.
5294 * Makefile.in (i386-dregs.o): New rule.
5295 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5296 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5297 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5298 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5299 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5300 * config/i386/go32.mh (NATDEPFILES): Likewise.
5301 * config/i386/linux.mh (NATDEPFILES): Likewise.
5302 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5303 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5304 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5305 * i386-nat.h (debug_hw_points): New declaration.
5306 * i386-nat.c (breakpoint.h): Remove include.
5307 (command.h): Likewise.
5308 (target.h): Likewise.
5309 (gdb_assert.h): Likewise.
5310 (debug_hw_points): Made nonstatic.
5311 (debug_printf): Now in i386-dregs.c.
5312 (TARGET_HAS_DR_LEN_8): Likewise.
5313 (DR_CONTROL_SHIFT): Likewise.
5314 (DR_CONTROL_SIZE): Likewise.
5315 (DR_RW_EXECUTE): Likewise.
5316 (DR_RW_WRITE): Likewise.
5317 (DR_RW_READ): Likewise.
5318 (DR_RW_IORW): Likewise.
5319 (DR_LEN_1): Likewise.
5320 (DR_LEN_2): Likewise.
5321 (DR_LEN_4): Likewise.
5322 (DR_LEN_8): Likewise.
5323 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5324 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5325 (DR_ENABLE_SIZE): Likewise.
5326 (DR_LOCAL_SLOWDOWN): Likewise.
5327 (DR_GLOBAL_SLOWDOWN): Likewise.
5328 (DR_CONTROL_RESERVED): Likewise.
5329 (I386_DR_CONTROL_MASK): Likewise.
5330 (I386_DR_VACANT): Likewise.
5331 (I386_DR_LOCAL_ENABLE): Likewise.
5332 (I386_DR_GLOBAL_ENABLE): Likewise.
5333 (I386_DR_DISABLE): Likewise.
5334 (I386_DR_SET_RW_LEN): Likewise.
5335 (I386_DR_GET_RW_LEN): Likewise.
5336 (I386_DR_WATCH_HIT): Likewise.
5337 (i386_wp_op_t): Likewise.
5338 (i386_show_dr): Likewise.
5339 (i386_length_and_rw_bits): Likewise.
5340 (i386_insert_aligned_watchpoint): Likewise.
5341 (i386_remove_aligned_watchpoint): Likewise.
5342 (i386_handle_nonaligned_watchpoint): Likewise.
5343 (i386_update_inferior_debug_regs): Likewise.
5344 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5345 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5346 (i386_region_ok_for_watchpoint):
5347 Use i386_dr_region_ok_for_watchpoint.
5348 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5349
322a8e06
GB
53502014-06-19 Gary Benson <gbenson@redhat.com>
5351
5352 * i386-nat.c (i386_insert_hw_breakpoint): Use
5353 i386_insert_watchpoint.
5354 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5355
8f26655c
GB
53562014-06-19 Gary Benson <gbenson@redhat.com>
5357
5358 * i386-nat.c (i386_dr_show): Renamed to
5359 i386_show_dr and made static. All uses updated.
5360 (i386_dr_length_and_rw_bits): Renamed to
5361 i386_length_and_rw_bits and made static.
5362 All uses updated.
5363 (i386_dr_insert_aligned_watchpoint): Renamed to
5364 i386_insert_aligned_watchpoint and made static.
5365 All uses updated.
5366 (i386_dr_remove_aligned_watchpoint): Renamed to
5367 i386_remove_aligned_watchpoint and made static.
5368 All uses updated.
5369 (i386_dr_update_inferior_debug_regs): Renamed to
5370 i386_update_inferior_debug_regs and made static.
5371 All uses updated.
5372 * nat/i386-dregs.h (i386_dr_show): Removed.
5373 (i386_dr_length_and_rw_bits): Likewise.
5374 (i386_dr_insert_aligned_watchpoint): Likewise.
5375 (i386_dr_remove_aligned_watchpoint): Likewise.
5376 (i386_dr_update_inferior_debug_regs): Likewise.
5377
992c7d70
GB
53782014-06-19 Gary Benson <gbenson@redhat.com>
5379
5380 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5381 * configure: Regenerate.
5382 * config.in: Likewise.
5383 * main.c (signal.h): New include.
5384 (setup_alternate_signal_stack): New function.
5385 (captured_main): Call the above.
5386 * cp-support.c (signal.h): New include.
5387 (catch_demangler_crashes): New flag.
5388 (SIGJMP_BUF): New define.
5389 (SIGSETJMP): Likewise.
5390 (SIGLONGJMP): Likewise.
5391 (gdb_demangle_jmp_buf): New static global.
5392 (gdb_demangle_attempt_core_dump): Likewise.
5393 (gdb_demangle_signal_handler): New function.
5394 (gdb_demangle): If catch_demangler_crashes is set, install the
5395 above signal handler before calling bfd_demangle, and restore
5396 the original signal handler afterwards. Display the offending
5397 symbol and call demangler_warning the first time a segmentation
5398 fault is caught.
5399 (_initialize_cp_support): New maint set/show command.
5400
eae7090b
GB
54012014-06-19 Gary Benson <gbenson@redhat.com>
5402
5403 * utils.h (resource_limit_kind): New enum.
5404 (can_dump_core): New declaration.
5405 (warn_cant_dump_core): Likewise.
5406 (dump_core): Likewise.
5407 * utils.c (dump_core): Made nonstatic. Added new
5408 parameter "limit_kind".
5409 (can_dump_core): Made nonstatic. Moved printing code to...
5410 (warn_cant_dump_core): New function.
5411 (can_dump_core_warn): Likewise.
5412 (internal_vproblem): Replace calls to can_dump_core with
5413 calls to can_dump_core_warn. Supply new argument to each.
5414
57fcfb1b
GB
54152014-06-19 Gary Benson <gbenson@redhat.com>
5416
5417 * utils.h (demangler_vwarning): New declaration.
5418 (demangler_warning): Likewise.
5419 * utils.c (struct internal_problem)
5420 <user_settable_should_quit>: New field.
5421 <user_settable_should_dump_core>: Likewise
5422 (internal_error_problem): Add values for above new fields.
5423 (internal_warning_problem): Likewise.
5424 (demangler_warning_problem): New static global.
5425 (demangler_vwarning): New function.
5426 (demangler_warning): Likewise.
5427 (add_internal_problem_command): Selectively add commands.
5428 (_initialize_utils): New internal problem command.
5429 * maint.c (maintenance_demangler_warning): New function.
5430 (_initialize_maint_cmds): New command.
5431
17a40b44
TT
54322014-06-18 Tom Tromey <tromey@redhat.com>
5433
5434 * f-valprint.c (info_common_command_for_block): Update.
5435 * symtab.h (struct general_symbol_info) <common_block>: Now
5436 const.
5437
346d1dfe
TT
54382014-06-18 Tom Tromey <tromey@redhat.com>
5439
5440 * symtab.h (struct symtab) <blockvector>: Now const.
5441 * ada-lang.c (ada_add_global_exceptions): Update.
5442 * buildsym.c (augment_type_symtab): Update.
5443 * dwarf2read.c (dw2_lookup_symbol): Update.
5444 * jit.c (finalize_symtab): Update.
5445 * jv-lang.c (add_class_symtab_symbol): Update.
5446 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5447 Update.
5448 * objfiles.c (objfile_relocate1): Update.
5449 * psymtab.c (lookup_symbol_aux_psymtabs)
5450 (maintenance_check_psymtabs): Update.
5451 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5452 Update.
5453 * spu-tdep.c (spu_catch_start): Update.
5454 * symmisc.c (dump_symtab_1): Update.
5455 * symtab.c (lookup_global_symbol_from_objfile)
5456 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5457 (basic_lookup_transparent_type_quick)
5458 (basic_lookup_transparent_type, find_pc_sect_symtab)
5459 (find_pc_sect_line, search_symbols): Update.
5460 * block.c (find_block_in_blockvector): Make "bl" const.
5461 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5462 const.
5463 (blockvector_contains_pc): Make "bv" const.
5464 (block_for_pc_sect): Update.
5465 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5466 (blockvector_contains_pc): Update.
5467 * breakpoint.c (resolve_sal_pc): Update.
5468 * inline-frame.c (block_starting_point_at): Update.
5469
1834676b
TT
54702014-06-18 Tom Tromey <tromey@redhat.com>
5471
5472 * completer.c (complete_line): Make "line_buffer" const.
5473 * completer.h (complete_line): Update.
5474
ac1a991b
TT
54752014-06-18 Tom Tromey <tromey@redhat.com>
5476
5477 * symtab.c (add_macro_name): Remove unneeded cast.
5478
5bc98e52
TT
54792014-06-18 Tom Tromey <tromey@redhat.com>
5480
5481 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5482 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5483
8236def8
TT
54842014-06-18 Tom Tromey <tromey@redhat.com>
5485
5486 * probe.c (info_probes_for_ops): Make "arg" const.
5487 * probe.h (info_probes_for_ops): Update.
5488
3977b71f
TT
54892014-06-18 Tom Tromey <tromey@redhat.com>
5490
5491 * varobj.c (varobj_create): Update.
5492 * valops.c (value_of_this): Update.
5493 * tracepoint.c (add_local_symbols, scope_info): Update.
5494 * symtab.h (struct general_symbol_info) <block>: Now const.
5495 * symtab.c (skip_prologue_sal)
5496 (default_make_symbol_completion_list_break_on)
5497 (skip_prologue_using_sal): Update.
5498 * stack.h (iterate_over_block_locals)
5499 (iterate_over_block_local_vars): Update.
5500 * stack.c (print_frame_args): Update.
5501 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5502 parameter const.
5503 (get_selected_block): Make return type const.
5504 * python/py-frame.c (frapy_block): Update.
5505 * python/py-block.c (gdbpy_block_for_pc): Update.
5506 * p-exp.y (%union) <bval>: Now const.
5507 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5508 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5509 * m2-exp.y (%union) <bval>: Now const.
5510 * linespec.c (get_current_search_block): Make return type const.
5511 (create_sals_line_offset, find_label_symbols): Update.
5512 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5513 Update.
5514 (block_starting_point_at): Make "block" const.
5515 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5516 (check_exception_resume): Update.
5517 * guile/scm-frame.c (gdbscm_frame_block): Update.
5518 * guile/scm-block.c (gdbscm_lookup_block): Update.
5519 * frame.h (get_frame_block): Update.
5520 (get_selected_block): Make return type const.
5521 * frame.c (frame_id_inner): Update.
5522 * f-valprint.c (info_common_command_for_block)
5523 (info_common_command): Update.
5524 * dwarf2loc.c (dwarf2_find_location_expression)
5525 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5526 (locexpr_describe_location_piece): Update.
5527 * c-exp.y (%union) <bval>: Now const.
5528 * breakpoint.c (resolve_sal_pc): Update.
5529 * blockframe.c (get_frame_block):Make return type const.
5530 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5531 (block_innermost_frame): Update.
5532 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5533 (block_for_pc, block_for_pc_sect): Update.
5534 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5535 'pblock' const.
5536 (block_for_pc_sect, block_for_pc): Make return type const.
5537 * ax-gdb.c (gen_expr): Update.
5538 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5539 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5540 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5541 (ada_read_var_value): Update.
5542 * ada-exp.y (struct name_info) <block>: Now const.
5543 (%union): Likewise.
5544 (block_lookup): Constify.
5545
b9228891
GB
55462014-06-18 Gary Benson <gbenson@redhat.com>
5547
5548 * nat/i386-dregs.h: New file.
5549 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5550 * i386-nat.h (i386-dregs.h): New include.
5551 (DR_FIRSTADDR): Now in i386-dregs.h.
5552 (DR_LASTADDR): Likewise.
5553 (DR_NADDR): Likewise.
5554 (DR_STATUS): Likewise.
5555 (DR_CONTROL): Likewise.
5556 (i386_debug_reg_state): Likewise.
5557 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5558
a1aa2221
LM
55592014-06-18 Don Breazeal <donb@codesourcery.com>
5560
5561 * breakpoint.c (set_longjmp_breakpoint): Call
5562 momentary_breakpoint_from_master with additional argument.
5563 (set_longjmp_breakpoint_for_call_dummy): Call
5564 momentary_breakpoint_from_master with additional argument.
5565 (set_std_terminate_breakpoint): Call
5566 momentary_breakpoint_from_master with additional argument.
5567 (momentary_breakpoint_from_master): Add argument to function
5568 definition and use it to initialize structure member flag.
74228e77 5569 (clone_momentary_breakpoint): Call
a1aa2221
LM
5570 momentary_breakpoint_from_master with additional argument.
5571 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5572 member flags set in momentary_breakpoint_from_master.
5573
4be83cc2
GB
55742014-06-18 Gary Benson <gbenson@redhat.com>
5575
5576 * i386-nat.c (i386_show_dr): Renamed to
5577 i386_dr_show and made nonstatic. All uses updated.
5578 (i386_length_and_rw_bits): Renamed to
5579 i386_dr_length_and_rw_bits and made nonstatic.
5580 All uses updated.
5581 (i386_insert_aligned_watchpoint): Renamed to
5582 i386_dr_insert_aligned_watchpoint and made nonstatic.
5583 All uses updated.
5584 (i386_remove_aligned_watchpoint): Renamed to
5585 i386_dr_remove_aligned_watchpoint and made nonstatic.
5586 All uses updated.
5587 (i386_update_inferior_debug_regs): Renamed to
5588 i386_dr_update_inferior_debug_regs and made nonstatic.
5589 All uses updated.
5590
131aa0d4
GB
55912014-06-18 Gary Benson <gbenson@redhat.com>
5592
5593 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5594 (i386_dr_low_can_set_control): Likewise.
5595 (i386_dr_low_set_addr): Likewise.
5596 (i386_dr_low_set_control): Likewise.
5597 (i386_dr_low_get_addr): Likewise.
5598 (i386_dr_low_get_status): Likewise.
5599 (i386_dr_low_get_control): Likewise.
5600 (i386_insert_aligned_watchpoint): Use new macros.
5601 (i386_update_inferior_debug_regs): Likewise.
5602 (i386_stopped_data_address): Likewise.
5603
d9305f7f
GB
56042014-06-18 Gary Benson <gbenson@redhat.com>
5605
5606 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5607 New parameter. All uses updated.
5608
ea008da4
GB
56092014-06-18 Gary Benson <gbenson@redhat.com>
5610
5611 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5612 All uses updated.
5613
1b6d4134
GB
56142014-06-18 Gary Benson <gbenson@redhat.com>
5615
5616 * i386-nat.c (debug_printf): New macro.
5617 (i386_get_debug_register_length): Likewise.
5618 (TARGET_HAS_DR_LEN_8): Use above macro.
5619 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5620 and printf_unfiltered. Use phex to format values.
5621
9b4550ef
GB
56222014-06-18 Gary Benson <gbenson@redhat.com>
5623
5624 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5625 Make const.
5626
6e62758f
GB
56272014-06-18 Gary Benson <gbenson@redhat.com>
5628
5629 * i386-nat.c: Comment changes.
5630
51c79e94
GB
56312014-06-18 Gary Benson <gbenson@redhat.com>
5632
5633 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5634
3e11889a
GB
56352014-06-18 Gary Benson <gbenson@redhat.com>
5636
5637 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5638 (i386_insert_aligned_watchpoint): Likewise.
5639 (i386_remove_aligned_watchpoint): Likewise.
5640 (i386_handle_nonaligned_watchpoint): Likewise.
5641
fc6e2f03
GB
56422014-06-18 Gary Benson <gbenson@redhat.com>
5643
5644 * i386-nat.c: Whitespace changes.
5645
2afe7d50
SB
56462014-06-17 Samuel Bronson <naesten@gmail.com>
5647
5648 * MAINTAINERS: Update Roland McGrath's email address.
5649 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 5650 Red Hat a while ago, and giving me a current address.
2afe7d50 5651
3bca49ee
TT
56522014-06-17 Tom Tromey <tromey@redhat.com>
5653
5654 * utils.h (savestring): Remove declaration.
5655
6e366df1
TT
56562014-06-17 Tom Tromey <tromey@redhat.com>
5657
5658 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5659
6be47f0c
KS
56602014-06-16 Keith Seitz <keiths@redhat.com>
5661
5662 PR mi/15863
5663 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5664 to update the varobj if inferior_ptid is null_ptid.
5665
7bc112c1
TT
56662014-06-16 Tom Tromey <tromey@redhat.com>
5667
5668 * target.h (struct target_ops) <to_info_proc>: Make parameter
5669 const.
5670 (target_info_proc): Update.
5671 * target.c (target_info_proc): Make "args" const.
5672 * procfs.c (procfs_info_proc): Update.
5673 * linux-tdep.c (linux_info_proc): Update.
5674 (linux_core_info_proc_mappings): Make "args" const.
5675 (linux_core_info_proc): Update.
5676 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5677 * gdbarch.c: Rebuild.
5678 * gdbarch.h: Rebuild.
5679 * corelow.c (core_info_proc): Update.
5680
fee354ee
TT
56812014-06-16 Tom Tromey <tromey@redhat.com>
5682
5683 * target.h (struct target_ops) <to_disconnect>: Make parameter
5684 const.
5685 (target_disconnect): Update.
5686 * target.c (target_disconnect): Make "args" const.
5687 * target-delegates.c: Rebuild.
5688 * remote.c (remote_disconnect): Update.
5689 * record.h (record_disconnect): Update.
5690 * record.c (record_disconnect): Update.
5691 * inf-child.c (inf_child_disconnect): Update.
5692
a30bf1f1
TT
56932014-06-16 Tom Tromey <tromey@redhat.com>
5694
5695 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5696 * target.c (debug_to_rcmd, default_rcmd): Update.
5697 * target-delegates.c: Rebuild.
5698 * remote.c (remote_rcmd): Update.
5699 * monitor.c (monitor_rcmd): Update.
5700
d03de421
PA
57012014-06-16 Pedro Alves <palves@redhat.com>
5702
5703 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5704 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5705 have OBJF_SHARED set.
5706 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5707 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5708 instead of OBJF_USERLOADED.
5709 * objfiles.h (OBJF_SHARED): Update comment.
5710 (userloaded_objfile_contains_address_p): Rename to ...
5711 (shared_objfile_contains_address_p): ... this, and update
5712 comments.
5713 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5714 new objfile.
5715 (remove_symbol_file_command): Skip objfiles that don't have
5716 OBJF_SHARED set.
5717
99f4262f
TT
57182014-06-16 Tom Tromey <tromey@redhat.com>
5719
5720 * minsyms.h (prim_record_minimal_symbol)
5721 (prim_record_minimal_symbol_and_info): Update comments.
5722
97d66cc6
EZ
57232014-06-14 Eli Zaretskii <eliz@gnu.org>
5724
5725 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5726 or --without-guile, according to how GDB was built.
5727
635c7e8a
TT
57282014-06-13 Tom Tromey <tromey@redhat.com>
5729
5730 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5731 to help_list.
5732 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5733 to help_list.
5734 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5735 help_list.
5736 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5737 help_list.Pass all_commands, not -1, to help_list.
5738 * cli/cli-dump.c (dump_command, append_command)
5739 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5740 (binary_dump_command, binary_append_command): Pass all_commands,
5741 not -1, to help_list.
5742 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5743 -1, to help_list.
5744 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5745 -1, to help_list.
5746 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5747 help_list.
5748 * top.c (set_history): Pass all_commands, not -1, to help_list.
5749 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5750 all_commands, not -1, to help_list.
5751 * symfile.c (overlay_command): Pass all_commands, not -1, to
5752 help_list.
5753 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5754 help_list.
5755 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5756 help_list.
5757 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5758 -1, to help_list.
5759 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5760 not -1, to help_list.
5761 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5762 not -1, to help_list.
5763 * maint.c (maintenance_command, maintenance_info_command)
5764 (maintenance_print_command, maintenance_set_cmd): Pass
5765 all_commands, not -1, to help_list.
5766 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5767 help_list.
5768 * language.c (set_check): Pass all_commands, not -1, to help_list.
5769 * infcmd.c (unset_command): Pass all_commands, not -1, to
5770 help_list.
5771 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5772 help_list.
5773 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5774 help_list.
5775 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5776 help_list.
5777 * breakpoint.c (save_command): Pass all_commands, not -1, to
5778 help_list.
5779 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5780 all_commands, not -1, to help_list.
5781
b94ade42
PL
57822014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5783
5784 * regcache.c (struct register_to_invalidate): New structure.
5785 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5786 functions.
5787 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5788
31f628ae
YQ
57892014-06-12 Yao Qi <yao@codesourcery.com>
5790
5791 * varobj.c (varobj_get_num_children): Call
5792 varobj_is_dynamic_p.
5793 (varobj_list_children): Likewise.
5794 (varobj_update): Likewise. Update comments.
5795
cde5ef40
YQ
57962014-06-12 Yao Qi <yao@codesourcery.com>
5797
5798 * varobj.c (varobj_pretty_printed_p): Rename to ...
5799 (varobj_is_dynamic_p): ... this. New function.
5800 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5801 (varobj_is_dynamic_p): Declare.
5802 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5803 (mi_print_value_p, varobj_update_one): Likewise.
5804
576ea091
YQ
58052014-06-12 Pedro Alves <pedro@codesourcery.com>
5806 Yao Qi <yao@codesourcery.com>
5807
5808 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5809 (varobj_get_iterator): Wrap up code for pretty-printer by
5810 "#if HAVE_PYTHON" and "#endif".
5811 (update_dynamic_varobj_children): Likewise.
5812
827f100c
YQ
58132014-06-12 Pedro Alves <pedro@codesourcery.com>
5814 Yao Qi <yao@codesourcery.com>
5815
5816 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5817 gdb_python_initialized is false. Move some code from varobj.c.
5818 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5819 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5820 (struct varobj_item): Moved to varobj-iter.h".
5821 (varobj_clear_saved_item): New function.
5822 (update_dynamic_varobj_children): Move python-related code to
5823 py-varobj.c.
5824 (free_variable): Call varobj_clear_saved_item and
5825 varobj_iter_delete.
5826
e5250216
YQ
58272014-06-12 Pedro Alves <pedro@codesourcery.com>
5828 Yao Qi <yao@codesourcery.com>
5829
5830 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5831 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5832 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5833 (py-varobj.o): New rule.
5834 * python/py-varobj.c: New file.
5835 * python/python-internal.h (py_varobj_get_iterator): Declare.
5836 * varobj-iter.h: New file.
5837 * varobj.c: Include "varobj-iter.h"
5838 (struct varobj) <child_iter>: Change its type from "PyObject *"
5839 to "struct varobj_iter *".
5840 <saved_item>: Likewise.
5841 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5842 [HAVE_PYTHON] (varobj_get_iterator): New function.
5843 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5844 python-specific code to python/py-varobj.c.
5845 (install_visualizer): Call varobj_iter_delete instead of
5846 Py_XDECREF.
5847 * varobj.h (varobj_ensure_python_env): Declare.
5848
5a2e0d6e
YQ
58492014-06-12 Yao Qi <yao@codesourcery.com>
5850
5851 * varobj.c (struct varobj_item): New structure.
5852 (create_child_with_value): Update declaration.
5853 (varobj_add_child): Replace arguments 'name' and 'value' with
5854 'item'. All callers updated.
5855 (install_dynamic_child): Likewise.
5856 (update_dynamic_varobj_children): Likewise.
5857 (varobj_add_child): Likewise.
5858 (create_child_with_value): Likewise.
5859
919b9a93
JB
58602014-06-11 Joel Brobecker <brobecker@adacore.com>
5861
5862 * NEWS: Create a new section for the next release branch.
5863 Rename the section of the current branch, now that it has
5864 been cut.
5865
71a55bdf
JB
58662014-06-11 Joel Brobecker <brobecker@adacore.com>
5867
5868 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5869 * version.in: Bump version to 7.8.50.DATE-cvs.
5870
364fe1f7
PA
58712014-06-11 Pedro Alves <palves@redhat.com>
5872
5873 PR remote/17028
5874 * ser-mingw.c (net_windows_socket_check_pending): New function.
5875 (net_windows_select_thread): Ignore spurious wakeups. Use
5876 net_windows_socket_check_pending.
5877 (net_windows_wait_handle): Check for pending events with
5878 ioctlsocket, through net_windows_socket_check_pending, instead of
5879 checking the socket's event.
5880
5a6c7709
SC
58812014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5882
5883 * python/python-internal.h (gdb_PyObject_GetAttrString)
5884 (gdb_PyObject_HasAttrString): New inline function definitions.
5885 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5886 char * of the second argument to PyObject_GetAttrString.
74228e77 5887
0e58ee40
JB
58882014-06-10 Joel Brobecker <brobecker@adacore.com>
5889
5890 * serial.c (serial_write): Fix index of character to be printed
5891 in call to serial_logchar when serial debug traces are enabled.
5892
d190df30
JB
58932014-06-10 Joel Brobecker <brobecker@adacore.com>
5894
5895 * gdbtypes (resolve_dynamic_range): Add function description.
5896
b4b01d36
PA
58972014-06-09 Pedro Alves <palves@redhat.com>
5898
5899 * linux-nat.c (linux_child_follow_fork): Initialize status with
5900 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5901 inner block. Only pass the signal to PTRACE_DETACH if in pass
5902 state.
5903
3657956b
GB
59042014-06-09 Gary Benson <gbenson@redhat.com>
5905
5906 * common/signals.c (gdb_signal_from_host): Reorder to separate
5907 the always-available ANSI-standard signals from the signals that
5908 require checking.
5909 (do_gdb_signal_to_host): Likewise.
5910 * proc-events.c (signal_table): Likewise.
5911
c077881a
HZ
59122014-06-08 Hui Zhu <hui@codesourcery.com>
5913
5914 * common/linux-ptrace.c (linux_disable_event_reporting): New
5915 function.
5916 * common/linux-ptrace.h (linux_disable_event_reporting): New
5917 declaration.
5918 * linux-nat.c (linux_child_follow_fork): Do a single step before
5919 detach.
5920
4186eb54
KS
59212014-06-07 Keith Seitz <keiths@redhat.com>
5922
5923 Revert:
5924 PR c++/16253
5925 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5926 from symbol_matches_domain in symtab.c. All local callers
5927 of symbol_matches_domain updated.
5928 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5929 search STRUCT_DOMAIN.
5930 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5931 independently. standard_lookup will do that automatically.
5932 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5933 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5934 (cp_lookup_symbol_in_namespace): Likewise.
5935 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5936 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5937 may return a STRUCT_DOMAIN match.
5938 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5939 * cp-support.c: Include language.h.
5940 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5941 VAR_DOMAIN.
5942 * psymtab.c (match_partial_symbol): Compare the requested
5943 domain with the symbol's domain directly.
5944 (lookup_partial_symbol): Likewise.
5945 * symtab.c (lookup_symbol_in_language): Explain when/why
5946 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5947 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5948 appropriate languages.
5949 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5950 and moved to ada-lang.c
5951 (lookup_block_symbol): Explain that this function only returns
5952 symbol matching the requested DOMAIN.
5953 Compare the requested domain with the symbol's domain directly.
5954 (iterate_over_symbols): Compare the requested domain with the
5955 symbol's domain directly.
5956 * symtab.h (symbol_matches_domain): Remove.
5957
25326a28 59582014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5959
5960 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5961 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5962 (gdbscm_guile_version_is_at_least): Declare.
5963 (gdbscm_scm_string_to_int): Declare.
5964 * guile/guile.c (gdbscm_guile_major_version): New global.
5965 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5966 (guile_datadir): New static global.
5967 (gdbscm_guile_data_directory): New function.
5968 (initialize_scheme_side): Update.
5969 (misc_guile_functions): Add guile-data-directory.
5970 (initialize_gdb_module): Fetch guile version number.
5971 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5972 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5973 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5974 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5975 comments.
5976 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5977 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5978 * guile/scm-value.c (gdbscm_value_to_string): Only call
5979 scm_port_conversion_strategy if Guile version >= 2.0.6.
5980
0a770bb2 59812014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5982
5983 * main.c (print_gdb_help): Add -q and --silent.
5984
73ba372c
GB
59852014-06-06 Gary Benson <gbenson@redhat.com>
5986
5987 * common/signals.c: Remove preprocessor conditionals for
5988 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5989 SIGSEGV and SIGTERM.
5990 * proc-events.c: Likewise.
5991
c33b2f12
MM
59922014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5993
5994 * symfile.c (symfile_free_objfile): Remove restriction to
5995 OBJF_USERLOADED.
5996 * symfile-mem.c (symbol_file_add_from_memory): Call
5997 add_target_sections_of_objfile.
5998
fb934770
LC
59992014-06-05 Ludovic Courtès <ludo@gnu.org>
6000
6001 * guile/scm-value.c (gdbscm_history_append_x): Use
6002 'vlscm_get_value_smob_arg_unsafe' instead of
6003 'vlscm_scm_to_value'.
6004
6ef284bd
SM
60052014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6006
6007 PR mi/15806
6008 * utils.c (printchar): Don't escape at all if quoter is NUL.
6009 Update function documentation to clarify effect of parameter
6010 QUOTER.
6011 * remote.c (escape_buffer): Pass '\\' as the quoter to
6012 fputstrn_unfiltered.
6013 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6014 generate the output.
6015 (mi_solib_unloaded): Same.
6016
270c9937
JB
60172014-06-05 Joel Brobecker <brobecker@adacore.com>
6018
6019 * development.sh: Delete.
6020 * Makefile.in (config.status): Adjust dependency on development.sh.
6021 * configure.ac: Adjust development.sh source call.
6022 * configure: Regenerate.
6023
16f691fb
DE
60242014-06-04 Doug Evans <xdje42@gmail.com>
6025
6026 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6027 is_scheme_bkpt, spec.
6028 (bpscm_make_breakpoint_smob): Initialize new members.
6029 (gdbscm_create_breakpoint_x): Split into two ...
6030 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6031 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6032 (scheme_function breakpoint_functions): Update.
6033 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6034 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6035 register-breakpoint!.
6036
ef7cab6b
JB
60372014-06-04 Joel Brobecker <brobecker@adacorer.com>
6038
6039 PR server/17023
6040 * mem-break.c (z_type_supported): Return zero if
6041 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6042
012370f6
TT
60432014-06-04 Tom Tromey <tromey@redhat.com>
6044
6045 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6046 value_from_contents_and_address_unresolved.
6047 (ada_template_to_fixed_record_type_1): Likewise.
6048 (ada_which_variant_applies): Likewise.
6049 * value.h (value_from_contents_and_address_unresolved): Declare.
6050 * value.c (value_from_contents_and_address_unresolved): New
6051 function.
6052 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6053 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6054 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6055
92e2a17f
TT
60562014-06-04 Tom Tromey <tromey@redhat.com>
6057
6058 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6059
c0939df1
TT
60602014-06-04 Tom Tromey <tromey@redhat.com>
6061
6062 * procfs.c (procfs_attach): Make "args" const.
6063 * windows-nat.c (windows_attach): Make "args" const.
6064 * nto-procfs.c (procfs_attach): Make "args" const.
6065 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6066 * go32-nat.c (go32_attach): Make "args" const.
6067 * gnu-nat.c (gnu_attach): Make "args" const.
6068 * darwin-nat.c (darwin_attach): Make "args" const.
6069 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6070 * linux-nat.c (linux_nat_attach): Make "args" const.
6071 * remote.c (extended_remote_attach_1, extended_remote_attach):
6072 Make "args" const.
6073 * target.h (struct target_ops) <to_attach>: Make "args" const.
6074 (find_default_attach): Likewise.
6075 * utils.c (parse_pid_to_attach): Make "args" const.
6076 * utils.h (parse_pid_to_attach): Update.
6077
8eaff7cd
TT
60782014-06-04 Tom Tromey <tromey@redhat.com>
6079
6080 * target-delegates.c: Rebuild.
6081 * target.c (default_thread_address_space): New function.
6082 (target_thread_address_space): Simplify.
6083 * target.h (struct target_ops) <to_thread_address_space>: Add
6084 TARGET_DEFAULT_FUNC.
6085
1913f160
DE
60862014-06-04 Doug Evans <xdje42@gmail.com>
6087
6088 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6089
70ad5bff
MM
60902014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6091
6092 * record-btrace.c: Include event-loop.h and inf-loop.h.
6093 (record_btrace_resume_exec_dir)
6094 (record_btrace_async_inferior_event_handler)
6095 (record_btrace_handle_async_inferior_event): New.
6096 (record_btrace_open): Create async event handler.
6097 (record_btrace_close): Delete async event handler.
6098 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6099 Mark async event handler.
6100 (record_btrace_execution_direction): New.
6101 (init_record_btrace_ops): Initialize to_execution_direction.
6102
b6210538
DE
61032014-06-03 Doug Evans <xdje42@gmail.com>
6104
6105 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6106 (gdbscm_make_parameter): Ditto.
6107
a5b1fd27
DE
61082014-06-03 Doug Evans <dje@google.com>
6109
6110 * exec.c (exec_close_1): Call clear_section_table instead of
6111 resize_section_table.
6112 (clear_section_table): New function.
6113 (resize_section_table): Make static. Rename arg num_added to
6114 adjustment.
6115 * exec.h (clear_section_table): Declare.
6116 (resize_section_table): Delete.
6117 * progspace.c (release_program_space): Call clear_section_table
6118 instead of resize_section_table.
6119
0c6e92a5
SC
61202014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6121
6122 * NEWS (Python Scripting): Add entry about the new xmethods
6123 feature.
6124
883964a7
SC
61252014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6126
6127 * python/py-xmethods.c: New file.
6128 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6129 (objfpy_dealloc): XDECREF on the new xmethods field.
6130 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6131 field.
6132 (objfpy_get_xmethods): New function.
6133 (objfile_getset): New entry 'xmethods'.
6134 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6135 (pspy_dealloc): XDECREF on the new xmethods field.
6136 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6137 field.
6138 (pspy_get_xmethods): New function.
6139 (pspace_getset): New entry 'xmethods'.
6140 * python/python-internal.h: Add declarations for new functions.
6141 * python/python.c (_initialize_python): Invoke
6142 gdbpy_initialize_xmethods.
6143 * python/lib/gdb/__init__.py (xmethods): New
6144 attribute.
6145 * python/lib/gdb/xmethod.py: New file.
6146 * python/lib/gdb/command/xmethods.py: New file.
6147
58992dc5
SC
61482014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6149
6150 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6151 best match method returned by find_overload_match is an xmethod.
6152 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6153 the best matching operator returned by find_overload_match is an
6154 xmethod.
6155 * valops.c: #include "extension.h".
6156 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6157 Return void. The list of matching source methods is returned in
6158 "fn_list" and a vector of matching debug method workers is
6159 returned in "xm_worker_vec". Update all callers.
6160 (value_find_oload_method_list): Likewise.
6161 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6162 non-NULL, then the index of the best matching method in this
6163 vector is returned. Update all callers.
6164 (find_overload_match): Include xmethods while performing overload
6165 resolution.
6166
e81e7f5e
SC
61672014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6168
6169 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6170 * extension-priv.h (struct extension_language_ops): Add the
6171 xmethod interface.
6172 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6173 get_matching_xmethod_workers, get_xmethod_argtypes,
6174 invoke_xmethod, free_xmethod_worker,
6175 free_xmethod_worker_vec): New functions.
6176 * extension.h: #include "common/vec.h".
6177 New function declarations.
6178 (struct xmethod_worker): New struct.
6179 (VEC (xmethod_worker_ptr)): New vector type.
6180 (xmethod_worker_ptr): New typedef.
6181 (xmethod_worker_vec): Likewise.
6182 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6183 builtin_type.
6184 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6185 (struct builtin_type): New field "xmethod".
6186 * valarith.c (value_ptradd): Assert that the value argument is not
6187 lval_xcallable.
6188 * valops.c (value_must_coerce_to_target): Return 0 for
6189 lval_xcallable values.
6190 * value.c (struct value): New field XM_WORKER in the field
6191 LOCATION.
6192 (value_address, value_raw_address): Return 0 for lval_xcallable
6193 values.
6194 (set_value_address): Assert that the value is not an
6195 lval_xcallable.
6196 (value_free): Free the associated xmethod worker when freeing
6197 lval_xcallable values.
6198 (set_value_component_location): Assert that the WHOLE value is not
6199 lval_xcallable.
6200 (value_of_xmethod, call_xmethod): New functions.
6201 * value.h: Declare "struct xmethod_worker".
6202 Declare new functions value_of_xmethod, call_xmethod.
6203
ef370185
JB
62042014-06-03 Joel Brobecker <brobecker@adacore.com>
6205 Pedro Alves <palves@redhat.com>
6206
6207 PR breakpoints/17000
6208 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6209 New function, extracted from software_breakpoint_inserted_here_p.
6210 (software_breakpoint_inserted_here_p): Replace factored out code
6211 by call to find_non_raw_software_breakpoint_inserted_here.
6212 (bp_target_info_copy_insertion_state): New function.
6213 (bkpt_insert_location): Handle the case of a single-step
6214 breakpoint already inserted at the same address.
6215 (bkpt_remove_location): Handle the case of a single-step
6216 breakpoint still inserted at the same address.
6217 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6218 breakpoint already inserted at the same address.
6219 (deprecated_remove_raw_breakpoint): Handle the case of a
6220 non-raw breakpoint still inserted at the same address.
6221 (find_single_step_breakpoint): New function, extracted from
6222 single_step_breakpoint_inserted_here_p.
6223 (find_single_step_breakpoint): New function,
6224 factored out from single_step_breakpoint_inserted_here_p.
6225 (single_step_breakpoint_inserted_here_p): Reimplement.
6226
1e2ccb61
BM
62272014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6228
6229 Pushed by Joel Brobecker <brobecker@adacore.com>
6230 * source.c (show_substitute_path_command): Fix display of matching
6231 substitution rules.
6232
d3448d85
GB
62332014-06-03 Gary Benson <gbenson@redhat.com>
6234
6235 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6236
06eb1586
DE
62372014-06-02 Doug Evans <xdje42@gmail.com>
6238
6239 Add parameter support for Guile.
6240 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6241 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6242 (scm-param.o): New rule.
6243 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6244 (gdbscm_misc_error): Declare.
6245 (gdbscm_canonicalize_command_name): Declare.
6246 (gdbscm_scm_to_host_string): Declare.
6247 (gdbscm_scm_from_host_string): Declare.
6248 (gdbscm_initialize_parameters): Declare.
6249 * guile/guile.c (initialize_gdb_module): Call
6250 gdbscm_initialize_parameters.
6251 * guile/lib/gdb.scm: Export parameter symbols.
6252 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6253 cmdscm_canonicalize_name and made public. All callers updated.
6254 * guile/scm-exception.c (gdbscm_misc_error): New function.
6255 * guile/scm-param.c: New file.
6256 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6257 (gdbscm_scm_to_host_string): New function.
6258 (gdbscm_scm_from_host_string): New function.
6259 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6260
e698b8c4
DE
62612014-06-02 Doug Evans <xdje42@gmail.com>
6262
6263 Add command support for Guile.
6264 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6265 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6266 (scm-cmd.o): New rule.
6267 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6268 (gdbscm_user_error_p): Declare.
6269 (gdbscm_parse_command_name): Declare.
6270 (gdbscm_valid_command_class_p): Declare.
6271 (gdbscm_initialize_commands): Declare.
6272 * guile/guile.c (initialize_gdb_module): Call
6273 gdbscm_initialize_commands.
6274 * guile/lib/gdb.scm: Export command symbols.
6275 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6276 (throw-user-error): New function.
6277 * guile/scm-cmd.c: New file.
6278 * guile/scm-exception.c (user_error_symbol): New static global.
6279 (gdbscm_user_error_p): New function.
6280 (gdbscm_initialize_exceptions): Set user_error_symbol.
6281 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6282
fb1f94b0
PM
62832014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6284
6285 * top.c (command_loop): Handle comments here...
6286 (command_line_input): ... not here.
6287
ded03782
DE
62882014-06-02 Doug Evans <xdje42@gmail.com>
6289
6290 Add progspace support for Guile.
6291 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6292 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6293 (scm-progspace.o): New rule.
6294 * guile/guile-internal.h (pspace_smob): New typedef.
6295 (psscm_pspace_smob_pretty_printers): Declare.
6296 (psscm_pspace_smob_from_pspace): Declare.
6297 (psscm_scm_from_pspace): Declare.
6298 * guile/guile.c (initialize_gdb_module): Call
6299 gdbscm_initialize_pspaces.
6300 * guile/lib/gdb.scm: Export progspace symbols.
6301 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6302 support.
6303 (append-pretty-printer!): Ditto.
6304 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6305 Implement.
6306 * guile/scm-progspace.c: New file.
6307
397998fc
AM
63082014-06-03 Alan Modra <amodra@gmail.com>
6309
6310 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6311 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6312
6aa5f3a6
DE
63132014-06-02 Doug Evans <dje@google.com>
6314
6315 Add support for skeletonless type units.
6316 * dwarf2read.c (struct dwarf2_per_objfile): New member
6317 n_allocated_type_units.
6318 (struct dwarf2_per_objfile) <tu_stats>: New member
6319 nr_all_type_units_reallocs.
6320 (create_signatured_type_table_from_index): Initialize
6321 n_allocated_type_units
6322 (create_all_type_units): Ditto.
6323 (add_type_unit): Move up in file. New arg slot.
6324 All callers updated. Increase space for all_type_units more
6325 efficiently.
6326 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6327 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6328 (lookup_dwp_signatured_type): Ditto.
6329 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6330 All callers updated.
6331 (build_type_psymtabs_1): Leave type_unit_groups as
6332 NULL if no TUs present.
6333 (print_tu_stats): New function.
6334 (process_skeletonless_type_unit): New function.
6335 (process_dwo_file_for_skeletonless_type_units): New
6336 function.
6337 (process_skeletonless_type_units): New function.
6338 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6339 Call print tu_stats if debugging enabled.
6340
41fac0cf
PA
63412014-06-02 Pedro Alves <palves@redhat.com>
6342
6343 * breakpoint.c (build_target_command_list): Don't build a command
6344 list if we have any duplicate location that isn't a dprintf.
6345
cd1608cc
PA
63462014-06-02 Pedro Alves <palves@redhat.com>
6347
6348 * breakpoint.c (dprintf_breakpoint_hit): New function.
6349 (initialize_breakpoint_ops): Install it as dprintf's
6350 breakpoint_hit method.
6351
486ef3b9
JB
63522014-06-02 Joel Brobecker <brobecker@adacore.com>
6353
6354 * source.c (substitute_path_rule_matches): Simplify using
6355 filename_ncmp instead of FILENAME_CMP.
6356
230cd560
JB
63572014-06-02 Joel Brobecker <brobecker@adacore.com>
6358
6359 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6360
16954d5d
LC
63612014-06-01 Ludovic Courtès <ludo@gnu.org>
6362
6363 * configure.ac: When Guile is available, check for the
6364 availability of 'scm_new_smob'.
6365 * configure, config.h.in: Regenerate.
6366 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6367 function.
6368
53e8a631
AB
63692014-05-30 Andrew Burgess <aburgess@broadcom.com>
6370
6371 * frame.c (struct frame_info): Add stop_string field.
6372 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6373 (get_prev_frame_always): Old content moved into
6374 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6375 TRY_CATCH, handle MEMORY_ERROR exceptions.
6376 (frame_stop_reason_string): New function definition.
6377 * frame.h (unwind_stop_reason_to_string): Extend comment to
6378 mention frame_stop_reason_string.
6379 (frame_stop_reason_string): New function declaration.
6380 * stack.c (frame_info): Switch to frame_stop_reason_string.
6381 (backtrace_command_1): Switch to frame_stop_reason_string.
6382 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6383 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6384 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6385
70e38b8e
AB
63862014-05-30 Andrew Burgess <aburgess@broadcom.com>
6387
6388 * frame.c (frame_stop_reason_string): Rename to ...
6389 (unwind_stop_reason_to_string): this.
6390 * frame.h (frame_stop_reason_string): Rename to ...
6391 (unwind_stop_reason_to_string): this.
6392 * stack.c (frame_info): Update call to frame_stop_reason_string.
6393 (backtrace_command_1): Likewise.
6394 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6395 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6396
938f0e2f
AB
63972014-05-30 Andrew Burgess <aburgess@broadcom.com>
6398
6399 * frame.c (remove_prev_frame): New function.
6400 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6401 remove_prev_frame.
6402
a09dd441
PA
64032014-05-29 Pedro Alves <palves@redhat.com>
6404
6405 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6406 and make it const. When a single-step decays to a continue,
6407 clear 'step', not 'hw_step'. Pass whether the caller wanted
6408 to step to user_visible_resume_ptid, not what we ask the
6409 target to do.
6410
bdc36728
PA
64112014-05-29 Pedro Alves <palves@redhat.com>
6412
6413 * infrun.c (process_event_stop_test, handle_step_into_function)
6414 (handle_step_into_function_backward): Adjust.
6415 Don't set the even thread's stop_step and call stop_waiting before
6416 calling end_stepping_range. Instead do that ...
6417 (end_stepping_range): ... here. Take an ecs pointer parameter.
6418
22bcd14b
PA
64192014-05-29 Pedro Alves <palves@redhat.com>
6420
6421 * infrun.c (stop_stepping): Rename to ...
6422 (stop_waiting): ... this.
6423 (proceed): Update comment.
6424 (process_event_stop_test, handle_inferior_event)
6425 (handle_signal_stop, handle_step_into_function)
6426 (handle_step_into_function_backward): Update.
6427
4ae57c05
PA
64282014-05-29 Pedro Alves <palves@redhat.com>
6429
6430 * infcall.c (run_inferior_call): Don't check whether the current
6431 thread is running after the proceed call.
6432
329ea579
PA
64332014-05-29 Pedro Alves <palves@redhat.com>
6434 Tom Tromey <tromey@redhat.com>
6435
6436 * NEWS: Mention "maint set target-async", "set mi-async", and that
6437 background execution commands are now always available.
6438 * target.h (target_async_permitted): Update comment.
6439 * target.c (target_async_permitted, target_async_permitted_1):
6440 Default to 1.
6441 (set_target_async_command): Rename to ...
6442 (maint_set_target_async_command): ... this.
6443 (show_target_async_command): Rename to ...
6444 (maint_show_target_async_command): ... this.
6445 (_initialize_target): Adjust.
6446 * infcmd.c (prepare_execution_command): Make extern.
6447 * inferior.h (prepare_execution_command): Declare.
6448 * infrun.c (set_observer_mode): Leave target async alone.
6449 * mi/mi-interp.c (mi_interpreter_init): Install
6450 mi_on_sync_execution_done as sync_execution_done observer.
6451 (mi_on_sync_execution_done): New function.
6452 (mi_execute_command_input_handler): Don't print the prompt if we
6453 just started a synchronous command with an async target.
6454 (mi_on_resume): Check sync_execution before printing prompt.
6455 * mi/mi-main.h (mi_async_p): Declare.
6456 * mi/mi-main.c: Include gdbcmd.h.
6457 (mi_async_p): New function.
6458 (mi_async, mi_async_1): New globals.
6459 (set_mi_async_command, show_mi_async_command, mi_async): New
6460 functions.
6461 (exec_continue): Call prepare_execution_command.
6462 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6463 (mi_execute_async_cli_command): Use mi_async_p.
6464 (_initialize_mi_main): Install "set mi-async". Make
6465 "target-async" a deprecated alias.
6466
92bcb5f9
PA
64672014-05-29 Pedro Alves <palves@redhat.com>
6468
6469 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6470 (_initialize_cli_interp): Adjust.
6471 * event-loop.c: Include "observer.h".
6472 (start_event_loop): Notify 'command_error' observers instead of
6473 calling display_gdb_prompt. Remove FIXME comment.
6474 * event-top.c (display_gdb_prompt): Remove call into the
6475 interpreters.
6476 * inf-loop.c: Include "observer.h".
6477 (inferior_event_handler): Notify 'command_error' observers instead
6478 of calling display_gdb_prompt.
6479 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6480 observers instead of calling display_gdb_prompt.
6481 * interps.c (interp_set): Don't call display_gdb_prompt.
6482 (current_interp_display_prompt_p): Delete.
6483 * interps.h (interp_prompt_p): Delete declaration.
6484 (interp_prompt_p_ftype): Delete.
6485 (struct interp_procs) <prompt_proc_p>: Delete field.
6486 (current_interp_display_prompt_p): Delete declaration.
6487 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6488 (_initialize_mi_interp): Adjust.
6489 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6490 'command_error' observers.
6491 (tui_on_sync_execution_done, tui_on_command_error): New
6492 functions.
6493 (tui_display_prompt_p): Delete.
6494 (_initialize_tui_interp): Adjust.
6495
fd664c91
PA
64962014-05-29 Pedro Alves <palves@redhat.com>
6497
6498 PR gdb/13860
6499 * cli/cli-interp.c: Include infrun.h and observer.h.
6500 (cli_uiout, cli_interp): New globals.
6501 (cli_on_signal_received, cli_on_end_stepping_range)
6502 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6503 functions.
6504 (cli_interpreter_init): Install them as 'end_stepping_range',
6505 'signal_received' 'signal_exited', 'exited' and 'no_history'
6506 observers.
6507 (_initialize_cli_interp): Remove cli_interp local.
6508 * infrun.c (handle_inferior_event): Call the several stop reason
6509 observers instead of printing the stop reason directly.
6510 (end_stepping_range): New function.
6511 (print_end_stepping_range_reason, print_signal_exited_reason)
6512 (print_exited_reason, print_signal_received_reason)
6513 (print_no_history_reason): Make static, and add an uiout
6514 parameter. Print to that instead of to CURRENT_UIOUT.
6515 * infrun.h (print_end_stepping_range_reason)
6516 (print_signal_exited_reason, print_exited_reason)
6517 (print_signal_received_reason print_no_history_reason): New
6518 declarations.
6519 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6520 'mi_uiout'.
6521 <cli_uiout>: New field.
6522 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6523 uiout for CLI output. Install 'signal_received',
6524 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6525 observers.
6526 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6527 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6528 (mi_on_no_history): New functions.
6529 (ui_out_free_cleanup): Delete function.
6530 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6531 instead use the one already stored in the MI interpreter data.
6532 (mi_ui_out): Adjust.
6533 * tui/tui-interp.c: Include infrun.h and observer.h.
6534 (tui_interp): New global.
6535 (tui_on_signal_received, tui_on_end_stepping_range)
6536 (tui_on_signal_exited, tui_on_exited)
6537 (tui_on_no_history): New functions.
6538 (tui_init): Install them as 'end_stepping_range',
6539 'signal_received' 'signal_exited', 'exited' and 'no_history'
6540 observers.
6541 (_initialize_tui_interp): Delete tui_interp local.
6542
8817a6f2
PA
65432014-05-29 Pedro Alves <palves@redhat.com>
6544
6545 PR gdb/15713
6546 * linux-nat.c (linux_nat_resume_callback): Rename the second
6547 parameter to 'except'. Skip LP if it points to EXCEPT.
6548 (linux_nat_resume): Don't mark the event lwp as not stopped
6549 before resuming sibling lwps. Instead ask
6550 linux_nat_resume_callback to skip the event lwp. Mark it as not
6551 stopped after actually resuming it.
6552 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6553 resuming it.
6554 (wait_lwp): Mark the lwp as stopped here.
6555 (stop_wait_callback): Mark the lwp as not stopped right after
6556 resuming it. Don't mark lwps as stopped here.
6557 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6558 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6559
251bde03
PA
65602014-05-29 Pedro Alves <palves@redhat.com>
6561
6562 PR PR15693
6563 * infrun.c (resume): Determine how much to resume depending on
6564 whether the caller wanted a step, not whether we can hardware step
6565 the target. Mark all threads that we intend to run as running,
6566 unless we're calling an inferior function.
6567 (normal_stop): If the thread is running an infcall, don't finish
6568 thread state.
6569 * target.c (target_resume): Don't mark threads as running here.
6570
7f3c0343
JB
65712014-05-28 Joel Brobecker <brobecker@adacore.com>
6572
6573 * serial.c (_initialize_serial): Remove support for
6574 the "set remotebaud" and "show remotebaud" commands.
6575 * NEWS: Add entry documenting the removal of that command.
6576
ee34b3f9
YQ
65772014-05-28 Yao Qi <yao@codesourcery.com>
6578
6579 * charset.c: Fix typo in comments.
6580
add6c04d
GB
65812014-05-27 Gary Benson <gbenson@redhat.com>
6582
6583 * utils.c (internal_vproblem): Prompt for a bug report.
6584
92c48fc5
AW
65852014-05-26 Andy Wingo <wingo@igalia.com>
6586
6587 * guile/scm-arch.c (arscm_mark_arch_smob):
6588 * guile/scm-block.c (bkscm_mark_block_smob)
6589 (bkscm_mark_block_syms_progress_smob):
6590 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6591 * guile/scm-exception.c (exscm_mark_exception_smob):
6592 * guile/scm-frame.c (frscm_mark_frame_smob):
6593 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6594 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6595 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6596 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6597 (ppscm_mark_pretty_printer_worker_smob):
6598 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6599 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6600 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6601 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6602 mark functions.
6603 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6604 function.
6605
b2715b27
AW
66062014-05-26 Andy Wingo <wingo@igalia.com>
6607 Doug Evans <xdje42@gmail.com>
6608
6609 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6610 empty_base_class. All uses updated.
6611 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6612 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6613 Adapt all callers.
6614 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6615 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6616 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6617 (gdbscm_gsmob_has_property_p, add_property_name)
6618 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6619 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6620 (gdb-object-has-property?, gdb-object-properties): Remove.
6621 (gdb-object-kind): Renamed from gsmob-kind.
6622
214ab2da
AW
66232014-05-26 Andy Wingo <wingo@igalia.com>
6624
6625 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6626 * configure: Regenerate.
6627
589fdceb
MM
66282014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6629
6630 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6631
67b5c0c1
MM
66322014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6633
6634 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6635 (replay_memory_access_read_only, replay_memory_access_read_write)
6636 (replay_memory_access_types, replay_memory_access)
6637 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6638 (cmd_set_record_btrace, cmd_show_record_btrace)
6639 (cmd_show_replay_memory_access): New.
6640 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6641 (record_btrace_remove_breakpoint): Replace
6642 record_btrace_allow_memory_access with replay_memory_access.
6643 (_initialize_record_btrace): Add commands.
6644 * NEWS: Announce it.
6645
036cd381
RR
66462014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6647
6648 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6649
c77c1e42
RR
66502014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6651
6652 * MAINTAINERS (Write After Approval): Move self back from
6653 paper trail.
6654
45741a9c
PA
66552014-05-22 Pedro Alves <palves@redhat.com>
6656
6657 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6658 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6659 (disable_randomization, enum exec_direction_kind)
6660 (execution_direction, stop_registers, start_remote)
6661 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6662 (wait_for_inferior, normal_stop, get_last_target_status)
6663 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6664 (insert_step_resume_breakpoint_at_sal)
6665 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6666 (set_step_info, print_stop_event, signal_stop_state)
6667 (signal_print_state, signal_pass_state, signal_stop_update)
6668 (signal_print_update, signal_pass_update)
6669 (update_signals_program_target, clear_exit_convenience_vars)
6670 (displaced_step_dump_bytes, update_observer_mode)
6671 (signal_catch_update, gdb_signal_from_command): Move
6672 declarations ...
6673 * infrun.h: ... to this new file.
6674 * amd64-tdep.c: Include infrun.h.
6675 * annotate.c: Include infrun.h.
6676 * arch-utils.c: Include infrun.h.
6677 * arm-linux-tdep.c: Include infrun.h.
6678 * arm-tdep.c: Include infrun.h.
6679 * break-catch-sig.c: Include infrun.h.
6680 * breakpoint.c: Include infrun.h.
6681 * common/agent.c: Include infrun.h instead of inferior.h.
6682 * corelow.c: Include infrun.h.
6683 * event-top.c: Include infrun.h.
6684 * go32-nat.c: Include infrun.h.
6685 * i386-tdep.c: Include infrun.h.
6686 * inf-loop.c: Include infrun.h.
6687 * infcall.c: Include infrun.h.
6688 * infcmd.c: Include infrun.h.
6689 * infrun.c: Include infrun.h.
6690 * linux-fork.c: Include infrun.h.
6691 * linux-nat.c: Include infrun.h.
6692 * linux-thread-db.c: Include infrun.h.
6693 * monitor.c: Include infrun.h.
6694 * nto-tdep.c: Include infrun.h.
6695 * procfs.c: Include infrun.h.
6696 * record-btrace.c: Include infrun.h.
6697 * record-full.c: Include infrun.h.
6698 * remote-m32r-sdi.c: Include infrun.h.
6699 * remote-mips.c: Include infrun.h.
6700 * remote-notif.c: Include infrun.h.
6701 * remote-sim.c: Include infrun.h.
6702 * remote.c: Include infrun.h.
6703 * reverse.c: Include infrun.h.
6704 * rs6000-tdep.c: Include infrun.h.
6705 * s390-linux-tdep.c: Include infrun.h.
6706 * solib-irix.c: Include infrun.h.
6707 * solib-osf.c: Include infrun.h.
6708 * solib-svr4.c: Include infrun.h.
6709 * target.c: Include infrun.h.
6710 * top.c: Include infrun.h.
6711 * windows-nat.c: Include infrun.h.
6712 * mi/mi-interp.c: Include infrun.h.
6713 * mi/mi-main.c: Include infrun.h.
6714 * python/py-threadevent.c: Include infrun.h.
6715
98eb56a4
PA
67162014-05-22 Pedro Alves <palves@redhat.com>
6717
6718 * infrun.c (handle_inferior_event): Store the exit code for
6719 --return-child-result here, instead of ...
6720 (print_exited_reason): ... here.
6721
17b2616c
PA
67222014-05-21 Pedro Alves <palves@redhat.com>
6723
6724 PR gdb/13860
6725 * gdbthread.h (struct thread_control_state): New field
6726 `command_interp'.
6727 * infrun.c (follow_fork): Copy the new thread control field to the
6728 child fork thread.
6729 (clear_proceed_status_thread): Clear the new thread control field.
6730 (proceed): Set the new thread control field.
6731 * interps.h (command_interp): Declare.
6732 * interps.c (command_interpreter): New global.
6733 (command_interp): New function.
6734 (interp_exec): Set `command_interpreter' while here.
6735 * cli-out.c (cli_uiout_dtor): New function.
6736 (cli_ui_out_impl): Install it.
6737 * mi/mi-interp.c: Include cli-out.h.
6738 (mi_cmd_interpreter_exec): Add comment.
6739 (restore_current_uiout_cleanup): New function.
6740 (ui_out_free_cleanup): New function.
6741 (mi_on_normal_stop): If finishing an execution command started by
6742 a CLI command, or any kind of breakpoint-like event triggered,
6743 print the stop event to the output (CLI) stream.
6744 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6745
5166082f
PA
67462014-05-21 Pedro Alves <palves@redhat.com>
6747
6748 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6749 current source line having changed.
6750 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6751 * infrun.c (normal_stop): Adjust call to
6752 set_current_sal_from_frame.
6753 * source.c (clear_lines_listed_range): New function.
6754 (set_current_source_symtab_and_line, identify_source_line): Clear
6755 the lines listed range.
6756 (line_info): Handle the first "info line" after the current source
6757 line having changed.
6758 * stack.c (print_stack_frame): Remove center handling.
6759 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6760 center sal.line.
6761
c1ee2fb3
PA
67622014-05-21 Pedro Alves <palves@redhat.com>
6763
6764 * inf-child.c (inf_child_mourn_inferior): New function.
6765 * inf-child.h (inf_child_mourn_inferior): New declaration.
6766 * darwin-nat.c (darwin_mourn_inferior): Use
6767 inf_child_mourn_inferior.
6768 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6769 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6770 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6771 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6772 * windows-nat.c (windows_mourn_inferior): Likewise.
6773
5c6d4fb2
DE
67742014-05-21 Doug Evans <xdje42@gmail.com>
6775
250748cb 6776 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 6777
4a2722c5
DE
67782014-05-21 Doug Evans <xdje42@gmail.com>
6779
17292b30 6780 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
6781 (gdbscm_out_of_range_error): Ditto.
6782 (gdbscm_memory_error): Ditto.
250748cb
DE
6783 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6784 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
6785 (gdbscm_out_of_range_error): Update.
6786 (gdbscm_memory_error): Update.
6787 (gdbscm_scm_to_target_string_unsafe): Delete.
6788
6a3cb8e8
PA
67892014-05-21 Pedro Alves <palves@redhat.com>
6790
6791 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6792 globals.
6793 (inf_child_open_target): New function.
6794 (inf_child_open): Use inf_child_open_target to push the target
6795 instead of erroring out.
6796 (inf_child_disconnect, inf_child_close)
6797 (inf_child_maybe_unpush_target): New functions.
6798 (inf_child_target): Install inf_child_disconnect and
6799 inf_child_close. Store a pointer to the returned object.
6800 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6801 declarations.
6802 * target.c (auto_connect_native_target): New global.
6803 (show_default_run_target): New function.
6804 (find_default_run_target): Return NULL if automatically connecting
6805 to the native target is disabled.
6806 (_initialize_target): Install set/show auto-connect-native-target.
6807 * NEWS: Mention "set auto-connect-native-target", and "target
6808 native".
6809 * linux-nat.c (super_close): New global.
6810 (linux_nat_close): Call super_close.
6811 (linux_nat_add_target): Store a pointer to the base class's
6812 to_close method.
6813 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6814 inf_child_maybe_unpush.
6815 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6816 already pushed.
6817 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6818 the inferior. Use inf_child_maybe_unpush_target.
6819 (inf_ttrace_attach): Don't push the target if it is already
6820 pushed.
6821 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6822 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6823 after mourning the inferior. Use inf_child_maybe_unpush_target.
6824 (darwin_attach_pid): Don't push the target if it is already
6825 pushed.
6826 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6827 mourning the inferior. Use inf_child_maybe_unpush_target.
6828 (gnu_detach): Use inf_child_maybe_unpush_target.
6829 * go32-nat.c (go32_create_inferior): Don't push the target if it
6830 is already pushed.
6831 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6832 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6833 (procfs_open): Rename to ...
6834 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6835 comments. Can target_preopen before changing node. Call
6836 inf_child_open_target to push the target explicitly.
6837 (procfs_attach): Don't push the target if it is already pushed.
6838 (procfs_detach): Use inf_child_maybe_unpush_target.
6839 (procfs_create_inferior): Don't push the target if it is already
6840 pushed.
6841 (nto_native_ops): New global.
6842 (procfs_open): Reimplement.
6843 (procfs_native_open): New function.
6844 (init_procfs_targets): Install procfs_native_open as to_open of
6845 "target native". Store a pointer to the "native" target in
6846 nto_native_ops.
6847 * procfs.c (procfs_attach): Don't push the target if it is already
6848 pushed.
6849 (procfs_detach): Use inf_child_maybe_unpush_target.
6850 (procfs_mourn_inferior): Only unpush the target after mourning the
6851 inferior. Use inf_child_maybe_unpush_target.
6852 (procfs_init_inferior): Don't push the target if it is already
6853 pushed.
6854 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6855 if it is already pushed.
6856
930ee1b1
PA
68572014-05-21 Pedro Alves <palves@redhat.com>
6858
6859 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6860 and "procfs" targets are now called "native" instead.
6861
1f5d1b13
PA
68622014-05-21 Pedro Alves <palves@redhat.com>
6863
6864 * go32-nat.c (go32_open): Delete.
6865 (go32_target): Don't override the to_open method.
6866
132f8e03
PA
68672014-05-21 Pedro Alves <palves@redhat.com>
6868
6869 * nto-procfs.c (procfs_can_run): New function.
6870 (nto_procfs_ops): New global.
6871 (init_procfs_targets): New, based on procfs_target. Install
6872 "target native" in addition to "target procfs".
6873 (_initialize_procfs): Call init_procfs_targets instead of adding
6874 the target here.
6875
03c136c3
PA
68762014-05-21 Pedro Alves <palves@redhat.com>
6877
6878 * windows-nat.c (windows_target): Don't override to_shortname,
6879 to_longname or to_doc.
6880
a635d0f3
PA
68812014-05-21 Pedro Alves <palves@redhat.com>
6882
6883 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6884 to_doc.
6885
4f9b5133
PA
68862014-05-21 Pedro Alves <palves@redhat.com>
6887
6888 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6889 to_shortname, to_longname or to_doc.
6890
bc85afde
PA
68912014-05-21 Pedro Alves <palves@redhat.com>
6892
6893 * go32-nat.c (go32_target): Don't override to_shortname,
6894 to_longname or to_doc.
6895
4ebfc96e
PA
68962014-05-21 Pedro Alves <palves@redhat.com>
6897
6898 * inf-child.c (inf_child_open): Remove mention of "child".
6899 (inf_child_target): Rename target to "native" instead of "child".
6900
2648dfed
AA
69012014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6902
6903 * Makefile.in (SFILES): Delete "regset.c".
6904 (COMMON_OBS): Delete "regset.o".
6905 * regset.c: Remove.
6906 * regset.h (regset_alloc): Delete prototype.
6907
b13feb94
AA
69082014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6909
6910 * sparc-linux-tdep.c (sparc32_linux_gregset)
6911 (sparc32_linux_fpregset): New static regset structures.
6912 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6913 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6914 'fpregset' fields.
6915 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6916 (sparc64_linux_fpregset): New static regset structures.
6917 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6918 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6919 New static regset structures.
6920 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6921 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6922 New static regset structures.
6923 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6924 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6925 New static regset structures.
6926 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6927 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6928 New static regset structures.
6929 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6930
b4fd25c9
AA
69312014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6932
6933 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6934 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6935 register maps ("regmaps") from "*regset" to "*regmap". Do this
6936 for all regmap types and variables.
6937 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6938 (sparc32_linux_supply_core_gregset)
6939 (sparc32_linux_collect_core_gregset)
6940 (sparc32_linux_supply_core_fpregset)
6941 (sparc32_linux_collect_core_fpregset): Likewise.
6942 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6943 (sparc_gregmap, sparc_fpregmap): ... these.
6944 (sparc_supply_gregset, sparc_collect_gregset)
6945 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6946 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6947 (_initialize_sparc_nat): Rename regmaps.
6948 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6949 (sparc_gregmap, sparc_fpregmap): ... these.
6950 (sparc_supply_gregset, sparc_collect_gregset)
6951 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6952 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6953 Rename macros to...
6954 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6955 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6956 Likewise.
6957 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6958 Rename to...
6959 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6960 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6961 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6962 regmaps.
6963 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6964 (sparc32_bsd_fpregset): Rename to...
6965 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6966 (sparc32_bsd_fpregmap): ... these.
6967 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6968 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6969 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6970 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6971 (struct sparc_gregmap, struct sparc_fpregmap)
6972 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6973 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6974 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6975 (sparc32_supply_regset, sparc32_collect_gregset)
6976 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6977 prototypes.
6978 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6979 (sparc64_linux_ptrace_gregmap): ... this.
6980 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6981 (_initialize_sparc64_linux_nat): Rename regmaps.
6982 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6983 (sparc64_linux_core_gregmap): ... this.
6984 (sparc64_linux_supply_core_gregset)
6985 (sparc64_linux_collect_core_gregset)
6986 (sparc64_linux_supply_core_fpregset)
6987 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6988 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6989 (sparc64_sol2_fpregset): Rename to...
6990 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6991 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6992 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6993 regmaps.
6994 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6995 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6996 (sparc64_bsd_fpregset): Rename to...
6997 (struct sparc_gregmap, sparc64_sol2_gregmap)
6998 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6999 (sparc64_bsd_fpregmap): ... these.
7000 (sparc64_supply_gregset, sparc64_collect_gregset)
7001 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7002 prototypes.
7003 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7004 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7005 (sparc64fbsd_gregmap): ... this.
7006 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7007 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7008 Rename regmaps.
7009 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7010 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7011 (sparc64nbsd_collect_fpregset): Likewise.
7012 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7013 (sparc64nbsd_gregmap): ... this.
7014 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7015 regmaps.
7016 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7017 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7018 (sparc64obsd_gregmap): ... this.
7019 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7020 regmaps.
7021 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7022 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7023 (sparc32nbsd_gregmap): ... this.
7024 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7025 regmaps.
7026
8fea3224
AA
70272014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7028
7029 * score-tdep.c (score7_linux_gregset): New static regset
7030 structure.
7031 (score7_linux_regset_from_core_section): Remove dynamic regset
7032 allocation.
7033 (score_gdbarch_init): Drop allocation of tdep structure.
7034 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7035
24534243
AA
70362014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7037
7038 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7039 regset structures.
7040 (am33_regset_from_core_section): Remove dynamic regset
7041 allocations.
7042
b7195f27
AA
70432014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7044
7045 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7046 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7047 structures.
7048 (mips_linux_regset_from_core_section): Remove dynamic regset
7049 allocations.
7050 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7051 'gregset64', 'fpregset', and 'fpregset64'.
7052 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7053 deleted tdep fields.
7054
ecc37a5a
AA
70552014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7056
7057 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7058 regset structures.
7059 (amd64_regset_from_core_section): Remove dynamic regset
7060 allocations.
7061 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7062 structure.
7063 (amd64obsd_regset_from_core_section): Remove dynamic regset
7064 allocation.
7065 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7066 Likewise.
7067 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7068 x86-common regset supply function.
7069 * i386-tdep.c (i386_collect_gregset): Make static.
7070 (i386_gregset): New global regset structure.
7071 (i386_fpregset, i386_xstateregset): New static regset structures.
7072 (i386_regset_from_core_section): Remove dynamic regset
7073 allocations.
7074 (i386_gdbarch_init): Remove initialization of tdep fields
7075 'gregset', 'fpregset', and 'xstateregset'.
7076 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7077 'fpregset', and 'xstateregset'.
7078 (i386_collect_gregset): Remove prototype.
7079 (i386_gregset): New declaration.
7080 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7081 structure.
7082 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7083 allocation.
7084
b7611c43
AA
70852014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7086
7087 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7088 (arm_linux_vfpregset): New static regset structures.
7089 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7090 regset structures.
7091 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7092 and 'vfpregset' fields.
7093
a069a2bd
AA
70942014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7095
7096 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7097 (aarch64_linux_fpregset): New static regset structures.
7098 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7099 of regset structures.
7100 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7101 'fpregset' fields.
7102
09424cff
AA
71032014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7104
7105 * regset.h (struct regset): Remove gdbarch field.
7106 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7107 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7108 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7109 Likewise.
7110 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7111 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7112 (ppc32_linux_vsxregset): Likewise.
7113 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7114 via the regcache instead of the regset.
7115 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7116 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7117 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7118 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7119 Likewise.
7120
3ca7dae4
AA
71212014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7122
7123 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7124 Constify structures.
7125 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7126 (alphanbsd_aout_gregset): Likewise.
7127 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7128 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7129 Likewise.
7130 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7131 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7132 Likewise.
7133 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7134 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7135 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7136 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7137 * m88k-tdep.c (m88k_gregset): Likewise.
7138 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7139 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7140 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7141 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7142 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7143 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7144 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7145 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7146 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7147 Likewise.
7148 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7149 * sh-tdep.h (sh_corefile_gregset): Likewise.
7150 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7151 * vax-tdep.c (vax_gregset): Likewise.
7152
5876f503
JK
71532014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7154
7155 Fix TLS access for -static -pthread.
7156 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7157 (try_thread_db_load_1): Initialize it.
7158 (thread_db_get_thread_local_address): Call it if LM is zero.
7159 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7160 * target.h (struct target_ops) (to_get_thread_local_address): Add
7161 load_module_addr comment.
7162
0256a6ac
PA
71632014-05-21 Pedro Alves <palves@redhat.com>
7164
7165 * dcache.c (dcache_read_memory_partial): If reading the cache line
7166 fails, fallback to reading just the memory the caller wanted.
7167
227533ac
DE
71682014-05-20 Doug Evans <dje@google.com>
7169
7170 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7171 instead of get_current_arch.
7172
936d2992
PA
71732014-05-20 Pedro Alves <palves@redhat.com>
7174
7175 * NEWS: Mention that compare-sections now works with all targets.
7176
7177 * remote.c (PACKET_qCRC): New enum value.
7178 (remote_verify_memory): Don't send qCRC if the target has no
7179 execution. Use packet_support/packet_ok. If the target doesn't
7180 support the qCRC packet, fallback to a deep memory copy.
7181 (compare_sections_command): Say "target image" instead of "remote
7182 executable".
7183 (_initialize_remote): Add PACKET_qCRC to the list of config
7184 packets that have no associated command. Extend comment.
7185 * target.c (simple_verify_memory, default_verify_memory): New
7186 function.
7187 * target.h (struct target_ops) <to_verify_memory>: Default to
7188 default_verify_memory.
7189 (simple_verify_memory): New declaration.
7190 * target-delegates.c: Regenerate.
7191
e59fa00f
MM
71922014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7193
7194 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7195
f2205de0
HZ
71962014-05-20 Hui Zhu <hui@codesourcery.com>
7197 Yao Qi <yao@codesourcery.com>
7198
7199 PR backtrace/16558
7200 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7201 and change address of sp and pc.
7202
c4e54771
TT
72032014-05-19 Tom Tromey <tromey@redhat.com>
7204
7205 * gdbtypes.c (rank_function): Use XNEWVEC.
7206 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7207
73051182
DE
72082014-05-19 Doug Evans <dje@google.com>
7209
7210 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7211 build_type_unit_groups and moved closer to only caller. Remove
7212 arguments. All references updated. Remove outdated .gdb_index
7213 comment.
7214 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7215 build_type_psymtabs_1.
7216
8832e7e3
DE
72172014-05-19 Doug Evans <dje@google.com>
7218
7219 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7220 n_type_unit_groups, all_type_unit_groups. All uses removed.
7221 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7222 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7223 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7224 (add_type_unit_group_to_table): Delete.
7225
cd8ae15e
DE
72262014-05-19 Doug Evans <dje@google.com>
7227
7228 * eval.c (evaluate_subexp_standard): Add some comments.
7229
08f4850b
DE
72302014-05-17 Doug Evans <xdje42@gmail.com>
7231
7232 * progspace.c (remove_program_space): Delete, unused.
7233 * progspace.h (remove_program_space): Ditto.
7234
bed8455c
DE
72352014-05-17 Doug Evans <xdje42@gmail.com>
7236
7237 * inferior.c (prune_inferiors): Fix comment.
7238 (remove_inferior_command): Call prune_program_spaces.
7239
8d551b02
DE
72402014-05-16 Doug Evans <dje@google.com>
7241
7242 New command line option -D.
7243 * NEWS: Mention it.
7244 * main.c (set_gdb_data_directory): New function.
7245 (captured_main): Recognize -D. Flag error for --data-directory "".
7246 Call set_gdb_data_directory.
7247 (print_gdb_help): Print --data-directory, -D.
7248 * main.h (set_gdb_data_directory): Declare.
7249 * top.c (staged_gdb_datadir): New static global.
7250 (set_gdb_datadir): Call set_gdb_data_directory
7251 (show_gdb_datadir): New function.
7252 (init_main): Update init of data-directory parameter.
7253
18848e28
GF
72542014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7255
7256 Import the "dirfd" gnulib module.
7257 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7258 * gnulib/aclocal.m4: Update.
7259 * gnulib/config.in: Update.
7260 * gnulib/configure: Update.
7261 * gnulib/import/Makefile.am: Update.
7262 * gnulib/import/Makefile.in: Update.
7263 * gnulib/import/dirfd.c: New.
7264 * gnulib/import/m4/dirfd.m4: New.
7265 * gnulib/import/m4/gnulib-cache.m4: Update.
7266 * gnulib/import/m4/gnulib-comp.m4: Update.
7267
95c64f92
YQ
72682014-05-16 Pierre Muller <muller@sourceware.org>
7269 Yao Qi <yao@codesourcery.com>
7270
7271 * valprint.c (print_wchar): Move the code on checking whether
7272 W is a printable wide char to the default branch of switch
7273 statement below. Call wchar_printable instead of gdb_iswprint.
7274
cac395ea
TM
72752014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7276
19679eca 7277 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
7278 ldr.w and ldrd instructions.
7279
83655187
DE
72802014-05-15 Doug Evans <dje@google.com>
7281
7282 * dwarf2read.c (read_structure_type): Delete outdated comments.
7283
dd756689
TT
72842014-05-14 Tom Tromey <tromey@redhat.com>
7285
7286 * macrocmd.c (print_macro_definition): Reindent.
7287
75ddda77
DE
72882014-05-13 Doug Evans <xdje42@gmail.com>
7289
7290 * python/py-cmd.c (cmdpy_completer): Add comment.
7291 (completers): Make const.
7292
b0f16a3e
SM
72932014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7294
7295 * infrun.c (resume): Remove should_resume (unused). Move up
7296 declaration of resume_ptid.
7297
033c3379
TT
72982014-05-13 Tom Tromey <tromey@redhat.com>
7299
7300 * language.h (unop_type_check): Remove.
7301 (binop_type_check): Don't declare.
7302
9b44a3a5
AA
73032014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7304
7305 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7306 call to regcache_raw_collect.
7307
303a33fa
SM
73082014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7309
7310 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7311 mi_console->quote as the quoting character.
7312
196100a0
SM
73132014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7314
7315 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7316
f989a1c8
TT
73172014-04-29 Tom Tromey <tromey@redhat.com>
7318
7319 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7320 "show debug varobj".
7321
9404b58f
KM
73222014-05-07 Kyle McMartin <kyle@redhat.com>
7323
7324 Pushed by Joel Brobecker <brobecker@adacore.com>.
7325 * aarch64-tdep.c (aarch64_software_single_step): New function.
7326 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7327 with aarch64_software_single_step.
7328
5e49ba57
JB
73292014-05-05 Joel Brobecker <brobecker@adacore.com>
7330
7331 GDB 7.7.1 released.
7332
c888a17d
KS
73332014-05-05 Keith Seitz <keiths@redhat.com>
7334
7335 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7336 variable or history value is successfully parsed.
7337
290a839c
YQ
73382014-05-05 Yao Qi <yao@codesourcery.com>
7339 Pedro Alves <palves@redhat.com>
7340
7341 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7342 address of blocks that intersects the requested range. Trim
7343 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7344 sections.
7345 * ctf.c (ctf_xfer_partial): Likewise.
7346
91256dc2
YQ
73472014-05-05 Yao Qi <yao@codesourcery.com>
7348
7349 * printcmd.c (display_command): Remove the check to
7350 target_has_execution.
7351
07284463
MK
73522014-05-03 Mark Kettenis <kettenis@gnu.org>
7353
7354 * ppcobsd-nat.c: Include "obsd-nat.h".
7355 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7356 add_target.
7357 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7358
30a1e6cc
SDJ
73592014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7360
7361 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7362 and 16-bit signed and unsigned arguments. Update comment.
7363 (stap_parse_probe_arguments): Extend code to handle such
7364 arguments. Use warning instead of complaint to notify about
7365 unrecognized bitness.
7366
f33da99a
SDJ
73672014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7368
7369 PR breakpoints/16889
7370 * stap-probe.c (stap_parse_probe_arguments): Simplify
7371 check for non-prefixed probes (i.e., probes whose
7372 arguments do not start with "N@"). Always set the
7373 argument type to a sane value.
7374
95cf3b38
DT
73752014-05-01 David Taylor <dtaylor@emc.com>
7376
7377 * remote.c (compare_sections_command): Add -r option to compare
7378 all loadable read-only sections.
7379
1cfdf534
SC
73802014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7381
7382 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7383 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7384 Update all callers.
7385 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7386 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7387 Remove unused CORE_ADDR argument. Update all callers.
7388
ca4f7f8b
PA
73892014-04-29 Pedro Alves <palves@redhat.com>
7390
7391 * remote.c (struct packet_config) <detect>: Extend comment.
7392 (add_packet_config_cmd): Don't set the config's detect or support
7393 fields here.
7394 (init_all_packet_configs): Also initialize the config's 'detect'
7395 field.
7396 (reset_all_packet_configs_support): New function.
7397 (remote_open_1): Call reset_all_packet_configs_support instead of
7398 init_all_packet_configs.
7399 (_initialize_remote): Initialize all packet configs. Assert that
7400 all packets have an associated command, except a few known
7401 outliers.
7402
11c1ba78
JB
74032014-04-28 Joel Brobecker <brobecker@adacore.com>
7404
7405 * dwarf2read.c (read_subrange_type): Handle dynamic
7406 DW_AT_lower_bound attributes.
7407
8739bc53
JB
74082014-04-28 Joel Brobecker <brobecker@adacore.com>
7409
7410 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7411 dynamic bounds before computing its upper bound.
7412 (ada_discrete_type_low_bound): Same as above with the lower bound.
7413
6f8a3220
JB
74142014-04-28 Joel Brobecker <brobecker@adacore.com>
7415
7416 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7417 range types. Adjust the array handling implementation to
7418 take advantage of this change.
7419 (resolve_dynamic_range): New function, mostly extracted from
7420 resolve_dynamic_bounds.
7421 (resolve_dynamic_array): New function, mostly extracted from
7422 resolve_dynamic_bounds.
7423 (resolve_dynamic_bounds): Delete.
7424 (resolve_dynamic_type): Reimplement. Add handling of
7425 TYPE_CODE_RANGE types.
7426
4d072ce4
JB
74272014-04-28 Joel Brobecker <brobecker@adacore.com>
7428
7429 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7430 handling of parallel ___XA types.
7431
52865325
JB
74322014-04-28 Joel Brobecker <brobecker@adacore.com>
7433
7434 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7435 unnecessary second call to static_unwrap_type.
7436
433e77fa
HZ
74372014-04-27 Hui Zhu <hui@codesourcery.com>
7438
7439 * stack.c (print_frame_info): Call do_gdb_disassembly with
7440 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7441
b51a69ee
DE
74422014-04-26 Doug Evans <xdje42@gmail.com>
7443
7444 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7445
7ae1a6a6
PA
74462014-04-25 Pedro Alves <palves@redhat.com>
7447
7448 PR server/16255
7449 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7450 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7451 and newline from built string.
7452 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7453 (linux_ptrace_attach_fail_reason): ... this.
7454 * linux-nat.c (linux_nat_attach): Adjust to use
7455 linux_ptrace_attach_fail_reason.
7456
4082afcc
PA
74572014-04-25 Pedro Alves <palves@redhat.com>
7458
7459 * remote.c (struct remote_state): Remove multi_process_aware,
7460 non_stop_aware, cond_tracepoints, cond_breakpoints,
7461 breakpoint_commands, fast_tracepoints, static_tracepoints,
7462 install_in_trace, disconnected_tracing,
7463 enable_disable_tracepoints, string_tracing, and
7464 augmented_libraries_svr4_read fields.
7465 (remote_multi_process_p): Move further below in the file.
7466 (struct packet_config): Add comments.
7467 (update_packet_config): Delete function.
7468 (show_packet_config_cmd): Use packet_config_support.
7469 (add_packet_config_cmd): Use NULL as set callback.
7470 (packet_ok): "set remote foo-packet"-style commands no longer
7471 change config->supported -- adjust.
7472 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7473 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7474 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7475 (PACKET_QNonStop, PACKET_multiprocess_feature)
7476 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7477 (PACKET_DisconnectedTracing_feature)
7478 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7479 (set_remote_protocol_packet_cmd): Delete function.
7480 (packet_config_support, packet_support): New functions.
7481 (set_remote_protocol_Z_packet_cmd): Don't call
7482 update_packet_config.
7483 (remote_query_attached, remote_pass_signals)
7484 (remote_program_signals, remote_threads_info)
7485 (remote_threads_extra_info, remote_start_remote): Use
7486 packet_support.
7487 (remote_start_remote): Use packet_config_support and
7488 packet_support.
7489 (init_all_packet_configs): Set all packets to unknown support,
7490 instead of calling update_packet_config.
7491 (remote_check_symbols): Use packet_support.
7492 (remote_supported_packet): Unconditionally set the packet config's
7493 support status.
7494 (remote_multi_process_feature, remote_non_stop_feature)
7495 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7496 (remote_breakpoint_commands_feature)
7497 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7498 (remote_install_in_trace_feature)
7499 (remote_disconnected_tracing_feature)
7500 (remote_enable_disable_tracepoint_feature)
7501 (remote_string_tracing_feature)
7502 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7503 (remote_protocol_features): Adjust to use remote_supported_packet
7504 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7505 "ConditionalTracepoints", "ConditionalBreakpoints",
7506 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7507 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7508 "EnableDisableTracepoints", and "tracenz".
7509 (remote_query_supported): Use packet_support.
7510 (remote_open_1): Adjust.
7511 (extended_remote_attach_1): Use packet_support. Switch on the
7512 result of packet_ok instead of checking whether the packet ended
7513 up disabled.
7514 (remote_vcont_resume): Use packet_support.
7515 (remote_resume, remote_stop_ns, fetch_register_using_p)
7516 (remote_prepare_to_store, store_register_using_P)
7517 (check_binary_download, remote_write_bytes): Use packet_support.
7518 (remote_vkill): Use packet_support. Switch on the result of
7519 packet_ok instead of checking whether the packet ended up
7520 disabled.
7521 (extended_remote_supports_disable_randomization): Use
7522 packet_support.
7523 (extended_remote_run): Switch on the result of packet_ok instead
7524 of checking whether the packet ended up disabled.
7525 (remote_insert_breakpoint, remote_remove_breakpoint)
7526 (remote_insert_watchpoint, remote_remove_watchpoint)
7527 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7528 packet_support.
7529 (remote_search_memory): Use packet_config_support.
7530 (remote_get_thread_local_address, remote_get_tib_address)
7531 (remote_hostio_send_command, remote_can_execute_reverse): Use
7532 packet_support.
7533 (remote_supports_cond_tracepoints)
7534 (remote_supports_cond_breakpoints)
7535 (remote_supports_fast_tracepoints)
7536 (remote_supports_static_tracepoints)
7537 (remote_supports_install_in_trace)
7538 (remote_supports_enable_disable_tracepoint)
7539 (remote_supports_string_tracing)
7540 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7541 the packet config says the feature is enabled or disabled.
7542 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7543 (remote_get_trace_status): Use packet_support.
7544 (remote_set_disconnected_tracing): Adjust to check whether the
7545 feature is enabled with packet_support.
7546 (remote_set_trace_buffer_size, remote_use_agent)
7547 (remote_can_use_agent, remote_supports_btrace): Use
7548 packet_support.
7549 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7550 Use packet_config_support.
7551 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7552 the packet config says the feature is enabled or disabled.
7553 (set_range_stepping): Use packet_support.
7554
bdb52a22
TT
75552014-04-25 Tom Tromey <tromey@redhat.com>
7556
7557 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7558 argument.
7559
e9475ead
SA
75602014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7561
7562 * NEWS: Mention support for C99 variable length arrays.
7563
82eacd52
JB
75642014-04-24 Joel Brobecker <brobecker@adacore.com>
7565
7566 * ada-lang.c (standard_exc): Expand introductory comment.
7567
01f9f808
MS
75682014-04-24 Michael Sturm <michael.sturm@mintel.com>
7569 Walfred Tedeschi <walfred.tedeschi@intel.com>
7570
7571 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7572 AVX512 registers.
7573 (amd64_linux_read_description): Add code to handle AVX512 xstate
7574 mask and return respective tdesc.
7575 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7576 and features/i386/x32-avx512-linux.c.
7577 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7578 (amd64_linux_core_read_description): Add code to handle AVX512
7579 xstate mask and return respective tdesc.
7580 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7581 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7582 calculation.
7583 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7584 (tdesc_amd64_avx512_linux): New prototype.
7585 (tdesc_x32_avx512_linux): Likewise.
7586 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7587 features/i386/x32-avx512.c.
7588 (amd64_ymm_avx512_names): New register names for pseudo
7589 registers YMM16-31.
7590 (amd64_ymmh_avx512_names): New register names for raw registers
7591 YMMH16-31.
7592 (amd64_k_names): New register names for K registers.
7593 (amd64_zmmh_names): New register names for ZMM raw registers.
7594 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7595 (amd64_xmm_avx512_names): New register names for XMM16-31
7596 registers.
7597 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7598 registers.
7599 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7600 if feature is present.
7601 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7602 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7603 (AMD64_NUM_REGS): Adjust to new number of registers.
7604 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7605 registers supplied via XSTATE by AVX512 registers.
7606 (i386_linux_read_description): Add case for AVX512.
7607 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7608 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7609 (i386_linux_core_read_description): Add case for AVX512.
7610 (i386_linux_init_abi): Install supported register note section
7611 for AVX512.
7612 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7613 AVX512.
7614 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7615 registers to be number of zmm7h + 1.
7616 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7617 * i386-tdep.c: Include features/i386/i386-avx512.c.
7618 (i386_zmm_names): Add ZMM pseudo register names array.
7619 (i386_zmmh_names): Add ZMM raw register names array.
7620 (i386_k_names): Add K raw register names array.
7621 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7622 registers. AVX512 has 16 more ZMM registers than there are YMM
7623 registers.
7624 (i386_zmmh_regnum_p): Add function to look up register number of
7625 ZMM raw registers.
7626 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7627 (i386_k_regnum_p): Likewise for K raw registers.
7628 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7629 registers added by AVX512.
7630 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7631 registers added by AVX512.
7632 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7633 added by AVX512.
7634 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7635 (i386_pseudo_register_name): Add ZMM pseudo registers.
7636 (i386_zmm_type): Construct and return vector registers type for ZMM
7637 registers.
7638 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7639 ZMM0-31 pseudo registers and K registers.
7640 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7641 and YMM16-31 registers from register cache.
7642 (i386_pseudo_register_write): Add code to write K, ZMM and
7643 YMM16-31 registers.
7644 (i386_register_reggroup_p): Add code to include/exclude AVX512
7645 registers in/from respective register groups.
7646 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7647 registers if feature is present in xcr0.
7648 (i386_gdbarch_init): Add code to initialize AVX512 feature
7649 variables in tdep structure, wire in pseudo registers and call
7650 initialize_tdesc_i386_avx512.
7651 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7652 variables.
7653 (i386_regnum): Add AVX512 registers.
7654 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7655 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7656 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7657 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7658 512 bits wide.
7659 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7660 (i386_ymm_avx512_regnum_p): Likewise.
7661 (i386_k_regnum_p): Likewise.
7662 (i386_zmm_regnum_p): Likewise.
7663 (i386_zmmh_regnum_p): Likewise.
7664 * i387-tdep.c : Update year in copyright notice.
7665 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7666 XSAVE buffer.
7667 (XSAVE_YMM_AVX512_ADDR): New macro.
7668 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7669 XSAVE buffer.
7670 (XSAVE_XMM_AVX512_ADDR): New macro.
7671 (xsave_avx512_k_offset): New table for K register offsets in
7672 XSAVE buffer.
7673 (XSAVE_AVX512_K_ADDR): New macro.
7674 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7675 in XSAVE buffer.
7676 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7677 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7678 buffer.
7679 (i387_collect_xsave): Add code to collect AVX512 registers from
7680 XSAVE buffer.
7681 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7682 of XMM16-31 registers.
7683 (I387_NUM_K_REGS): New define for number of K registers.
7684 (I387_K0_REGNUM): New define for K0 register number.
7685 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7686 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7687 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7688 registers.
7689 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7690 (I387_XMM16_REGNUM): New define for XMM16 register number.
7691 (I387_YMM0_REGNUM): New define for YMM0 register number.
7692 (I387_KEND_REGNUM): New define for last K register number.
7693 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7694 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7695 number.
7696 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7697 number.
7698 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7699 size.
7700 * features/Makefile: Add AVX512 related files.
7701 * features/i386/32bit-avx512.xml: New file.
7702 * features/i386/64bit-avx512.xml: Likewise.
7703 * features/i386/amd64-avx512-linux.c: Likewise.
7704 * features/i386/amd64-avx512-linux.xml: Likewise.
7705 * features/i386/amd64-avx512.c: Likewise.
7706 * features/i386/amd64-avx512.xml: Likewise.
7707 * features/i386/i386-avx512-linux.c: Likewise.
7708 * features/i386/i386-avx512-linux.xml: Likewise.
7709 * features/i386/i386-avx512.c: Likewise.
7710 * features/i386/i386-avx512.xml: Likewise.
7711 * features/i386/x32-avx512-linux.c: Likewise.
7712 * features/i386/x32-avx512-linux.xml: Likewise.
7713 * features/i386/x32-avx512.c: Likewise.
7714 * features/i386/x32-avx512.xml: Likewise.
7715 * regformats/i386/amd64-avx512-linux.dat: New file.
7716 * regformats/i386/amd64-avx512.dat: Likewise.
7717 * regformats/i386/i386-avx512-linux.dat: Likewise.
7718 * regformats/i386/i386-avx512.dat: Likewise.
7719 * regformats/i386/x32-avx512-linux.dat: Likewise.
7720 * regformats/i386/x32-avx512.dat: Likewise.
7721 * NEWS: Add note about new support for AVX512.
7722
7723
08351840
PA
77242014-04-23 Pedro Alves <palves@redhat.com>
7725
7726 * breakpoint.c (insert_bp_location): Tolerate errors if the
7727 breakpoint is set in a user-loaded objfile.
7728 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7729 location is marked shlib_disabled. If the breakpoint is set in a
7730 user-loaded objfile is a GDB-side memory breakpoint, validate it
7731 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7732 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7733 flag.
7734 * mem-break.c (memory_validate_breakpoint): New function.
7735 * objfiles.c (userloaded_objfile_contains_address_p): New
7736 function.
7737 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7738 * target.h (memory_validate_breakpoint): New declaration.
7739
076855f9
PA
77402014-04-23 Pedro Alves <palves@redhat.com>
7741
7742 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7743 the breakpoint is set in a shared library, only suppress
7744 errors for software breakpoints, not hardware breakpoints.
7745
483805cf
PA
77462014-04-22 Pedro Alves <palves@redhat.com>
7747
7748 * infrun.c (schedlock_applies): New function, factored out from
7749 find_thread_needs_step_over.
7750 (find_thread_needs_step_over): Use it.
7751 (switch_back_to_stepped_thread): Always clear trap_expected if the
7752 step over is finished. Return early if scheduler locking applies.
7753 Look for the stepping thread and a potential step-over thread with
7754 a single loop.
7755 (currently_stepping_or_nexting_callback): Delete.
7756
a75fef0e
NC
77572014-04-22 Nick Clifton <nickc@redhat.com>
7758
7759 * NEWS: Mention that ARM sim now supports tracing.
7760
48b6e87e
YQ
77612014-04-22 Yao Qi <yao@codesourcery.com>
7762
7763 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7764 to ...
7765 * tracefile.c (tracefile_fetch_registers): ... it. New
7766 function.
7767 * tracefile.h (tracefile_fetch_registers): Declare.
7768 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7769 tracefile_fetch_registers.
7770
17617f2d
EZ
77712014-04-19 Eli Zaretskii <eliz@gnu.org>
7772
7773 PR gdb/14018
7774 * windows-nat.c (thread_rec): Don't display a warning when
7775 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7776 fails for any reason, set th->suspended to -1, so that we don't
7777 try to resume such a thread. Also, don't return NULL in these
7778 cases, to avoid completely ruin the session due to "PC register is
7779 not available" error.
7780 (do_windows_fetch_inferior_registers): Check errors in
7781 GetThreadContext call.
7782 (windows_continue): Accept an additional argument KILLED; if not
7783 zero, ignore errors in the SetThreadContext call, since the
7784 inferior was killed and is shutting down.
7785 (windows_resume, get_windows_debug_event)
7786 (windows_create_inferior, windows_mourn_inferior)
7787 (windows_kill_inferior): All callers of windows_continue changed
7788 to adjust to its new calling sequence.
7789
5723a6fd
YQ
77902014-04-19 Yao Qi <yao@codesourcery.com>
7791
7792 * ctf.c (ctf_open): Call post_create_inferior.
7793
614d5099
YQ
77942014-04-19 Yao Qi <yao@codesourcery.com>
7795
7796 * ctf.c (handle_id): New static variable.
7797 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7798 value. Get the declaration of event "register" and get length
7799 of field "contents".
7800
dac3e710
YQ
78012014-04-19 Yao Qi <yao@codesourcery.com>
7802
7803 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7804
2bca57ba
SC
78052014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7806
7807 * valops.c (oload_method_static): Remove unnecessary argument
7808 METHOD. Update all callers.
7809
51d48146
PA
78102014-04-18 Pedro alves <palves@redhat.com>
7811 Tom Tromey <tromey@redhat.com>
7812
7813 PR backtrace/15558
7814 * frame.c (get_prev_frame_1): Rename to ...
7815 (get_prev_frame_always): ... this, and make extern. Adjust.
7816 (skip_artificial_frames): Use get_prev_frame_always.
7817 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7818 (get_frame_unwind_stop_reason): Adjust to rename.
7819 * frame.h (get_prev_frame_always): Declare.
7820 * inline-frame.c: Include frame.h.
7821 (inline_frame_this_id): Use get_prev_frame_always.
7822
1bdad2e0
TG
78232014-04-18 Tristan Gingold <gingold@adacore.com>
7824
7825 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7826 code by using bfd_mach_o_get_base_address.
7827
7ce16bd4
UW
78282014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7829
7830 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7831 (spu_ax_pseudo_register_collect): New function.
7832 (spu_ax_pseudo_register_push_stack): Likewise.
7833 (spu_dwarf_reg_to_regnum): Likewise.
7834 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7835
2ed3c037
UW
78362014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7837
7838 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7839 Replace FRAME argument with FRAME_ID.
7840 * gdbarch.c, gdbarch.h: Regenerate.
7841 * findvar.c (default_value_from_register): Add GDBARCH argument;
7842 replace FRAME by FRAME_ID. No longer call get_frame_id.
7843 (value_from_register): Update call to gdbarch_value_from_register.
7844 * value.h (default_value_from_register): Update prototype.
7845 * s390-linux-tdep.c (s390_value_from_register): Update interface
7846 and call to default_value_from_register.
7847 * spu-tdep.c (spu_value_from_register): Likewise.
7848
7849 * findvar.c (address_from_register): Remove TYPE argument.
7850 Do not call value_from_register; use gdbarch_value_from_register
7851 with null_frame_id instead.
7852 * value.h (address_from_register): Update prototype.
7853 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7854 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7855 address_from_register interface change.
7856
71e50e83
YQ
78572014-04-17 Yao Qi <yao@codesourcery.com>
7858
7859 * gdbtypes.h: Update comments to link to types and macros'
7860 definitions.
7861
7a23c549
SC
78622014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7863
7864 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7865
22869d73
KS
78662014-04-16 Keith Seitz <keiths@redhat.com>
7867
7868 PR gdb/15827
7869 * dwarf2read.c (skip_one_die): Check that all relative-offset
7870 sibling DIEs fall within range of the current reader's buffer.
7871 (read_partial_die): Likewise.
7872
c4f87ca6
KS
78732014-04-16 Keith Seitz <keiths@redhat.com>
7874
7875 PR c++/16597
7876 * cp-namespace.c (lookup_symbol_file): If the type name of
7877 `this' is NULL, return immediately.
7878
b50c8614
KS
78792014-04-14 Keith Seitz <keiths@redhat.com>
7880
7881 PR c++/16253
7882 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7883 from symbol_matches_domain in symtab.c. All local callers
7884 of symbol_matches_domain updated.
7885 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7886 search STRUCT_DOMAIN.
7887 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7888 independently. standard_lookup will do that automatically.
7889 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7890 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7891 (cp_lookup_symbol_in_namespace): Likewise.
7892 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7893 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7894 may return a STRUCT_DOMAIN match.
7895 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7896 * cp-support.c: Include language.h.
7897 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7898 VAR_DOMAIN.
7899 * psymtab.c (match_partial_symbol): Compare the requested
7900 domain with the symbol's domain directly.
7901 (lookup_partial_symbol): Likewise.
7902 * symtab.c (lookup_symbol_in_language): Explain when/why
7903 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7904 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7905 appropriate languages.
7906 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7907 and moved to ada-lang.c
7908 (lookup_block_symbol): Explain that this function only returns
7909 symbol matching the requested DOMAIN.
7910 Compare the requested domain with the symbol's domain directly.
7911 (iterate_over_symbols): Compare the requested domain with the
7912 symbol's domain directly.
7913 * symtab.h (symbol_matches_domain): Remove.
7914
3d567982
TT
79152014-04-14 Tom Tromey <tromey@redhat.com>
7916
7917 PR c++/15246:
7918 * c-exp.y (type_aggregate_p): New function.
7919 (qualified_name, classify_inner_name): Use it.
7920 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7921 and TYPE_TARGET_TYPE of an enum type.
7922 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7923 an enum type.
7924 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7925 handle TYPE_DECLARED_CLASS.
7926 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7927 types.
7928 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7929 * valops.c (enum_constant_from_type): New function.
7930 (value_aggregate_elt): Use it.
7931 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7932 TYPE_CODE_ENUM.
7933
c848d642
TT
79342014-04-14 Tom Tromey <tromey@redhat.com>
7935
7936 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7937 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7938 const.
7939 * value.h (value_aggregate_elt): Update.
7940
0626fc76
TT
79412014-04-14 Tom Tromey <tromey@redhat.com>
7942
7943 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7944
5ecaaa66
SA
79452014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7946
7947 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7948 (evaluate_subexp_standard): Pass noside argument.
7949 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7950 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7951 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7952 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7953 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7954
1612e0c0
SA
79552014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7956
7957 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7958 points to a constant blob.
7959
c451ebe5
SA
79602014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7961
7962 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7963 property and store it as the high bound and flag the range accordingly.
7964 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7965 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7966 * gdbtypes.h (enum range_flags): New enum.
7967 (struct range_bounds): Add flags member.
7968
1d42e4c4
SA
79692014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7970
7971 * c-typeprint.c (c_type_print_varspec_suffix): Added
7972 check for not yet resolved high bound. If unresolved, print
7973 "variable length" string to the console instead of random
7974 length.
7975
9f1f738a
SA
79762014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7977
7978 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7979 value.
7980 (ada_template_to_fixed_record_type_1): Likewise.
7981 (ada_to_fixed_type_1): Likewise.
7982 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7983 (cp_print_value): Likewise.
7984 * d-valprint.c (dynamic_array_type): Likewise.
7985 * findvar.c (address_of_variable): Likewise.
7986 * jv-valprint.c (java_value_print): Likewise.
7987 * valops.c (value_ind): Likewise.
7988 * value.c (coerce_ref): Likewise.
7989
3c8452d4
SA
79902014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7991
7992 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7993 value and retrieve the dynamic type size.
7994
4ad88275
SA
79952014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7996
7997 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7998 passed to sizeof is dynamic evaluate the argument to compute the length.
7999
80180f79
SA
80002014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8001 Joel Brobecker <brobecker@adacore.com>
8002
8003 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8004 (dwarf2_evaluate_property): New function.
8005 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8006 * dwarf2read.c (attr_to_dynamic_prop): New function.
8007 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8008 attribute.
8009 * gdbtypes.c: Include dwarf2loc.h.
8010 (is_dynamic_type): New function.
8011 (resolve_dynamic_type): New function.
8012 (resolve_dynamic_bounds): New function.
8013 (get_type_length): New function.
8014 (check_typedef): Use get_type_length to compute type length.
8015 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8016 (TYPE_LOW_BOUND_KIND): New macro.
8017 (is_dynamic_type): New function prototype.
8018 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8019 to resolve dynamic properties of the type. Update comment.
8020 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8021
a1556843
RH
80222014-04-14 Richard Henderson <rth@redhat.com>
8023
8024 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8025
0be03e84
DE
80262014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8027 Doug Evans <xdje42@gmail.com>
8028
8029 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8030 dereference TYPE_CODE_REF values.
8031
6b662e19
JB
80322014-04-11 Joel Brobecker <brobecker@adacore.com>
8033
8034 Revert the following changes due to regressions:
8035
8036 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8037 (dwarf2_evaluate_property): New function.
8038 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8039 * dwarf2read.c (attr_to_dynamic_prop): New function.
8040 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8041 attribute.
8042 * gdbtypes.c: Include dwarf2loc.h.
8043 (is_dynamic_type): New function.
8044 (resolve_dynamic_type): New function.
8045 (resolve_dynamic_bounds): New function.
8046 (get_type_length): New function.
8047 (check_typedef): Use get_type_length to compute type length.
8048 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8049 (TYPE_LOW_BOUND_KIND): New macro.
8050 (is_dynamic_type): New function prototype.
8051 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8052 to resolve dynamic properties of the type. Update comment.
8053 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8054
8055 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8056 passed to sizeof is dynamic evaluate the argument to compute the length.
8057
8058 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8059 value and retrieve the dynamic type size.
8060
8061 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8062 (ada_template_to_fixed_record_type_1): Likewise.
8063 (ada_to_fixed_type_1): Likewise.
8064 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8065 (cp_print_value): Likewise.
8066 * d-valprint.c (dynamic_array_type): Likewise.
8067 * eval.c (evaluate_subexp_with_coercion): Likewise.
8068 * findvar.c (address_of_variable): Likewise.
8069 * jv-valprint.c (java_value_print): Likewise.
8070 * valops.c (value_ind): Likewise.
8071 * value.c (coerce_ref): Likewise.
8072
8073 * c-typeprint.c (c_type_print_varspec_suffix): Added
8074 check for not yet resolved high bound. If unresolved, print
8075 "variable length" string to the console instead of random
8076 length.
8077
8078 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8079 property and store it as the high bound and flag the range accordingly.
8080 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8081 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8082 * gdbtypes.h (enum range_flags): New enum.
8083 (struct range_bounds): Add flags member.
8084
8085 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8086 points to a constant blob.
8087
8088 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8089 (evaluate_subexp_standard): Pass noside argument.
8090 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8091 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8092 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8093 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8094 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8095
245a5f0b
KS
80962014-04-11 Keith Seitz <keiths@redhat.com>
8097
8098 PR c++/16675
8099 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8100 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8101 reference types.
8102
3bce8237
SA
81032014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8104
8105 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8106 (evaluate_subexp_standard): Pass noside argument.
8107 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8108 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8109 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8110 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8111 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8112
92b09522
SA
81132014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8114
8115 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8116 points to a constant blob.
8117
e1969afb
SA
81182014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8119
8120 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8121 property and store it as the high bound and flag the range accordingly.
8122 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8123 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8124 * gdbtypes.h (enum range_flags): New enum.
8125 (struct range_bounds): Add flags member.
8126
b86138fb
SA
81272014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8128
8129 * c-typeprint.c (c_type_print_varspec_suffix): Added
8130 check for not yet resolved high bound. If unresolved, print
8131 "variable length" string to the console instead of random
8132 length.
8133
bcd629a4
SA
81342014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8135
8136 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8137 (ada_template_to_fixed_record_type_1): Likewise.
8138 (ada_to_fixed_type_1): Likewise.
8139 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8140 (cp_print_value): Likewise.
8141 * d-valprint.c (dynamic_array_type): Likewise.
8142 * eval.c (evaluate_subexp_with_coercion): Likewise.
8143 * findvar.c (address_of_variable): Likewise.
8144 * jv-valprint.c (java_value_print): Likewise.
8145 * valops.c (value_ind): Likewise.
8146 * value.c (coerce_ref): Likewise.
8147
04b19544
SA
81482014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8149
8150 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8151 value and retrieve the dynamic type size.
8152
26cb189f
SA
81532014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8154
8155 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8156 passed to sizeof is dynamic evaluate the argument to compute the length.
8157
37c1ab67
SA
81582014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8159
8160 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8161 (dwarf2_evaluate_property): New function.
8162 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8163 * dwarf2read.c (attr_to_dynamic_prop): New function.
8164 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8165 attribute.
8166 * gdbtypes.c: Include dwarf2loc.h.
8167 (is_dynamic_type): New function.
8168 (resolve_dynamic_type): New function.
8169 (resolve_dynamic_bounds): New function.
8170 (get_type_length): New function.
8171 (check_typedef): Use get_type_length to compute type length.
8172 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8173 (TYPE_LOW_BOUND_KIND): New macro.
8174 (is_dynamic_type): New function prototype.
8175 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8176 to resolve dynamic properties of the type. Update comment.
8177 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8178
729efb13
SA
81792014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8180
8181 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8182 declaring high/low bounds and change uses accordingly. Call
8183 create_range_type instead of create_static_range_type.
8184 * gdbtypes.c (create_range_type): New function.
8185 (create_range_type): Convert bounds into struct bound_prop and pass
8186 them to create_range_type.
8187 * gdbtypes.h (struct bound_prop): New struct.
8188 (create_range_type): New function prototype.
8189 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8190 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8191 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8192 part of the bound.
8193 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8194
0c9c3474
SA
81952014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8196
8197 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8198 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8199 * ada-lang.c: All uses of create_range_type updated.
8200 * coffread.c: All uses of create_range_type updated.
8201 * dwarf2read.c: All uses of create_range_type updated.
8202 * f-exp.y: All uses of create_range_type updated.
8203 * m2-valprint.c: All uses of create_range_type updated.
8204 * mdebugread.c: All uses of create_range_type updated.
8205 * stabsread.c: All uses of create_range_type updated.
8206 * valops.c: All uses of create_range_type updated.
8207 * valprint.c: All uses of create_range_type updated.
8208
9d497a19
PA
82092014-04-10 Pedro Alves <palves@redhat.com>
8210
8211 * breakpoint.c (single_step_breakpoints)
8212 (single_step_gdbarch): Move up in the file.
8213 (one_breakpoint_xfer_memory): New function, factored out from ...
8214 (breakpoint_xfer_memory): ... here. Also process single-step
8215 breakpoints.
8216
15a9128a
TG
82172014-04-09 Tristan Gingold <gingold@adacore.com>
8218
8219 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8220 comments.
8221 (darwin_decode_exception_message): Free port only after use.
8222
9c97a070
PL
82232014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8224
8225 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8226 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8227 when setting the size of call_length.
8228
7af389b8
SC
82292014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8230
8231 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8232 dereference TYPE_CODE_REF values.
8233
86ad98c3
JB
82342014-04-07 Joel Brobecker <brobecker@adacore.com>
8235
8236 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8237 end of warning message.
8238
b0aeadb3
DE
82392014-04-03 Doug Evans <dje@google.com>
8240
8241 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8242 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8243
5979d6b6
AM
82442014-04-02 Alan Modra <amodra@gmail.com>
8245
8246 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8247 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8248 (struct symbol_file_add_from_memory_args): Add size field.
8249 (find_vdso_size): New function.
8250 (add_vsyscall_page): Attempt to find vdso size.
8251
0d60c288
DE
82522014-04-01 Doug Evans <dje@google.com>
8253
8254 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8255
a41f2563
TG
82562014-04-01 Tristan Gingold <gingold@adacore.com>
8257
8258 * darwin-nat.c (darwin_encode_reply): Add prototype.
8259 (darwin_decode_exception_message): Reply to unknown inferiors.
8260 (darwin_decode_message): Handle message by id. Ignore message
8261 to unknown inferior.
8262 (darwin_wait): Discard unknown messages, add debug trace.
8263
11a865c8
DE
82642014-03-31 Doug Evans <dje@google.com>
8265
8266 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8267 comp_dir_string.
8268
770e7fc7
DE
82692014-03-31 Doug Evans <dje@google.com>
8270
8271 New option "set print symbol-loading".
8272 * NEWS: Mention it.
8273 * solib.c (solib_read_symbols): Only print symbol loading messages
8274 if requested.
8275 (solib_add): If symbol loading is in "brief" mode, notify user
8276 symbols are being loaded.
8277 (reload_shared_libraries_1): Ditto.
8278 * symfile.c (print_symbol_loading_off): New static global.
8279 (print_symbol_loading_brief): New static global.
8280 (print_symbol_loading_full): New static global.
8281 (print_symbol_loading_enums): New static global.
8282 (print_symbol_loading): New static global.
8283 (print_symbol_loading_p): New function.
8284 (symbol_file_add_with_addrs): Only print symbol loading messages
8285 if requested.
8286 (_initialize_symfile): Register "print symbol-loading" set/show
8287 command.
8288 * symfile.h (print_symbol_loading_p): Declare.
8289
c32c64b7
DE
82902014-03-30 Doug Evans <xdje42@gmail.com>
8291
8292 * infrun.c (set_last_target_status): New function.
8293 (handle_inferior_event): Call it.
8294
7c0bc051
DE
82952014-03-30 Doug Evans <xdje42@gmail.com>
8296
8297 * inferior.h (enum stop_kind): Improve comment.
8298
8776cfe9
JB
82992014-03-28 Joel Brobecker <brobecker@adacore.com>
8300
8301 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8302 a reference, strip the reference layer before calling
8303 the lang_ops value_has_mutated callback.
8304
410a0ff2
SDJ
83052014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8306
8307 Remove some globals from our parser.
8308 * language.c (unk_lang_parser): Add "struct parser_state"
8309 argument.
8310 * language.h (struct language_defn) <la_parser>: Likewise.
8311 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8312 (initialize_expout): Add "struct parser_state" argument.
8313 Rewrite function to use the parser state.
8314 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8315 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8316 write_exp_elt_longcst, write_exp_elt_dblcst,
8317 write_exp_elt_decfloatcst, write_exp_elt_type,
8318 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8319 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8320 write_dollar_variable): Likewise.
8321 (parse_exp_in_context_1): Use parser state.
8322 (insert_type_address_space): Add "struct parser_state" argument.
8323 Use parser state.
8324 (increase_expout_size): New function.
8325 * parser-defs.h: Forward declare "struct language_defn" and
8326 "struct parser_state".
8327 (expout, expout_size, expout_ptr): Remove extern declarations.
8328 (parse_gdbarch, parse_language): Rewrite macro declarations to
8329 accept the parser state.
8330 (struct parser_state): New struct.
8331 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8332 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8333 write_exp_elt_decfloatcst, write_exp_elt_type,
8334 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8335 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8336 write_exp_msymbol, write_dollar_variable,
8337 mark_struct_expression, insert_type_address_space): Add "struct
8338 parser_state" argument.
8339 (increase_expout_size): New function.
8340 * utils.c (do_clear_parser_state): New function.
8341 (make_cleanup_clear_parser_state): Likewise.
8342 * utils.h (make_cleanup_clear_parser_state): New function
8343 prototype.
8344 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8345 Update calls to write_exp* in order to pass the parser state.
8346 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8347 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8348 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8349 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8350 * stap-probe.c (stap_parse_register_operand): Likewise.
8351 (stap_parse_single_operand): Likewise.
8352 (stap_parse_argument_1): Likewise.
8353 (stap_parse_argument): Use parser state.
8354 * stap-probe.h: Include "parser-defs.h".
8355 (struct stap_parse_info) <pstate>: New field.
8356 * c-exp.y (parse_type): Rewrite to use parser state.
8357 (yyparse): Redefine to c_parse_internal.
8358 (pstate): New global variable.
8359 (parse_number): Add "struct parser_state" argument.
8360 (write_destructor_name): Likewise.
8361 (type_exp): Update calls to write_exp* and similars in order to
8362 use parser state.
8363 (exp1, exp, variable, qualified_name, space_identifier,
8364 typename, typebase): Likewise.
8365 (write_destructor_name, parse_number, lex_one_token,
8366 classify_name, classify_inner_name, c_parse): Add "struct
8367 parser_state" argument. Update function to use parser state.
8368 * c-lang.h: Forward declare "struct parser_state".
8369 (c_parse): Add "struct parser_state" argument.
8370 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8371 (yyparse): Redefine macro to ada_parse_internal.
8372 (pstate): New variable.
8373 (write_int, write_object_renaming, write_var_or_type,
8374 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8375 type_int, type_long, type_long_long, type_float, type_double,
8376 type_long_double, type_char, type_boolean, type_system_address):
8377 Add "struct parser_state" argument.
8378 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8379 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8380 var_or_type, aggregate, aggregate_component_list,
8381 positional_list, others, component_group,
8382 component_associations): Update calls to write_exp* and similar
8383 functions in order to use parser state.
8384 (ada_parse, write_var_from_sym, write_int,
8385 write_exp_op_with_string, write_object_renaming,
8386 find_primitive_type, write_selectors, write_ambiguous_var,
8387 write_var_or_type, write_name_assoc, type_int, type_long,
8388 type_long_long, type_float, type_double, type_long_double,
8389 type_char, type_boolean, type_system_address): Add "struct
8390 parser_state" argument. Adjust function to use parser state.
8391 * ada-lang.c (parse): Likewise.
8392 * ada-lang.h: Forward declare "struct parser_state".
8393 (ada_parse): Add "struct parser_state" argument.
8394 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8395 calls to both functions.
8396 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8397 parser state.
8398 (yyparse): Redefine macro to f_parse_internal.
8399 (pstate): New variable.
8400 (parse_number): Add "struct parser_state" argument.
8401 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8402 and similars in order to use parser state.
8403 (parse_number): Adjust code to use parser state.
8404 (yylex): Likewise.
8405 (f_parse): New function.
8406 * f-lang.h: Forward declare "struct parser_state".
8407 (f_parse): Add "struct parser_state" argument.
8408 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8409 parser state.
8410 (yyparse): Redefine macro for java_parse_internal.
8411 (pstate): New variable.
8412 (push_expression_name, push_expression_name, insert_exp): Add
8413 "struct parser_state" argument.
8414 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8415 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8416 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8417 PostIncrementExpression, PostDecrementExpression,
8418 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8419 UnaryExpressionNotPlusMinus, CastExpression,
8420 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8421 RelationalExpression, EqualityExpression, AndExpression,
8422 ExclusiveOrExpression, InclusiveOrExpression,
8423 ConditionalAndExpression, ConditionalOrExpression,
8424 ConditionalExpression, Assignment, LeftHandSide): Update
8425 calls to write_exp* and similars in order to use parser state.
8426 (parse_number): Ajust code to use parser state.
8427 (yylex): Likewise.
8428 (java_parse): New function.
8429 (push_variable): Add "struct parser_state" argument. Adjust
8430 code to user parser state.
8431 (push_fieldnames, push_qualified_expression_name,
8432 push_expression_name, insert_exp): Likewise.
8433 * jv-lang.h: Forward declare "struct parser_state".
8434 (java_parse): Add "struct parser_state" argument.
8435 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8436 parser state.
8437 (yyparse): Redefine macro to m2_parse_internal.
8438 (pstate): New variable.
8439 (type_exp, exp, fblock, variable, type): Update calls to
8440 write_exp* and similars to use parser state.
8441 (yylex): Likewise.
8442 (m2_parse): New function.
8443 * m2-lang.h: Forward declare "struct parser_state".
8444 (m2_parse): Add "struct parser_state" argument.
8445 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8446 * objc-lang.h: Forward declare "struct parser_state".
8447 (end_msglist): Add "struct parser_state" argument.
8448 * p-exp.y (parse_type): Rewrite macro to use parser state.
8449 (yyparse): Redefine macro to pascal_parse_internal.
8450 (pstate): New variable.
8451 (parse_number): Add "struct parser_state" argument.
8452 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8453 write_exp* and similars in order to use parser state.
8454 (parse_number, yylex): Adjust code to use parser state.
8455 (pascal_parse): New function.
8456 * p-lang.h: Forward declare "struct parser_state".
8457 (pascal_parse): Add "struct parser_state" argument.
8458 * go-exp.y (parse_type): Rewrite macro to use parser state.
8459 (yyparse): Redefine macro to go_parse_internal.
8460 (pstate): New variable.
8461 (parse_number): Add "struct parser_state" argument.
8462 (type_exp, exp1, exp, variable, type): Update calls to
8463 write_exp* and similars in order to use parser state.
8464 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8465 to use parser state.
8466 (go_parse): Likewise.
8467 * go-lang.h: Forward declare "struct parser_state".
8468 (go_parse): Add "struct parser_state" argument.
8469
342587c4
DE
84702014-03-27 Doug Evans <dje@google.com>
8471
8472 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8473
33e80786
DE
84742014-03-27 Doug Evans <dje@google.com>
8475
8476 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8477 Remove argument abbrev_section. All callers updated.
8478
1dbab08b
DE
84792014-03-27 Doug Evans <dje@google.com>
8480
8481 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8482 addr_base, ranges_base.
8483
318d3177
KS
84842014-03-26 Keith Seitz <keiths@redhat.com>
8485
8486 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8487 types, not VAR_DOMAIN.
8488
1e54db15
SL
84892014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8490
8491 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8492 "ra" registers.
8493 * features/nios2-linux.c: Regenerated.
8494 * features/nios2.c: Regenerated.
8495
d3839ede
PA
84962014-03-25 Pedro Alves <palves@redhat.com>
8497
8498 * cli/cli-script.c (script_from_file): Force the interpreter to
8499 sync mode.
8500
7588d2ec
PL
85012014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8502
8503 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8504 small stack allocation.
8505
a6290449
TG
85062014-03-24 Tristan Gingold <gingold@adacore.com>
8507
8508 * darwin-nat.c (exc_server): Remove unused prototype.
8509 (darwin_dump_message): Correctly display data on x86_64.
8510 (darwin_encode_reply): Fix style.
8511 Add comments and fix indentation.
8512
31ae9d24 85132014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
8514
8515 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8516
6339bfc4
DE
85172014-03-22 Doug Evans <xdje42@gmail.com>
8518
8519 * infcmd.c: Whitespace fixes.
8520 (interrupt_command): Merge two function comments into one.
8521
0a07590b
DE
85222014-03-22 Doug Evans <xdje42@gmail.com>
8523
8524 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8525 All uses updated.
8526
b55fbac4
YQ
85272014-03-22 Yao Qi <yao@codesourcery.com>
8528
8529 * remote.c (target_read_live_memory): Remove.
8530 (memory_xfer_live_readonly_partial): Rename it to
8531 remote_xfer_live_readonly_partial. Remove argument 'object'.
8532 All callers updated. Call remote_read_bytes_1
8533 instead of target_read_live_memory.
8534 * tracepoint.c (set_traceframe_number): Remove.
8535 (make_cleanup_restore_traceframe_number): Likewise .
8536 * tracepoint.h (set_traceframe_number): Remove declaration.
8537 (make_cleanup_restore_traceframe_number): Likewise.
8538
9217e74e
YQ
85392014-03-22 Yao Qi <yao@codesourcery.com>
8540
8541 * remote.c (remote_read_bytes): Move code on reading from the
8542 remote stub to ...
8543 (remote_read_bytes_1): ... here. New function.
8544
8acf9577
YQ
85452014-03-22 Yao Qi <yao@codesourcery.com>
8546
8547 * ctf.c (ctf_xfer_partial): Check the return value of
8548 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8549 return TARGET_XFER_UNAVAILABLE.
8550 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8551 * target.c (target_read_live_memory): Move it to remote.c.
8552 (memory_xfer_live_readonly_partial): Likewise.
8553 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8554 * remote.c (target_read_live_memory): Moved from target.c.
8555 (memory_xfer_live_readonly_partial): Likewise.
8556 (remote_read_bytes): Factored out from
8557 memory_xfer_partial_1.
8558
feef67ab
DE
85592014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8560
8561 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8562 NULL pointer.
8563
b65dc60b
PA
85642014-03-21 Pedro Alves <palves@redhat.com>
8565
8566 * infrun.c (normal_stop): Extend comment.
8567
b4ab256d
HZ
85682014-03-21 Hui Zhu <hui@codesourcery.com>
8569 Pedro Alves <palves@redhat.com>
8570
8571 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8572 static buffer.
8573 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8574 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8575 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8576
deba7593
MR
85772014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8578
8579 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8580 `z' formatted output modifier.
8581
1bff71c3
SDJ
85822014-03-20 Tom Tromey <tromey@redhat.com>
8583 Sergio Durigan Junior <sergiodj@redhat.com>
8584
8585 * probe.c (parse_probes): Turn assert into an ordinary error.
8586 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8587 exceptions when parsing probes. Rearrange the code for clarity.
8588
90e28950
TT
85892014-03-20 Tom Tromey <tromey@redhat.com>
8590
8591 PR gdb/14135
8592 * top.c (execute_command): Only dispatch events if the command
8593 started the target.
8594
beb460e8
PA
85952014-03-20 Tom Tromey <tromey@redhat.com>
8596
8597 PR cli/15718
8598 * infcall.c: Include event-top.h.
8599 (run_inferior_call): Call async_disable_stdin if needed.
8600
99619bea
PA
86012014-03-20 Pedro Alves <palves@redhat.com>
8602
8603 * infrun.c (prepare_to_proceed): Delete.
8604 (thread_still_needs_step_over): New function.
8605 (find_thread_needs_step_over): New function.
8606 (proceed): If the current thread needs a step-over, set its
8607 steping_over_breakpoint flag. Adjust to use
8608 find_thread_needs_step_over instead of prepare_to_proceed.
8609 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8610 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8611 breakpoint.
8612 (switch_back_to_stepped_thread): Step over breakpoints of all
8613 threads not the stepping thread, before switching back to the
8614 stepping thread.
8615
2adfaa28
PA
86162014-03-20 Pedro Alves <palves@redhat.com>
8617
8618 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8619 extern.
8620 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8621 * infrun.c (saved_singlestep_ptid)
8622 (stepping_past_singlestep_breakpoint): Delete.
8623 (resume): Remove stepping_past_singlestep_breakpoint handling.
8624 (proceed): Store the prev_pc of the stepping thread too.
8625 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8626 singlestep_pc.
8627 (enum infwait_states): Delete infwait_thread_hop_state.
8628 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8629 field.
8630 (handle_inferior_event): Adjust.
8631 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8632 handling and the thread-hop code. Before removing single-step
8633 breakpoints, check whether the thread hit a single-step breakpoint
8634 of another thread. If it did, the trap is not a random signal.
8635 (switch_back_to_stepped_thread): If the event thread hit a
8636 single-step breakpoint, unblock it before switching to the
8637 stepping thread. Handle the case of the stepped thread having
8638 advanced already.
8639 (keep_going): Handle the case of the current thread moving past a
8640 single-step breakpoint.
8641
31e77af2
PA
86422014-03-20 Pedro Alves <palves@redhat.com>
8643
8644 PR breakpoints/7143
8645 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8646 are being stepped over.
8647 (breakpoint_address_match): Make extern.
8648 * breakpoint.h (breakpoint_address_match): New declaration.
8649 * inferior.h (stepping_past_instruction_at): New declaration.
8650 * infrun.c (struct step_over_info): New type.
8651 (step_over_info): New global.
8652 (set_step_over_info, clear_step_over_info)
8653 (stepping_past_instruction_at): New functions.
8654 (handle_inferior_event): Clear the step-over info when
8655 trap_expected is cleared.
8656 (resume): Remove now stale comment.
8657 (clear_proceed_status): Clear step-over info.
8658 (proceed): Adjust step-over handling to set or clear the step-over
8659 info instead of removing all breakpoints.
8660 (handle_signal_stop): When setting up a thread-hop, don't remove
8661 breakpoints here.
8662 (stop_stepping): Clear step-over info.
8663 (keep_going): Adjust step-over handling to set or clear step-over
8664 info and then always inserting breakpoints, instead of removing
8665 all breakpoints when stepping over one.
8666
b9f437de
PA
86672014-03-20 Pedro Alves <palves@redhat.com>
8668
8669 * infrun.c (previous_inferior_ptid): Adjust comment.
8670 (deferred_step_ptid): Delete.
8671 (infrun_thread_ptid_changed, prepare_to_proceed)
8672 (init_wait_for_inferior): Adjust.
8673 (handle_signal_stop): Delete deferred_step_ptid handling.
8674
06c868a8
JK
86752014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8676
8677 PR gdb/15358
8678 * defs.h (sync_quit_force_run): New declaration.
8679 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8680 * event-top.c (async_sigterm_handler): New declaration.
8681 (async_sigterm_token): New variable.
8682 (async_init_signals): Create also async_sigterm_token.
8683 (async_sigterm_handler): New function.
8684 (sync_quit_force_run): New variable.
8685 (handle_sigterm): Replace quit_force call by other calls.
8686 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8687
dea80df0
MR
86882014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8689
8690 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8691 offset into SPE pseudo registers.
8692
0c7e1a46
PA
86932014-03-18 Pedro Alves <palves@redhat.com>
8694
8695 PR gdb/13860
8696 * inferior.h (print_stop_event): Declare.
8697 * infrun.c (print_stop_event): New, factored out from ...
8698 (normal_stop): ... this.
8699 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8700 of bpstat_print/print_stack_frame.
8701
9c1fcd01
TT
87022014-03-17 Tom Tromey <tromey@redhat.com>
8703
8704 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8705
11aa919a
PMR
87062014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8707
8708 * ada-lang.c (decode_constrained_packed_array): Perform a
8709 minimal coercion for reference with coerce_ref instead of
8710 ada_coerce_ref.
8711
d4ccb5e0
TG
87122014-03-17 Tristan Gingold <gingold@adacore.com>
8713
8714 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8715 (darwin_solib_create_inferior_hook): Emit a warning if version
8716 is unhandled.
8717
49840f2a
UW
87182014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8719
8720 * python/py-value.c (get_field_flag): Cast flag_name argument to
8721 PyObject_GetAttrString to support Python 2.4.
8722
ed4123e5
JK
87232014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8724
8725 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8726 (Global Maintainers): Remove Jan Kratochvil.
8727
d6b64346
PA
87282014-03-14 Pedro Alves <palves@redhat.com>
8729
8730 * inferior.h (terminal_ours_for_output): Rename to ...
8731 (child_terminal_ours_for_output): ... this.
8732 (terminal_save_ours): Rename to ...
8733 (child_terminal_save_ours): ... this.
8734 (terminal_ours): Rename to ...
8735 (child_terminal_ours): ... this.
8736 (terminal_inferior): Rename to ...
8737 (child_terminal_inferior): ... this.
8738 (terminal_init_inferior): Rename to ...
8739 (child_terminal_init_inferior): ... this.
8740 (terminal_init_inferior_with_pgrp): Rename to ...
8741 (child_terminal_init_inferior_with_pgrp): ... this.
8742 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8743 (child_terminal_init_with_pgrp): ... this.
8744 (terminal_save_ours): Rename to ...
8745 (child_terminal_save_ours): ... this.
8746 (terminal_init_inferior): Rename to ...
8747 (child_terminal_init): ... this. Adjust.
8748 (terminal_inferior): Rename to ...
8749 (child_terminal_inferior): ... this.
8750 (terminal_ours_for_output): Rename to ...
8751 (child_terminal_ours_for_output): ... this. Adjust.
8752 (terminal_ours): Rename to ...
8753 (child_terminal_ours): ... this.
8754 (terminal_ours_1): Rename to ...
8755 (child_terminal_ours_1): ... this. Adjust.
8756 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8757 * windows-nat.c (do_initial_windows_stuff): Adjust.
8758 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8759 (gnu_terminal_init): ... this. Adjust.
8760 (gnu_target): Adjust.
8761 * inf-child.c (inf_child_target): Adjust.
8762
5a1e8c7a
DE
87632014-03-13 Doug Evans <xdje42@gmail.com>
8764
8765 PR guile/16612
8766 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8767 new eq?-hashtab.
8768
350e1a76
DE
87692014-03-13 Doug Evans <xdje42@gmail.com>
8770
8771 * value.c (record_latest_value): Call release_value_or_incref
8772 instead of release_value.
8773
a69900ae
PA
87742014-03-13 Pedro Alves <palves@redhat.com>
8775
8776 * procfs.c (procfs_target): Don't override to_shortname,
8777 to_longname or to_doc.
8778
5db9f0bd
PA
87792014-03-13 Pedro Alves <palves@redhat.com>
8780
8781 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8782 Unix in user visible strings.
8783
5e3a2c38
SS
87842014-03-12 Stan Shebs <stan@codesourcery.com>
8785
8786 * gdbtypes.h: Annotate comments for Doxygen, add a page
8787 block comment with some general info.
8788
8bc2fe48
PA
87892014-03-12 Pedro Alves <palves@redhat.com>
8790
8791 * infcmd.c (prepare_execution_command): New function, factored out
8792 from several execution commands.
8793 (run_command_1, continue_command, step_1, jump_command)
8794 (signal_command, until_command, advance_command, finish_command)
8795 (attach_command): Use prepare_execution_command.
8796
638c5f49
OJ
87972014-03-12 Omair Javaid <omair.javaid@linaro.org>
8798
8799 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8800 (MAX_BPTS): Define.
8801 (MAX_WPTS): Define.
8802 (struct arm_linux_thread_points): Removed.
8803 (struct arm_linux_process_info): New.
8804 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8805 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8806 (arm_linux_find_breakpoints_by_tid): Removed.
8807 (struct arch_lwp_info): New.
8808 (arm_linux_find_process_pid): New functions.
8809 (arm_linux_add_process): New functions.
8810 (arm_linux_process_info_get): New functions.
8811 (arm_linux_forget_process): New function.
8812 (arm_linux_get_debug_reg_state): New function.
8813 (struct update_registers_data): New.
8814 (update_registers_callback): New function.
8815 (arm_linux_insert_hw_breakpoint1): Updated.
8816 (arm_linux_remove_hw_breakpoint1): Updated.
8817 (arm_linux_insert_hw_breakpoint): Updated.
8818 (arm_linux_remove_hw_breakpoint): Updated.
8819 (arm_linux_insert_watchpoint): Updated.
8820 (arm_linux_remove_watchpoint): Updated.
8821 (arm_linux_new_thread): Updated.
8822 (arm_linux_prepare_to_resume): New function.
8823 (arm_linux_new_fork): New function.
8824 (_initialize_arm_linux_nat): Updated.
8825
6d03af93
PA
88262014-03-12 Pedro Alves <palves@redhat.com>
8827
8828 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8829
b3ccfe11
TT
88302014-03-12 Tom Tromey <tromey@redhat.com>
8831
8832 * inf-child.c (return_zero): New function.
8833 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8834 * aix-thread.c (aix_thread_inferior_created): New function.
8835 (aix_thread_attach): Remove.
8836 (init_aix_thread_ops): Don't set to_attach.
8837 (_initialize_aix_thread): Register inferior_created observer.
8838 * corelow.c (init_core_ops): Don't set to_attach or
8839 to_create_inferior.
8840 * exec.c (init_exec_ops): Don't set to_attach or
8841 to_create_inferior.
8842 * infcmd.c (run_command_1): Use find_run_target. Make direct
8843 target calls.
8844 (attach_command): Use find_attach_target. Make direct target
8845 calls.
8846 * record-btrace.c (init_record_btrace_ops): Don't set
8847 to_create_inferior.
8848 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8849 Remove.
8850 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8851 set to_create_inferior.
8852 * target.c (complete_target_initialization): Add assertion.
8853 (target_create_inferior): Remove.
8854 (find_default_attach, find_default_create_inferior): Remove.
8855 (find_attach_target, find_run_target): New functions.
8856 (find_default_is_async_p, find_default_can_async_p)
8857 (target_supports_non_stop, target_attach): Remove.
8858 (init_dummy_target): Don't set to_create_inferior or
8859 to_supports_non_stop.
8860 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8861 TARGET_DEFAULT_FUNC.
8862 <to_create_inferior>: Add comment.
8863 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8864 TARGET_DEFAULT_RETURN.
8865 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8866 (find_attach_target, find_run_target): Declare.
8867 (target_create_inferior): Remove.
8868 (target_has_execution_1): Update comment.
8869 (target_supports_non_stop): Remove.
8870 * target-delegates.c: Rebuild.
8871
91f83b02
PA
88722014-03-12 Pedro Alves <palves@redhat.com>
8873
8874 * inf-child.h: Update comment to not mention Unix.
8875
f1aea813
PA
88762014-03-12 Pedro Alves <palves@redhat.com>
8877
8878 * inf-child.c: Update top comment to not mention Unix. Add
8879 generic comment describing how this target is meant to be used.
8880 (inf_child_post_attach, inf_child_post_startup_inferior)
8881 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8882 Unix in comment.
8883
ee8e9165
PA
88842014-03-12 Pedro Alves <palves@redhat.com>
8885
8886 * nto-procfs.c: Include inf-child.h.
8887 (procfs_ops): Delete global.
8888 (procfs_can_run): Delete method.
8889 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8890 target pointer instead of referencing procfs_ops.
8891 (procfs_prepare_to_store): Delete.
8892 (init_procfs_ops): Delete function.
8893 (procfs_target): New function, based on init_procfs_ops, but
8894 inherit inf_child_target.
8895 (_initialize_procfs): Use procfs_target.
8896
51a9c8c5
PA
88972014-03-12 Pedro Alves <palves@redhat.com>
8898
8899 * windows-nat.c: Include inf-child.h.
8900 (windows_ops): Delete global.
8901 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8902 methods.
8903 (init_windows_ops): Delete function.
8904 (windows_target): New function, based on init_windows_ops, but
8905 inherit inf_child_target.
8906 (_initialize_windows_nat): Use windows_target. Install x86
8907 specific target methods here.
8908
c1966e26
DE
89092014-03-10 Doug Evans <xdje42@gmail.com>
8910
8911 * guile/guile.c (call_initialize_gdb_module): New function.
8912 (initialize_guile): Replace call to scm_init_guile with call to
8913 scm_with_guile.
8914
023db19c
JB
89152014-03-10 Joel Brobecker <brobecker@adacore.com>
8916
8917 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8918 in call to TYPE_CODE macro.
8919
5ec18f2b
JG
89202014-03-10 Jerome Guitton <guitton@adacore.com>
8921
8668be63
JB
8922 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8923 Resolve tagged types to full view.
5ec18f2b 8924
7d03f2eb
HZ
89252014-03-10 Hui Zhu <hui@codesourcery.com>
8926
8927 * target.h (target_insert_breakpoint): Remove "hardware" from its
8928 comments.
8929
c5164cbc
DE
89302014-03-07 Doug Evans <dje@google.com>
8931
8932 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8933
c4a3fee2
DE
89342014-03-07 Doug Evans <dje@google.com>
8935
8936 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8937 Remove unused local comp_dir_attr. Assert exactly one of
8938 stub_comp_unit_die, stub_comp_dir is non-NULL.
8939
3156469c
JB
89402014-03-07 Joel Brobecker <brobecker@adacore.com>
8941
8942 * target.h (complete_target_initialization, add_target):
8943 Add comment.
8944
c1a7b7c6
PA
89452014-03-07 Pedro Alves <palves@redhat.com>
8946
8947 * go32-nat.c: Include inf-child.h.
8948 (go32_ops): Delete global.
8949 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8950 Delete methods.
8951 (go32_create_inferior): Push the passed in target pointer instead
8952 of referencing go32_ops.
8953 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8954 (go32_target): New function, based on init_go32_ops, but inherit
8955 inf_child_target.
8956 (_initialize_go32_nat): Use go32_target. Move parts of
8957 init_go32_ops here.
8958
d3c1a85f
JB
89592014-03-06 Joel Brobecker <brobecker@adacore.com>
8960
8961 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8962 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8963 SYMBOL_VALUE_ADDRESS.
8964 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8965
5fa1d40e
YQ
89662014-03-06 Yao Qi <yao@codesourcery.com>
8967
8968 * breakpoint.c (get_tracepoint_by_number): Remove argument
8969 optional_p. All callers updated. Adjust comments. Update
8970 output message.
8971 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8972
0c13193f
YQ
89732014-03-06 Yao Qi <yao@codesourcery.com>
8974
8975 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8976 early if get_number returns zero. Use 'p' instead of 'args'.
8977
2217da06
YQ
89782014-03-06 Yao Qi <yao@codesourcery.com>
8979
8980 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8981 message.
8982
cc3da688
YQ
89832014-03-06 Yao Qi <yao@codesourcery.com>
8984
8985 PR breakpoints/16508
8986 * tracepoint.c (check_trace_running): New function.
8987 (trace_find_command): Move code to check_trace_running and
8988 call check_trace_running.
8989 (trace_find_pc_command): Likewise.
8990 (trace_find_tracepoint_command): Likewise.
8991 (trace_find_line_command): Likewise.
8992 (trace_find_range_command): Likewise.
8993 * tracepoint.h (check_trace_running): Likewise.
8994 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8995
6a5f844b
YQ
89962014-03-06 Yao Qi <yao@codesourcery.com>
8997
8998 * target.h (struct target_ops) <to_traceframe_info>: Use
8999 TARGET_DEFAULT_NORETURN (tcomplain ()).
9000 * target-delegates.c: Regenerated.
9001
0f26cec1
PA
90022014-03-05 Pedro Alves <palves@redhat.com>
9003
9004 PR gdb/16575
9005 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9006 void. Update comment.
9007 (dcache_xfer_memory): Delete.
9008 (dcache_read_memory_partial): New, based on the read bits of
9009 dcache_xfer_memory.
9010 (dcache_update): Add status parameter. Use ULONGEST for len, and
9011 adjust. Discard cache lines if the reason for the update was
9012 error.
9013 * dcache.h (dcache_xfer_memory): Delete declaration.
9014 (dcache_read_memory_partial): New declaration.
9015 (dcache_update): Update prototype.
9016 * target.c (raw_memory_xfer_partial): Update the dcache here.
9017 (memory_xfer_partial_1): Don't handle dcache writes here.
9018
b2b255bd
MF
90192014-03-05 Mike Frysinger <vapier@gentoo.org>
9020
9021 * remote-sim.c (gdbsim_load): Add const to prog.
9022
5d9cf8a4
TT
90232014-03-03 Tom Tromey <tromey@redhat.com>
9024
9025 * elfread.c (probe_key): Change to bfd_data.
9026 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9027 now per-BFD, not per-objfile.
9028 * stap-probe.c (stap_probe_destroy): Update comment.
9029 (handle_stap_probe): Allocate on the per-BFD obstack.
9030
729662a5
TT
90312014-03-03 Tom Tromey <tromey@redhat.com>
9032
9033 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9034 * breakpoint.c (create_longjmp_master_breakpoint): Use
9035 get_probe_address.
9036 (add_location_to_breakpoint, bkpt_probe_insert_location)
9037 (bkpt_probe_remove_location): Update.
9038 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9039 * elfread.c (elf_symfile_relocate_probe): Remove.
9040 (elf_probe_fns): Update.
9041 (insert_exception_resume_breakpoint): Change type of "probe"
9042 parameter to bound_probe.
9043 (check_exception_resume): Update.
9044 * objfiles.c (objfile_relocate1): Don't relocate probes.
9045 * probe.c (bound_probe_s): New typedef.
9046 (parse_probes): Use get_probe_address. Set sal's objfile.
9047 (find_probe_by_pc): Return a bound_probe.
9048 (collect_probes): Return a VEC(bound_probe_s).
9049 (compare_probes): Update.
9050 (gen_ui_out_table_header_info): Change type of "probes"
9051 parameter. Update.
9052 (info_probes_for_ops): Update.
9053 (get_probe_address): New function.
9054 (probe_safe_evaluate_at_pc): Update.
9055 * probe.h (struct probe_ops) <get_probe_address>: New field.
9056 <set_semaphore, clear_semaphore>: Add objfile parameter.
9057 (struct probe) <objfile>: Remove field.
9058 <arch>: New field.
9059 <address>: Update comment.
9060 (struct bound_probe): New.
9061 (find_probe_by_pc): Return a bound_probe.
9062 (get_probe_address): Declare.
9063 * solib-svr4.c (struct probe_and_action) <address>: New field.
9064 (hash_probe_and_action, equal_probe_and_action): Update.
9065 (register_solib_event_probe): Add address parameter.
9066 (solib_event_probe_at): Update.
9067 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9068 get_probe_address.
9069 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9070 (stap_get_probe_address): New function.
9071 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9072 (compile_probe_arg): Update.
9073 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9074 address.
9075 (handle_stap_probe): Don't relocate the probe.
9076 (stap_relocate): Remove.
9077 (stap_gen_info_probes_table_values): Update.
9078 (stap_probe_ops): Remove stap_relocate.
9079 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9080 (debug_sym_probe_fns): Update.
9081 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9082 * symtab.c (init_sal): Use memset.
9083 * symtab.h (struct symtab_and_line) <objfile>: New field.
9084 * tracepoint.c (start_tracing, stop_tracing): Update.
9085
ff887920
TT
90862014-03-03 Tom Tromey <tromey@redhat.com>
9087
9088 * probe.h (parse_probes, find_probe_by_pc)
9089 (find_probes_in_objfile): Fix comments.
9090
f0407826
DE
90912014-03-02 Doug Evans <xdje42@gmail.com>
9092
9093 * infrun.c (handle_signal_stop): Replace test for
9094 TARGET_WAITKIND_STOPPED with an assert.
9095
35e6a711
DE
90962014-03-02 Doug Evans <xdje42@gmail.com>
9097
9098 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9099
667f9d0b
DE
91002014-03-02 Doug Evans <xdje42@gmail.com>
9101
9102 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9103
dc92ace0
MK
91042014-03-01 Mark Kettenis <kettenis@gnu.org>
9105
9106 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9107
a900370f
MK
91082014-03-01 Mark Kettenis <kettenis@gnu.org>
9109
9110 * i386obsd-nat.c: Include "obsd-nat.h".
9111 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9112 add_target.
9113 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9114
b72a7981
MK
91152014-03-01 Mark Kettenis <kettenis@gnu.org>
9116
9117 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9118
96c70aba
MK
91192014-03-01 Mark Kettenis <kettenis@gnu.org>
9120
9121 * mips64obsd-nat.c: Include "obsd-nath".
9122 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9123 add_target
9124 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9125
874a80af
MK
91262014-03-01 Mark Kettenis <kettenis@gnu.org>
9127
8fd408f1
MK
9128 * amd64obsd-nat.c: Include "obsd-nat,h.
9129 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9130 add_target.
874a80af
MK
9131 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9132
9cf95373
SC
91332014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9134
9135 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9136 (find_overload_match): Update call to find_oload_champ.
9137 (find_oload_champ_namespace_loop): Likewise
9138
863e4da4
MK
91392014-02-28 Mark Kettenis <kettenis@gnu.org>
9140
025cac40
MK
9141 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9142
1ed586ce
MK
9143 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9144 * config/sparc/obsd64.mh: New file.
9145 * sparc64obsd-nat.c: New file.
9146
863e4da4
MK
9147 * obsd-nat.h: New file.
9148 * obsd-nat.c: New file.
9149 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9150 (ALLDEPFILES): Add obsd-nat.c.
9151
89de4da4
TT
91522014-02-28 Tom Tromey <tromey@redhat.com>
9153
9154 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9155 * cli-out.h (cli_ui_out_impl): Now const.
9156 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9157 * ui-out.c (struct ui_out) <impl>: Now const.
9158 (default_ui_out_impl): Now const.
9159 (ui_out_new): Make 'impl' parameter const.
9160 * ui-out.h (ui_out_new): Update.
9161
c725e7b6
MK
91622014-02-27 Mark Kettenis <kettenis@gnu.org>
9163
9164 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9165
670b46b3
MK
91662014-02-27 Mark Kettenis <kettenis@gnu.org>
9167
9168 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9169
c91550fc
JK
91702014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9171
9172 Additional PR 8882 fix.
9173 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9174
2fa0369e
PA
91752014-02-27 Pedro Alves <palves@redhat.com>
9176
9177 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9178 isn't set.
9179
d632a097
PA
91802014-02-27 Pedro Alves <palves@redhat.com>
9181
9182 PR 12702
9183 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9184 * nat/linux-waitpid.c: Include string.h.
9185 (status_to_str): Moved here and made extern.
9186 * nat/linux-waitpid.h (status_to_str): New declaration.
9187
2ebd5a35
HZ
91882014-02-27 Hui Zhu <hui@codesourcery.com>
9189
9190 PR 12702
9191 * infrun.c (ptid_match): Move ...
9192 * common/ptid.c (ptid_match): ... here.
9193 * inferior.h (ptid_match): Move ...
9194 * common/ptid.h (ptid_match): ... here.
9195
3cdd631f
MK
91962014-02-27 Mark Kettenis <kettenis@gnu.org>
9197
9198 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9199 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9200 gdb_target_obs.
9201
bee30a64
MK
92022014-02-27 Mark Kettenis <kettenis@gnu.org>
9203
9204 * obsd-tdep.c (obsd_auxv_parse): New function.
9205 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
9206
9207 * gdbarch.sh (auxv_parse): New.
9208 * gdbarch.h: Regenerated.
9209 * gdbarch.c: Regenerated.
9210 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9211
7a5a839f
LC
92122014-02-26 Ludovic Courtès <ludo@gnu.org>
9213
9214 * guile/scm-value.c (gdbscm_history_append_x): New function.
9215 (value_functions): Add it.
9216
31aa7e4e
JB
92172014-02-27 Joel Brobecker <brobecker@adacore.com>
9218
9219 * dwarf2read.c (attr_value_as_address): New function.
9220 (dwarf2_find_base_address, read_call_site_scope): Use
9221 attr_value_as_address in place of DW_ADDR.
9222 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9223 the low and high addresses. Slight rework of the handling
9224 of the high pc being a constant form, and limit it to
9225 DWARF verson 4 or higher.
9226 (dwarf2_record_block_ranges): Likewise.
9227 (read_partial_die): Likewise.
9228 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9229
9b333ba3
TT
92302014-02-26 Tom Tromey <tromey@redhat.com>
9231
9232 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9233
5f6cac40
TT
92342014-02-26 Tom Tromey <tromey@redhat.com>
9235
9236 * elfread.c (elf_read_minimal_symbols): Return early if
9237 minimal symbols have already been read. Add "ei" parameter.
9238 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9239 * minsyms.c (prim_record_minimal_symbol_full): Update.
9240 * objfiles.h (struct objstats) <n_minsyms>: Move...
9241 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9242 * symmisc.c (print_objfile_statistics): Update.
9243
2750ef27
TT
92442014-02-26 Tom Tromey <tromey@redhat.com>
9245
9246 * elfread.c (elf_read_minimal_symbols): New function, from
9247 elf_symfile_read.
9248 (elf_symfile_read): Call it.
9249
34643a32
TT
92502014-02-26 Tom Tromey <tromey@redhat.com>
9251
9252 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9253 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9254 (lookup_minimal_symbol_solib_trampoline)
9255 (lookup_minimal_symbol_by_pc_section_1)
9256 (lookup_minimal_symbol_and_objfile): Update.
9257 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9258 Don't allocate a minimal symbol if minsyms have already been read.
9259 (build_minimal_symbol_hash_tables): Update.
9260 (install_minimal_symbols): Do nothing if minsyms already read.
9261 Use the per-BFD obstack.
9262 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9263 * objfiles.c (allocate_objfile): Call
9264 terminate_minimal_symbol_table later.
9265 (have_minimal_symbols): Update.
9266 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9267 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9268 Move from struct objfile.
9269 <minsyms_read>: New field.
9270 (struct objfile) <msymbols, minimal_symbol_count,
9271 msymbol_hash, msymbol_demangled_hash>: Move.
9272 (ALL_OBJFILE_MSYMBOLS): Update.
9273 * symfile.c (read_symbols): Set minsyms_read.
9274 (reread_symbols): Update.
9275 * symmisc.c (dump_objfile, dump_msymbols): Update.
9276
2273f0ac
TT
92772014-02-26 Tom Tromey <tromey@redhat.com>
9278
9279 * minsyms.c (msymbols_sort): Remove.
9280 * minsyms.h (msymbols_sort): Remove.
9281 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9282 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9283 * elfread.c (elf_symtab_read): Don't add section offsets.
9284 * xcoffread.c (record_minimal_symbol): Don't add section offset
9285 to minimal symbol address.
9286 * somread.c (text_offset, data_offset): Remove.
9287 (som_symtab_read): Don't add section offsets to minimal symbol
9288 addresses.
9289 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9290 Don't add section offsets to minimal symbols.
9291 * coffread.c (coff_symtab_read): Don't add section offsets
9292 to minimal symbol addresses.
9293 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9294 to minimal symbol addresses.
9295 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9296 section offset to minimal symbol addresses.
9297 * mdebugread.c (parse_partial_symbols): Don't add section
9298 offset to minimal symbol addresses.
9299 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9300 offset to minimal symbol addresses.
9301
77e371c0
TT
93022014-02-26 Tom Tromey <tromey@redhat.com>
9303
9304 * ada-lang.c (ada_main_name): Update.
9305 (ada_add_standard_exceptions): Update.
9306 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9307 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9308 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9309 * auxv.c (ld_so_xfer_auxv): Update.
9310 * avr-tdep.c (avr_scan_prologue): Update.
9311 * ax-gdb.c (gen_var_ref): Update.
9312 * blockframe.c (get_pc_function_start)
9313 (find_pc_partial_function_gnu_ifunc): Update.
9314 * breakpoint.c (create_overlay_event_breakpoint)
9315 (create_longjmp_master_breakpoint)
9316 (create_std_terminate_master_breakpoint)
9317 (create_exception_master_breakpoint): Update.
9318 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9319 * c-valprint.c (c_val_print): Update.
9320 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9321 * common/agent.c (agent_look_up_symbols): Update.
9322 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9323 * dwarf2loc.c (call_site_to_target_addr): Update.
9324 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9325 * elfread.c (elf_gnu_ifunc_record_cache)
9326 (elf_gnu_ifunc_resolve_by_got): Update.
9327 * findvar.c (default_read_var_value): Update.
9328 * frame.c (inside_main_func): Update.
9329 * frv-tdep.c (frv_frame_this_id): Update.
9330 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9331 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9332 Update.
9333 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9334 (hppa_hpux_find_dummy_bpaddr): Update.
9335 * hppa-tdep.c (hppa_symbol_address): Update.
9336 * infcmd.c (until_next_command): Update.
9337 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9338 Update.
9339 * linespec.c (minsym_found, add_minsym): Update.
9340 * linux-nat.c (get_signo): Update.
9341 * linux-thread-db.c (inferior_has_bug): Update.
9342 * m32c-tdep.c (m32c_return_value)
9343 (m32c_m16c_address_to_pointer): Update.
9344 * m32r-tdep.c (m32r_frame_this_id): Update.
9345 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9346 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9347 * maint.c (maintenance_translate_address): Update.
9348 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9349 (frob_address): New function.
9350 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9351 frob_address. Rename parameter to "pc_in".
9352 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9353 addresses.
9354 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9355 Update.
9356 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9357 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9358 * objc-lang.c (find_objc_msgsend): Update.
9359 * objfiles.c (objfile_relocate1): Update.
9360 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9361 * p-valprint.c (pascal_val_print): Update.
9362 * parse.c (write_exp_msymbol): Update.
9363 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9364 (ppc_elfv2_skip_entrypoint): Update.
9365 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9366 * printcmd.c (build_address_symbolic, msym_info)
9367 (address_info): Update.
9368 * proc-service.c (ps_pglobal_lookup): Update.
9369 * psymtab.c (find_pc_sect_psymtab_closer)
9370 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9371 Change msymbol parameter to bound_minimal_symbol.
9372 * ravenscar-thread.c (get_running_thread_id): Update.
9373 * remote.c (remote_check_symbols): Update.
9374 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9375 address.
9376 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9377 * solib-dsbt.c (lm_base): Update.
9378 * solib-frv.c (lm_base, main_got): Update.
9379 * solib-irix.c (locate_base): Update.
9380 * solib-som.c (som_solib_create_inferior_hook)
9381 (link_map_start): Update.
9382 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9383 * solib-svr4.c (elf_locate_base, enable_break): Update.
9384 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9385 (flush_ea_cache): Update.
9386 * stabsread.c (define_symbol, scan_file_globals): Update.
9387 * stack.c (find_frame_funname): Update.
9388 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9389 (debug_qf_find_pc_sect_symtab): Update.
9390 * symfile.c (simple_read_overlay_table)
9391 (simple_overlay_update): Update.
9392 * symfile.h (struct quick_symbol_functions)
9393 <find_pc_sect_symtab>: Change type of msymbol to
9394 bound_minimal_symbol.
9395 * symmisc.c (dump_msymbols): Update.
9396 * symtab.c (find_pc_sect_symtab_via_partial)
9397 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9398 (search_symbols, print_msymbol_info): Update.
9399 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9400 (MSYMBOL_VALUE_ADDRESS): Redefine.
9401 (BMSYMBOL_VALUE_ADDRESS): New macro.
9402 * tracepoint.c (scope_info): Update.
9403 * tui/tui-disasm.c (tui_find_disassembly_address)
9404 (tui_get_begin_asm_address): Update.
9405 * valops.c (find_function_in_inferior): Update.
9406 * value.c (value_static_field, value_fn_field): Update.
9407
3b7344d5
TT
94082014-02-26 Tom Tromey <tromey@redhat.com>
9409
9410 * ada-lang.c (ada_update_initial_language): Update.
9411 (ada_main_name, ada_has_this_exception_support): Update.
9412 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9413 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9414 * arm-tdep.c (arm_skip_stub): Update.
9415 * auxv.c (ld_so_xfer_auxv): Update.
9416 * avr-tdep.c (avr_scan_prologue): Update.
9417 * ax-gdb.c (gen_var_ref): Update.
9418 * breakpoint.c (struct breakpoint_objfile_data)
9419 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9420 type to bound_minimal_symbol.
9421 (create_overlay_event_breakpoint)
9422 (create_longjmp_master_breakpoint)
9423 (create_std_terminate_master_breakpoint)
9424 (create_exception_master_breakpoint): Update.
9425 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9426 * c-exp.y (classify_name): Update.
9427 * coffread.c (coff_symfile_read): Update.
9428 * common/agent.c (agent_look_up_symbols): Update.
9429 * d-lang.c (d_main_name): Update.
9430 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9431 * dec-thread.c (enable_dec_thread): Update.
9432 * dwarf2loc.c (call_site_to_target_addr): Update.
9433 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9434 * eval.c (evaluate_subexp_standard): Update.
9435 * findvar.c (struct minsym_lookup_data) <result>: Change type
9436 to bound_minimal_symbol.
9437 <objfile>: Remove.
9438 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9439 * frame.c (inside_main_func): Update.
9440 * frv-tdep.c (frv_frame_this_id): Update.
9441 * gcore.c (call_target_sbrk): Update.
9442 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9443 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9444 Update.
9445 * go-lang.c (go_main_name): Update.
9446 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9447 (hppa_hpux_find_import_stub_for_addr): Update.
9448 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9449 Update. Change return type.
9450 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9451 type.
9452 * jit.c (jit_breakpoint_re_set_internal): Update.
9453 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9454 Update.
9455 * linux-nat.c (get_signo): Update.
9456 * linux-thread-db.c (inferior_has_bug): Update
9457 * m32c-tdep.c (m32c_return_value)
9458 (m32c_m16c_address_to_pointer): Update.
9459 * m32r-tdep.c (m32r_frame_this_id): Update.
9460 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9461 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9462 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9463 lookup_minimal_symbol. Change return type.
9464 (lookup_minimal_symbol): Remove.
9465 (lookup_bound_minimal_symbol): Update.
9466 (lookup_minimal_symbol_text): Change return type.
9467 (lookup_minimal_symbol_solib_trampoline): Change return type.
9468 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9469 (lookup_minimal_symbol_solib_trampoline): Change return type.
9470 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9471 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9472 (value_nsstring, find_imps): Update.
9473 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9474 * p-lang.c (pascal_main_name): Update.
9475 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9476 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9477 * proc-service.c (ps_pglobal_lookup): Update.
9478 * ravenscar-thread.c (get_running_thread_msymbol): Change
9479 return type.
9480 (has_ravenscar_runtime, get_running_thread_id): Update.
9481 * remote.c (remote_check_symbols): Update.
9482 * sol-thread.c (ps_pglobal_lookup): Update.
9483 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9484 * solib-dsbt.c (lm_base): Update.
9485 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9486 Update.
9487 * solib-irix.c (locate_base): Update.
9488 * solib-som.c (som_solib_create_inferior_hook)
9489 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9490 Update.
9491 * solib-spu.c (spu_enable_break): Update.
9492 * solib-svr4.c (elf_locate_base, enable_break): Update.
9493 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9494 (flush_ea_cache): Update.
9495 * stabsread.c (define_symbol): Update.
9496 * symfile.c (simple_read_overlay_table): Update.
9497 * symtab.c (find_pc_sect_line): Update.
9498 * tracepoint.c (scope_info): Update.
9499 * tui-disasm.c (tui_get_begin_asm_address): Update.
9500 * value.c (value_static_field): Update.
9501
40c1a007
TT
95022014-02-26 Tom Tromey <tromey@redhat.com>
9503
9504 * minsyms.c (prim_record_minimal_symbol_full): Use
9505 SET_MSYMBOL_VALUE_ADDRESS.
9506 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9507 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9508 SET_MSYMBOL_VALUE_ADDRESS.
9509 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9510 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9511
efd66ac6
TT
95122014-02-26 Tom Tromey <tromey@redhat.com>
9513
9514 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9515 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9516 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9517 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9518 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9519 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9520 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9521 * ada-lang.c (ada_main_name): Update.
9522 (ada_lookup_simple_minsym): Update.
9523 (ada_make_symbol_completion_list): Update.
9524 (ada_add_standard_exceptions): Update.
9525 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9526 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9527 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9528 * arm-tdep.c (skip_prologue_function): Update.
9529 (arm_skip_stack_protector, arm_skip_stub): Update.
9530 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9531 (arm_wince_skip_main_prologue): Update.
9532 * auxv.c (ld_so_xfer_auxv): Update.
9533 * avr-tdep.c (avr_scan_prologue): Update.
9534 * ax-gdb.c (gen_var_ref): Update.
9535 * block.c (call_site_for_pc): Update.
9536 * blockframe.c (get_pc_function_start): Update.
9537 (find_pc_partial_function_gnu_ifunc): Update.
9538 * breakpoint.c (create_overlay_event_breakpoint): Update.
9539 (create_longjmp_master_breakpoint): Update.
9540 (create_std_terminate_master_breakpoint): Update.
9541 (create_exception_master_breakpoint): Update.
9542 (resolve_sal_pc): Update.
9543 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9544 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9545 Update.
9546 * c-valprint.c (c_val_print): Update.
9547 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9548 * coffread.c (coff_symfile_read): Update.
9549 * common/agent.c (agent_look_up_symbols): Update.
9550 * dbxread.c (find_stab_function_addr): Update.
9551 (end_psymtab): Update.
9552 * dwarf2loc.c (call_site_to_target_addr): Update.
9553 (func_verify_no_selftailcall): Update.
9554 (tailcall_dump): Update.
9555 (call_site_find_chain_1): Update.
9556 (dwarf_expr_reg_to_entry_parameter): Update.
9557 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9558 (elf_gnu_ifunc_resolve_by_got): Update.
9559 * f-valprint.c (info_common_command): Update.
9560 * findvar.c (read_var_value): Update.
9561 * frame.c (get_prev_frame_1): Update.
9562 (inside_main_func): Update.
9563 * frv-tdep.c (frv_skip_main_prologue): Update.
9564 (frv_frame_this_id): Update.
9565 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9566 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9567 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9568 (gnuv3_skip_trampoline): Update.
9569 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9570 (hppa64_hpux_in_solib_call_trampoline): Update.
9571 (hppa_hpux_skip_trampoline_code): Update.
9572 (hppa64_hpux_search_dummy_call_sequence): Update.
9573 (hppa_hpux_find_import_stub_for_addr): Update.
9574 (hppa_hpux_find_dummy_bpaddr): Update.
9575 * hppa-tdep.c (hppa_symbol_address)
9576 (hppa_lookup_stub_minimal_symbol): Update.
9577 * i386-tdep.c (i386_skip_main_prologue): Update.
9578 (i386_pe_skip_trampoline_code): Update.
9579 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9580 * infcall.c (get_function_name): Update.
9581 * infcmd.c (until_next_command): Update.
9582 * jit.c (jit_breakpoint_re_set_internal): Update.
9583 (jit_inferior_init): Update.
9584 * linespec.c (minsym_found): Update.
9585 (add_minsym): Update.
9586 * linux-fork.c (info_checkpoints_command): Update.
9587 * linux-nat.c (get_signo): Update.
9588 * linux-thread-db.c (inferior_has_bug): Update.
9589 * m32c-tdep.c (m32c_return_value): Update.
9590 (m32c_m16c_address_to_pointer): Update.
9591 (m32c_m16c_pointer_to_address): Update.
9592 * m32r-tdep.c (m32r_frame_this_id): Update.
9593 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9594 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9595 * maint.c (maintenance_translate_address): Update.
9596 * minsyms.c (add_minsym_to_hash_table): Update.
9597 (add_minsym_to_demangled_hash_table): Update.
9598 (msymbol_objfile): Update.
9599 (lookup_minimal_symbol): Update.
9600 (iterate_over_minimal_symbols): Update.
9601 (lookup_minimal_symbol_text): Update.
9602 (lookup_minimal_symbol_by_pc_name): Update.
9603 (lookup_minimal_symbol_solib_trampoline): Update.
9604 (lookup_minimal_symbol_by_pc_section_1): Update.
9605 (lookup_minimal_symbol_and_objfile): Update.
9606 (prim_record_minimal_symbol_full): Update.
9607 (compare_minimal_symbols): Update.
9608 (compact_minimal_symbols): Update.
9609 (build_minimal_symbol_hash_tables): Update.
9610 (install_minimal_symbols): Update.
9611 (terminate_minimal_symbol_table): Update.
9612 (find_solib_trampoline_target): Update.
9613 (minimal_symbol_upper_bound): Update.
9614 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9615 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9616 (mips_skip_pic_trampoline_code): Update.
9617 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9618 * objc-lang.c (selectors_info): Update.
9619 (classes_info): Update.
9620 (find_methods): Update.
9621 (find_imps): Update.
9622 (find_objc_msgsend): Update.
9623 * objfiles.c (objfile_relocate1): Update.
9624 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9625 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9626 * p-valprint.c (pascal_val_print): Update.
9627 * parse.c (write_exp_msymbol): Update.
9628 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9629 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9630 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9631 * printcmd.c (build_address_symbolic): Update.
9632 (sym_info): Update.
9633 (address_info): Update.
9634 * proc-service.c (ps_pglobal_lookup): Update.
9635 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9636 (find_pc_sect_psymtab): Update.
9637 * python/py-framefilter.c (py_print_frame): Update.
9638 * ravenscar-thread.c (get_running_thread_id): Update.
9639 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9640 Update.
9641 * remote.c (remote_check_symbols): Update.
9642 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9643 (rs6000_skip_trampoline_code): Update.
9644 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9645 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9646 * solib-dsbt.c (lm_base): Update.
9647 * solib-frv.c (lm_base): Update.
9648 (main_got): Update.
9649 * solib-irix.c (locate_base): Update.
9650 * solib-som.c (som_solib_create_inferior_hook): Update.
9651 (som_solib_desire_dynamic_linker_symbols): Update.
9652 (link_map_start): Update.
9653 * solib-spu.c (spu_enable_break): Update.
9654 (ocl_enable_break): Update.
9655 * solib-svr4.c (elf_locate_base): Update.
9656 (enable_break): Update.
9657 * spu-tdep.c (spu_get_overlay_table): Update.
9658 (spu_catch_start): Update.
9659 (flush_ea_cache): Update.
9660 * stabsread.c (define_symbol): Update.
9661 (scan_file_globals): Update.
9662 * stack.c (find_frame_funname): Update.
9663 (frame_info): Update.
9664 * symfile.c (simple_read_overlay_table): Update.
9665 (simple_overlay_update): Update.
9666 * symmisc.c (dump_msymbols): Update.
9667 * symtab.c (fixup_section): Update.
9668 (find_pc_sect_line): Update.
9669 (skip_prologue_sal): Update.
9670 (search_symbols): Update.
9671 (print_msymbol_info): Update.
9672 (rbreak_command): Update.
9673 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9674 (completion_list_objc_symbol): Update.
9675 (default_make_symbol_completion_list_break_on): Update.
9676 * tracepoint.c (scope_info): Update.
9677 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9678 (tui_get_begin_asm_address): Update.
9679 * valops.c (find_function_in_inferior): Update.
9680 * value.c (value_static_field): Update.
9681 (value_fn_field): Update.
9682
50e65b17
TT
96832014-02-26 Tom Tromey <tromey@redhat.com>
9684
9685 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9686 bound minimal symbols. Move code that knows about minsym
9687 table layout...
9688 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9689 function.
9690 * minsyms.h (minimal_symbol_upper_bound): Declare.
9691 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9692 minimal_symbol_upper_bound.
9693
1b588015
JB
96942014-02-27 Joel Brobecker <brobecker@adacore.com>
9695
9696 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9697 Use the type's name if its basic type does not have a tag.
9698
dbb9c2b1
JB
96992014-02-27 Joel Brobecker <brobecker@adacore.com>
9700
9701 * dwarf2read.c (read_subrange_type): Add comment.
9702
55426c9d
JB
97032014-02-27 Joel Brobecker <brobecker@adacore.com>
9704
9705 * dwarf2read.c (update_enumeration_type_from_children): New
9706 function, mostly extracted from process_structure_scope.
9707 (read_enumeration_type): Call update_enumeration_type_from_children.
9708 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9709 and flag_flag_enum fields.
9710
f2fce0ca
PA
97112014-02-26 Pedro Alves <palves@redhat.com>
9712
9713 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9714 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9715 to_xfer_partial method.
9716
7a44e40e
PA
97172014-02-26 Pedro Alves <palves@redhat.com>
9718
9719 * target.c (complete_target_initialization): Don't install
9720 default_xfer_partial as to_xfer_partial hook.
9721 (nomemory): Delete.
9722 (update_current_target): Don't INHERIT nor de_fault
9723 deprecated_xfer_memory. Delete de_fault macro.
9724 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9725 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9726 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9727 field.
9728
bd265cd0
PA
97292014-02-26 Pedro Alves <palves@redhat.com>
9730
9731 * go32-nat.c (my_write_child): New function.
9732 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9733 (go32_xfer_partial): New function.
9734 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9735 Instead install a to_xfer_partial hook.
9736
9d46c4e5
PA
97372014-02-26 Pedro Alves <palves@redhat.com>
9738
9739 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9740 to_xfer_partial helper. Rewrite.
9741 (procfs_xfer_partial): New function.
9742 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9743 Install a to_xfer_partial hook.
9744
a1583b1f
PA
97452014-02-26 Pedro Alves <palves@redhat.com>
9746
9747 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9748 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9749 (m32r_xfer_partial): New function.
9750 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9751 Install a to_xfer_partial hook.
9752
6df1b29f
PA
97532014-02-26 Pedro Alves <palves@redhat.com>
9754
9755 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9756 helper.
9757 (mips_xfer_partial): New function.
9758 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9759 hook. Install a to_xfer_partial hook.
9760
dc53a7ad
JB
97612014-02-26 Joel Brobecker <brobecker@adacore.com>
9762
9763 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9764 * gdbtypes.c (create_array_type_with_stride): New function,
9765 renaming create_array_type, but with an added parameter
9766 called "bit_stride".
9767 (create_array_type): Re-implement using
9768 create_array_type_with_stride.
9769 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9770 and DW_AT_bit_stride attributes.
9771
12ab52e9
PA
97722014-02-26 Pedro Alves <palves@redhat.com>
9773
9774 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9775 task-specific breakpoints.
9776
d16461ae
PA
97772014-02-25 Pedro Alves <palves@redhat.com>
9778
9779 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9780 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9781
a8b16220
SS
97822014-02-25 Stan Shebs <stan@codesourcery.com>
9783
9784 * defs.h: Annotate comments for Doxygen.
9785
b9e795ee
TT
97862014-02-25 Tom Tromey <tromey@redhat.com>
9787
9788 * target.h (target_ignore): Don't declare.
9789 * target.c (target_ignore): Remove.
9790
849c862e
JK
97912014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9792
9793 PR gdb/16626
9794 * auto-load.c (auto_load_objfile_script_1): Change filename to
9795 debugfile.
9796
475109d8
JB
97972014-02-25 Joel Brobecker <brobecker@adacore.com>
9798
9799 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9800 documentation. Adjust prototype to match the target_ops
9801 to_xfer_partial method. Adjust implementation accordingly.
9802
e186c3bd
HZ
98032014-02-25 Hui Zhu <hui@codesourcery.com>
9804
9805 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9806 to_traceframe_info.
9807
6d451942
KB
98082014-02-25 Kevin Buettner <kevinb@redhat.com>
9809
041ab8b4 9810 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9811 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9812 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9813 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9814 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9815 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9816 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9817 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9818 New constants.
9819 (rl78_register_type): Use a data pointer type for SP and
9820 new pseudo registers mentioned above. Use a 16 bit integer
9821 type for all other register pairs.
9822 (rl78_register_name, rl78_g10_register_name): Update for
9823 new pseudo registers.
9824 (rl78_pseudo_register_read): Likewise.
9825 (rl78_pseudo_register_write): Likewise.
9826 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9827 to the newly added pseudo registers.
9828
eddf0bae
DE
98292014-02-24 Doug Evans <dje@google.com>
9830
9831 * value.c (record_latest_value): Fix comment.
9832 * printcmd.c (print_command_1): Remove code to handle -1 return from
9833 record_latest_value.
9834
e96027e0
PA
98352014-02-24 Pedro Alves <palves@redhat.com>
9836
9837 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9838 deprecated_xfer_memory hook.
9839 (procfs_xfer_partial): Call procfs_xfer_memory instead
9840 of the deprecated_xfer_memory target hook.
9841 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9842 helper.
9843
0837c976
YZ
98442014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9845
9846 * windows-nat.c (windows_xfer_shared_libraries): Return
9847 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9848 requested object is TARGET_OBJECT_LIBRARIES.
9849
bc113b4e
YQ
98502014-02-24 Yao Qi <yao@codesourcery.com>
9851
9852 * target.h (enum target_xfer_status)
9853 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9854 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9855 explicitly. New.
9856 * corefile.c (memory_error_message): User updated.
9857 * exec.c (section_table_read_available_memory): Likewise.
9858 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9859 * target.c (target_xfer_status_to_string): Likewise.
9860 (raw_memory_xfer_partial): Likewise.
9861 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9862 * valops.c (read_value_memory): Likewise.
9863 * exec.h: Update comments.
9864
01cb8804
YQ
98652014-02-24 Yao Qi <yao@codesourcery.com>
9866
9867 * target.c (target_xfer_status_to_string): Rename argument err
9868 to status.
9869 * target.h (target_xfer_status_to_string): Update declaration.
9870 Replace target_xfer_error_to_string with
9871 target_xfer_status_to_string in comment.
9872
93063aa6
YQ
98732014-02-24 Yao Qi <yao@codesourcery.com>
9874
9875 * mips-linux-nat.c (super_close): Update its type.
9876 (mips_linux_close): Pass 'self' to super_close.
9877
5c328c05
YQ
98782014-02-24 Yao Qi <yao@codesourcery.com>
9879
9880 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9881 * corefile.c (read_memory): Adjusted.
9882 * target.c (target_write_with_progress): Adjusted.
9883
f73023dd
YQ
98842014-02-23 Yao Qi <yao@codesourcery.com>
9885
9886 Revert two patches:
9887
9888 2013-10-25 Yao Qi <yao@codesourcery.com>
9889
9890 * remote.c (remote_traceframe_info): Return early if
9891 traceframe is not selected.
9892
9893 2013-07-19 Yao Qi <yao@codesourcery.com>
9894
9895 * target.c (update_current_target): Change the default action
9896 of 'to_traceframe_info' from tcomplain to return_zero.
9897 * target.h (struct target_ops) <to_traceframe_info>: Add more
9898 comments.
9899
5a2eb0ef
YQ
99002014-02-23 Yao Qi <yao@codesourcery.com>
9901
9902 * valops.c (read_value_memory): Rewrite it. Call
9903 target_xfer_partial in a loop.
9904 * exec.h (section_table_available_memory): Remove declaration.
9905 Move comments to ...
9906 * exec.c (section_table_available_memory): ... here. Make it
9907 static.
9908
1ee79381
YQ
99092014-02-23 Yao Qi <yao@codesourcery.com>
9910
9911 * exec.c (section_table_read_available_memory): New function.
9912 * exec.h (section_table_read_available_memory): Declare.
9913 * ctf.c (ctf_xfer_partial): Call
9914 section_table_read_available_memory.
9915 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9916
1ca49d37
YQ
99172014-02-23 Yao Qi <yao@codesourcery.com>
9918
9919 * ctf.c (ctf_xfer_partial): Move code to ...
9920 * exec.c (exec_read_partial_read_only): ... it. New function.
9921 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9922 * tracefile.c: Include "exec.h".
9923 * exec.h (exec_read_partial_read_only): Declare.
9924
a283690e
YQ
99252014-02-23 Yao Qi <yao@codesourcery.com>
9926
9927 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9928 (tfile_has_memory): Remove.
9929 (init_tfile_ops): Don't set fields to_has_all_memory and
9930 to_has_memory of tfile_ops.
9931 * tracefile.c (tracefile_has_all_memory): New function.
9932 (tracefile_has_memory): New function.
9933 (init_tracefile_ops): Initialize fields to_has_all_memory and
9934 to_has_memory of 'ops'.
9935
12e03cd0
YQ
99362014-02-23 Yao Qi <yao@codesourcery.com>
9937
9938 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9939 (ctf_thread_alive, ctf_get_trace_status): Remove.
9940 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9941 init_tracefile_ops.
9942 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9943 (tfile_has_stack, tfile_has_registers): Remove.
9944 (tfile_thread_alive): Remove.
9945 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9946 init_tracefile_ops.
9947 * tracefile.c (tracefile_has_stack): New function.
9948 (tracefile_has_registers): New function.
9949 (tracefile_thread_alive): New function.
9950 (tracefile_get_trace_status): New function.
9951 (init_tracefile_ops): New function.
9952 * tracefile.h (init_tracefile_ops): Declare.
9953
11395323
YQ
99542014-02-23 Yao Qi <yao@codesourcery.com>
9955
9956 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9957 (O_LARGEFILE): Likewise.
9958 (tfile_ops): Likewise.
9959 (TRACE_HEADER_SIZE): Likewise.
9960 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9961 (cur_data_size): Likewise.
9962 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9963 (tfile_close, tfile_files_info): Likewise.
9964 (tfile_get_trace_status): Likewise.
9965 (tfile_get_tracepoint_status): Likewise.
9966 (tfile_get_traceframe_address): Likewise.
9967 (tfile_trace_find, match_blocktype): Likewise.
9968 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9969 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9970 (tfile_get_trace_state_variable_value): Likewise.
9971 (tfile_has_all_memory, tfile_has_memory): Likewise.
9972 (tfile_has_stack, tfile_has_registers): Likewise.
9973 (tfile_thread_alive, build_traceframe_info): Likewise.
9974 (tfile_traceframe_info, init_tfile_ops): Likewise.
9975 (_initialize_tracepoint): Don't call init_tfile_ops
9976 and add_target_with_completer.
9977 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9978 exec.h, completer.h and filenames.h.
9979 (_initialize_tracefile_tfile): New function.
9980
7951c4eb
YQ
99812014-02-23 Yao Qi <yao@codesourcery.com>
9982
9983 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9984 tracefile-tfile.o.
9985 (HFILES_NO_SRCDIR): Add tracefile.h.
9986 * ctf.c: Include "tracefile.h".
9987 * tracefile.h: New file.
9988 * tracefile.c: New file
9989 * tracefile-tfile.c: New file.
9990 * tracepoint.c: Include "tracefile.h".
9991 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9992 (stop_reason_names): Add const.
9993 (trace_file_writer_xfree): Move it to tracefile.c.
9994 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9995 (trace_save_ctf): Likewise.
9996 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9997 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9998 (tfile_write_header, tfile_write_regblock_type): Likewise.
9999 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10000 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10001 (tfile_write_raw_data, tfile_end): Likewise.
10002 (tfile_trace_file_writer_new): Likewise.
10003 (free_uploaded_tp): Make it extern.
10004 (free_uploaded_tsv): Make it extern.
10005 (_initialize_tracepoint): Move code to register command 'tsave'
10006 to tracefile.c.
10007 * tracepoint.h (stop_reason_names): Declare.
10008 (struct trace_frame_write_ops): Move it to tracefile.h.
10009 (struct trace_file_write_ops): Likewise.
10010 (struct trace_file_writer): Likewise.
10011 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10012
184cd072
JK
100132014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10014
10015 PR gdb/16594
10016 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10017 process name.
10018 (get_cores_used_by_process): New parameter num_cores, use it.
10019 (linux_xfer_osdata_processes): Pass num_cores to it.
10020 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10021 process name.
10022
c63528fc
AK
100232014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10024
10025 * target.c (memory_xfer_partial): Fix length arg in call to
10026 breakpoint_xfer_memory.
10027
d7b30f67
SDJ
100282014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10029
10030 PR tdep/16397
10031 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10032 number comes after the + or - signs. Adjust length of register
10033 name to be extracted.
10034
8838afaf
TT
100352014-02-20 Tom Tromey <tromey@redhat.com>
10036
10037 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10038 (ada_varobj_ops): Mark "extern".
10039
05227d14
TT
100402014-02-20 Tom Tromey <tromey@redhat.com>
10041
10042 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10043
1254eefc
DE
100442014-02-20 Doug Evans <xdje42@gmail.com>
10045
10046 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10047 All callers updated.
10048 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10049 All callers updated.
10050 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10051 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10052
adde2bff
DE
100532014-02-20 lin zuojian <manjian2006@gmail.com>
10054 Joel Brobecker <brobecker@adacore.com>
10055 Doug Evans <xdje42@gmail.com>
10056
10057 PR symtab/16581
10058 * dwarf2read.c (struct die_info): New member in_process.
10059 (reset_die_in_process): New function.
10060 (process_die): Set it at the start, reset when returning.
10061 (inherit_abstract_dies): Only call process_die if origin_child_die
10062 not already being processed.
10063
3be75f87
JB
100642014-02-20 Joel Brobecker <brobecker@adacore.com>
10065
10066 * windows-nat.c (handle_unload_dll): Add function documentation.
10067 (do_initial_windows_stuff): Add comment explaining why we wait
10068 until after inferior initialization has finished before
10069 processing all DLLs.
10070
47f7ffdb
JB
100712014-02-20 Joel Brobecker <brobecker@adacore.com>
10072
10073 * windows-nat.c (get_module_name): Delete.
10074 (windows_get_exec_module_filename): New function, mostly
10075 inspired from get_module_name.
10076 (windows_pid_to_exec_file): Replace call to get_module_name
10077 by call to windows_get_exec_module_filename.
10078
1cd9feab
JB
100792014-02-20 Joel Brobecker <brobecker@adacore.com>
10080
10081 * windows-nat.c (handle_load_dll): Rewrite this function's
10082 introductory comment. Remove code using get_module_name
10083 to get the DLL's name.
10084
ea39ad35
JB
100852014-02-20 Joel Brobecker <brobecker@adacore.com>
10086
10087 * windows-nat.c (get_windows_debug_event): Ignore
10088 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10089 if windows_initialization_done == 0.
10090 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10091 Adjust implementation to always load all DLLs.
10092 (do_initial_windows_stuff): Replace call to
10093 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10094
95060284
JB
100952014-02-20 Joel Brobecker <brobecker@adacore.com>
10096
10097 * windows-nat.c (_initialize_windows_nat): Deprecate the
10098 "dll-symbols" command. Turn the "add-shared-symbol-files"
10099 and "assf" aliases into commands, and deprecate them as well.
10100 * NEWS: Add entry explaining that "dll-symbols" and its two
10101 aliases are now deprecated.
10102
8d4fdb12
JB
101032014-02-20 Joel Brobecker <brobecker@adacore.com>
10104
10105 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10106 new-line in debug string. Remove trailing spaces.
10107
1b281443
SS
101082014-02-19 Stan Shebs <stan@codesourcery.com>
10109
10110 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10111
f7bd0f78
SC
101122014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10113
10114 * NEWS: Add entry for the new feature
10115 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10116 and class values.
10117
399ebc3d
SS
101182014-02-19 Stan Shebs <stan@codesourcery.com>
10119
10120 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10121
c658158d
PA
101222014-02-19 Pedro Alves <palves@redhat.com>
10123
10124 * common/ptid.h (struct ptid): Mention that process_stratum
10125 targets should prefer ptid.lwp.
10126
ba348170
PA
101272014-02-19 Pedro Alves <palves@redhat.com>
10128
10129 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10130 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10131 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10132 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10133 store remote thread ids rather than ptid.tid.
10134 (_initialize_remote): Adjust.
10135
ac01945b
TT
101362014-02-19 Tom Tromey <tromey@redhat.com>
10137
10138 * target.c (target_get_unwinder): Rewrite.
10139 (target_get_tailcall_unwinder): Rewrite.
10140 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10141 (record_btrace_to_get_tailcall_unwinder): New function.
10142 (init_record_btrace_ops): Update.
10143 * target.h (struct target_ops) <to_get_unwinder,
10144 to_get_tailcall_unwinder>: Now function pointers. Use
10145 TARGET_DEFAULT_RETURN.
10146
8476dc92
TT
101472014-02-19 Tom Tromey <tromey@redhat.com>
10148
10149 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10150 argument.
10151 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10152
c0eca49f
TT
101532014-02-19 Tom Tromey <tromey@redhat.com>
10154
10155 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10156 directly.
10157 * target-delegates.c: Rebuild.
10158 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10159 TARGET_DEFAULT_FUNC.
10160 * target.c (default_target_decr_pc_after_break): Rename from
10161 forward_target_decr_pc_after_break. Simplify.
10162 (target_decr_pc_after_break): Rely on delegation.
10163
596b6b39
TT
101642014-02-19 Tom Tromey <tromey@redhat.com>
10165
10166 * target.c (update_current_target): Do not INHERIT to_doc or
10167 to_magic. Do not de_fault to_open or to_close.
10168
b427c1bc
TT
101692014-02-19 Tom Tromey <tromey@redhat.com>
10170
10171 * gcore.h (objfile_find_memory_regions): Declare.
10172 * gcore.c (objfile_find_memory_regions): No longer static. Add
10173 "self" argument.
10174 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10175 * exec.c: Include gcore.h.
10176 (exec_set_find_memory_regions): Remove.
10177 (exec_find_memory_regions): Remove.
10178 (exec_do_find_memory_regions): Remove.
10179 (init_exec_ops): Update.
10180 * defs.h (exec_set_find_memory_regions): Remove.
10181
9b144037
TT
101822014-02-19 Tom Tromey <tromey@redhat.com>
10183
10184 * target-delegates.c: Rebuild.
10185 * target.h (struct target_ops) <to_extra_thread_info,
10186 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10187 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10188 not 0, in TARGET_DEFAULT_RETURN.
10189
555bbdeb
TT
101902014-02-19 Tom Tromey <tromey@redhat.com>
10191
10192 * target.c (complete_target_initialization): Remove casts. Use
10193 return_zero_has_execution.
10194 (return_zero): Add "ignore" argument.
10195 (return_zero_has_execution): New function.
10196 (init_dummy_target): Remove casts. Use
10197 return_zero_has_execution.
10198
be4ddd36
TT
101992014-02-19 Tom Tromey <tromey@redhat.com>
10200
10201 * target.c (update_current_target): Update comments. Do not
10202 INHERIT to_stratum.
10203
2117c711
TT
102042014-02-19 Tom Tromey <tromey@redhat.com>
10205
10206 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10207 needed.
10208 * corelow.c (core_read_description): Delegate when needed.
10209 * remote.c (remote_read_description): Delegate when needed.
10210 * target-delegates.c: Rebuild.
10211 * target.c (target_read_description): Rewrite.
10212 * target.h (struct target_ops) <to_read_description>: Update
10213 comment. Use TARGET_DEFAULT_RETURN.
10214
e88ef65c
TT
102152014-02-19 Tom Tromey <tromey@redhat.com>
10216
10217 * target-delegates.c: Rebuild.
10218 * target.c (update_current_target): Don't inherit or default
10219 to_can_run.
10220 (find_default_run_target): Check against delegate_can_run.
10221 * target.h (struct target_ops) <to_can_run>: Use
10222 TARGET_DEFAULT_RETURN.
10223
86a0854a
TT
102242014-02-19 Tom Tromey <tromey@redhat.com>
10225
10226 * target-delegates.c: Rebuild.
10227 * target.c (target_disconnect): Unconditionally delegate.
10228 * target.h (struct target_ops) <to_disconnect>: Use
10229 TARGET_DEFAULT_NORETURN.
10230
ee97f592
TT
102312014-02-19 Tom Tromey <tromey@redhat.com>
10232
10233 * record.c (record_stop): Unconditionally delegate.
10234 * target-delegates.c: Rebuild.
10235 * target.c (target_stop_recording): Unconditionally delegate.
10236 * target.h (struct target_ops) <to_stop_recording>: Use
10237 TARGET_DEFAULT_IGNORE.
10238
6dc7fcf4
TT
102392014-02-19 Tom Tromey <tromey@redhat.com>
10240
10241 * target-delegates.c: Rebuild.
10242 * target.c (target_enable_btrace): Unconditionally delegate.
10243 * target.h (struct target_ops) <to_enable_btrace>: Use
10244 TARGET_DEFAULT_NORETURN.
10245
eb5b20d4
TT
102462014-02-19 Tom Tromey <tromey@redhat.com>
10247
10248 * target-delegates.c: Rebuild.
10249 * target.c (target_read_btrace): Unconditionally delegate.
10250 * target.h (struct target_ops) <to_read_btrace>: Use
10251 TARGET_DEFAULT_NORETURN.
10252
9ace480d
TT
102532014-02-19 Tom Tromey <tromey@redhat.com>
10254
10255 * target-delegates.c: Rebuild.
10256 * target.c (target_teardown_btrace): Unconditionally delegate.
10257 * target.h (struct target_ops) <to_teardown_btrace>: Use
10258 TARGET_DEFAULT_NORETURN.
10259
8dc292d3
TT
102602014-02-19 Tom Tromey <tromey@redhat.com>
10261
10262 * target-delegates.c: Rebuild.
10263 * target.c (target_disable_btrace): Unconditionally delegate.
10264 * target.h (struct target_ops) <to_disable_btrace>: Use
10265 TARGET_DEFAULT_NORETURN.
10266
58a5184e
TT
102672014-02-19 Tom Tromey <tromey@redhat.com>
10268
10269 * target-delegates.c: Rebuild.
10270 * target.c (default_search_memory): New function.
10271 (simple_search_memory): Update comment.
10272 (target_search_memory): Unconditionally delegate.
10273 * target.h (struct target_ops) <to_search_memory>: Use
10274 TARGET_DEFAULT_FUNC.
10275
8de71aab
TT
102762014-02-19 Tom Tromey <tromey@redhat.com>
10277
10278 * auxv.c (default_auxv_parse): No longer static.
10279 (target_auxv_parse): Unconditionally delegate.
10280 * auxv.h (default_auxv_parse): Declare.
10281 * target-delegates.c: Rebuild.
10282 * target.c: Include auxv.h.
10283 * target.h (struct target_ops) <to_auxv_parse>: Use
10284 TARGET_DEFAULT_FUNC.
10285
6b2c5a57
TT
102862014-02-19 Tom Tromey <tromey@redhat.com>
10287
10288 * target-delegates.c: Rebuild.
10289 * target.c (target_memory_map): Unconditionally delegate.
10290 * target.h (struct target_ops) <to_memory_map>: Use
10291 TARGET_DEFAULT_RETURN.
10292
cbffc065
TT
102932014-02-19 Tom Tromey <tromey@redhat.com>
10294
10295 * target-delegates.c: Rebuild.
10296 * target.c (target_thread_alive): Unconditionally delegate.
10297 * target.h (struct target_ops) <to_thread_alive>: Use
10298 TARGET_DEFAULT_RETURN.
10299
f09e2107
TT
103002014-02-19 Tom Tromey <tromey@redhat.com>
10301
10302 * target-delegates.c: Rebuild.
10303 * target.c (target_save_record): Unconditionally delegate.
10304 * target.h (struct target_ops) <to_save_record>: Use
10305 TARGET_DEFAULT_NORETURN.
10306
07366925
TT
103072014-02-19 Tom Tromey <tromey@redhat.com>
10308
10309 * target-delegates.c: Rebuild.
10310 * target.c (target_delete_record): Unconditionally delegate.
10311 * target.h (struct target_ops) <to_delete_record>: Use
10312 TARGET_DEFAULT_NORETURN.
10313
dd2e9d25
TT
103142014-02-19 Tom Tromey <tromey@redhat.com>
10315
10316 * target-delegates.c: Rebuild.
10317 * target.c (target_record_is_replaying): Unconditionally
10318 delegate.
10319 * target.h (struct target_ops) <to_record_is_replaying>: Use
10320 TARGET_DEFAULT_RETURN.
10321
671e76cc
TT
103222014-02-19 Tom Tromey <tromey@redhat.com>
10323
10324 * target-delegates.c: Rebuild.
10325 * target.c (target_goto_record_begin): Unconditionally delegate.
10326 * target.h (struct target_ops) <to_goto_record_begin>: Use
10327 TARGET_DEFAULT_NORETURN.
10328
e9179bb3
TT
103292014-02-19 Tom Tromey <tromey@redhat.com>
10330
10331 * target-delegates.c: Rebuild.
10332 * target.c (target_goto_record_end): Unconditionally delegate.
10333 * target.h (struct target_ops) <to_goto_record_end>: Use
10334 TARGET_DEFAULT_NORETURN.
10335
05969c84
TT
103362014-02-19 Tom Tromey <tromey@redhat.com>
10337
10338 * target-delegates.c: Rebuild.
10339 * target.c (target_goto_record): Unconditionally delegate.
10340 * target.h (struct target_ops) <to_goto_record>: Use
10341 TARGET_DEFAULT_NORETURN.
10342
3679abfa
TT
103432014-02-19 Tom Tromey <tromey@redhat.com>
10344
10345 * target-delegates.c: Rebuild.
10346 * target.c (target_insn_history): Unconditionally delegate.
10347 * target.h (struct target_ops) <to_insn_history>: Use
10348 TARGET_DEFAULT_NORETURN.
10349
8444ab58
TT
103502014-02-19 Tom Tromey <tromey@redhat.com>
10351
10352 * target-delegates.c: Rebuild.
10353 * target.c (target_insn_history_from): Unconditionally delegate.
10354 * target.h (struct target_ops) <to_insn_history_from>: Use
10355 TARGET_DEFAULT_NORETURN.
10356
c29302cc
TT
103572014-02-19 Tom Tromey <tromey@redhat.com>
10358
10359 * target-delegates.c: Rebuild.
10360 * target.c (target_insn_history_range): Unconditionally delegate.
10361 * target.h (struct target_ops) <to_insn_history_range>: Use
10362 TARGET_DEFAULT_NORETURN.
10363
170049d4
TT
103642014-02-19 Tom Tromey <tromey@redhat.com>
10365
10366 * target-delegates.c: Rebuild.
10367 * target.c (target_call_history): Unconditionally delegate.
10368 * target.h (struct target_ops) <to_call_history>: Use
10369 TARGET_DEFAULT_NORETURN.
10370
16fc27d6
TT
103712014-02-19 Tom Tromey <tromey@redhat.com>
10372
10373 * target-delegates.c: Rebuild.
10374 * target.c (target_call_history_from): Unconditionally delegate.
10375 * target.h (struct target_ops) <to_call_history_from>: Use
10376 TARGET_DEFAULT_NORETURN.
10377
115d9817
TT
103782014-02-19 Tom Tromey <tromey@redhat.com>
10379
10380 * target-delegates.c: Rebuild.
10381 * target.c (target_call_history_range): Unconditionally delegate.
10382 * target.h (struct target_ops) <to_call_history_range>: Use
10383 TARGET_DEFAULT_NORETURN.
10384
eb276a6b
TT
103852014-02-19 Tom Tromey <tromey@redhat.com>
10386
10387 * target-delegates.c: Rebuild.
10388 * target.c (target_verify_memory): Unconditionally delegate.
10389 * target.h (struct target_ops) <to_verify_memory>: Use
10390 TARGET_DEFAULT_NORETURN.
10391
9e538d0d
TT
103922014-02-19 Tom Tromey <tromey@redhat.com>
10393
10394 * target-delegates.c: Rebuild.
10395 * target.c (target_core_of_thread): Unconditionally delegate.
10396 * target.h (struct target_ops) <to_core_of_thread>: Use
10397 TARGET_DEFAULT_RETURN.
10398
f6fb2925
TT
103992014-02-19 Tom Tromey <tromey@redhat.com>
10400
10401 * target-delegates.c: Rebuild.
10402 * target.c (target_flash_done): Unconditionally delegate.
10403 * target.h (struct target_ops) <to_flash_done>: Use
10404 TARGET_DEFAULT_NORETURN.
10405
e8a6c6ac
TT
104062014-02-19 Tom Tromey <tromey@redhat.com>
10407
10408 * target-delegates.c: Rebuild.
10409 * target.c (target_flash_erase): Unconditionally delegate.
10410 * target.h (struct target_ops) <to_flash_erase>: Use
10411 TARGET_DEFAULT_NORETURN.
10412
7e35c012
TT
104132014-02-19 Tom Tromey <tromey@redhat.com>
10414
10415 * target-delegates.c: Rebuild.
10416 * target.c (target_get_section_table): Unconditionally delegate.
10417 * target.h (struct target_ops) <to_get_section_table>: Use
10418 TARGET_DEFAULT_RETURN.
10419
770234d3
TT
104202014-02-19 Tom Tromey <tromey@redhat.com>
10421
10422 * target-delegates.c: Rebuild.
10423 * target.c (target_pid_to_str): Unconditionally delegate.
10424 (init_dummy_target): Don't initialize to_pid_to_str.
10425 (default_pid_to_str): Rename from dummy_pid_to_str.
10426 * target.h (struct target_ops) <to_pid_to_str>: Use
10427 TARGET_DEFAULT_FUNC.
10428
09b0dc2b
TT
104292014-02-19 Tom Tromey <tromey@redhat.com>
10430
10431 * target-delegates.c: Rebuild.
10432 * target.c (target_find_new_threads): Unconditionally delegate.
10433 * target.h (struct target_ops) <to_find_new_threads>: Use
10434 TARGET_DEFAULT_RETURN.
10435
7d4f8efa
TT
104362014-02-19 Tom Tromey <tromey@redhat.com>
10437
10438 * target-delegates.c: Rebuild.
10439 * target.c (target_program_signals): Unconditionally delegate.
10440 * target.h (struct target_ops) <to_program_signals>: Use
10441 TARGET_DEFAULT_IGNORE.
10442
035cad7f
TT
104432014-02-19 Tom Tromey <tromey@redhat.com>
10444
10445 * target-delegates.c: Rebuild.
10446 * target.c (target_pass_signals): Unconditionally delegate.
10447 * target.h (struct target_ops) <to_pass_signals>: Use
10448 TARGET_DEFAULT_IGNORE.
10449
8d657035
TT
104502014-02-19 Tom Tromey <tromey@redhat.com>
10451
10452 * target-delegates.c: Rebuild.
10453 * target.c (default_mourn_inferior): New function.
10454 (target_mourn_inferior): Unconditionally delegate.
10455 * target.h (struct target_ops) <to_mourn_inferior>: Use
10456 TARGET_DEFAULT_FUNC.
10457
098dba18
TT
104582014-02-19 Tom Tromey <tromey@redhat.com>
10459
10460 * target-delegates.c: Rebuild.
10461 * target.c (default_follow_fork): New function.
10462 (target_follow_fork): Unconditionally delegate.
10463 * target.h (struct target_ops) <to_follow_fork>: Use
10464 TARGET_DEFAULT_FUNC.
10465
423a4807
TT
104662014-02-19 Tom Tromey <tromey@redhat.com>
10467
10468 * target-delegates.c: Rebuild.
10469 * target.c (target_kill): Unconditionally delegate.
10470 * target.h (struct target_ops) <to_kill>: Use
10471 TARGET_DEFAULT_NORETURN.
10472
6c7e5e5c
TT
104732014-02-19 Tom Tromey <tromey@redhat.com>
10474
10475 * target-delegates.c: Rebuild.
10476 * target.c (target_masked_watch_num_registers): Unconditionally
10477 delegate.
10478 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10479 Use TARGET_DEFAULT_RETURN.
10480
8b1c364c
TT
104812014-02-19 Tom Tromey <tromey@redhat.com>
10482
10483 * target-delegates.c: Rebuild.
10484 * target.c (target_remove_mask_watchpoint): Unconditionally
10485 delegate.
10486 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10487 TARGET_DEFAULT_RETURN.
10488
cd4ae029
TT
104892014-02-19 Tom Tromey <tromey@redhat.com>
10490
10491 * target-delegates.c: Rebuild.
10492 * target.c (target_insert_mask_watchpoint): Unconditionally
10493 delegate.
10494 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10495 TARGET_DEFAULT_RETURN.
10496
a134316b
TT
104972014-02-19 Tom Tromey <tromey@redhat.com>
10498
10499 * target-delegates.c: Rebuild.
10500 * target.c (target_ranged_break_num_registers): Unconditionally
10501 delegate.
10502 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10503 Use TARGET_DEFAULT_RETURN.
10504
ad5989bd
TT
105052014-02-19 Tom Tromey <tromey@redhat.com>
10506
10507 * target-delegates.c: Rebuild.
10508 * target.c (target_fetch_registers): Unconditionally delegate.
10509 * target.h (struct target_ops) <to_fetch_registers>: Use
10510 TARGET_DEFAULT_NORETURN.
10511
46ee7e8d
TT
105122014-02-19 Tom Tromey <tromey@redhat.com>
10513
10514 * target-delegates.c: Rebuild.
10515 * target.c (update_current_target): Don't inherit or default
10516 to_stop.
10517 * target.h (struct target_ops) <to_stop>: Use
10518 TARGET_DEFAULT_IGNORE.
10519
843f59ed
TT
105202014-02-19 Tom Tromey <tromey@redhat.com>
10521
10522 * target-delegates.c: Rebuild.
10523 * target.c (update_current_target): Don't inherit or default
10524 to_can_run_breakpoint_commands.
10525 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10526 Use TARGET_DEFAULT_RETURN.
10527
ccfde2a0
TT
105282014-02-19 Tom Tromey <tromey@redhat.com>
10529
10530 * target-delegates.c: Rebuild.
10531 * target.c (update_current_target): Don't inherit or default
10532 to_supports_evaluation_of_breakpoint_conditions.
10533 * target.h (struct target_ops)
10534 <to_supports_evaluation_of_breakpoint_conditions>: Use
10535 TARGET_DEFAULT_RETURN.
10536
0de91722
TT
105372014-02-19 Tom Tromey <tromey@redhat.com>
10538
10539 * target-delegates.c: Rebuild.
10540 * target.c (update_current_target): Don't inherit or default
10541 to_augmented_libraries_svr4_read.
10542 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10543 Use TARGET_DEFAULT_RETURN.
10544
9a7d8b48
TT
105452014-02-19 Tom Tromey <tromey@redhat.com>
10546
10547 * target-delegates.c: Rebuild.
10548 * target.c (update_current_target): Don't inherit or default
10549 to_can_use_agent.
10550 * target.h (struct target_ops) <to_can_use_agent>: Use
10551 TARGET_DEFAULT_RETURN.
10552
d9db5b21
TT
105532014-02-19 Tom Tromey <tromey@redhat.com>
10554
10555 * target-delegates.c: Rebuild.
10556 * target.c (update_current_target): Don't inherit or default
10557 to_use_agent.
10558 * target.h (struct target_ops) <to_use_agent>: Use
10559 TARGET_DEFAULT_NORETURN.
10560
92155eeb
TT
105612014-02-19 Tom Tromey <tromey@redhat.com>
10562
10563 * target-delegates.c: Rebuild.
10564 * target.c (update_current_target): Don't inherit or default
10565 to_traceframe_info.
10566 (return_null): Remove.
10567 * target.h (struct target_ops) <to_traceframe_info>: Use
10568 TARGET_DEFAULT_RETURN.
10569
d6522a22
TT
105702014-02-19 Tom Tromey <tromey@redhat.com>
10571
10572 * target-delegates.c: Rebuild.
10573 * target.c (update_current_target): Don't inherit or default
10574 to_static_tracepoint_markers_by_strid.
10575 * target.h (struct target_ops)
10576 <to_static_tracepoint_markers_by_strid>: Use
10577 TARGET_DEFAULT_NORETURN.
10578
4c3e4425
TT
105792014-02-19 Tom Tromey <tromey@redhat.com>
10580
10581 * target-delegates.c: Rebuild.
10582 * target.c (update_current_target): Don't inherit or default
10583 to_static_tracepoint_marker_at.
10584 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10585 Use TARGET_DEFAULT_RETURN.
10586
dcd6917f
TT
105872014-02-19 Tom Tromey <tromey@redhat.com>
10588
10589 * target-delegates.c: Rebuild.
10590 * target.c (update_current_target): Don't inherit or default
10591 to_set_permissions.
10592 * target.h (struct target_ops) <to_set_permissions>: Use
10593 TARGET_DEFAULT_IGNORE.
10594
22bcceee
TT
105952014-02-19 Tom Tromey <tromey@redhat.com>
10596
10597 * target-delegates.c: Rebuild.
10598 * target.c (update_current_target): Don't inherit or default
10599 to_get_tib_address.
10600 * target.h (struct target_ops) <to_get_tib_address>: Use
10601 TARGET_DEFAULT_NORETURN.
10602
8586ccaa
TT
106032014-02-19 Tom Tromey <tromey@redhat.com>
10604
10605 * target-delegates.c: Rebuild.
10606 * target.c (update_current_target): Don't inherit or default
10607 to_set_trace_notes.
10608 * target.h (struct target_ops) <to_set_trace_notes>: Use
10609 TARGET_DEFAULT_RETURN.
10610
91df8d1d
TT
106112014-02-19 Tom Tromey <tromey@redhat.com>
10612
10613 * target-delegates.c: Rebuild.
10614 * target.c (update_current_target): Don't initialize
10615 to_set_trace_buffer_size.
10616 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10617 TARGET_DEFAULT_IGNORE.
10618
8d526939
TT
106192014-02-19 Tom Tromey <tromey@redhat.com>
10620
10621 * target-delegates.c: Rebuild.
10622 * target.c (update_current_target): Don't inherit or default
10623 to_set_circular_trace_buffer.
10624 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10625 TARGET_DEFAULT_IGNORE.
10626
0bcfeddf
TT
106272014-02-19 Tom Tromey <tromey@redhat.com>
10628
10629 * target-delegates.c: Rebuild.
10630 * target.c (update_current_target): Don't inherit or default
10631 to_set_disconnected_tracing.
10632 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10633 TARGET_DEFAULT_IGNORE.
10634
9249843f
TT
106352014-02-19 Tom Tromey <tromey@redhat.com>
10636
10637 * target-delegates.c: Rebuild.
10638 * target.c (update_current_target): Don't inherit or default
10639 to_get_min_fast_tracepoint_insn_len.
10640 (return_minus_one): Remove.
10641 * target.h (struct target_ops)
10642 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10643
ace92e7d
TT
106442014-02-19 Tom Tromey <tromey@redhat.com>
10645
10646 * target-delegates.c: Rebuild.
10647 * target.c (update_current_target): Don't inherit or default
10648 to_get_raw_trace_data.
10649 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10650 TARGET_DEFAULT_NORETURN.
10651
08120467
TT
106522014-02-19 Tom Tromey <tromey@redhat.com>
10653
10654 * target-delegates.c: Rebuild.
10655 * target.c (update_current_target): Don't inherit or default
10656 to_upload_trace_state_variables.
10657 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10658 Use TARGET_DEFAULT_RETURN.
10659
1e949b00
TT
106602014-02-19 Tom Tromey <tromey@redhat.com>
10661
10662 * target-delegates.c: Rebuild.
10663 * target.c (update_current_target): Don't inherit or default
10664 to_upload_tracepoints.
10665 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10666 TARGET_DEFAULT_RETURN.
10667
a2e6c147
TT
106682014-02-19 Tom Tromey <tromey@redhat.com>
10669
10670 * target-delegates.c: Rebuild.
10671 * target.c (update_current_target): Don't inherit or default
10672 to_save_trace_data.
10673 * target.h (struct target_ops) <to_save_trace_data>: Use
10674 TARGET_DEFAULT_NORETURN.
10675
959bcd0b
TT
106762014-02-19 Tom Tromey <tromey@redhat.com>
10677
10678 * target-delegates.c: Rebuild.
10679 * target.c (update_current_target): Don't inherit or default
10680 to_get_trace_state_variable_value.
10681 * target.h (struct target_ops)
10682 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10683
afc94e66
TT
106842014-02-19 Tom Tromey <tromey@redhat.com>
10685
10686 * target-delegates.c: Rebuild.
10687 * target.c (update_current_target): Don't inherit or default
10688 to_trace_find.
10689 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10690
e51c07ea
TT
106912014-02-19 Tom Tromey <tromey@redhat.com>
10692
10693 * target-delegates.c: Rebuild.
10694 * target.c (update_current_target): Don't inherit or default
10695 to_trace_stop.
10696 * target.h (struct target_ops) <to_trace_stop>: Use
10697 TARGET_DEFAULT_NORETURN.
10698
6fea14cd
TT
106992014-02-19 Tom Tromey <tromey@redhat.com>
10700
10701 * target-delegates.c: Rebuild.
10702 * target.c (update_current_target): Don't inherit or default
10703 to_get_tracepoint_status.
10704 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10705 TARGET_DEFAULT_NORETURN.
10706
4072d4ff
TT
107072014-02-19 Tom Tromey <tromey@redhat.com>
10708
10709 * target-delegates.c: Rebuild.
10710 * target.c (update_current_target): Don't inherit or default
10711 to_get_trace_status.
10712 * target.h (struct target_ops) <to_get_trace_status>: Use
10713 TARGET_DEFAULT_RETURN.
10714
25da2e80
TT
107152014-02-19 Tom Tromey <tromey@redhat.com>
10716
10717 * target-delegates.c: Rebuild.
10718 * target.c (update_current_target): Don't inherit or default
10719 to_trace_start.
10720 * target.h (struct target_ops) <to_trace_start>: Use
10721 TARGET_DEFAULT_NORETURN.
10722
86dd181d
TT
107232014-02-19 Tom Tromey <tromey@redhat.com>
10724
10725 * target-delegates.c: Rebuild.
10726 * target.c (update_current_target): Don't inherit or default
10727 to_trace_set_readonly_regions.
10728 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10729 Use TARGET_DEFAULT_NORETURN.
10730
05c41993
TT
107312014-02-19 Tom Tromey <tromey@redhat.com>
10732
10733 * target-delegates.c: Rebuild.
10734 * target.c (update_current_target): Don't inherit or default
10735 to_disable_tracepoint.
10736 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10737 TARGET_DEFAULT_NORETURN.
10738
151f70f1
TT
107392014-02-19 Tom Tromey <tromey@redhat.com>
10740
10741 * target-delegates.c: Rebuild.
10742 * target.c (update_current_target): Don't inherit or default
10743 to_enable_tracepoint.
10744 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10745 TARGET_DEFAULT_NORETURN.
10746
94eb98b9
TT
107472014-02-19 Tom Tromey <tromey@redhat.com>
10748
10749 * target-delegates.c: Rebuild.
10750 * target.c (update_current_target): Don't inherit or default
10751 to_download_trace_state_variable.
10752 * target.h (struct target_ops) <to_download_trace_state_variable>:
10753 Use TARGET_DEFAULT_NORETURN.
10754
719acc4a
TT
107552014-02-19 Tom Tromey <tromey@redhat.com>
10756
10757 * target-delegates.c: Rebuild.
10758 * target.c (update_current_target): Don't inherit or default
10759 to_can_download_tracepoint.
10760 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10761 TARGET_DEFAULT_RETURN.
10762
9a980a22
TT
107632014-02-19 Tom Tromey <tromey@redhat.com>
10764
10765 * target-delegates.c: Rebuild.
10766 * target.c (update_current_target): Don't inherit or default
10767 to_download_tracepoint.
10768 * target.h (struct target_ops) <to_download_tracepoint>: Use
10769 TARGET_DEFAULT_NORETURN.
10770
5536135b
TT
107712014-02-19 Tom Tromey <tromey@redhat.com>
10772
10773 * target-delegates.c: Rebuild.
10774 * target.c (update_current_target): Don't inherit or default
10775 to_trace_init.
10776 * target.h (struct target_ops) <to_trace_init>: Use
10777 TARGET_DEFAULT_RETURN.
10778
9409d39e
TT
107792014-02-19 Tom Tromey <tromey@redhat.com>
10780
10781 * target-delegates.c: Rebuild.
10782 * target.c (update_current_target): Don't inherit or default
10783 to_supports_string_tracing.
10784 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10785 TARGET_DEFAULT_RETURN.
10786
aab1b22d
TT
107872014-02-19 Tom Tromey <tromey@redhat.com>
10788
10789 * target-delegates.c: Rebuild.
10790 * target.c (update_current_target): Don't inherit or default
10791 to_supports_enable_disable_tracepoint.
10792 * target.h (struct target_ops)
10793 <to_supports_enable_disable_tracepoint>: Use
10794 TARGET_DEFAULT_RETURN.
10795
a7304748
TT
107962014-02-19 Tom Tromey <tromey@redhat.com>
10797
10798 * target-delegates.c: Rebuild.
10799 * target.c (update_current_target): Don't inherit or default
10800 to_supports_multi_process.
10801 * target.h (struct target_ops) <to_supports_multi_process>: Use
10802 TARGET_DEFAULT_RETURN.
10803
4229b31d
TT
108042014-02-19 Tom Tromey <tromey@redhat.com>
10805
10806 * target-delegates.c: Rebuild.
10807 * target.c (update_current_target): Don't inherit or default
10808 to_get_ada_task_ptid.
10809 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10810 TARGET_DEFAULT_FUNC.
10811
43eba180
TT
108122014-02-19 Tom Tromey <tromey@redhat.com>
10813
10814 * target-delegates.c: Rebuild.
10815 * target.c (update_current_target): Don't inherit or default
10816 to_thread_architecture.
10817 * target.h (struct target_ops) <to_thread_architecture>: Use
10818 TARGET_DEFAULT_FUNC.
10819
fe31bf5b
TT
108202014-02-19 Tom Tromey <tromey@redhat.com>
10821
10822 * target-delegates.c: Rebuild.
10823 * target.c (update_current_target): Don't inherit or default
10824 to_execution_direction.
10825 * target.h (struct target_ops) <to_execution_direction>: Use
10826 TARGET_DEFAULT_FUNC.
10827
53e1cfc7
TT
108282014-02-19 Tom Tromey <tromey@redhat.com>
10829
10830 * target-delegates.c: Rebuild.
10831 * target.c (update_current_target): Don't inherit or default
10832 to_can_execute_reverse.
10833 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10834 TARGET_DEFAULT_RETURN.
10835 (target_can_execute_reverse): Unconditionally delegate.
10836
9bb9d61d
TT
108372014-02-19 Tom Tromey <tromey@redhat.com>
10838
10839 * target-delegates.c: Rebuild.
10840 * target.c (update_current_target): Don't inherit or default
10841 to_goto_bookmark.
10842 (dummy_goto_bookmark): Remove.
10843 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10844 * target.h (struct target_ops) <to_goto_bookmark>: Use
10845 TARGET_DEFAULT_NORETURN.
10846
3dbafbbb
TT
108472014-02-19 Tom Tromey <tromey@redhat.com>
10848
10849 * target-delegates.c: Rebuild.
10850 * target.c (update_current_target): Don't inherit or default
10851 to_get_bookmark.
10852 (dummy_get_bookmark): Remove.
10853 (init_dummy_target): Don't inherit or default to_get_bookmark.
10854 * target.h (struct target_ops) <to_get_bookmark>: Use
10855 TARGET_DEFAULT_NORETURN
10856
16f796b1
TT
108572014-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_make_corefile_notes.
10862 (init_dummy_target): Don't initialize to_make_corefile_notes.
10863 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10864 TARGET_DEFAULT_FUNC.
10865
0b5a2719
TT
108662014-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_find_memory_regions.
10871 (init_dummy_target): Don't initialize to_find_memory_regions.
10872 * target.h (struct target_ops) <to_find_memory_regions>: Use
10873 TARGET_DEFAULT_FUNC.
10874
d9cb0195
TT
108752014-02-19 Tom Tromey <tromey@redhat.com>
10876
10877 * target-delegates.c: Rebuild.
10878 * target.c (update_current_target): Don't inherit or default
10879 to_log_command.
10880 * target.h (struct target_ops) <to_log_command>: Use
10881 TARGET_DEFAULT_IGNORE.
10882 (target_log_command): Unconditionally delegate.
10883
830ca330
TT
108842014-02-19 Tom Tromey <tromey@redhat.com>
10885
10886 * target-delegates.c: Rebuild.
10887 * target.c (update_current_target): Don't inherit or default
10888 to_pid_to_exec_file.
10889 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10890 TARGET_DEFAULT_RETURN.
10891
825828fc
TT
108922014-02-19 Tom Tromey <tromey@redhat.com>
10893
10894 * target-delegates.c: Rebuild.
10895 * target.c (update_current_target): Don't inherit or default
10896 to_thread_name.
10897 (target_thread_name): Unconditionally delegate.
10898 * target.h (struct target_ops) <to_thread_name>: Use
10899 TARGET_DEFAULT_RETURN.
10900
4a7e6dda
TT
109012014-02-19 Tom Tromey <tromey@redhat.com>
10902
10903 * target-delegates.c: Rebuild.
10904 * target.c (update_current_target): Don't inherit or default
10905 to_extra_thread_info.
10906 * target.h (struct target_ops) <to_extra_thread_info>: Use
10907 TARGET_DEFAULT_RETURN.
10908
0db88c1d
TT
109092014-02-19 Tom Tromey <tromey@redhat.com>
10910
10911 * target-delegates.c: Rebuild.
10912 * target.c (update_current_target): Don't inherit or default
10913 to_has_exited.
10914 * target.h (struct target_ops) <to_has_exited>: Use
10915 TARGET_DEFAULT_RETURN..
10916
6a9fa051
TT
109172014-02-19 Tom Tromey <tromey@redhat.com>
10918
10919 * target-delegates.c: Rebuild.
10920 * target.c (update_current_target): Don't inherit or default
10921 to_set_syscall_catchpoint.
10922 (return_one): Remove.
10923 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10924 TARGET_DEFAULT_RETURN.
10925
62f64d7a
TT
109262014-02-19 Tom Tromey <tromey@redhat.com>
10927
10928 * target-delegates.c: Rebuild.
10929 * target.c (update_current_target): Don't inherit or default
10930 to_insert_exec_catchpoint.
10931 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10932 TARGET_DEFAULT_RETURN.
10933
cda0f38c
TT
109342014-01-08 Tom Tromey <tromey@redhat.com>
10935
10936 * target-delegates.c: Rebuild.
10937 * target.c (update_current_target): Don't inherit or default
10938 to_insert_exec_catchpoint.
10939 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10940 TARGET_DEFAULT_RETURN.
10941
95c3375e
TT
109422014-02-19 Tom Tromey <tromey@redhat.com>
10943
10944 * target-delegates.c: Rebuild.
10945 * target.c (update_current_target): Don't inherit or default
10946 to_remove_vfork_catchpoint.
10947 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10948 TARGET_DEFAULT_RETURN.
10949
7e18a8dc
TT
109502014-02-19 Tom Tromey <tromey@redhat.com>
10951
10952 * target-delegates.c: Rebuild.
10953 * target.c (update_current_target): Don't inherit or default
10954 to_insert_vfork_catchpoint.
10955 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10956 TARGET_DEFAULT_RETURN.
10957
e1a21fb7
TT
109582014-02-19 Tom Tromey <tromey@redhat.com>
10959
10960 * target-delegates.c: Rebuild.
10961 * target.c (update_current_target): Don't inherit or default
10962 to_remove_fork_catchpoint.
10963 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10964 TARGET_DEFAULT_RETURN.
10965
5958ebeb
TT
109662014-02-19 Tom Tromey <tromey@redhat.com>
10967
10968 * target-delegates.c: Rebuild.
10969 * target.c (update_current_target): Don't inherit or default
10970 to_insert_fork_catchpoint.
10971 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10972 TARGET_DEFAULT_RETURN.
10973
340ba4bf
TT
109742014-02-19 Tom Tromey <tromey@redhat.com>
10975
10976 * target-delegates.c: Rebuild.
10977 * target.c (update_current_target): Don't inherit or default
10978 to_post_startup_inferior.
10979 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10980 TARGET_DEFAULT_IGNORE.
10981
7634da87
TT
109822014-02-19 Tom Tromey <tromey@redhat.com>
10983
10984 * target-delegates.c: Rebuild.
10985 * target.c (update_current_target): Don't inherit or default
10986 to_load.
10987 * target.h (struct target_ops) <to_load>: Use
10988 TARGET_DEFAULT_NORETURN.
10989
e19e919f
TT
109902014-02-19 Tom Tromey <tromey@redhat.com>
10991
10992 * target-delegates.c: Rebuild.
10993 * target.c (update_current_target): Don't inherit or default
10994 to_terminal_info.
10995 * target.h (struct target_ops) <to_terminal_info>: Use
10996 TARGET_DEFAULT_FUNC.
10997
c6ea8f79
TT
109982014-02-19 Tom Tromey <tromey@redhat.com>
10999
11000 * target-delegates.c: Rebuild.
11001 * target.c (update_current_target): Don't inherit or default
11002 to_terminal_save_ours.
11003 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11004 TARGET_DEFAULT_IGNORE.
11005
e4a733f1
TT
110062014-02-19 Tom Tromey <tromey@redhat.com>
11007
11008 * target-delegates.c: Rebuild.
11009 * target.c (update_current_target): Don't inherit or default
11010 to_terminal_ours.
11011 * target.h (struct target_ops) <to_terminal_ours>: Use
11012 TARGET_DEFAULT_IGNORE.
11013
74fcbef9
TT
110142014-02-19 Tom Tromey <tromey@redhat.com>
11015
11016 * target-delegates.c: Rebuild.
11017 * target.c (update_current_target): Don't inherit or default
11018 to_terminal_ours_for_output.
11019 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11020 TARGET_DEFAULT_IGNORE.
11021
ddeaacc9
TT
110222014-02-19 Tom Tromey <tromey@redhat.com>
11023
11024 * target-delegates.c: Rebuild.
11025 * target.c (update_current_target): Don't inherit or default
11026 to_terminal_inferior.
11027 * target.h (struct target_ops) <to_terminal_inferior>: Use
11028 TARGET_DEFAULT_IGNORE.
11029
0343661d
TT
110302014-02-19 Tom Tromey <tromey@redhat.com>
11031
11032 * target-delegates.c: Rebuild.
11033 * target.c (update_current_target): Don't inherit or default
11034 to_terminal_init.
11035 * target.h (struct target_ops) <to_terminal_init>: Use
11036 TARGET_DEFAULT_IGNORE.
11037
77cdffe9
TT
110382014-02-19 Tom Tromey <tromey@redhat.com>
11039
11040 * target-delegates.c: Rebuild.
11041 * target.c (update_current_target): Don't inherit or default
11042 to_can_accel_watchpoint_condition.
11043 * target.h (struct target_ops)
11044 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11045
d03655e4
TT
110462014-02-19 Tom Tromey <tromey@redhat.com>
11047
11048 * target-delegates.c: Rebuild.
11049 * target.c (update_current_target): Don't inherit or default
11050 to_region_ok_for_hw_watchpoint.
11051 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11052 Use TARGET_DEFAULT_FUNC.
11053
65f160a9
TT
110542014-02-19 Tom Tromey <tromey@redhat.com>
11055
11056 * target-delegates.c: Rebuild.
11057 * target.c (update_current_target): Don't inherit or default
11058 to_watchpoint_addr_within_range.
11059 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11060 Use TARGET_DEFAULT_FUNC.
11061
61dd109f
TT
110622014-02-19 Tom Tromey <tromey@redhat.com>
11063
11064 * target-delegates.c: Rebuild.
11065 * target.c (update_current_target): Don't inherit or default
11066 to_remove_watchpoint.
11067 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11068 TARGET_DEFAULT_NORETURN.
11069
016facd4
TT
110702014-02-19 Tom Tromey <tromey@redhat.com>
11071
11072 * target-delegates.c: Rebuild.
11073 * target.c (update_current_target): Don't inherit or default
11074 to_insert_watchpoint.
11075 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11076 TARGET_DEFAULT_RETURN.
11077
418dabac
TT
110782014-02-19 Tom Tromey <tromey@redhat.com>
11079
11080 * target-delegates.c: Rebuild.
11081 * target.c (update_current_target): Don't inherit or default
11082 to_remove_hw_breakpoint.
11083 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11084 TARGET_DEFAULT_RETURN.
11085
61b371f9
TT
110862014-02-19 Tom Tromey <tromey@redhat.com>
11087
11088 * target-delegates.c: Rebuild.
11089 * target.c (update_current_target): Don't inherit or default
11090 to_insert_hw_breakpoint.
11091 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11092 TARGET_DEFAULT_RETURN.
11093
52b51d06
TT
110942014-02-19 Tom Tromey <tromey@redhat.com>
11095
11096 * target-delegates.c: Rebuild.
11097 * target.c (update_current_target): Don't inherit or default
11098 to_can_use_hw_breakpoint.
11099 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11100 TARGET_DEFAULT_RETURN.
11101
f86e59b2
TT
111022014-02-19 Tom Tromey <tromey@redhat.com>
11103
11104 * target-delegates.c: Rebuild.
11105 * target.c (update_current_target): Don't inherit or default
11106 to_files_info.
11107 * target.h (struct target_ops) <to_files_info>: Use
11108 TARGET_DEFAULT_IGNORE.
11109
6c628163
TT
111102014-02-19 Tom Tromey <tromey@redhat.com>
11111
11112 * target-delegates.c: Rebuild.
11113 * target.c (update_current_target): Don't inherit or default
11114 to_store.
11115 * target.h (struct target_ops) <to_store>: Use
11116 TARGET_DEFAULT_NORETURN.
11117
bebd3233
TT
111182014-02-19 Tom Tromey <tromey@redhat.com>
11119
11120 * target-delegates.c: Rebuild.
11121 * target.c (update_current_target): Don't inherit or default
11122 to_post_attach.
11123 * target.h (struct target_ops) <to_post_attach>: Use
11124 TARGET_DEFAULT_IGNORE.
11125
a53f3625
TT
111262014-02-19 Tom Tromey <tromey@redhat.com>
11127
11128 * target-delegates.c: Rebuild.
11129 * target.c (update_current_target): Don't inherit or default
11130 to_rcmd.
11131 (default_rcmd): New function.
11132 (do_monitor_command): Unconditionally delegate.
11133 * target.h (struct target_ops) <to_rmcd>: Use
11134 TARGET_DEFAULT_FUNC.
11135
e9a29200
TT
111362014-02-19 Tom Tromey <tromey@redhat.com>
11137
11138 * target-delegates.c: Rebuild.
11139 * target.c (init_dummy_target): Don't initialize to_attach.
11140 (target_attach): Unconditionally delegate.
11141 * target.h (struct target_ops) <to_attach>: Use
11142 TARGET_DEFAULT_FUNC.
11143
09da0d0a
TT
111442014-02-19 Tom Tromey <tromey@redhat.com>
11145
11146 * target-delegates.c: Rebuild.
11147 * target.c (target_detach): Unconditionally delegate.
11148 (init_dummy_target): Don't initialize to_detach.
11149 * target.h (struct target_ops) <to_detach>: Use
11150 TARGET_DEFAULT_IGNORE.
11151
5436ff03
TT
111522014-02-19 Tom Tromey <tromey@redhat.com>
11153
11154 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11155 Add argument.
11156 (target_augmented_libraries_svr4_read): Add argument.
11157 * target.c (update_current_target): Update.
11158 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11159 argument.
11160
f0d960ea
TT
111612014-02-19 Tom Tromey <tromey@redhat.com>
11162
11163 * target.h (struct target_ops) <to_call_history_range>: Add
11164 argument.
11165 * target.c (target_call_history_range): Add argument.
11166 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11167 argument.
11168 (record_btrace_call_history_from): Update.
11169
ec0aea04
TT
111702014-02-19 Tom Tromey <tromey@redhat.com>
11171
11172 * target.h (struct target_ops) <to_call_history_from>: Add
11173 argument.
11174 * target.c (target_call_history_from): Add argument.
11175 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11176 argument.
11177
5df2fcba
TT
111782014-02-19 Tom Tromey <tromey@redhat.com>
11179
11180 * target.h (struct target_ops) <to_call_history>: Add argument.
11181 * target.c (target_call_history): Add argument.
11182 * record-btrace.c (record_btrace_call_history): Add 'self'
11183 argument.
11184
4e99c6b7
TT
111852014-02-19 Tom Tromey <tromey@redhat.com>
11186
11187 * target.h (struct target_ops) <to_insn_history_range>: Add
11188 argument.
11189 * target.c (target_insn_history_range): Add argument.
11190 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11191 argument.
11192 (record_btrace_insn_history_from): Update.
11193
9abc3ff3
TT
111942014-02-19 Tom Tromey <tromey@redhat.com>
11195
11196 * target.h (struct target_ops) <to_insn_history_from>: Add
11197 argument.
11198 * target.c (target_insn_history_from): Add argument.
11199 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11200 argument.
11201
7a6c5609
TT
112022014-02-19 Tom Tromey <tromey@redhat.com>
11203
11204 * target.h (struct target_ops) <to_insn_history>: Add argument.
11205 * target.c (target_insn_history): Add argument.
11206 * record-btrace.c (record_btrace_insn_history): Add 'self'
11207 argument.
11208
606183ac
TT
112092014-02-19 Tom Tromey <tromey@redhat.com>
11210
11211 * target.h (struct target_ops) <to_goto_record>: Add argument.
11212 * target.c (target_goto_record): Add argument.
11213 * record-full.c (record_full_goto): Add 'self' argument.
11214 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11215
307a1b91
TT
112162014-02-19 Tom Tromey <tromey@redhat.com>
11217
11218 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11219 * target.c (target_goto_record_end): Add argument.
11220 * record-full.c (record_full_goto_end): Add 'self' argument.
11221 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11222
08475817
TT
112232014-02-19 Tom Tromey <tromey@redhat.com>
11224
11225 * target.h (struct target_ops) <to_goto_record_begin>: Add
11226 argument.
11227 * target.c (target_goto_record_begin): Add argument.
11228 * record-full.c (record_full_goto_begin): Add 'self' argument.
11229 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11230 argument.
11231
1c63c994
TT
112322014-02-19 Tom Tromey <tromey@redhat.com>
11233
11234 * target.h (struct target_ops) <to_record_is_replaying>: Add
11235 argument.
11236 * target.c (target_record_is_replaying): Add argument.
11237 * record-full.c (record_full_is_replaying): Add 'self' argument.
11238 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11239 argument.
11240 (record_btrace_xfer_partial, record_btrace_store_registers)
11241 (record_btrace_prepare_to_store, record_btrace_resume)
11242 (record_btrace_wait, record_btrace_decr_pc_after_break)
11243 (record_btrace_find_new_threads, record_btrace_thread_alive):
11244 Update.
11245
d1b55219
TT
112462014-02-19 Tom Tromey <tromey@redhat.com>
11247
11248 * target.h (struct target_ops) <to_delete_record>: Add argument.
11249 * target.c (target_delete_record): Add argument.
11250 * record-full.c (record_full_delete): Add 'self' argument.
11251
1390f529
TT
112522014-02-19 Tom Tromey <tromey@redhat.com>
11253
11254 * target.h (struct target_ops) <to_save_record>: Add argument.
11255 * target.c (target_save_record): Add argument.
11256 * record-full.c (record_full_save): Add 'self' argument.
11257 (record_full_save): Add 'self' argument.
11258
630d6a4a
TT
112592014-02-19 Tom Tromey <tromey@redhat.com>
11260
11261 * target.h (struct target_ops) <to_info_record>: Add argument.
11262 * target.c (target_info_record): Add argument.
11263 * record.c (info_record_command): Add argument.
11264 * record-full.c (record_full_info): Add 'self' argument.
11265 * record-btrace.c (record_btrace_info): Add 'self' argument.
11266
c6cd7c02
TT
112672014-02-19 Tom Tromey <tromey@redhat.com>
11268
11269 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11270 * target.c (target_stop_recording): Add argument.
11271 * record.c (record_stop): Add argument.
11272 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11273 argument.
11274
39c49f83
TT
112752014-02-19 Tom Tromey <tromey@redhat.com>
11276
11277 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11278 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11279 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11280 argument.
11281 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11282 (_initialize_amd64_linux_nat): Use it.
11283 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11284 (_initialize_i386_linux_nat): Use it.
11285
1777056d
TT
112862014-02-19 Tom Tromey <tromey@redhat.com>
11287
11288 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11289 * target.c (target_teardown_btrace): Add argument.
11290 * remote.c (remote_teardown_btrace): Add 'self' argument.
11291 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11292 argument.
11293 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11294 argument.
11295
25e95349
TT
112962014-02-19 Tom Tromey <tromey@redhat.com>
11297
11298 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11299 * target.c (target_disable_btrace): Add argument.
11300 * remote.c (remote_disable_btrace): Add 'self' argument.
11301 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11302 argument.
11303 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11304 argument.
11305
e3c49f88
TT
113062014-02-19 Tom Tromey <tromey@redhat.com>
11307
11308 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11309 * target.c (target_enable_btrace): Add argument.
11310 * remote.c (remote_enable_btrace): Add 'self' argument.
11311 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11312 argument.
11313 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11314 argument.
11315
fe38f897
TT
113162014-02-19 Tom Tromey <tromey@redhat.com>
11317
11318 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11319 (target_can_use_agent): Add argument.
11320 * target.c (update_current_target): Update.
11321 * remote.c (remote_can_use_agent): Add 'self' argument.
11322 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11323
2c152180
TT
113242014-02-19 Tom Tromey <tromey@redhat.com>
11325
11326 * target.h (struct target_ops) <to_use_agent>: Add argument.
11327 (target_use_agent): Add argument.
11328 * target.c (update_current_target): Update.
11329 * remote.c (remote_use_agent): Add 'self' argument.
11330 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11331
a893e81f
TT
113322014-02-19 Tom Tromey <tromey@redhat.com>
11333
11334 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11335 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11336 (target_traceframe_info): Add argument.
11337 * target.c (update_current_target): Update.
11338 * remote.c (remote_traceframe_info): Add 'self' argument.
11339 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11340
c686c57f
TT
113412014-02-19 Tom Tromey <tromey@redhat.com>
11342
11343 * target.h (target_static_tracepoint_markers_by_strid): Add
11344 argument.
11345 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11346 'self' argument.
11347 * target.c (update_current_target): Update.
11348 * remote.c (struct target_ops)
11349 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11350 * linux-nat.c (struct target_ops)
11351 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11352
61fc905d
TT
113532014-02-19 Tom Tromey <tromey@redhat.com>
11354
11355 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11356 Add argument.
11357 (target_static_tracepoint_marker_at): Add argument.
11358 * target.c (update_current_target): Update.
11359 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11360 argument.
11361
c378d69d
TT
113622014-02-19 Tom Tromey <tromey@redhat.com>
11363
11364 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11365 (target_set_permissions): Add argument.
11366 * target.c (update_current_target): Update.
11367 * remote.c (remote_set_permissions): Add 'self' argument.
11368 (remote_start_remote): Update.
11369
bd7ae0f5
TT
113702014-02-19 Tom Tromey <tromey@redhat.com>
11371
11372 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11373 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11374 (target_get_tib_address): Add argument.
11375 * target.c (update_current_target): Update.
11376 * remote.c (remote_get_tib_address): Add 'self' argument.
11377
d9e68a2c
TT
113782014-02-19 Tom Tromey <tromey@redhat.com>
11379
11380 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11381 (target_set_trace_notes): Add argument.
11382 * target.c (update_current_target): Update.
11383 * remote.c (remote_set_trace_notes): Add 'self' argument.
11384
4da384be
TT
113852014-02-19 Tom Tromey <tromey@redhat.com>
11386
11387 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11388 argument.
11389 (target_set_trace_buffer_size): Add argument.
11390 * target.c (update_current_target): Update.
11391 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11392
736d5b1f
TT
113932014-02-19 Tom Tromey <tromey@redhat.com>
11394
11395 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11396 argument.
11397 (target_set_circular_trace_buffer): Add argument.
11398 * target.c (update_current_target): Update.
11399 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11400 argument.
11401
37b25738
TT
114022014-02-19 Tom Tromey <tromey@redhat.com>
11403
11404 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11405 argument.
11406 (target_set_disconnected_tracing): Add argument.
11407 * target.c (update_current_target): Update.
11408 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11409
0e67620a
TT
114102014-02-19 Tom Tromey <tromey@redhat.com>
11411
11412 * target.h (struct target_ops)
11413 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11414 (target_get_min_fast_tracepoint_insn_len): Add argument.
11415 * target.c (update_current_target): Update.
11416 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11417 argument.
11418
88ee6f45
TT
114192014-02-19 Tom Tromey <tromey@redhat.com>
11420
11421 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11422 argument.
11423 (target_get_raw_trace_data): Add argument.
11424 * target.c (update_current_target): Update.
11425 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11426
181e3713
TT
114272014-02-19 Tom Tromey <tromey@redhat.com>
11428
11429 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11430 Add argument.
11431 (target_upload_trace_state_variables): Add argument.
11432 * target.c (update_current_target): Update.
11433 * remote.c (remote_upload_trace_state_variables): Add 'self'
11434 argument.
11435 (remote_start_remote): Update.
11436
ab6617cc
TT
114372014-02-19 Tom Tromey <tromey@redhat.com>
11438
11439 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11440 argument.
11441 (target_upload_tracepoints): Add argument.
11442 * target.c (update_current_target): Update.
11443 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11444 (remote_start_remote): Update.
11445
dc3decaf
TT
114462014-02-19 Tom Tromey <tromey@redhat.com>
11447
11448 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11449 (target_save_trace_data): Add argument.
11450 * target.c (update_current_target): Update.
11451 * remote.c (remote_save_trace_data): Add 'self' argument.
11452
4011015b
TT
114532014-02-19 Tom Tromey <tromey@redhat.com>
11454
11455 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11456 argument.
11457 * target.h (struct target_ops)
11458 <to_get_trace_state_variable_value>: Add argument.
11459 (target_get_trace_state_variable_value): Add argument.
11460 * target.c (update_current_target): Update.
11461 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11462 argument.
11463 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11464
bd4c6793
TT
114652014-02-19 Tom Tromey <tromey@redhat.com>
11466
11467 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11468 * target.h (struct target_ops) <to_trace_find>: Add argument.
11469 (target_trace_find): Add argument.
11470 * target.c (update_current_target): Update.
11471 * remote.c (remote_trace_find): Add 'self' argument.
11472 * ctf.c (ctf_trace_find): Add 'self' argument.
11473
74499f1b
TT
114742014-02-19 Tom Tromey <tromey@redhat.com>
11475
11476 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11477 (target_trace_stop): Add argument.
11478 * target.c (update_current_target): Update.
11479 * remote.c (remote_trace_stop): Add 'self' argument.
11480
db90e85c
TT
114812014-02-19 Tom Tromey <tromey@redhat.com>
11482
11483 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11484 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11485 argument.
11486 (target_get_tracepoint_status): Add argument.
11487 * target.c (update_current_target): Update.
11488 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11489
8bd200f1
TT
114902014-02-19 Tom Tromey <tromey@redhat.com>
11491
11492 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11493 * target.h (struct target_ops) <to_get_trace_status>: Add
11494 argument.
11495 (target_get_trace_status): Add argument.
11496 * target.c (update_current_target): Update.
11497 * remote.c (remote_get_trace_status): Add 'self' argument.
11498 (remote_start_remote, remote_can_download_tracepoint): Update.
11499 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11500
e2d1aae3
TT
115012014-02-19 Tom Tromey <tromey@redhat.com>
11502
11503 * target.h (struct target_ops) <to_trace_start>: Add argument.
11504 (target_trace_start): Add argument.
11505 * target.c (update_current_target): Update.
11506 * remote.c (remote_trace_start): Add 'self' argument.
11507
583f9a86
TT
115082014-02-19 Tom Tromey <tromey@redhat.com>
11509
11510 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11511 Add argument.
11512 (target_trace_set_readonly_regions): Add argument.
11513 * target.c (update_current_target): Update.
11514 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11515 argument.
11516
780b049c
TT
115172014-02-19 Tom Tromey <tromey@redhat.com>
11518
11519 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11520 argument.
11521 (target_disable_tracepoint): Add argument.
11522 * target.c (update_current_target): Update.
11523 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11524
46670d57
TT
115252014-02-19 Tom Tromey <tromey@redhat.com>
11526
11527 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11528 argument.
11529 (target_enable_tracepoint): Add argument.
11530 * target.c (update_current_target): Update.
11531 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11532
559d2b81
TT
115332014-02-19 Tom Tromey <tromey@redhat.com>
11534
11535 * target.h (struct target_ops) <to_download_trace_state_variable>:
11536 Add argument.
11537 (target_download_trace_state_variable): Add argument.
11538 * target.c (update_current_target): Update.
11539 * remote.c (remote_download_trace_state_variable): Add 'self'
11540 argument.
11541
a52a8357
TT
115422014-02-19 Tom Tromey <tromey@redhat.com>
11543
11544 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11545 argument.
11546 (target_can_download_tracepoint): Add argument.
11547 * target.c (update_current_target): Update.
11548 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11549
548f7808
TT
115502014-02-19 Tom Tromey <tromey@redhat.com>
11551
11552 * target.h (struct target_ops) <to_download_tracepoint>: Add
11553 argument.
11554 (target_download_tracepoint): Add argument.
11555 * target.c (update_current_target): Update.
11556 * remote.c (remote_download_tracepoint): Add 'self' argument.
11557
ecae04e1
TT
115582014-02-19 Tom Tromey <tromey@redhat.com>
11559
11560 * target.h (struct target_ops) <to_trace_init>: Add argument.
11561 (target_trace_init): Add argument.
11562 * target.c (update_current_target): Update.
11563 * remote.c (remote_trace_init): Add 'self' argument.
11564
fab5aa7c
TT
115652014-02-19 Tom Tromey <tromey@redhat.com>
11566
11567 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11568 * target.c (target_fileio_readlink): Add argument.
11569 * remote.c (remote_hostio_readlink): Add 'self' argument.
11570 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11571
dbbca37d
TT
115722014-02-19 Tom Tromey <tromey@redhat.com>
11573
11574 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11575 * target.c (target_fileio_unlink): Add argument.
11576 * remote.c (remote_hostio_unlink): Add 'self' argument.
11577 (remote_file_delete): Update.
11578 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11579
df39ea25
TT
115802014-02-19 Tom Tromey <tromey@redhat.com>
11581
11582 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11583 * target.c (target_fileio_close): Add argument.
11584 * remote.c (remote_hostio_close): Add 'self' argument.
11585 (remote_hostio_close_cleanup): Update.
11586 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11587 Update.
11588 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11589
a3be983c
TT
115902014-02-19 Tom Tromey <tromey@redhat.com>
11591
11592 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11593 * target.c (target_fileio_pread): Add argument.
11594 * remote.c (remote_hostio_pread): Add 'self' argument.
11595 (remote_bfd_iovec_pread, remote_file_get): Update.
11596 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11597
0d866f62
TT
115982014-02-19 Tom Tromey <tromey@redhat.com>
11599
11600 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11601 * target.c (target_fileio_pwrite): Add argument.
11602 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11603 (remote_file_put): Update.
11604 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11605
cd897586
TT
116062014-02-19 Tom Tromey <tromey@redhat.com>
11607
11608 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11609 * target.c (target_fileio_open): Add argument.
11610 * remote.c (remote_hostio_open): Add 'self' argument.
11611 (remote_bfd_iovec_open): Add 'self' argument.
11612 (remote_file_put): Add 'self' argument.
11613 (remote_file_get): Add 'self' argument.
11614 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11615
78eff0ec
TT
116162014-02-19 Tom Tromey <tromey@redhat.com>
11617
11618 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11619 Add argument.
11620 (target_can_run_breakpoint_commands): Add argument.
11621 * target.c (update_current_target): Update.
11622 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11623 argument.
11624 (remote_insert_breakpoint): Add 'self' argument.
11625 (remote_insert_hw_breakpoint): Add 'self' argument.
11626 (remote_can_run_breakpoint_commands): Add 'self' argument.
11627
efcc2da7
TT
116282014-02-19 Tom Tromey <tromey@redhat.com>
11629
11630 * target.h (struct target_ops)
11631 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11632 (target_supports_evaluation_of_breakpoint_conditions): Add
11633 argument.
11634 * target.c (update_current_target): Update.
11635 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11636 argument.
11637 (remote_insert_breakpoint): Add 'self' argument.
11638 (remote_insert_hw_breakpoint): Add 'self' argument.
11639 (remote_supports_cond_breakpoints): Add 'self' argument.
11640
6de37a3a
TT
116412014-02-19 Tom Tromey <tromey@redhat.com>
11642
11643 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11644 argument.
11645 (target_supports_string_tracing): Add argument.
11646 * target.c (update_current_target): Update.
11647 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11648
2bfc0540
TT
116492014-02-19 Tom Tromey <tromey@redhat.com>
11650
11651 * target.h (struct target_ops)
11652 <to_supports_disable_randomization>: Add argument.
11653 * target.c (find_default_supports_disable_randomization): Add
11654 argument.
11655 (target_supports_disable_randomization): Add argument.
11656 (find_default_supports_disable_randomization): Add 'self'
11657 argument.
11658 * remote.c (extended_remote_supports_disable_randomization): Add
11659 'self' argument.
11660 (remote_supports_disable_randomization): Add 'self' argument.
11661 (extended_remote_create_inferior): Update.
11662 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11663 'self' argument.
11664
7d178d6a
TT
116652014-02-19 Tom Tromey <tromey@redhat.com>
11666
11667 * target.h (struct target_ops)
11668 <to_supports_enable_disable_tracepoint>: Add argument.
11669 (target_supports_enable_disable_tracepoint): Add argument.
11670 * target.c (update_current_target): Update.
11671 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11672 argument.
11673
86ce2668
TT
116742014-02-19 Tom Tromey <tromey@redhat.com>
11675
11676 * target.h (struct target_ops) <to_supports_multi_process>: Add
11677 argument.
11678 (target_supports_multi_process): Add argument.
11679 * target.c (update_current_target): Update.
11680 * remote.c (remote_supports_multi_process): Add 'self' argument.
11681 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11682 argument.
11683 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11684 argument.
11685
4c612759
TT
116862014-02-19 Tom Tromey <tromey@redhat.com>
11687
11688 * target.h (struct target_ops) <to_execution_direction>: Add
11689 argument.
11690 (target_execution_direction): Add argument.
11691 * target.c (default_execution_direction): Add 'self' argument.
11692 * record-full.c (record_full_execution_direction): Add 'self'
11693 argument.
11694
19db3e69
TT
116952014-02-19 Tom Tromey <tromey@redhat.com>
11696
11697 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11698 argument.
11699 (target_can_execute_reverse): Add argument.
11700 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11701 * record-full.c (record_full_can_execute_reverse): Add 'self'
11702 argument.
11703 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11704 argument.
11705
1e6b91a4
TT
117062014-02-19 Tom Tromey <tromey@redhat.com>
11707
11708 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11709 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11710 argument.
11711 (target_get_ada_task_ptid): Add argument.
11712 * target.c (update_current_target): Update.
11713 (default_get_ada_task_ptid): Add 'self' argument.
11714 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11715 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11716 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11717 argument.
11718 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11719 argument.
11720 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11721 argument.
11722 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11723 argument.
11724 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11725 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11726 argument.
11727
3c80fb48
TT
117282014-02-19 Tom Tromey <tromey@redhat.com>
11729
11730 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11731 (target_goto_bookmark): Add argument.
11732 * target.c (dummy_goto_bookmark): Add 'self' argument.
11733 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11734
dd0e2830
TT
117352014-02-19 Tom Tromey <tromey@redhat.com>
11736
11737 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11738 (target_get_bookmark): Add argument.
11739 * target.c (dummy_get_bookmark): Add 'self' argument.
11740 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11741
fc6691b2
TT
117422014-02-19 Tom Tromey <tromey@redhat.com>
11743
11744 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11745 argument.
11746 (target_make_corefile_notes): Add argument.
11747 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11748 * procfs.c (procfs_make_note_section): Add 'self' argument.
11749 (procfs_make_note_section): Add 'self' argument.
11750 (procfs_make_note_section): Add 'self' argument.
11751 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11752 argument.
11753 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11754 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11755 * exec.c (exec_make_note_section): Add 'self' argument.
11756 (exec_make_note_section): Add 'self' argument.
11757
2e73927c
TT
117582014-02-19 Tom Tromey <tromey@redhat.com>
11759
11760 * target.h (struct target_ops) <to_find_memory_regions>: Add
11761 argument.
11762 (target_find_memory_regions): Add argument.
11763 * target.c (dummy_find_memory_regions): Add 'self' argument.
11764 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11765 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11766 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11767 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11768 * exec. (exec_do_find_memory_regions): New global.
11769 (exec_set_find_memory_regions): Rewrite.
11770 (exec_find_memory_regions): New function.
11771 (init_exec_ops): Use exec_find_memory_regions.
11772
2a9a2795
TT
117732014-02-19 Tom Tromey <tromey@redhat.com>
11774
11775 * target.h (struct target_ops) <to_supports_non_stop>: Add
11776 argument.
11777 * target.c (find_default_supports_non_stop): Add argument.
11778 (target_supports_non_stop): Add argument.
11779 (find_default_supports_non_stop): Add 'self' argument.
11780 * remote.c (remote_supports_non_stop): Add 'self' argument.
11781 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11782
4ab76ea3
TT
117832014-02-19 Tom Tromey <tromey@redhat.com>
11784
11785 * target.h (struct target_ops) <to_log_command>: Add argument.
11786 (target_log_command): Add argument.
11787 * serial.h (serial_log_command): Add 'self' argument.
11788 * serial.c (serial_log_command): Add 'self' argument.
11789
8dd27370
TT
117902014-02-19 Tom Tromey <tromey@redhat.com>
11791
11792 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11793 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11794 argument.
11795 (target_pid_to_exec_file): Add argument.
11796 * target.c (debug_to_pid_to_exec_file): Add argument.
11797 (update_current_target): Update.
11798 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11799 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11800 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11801 (linux_handle_extended_wait): Update.
11802 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11803 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11804 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11805 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11806
1aac633b
TT
118072014-02-19 Tom Tromey <tromey@redhat.com>
11808
11809 * target.h (struct target_ops) <to_rcmd>: Add argument.
11810 (target_rcmd): Add argument.
11811 * target.c (debug_to_rcmd): Add argument.
11812 (update_current_target, do_monitor_command): Update.
11813 * remote.c (remote_rcmd): Add 'self' argument.
11814 * monitor.c (monitor_rcmd): Add 'self' argument.
11815
1eab8a48
TT
118162014-02-19 Tom Tromey <tromey@redhat.com>
11817
11818 * windows-nat.c (windows_stop): Add 'self' argument.
11819 * target.h (struct target_ops) <to_stop>: Add argument.
11820 * target.c (target_stop): Add argument.
11821 (debug_to_stop): Add argument.
11822 (update_current_target): Update.
11823 * remote.c (remote_stop): Add 'self' argument.
11824 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11825 (gdbsim_cntrl_c): Update.
11826 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11827 * procfs.c (procfs_stop): Add 'self' argument.
11828 * nto-procfs.c (procfs_stop): Add 'self' argument.
11829 * monitor.c (monitor_stop): Add 'self' argument.
11830 (monitor_open): Update.
11831 * linux-nat.c (linux_nat_stop): Add argument.
11832 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11833 * gnu-nat.c (gnu_stop): Add 'self' argument.
11834 * darwin-nat.c (darwin_stop): Add 'self' argument.
11835
503a628d
TT
118362014-02-19 Tom Tromey <tromey@redhat.com>
11837
11838 * target.h (struct target_ops) <to_thread_name>: Add argument.
11839 * target.c (target_thread_name): Add argument.
11840 (update_current_target): Update.
11841 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11842
c15906d8
TT
118432014-02-19 Tom Tromey <tromey@redhat.com>
11844
11845 * target.h (struct target_ops) <to_extra_thread_info>: Add
11846 argument.
11847 (target_extra_thread_info): Add argument.
11848 * target.c (update_current_target): Update.
11849 * remote.c (remote_threads_extra_info): Add 'self' argument.
11850 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11851 argument.
11852 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11853 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11854 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11855 argument.
11856 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11857 argument.
11858 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11859 argument.
11860 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11861 argument.
11862
daf5e9b6
TT
118632014-02-19 Tom Tromey <tromey@redhat.com>
11864
11865 * target.h (struct target_ops) <to_program_signals>: Add argument.
11866 * target.c (target_program_signals): Add argument.
11867 * remote.c (remote_program_signals): Add 'self' argument.
11868
94bedb42
TT
118692014-02-19 Tom Tromey <tromey@redhat.com>
11870
11871 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11872 * target.c (target_pass_signals): Add argument.
11873 * remote.c (remote_pass_signals): Add 'self' argument.
11874 (remote_start_remote): Update.
11875 * procfs.c (procfs_pass_signals): Add 'self' argument.
11876 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11877 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11878 (linux_nat_create_inferior, linux_nat_attach): Update.
11879
da82bd6b
TT
118802014-02-19 Tom Tromey <tromey@redhat.com>
11881
11882 * windows-nat.c (windows_can_run): Add 'self' argument.
11883 * target.h (struct target_ops) <to_can_run>: Add argument.
11884 (target_can_run): Add argument.
11885 * target.c (debug_to_can_run): Add argument.
11886 (update_current_target): Update.
11887 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11888 * inf-child.c (inf_child_can_run): Add 'self' argument.
11889 * go32-nat.c (go32_can_run): Add 'self' argument.
11890
d796e1d6
TT
118912014-02-19 Tom Tromey <tromey@redhat.com>
11892
11893 * target.h (struct target_ops) <to_has_exited>: Add argument.
11894 (target_has_exited): Add argument.
11895 * target.c (debug_to_has_exited): Add argument.
11896 (update_current_target): Update.
11897
ff214e67
TT
118982014-02-19 Tom Tromey <tromey@redhat.com>
11899
11900 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11901 argument.
11902 (target_set_syscall_catchpoint): Add argument.
11903 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11904 argument.
11905 * target.c (update_current_target): Update.
11906
758e29d2
TT
119072014-02-19 Tom Tromey <tromey@redhat.com>
11908
11909 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11910 argument.
11911 (target_remove_exec_catchpoint): Add argument.
11912 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11913 (update_current_target): Update.
11914 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11915 argument.
11916
ba025e51
TT
119172014-02-19 Tom Tromey <tromey@redhat.com>
11918
11919 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11920 argument.
11921 (target_insert_exec_catchpoint): Add argument.
11922 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11923 (update_current_target): Update.
11924 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11925 argument.
11926
e98cf0cd
TT
119272014-02-19 Tom Tromey <tromey@redhat.com>
11928
11929 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11930 argument.
11931 (target_remove_vfork_catchpoint): Add argument.
11932 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11933 (update_current_target): Update.
11934 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11935 argument.
11936
3ecc7da0
TT
119372014-02-19 Tom Tromey <tromey@redhat.com>
11938
11939 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11940 argument.
11941 (target_insert_vfork_catchpoint): Add argument.
11942 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11943 (update_current_target): Update.
11944 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11945 argument.
11946
973fc227
TT
119472014-02-19 Tom Tromey <tromey@redhat.com>
11948
11949 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11950 argument.
11951 (target_remove_fork_catchpoint): Add argument.
11952 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11953 (update_current_target): Update.
11954 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11955 argument.
11956
a863b201
TT
119572014-02-19 Tom Tromey <tromey@redhat.com>
11958
11959 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11960 argument.
11961 (target_insert_fork_catchpoint): Add argument.
11962 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11963 (update_current_target): Update.
11964 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11965 argument.
11966
2e97a79e
TT
119672014-02-19 Tom Tromey <tromey@redhat.com>
11968
11969 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11970 argument.
11971 (target_post_startup_inferior): Add argument.
11972 * target.c (debug_to_post_startup_inferior): Add argument.
11973 (update_current_target): Update.
11974 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11975 argument.
11976 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11977 argument.
11978 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11979 argument.
11980 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11981 argument.
11982 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11983 'self' argument.
11984 (super_post_startup_inferior): Likewise.
11985 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11986 'self' argument.
11987 (super_post_startup_inferior): Likewise.
11988 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11989 Add 'self' argument.
11990 (super_post_startup_inferior): Likewise.
11991
71a9f134
TT
119922014-02-19 Tom Tromey <tromey@redhat.com>
11993
11994 * target.h (struct target_ops) <to_load>: Add argument.
11995 * target.c (target_load): Add argument.
11996 (debug_to_load): Add argument.
11997 (update_current_target): Update.
11998 * remote.c (remote_load): Add 'self' argument.
11999 * remote-sim.c (gdbsim_load): Add 'self' argument.
12000 * remote-mips.c (mips_load): Add 'self' argument.
12001 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12002 * monitor.c (monitor_load): Add 'self' argument.
12003 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12004
0a4f40a2
TT
120052014-02-19 Tom Tromey <tromey@redhat.com>
12006
12007 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12008 (target_terminal_info): Add argument.
12009 * target.c (debug_to_terminal_info): Add argument.
12010 (default_terminal_info): Likewise.
12011 * inflow.c (child_terminal_info): Add 'self' argument.
12012 * inferior.h (child_terminal_info): Add 'self' argument.
12013 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12014
ae3bd431
TT
120152014-02-19 Tom Tromey <tromey@redhat.com>
12016
12017 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12018 argument.
12019 (target_terminal_save_ours): Add argument.
12020 * target.c (debug_to_terminal_save_ours): Add argument.
12021 (update_current_target): Update.
12022 * inflow.c (terminal_save_ours): Add 'self' argument.
12023 * inferior.h (terminal_save_ours): Add 'self' argument.
12024
e3594fd1
TT
120252014-02-19 Tom Tromey <tromey@redhat.com>
12026
12027 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12028 (target_terminal_ours): Add argument.
12029 * target.c (debug_to_terminal_ours): Add argument.
12030 (update_current_target): Update.
12031 * remote.c (remote_terminal_ours): Add 'self' argument.
12032 (remote_close): Update.
12033 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12034 * inflow.c (terminal_ours): Add 'self' argument.
12035 * inferior.h (terminal_ours): Add 'self' argument.
12036 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12037
2e1e1a19
TT
120382014-02-19 Pedro Alves <palves@redhat.com>
12039 Tom Tromey <tromey@redhat.com>
12040
12041 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12042 argument.
12043 (target_terminal_ours_for_output): Add argument.
12044 * target.c (debug_to_terminal_ours_for_output): Add argument.
12045 (update_current_target): Update.
12046 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12047 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12048 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12049
d2f640d4
TT
120502014-02-19 Tom Tromey <tromey@redhat.com>
12051
12052 * target.h (struct target_ops) <to_terminal_inferior>: Add
12053 argument.
12054 * target.c (target_terminal_inferior): Add argument.
12055 (update_current_target): Update.
12056 * remote.c (remote_terminal_inferior): Add 'self' argument.
12057 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12058 * inflow.c (terminal_inferior): Add 'self' argument.
12059 * inferior.h (terminal_inferior): Add 'self' argument.
12060 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12061 (go32_terminal_inferior): Add 'self' argument.
12062
c42bf286
TT
120632014-02-19 Tom Tromey <tromey@redhat.com>
12064
12065 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12066 (target_terminal_init): Add argument.
12067 * target.c (debug_to_terminal_init): Add argument.
12068 (update_current_target): Update.
12069 * inflow.c (terminal_init_inferior): Add 'self' argument.
12070 * inferior.h (terminal_init_inferior): Add 'self' argument.
12071 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12072 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12073
c3a5ff89
TT
120742014-02-19 Tom Tromey <tromey@redhat.com>
12075
12076 * target.h (struct target_ops)
12077 <to_can_accel_watchpoint_condition>: Add argument.
12078 (target_can_accel_watchpoint_condition): Add argument.
12079 * target.c (debug_to_can_accel_watchpoint_condition): Add
12080 argument.
12081 (update_current_target): Update.
12082 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12083 'self' argument.
12084
31568a15
TT
120852014-02-19 Tom Tromey <tromey@redhat.com>
12086
12087 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12088 Add argument.
12089 (target_region_ok_for_hw_watchpoint): Add argument.
12090 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12091 (default_region_ok_for_hw_watchpoint): Add argument.
12092 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12093 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12094 argument.
12095 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12096 argument.
12097 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12098 argument.
12099 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12100 'self' argument.
12101 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12102 'self' argument.
12103 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12104 'self' argument.
12105 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12106 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12107 'self' argument.
12108 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12109 Add 'self' argument.
12110
7bb99c53
TT
121112014-02-19 Tom Tromey <tromey@redhat.com>
12112
12113 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12114 argument.
12115 (target_insert_watchpoint): Add argument.
12116 * target.c (debug_to_insert_watchpoint): Add argument.
12117 (update_current_target): Update.
12118 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12119 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12120 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12121 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12122 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12123 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12124 argument.
12125 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12126 (procfs_insert_hw_watchpoint): Add 'self' argument.
12127 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12128 argument.
12129 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12130 argument.
12131 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12132 argument.
12133 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12134 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12135 argument.
12136 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12137 'self' argument.
12138
11b5219a
TT
121392014-02-19 Tom Tromey <tromey@redhat.com>
12140
12141 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12142 argument.
12143 (target_remove_watchpoint): Add argument.
12144 * target.c (debug_to_remove_watchpoint): Add argument.
12145 (update_current_target): Update.
12146 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12147 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12148 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12149 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12150 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12151 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12152 argument.
12153 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12154 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12155 argument.
12156 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12157 argument.
12158 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12159 argument.
12160 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12161 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12162 argument.
12163 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12164 'self' argument.
12165
a64dc96c
TT
121662014-02-19 Tom Tromey <tromey@redhat.com>
12167
12168 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12169 argument.
12170 (target_remove_hw_breakpoint): Add argument.
12171 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12172 (update_current_target): Update.
12173 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12174 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12175 argument.
12176 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12177 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12178 argument.
12179 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12180 'self' argument.
12181
23a26771
TT
121822014-02-19 Tom Tromey <tromey@redhat.com>
12183
12184 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12185 argument.
12186 (target_insert_hw_breakpoint): Add argument.
12187 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12188 (update_current_target): Update.
12189 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12190 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12191 argument.
12192 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12193 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12194 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12195 argument.
12196 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12197 'self' argument.
12198
5461485a
TT
121992014-02-19 Tom Tromey <tromey@redhat.com>
12200
12201 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12202 argument.
12203 (target_can_use_hardware_watchpoint): Add argument.
12204 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12205 (update_current_target): Update.
12206 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12207 argument.
12208 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12209 argument.
12210 * remote.c (remote_check_watch_resources): Add 'self' argument.
12211 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12212 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12213 argument.
12214 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12215 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12216 argument.
12217 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12218 argument.
12219 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12220 argument.
12221 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12222 argument.
12223 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12224 argument.
12225 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12226 argument.
12227 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12228 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12229 argument.
12230 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12231 'self' argument.
12232
f045800c
TT
122332014-02-19 Tom Tromey <tromey@redhat.com>
12234
12235 * target.h (struct target_ops) <to_post_attach>: Add argument.
12236 (target_post_attach): Add argument.
12237 * target.c (debug_to_post_attach): Add argument.
12238 (update_current_target): Update.
12239 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12240 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12241 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12242 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12243 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12244
de90e03d
TT
122452014-02-19 Tom Tromey <tromey@redhat.com>
12246
12247 * windows-nat.c (windows_close): Add 'self' argument.
12248 * tracepoint.c (tfile_close): Add 'self' argument.
12249 * target.h (struct target_ops) <to_close>: Add argument.
12250 * target.c (target_close): Add argument.
12251 (update_current_target): Update.
12252 * remote.c (remote_close): Add 'self' argument.
12253 * remote-sim.c (gdbsim_close): Add 'self' argument.
12254 * remote-mips.c (mips_close): Add 'self' argument.
12255 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12256 * record-full.c (record_full_close): Add 'self' argument.
12257 * record-btrace.c (record_btrace_close): Add 'self' argument.
12258 * monitor.h (monitor_close): Add 'self' argument.
12259 * monitor.c (monitor_close): Add 'self' argument.
12260 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12261 * linux-nat.c (linux_nat_close): Add argument.
12262 * go32-nat.c (go32_close): Add 'self' argument.
12263 * exec.c (exec_close_1): Add 'self' argument.
12264 * ctf.c (ctf_close): Add 'self' argument.
12265 * corelow.c (core_close): Add 'self' argument.
12266 (core_close_cleanup): Update.
12267 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12268 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12269
9dd130a0
TT
122702014-02-19 Tom Tromey <tromey@redhat.com>
12271
12272 * remote.c (remote_load): New function.
12273 (init_remote_ops): Use it.
12274
46917d26
TT
122752014-02-19 Tom Tromey <tromey@redhat.com>
12276
12277 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12278 argument.
12279 * common/linux-btrace.h (linux_supports_btrace): Update.
12280 * remote.c (remote_supports_btrace): Add "self" argument.
12281 * target-delegates.c: Rebuild.
12282 * target.c (target_supports_btrace): Remove.
12283 * target.h (struct target_ops) <to_supports_btrace>: Add
12284 target_ops argument.
12285 (target_supports_btrace): New define.
12286
6b84065d
TT
122872014-02-19 Tom Tromey <tromey@redhat.com>
12288
12289 * record-full.c (record_full_beneath_to_resume_ops)
12290 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12291 (record_full_beneath_to_wait)
12292 (record_full_beneath_to_store_registers_ops)
12293 (record_full_beneath_to_store_registers)
12294 (record_full_beneath_to_xfer_partial_ops)
12295 (record_full_beneath_to_xfer_partial)
12296 (record_full_beneath_to_insert_breakpoint_ops)
12297 (record_full_beneath_to_insert_breakpoint)
12298 (record_full_beneath_to_remove_breakpoint_ops)
12299 (record_full_beneath_to_remove_breakpoint)
12300 (record_full_beneath_to_stopped_by_watchpoint)
12301 (record_full_beneath_to_stopped_data_address)
12302 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12303 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12304 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12305 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12306 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12307 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12308 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12309 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12310 (record_full_resume, record_full_wait_1)
12311 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12312 (record_full_store_registers, record_full_xfer_partial)
12313 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12314 (record_full_async, record_full_core_xfer_partial): Use target
12315 delegation.
12316 * target-delegates.c: Rebuild.
12317 * target.c (current_xfer_partial): Remove.
12318 (update_current_target): Do not INHERIT or de_fault
12319 to_insert_breakpoint, to_remove_breakpoint,
12320 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12321 to_is_async_p, to_async. Do not set to_xfer_partial field.
12322 (default_xfer_partial): Simplify.
12323 (current_xfer_partial): Remove.
12324 (target_wait, target_resume): Simplify.
12325 (find_default_can_async_p, find_default_is_async_p): Update.
12326 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12327 to_xfer_partial, to_stopped_by_watchpoint,
12328 to_stopped_data_address.
12329 (target_store_registers): Simplify.
12330 (forward_target_remove_breakpoint)
12331 (forward_target_insert_breakpoint): Remove.
12332 (target_remove_breakpoint, target_insert_breakpoint)
12333 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12334 * target.h (struct target_ops) <to_resume, to_wait,
12335 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12336 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12337 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12338 markup.
12339 (forward_target_remove_breakpoint)
12340 (forward_target_insert_breakpoint): Remove.
12341 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12342 directly.
12343 (record_btrace_insert_breakpoint): Delegate directly.
12344
1101cb7b
TT
123452014-02-19 Tom Tromey <tromey@redhat.com>
12346
12347 PR build/7701:
12348 * target-delegates.c: New file.
12349 * target.c: Include target-delegates.c.
12350 (init_dummy_target): Call install_dummy_methods.
12351 (complete_target_initialization): Call install_delegators.
12352 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12353 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12354 * make-target-delegates: New file.
12355
8b06beed
TT
123562014-02-19 Tom Tromey <tromey@redhat.com>
12357
12358 * record.c (find_record_target): Use find_target_at.
12359 * target.c (find_target_at): New function.
12360 * target.h (find_target_at): Declare.
12361
6a109b6b
TT
123622014-02-19 Tom Tromey <tromey@redhat.com>
12363
12364 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12365 Add 'ops' argument.
12366 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12367 'ops' argument.
12368 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12369 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12370 'ops' argument.
12371 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12372 argument.
12373 * linux-nat.c (save_sigtrap): Update.
12374 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12375 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12376 (linux_nat_close): Update.
12377 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12378 argument.
12379 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12380 argument.
12381 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12382 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12383 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12384 (tmp_to_async): Add 'ops' argument.
12385 (record_full_stopped_by_watchpoint, record_full_async)
12386 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12387 argument.
12388 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12389 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12390 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12391 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12392 (remote_is_async_p, remote_async): Add 'ops' argument.
12393 (remote_stopped_data_address): Update.
12394 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12395 * target.c (update_current_target)
12396 (find_default_can_async_p, find_default_is_async_p): Update.
12397 (init_dummy_target): Update.
12398 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12399 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12400 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12401 (target_can_async_p, target_is_async_p, target_async)
12402 (target_stopped_by_watchpoint): Update.
12403
e095146b
YQ
124042014-02-19 Yao Qi <yao@codesourcery.com>
12405
12406 PR gdb/16220
12407 * gdbarch.sh: Remove startup_gdbarch.
12408 * gdbarch.c: Regenerated.
12409 * gdbarch.h: Likewise.
12410
bc3c6b36
KB
124112014-02-17 Kevin Buettner <kevinb@redhat.com>
12412
12413 * rl78-tdep.c (rl78_g10_register_name): New function.
12414 (rl78_return_value): Add g10 support.
12415 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12416 g10.
12417
98dc0167 124182014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12419
12420 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12421 (SUBDIR_GUILE_SRCS): Ditto.
12422 (scm-gsmob.o): Ditto.
12423
842c05cd
YQ
124242014-02-17 Yao Qi <yao@codesourcery.com>
12425
12426 * gnu-nat.c (ILL_RPC): Declare defined function.
12427
25c0bd04
YQ
124282014-02-17 Yao Qi <yao@codesourcery.com>
12429
12430 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12431 mach_msg_type_number_t.
12432 (gnu_write_inferior): Likewise.
12433
a9a758e3
YQ
124342014-02-17 Yao Qi <yao@codesourcery.com>
12435
12436 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12437 in format string.
12438 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12439 (inf_validate_procs, inf_signal): Likewise.
12440 (S_exception_raise_request): Likewise.
12441 (do_mach_notify_dead_name): Likewise.
12442 (steal_exc_port): Likewise.
12443 (gnu_read_inferior): Change 'copy_count''s type to
12444 mach_msg_type_number_t.
12445 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12446 format string.
12447
bae8023e
TS
124482014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12449
c82f56d9
TS
12450 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12451 flag. Adjust all users; in particular...
12452 (gnu_wait): ..., don't decrement its value in here...
12453 (gnu_create_inferior): ..., and instead set the flag in here,
12454 around the startup_inferior call, and call that one with
12455 START_INFERIOR_TRAPS_EXPECTED.
12456
3398af6a
TS
12457 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12458 (ILL_RPC): ... new macro.
12459 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12460 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12461 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12462 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12463 functions with ILL_RPC macro.
12464 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12465 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12466 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12467 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12468 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12469 (S_proc_getlogin_reply, S_proc_getsid_reply)
12470 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12471 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12472 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12473 (S_proc_getnports_reply, S_proc_is_important_reply)
12474 (S_proc_get_code_reply): New stub functions, generated with
12475 ILL_RPC macro.
12476
d47642c9
TS
12477 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12478 collected the type check structures.
12479
bae8023e
TS
12480 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12481
8a55ffb0
DE
124822014-02-14 Doug Evans <dje@google.com>
12483
12484 * target.c (target_write_partial): Fix result type.
12485
c2853f3d
JM
124862014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12487
12488 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12489 the proper offsets to access fpregset_t.
12490
ac61d2db
SA
124912014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12492
12493 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12494 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12495 * h8300-tdep.c (setmachinelist): Remove global.
12496 * hppa-tdep.c (hppa_sigtramp): Remove global.
12497 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12498 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12499 * ravenscar-thread.c (update_target_observer): Remove global.
12500 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12501
9d2d0b8b
TT
125022014-02-12 Tom Tromey <tromey@redhat.com>
12503
12504 * common/rsp-low.c: Update comments.
12505 * common/rsp-low.h: Update comments.
12506
a7191e8b
TT
125072014-02-12 Tom Tromey <tromey@redhat.com>
12508
12509 * common/rsp-low.c (convert_ascii_to_int): Remove.
12510 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12511
ff0e980e
TT
125122014-02-12 Tom Tromey <tromey@redhat.com>
12513
12514 * common/rsp-low.h (unhexify): Don't declare.
12515 * common/rsp-low.c (unhexify): Remove.
12516
e9371aff
TT
125172014-02-12 Tom Tromey <tromey@redhat.com>
12518
12519 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12520 * common/rsp-low.c (convert_int_to_ascii): Remove.
12521
971dc0b8
TT
125222014-02-12 Tom Tromey <tromey@redhat.com>
12523
12524 * common/rsp-low.h (hexify): Don't declare.
12525 * common/rsp-low.c (hexify): Remove.
12526
0a822afb
TT
125272014-02-12 Tom Tromey <tromey@redhat.com>
12528
12529 * common/rsp-low.c (hexify): Never take strlen of argument.
12530
9f1b45b0
TT
125312014-02-12 Tom Tromey <tromey@redhat.com>
12532
12533 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12534 * remote.c (extended_remote_run, remote_rcmd)
12535 (remote_download_trace_state_variable, remote_save_trace_data)
12536 (remote_set_trace_notes): Update.
12537 * tracepoint.c (encode_source_string, tfile_write_status)
12538 (tfile_write_uploaded_tsv): Update.
12539
9c3d6531
TT
125402014-02-12 Tom Tromey <tromey@redhat.com>
12541
12542 * tracepoint.c: Include rsp-low.h.
12543 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12544 * remote.c: Include rsp-low.h.
12545 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12546 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12547 (remote_unescape_input): Move to common/rsp-low.c.
12548 * common/rsp-low.h: New file.
12549 * common/rsp-low.c: New file.
12550 * Makefile.in (SFILES): Add common/rsp-low.c.
12551 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12552 (COMMON_OBS): Add rsp-low.o.
12553 (rsp-low.o): New target.
12554
01fd3ea5
TT
125552014-02-12 Tom Tromey <tromey@redhat.com>
12556
12557 * utils.h: Include print-utils.h.
12558 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12559 (int_string, core_addr_to_string, core_addr_to_string_nz)
12560 (hex_string, hex_string_custom): Don't declare.
12561 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12562 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12563 (hex_string_custom, int_string, core_addr_to_string)
12564 (core_addr_to_string_nz, host_address_to_string): Move to
12565 common/print-utils.c.
12566 * common/print-utils.h: New file.
12567 * common/print-utils.c: New file
12568 * Makefile.in (SFILES): Add common/print-utils.c.
12569 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12570 (COMMON_OBS): Add print-utils.o.
12571 (print-utils.o): New target.
12572
9fb50108
TT
125732014-02-12 Tom Tromey <tromey@redhat.com>
12574
12575 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12576
0548b5db
MK
125772014-02-12 Mark Kettenis <kettenis@gnu.org>
12578
12579 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12580
493443a4
MK
125812014-02-12 Mark Kettenis <kettenis@gnu.org>
12582
12583 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12584 if a PT_IO ptrace request returns sucessfully but indicates that 0
12585 bytes were transferred.
12586
706d0883
PA
125872014-02-12 Pedro Alves <palves@redhat.com>
12588 Kevin Buettner <kevinb@redhat.com>
12589
12590 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12591 TYPE_INSTANCE_FLAG_CODE_SPACE.
12592
5caa2f0b
PA
125932014-02-12 Pedro Alves <palves@redhat.com>
12594
12595 * h8300-tdep.c (pseudo_from_raw_register)
12596 (raw_from_pseudo_register): New functions.
12597 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12598 them.
12599
76fd5f74
PA
126002014-02-12 Pedro Alves <palves@redhat.com>
12601
12602 * h8300-tdep.c (h8300_register_sim_regno): New function.
12603 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12604 gdbarch_register_sim_regno hook.
12605
8f008406
SA
126062014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12607
12608 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12609
195abc10
SA
126102014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12611
12612 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12613
93ffa5b9
MK
126142014-02-12 Mark Kettenis <kettenis@gnu.org>
12615
12616 * obsd-tdep.h (obsd_init_abi): New prototype.
12617 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12618 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12619 (obsd_init_abi): New functions.
12620 * i386obsd-tdep.c: Include "obsd-tdep.h".
12621 (i386obsd_init_abi): Call obsd_init_abi.
12622 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12623 (amd64obsd_init_abi): Call obsd_init_abi.
12624 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12625 obsd-tdep.c to gdb_target_obs.
12626
49caec94
JM
126272014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12628
12629 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12630 double float arguments to 16-byte in the argument slots.
12631
e1402065
DE
126322014-02-11 Doug Evans <xdje42@gmail.com>
12633
12634 * configure.ac: Don't crash if pkg-config is not found and guile
12635 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12636 in guile checks.
12637 * configure: Regenerate.
12638
edcc890f
YQ
126392014-02-11 Yao Qi <yao@codesourcery.com>
12640
12641 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12642 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12643 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12644 * gnu-nat.c (gnu_xfer_memory): Likewise.
12645 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12646 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12647 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12648 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12649
9b409511
YQ
126502014-02-11 Yao Qi <yao@codesourcery.com>
12651
12652 * target.h (enum target_xfer_error): Rename to ...
12653 (enum target_xfer_status): ... it. New. All users updated.
12654 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12655 New.
12656 (TARGET_XFER_STATUS_ERROR_P): New macro.
12657 (target_xfer_error_to_string): Remove declaration.
12658 (target_xfer_status_to_string): Declare.
12659 (target_xfer_partial_ftype): Adjust it.
12660 (struct target_ops) <to_xfer_partial>: Return
12661 target_xfer_status. Add argument xfered_len. Update
12662 comments.
12663 * target.c (target_xfer_error_to_string): Rename to ...
12664 (target_xfer_status_to_string): ... it. New. All callers
12665 updated.
12666 (target_read_live_memory): Likewise. Call target_xfer_partial
12667 instead of target_read.
12668 (memory_xfer_live_readonly_partial): Return
12669 target_xfer_status. Add argument xfered_len.
12670 (raw_memory_xfer_partial): Likewise.
12671 (memory_xfer_partial_1): Likewise.
12672 (memory_xfer_partial): Likewise.
12673 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12674 properly. Update debug message.
12675 (default_xfer_partial, current_xfer_partial): Likewise.
12676 (target_write_partial): Likewise.
12677 (target_read_partial): Likewise. All callers updated.
12678 (read_whatever_is_readable): Likewise.
12679 (target_write_with_progress): Likewise.
12680 (target_read_alloc_1): Likewise.
12681
12682 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12683 * auxv.c (procfs_xfer_auxv): Likewise.
12684 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12685 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12686 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12687 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12688 * corefile.c (read_memory): Adjust.
12689 * corelow.c (core_xfer_partial): Likewise.
12690 * ctf.c (ctf_xfer_partial): Likewise.
12691 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12692 updated.
12693 (darwin_xfer_partial): Likewise.
12694 * exec.c (section_table_xfer_memory_partial): Likewise. All
12695 callers updated.
12696 (exec_xfer_partial): Likewise.
12697 * exec.h (section_table_xfer_memory_partial): Update
12698 declaration.
12699 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12700 negative.
12701 (gnu_xfer_partial): Likewise.
12702 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12703 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12704 (ia64_hpux_xfer_solib_got): Likewise.
12705 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12706 type of 'partial_len' to ULONGEST.
12707 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12708 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12709 (linux_nat_xfer_partial): Likewise.
12710 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12711 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12712 * monitor.c (monitor_xfer_memory): Likewise.
12713 (monitor_xfer_partial): Likewise.
12714 * procfs.c (procfs_xfer_partial): Likewise.
12715 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12716 * record-full.c (record_full_xfer_partial): Likewise.
12717 (record_full_core_xfer_partial): Likewise.
12718 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12719 (gdbsim_xfer_partial): Likewise.
12720 * remote.c (remote_write_bytes_aux): Likewise. All callers
12721 updated.
12722 (remote_write_bytes, remote_read_bytes): Likewise. All
12723 callers updated.
12724 (remote_flash_erase): Likewise. All callers updated.
12725 (remote_write_qxfer): Likewise. All callers updated.
12726 (remote_read_qxfer): Likewise. All callers updated.
12727 (remote_xfer_partial): Likewise.
12728 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12729 (rs6000_xfer_shared_libraries): Likewise.
12730 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12731 (sol_thread_xfer_partial): Likewise.
12732 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12733 (sparc_xfer_partial): Likewise.
12734 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12735 updated.
12736 (spu_xfer_partial): Likewise.
12737 * spu-multiarch.c (spu_xfer_partial): Likewise.
12738 * tracepoint.c (tfile_xfer_partial): Likewise.
12739 * windows-nat.c (windows_xfer_memory): Likewise.
12740 (windows_xfer_shared_libraries): Likewise.
12741 (windows_xfer_partial): Likewise.
12742 * valprint.c: Replace 'target_xfer_error' with
12743 'target_xfer_status' in comments.
12744
a8e63083
JB
127452014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12746
12747 Checked in by Joel Brobecker <brobecker@adacore.com>.
12748 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12749
e86b67d3
JB
127502014-02-11 Joel Brobecker <brobecker@adacore.com>
12751
12752 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12753 function parameters.
12754
4b7d1f7f
WN
127552014-02-10 Will Newton <will.newton@linaro.org>
12756
12757 * elfread.c (elf_rel_plt_read): Look for a .got section if
12758 looking up .got.plt fails.
12759 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12760 on address passed to elf_gnu_ifunc_record_cache.
12761 (elf_gnu_ifunc_resolve_addr): Likewise.
12762 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12763
961842b2
JM
127642014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12765
12766 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12767 (X_RETTURN): New macro.
12768 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12769
12770 * sparc64-tdep.c (sparc64_init_abi): Hook
12771 sparc_in_function_epilogue_p.
12772
3f03e7b1
GB
127732014-02-10 Gary Benson <gbenson@redhat.com>
12774
12775 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12776 Rename name_matcher to symbol_matcher.
12777
96f861ef
GB
127782014-02-10 Gary Benson <gbenson@redhat.com>
12779
12780 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12781 Use expand_symtabs_file_matcher_ftype and
12782 expand_symtabs_symbol_matcher_ftype.
12783
ee01b665
JB
127842014-02-10 Joel Brobecker <brobecker@adacore.com>
12785
12786 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12787 (struct ada_symbol_cache): New.
12788 (ada_free_symbol_cache): Forward declare.
12789 (struct ada_pspace_data): New.
12790 (ada_pspace_data_handle): New static global.
12791 (get_ada_pspace_data, ada_pspace_data_cleanup)
12792 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12793 (cache_space, cache): Delete, now folded inside struct
12794 ada_pspace_data.
12795 (ada_get_symbol_cache): New function.
12796 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12797 implementation.
12798 (_initialize_ada_language): Remove initialization of cache_space.
12799 Move call to observer_attach_inferior_exit up, grouping it
12800 with the other observer registrations inside this function.
12801 Rename command to be more general. Add call to
12802 register_program_space_data_with_cleanup.
12803
143adbbf
JB
128042014-02-10 Joel Brobecker <brobecker@adacore.com>
12805
12806 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12807 ada_new_objfile_observer.
12808 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12809 (_initialize_tasks): Update uses of ada_new_objfile_observer
12810 and ada_tasks_normal_stop_observer.
12811
aa4fb036
JB
128122014-02-10 Joel Brobecker <brobecker@adacore.com>
12813
12814 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12815 returned by the 'Length attribute to integer.
12816
9dee8cc6
JB
128172014-02-10 Joel Brobecker <brobecker@adacore.com>
12818
12819 * ada-lang.c (_initialize_ada_language): Initialize
12820 cache_space obstack.
12821
3d9434b5
JB
128222014-02-10 Joel Brobecker <brobecker@adacore.com>
12823
12824 * ada-lang.c (HASH_SIZE): New macro.
12825 (struct cache_entry): New type.
12826 (cache_space, cache): New static globals.
12827 (ada_clear_symbol_cache, find_entry): New functions.
12828 (lookup_cached_symbol, cache_symbol): Implement.
12829 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12830 (_initialize_ada_language): Attach ada_new_objfile_observer
12831 and ada_free_objfile_observer.
12832
f0c5f9b2
JB
128332014-02-10 Joel Brobecker <brobecker@adacore.com>
12834
12835 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12836 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12837 struct block * parameter.
12838 (ada_lookup_symbol_list_worker): Constify local variable "block".
12839 Remove cast which is no longer necessary.
12840
ed3ef339
DE
128412014-02-10 Doug Evans <xdje42@gmail.com>
12842
12843 Add Guile as an extension language.
12844 * NEWS: Mention Guile scripting.
12845 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12846 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12847 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12848 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12849 (CLIBS): Add GUILE_LIBS.
12850 (install-guile): New rule.
12851 (guile.o): New rule.
12852 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12853 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12854 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12855 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12856 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12857 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12858 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12859 * configure.ac: New option --with-guile.
12860 * configure: Regenerate.
12861 * config.in: Regenerate.
12862 * auto-load.c: Remove #include "python/python.h". Add #include
12863 "gdb/section-scripts.h".
12864 (source_section_scripts): Handle Guile scripts.
12865 (_initialize_auto_load): Add name of Guile objfile script to
12866 scripts-directory help text.
12867 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12868 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12869 (struct breakpoint): New member scm_bp_object.
12870 * defs.h (enum command_control_type): New value guile_control.
12871 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12872 "extension.h".
12873 (show_user): Update comment.
12874 (_initialize_cli_cmds): Update help text for "show user". Update help
12875 text for max-user-call-depth.
12876 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12877 "extension.h".
12878 (multi_line_command_p): Add guile_control.
12879 (print_command_lines): Handle guile_control.
12880 (execute_control_command, recurse_read_control_structure): Ditto.
12881 (process_next_line): Recognize "guile" commands.
12882 * disasm.c (gdb_disassemble_info): Make non-static.
12883 * disasm.h: #include "dis-asm.h".
12884 (struct gdbarch): Add forward decl.
12885 (gdb_disassemble_info): Declare.
12886 * extension.c: #include "guile/guile.h".
12887 (extension_languages): Add guile.
12888 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12889 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12890 * gdbtypes.c (get_unsigned_type_max): New function.
12891 (get_signed_type_minmax): New function.
12892 * gdbtypes.h (get_unsigned_type_max): Declare.
12893 (get_signed_type_minmax): Declare.
12894 * guile/README: New file.
12895 * guile/guile-internal.h: New file.
12896 * guile/guile.c: New file.
12897 * guile/guile.h: New file.
12898 * guile/scm-arch.c: New file.
12899 * guile/scm-auto-load.c: New file.
12900 * guile/scm-block.c: New file.
12901 * guile/scm-breakpoint.c: New file.
12902 * guile/scm-disasm.c: New file.
12903 * guile/scm-exception.c: New file.
12904 * guile/scm-frame.c: New file.
12905 * guile/scm-gsmob.c: New file.
12906 * guile/scm-iterator.c: New file.
12907 * guile/scm-lazy-string.c: New file.
12908 * guile/scm-math.c: New file.
12909 * guile/scm-objfile.c: New file.
12910 * guile/scm-ports.c: New file.
12911 * guile/scm-pretty-print.c: New file.
12912 * guile/scm-safe-call.c: New file.
12913 * guile/scm-string.c: New file.
12914 * guile/scm-symbol.c: New file.
12915 * guile/scm-symtab.c: New file.
12916 * guile/scm-type.c: New file.
12917 * guile/scm-utils.c: New file.
12918 * guile/scm-value.c: New file.
12919 * guile/lib/gdb.scm: New file.
12920 * guile/lib/gdb/boot.scm: New file.
12921 * guile/lib/gdb/experimental.scm: New file.
12922 * guile/lib/gdb/init.scm: New file.
12923 * guile/lib/gdb/iterator.scm: New file.
12924 * guile/lib/gdb/printing.scm: New file.
12925 * guile/lib/gdb/types.scm: New file.
12926 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12927 (VPATH): Add $(GUILE_SRCDIR).
12928 (GUILE_DIR): New variable.
12929 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12930 (all): Add stamp-guile dependency.
12931 (stamp-guile): New rule.
12932 (clean-guile, install-guile, uninstall-guile): New rules.
12933 (install-only): Add install-guile dependency.
12934 (uninstall): Add uninstall-guile dependency.
12935 (clean): Add clean-guile dependency.
12936
ac020ec5
DE
129372014-02-09 Doug Evans <xdje42@gmail.com>
12938
12939 Revert this patch (which I approved, mea culpa).
12940
12941 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12942
12943 * Makefile.in (all-lib): Remove.
12944 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12945
2a081c59
JK
129462014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12947
12948 Fix Python stack corruption.
12949 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12950 gdb_py_longest.
12951
0a6bd22d
MK
129522014-02-08 Mark Kettenis <kettenis@gnu.org>
12953
12954 * Makefile.in (all-lib): Remove.
12955 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12956
1a860409
DE
129572014-02-07 Doug Evans <dje@google.com>
12958
12959 * extension-priv.h (extension_language_script_ops): Add comment.
12960 (extension_language_ops): Add comment.
caf5a491 12961 (active_ext_lang_state): Fix typo in comment.
1a860409 12962
d137e6dc
PA
129632014-02-07 Pedro Alves <palves@redhat.com>
12964
0dcb32c3 12965 PR breakpoints/16292
d137e6dc
PA
12966 * infrun.c (handle_signal_stop) <signal arrives while stepping
12967 over a breakpoint>: Switch back to the stepping thread.
12968
ce6d0892
YQ
129692014-02-07 Yao Qi <yao@codesourcery.com>
12970
12971 * target.c (target_xfer_partial): Return zero if LEN is zero.
12972
2ed4b548
YQ
129732014-02-07 Yao Qi <yao@codesourcery.com>
12974
12975 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12976 (ld_so_xfer_auxv): Likewise.
12977 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12978 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12979 * corelow.c (core_xfer_partial): Likewise.
12980 * ctf.c (ctf_xfer_partial): Likewise.
12981 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12982 (darwin_xfer_partial): Likewise.
12983 * exec.c (exec_xfer_partial): Likewise.
12984 * gnu-nat.c (gnu_xfer_partial): Likewise.
12985 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12986 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12987 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12988 * linux-nat.c (linux_xfer_siginfo): Likewise.
12989 (linux_proc_xfer_spu): Likewise.
12990 * procfs.c (procfs_xfer_partial): Likewise.
12991 * record-full.c (record_full_xfer_partial): Likewise.
12992 (record_full_core_xfer_partial): Likewise.
12993 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12994 * remote.c (remote_write_qxfer): Likewise.
12995 (remote_write_qxfer, remote_read_qxfer): Likewise.
12996 (remote_xfer_partial): Likewise.
12997 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12998 (rs6000_xfer_shared_libraries): Likewise.
12999 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13000 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13001 (spu_xfer_partial): Likewise.
13002 * target.c (memory_xfer_partial_1): Likewise.
13003 * tracepoint.c (tfile_xfer_partial): Likewise.
13004 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13005 (windows_xfer_partial): Likewise.
13006
c09f20e4
YQ
130072014-02-07 Yao Qi <yao@codesourcery.com>
13008
13009 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13010 comments.
13011 (core_xfer_shared_libraries_aix): Likewise.
13012 * gdbarch.c, gdbarch.h: Regenerated.
13013 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13014 ULONGEST. Change 'len_avail' type to ULONGEST.
13015 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13016 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13017 declaration.
13018 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13019
8635b3bf
YQ
130202014-02-07 Yao Qi <yao@codesourcery.com>
13021
13022 * corefile.c (memory_error): Get 'exception' from ERR and pass
13023 'exception' to throw_error.
13024
6dddc817
DE
130252014-02-06 Doug Evans <xdje42@gmail.com>
13026
13027 * configure.ac (libpython checking): Remove all but python.o from
13028 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13029 * configure: Regenerate.
13030
13031 * Makefile.in (SFILES): Add extension.c.
13032 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13033 (COMMON_OBS): Add extension.o.
13034 * extension.h: New file.
13035 * extension-priv.h: New file.
13036 * extension.c: New file.
13037
13038 * python/python-internal.h: #include "extension.h".
13039 (gdbpy_auto_load_enabled): Declare.
13040 (gdbpy_apply_val_pretty_printer): Declare.
13041 (gdbpy_apply_frame_filter): Declare.
13042 (gdbpy_preserve_values): Declare.
13043 (gdbpy_breakpoint_cond_says_stop): Declare.
13044 (gdbpy_breakpoint_has_cond): Declare.
13045 (void source_python_script_for_objfile): Delete.
13046 * python/python.c: #include "extension-priv.h".
13047 Delete inclusion of "observer.h".
13048 (extension_language_python): Moved here and renamed from
13049 script_language_python in py-auto-load.c.
13050 Redefined to be of type extension_language_defn.
13051 (python_extension_script_ops): New global.
13052 (python_extension_ops): New global.
13053 (struct python_env): New member previous_active.
13054 (restore_python_env): Call restore_active_ext_lang.
13055 (ensure_python_env): Call set_active_ext_lang.
13056 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13057 New arg extlang.
13058 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13059 New arg extlang.
13060 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13061 New arg extlang.
13062 (gdbpy_eval_from_control_command): Renamed from
13063 eval_python_from_control_command, made static. New arg extlang.
13064 (gdbpy_source_script) Renamed from source_python_script, made static.
13065 New arg extlang.
13066 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13067 result to int. New arg extlang.
13068 (gdbpy_source_objfile_script): Renamed from
13069 source_python_script_for_objfile, made static. New arg extlang.
13070 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13071 static. New args extlang, extlang_printers. Change result type to
13072 "void".
13073 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13074 static. New arg extlang. Rename arg printers to extlang_printers
13075 and change type to ext_lang_type_printers *.
13076 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13077 static. Replace argument arg with extlang, extlang_printers.
13078 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13079 (!HAVE_PYTHON, source_python_script): Delete.
13080 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13081 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13082 (!HAVE_PYTHON, start_type_printers): Delete.
13083 (!HAVE_PYTHON, apply_type_printers): Delete.
13084 (!HAVE_PYTHON, free_type_printers): Delete.
13085 (_initialize_python): Delete call to observer_attach_before_prompt.
13086 (finalize_python): Set/restore active extension language.
13087 (gdbpy_finish_initialization) Renamed from
13088 finish_python_initialization, made static. New arg extlang.
13089 (gdbpy_initialized): New function.
13090 * python/python.h: #include "extension.h". Delete #include
13091 "value.h", "mi/mi-cmds.h".
13092 (extension_language_python): Declare.
13093 (GDBPY_AUTO_FILE_NAME): Delete.
13094 (enum py_bt_status): Moved to extension.h and renamed to
13095 ext_lang_bt_status.
13096 (enum frame_filter_flags): Moved to extension.h.
13097 (enum py_frame_args): Moved to extension.h and renamed to
13098 ext_lang_frame_args.
13099 (finish_python_initialization): Delete.
13100 (eval_python_from_control_command): Delete.
13101 (source_python_script): Delete.
13102 (apply_val_pretty_printer): Delete.
13103 (apply_frame_filter): Delete.
13104 (preserve_python_values): Delete.
13105 (gdbpy_script_language_defn): Delete.
13106 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13107 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13108
13109 * auto-load.c: #include "extension.h".
13110 (GDB_AUTO_FILE_NAME): Delete.
13111 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13112 (script_language_gdb): Delete, moved to extension.c and renamed to
13113 extension_language_gdb.
13114 (source_gdb_script_for_objfile): Delete.
13115 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13116 (loaded_script): Change type of language member to
13117 struct extension_language_defn *.
13118 (init_loaded_scripts_info): Initialize
13119 unsupported_script_warning_printed.
13120 (maybe_add_script): Make static. Change type of language arg to
13121 struct extension_language_defn *.
13122 (clear_section_scripts): Reset unsupported_script_warning_printed.
13123 (auto_load_objfile_script_1): Rewrite to use extension language API.
13124 (auto_load_objfile_script): Make public. Remove support-compiled-in
13125 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13126 (source_section_scripts): Rewrite to use extension language API.
13127 (load_auto_scripts_for_objfile): Rewrite to use
13128 auto_load_scripts_for_objfile.
13129 (collect_matching_scripts_data): Change type of language member to
13130 struct extension_language_defn *.
13131 (auto_load_info_scripts): Change type of language arg to
13132 struct extension_language_defn *.
13133 (unsupported_script_warning_print): New function.
13134 (script_not_found_warning_print): Make static.
13135 (_initialize_auto_load): Rewrite construction of scripts-directory
13136 help.
13137 * auto-load.h (struct objfile): Add forward decl.
13138 (struct script_language): Delete.
13139 (struct auto_load_pspace_info): Add forward decl.
13140 (struct extension_language_defn): Add forward decl.
13141 (maybe_add_script): Delete.
13142 (auto_load_objfile_script): Declare.
13143 (script_not_found_warning_print): Delete.
13144 (auto_load_info_scripts): Update prototype.
13145 (auto_load_gdb_scripts_enabled): Declare.
13146 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13147 auto_load_python_scripts_enabled and made public.
13148 (script_language_python): Delete, moved to python.c.
13149 (gdbpy_script_language_defn): Delete.
13150 (info_auto_load_python_scripts): Update to use
13151 extension_language_python.
13152
13153 * breakpoint.c (condition_command): Replace call to
13154 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13155 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13156 with call to breakpoint_ext_lang_cond_says_stop.
13157 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13158 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13159 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13160 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13161 New arg slang.
13162 (local_setattro): Print name of extension language with existing
13163 stop condition.
13164
13165 * valprint.c (val_print, value_print): Update to call
13166 apply_ext_lang_val_pretty_printer.
13167 * cp-valprint.c (cp_print_value): Update call to
13168 apply_ext_lang_val_pretty_printer.
13169 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13170 (gdbpy_apply_val_pretty_printer): Renamed from
13171 apply_val_pretty_printer. New arg extlang.
13172 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13173
13174 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13175 extension language API.
13176 * cli/cli-script.c (execute_control_command): Update to call
13177 eval_ext_lang_from_control_command.
13178
13179 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13180 enum ext_lang_bt_status values. Update call to
13181 apply_ext_lang_frame_filter.
13182 (mi_cmd_stack_list_locals): Ditto.
13183 (mi_cmd_stack_list_args): Ditto.
13184 (mi_cmd_stack_list_variables): Ditto.
13185 * mi/mi-main.c: Delete #include "python/python-internal.h".
13186 Add #include "extension.h".
13187 (mi_cmd_list_features): Replace reference to python internal variable
13188 gdb_python_initialized with call to ext_lang_initialized_p.
13189
13190 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13191 Update to use enum ext_lang_frame_args. Update to call
13192 apply_ext_lang_frame_filter.
13193 * python/py-framefilter.c (extract_sym): Update to use enum
13194 ext_lang_bt_status.
13195 (extract_value, py_print_type, py_print_value): Ditto.
13196 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13197 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13198 (py_print_frame): Ditto.
13199 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13200 New arg extlang. Update to use enum ext_lang_bt_status.
13201
13202 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13203 finish_python_initialization. Replace with call to
13204 finish_ext_lang_initialization.
13205
13206 * typeprint.c (do_free_global_table): Update to call
13207 free_ext_lang_type_printers.
13208 (create_global_typedef_table): Update to call
13209 start_ext_lang_type_printers.
13210 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13211 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13212 (type_print_options): Change type of global_printers from "void *"
13213 to "struct ext_lang_type_printers *".
13214
13215 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13216 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13217 (gdbpy_preserve_values): Renamed from preserve_python_values.
13218 New arg extlang.
13219 (!HAVE_PYTHON, preserve_python_values): Delete.
13220
13221 * utils.c (quit_flag): Delete, moved to extension.c.
13222 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13223 extension.c.
13224
13225 * eval.c: Delete #include "python/python.h".
13226 * main.c: Delete #include "python/python.h".
13227
13228 * defs.h: Update comment.
13229
6af79985
JB
132302014-02-06 Joel Brobecker <brobecker@adacore.com>
13231
13232 GDB 7.7 released.
13233
12c5175d
MK
132342014-02-05 Mark Kettenis <kettenis@gnu.org>
13235
13236 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13237 defined.
13238
8dc5b319
YQ
132392014-02-05 Yao Qi <yao@codesourcery.com>
13240
13241 * remote.c (remote_pass_signals): Remove local 'buf' and use
13242 rs->buf.
13243 (remote_program_signals): Likewise.
13244
de7b2893
YQ
132452014-02-05 Yao Qi <yao@codesourcery.com>
13246
13247 * ctf.c: Include "inferior.h" and "gdbthread.h".
13248 (CTF_PID): A new macro.
13249 (ctf_open): Call inferior_appeared and add_thread_silent.
13250 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13251 (ctf_thread_alive): New function.
13252 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13253
66d032ac
YQ
132542014-02-05 Yao Qi <yao@codesourcery.com>
13255
13256 Revert this patch:
13257
13258 2013-05-24 Yao Qi <yao@codesourcery.com>
13259
13260 * tracepoint.c (TFILE_PID): Remove.
13261 (tfile_open): Don't add thread and inferior.
13262 (tfile_close): Don't set 'inferior_ptid'. Don't call
13263 exit_inferior_silent.
13264 (tfile_thread_alive): Remove.
13265 (init_tfile_ops): Don't set field 'to_thread_alive' of
13266 tfile_ops.
13267
f4ccffad
CE
132682014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13269
13270 * remote.c (remote_start_remote): Call remote_check_symbols even
13271 if only symbol-file (not file) has been given.
13272
591a12a1
UW
132732014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13274
13275 * gdbarch.sh (skip_entrypoint): New callback.
13276 * gdbarch.c, gdbarch.h: Regenerate.
13277 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13278 * infrun.c (fill_in_stop_func): Likewise.
13279 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13280 (ppc_elfv2_elf_make_msymbol_special): New function.
13281 (ppc_elfv2_skip_entrypoint): Likewise.
13282 (ppc_linux_init_abi): Install them for ELFv2.
13283
cc0e89c5
UW
132842014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13285
13286 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13287 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13288 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13289 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13290 structures returned in GPRs.
13291
52f548e4
UW
132922014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13293
13294 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13295 offset to the stack parameter list for the ELFv2 ABI.
13296
d4094b6a
UW
132972014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13298
13299 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13300 set_gdbarch_convert_from_func_ptr_addr and
13301 set_gdbarch_elf_make_msymbol_special for ELFv1.
13302 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13303 function descriptors on ELFv1.
13304 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13305 set up r12 at function entry.
13306
cd453cd0
UW
133072014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13308
13309 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13310 (struct gdbarch_tdep): New member elf_abi.
13311
13312 * rs6000-tdep.c: Include "elf/ppc64.h".
13313 (rs6000_gdbarch_init): Detect ELF ABI version.
13314
0ff3e01f
UW
133152014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13316
13317 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13318 within a register pair holding a DFP 128-bit value on little-endian.
13319 (ppc64_sysv_abi_return_value_base): Likewise.
13320 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13321 (dfp_pseudo_register_write): Likewise.
13322
5b757e5d
UW
133232014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13324
13325 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13326 offset on little-endian when passing _Decimal32.
13327 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13328
084ee545
UW
133292014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13330
13331 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13332 of the overlapped FP register within the VSX register on little-
13333 endian platforms.
13334 (efpr_pseudo_register_write): Likewise.
13335
d63167af
UW
133362014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13337
13338 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13339 offset on little-endian when passing small structures.
13340
e765b44c
UW
133412014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13342
13343 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13344 (struct ppc64_sysv_argpos): New data structure.
13345 (ppc64_sysv_abi_push_float): Remove.
13346 (ppc64_sysv_abi_push_val): New function.
13347 (ppc64_sysv_abi_push_integer): Likewise.
13348 (ppc64_sysv_abi_push_freg): Likewise.
13349 (ppc64_sysv_abi_push_vreg): Likewise.
13350 (ppc64_sysv_abi_push_param): Likewise.
13351 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13352 (ppc64_sysv_abi_return_value_base): New function.
13353 (ppc64_sysv_abi_return_value): Refactor to use it.
13354
36c24d95
UW
133552014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13356
13357 * NEWS: Document new target powerpc64le-*-linux*.
13358
26fd9228
MK
133592014-02-04 Mark Kettenis <kettenis@gnu.org>
13360
13361 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13362 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13363 core dumps.
13364 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13365 register set used in ELF core dumps. Add floating-point register set.
13366
c5bb7362
KB
133672014-02-03 Kevin Buettner <kevinb@redhat.com>
13368
74228e77 13369 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
13370 dwarf2_to_gdb[] table using symbolic constants. Adjust
13371 penultimate entry from number representing the PC register
13372 to symbolic constant representing the MDR register. Add
13373 constant for the PC register to the end of the table.
13374
af09351e
MK
133752014-02-03 Mark Kettenis <kettenis@gnu.org>
13376
13377 * bsd-kvm.c: Include <sys/param.h>
13378
8507e05d
MK
133792014-02-03 Mark Kettenis <kettenis@gnu.org>
13380
13381 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13382
ae56bfb8
JB
133832014-01-31 Joel Brobecker <brobecker@adacore.com>
13384
13385 * ada-lang.h (clear_ada_sym_cache): Delete.
13386
718ee4dc
UW
133872014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13388
13389 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13390
401e27fd
JM
133912014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13392
13393 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13394 the sigreturn register save area only if the syscall is
13395 sigreturn.
13396
a7c88acd
JB
133972014-01-29 Joel Brobecker <brobecker@adacore.com>
13398
13399 * valops.c (value_slice): Minor reformatting.
13400
fa0079ea
UW
134012014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13402
13403 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13404
c6044dd1
JB
134052014-01-28 Joel Brobecker <brobecker@adacore.com>
13406
13407 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13408 New static globals.
13409 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13410 (ada_ignore_descriptive_types_p): New static global.
13411 (find_parallel_type_by_descriptive_type): Return immediately
13412 if ada_ignore_descriptive_types_p is set.
13413 (_initialize_ada_language): Register new commands "maintenance
13414 set ada", "maintenance show ada", "maintenance set ada
13415 ignore-descriptive-types" and "maintenance show ada
13416 ignore-descriptive-types".
13417 * NEWS: Add entry for new "maint ada set/show
13418 ignore-descriptive-types" commands.
13419
568e808b
MM
134202014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13421
13422 * record-btrace.c (record_btrace_close): Call btrace_teardown
13423 for all threads.
13424
467d141b
JB
134252014-01-27 Joel Brobecker <brobecker@adacore.com>
13426
13427 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13428 "ui-out.h".
13429
fb151210
JB
134302014-01-27 Joel Brobecker <brobecker@adacore.com>
13431
13432 * ada-typeprint (type_is_full_subrange_of_target_type):
13433 New function.
13434 (print_range): Add parameter bounds_prefered_p. If not set,
13435 try printing range types using the name of their base type.
13436 (print_range_type): Add parameter bounds_prefered_p.
13437 Use it in call to print_range.
13438 (print_array_type, ada_print_type): Update calls to print_range
13439 and print_range_type.
13440
aba02109
JB
134412014-01-27 Joel Brobecker <brobecker@adacore.com>
13442
13443 * ada-typeprint.c (print_array_type, print_choices, print_range)
13444 (print_range_bound, print_dynamic_range_bound, print_range_type):
13445 Remove declaration.
13446
e62e21fd
JB
134472014-01-27 Joel Brobecker <brobecker@adacore.com>
13448
13449 * ada-typeprint.c (print_range): Add missing empty line
13450 after local declaration.
13451
859cf5d1
JB
134522014-01-27 Joel Brobecker <brobecker@adacore.com>
13453
13454 * ada-valprint.c (print_optional_low_bound): Get index_type's
13455 target type for as long as it is a TYPE_CODE_RANGE.
13456
25790f6f
JB
134572014-01-27 Joel Brobecker <brobecker@adacore.com>
13458
13459 * procfs.c (procfs_make_note_section): Remove assertion and
13460 associated comment.
13461
6b6aa828
YQ
134622014-01-24 Yao Qi <yao@codesourcery.com>
13463
13464 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13465 * corelow.c (get_core_siginfo): Likewise.
13466
5d6df423
YQ
134672014-01-24 Yao Qi <yao@codesourcery.com>
13468
13469 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13470 ULONGEST. Don't check 'len' is negative.
13471 (remote_write_bytes): Change type of 'len' to ULONGEST.
13472
83b645b8
TT
134732014-01-23 Tom Tromey <tromey@redhat.com>
13474
13475 PR python/16485:
13476 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13477 Handle exception from frame.block.
13478 (FrameVars.fetch_frame_locals): Likewise.
13479
0740f8d8
TT
134802014-01-23 Tom Tromey <tromey@redhat.com>
13481
13482 PR python/16487:
13483 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13484 on a NULL pointer. Move "goto error" to correct place.
13485
21909fa1
TT
134862014-01-23 Tom Tromey <tromey@redhat.com>
13487
13488 PR python/16491:
13489 * python/py-framefilter.c (apply_frame_filter): Call
13490 ensure_python_env after computing gdbarch.
13491
17fde6d0
YQ
134922014-01-23 Yao Qi <yao@codesourcery.com>
13493
13494 * target.c (raw_memory_xfer_partial): Change argument type
13495 from void * to gdb_byte *.
13496 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13497
87ce2a04
DE
134982014-01-22 Doug Evans <dje@google.com>
13499
13500 New gdbserver option --debug-format=timestamp.
13501 * NEWS: Mention it.
13502
237b092b
AA
135032014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13504
13505 * syscalls/s390x-linux.xml: New file.
13506 * syscalls/s390-linux.xml: New file.
13507 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13508 (XML_SYSCALL_FILENAME_S390X): Likewise.
13509 (op_svc): New enum value for SVC opcode.
13510 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13511 (s390_linux_get_syscall_number): New function.
13512 (s390_gdbarch_init): Register '*get_syscall_number' and the
13513 syscall xml file name.
13514 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13515 "s390-linux.xml" and "s390x-linux.xml".
13516 * NEWS: Announce new feature.
13517
54bff650
BS
135182014-01-22 Baruch Siach <baruch@tkos.co.il>
13519
13520 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13521
14e361d7
PA
135222014-01-22 Pedro Alves <palves@redhat.com>
13523
13524 * xtensa-config.c: Include defs.h.
13525
46bbb3ed
JB
135262014-01-22 Joel Brobecker <brobecker@adacore.com>
13527
13528 * common/common-utils.h: Add "ARI:" comment beside __func__
13529 reference.
13530
3a80edfc
JB
135312014-01-22 Joel Brobecker <brobecker@adacore.com>
13532
13533 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13534 documentation a bit.
13535
4869db5e
RM
135362014-01-21 Roland McGrath <mcgrathr@google.com>
13537
13538 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13539 * configure: Regenerate.
13540 * aclocal.m4: Regenerate.
13541 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13542 New substituted variables.
13543 (install-strip): New target.
13544 (INSTALL_SCRIPT): New substituted variable.
13545 (FLAGS_TO_PASS): Add it.
13546 (install-only): Use $(INSTALL_SCRIPT) rather than
13547 $(INSTALL_PROGRAM) for gcore.
13548
9ea4267d
TT
135492014-01-20 Tom Tromey <tromey@redhat.com>
13550
13551 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13552 together.
13553
1f2bdf09
TT
135542014-01-20 Tom Tromey <tromey@redhat.com>
13555
13556 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13557 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13558 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13559 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13560 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13561 (struct cmd_list_element) <flags>: Remove.
13562 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13563 doc_allocated>: New fields.
13564 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13565 bitfields.
13566 * maint.c (maintenance_do_deprecate): Update.
13567 * top.c (execute_command): Update.
13568
e671835b
BS
135692014-01-20 Baruch Siach <baruch@tkos.co.il>
13570
13571 * xtensa-linux-nat.c: Include asm/ptrace.h.
13572
50367cd2
IB
135732014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13574
13575 * Makefile.in (SFILES): Add d-support.c.
13576 (COMMON_OBS): Add d-support.o.
13577 * d-lang.h (d_parse_symbol): Add comment, now defined in
13578 d-support.c.
13579 * d-lang.c (parse_call_convention)
13580 (parse_attributes, parse_function_types)
13581 (parse_function_args, parse_type, parse_identifier)
13582 (call_convention_p, d_parse_symbol): Move functions to ...
13583 * d-support.c: ... New file.
13584
ec9f644a
IB
135852014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13586
13587 * d-lang.h (d_parse_symbol): Add declaration.
13588 * d-lang.c (extract_identifiers)
13589 (extract_type_info): Remove functions.
13590 (parse_call_convention, parse_attributes)
13591 (parse_function_types, parse_function_args)
13592 (parse_type, parse_identifier, call_convention_p)
13593 (d_parse_symbol): New functions.
13594 (d_demangle): Use d_parse_symbol to demangle D symbols.
13595
94b1b47e
IB
135962014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13597
13598 * d-lang.h (struct builtin_d_type): New data type.
13599 (builtin_d_type): Add declaration.
13600 * d-lang.c (d_language_arch_info, build_d_types)
13601 (builtin_d_type): New functions.
13602 (enum d_primitive_types): New data type.
13603 (d_language_defn): Change c_language_arch_info to
13604 d_language_arch_info.
13605 (d_type_data): New static variable.
13606 (_initialize_d_language): Initialize d_type_data.
13607
63778547
IB
136082014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13609
13610 * d-lang.h (d_main_name): Add declaration.
13611 * d-lang.c (d_main_name): New function.
13612 * symtab.c (find_main_name): Add call to d_main_name.
13613
3271ba66
IB
136142014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13615
13616 * d-lang.c (d_language_defn): Change macro_expansion_c to
13617 macro_expansion_no.
13618
d36b3012
IB
136192014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13620
13621 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13622
c90a6fb7
SDJ
136232014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13624
13625 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13626 gdb_exception" declaration.
13627 * remote.c (getpkt_or_notif_sane): Likewise.
13628
749234e5
DE
136292014-01-17 Doug Evans <dje@google.com>
13630
13631 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13632 function, contents of dirnames_to_char_ptr_vec_append moved here.
13633 (delim_string_to_char_ptr_vec): New function.
13634 (dirnames_to_char_ptr_vec_append): Rewrite.
13635 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13636
df049a58
DE
136372014-01-17 Doug Evans <dje@google.com>
13638
13639 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13640 and moved here ...
13641 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13642 #include "common-utils.h".
13643 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13644 * common/vec.h (VEC_ASSERT_PASS): Update.
13645 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13646 (MACH_CHECK_ERROR): Update.
13647
69f97648
SM
136482014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13649
13650 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13651 comments.
13652 * gdbarch.h: Regenerate.
13653
98b1cfdc
TT
136542014-01-16 Tom Tromey <tromey@redhat.com>
13655
13656 * value.c (struct value) <regnum>: Move earlier.
13657
77a19445
TT
136582014-01-16 Tom Tromey <tromey@redhat.com>
13659
13660 * remote.c (extended_remote_create_inferior): Rename from
13661 extended_remote_create_inferior_1. Add "ops" argument. Remove
13662 old implementation.
13663
62261490
PA
136642014-01-16 Pedro Alves <palves@redhat.com>
13665
13666 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13667 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13668 the backchain.
13669
4d65956b
DE
136702014-01-16 Doug Evans <dje@google.com>
13671
13672 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13673
52834460
MM
136742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13675
13676 * btrace.h (btrace_thread_flag): New.
13677 (struct btrace_thread_info) <flags>: New.
13678 * record-btrace.c (record_btrace_resume_thread)
13679 (record_btrace_find_thread_to_move, btrace_step_no_history)
13680 (btrace_step_stopped, record_btrace_start_replaying)
13681 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13682 (record_btrace_find_resume_thread): New.
13683 (record_btrace_resume, record_btrace_wait): Extend.
13684 (record_btrace_can_execute_reverse): New.
13685 (record_btrace_open): Fail in non-stop mode.
13686 (record_btrace_set_replay): Split into this, ...
13687 (record_btrace_stop_replaying): ... this, ...
13688 (record_btrace_clear_histories): ... and this.
13689 (init_record_btrace_ops): Init to_can_execute_reverse.
13690 * NEWS: Announce it.
13691
118e6252
MM
136922014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13693
13694 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13695 (forward_target_decr_pc_after_break)
13696 (target_decr_pc_after_break): New.
13697 * target.c (forward_target_decr_pc_after_break)
13698 (target_decr_pc_after_break): New.
13699 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13700 instead of gdbarch_decr_pc_after_break.
13701 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13702 instead of gdbarch_decr_pc_after_break.
13703 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13704 instead of gdbarch_decr_pc_after_break.
13705 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13706 instead of gdbarch_decr_pc_after_break.
13707 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13708 instead of gdbarch_decr_pc_after_break.
13709 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13710 instead of gdbarch_decr_pc_after_break.
13711
6e07b1d2
MM
137122014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13713
13714 * btrace.c: Include regcache.h.
13715 (btrace_add_pc): New.
13716 (btrace_enable): Call btrace_add_pc.
13717 (btrace_is_empty): New.
13718 * btrace.h (btrace_is_empty): New.
13719 * record-btrace.c (require_btrace, record_btrace_info): Call
13720 btrace_is_empty.
13721
969c39fb
MM
137222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13723
13724 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13725 Support delta reads.
13726 (linux_disable_btrace): Change return type.
13727 * common/linux-btrace.h (linux_read_btrace): Change parameters
13728 and return type to allow error reporting. Update users.
13729 (linux_disable_btrace): Change return type. Update users.
13730 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13731 New.
13732 (btrace_error): New.
13733 (btrace_block) <begin>: Comment on BEGIN == 0.
13734 * btrace.c (btrace_compute_ftrace): Start from the end of
13735 the current trace.
13736 (btrace_stitch_trace, btrace_clear_history): New.
13737 (btrace_fetch): Read delta trace, return if replaying.
13738 (btrace_clear): Move clear history code to btrace_clear_history.
13739 (parse_xml_btrace): Throw an error if parsing failed.
13740 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13741 and return type to allow error reporting.
13742 (target_read_btrace): Change parameters and return type to allow
13743 error reporting.
13744 * target.c (target_read_btrace): Update.
13745 * remote.c (remote_read_btrace): Support delta reads. Pass
13746 errors on.
13747 * NEWS: Announce it.
13748
0b722aec
MM
137492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13750
13751 * record.h (record_btrace_frame_unwind)
13752 (record_btrace_tailcall_frame_unwind): New declarations.
13753 * dwarf2-frame: Include record.h
13754 (dwarf2_frame_cfa): Throw an error for btrace frames.
13755 * record-btrace.c: Include hashtab.h.
13756 (btrace_get_bfun_name): New.
13757 (btrace_call_history): Call btrace_get_bfun_name.
13758 (struct btrace_frame_cache): New.
13759 (bfcache): New.
13760 (bfcache_hash, bfcache_eq, bfcache_new): New.
13761 (btrace_get_frame_function): New.
13762 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13763 (record_btrace_frame_this_id): Compute own id.
13764 (record_btrace_frame_prev_register): Provide PC, throw_error
13765 for all other registers.
13766 (record_btrace_frame_sniffer): Detect btrace frames.
13767 (record_btrace_tailcall_frame_sniffer): New.
13768 (record_btrace_frame_dealloc_cache): New.
13769 (record_btrace_frame_unwind): Add new functions.
13770 (record_btrace_tailcall_frame_unwind): New.
13771 (_initialize_record_btrace): Allocate cache.
13772 * btrace.c (btrace_clear): Call reinit_frame_cache.
13773 * NEWS: Announce it.
13774
066ce621
MM
137752014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13776
13777 * record-btrace.c (record_btrace_set_replay)
13778 (record_btrace_goto_begin, record_btrace_goto_end)
13779 (record_btrace_goto): New.
13780 (init_record_btrace_ops): Initialize them.
13781 * NEWS: Announce it.
13782
e2887aa3
MM
137832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13784
13785 * record-btrace.c (record_btrace_find_new_threads)
13786 (record_btrace_thread_alive): New.
13787 (init_record_btrace_ops): Initialize to_find_new_threads and
13788 to_thread_alive.
13789
b2f4cfde
MM
137902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13791
13792 * record-btrace.c (record_btrace_resume): New.
13793 (record_btrace_wait): New.
13794 (init_record_btrace_ops): Initialize to_wait and to_resume.
13795
633785ff
MM
137962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13797
13798 * record-btrace.c (record_btrace_xfer_partial)
13799 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13800 (record_btrace_allow_memory_access): New.
13801 (init_record_btrace_ops): Initialize new methods.
13802 * target.c (raw_memory_xfer_partial): Bail out if target reports
13803 that this memory is not available.
13804
3db08215
MM
138052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13806
13807 * target.h (target_ops) <to_insert_breakpoint>
13808 <to_remove_breakpoint>: Add target_ops parameter.
13809 (forward_target_insert_breakpoint): New.
13810 (forward_target_remove_breakpoint): New.
13811 (memory_remove_breakpoint, memory_insert_breakpoint):
13812 Add target_ops parameter.
13813 * target.c (target_insert_breakpoint): Split into this and ...
13814 (forward_target_insert_breakpoint): ... this.
13815 (target_remove_breakpoint): Split into this and ...
13816 (forward_target_remove_breakpoint): ... this.
13817 (debug_to_insert_breakpoint): Add target_ops parameter.
13818 Call forward_target_insert_breakpoint.
13819 (debug_to_remove_breakpoint): Add target_ops parameter.
13820 Call forward_target_remove_breakpoint.
13821 (update_current_target): Do not inherit or default to_insert_breakpoint
13822 and to_remove_breakpoint.
13823 * corelow.c (ignore): Add target_ops parameter.
13824 * exec.c (ignore): Add target_ops parameter.
13825 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13826 Add target_ops parameter.
13827 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13828 Add target_ops parameter.
13829 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13830 Add target_ops parameter.
13831 * record-full.c (record_full_beneath_to_insert_breakpoint)
13832 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13833 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13834 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13835 (record_full_core_remove_breakpoint): Add target_ops parameter.
13836 Update users.
13837 (record_full_beneath_to_insert_breakpoint_ops)
13838 (record_full_beneath_to_remove_breakpoint_ops)
13839 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13840 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13841 tmp_to_remove_breakpoint_ops,
13842 record_full_beneath_to_insert_breakpoint_ops, and
13843 record_full_beneath_to_remove_breakpoint_ops.
13844 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13845 (m32r_remove_breakpoint): Add target_ops parameter.
13846 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13847 Add target_ops parameter.
13848 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13849 Add target_ops parameter.
13850
cecac1ab
MM
138512014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13852 Markus Metzger <markus.t.metzger@intel.com>
13853
13854 * record-btrace.c: Include frame-unwind.h.
13855 (record_btrace_frame_unwind_stop_reason)
13856 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13857 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13858 New.
13859 (init_record_btrace_ops): Install it.
13860
824344ca
MM
138612014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13862
13863 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13864 get_prev_frame_1.
13865
32261e52
MM
138662014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13867
13868 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13869 earlier.
13870
ea001bdc
MM
138712014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13872
13873 * frame-unwind.c: Include target.h.
13874 (frame_unwind_try_unwinder): New function with code from ...
13875 (frame_unwind_find_by_frame): ... here. New variable
13876 unwinder_from_target, call also target_get_unwinder)
13877 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13878 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13879 * target.h (struct target_ops): New fields to_get_unwinder and
13880 to_get_tailcall_unwinder.
13881 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13882
1f3ef581
MM
138832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13884
13885 * record-btrace.c (record_btrace_fetch_registers)
13886 (record_btrace_store_registers)
13887 (record_btrace_to_prepare_to_store): New.
13888 (init_record_btrace_ops): Add the above.
13889
f32dbf8c
MM
138902014-01-16 Tom Tromey <tromey@redhat.com>
13891
13892 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13893 * target.h (struct target_ops) <to_prepare_to_store>: Add
13894 argument.
13895 (target_prepare_to_store): Add argument.
13896 * target.c (debug_to_prepare_to_store): Add argument.
13897 (update_current_target): Update.
13898 * remote.c (remote_prepare_to_store): Add 'self' argument.
13899 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13900 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13901 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13902 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13903 argument.
13904 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13905 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13906 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13907 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13908 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13909
07bbe694
MM
139102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13911
13912 * btrace.h (replay) <replay>: New.
13913 (btrace_is_replaying): New.
13914 * btrace.c (btrace_clear): Free replay iterator.
13915 (btrace_is_replaying): New.
13916 * record-btrace.c (record_btrace_is_replaying): New.
13917 (record_btrace_info): Print insn number if replaying.
13918 (record_btrace_insn_history): Start at replay position.
13919 (record_btrace_call_history): Start at replay position.
13920 (init_record_btrace_ops): Init to_record_is_replaying.
13921
0688d04e
MM
139222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13923
13924 * record-btrace.c (record_btrace_insn_history_range): Include
13925 end.
13926 (record_btrace_insn_history_from): Adjust range.
13927 (record_btrace_call_history_range): Include
13928 end.
13929 (record_btrace_call_history_from): Adjust range.
13930 * NEWS: Announce changes.
13931
8710b709
MM
139322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13933
13934 * record.h (enum record_print_flag)
13935 <record_print_indent_calls>: New.
13936 * record.c (get_call_history_modifiers): Recognize /c modifier.
13937 (_initialize_record): Document /c modifier.
13938 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13939 Reorder fields. Optionally indent the function name. Update
13940 all users.
13941 * NEWS: Announce changes.
13942
d0fa7535
MM
139432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13944
13945 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13946
5de9129b
MM
139472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13948
13949 * btrace.c (ftrace_new_function): Start counting at one.
13950 * record-btrace.c (record_btrace_info): Adjust number of calls
13951 and insns.
13952 * NEWS: Announce it.
13953
7acbe133
MM
139542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13955
13956 * record-btrace.c (btrace_call_history_insn_range): Print
13957 insn range as [begin, end].
13958
23a7fe75
MM
139592014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13960
13961 * btrace.h (struct btrace_func_link): New.
13962 (enum btrace_function_flag): New.
13963 (struct btrace_inst): Rename to ...
13964 (struct btrace_insn): ...this. Update all users.
13965 (struct btrace_func) <ibegin, iend>: Remove.
13966 (struct btrace_func_link): New.
13967 (struct btrace_func): Rename to ...
13968 (struct btrace_function): ...this. Update all users.
13969 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13970 (number, level, flags>: New.
13971 (struct btrace_insn_iterator): Rename to ...
13972 (struct btrace_insn_history): ...this.
13973 Update all users.
13974 (struct btrace_insn_iterator, btrace_call_iterator): New.
13975 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13976 (struct btrace_target_info) <begin, end, level>
13977 <insn_history, call_history>: New.
13978 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13979 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13980 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13981 (btrace_call_number, btrace_call_begin, btrace_call_end)
13982 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13983 (btrace_find_function_by_number, btrace_set_insn_history)
13984 (btrace_set_call_history): New.
13985 * btrace.c (btrace_init_insn_iterator)
13986 (btrace_init_func_iterator, compute_itrace): Remove.
13987 (ftrace_print_function_name, ftrace_print_filename)
13988 (ftrace_skip_file): Change
13989 parameter to const.
13990 (ftrace_init_func): Remove.
13991 (ftrace_debug): Use new btrace_function fields.
13992 (ftrace_function_switched): Also consider gaining and
13993 losing symbol information).
13994 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13995 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13996 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13997 New.
13998 (ftrace_new_function): Move. Remove debug print.
13999 (ftrace_update_lines, ftrace_update_insns): New.
14000 (ftrace_update_function): Check for call, ret, and jump.
14001 (compute_ftrace): Renamed to ...
14002 (btrace_compute_ftrace): ...this. Rewritten to compute call
14003 stack.
14004 (btrace_fetch, btrace_clear): Updated.
14005 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14006 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14007 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14008 (btrace_call_number, btrace_call_begin, btrace_call_end)
14009 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14010 (btrace_find_function_by_number, btrace_set_insn_history)
14011 (btrace_set_call_history): New.
14012 * record-btrace.c (require_btrace): Use new btrace thread
14013 info fields.
14014 (record_btrace_info, btrace_insn_history)
14015 (record_btrace_insn_history, record_btrace_insn_history_range):
14016 Use new btrace thread info fields and new iterator.
14017 (btrace_func_history_src_line): Rename to ...
14018 (btrace_call_history_src_line): ...this. Use new btrace
14019 thread info fields.
14020 (btrace_func_history): Rename to ...
14021 (btrace_call_history): ...this. Use new btrace thread info
14022 fields and new iterator.
14023 (record_btrace_call_history, record_btrace_call_history_range):
14024 Use new btrace thread info fields and new iterator.
14025
8372a7cb
MM
140262014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14027
14028 * frame.h (frame_id_build_unavailable_stack_special): New.
14029 * frame.c (frame_id_build_unavailable_stack_special): New.
14030
c2170eef
MM
140312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14032
14033 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14034 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14035 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14036 to gdbarch.
14037 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14038 (i386_insn_is_jump, i386_jmp_p): New.
14039 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14040 insn_is_jump to gdbarch.
14041 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14042 * gdbarch.h: Regenerated.
14043 * gdbarch.c: Regenerated.
14044 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14045 (default_insn_is_jump): New.
14046 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14047 (default_insn_is_jump): New.
14048
864089d2
MM
140492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14050
14051 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14052 Change to ...
14053 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14054 (btrace_read_type) <btrace_read_new>: Change to ...
14055 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14056
ed9edfb5
MM
140572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14058
14059 * common/linux-btrace.c (linux_read_btrace): Free trace from
14060 previous iteration.
14061
fbcbc3fd
DE
140622014-01-15 Doug Evans <dje@google.com>
14063
14064 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14065 uint32_t.
14066
3d548a53
TT
140672014-01-15 Tom Tromey <tromey@redhat.com>
14068
14069 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14070 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14071 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14072 (set_objfile_main_name): New function.
14073 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14074 language_of_main>: New fields.
14075 (set_objfile_main_name): Declare.
14076 * symtab.c (find_main_name): Loop over objfiles to find the main
14077 name and language.
14078 (set_main_name): Now static.
14079 (get_main_info): Add comment.
14080 * symtab.h (set_main_name): Don't declare.
14081
32ac0d11
TT
140822014-01-15 Tom Tromey <tromey@redhat.com>
14083
14084 * symtab.c (main_progspace_key): New global.
14085 (struct main_info): New.
14086 (name_of_main, language_of_main): Remove.
14087 (get_main_info, main_info_cleanup): New function.
14088 (set_main_name, main_name, main_language): Use get_main_info.
14089 (_initialize_symtab): Initialize main_progspace_key.
14090
9e6c82ad
TT
140912014-01-15 Tom Tromey <tromey@redhat.com>
14092
14093 * dbxread.c (process_one_symbol): Update.
14094 * dwarf2read.c (read_partial_die): Update.
14095 * symfile.c (set_initial_language): Call main_language.
14096 * symtab.c (language_of_main): Now static.
14097 (set_main_name): Add 'lang' parameter.
14098 (find_main_name): Update.
14099 (main_language): New function.
14100 (symtab_observer_executable_changed): Update.
14101 * symtab.h (set_main_name): Update.
14102 (language_of_main): Remove.
14103 (main_language): Declare.
14104
6ef55de7
TT
141052014-01-15 Tom Tromey <tromey@redhat.com>
14106
14107 * symfile.c (init_entry_point_info): Use new "initialized" field.
14108 Update.
14109 * objfiles.h (struct entry_point) <initialized>: New field.
14110 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14111 (struct objfile) <ei>: ...here. Remove.
14112 * objfiles.c (entry_point_address_query): Update.
14113
53eddfa6
TT
141142014-01-15 Tom Tromey <tromey@redhat.com>
14115
14116 * objfiles.c (entry_point_address_query): Relocate entry point
14117 address.
14118 (objfile_relocate1): Do not relocate entry point address.
14119 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14120 <the_bfd_section_index>: New field.
14121 * symfile.c (init_entry_point_info): Find the entry point's
14122 section.
14123
d56e56aa
TT
141242014-01-15 Tom Tromey <tromey@redhat.com>
14125
14126 * solib-frv.c (enable_break): Use entry_point_address_query.
14127
33a97bbe
OJ
141282014-01-15 Omair Javaid <omair.javaid@linaro.org>
14129
14130 * NEWS: Add note on improved process record-replay on
14131 arm*-linux* targets.
14132
c6ec2b30
OJ
141332014-01-15 Omair Javaid <omair.javaid@linaro.org>
14134
14135 * arm-tdep.c (enum arm_record_result): New enum.
14136 (arm_record_unsupported_insn): New function.
14137 (arm_record_coproc_data_proc): Removed.
14138 (thumb2_record_ld_st_multiple): New function.
14139 (thumb2_record_ld_st_dual_ex_tbb): New function.
14140 (thumb2_record_data_proc_sreg_mimm): New function.
14141 (thumb2_record_ps_dest_generic): New function.
14142 (thumb2_record_branch_misc_cntrl): New function.
14143 (thumb2_record_str_single_data): New function.
14144 (thumb2_record_ld_mem_hints): New function.
14145 (thumb2_record_ld_word): New function.
14146 (thumb2_record_lmul_lmla_div): New function.
14147 (thumb2_record_decode_insn_handler): New function.
14148 (decode_insn): Add thumb32 instruction handlers.
14149
97dfe206
OJ
141502014-01-15 Omair Javaid <omair.javaid@linaro.org>
14151
14152 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14153 (struct arm_linux_record_tdep): Declare.
14154 (arm_canonicalize_syscall): New function.
14155 (arm_all_but_pc_registers_record): New function.
14156 (arm_linux_syscall_record): New function.
14157 (arm_linux_init_abi): Add syscall recording constructs.
14158 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14159 decoding. (arm_record_coproc_data_proc): Update arm syscall
14160 decoding.
14161 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14162 <arm_syscall_record>: New field.
14163 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14164 gdb_target_obs.
14165
9904a494
OJ
141662014-01-15 Omair Javaid <omair.javaid@linaro.org>
14167
14168 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14169 register for push instruction recording.
14170
f969241e
OJ
141712014-01-15 Omair Javaid <omair.javaid@linaro.org>
14172
14173 * arm-tdep.c (thumb_record_misc): Update to correct logical
14174 error while recording ldm, ldmia and pop instructions.
14175
bfbbec00
OJ
141762014-01-15 Omair Javaid <omair.javaid@linaro.org>
14177
14178 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14179
e40adcc9
PA
141802014-01-15 Pedro Alves <palves@redhat.com>
14181
14182 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14183 (go32_resume, go32_fetch_registers, store_register)
14184 (go32_store_registers, go32_prepare_to_store)
14185 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14186 (go32_create_inferior, go32_can_run, go32_terminal_init)
14187 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14188 declarations.
14189
b0a16e66
TT
141902014-01-15 Tom Tromey <tromey@redhat.com>
14191
14192 * target.h (async_callback_ftype): New typedef.
14193 (struct target_ops) <to_async>: Use it.
14194
bf7105a4
JB
141952014-01-15 Joel Brobecker <brobecker@adacore.com>
14196
14197 * python/py-value.c (get_field_type): Remove unnecessary curly
14198 braces for single-statement if block.
14199
a8f35c2e
JB
142002014-01-15 Joel Brobecker <brobecker@adacore.com>
14201
14202 * python/py-type.c (convert_field): Add missing empty line
14203 after declarations.
14204
bb4142cf
DE
142052014-01-14 Doug Evans <dje@google.com>
14206
14207 * symfile.h (expand_symtabs_matching): Renamed from
14208 expand_partial_symbol_names. Update prototype.
14209 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14210 * symfile.c (expand_symtabs_matching): Renamed from
14211 expand_partial_symbol_names. New args file_matcher, kind.
14212 Rename arg fun to symbol_matcher.
14213 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14214 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14215 ada_expand_partial_symbol_name.
14216 (ada_make_symbol_completion_list): Update to call
14217 expand_symtabs_matching.
14218 (ada_add_global_exceptions): Call expand_symtabs_matching.
14219 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14220 call map_symbol_filenames.
14221 * symtab.c (sources_info): Update to call map_symbol_filenames.
14222 (search_symbols): Call expand_symtabs_matching.
14223 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14224 (default_make_symbol_completion_list_break_on): Update to call
14225 expand_symtabs_matching.
14226 (make_source_files_completion_list): Update to call
14227 map_symbol_filenames.
14228
206f2a57
DE
142292014-01-14 Doug Evans <dje@google.com>
14230
14231 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14232 (expand_symtabs_symbol_matcher_ftype): New typedef.
14233 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14234 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14235 * symfile.c (expand_partial_symbol_names): Update to use
14236 expand_symtabs_symbol_matcher_ftype.
14237 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14238 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14239 Arg name_matcher renamed to symbol_matcher.
14240 * psymtab.c (recursively_search_psymtabs): Update to use
14241 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14242 sym_matcher.
14243 (expand_symtabs_matching_via_partial): Update to use
14244 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14245 Arg name_matcher renamed to symbol_matcher.
14246
540c2971
DE
142472014-01-14 Doug Evans <dje@google.com>
14248
14249 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14250 (map_partial_symbol_filenames): Ditto.
14251 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14252 (map_partial_symbol_filenames): Ditto.
14253 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14254 (map_partial_symbol_filenames): Ditto.
14255 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14256 (map_partial_symbol_filenames): Ditto.
14257 * symtab.c: Delete #include "psymtab.h".
14258
8213266a
PA
142592014-01-14 Pedro Alves <palves@redhat.com>
14260 Tom Tromey <tromey@redhat.com>
14261
14262 * infrun.c (use_displaced_stepping): Use find_record_target
14263 instead of RECORD_IS_USED.
14264 (adjust_pc_after_break): Use record_full_is_used instead of
14265 RECORD_IS_USED.
14266 * record-btrace.c (record_btrace_open): Call record_preopen
14267 instead of checking RECORD_IS_USED.
14268 * record-full.c (record_full_shortname)
14269 (record_full_core_shortname): New globals.
14270 (record_full_is_used): New function.
14271 (find_full_open): Call record_preopen instead of checking
14272 RECORD_IS_USED.
14273 (init_record_full_ops): Set the target's shortname to
14274 record_full_shortname.
14275 (init_record_full_core_ops): Set the target's shortname to
14276 record_full_core_shortname.
14277 * record-full.h (record_full_is_used): Declare.
14278 * record.c (find_record_target): Make extern.
14279 (record_preopen): New function.
14280 * record.h (RECORD_IS_USED): Delete macro.
14281 (find_record_target, record_preopen): Declare functions.
14282
7ec1862d
YQ
142832014-01-14 Yao Qi <yao@codesourcery.com>
14284
14285 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14286 'len''s type to ULONGEST.
14287 (core_xfer_shared_libraries_aix): Likewise.
14288 * gdbarch.c, gdbarch.h: Regenerated.
14289 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14290 Change type of 'len' to ULONGEST.
14291 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14292 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14293
dea80a27
YQ
142942014-01-14 Yao Qi <yao@codesourcery.com>
14295
14296 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14297 type of 'len' to ULONGEST.
14298 (linux_xfer_osdata_processgroups): Likewise.
14299 (linux_xfer_osdata_threads): Likewise.
14300 (linux_xfer_osdata_fds): Likewise.
14301 (linux_xfer_osdata_isockets): Likewise.
14302 (linux_xfer_osdata_shm): Likewise.
14303 (linux_xfer_osdata_sem): Likewise.
14304 (linux_xfer_osdata_msg): Likewise.
14305 (linux_common_xfer_osdata): Likewise.
14306 (struct osdata_type) <getter>: Likewise.
14307 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14308 the declaration.
14309
b55e14c7
YQ
143102014-01-14 Yao Qi <yao@codesourcery.com>
14311
14312 * target.h (target_xfer_partial_ftype): Update.
14313 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14314 ULONGEST.
14315 * aix-thread.c (aix_thread_xfer_partial): Change type of
14316 argument 'len' to ULONGEST.
14317 * auxv.c (procfs_xfer_auxv): Likewise.
14318 (ld_so_xfer_auxv): Likewise.
14319 (memory_xfer_auxv): Likewise.
14320 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14321 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14322 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14323 * corelow.c (core_xfer_partial): Likewise.
14324 * ctf.c (ctf_xfer_partial): Likewise.
14325 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14326 '%u'.
14327 (darwin_read_dyld_info): Likewise.
14328 (darwin_xfer_partial): Likewise.
14329 * exec.c (section_table_xfer_memory_partial): Likewise.
14330 (exec_xfer_partial): Likewise.
14331 * exec.h (section_table_xfer_memory_partial): Update
14332 declaration.
14333 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14334 instead of plongest.
14335 (gnu_xfer_partial): Likewise.
14336 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14337 (ia64_hpux_xfer_solib_got): Likewise.
14338 (ia64_hpux_xfer_partial): Likewise.
14339 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14340 * inf-ptrace.c (inf_ptrace_xfer_partial):
14341 * inf-ttrace.c (inf_ttrace_xfer_partial):
14342 * linux-nat.c (linux_xfer_siginfo): Likewise.
14343 (linux_nat_xfer_partial): Likewise.
14344 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14345 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14346 * monitor.c (monitor_xfer_memory): Likewise.
14347 (monitor_xfer_partial): Likewise.
14348 * procfs.c (procfs_xfer_partial): Likewise.
14349 * record-full.c (record_full_xfer_partial): Likewise.
14350 (record_full_core_xfer_partial): Likewise.
14351 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14352 instead of plongest.
14353 (gdbsim_xfer_partial): Likewise.
14354 * remote.c (remote_xfer_partial): Likewise.
14355 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14356 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14357 declaration.
14358 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14359 (rs6000_xfer_shared_libraries): Likewise.
14360 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14361 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14362 (sparc_xfer_partial): Likewise.
14363 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14364 (spu_xfer_partial): Likewise.
14365 * spu-multiarch.c (spu_xfer_partial): Likewise.
14366 * target.c (target_read_live_memory): Likewise.
14367 (memory_xfer_live_readonly_partial): Likewise.
14368 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14369 (target_xfer_partial, default_xfer_partial): Likewise.
14370 (current_xfer_partial): Likewise.
14371 * tracepoint.c (tfile_xfer_partial): Likewise.
14372 * windows-nat.c (windows_xfer_memory): Likewise. Call
14373 pulongest instead of plongest.
14374 (windows_xfer_partial): Likewise.
14375 (windows_xfer_shared_libraries): Likewise.
14376
05804640
YQ
143772014-01-14 Yao Qi <yao@codesourcery.com>
14378
14379 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14380 target_xfer_partial_ftype.
14381
b5b08fb4
SC
143822014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14383
14384 PR python/15464
14385 PR python/16113
14386 * valops.c (value_struct_elt_bitpos): New function
14387 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14388 object to 'None' if the field name is an empty string ("").
14389 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14390 attribute to look for a field when 'name' is 'None'.
14391 (get_field_type): New function
14392
13aaf454
DE
143932014-01-13 Doug Evans <dje@google.com>
14394
14395 PR symtab/16426
14396 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14397 (try_open_dwop_file): Ditto.
14398 * gdb_bfd.c: #include "vec.h".
14399 (bfdp): New typedef.
14400 (struct gdb_bfd_data): New member included_bfds.
14401 (gdb_bfd_unref): Unref all included bfds.
14402 (gdb_bfd_record_inclusion): New function.
14403 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14404
c2cec97c
TT
144052014-01-13 Tom Tromey <tromey@redhat.com>
14406
14407 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14408
78e5999d
TT
144092014-01-13 Tom Tromey <tromey@redhat.com>
14410
14411 * defs.h (use_windows): Remove.
14412 * gdb.c (main): Update.
14413 * main.c (captured_main, gdb_main): Update.
14414 * main.h (struct captured_main_args) <use_windows>: Remove.
14415 * top.c (use_windows): Remove.
14416
f2052bbe
TT
144172014-01-13 Tom Tromey <tromey@redhat.com>
14418
14419 * defs.h (deprecated_flush_hook): Remove.
14420
fde4f8ed
JK
144212014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14422
14423 PR threads/16216
14424 * linux-thread-db.c (try_thread_db_load): Add parameter
14425 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14426 (try_thread_db_load_from_pdir_1): Move it there from here.
14427 (try_thread_db_load_from_sdir): Update caller.
14428 (try_thread_db_load_from_dir): Move it there from here.
14429
bdf61915
PP
144302014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14431
14432 * regformats/regdat.sh: Always rewrite the register file.
14433
f71e1a8d
PA
144342014-01-13 Pedro Alves <palves@redhat.com>
14435
14436 * Makefile.in (CHECK_HEADERS): New variable.
14437 (check-headers:): New rule.
14438
42c85435
TT
144392014-01-13 Tom Tromey <tromey@redhat.com>
14440
14441 * cli/cli-setshow.c (do_set_command): Update.
14442 * defs.h (deprecated_set_hook): Remove.
14443 * top.c (deprecated_set_hook): Remove.
14444
f8de5129
PA
144452014-01-13 Pedro Alves <palves@redhat.com>
14446
14447 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14448 the tracepoint if the PC is a pseudo-register.
14449
fc270c35
TT
144502014-01-13 Tom Tromey <tromey@redhat.com>
14451
14452 * defs.h (XCALLOC): Remove.
14453 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14454 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14455 * dwarf2loc.c (allocate_piece_closure): Likewise.
14456 * elfread.c (elf_symfile_segments): Likewise.
14457 (elf_symfile_segments): Likewise.
14458 * gdbtypes.c (copy_type_recursive): Likewise.
14459 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14460 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14461 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14462 XCALLOC.
14463 * mt-tdep.c (mt_gdbarch_init): Likewise.
14464 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14465 XCALLOC.
14466 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14467 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14468 * registry.c (registry_alloc_data): Likewise.
14469 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14470 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14471 * serial.c (serial_fdopen_ops): Likewise.
14472 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14473 XCALLOC.
14474 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14475 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14476 not XCALLOC.
14477
70ba0933
TT
144782014-01-13 Tom Tromey <tromey@redhat.com>
14479
14480 * defs.h (XMALLOC): Remove.
14481 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14482 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14483 * cli-out.c (struct ui_out *): Likewise.
14484 * cli/cli-dump.c (add_dump_command): Likewise.
14485 (add_dump_command): Likewise.
14486 * complaints.c (get_complaints): Likewise.
14487 (find_complaint): Likewise.
14488 * dwarf2-frame.c (execute_cfa_program): Likewise.
14489 * dwarf2read.c (abbrev_table_read_table): Likewise.
14490 * gdbarch.sh: Likewise.
14491 * gdbarch.c: Rebuild.
14492 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14493 * interps.c (interp_new): Likewise.
14494 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14495 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14496 * mi/mi-console.c (mi_console_file_new): Likewise.
14497 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14498 * mi/mi-out.c (mi_out_new): Likewise.
14499 * mi/mi-parse.c (mi_parse): Likewise.
14500 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14501 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14502 * observer.c (xalloc_observer_list_node): Likewise.
14503 * regcache.c (regcache_xmalloc_1): Likewise.
14504 * reggroups.c (reggroup_new): Likewise.
14505 (_initialize_reggroup): Likewise.
14506 * registry.c (register_data_with_cleanup): Likewise.
14507 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14508 * ser-base.c (serial_ttystate): Likewise.
14509 * ser-mingw.c (make_pipe_state): Likewise.
14510 * ser-pipe.c (pipe_open): Likewise.
14511 * serial.c (serial_open): Likewise.
14512 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14513 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14514 (tui_alloc_win_info): Likewise.
14515 (tui_add_content_elements): Likewise.
14516 * tui/tui-file.c (tui_file_new): Likewise.
14517 * tui/tui-out.c (tui_out_new): Likewise.
14518 * ui-file.c (mem_file_new): Likewise.
14519 * ui-out.c (push_level): Likewise.
14520 (make_cleanup_ui_out_end): Likewise.
14521 (append_header_to_list): Likewise.
14522 (ui_out_new): Likewise.
14523 * user-regs.c (user_reg_add_builtin): Likewise.
14524
41bf6aca
TT
145252014-01-13 Tom Tromey <tromey@redhat.com>
14526
14527 * defs.h (XZALLOC): Remove.
14528 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14529 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14530 (get_ada_tasks_inferior_data): Likewise.
14531 * auto-load.c (get_auto_load_pspace_data): Likewise.
14532 * auxv.c (get_auxv_inferior_data): Likewise.
14533 * bfd-target.c (target_bfd_reopen): Likewise.
14534 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14535 (deprecated_insert_raw_breakpoint): Likewise.
14536 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14537 * corelow.c (core_open): Likewise.
14538 * darwin-nat.c (darwin_check_new_threads): Likewise.
14539 (darwin_attach_pid): Likewise.
14540 * dummy-frame.c (dummy_frame_push): Likewise.
14541 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14542 * dwarf2loc.c (allocate_piece_closure): Likewise.
14543 * elfread.c (elf_symfile_segments): Likewise.
14544 * eval.c (ptrmath_type_p): Likewise.
14545 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14546 * gdbtypes.c (alloc_type_arch): Likewise.
14547 (alloc_type_instance): Likewise.
14548 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14549 * inf-child.c (inf_child_can_use_agent): Likewise.
14550 * inflow.c (get_inflow_inferior_data): Likewise.
14551 * infrun.c (save_infcall_suspend_state): Likewise.
14552 * jit.c (jit_reader_load): Likewise.
14553 (get_jit_objfile_data): Likewise.
14554 (get_jit_program_space_data): Likewise.
14555 (jit_object_open_impl): Likewise.
14556 (jit_symtab_open_impl): Likewise.
14557 (jit_block_open_impl): Likewise.
14558 (jit_frame_sniffer): Likewise.
14559 * linux-fork.c (add_fork): Likewise.
14560 * maint.c (make_command_stats_cleanup): Likewise.
14561 * objfiles.c (get_objfile_pspace_data): Likewise.
14562 * opencl-lang.c (struct lval_closure): Likewise.
14563 * osdata.c (osdata_start_osdata): Likewise.
14564 * progspace.c (new_address_space): Likewise.
14565 (add_program_space): Likewise.
14566 * remote-sim.c (get_sim_inferior_data): Likewise.
14567 * sh-tdep.c (sh_gdbarch_init): Likewise.
14568 * skip.c (Ignore): Likewise.
14569 (skip_delete_command): Likewise.
14570 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14571 (library_list_start_library): Likewise.
14572 (solib_aix_current_sos): Likewise.
14573 * solib-darwin.c (get_darwin_info): Likewise.
14574 (darwin_current_sos): Likewise.
14575 * solib-dsbt.c (get_dsbt_info): Likewise.
14576 * solib-ia64-hpux.c (new_so_list): Likewise.
14577 (ia64_hpux_get_solib_linkage_addr): Likewise.
14578 * solib-spu.c (append_ocl_sos): Likewise.
14579 (spu_current_sos): Likewise.
14580 * solib-svr4.c (get_svr4_info): Likewise.
14581 (svr4_keep_data_in_core): Likewise.
14582 (library_list_start_library): Likewise.
14583 (svr4_default_sos): Likewise.
14584 (svr4_read_so_list): Likewise.
14585 * solib-target.c (library_list_start_library): Likewise.
14586 (solib_target_current_sos): Likewise.
14587 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14588 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14589 * symfile.c (default_symfile_segments): Likewise.
14590 * target-descriptions.c (tdesc_data_init): Likewise.
14591 (tdesc_create_reg): Likewise.
14592 (struct tdesc_type *): Likewise.
14593 (tdesc_create_vector): Likewise.
14594 (tdesc_set_struct_size): Likewise.
14595 (struct tdesc_type *): Likewise.
14596 (tdesc_free_feature): Likewise.
14597 (tdesc_create_feature): Likewise.
14598 * windows-nat.c (windows_add_thread): Likewise.
14599 (windows_make_so): Likewise.
14600 * xml-support.c (gdb_xml_body_text): Likewise.
14601 (gdb_xml_create_parser_and_cleanup): Likewise.
14602 (xml_process_xincludes): Likewise.
14603 * xml-syscall.c (allocate_syscalls_info): Likewise.
14604 (syscall_create_syscall_desc): Likewise.
14605
5acfdbae
SDJ
146062014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14607
14608 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14609 function, with code from i386_stap_parse_special_token.
14610 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14611 (i386_stap_parse_special_token): Move code to the two functions
14612 above; simplify it.
14613
0000e5cc
PA
146142014-01-09 Pedro Alves <palves@redhat.com>
14615 Hui Zhu <hui@codesourcery.com>
14616
14617 PR gdb/16101
14618 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14619 bp_err_string. Don't mark the location shlib_disabled if the
14620 error thrown wasn't a generic or memory error. Catch errors
14621 thrown while inserting breakpoints in overlayed code. Output
14622 error message of software breakpoints.
14623 * remote.c (remote_insert_breakpoint): If this breakpoint has
14624 target-side commands but this stub doesn't support Z0 packets,
14625 throw NOT_SUPPORTED_ERROR error.
14626 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14627 * target.h (target_insert_breakpoint): Extend comment.
14628 (target_insert_hw_breakpoint): Add comment.
14629
b7ea362b
PA
146302014-01-08 Pedro Alves <palves@redhat.com>
14631
14632 * remote.c (remote_add_thread): Add threads silently if starting
14633 up.
14634 (remote_notice_new_inferior): If in all-stop, and starting up,
14635 don't call notice_new_inferior.
14636 (get_current_thread): New function, factored out from ...
14637 (add_current_inferior_and_thread): ... this. Adjust.
14638 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14639 found any thread, then select the remote's current thread as GDB's
14640 current thread too.
14641
b7bba001
JB
146422014-01-08 Joel Brobecker <brobecker@adacore.com>
14643
14644 * NEWS: Create a new section for the next release branch.
14645 Rename the section of the current branch, now that it has
14646 been cut.
14647
16dfbded
JB
146482014-01-08 Joel Brobecker <brobecker@adacore.com>
14649
14650 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14651 * version.in: Bump version to 7.7.50.DATE-cvs.
14652
22c90ac1
YQ
146532014-01-08 Yao Qi <yao@codesourcery.com>
14654
14655 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14656 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14657 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14658
d64ad97c
YQ
146592014-01-08 Yao Qi <yao@codesourcery.com>
14660
14661 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14662 return value of bfd_get_filename to symbol_file_add_from_bfd.
14663
f93ba80c
PM
146642014-01-08 Pierre Muller <muller@sourceware.org>
14665
14666 Fix PR16201.
14667 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14668 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14669 to prim_record_mininal_symbol_and_info.
14670 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14671 in call to prim_record_minimal_symbol_and_info.
14672 (read_pe_exported_syms): Set index field of section_data.
14673
a4d9ba85
AP
146742014-01-07 Andrew Pinski <apinski@cavium.com>
14675
14676 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14677 * features/aarch64.c: Regenerate.
14678
1b67eb02
AS
146792014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14680
14681 * target.c (return_null): Define.
14682 (update_current_target): Use it instead of return_zero for
14683 functions that return a pointer.
14684
5e3f4fab
EBM
146852014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14686
14687 * source.c (add_path): Fix check for duplicated paths in the previously
14688 included paths.
14689
e2616788
HK
146902014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14691
14692 * ada-lang.c: Remove duplicated include statements.
14693 * alphabsd-nat.c: Ditto.
14694 * amd64-darwin-tdep.c: Ditto.
14695 * amd64fbsd-nat.c: Ditto.
14696 * auto-load.c: Ditto.
14697 * ax-gdb.c: Ditto.
14698 * breakpoint.c: Ditto.
14699 * dbxread.c: Ditto.
14700 * fork-child.c: Ditto.
14701 * gdb_usleep.c: Ditto.
14702 * i386-darwin-tdep.c: Ditto.
14703 * i386fbsd-nat.c: Ditto.
14704 * infcmd.c: Ditto.
14705 * inferior.c: Ditto.
14706 * jv-lang.c: Ditto.
14707 * linux-nat.c: Ditto.
14708 * linux-tdep.c: Ditto.
14709 * m68kbsd-nat.c: Ditto.
14710 * m68klinux-nat.c: Ditto.
14711 * microblaze-tdep.c: Ditto.
14712 * mips-linux-tdep.c: Ditto.
14713 * mn10300-tdep.c: Ditto.
14714 * nto-tdep.c: Ditto.
14715 * opencl-lang.c: Ditto.
14716 * osdata.c: Ditto.
14717 * printcmd.c: Ditto.
14718 * regcache.c: Ditto.
14719 * remote-m32r-sdi.c: Ditto.
14720 * remote.c: Ditto.
14721 * symfile.c: Ditto.
14722 * symtab.c: Ditto.
14723 * tilegx-linux-nat.c: Ditto.
14724 * tilegx-tdep.c: Ditto.
14725 * tracepoint.c: Ditto.
14726 * valops.c: Ditto.
14727 * vaxbsd-nat.c: Ditto.
14728 * windows-nat.c: Ditto.
14729 * xtensa-tdep.c: Ditto.
14730
bd1f7788
YQ
147312014-01-07 Yao Qi <yao@codesourcery.com>
14732
14733 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14734
79301218
JB
147352014-01-07 Yao Qi <yao@codesourcery.com>
14736 Joel Brobecker <brobecker@adacore.com>
14737
14738 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14739 (pdc_write_regs): Likewise.
14740 (fetch_regs_kernel_thread): Likewise.
14741 (store_regs_kernel_thread): Likewise.
14742
147432014-01-07 Joel Brobecker <brobecker@adacore.com>
14744
14745 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14746 tagged type objects to their actual type.
14747
8e355c5d
JB
147482014-01-07 Joel Brobecker <brobecker@adacore.com>
14749
14750 * ada-valprint.c (print_field_values): Add "language" parameter.
14751 Update calls to print_field_values and print_variant_part.
14752 Pass new parameter "language" in call to val_print instead
14753 of "current_language". Replace call to ada_val_print by call
14754 to val_print.
14755 (print_variant_part): Add "language" parameter.
14756 (ada_val_print_struct_union): Update call to print_field_values.
14757
4fbf5aa5
JB
147582014-01-07 Joel Brobecker <brobecker@adacore.com>
14759
14760 * ada-valprint.c (ui_memcpy): Delete.
14761 (ada_print_floating): Update documentation. Add empty line
14762 between between function documentation and implementation.
14763 Delete variable "buffer". Use ui_file_xstrdup in place of
14764 ui_file_put. Minor adjustments following this change.
14765
71855601
JB
147662014-01-07 Joel Brobecker <brobecker@adacore.com>
14767
14768 * ada-valprint.c (ada_val_print_string): New function,
14769 extracted from ada_val_print_array.
14770 (ada_val_print_array): Replace extracted code by call
14771 to ada_val_print_string followed by a return. Move
14772 "else" branch to the function's top block.
14773
4eb27a30
JB
147742014-01-07 Joel Brobecker <brobecker@adacore.com>
14775
14776 * ada-valprint.c (ada_val_print_array): Move implementation
14777 down. Rename parameter "offset" and "val" into "offset_aligned"
14778 and "original_value" respectively. Add parameter "offset".
14779
34b27950
JB
147802014-01-07 Joel Brobecker <brobecker@adacore.com>
14781
14782 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14783 re-organizing the code. Change the "???" message printed
14784 when target type is a TYPE_CODE_UNDEF into
14785 "<ref to undefined type>".
14786
079e4591
JB
147872014-01-07 Joel Brobecker <brobecker@adacore.com>
14788
14789 * ada-valprint.c (print_record): Delete, implementation inlined...
14790 (ada_val_print_struct_union): ... here. Remove call to
14791 ada_check_typedef in inlined implementation.
14792
8004dfd1
JB
147932014-01-07 Joel Brobecker <brobecker@adacore.com>
14794
14795 * ada-valprint.c (ada_val_print_gnat_array): New function,
14796 extracted from ada_val_print_1;
14797 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14798 (ada_val_print_flt, ada_val_print_struct_union)
14799 (ada_val_print_ref): Likewise.
14800 (ada_val_print_1): Delete variables i and elttype.
14801 Replace extracted-out code by call to corresponding
14802 new functions.
14803
760a2db0
JB
148042014-01-07 Joel Brobecker <brobecker@adacore.com>
14805
14806 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14807
3a92c861
JB
148082014-01-07 Joel Brobecker <brobecker@adacore.com>
14809
14810 * ada-valprint.c (ada_val_print_1): Replace calls to
14811 ada_val_print_1 by calls to val_print.
14812
cd1630f9
JB
148132014-01-07 Joel Brobecker <brobecker@adacore.com>
14814
14815 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14816 Update calls to self accordingly. Replace calls to c_val_print
14817 by calls to val_print.
14818
bdf779a0
JB
148192014-01-07 Joel Brobecker <brobecker@adacore.com>
14820
14821 * ada-valprint.c (print_record): Delete declaration.
14822 (adjust_type_signedness, ada_val_print_1): Likewise.
14823 (ada_val_print): Move function implementation down.
14824 (print_variant_part, print_field_values, print_record):
14825 Move function implementation up.
14826
c0d48811
JB
148272014-01-07 Joel Brobecker <brobecker@adacore.com>
14828
14829 * python/py-type.c (typy_get_name): New function.
14830 (type_object_getset): Add entry for attribute "name".
14831 * NEWS: Add entry mentioning this new attribute.
14832
c26e9cbb
YQ
148332014-01-07 Yao Qi <yao@codesourcery.com>
14834
14835 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14836 statement.
14837
0cc6f43d
YQ
148382014-01-07 Yao Qi <yao@codesourcery.com>
14839
14840 * gnu-nat.c (info_port_rights): Add qualifier const to
14841 argument args.
14842
eec03155
YQ
148432014-01-07 Yao Qi <yao@codesourcery.com>
14844
14845 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14846
f04a82ef
YQ
148472014-01-07 Yao Qi <yao@codesourcery.com>
14848
14849 * gnu-nat.c (make_inf) Update declaration.
14850 (make_inf): Make it static.
14851 (inf_set_traced): Likewise.
14852 (inf_port_to_thread, inf_task_died_status): Likewise.
14853
d57dda0a
YQ
148542014-01-07 Yao Qi <yao@codesourcery.com>
14855
14856 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14857
3aa8c969
YQ
148582014-01-07 Yao Qi <yao@codesourcery.com>
14859
14860 * gnu-nat.c (_initialize_gnu_nat): Declare.
14861
94123b4f
YQ
148622014-01-07 Yao Qi <yao@codesourcery.com>
14863
14864 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14865 'enum bfd_endian'.
14866 (struct gdbarch_info) <byte_order>: Change type to
14867 'enum bfd_endian'.
14868 <byte_order_for_code>: Likewise.
14869 * gdbarch.c, gdbarch.h: Regenerated.
14870
dc81d70a
TT
148712014-01-06 Sasha Smundak <asmundak@google.com>
14872
14873 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14874
cc2f3c35
TT
148752014-01-06 Tom Tromey <tromey@redhat.com>
14876
14877 * doublest.c (convert_doublest_to_floatformat): Use const, not
14878 CONST.
14879 * somread.c (som_symtab_read): Likewise.
14880
adcf2eed
HZ
148812014-01-07 Hui Zhu <hui@codesourcery.com>
14882
14883 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14884 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14885 (gdb_bfd_fopen): Ditto.
14886 (gdb_bfd_openr): Ditto.
14887 (gdb_bfd_openw): Ditto.
14888 (gdb_bfd_openr_iovec): Ditto.
14889 (gdb_bfd_fdopenr): Ditto.
14890 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14891 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14892 with xstrdup.
14893 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14894 with xstrdup.
14895 * symfile-mem.c (symbol_file_add_from_memory): Removed
14896 gdb_bfd_stash_filename.
14897
50722198
DE
148982014-01-03 Doug Evans <dje@google.com>
14899
14900 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14901 output.
14902
2fa4b862
JB
149032014-01-01 Joel Brobecker <brobecker@adacore.com>
14904
14905 Update year range in copyright notice of all files.
14906
28498c42
JB
149072014-01-01 Joel Brobecker <brobecker@adacore.com>
14908
14909 * top.c (print_gdb_version): Set copyright year to 2014.
14910
7b6e1046
JB
149112014-01-01 Joel Brobecker <brobecker@adacore.com>
14912
14913 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14914
df96af55 14915For older changes see ChangeLog-2013.
c906108c
SS
14916\f
14917Local Variables:
14918mode: change-log
14919left-margin: 8
14920fill-column: 74
14921version-control: never
57da7796 14922coding: utf-8
c906108c 14923End:
This page took 2.302258 seconds and 4 git commands to generate.