Rename some "aux" functions.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
74016e12
DE
12014-11-06 Doug Evans <xdje42@gmail.com>
2
3 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
4 All callers updated.
5 (lookup_symbol_in_all_objfiles): Renamed from
6 lookup_symbol_aux_symtabs. All callers updated.
7 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
8 All callers updated.
9 (lookup_symbol_in_objfile_symtabs): Renamed from
10 lookup_symbol_aux_objfile. All callers updated.
11
d1a2d36d
DE
122014-11-06 Doug Evans <xdje42@gmail.com>
13
14 * symtab.c (lookup_symbol_in_block): Renamed from
15 lookup_symbol_aux_block. All callers updated.
16
24d864bb
DE
172014-11-06 Doug Evans <xdje42@gmail.com>
18
19 * symtab.c (lookup_static_symbol): Renamed from
20 lookup_static_symbol_aux. All callers updated.
21 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
22 All callers updated.
23
358d6ab3
DE
242014-11-06 Doug Evans <xdje42@gmail.com>
25
26 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
27 * block.c (block_lookup_symbol): Use it.
28 * cp-support.c (make_symbol_overload_list_block): Use it.
29 * symtab.c (iterate_over_symbols): Use it.
30
16b2eaa1
DE
312014-11-06 Doug Evans <xdje42@gmail.com>
32
33 * symtab.c (lookup_block_symbol): Moved to ...
34 * block.c (block_lookup_symbol): ... here and renamed.
35 All callers updated.
36 * block.h (block_lookup_symbol): Declare.
37 * symtab.h (lookup_block_symbol): Delete.
38
2dd2cd1c
DE
392014-11-06 Doug Evans <xdje42@gmail.com>
40
41 * ada-lang.c (ada_make_symbol_completion_list): Use
42 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
43 * symtab.c (lookup_objfile_from_block): Ditto.
44
d4c58915
DE
452014-11-06 Doug Evans <xdje42@gmail.com>
46
47 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
48 TYPE_CODE_STRUCT.
49
9c1877ea
DE
502014-11-06 Doug Evans <xdje42@gmail.com>
51
52 * objfiles.c (get_objfile_arch): Constify.
53 * objfiles.h (get_objfile_arch): Update prototype.
54 * solib.c (solib_global_lookup): Fetch arch from objfile,
55 not target_gdbarch.
56
426a4079
SL
572014-11-06 Sandra Loosemore <sandra@codesourcery.com>
58
59 * nios2-tdep.c (wild_insn): Delete.
60 (profiler_insn, irqentry_insn): Delete.
61 (nios2_match_sequence): Delete.
62 (nios2_analyze_prologue): Update comments. Remove matching
63 of obsolete profiler_insn and irqentry_insn sequences.
64
ee11262d
AM
652014-11-05 Alan Modra <amodra@gmail.com>
66
67 * charset.c (convert_between_encodings): Shrink obstack using
68 obstack_blank_fast.
69 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
70 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
71 to char* before doing pointer arithmetic.
ee11262d 72
c87e6d00
SM
732014-11-04 Simon Marchi <simon.marchi@ericsson.com>
74
75 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
76
441ef17f
PA
772014-11-04 Pedro Alves <palves@redhat.com>
78
79 * breakpoint.c (breakpoint_thread_match): Delete function.
80 * breakpoint.h (breakpoint_thread_match): Delete declaration.
81
e0f52461
SC
822014-11-03 Siva Chandra Reddy <sivachandra@google.com>
83
84 PR c++/17494
85 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
86 the method args also under EVAL_SKIP when evaluating method
87 calls under EVAL_SKIP.
88
a0b4d890
YQ
892014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
90
91 * dwarf2loc.c (read_pieced_value): Do big endian
92 processing only if gdb_regnum is not -1.
93 (write_pieced_value): Ditto.
94
952014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
96
97 * arm-linux-tdep.c (arm_linux_init_abi): Use
98 info.byte_order_for_code to choose endianity of breakpoint
99 instructions snippets.
100
1012014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
102
103 * arm-tdep.c (extract_arm_insn): Use
104 gdbarch_byte_order_for_code to read arm instruction.
105
e82149ff
DE
1062014-11-02 Doug Evans <xdje42@gmail.com>
107
108 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
109
d7ee84f1
DE
1102014-11-02 Doug Evans <xdje42@gmail.com>
111
112 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
113 main_subfile before returning.
114
4f072d17
DE
1152014-10-31 Doug Evans <xdje42@gmail.com>
116
117 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
118 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
119
8301c89e
DE
1202014-10-31 Doug Evans <xdje42@gmail.com>
121
122 * valops.c (value_cast_pointers): Fix whitespace.
123 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
124 Ditto.
125
02be9a71
DE
1262014-10-30 Doug Evans <dje@google.com>
127
128 * NEWS: Mention ability add attributes to gdb.Objfile and
129 gdb.Progspace objects.
130 * python/py-objfile.c (objfile_object): New member dict.
131 (objfpy_dealloc): Py_XDECREF dict.
132 (objfpy_initialize): Initialize dict.
133 (objfile_getset): Add __dict__.
134 (objfile_object_type): Set tp_dictoffset member.
135 * python/py-progspace.c (progspace_object): New member dict.
136 (pspy_dealloc): Py_XDECREF dict.
137 (pspy_initialize): Initialize dict.
138 (pspace_getset): Add __dict__.
139 (pspace_object_type): Set tp_dictoffset member.
140
6427bef6
YQ
1412014-10-30 Yao Qi <yao@codesourcery.com>
142
143 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
144 replace '\\' with '\\\\'.
145
f60325be
JB
1462014-10-29 Joel Brobecker <brobecker@adacore.com>
147
148 GDB 7.8.1 released.
149
ab917dfb
PA
1502014-10-29 Pedro Alves <palves@redhat.com>
151
152 PR gdb/17408
153 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
154 instead of assuming a thread with a stepping range is always
155 stepping.
156
d3d4baed
PA
1572014-10-29 Pedro Alves <palves@redhat.com>
158
159 PR python/17372
160 * event-top.c (change_line_handler): Call
161 gdb_rl_callback_handler_remove instead of
162 rl_callback_handler_remove.
163 (callback_handler_installed): New global.
164 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
165 (gdb_rl_callback_handler_reinstall): New functions.
166 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
167 gdb_rl_callback_handler_install instead of
168 rl_callback_handler_remove and rl_callback_handler_install.
169 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
170 instead of rl_callback_handler_remove.
171 * event-top.h (gdb_rl_callback_handler_remove)
172 (gdb_rl_callback_handler_install)
173 (gdb_rl_callback_handler_reinstall): New declarations.
174 * infrun.c (reinstall_readline_callback_handler_cleanup): New
175 cleanup function.
176 (fetch_inferior_event): Install it.
177 * top.c (gdb_readline_wrapper_line) Call
178 gdb_rl_callback_handler_remove instead of
179 rl_callback_handler_remove.
180 (gdb_readline_wrapper_cleanup): Don't call
181 rl_callback_handler_install.
182
6e5d7f39
PA
1832014-10-29 Pedro Alves <palves@redhat.com>
184
185 * event-top.c (command_line_handler): Clear the first byte of
186 linebuffer, when it is first allocated.
187
551cb6a5
PA
1882014-10-29 Pedro Alves <palves@redhat.com>
189
190 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
191 TRY_CATCH.
192
1e1e619b
PA
1932014-10-29 Pedro Alves <palves@redhat.com>
194
195 PR tui/16138
196 PR tui/17519
197 * tui/tui-interp.c (tui_is_toplevel): Delete global.
198 (tui_allowed_p): Delete function.
199 * tui/tui.c: Include "interps.h".
200 (tui_enable): Don't use tui_allowed_p. Error out here with
201 detailed error messages if the TUI is the top level interpreter,
202 or if output is not a terminal. Use newterm instead of initscr,
203 and error out if initializing the terminal fails. Also error out if
204 the terminal doesn't support cursor addressing.
205 * tui/tui.h (tui_allowed_p): Delete declaration.
206
6041179a
JB
2072014-10-29 Joel Brobecker <brobecker@adacore.com>
208
209 * arm-tdep.c (arm_skip_stack_protector): Return early if
210 address loaded by first "ldr" instruction does not have
211 a corresponding minimal symbol. Update comment.
212
6ae274b7
YQ
2132014-10-29 Yao Qi <yao@codesourcery.com>
214
215 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
216 loaded address correctly of ldr instruction.
217
7f5ef605
PA
2182014-10-28 Pedro Alves <palves@redhat.com>
219
220 PR gdb/12623
221 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
222 field.
223 * infrun.c (resume) <stepping breakpoint instruction>: Set the
224 thread's stepped_breakpoint field. Skip if reverse debugging.
225 Add comment.
226 (init_thread_stepping_state, handle_signal_stop): Clear the
227 thread's stepped_breakpoint field.
228
7d1a114c
PA
2292014-10-27 Pedro Alves <palves@redhat.com>
230
231 * remote.c (remote_thread_alive): New, factored out from ...
232 (remote_thread_alive): ... this.
233 (remote_update_thread_list): Bail out before deleting threads if
234 the target returned an empty list, and, the current thread has a
235 magic/fake ptid.
236
e5f8a7cc
PA
2372014-10-27 Pedro Alves <palves@redhat.com>
238
239 * infrun.c (handle_signal_stop): Also skip handlers when a random
240 signal arrives while handling a "stepi" or a "nexti". Set the
241 thread's 'step_after_step_resume_breakpoint' flag.
242
71e396f9
LM
2432014-10-27 Luis Machado <lgustavo@codesourcery.com>
244
245 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
246 (arm_record_ld_st_imm_offset): Reimplement to cover all
247 load/store cases for ARM opcode 010.
248 (arm_record_ld_st_multiple): Reimplement to cover all
249 load/store cases for ARM opcode 100.
250
3aee438b
DE
2512014-10-26 Doug Evans <xdje42@gmail.com>
252
253 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
254
f88cb4b6
DE
2552014-10-26 Doug Evans <xdje42@gmail.com>
256
257 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
258 parameter "kind" to "block_index".
259 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
260 "block_index".
261 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
262
a023a30f
DE
2632014-10-26 Doug Evans <xdje42@gmail.com>
264
265 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
266
4c35218e
DE
2672014-10-26 Doug Evans <xdje42@gmail.com>
268
269 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
270 obstack_alloc.
271
f08e8df3
DE
2722014-10-26 Doug Evans <xdje42@gmail.com>
273
274 * parser-defs.h (block_found): Move decl from here ...
275 * symtab.h (block_found): ... to here.
276
cf901d3b
DE
2772014-10-26 Doug Evans <xdje42@gmail.com>
278
279 * symtab.h (struct field_of_this_result): Fix typo in comment.
280 (lookup_symbol_in_language): Move function comment here.
281 (lookup_symbol): Improve function comment.
282 (basic_lookup_symbol_nonlocal): Ditto.
283 (lookup_symbol_static, lookup_symbol_global): Ditto.
284 (lookup_symbol_aux_block): Ditto.
285 (lookup_language_this): Add function comment.
286 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
287 function comment.
288 (lookup_block_symbol): Improve function comment.
289 (lookup_struct): Fix capitalization in function comment.
290 (lookup_transparent_type): Add function comment.
291 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
292 Improve function comment.
293 (lookup_objfile_from_block): Add function comment.
294 * symtab.c (lookup_symbol_in_language): Update function comment.
295 (lookup_symbol, lookup_language_this): Ditto.
296 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
297 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
298 (basic_lookup_symbol_nonlocal): Ditto.
299 (lookup_symbol_static, lookup_symbol_global): Ditto.
300 (lookup_transparent_type, lookup_block_symbol): Ditto.
301
ff6c39cf
DE
3022014-10-25 Doug Evans <xdje42@gmail.com>
303
304 * symtab.c (types_info): Delete forward decl.
305 (functions_info, variables_info, sources_info): Ditto.
306 (_initialize_symtab): Rewrite forward decl to use
307 initialize_file_ftype.
308
ec201f0c
DE
3092014-10-25 Doug Evans <xdje42@gmail.com>
310
311 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
312
ca040673
DE
3132014-10-25 Doug Evans <xdje42@gmail.com>
314
315 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
316 of local var child_die.
317
6f259a23
DB
3182014-10-24 Don Breazeal <donb@codesourcery.com>
319
320 * infrun.c (follow_fork_inferior): Update fork message printing
321 to use target_terminal_ours_for_output instead of
322 target_terminal_ours, to use _() for all format strings, to print
323 "vfork" instead of "fork" for vforks, and to add a detach message.
324 (handle_vfork_child_exec_or_exit): Update message printing to use
325 target_terminal_ours_for_output instead of target_terminal_ours, to
326 use _() for all format strings, and to fix some formatting.
327
09dd9a69
PA
3282014-10-24 Pedro Alves <palves@redhat.com>
329
330 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
331 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
332 * config/vax/vax.mh: Delete.
333 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
334 obsolete configurations section.
335 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
336 * vax-nat.c: Delete file.
337
5ab806de
PA
3382014-10-24 Pedro Alves <palves@redhat.com>
339
340 * NEWS (Removed targets): Add OS/arch column.
341
3433cfa5
SC
3422014-10-24 Siva Chandra Reddy <sivachandra@google.com>
343
344 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
345 on the arg type of a constructor only if it is of reference type.
346
96ba4233
SL
3472014-10-23 Sandra Loosemore <sandra@codesourcery.com>
348
349 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
350 accessors and constants from nios2 opcodes update.
351 (nios2_get_next_pc): Likewise.
352
28153fd3
DE
3532014-10-19 Doug Evans <xdje42@gmail.com>
354
355 * gdbthread.h (set_running): Fix comment.
356 (set_executing, finish_thread_state): Fix comment.
357
fc9b8e47
DE
3582014-10-18 Doug Evans <xdje42@gmail.com>
359
360 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
361
4ffbba72
DE
3622014-10-17 Doug Evans <dje@google.com>
363
364 * NEWS: Mention new event gdb.clear_objfiles.
365 * python/py-event.h (emit_clear_objfiles_event): Clear
366 * python/py-events.h (events_object): New member clear_objfiles.
367 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
368 event.
369 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
370 emit clear_objfiles event.
371 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
372 function.
373 (emit_clear_objfiles_event): New function.
374 (clear_objfiles): New event.
375 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
376 Declare.
377 * python/python.c (_initialize_python): Call
378 gdbpy_initialize_clear_objfiles_event.
379
d096d8c1
DE
3802014-10-17 Doug Evans <dje@google.com>
381
382 * NEWS: Mention new gdb.Objfile.progspace attribute.
383 * python/py-objfile.c (objfpy_get_progspace): New function.
384 (objfile_getset): New entry for "progspace".
385
6c4486e6
PA
3862014-10-17 Pedro Alves <palves@redhat.com>
387
388 PR gdb/17471
389 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
390 returns a copy of the input.
391 (run_command_1, continue_command, step_1, jump_command)
392 (signal_command, until_command, advance_command, finish_command)
393 (attach_command): Adjust and install a cleanup to free the
394 stripped args.
395
0ff33695
PA
3962014-10-17 Pedro Alves <palves@redhat.com>
397
398 PR gdb/17300
399 * infcmd.c (continue_1): If continuing all threads in the
400 foreground, make sure the inferior's terminal settings are put in
401 effect.
402
6fdebc3d
PA
4032014-10-17 Pedro Alves <palves@redhat.com>
404
405 PR gdb/17472
406 * annotate.c (annotate_breakpoints_invalid): Use
407 target_terminal_our_for_output instead of target_terminal_ours.
408 Give back the terminal to the target.
409 (annotate_frames_invalid): Likewise.
410
5842f62a
PA
4112014-10-17 Pedro Alves <palves@redhat.com>
412
413 * target.c (enum terminal_state): New enum.
414 (terminal_state): New global.
415 (target_terminal_init): New function.
416 (target_terminal_inferior): Skip if inferior already owns the
417 terminal.
418 (target_terminal_ours, target_terminal_ours_for_output): New
419 functions.
420 * target.h (target_terminal_init): Convert to function prototype.
421 (target_terminal_ours_for_output): Convert to function prototype
422 and tweak comment.
423 (target_terminal_ours): Convert to function prototype and tweak
424 comment.
425 * windows-nat.c (do_initial_windows_stuff): Call
426 target_terminal_init instead of child_terminal_init_with_pgrp.
427
32a8097b
PA
4282014-10-17 Pedro Alves <palves@redhat.com>
429
430 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
431 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
432 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
433 solib-osf.c.
434 * NEWS: Mention that support for alpha*-*-osf* has been removed.
435 * ada-lang.h [__alpha__ && __osf__]
436 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
437 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
438 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
439 GDB_OSABI_OSF1.
440 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
441 files.
442 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
443 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
444 * configure: Regenerate.
445 * configure.ac: Remove references to osf.
446 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
447 section. Remove all other references to osf.
448 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
449 Remove all other references to osf.
450 * dec-thread.c: Delete file.
451 * defs.h (GDB_OSABI_OSF1): Delete.
452 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
453 defined.
454 * osabi.c (gdb_osabi_names): Delete "OSF/1".
455 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
456 Delete code.
457 (unconditionally_kill_inferior)
458 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
459 * solib-osf.c: Delete file.
460
80134cf5
PA
4612014-10-17 Pedro Alves <palves@redhat.com>
462
463 * remote.c (clear_threads_listing_context): Move higher up, out of
464 the HAVE_LIBEXPAT guard.
465
89c7137f
TG
4662014-10-16 Tristan Gingold <gingold@adacore.com>
467
468 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
469 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
470 on amd64.
471
44ee4a52
PA
4722014-10-15 Pedro Alves <palves@redhat.com>
473
474 * dec-thread.c (dec_thread_count_gdb_threads)
475 (dec_thread_add_gdb_thread): Delete.
476 (dec_thread_update_thread_list): Delete.
477 (dec_thread_find_new_threads): Rename to ...
478 (dec_thread_update_thread_list): ... this. Delete GDB-size
479 threads that are no longer found in dec_thread_list.
480 (resync_thread_list): Delete.
481 (dec_thread_wait): Call dec_thread_update_thread_list instead of
482 resync_thread_list.
483
ab970af1
PA
4842014-10-15 Pedro Alves <palves@redhat.com>
485
486 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
487 * remote.c (remote_update_thread_list): Skip calling prune_threads
488 if any thread listing method is supported, and instead walk over
489 the set of remote threads listed, deleting those that are not
490 found in GDB's thread list.
491
e8032dde
PA
4922014-10-15 Pedro Alves <palves@redhat.com>
493
494 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
495 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
496 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
497 (bsd_uthread_target): Adjust.
498 * corelow.c (core_open): Adjust.
499 * dec-thread.c (dec_thread_find_new_threads): Update comment.
500 (dec_thread_update_thread_list): New function.
501 (init_dec_thread_ops): Adjust.
502 * gdbthread.h (prune_threads): New declaration.
503 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
504 (thread_db_update_thread_list): ... this. Call prune_threads.
505 (init_thread_db_ops): Adjust.
506 * nto-procfs.c (procfs_find_new_threads): Rename to ...
507 (procfs_update_thread_list): ... this. Call prune_threads.
508 (procfs_attach, procfs_create_inferior, init_procfs_targets):
509 Adjust.
510 * obsd-nat.c (obsd_find_new_threads): Rename to ...
511 (obsd_update_thread_list): ... this. Call prune_threads.
512 (obsd_add_target): Adjust.
513 * procfs.c (procfs_target): Adjust.
514 (procfs_notice_thread): Update comment.
515 (procfs_find_new_threads): Rename to ...
516 (procfs_update_thread_list): ... this. Call prune_threads.
517 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
518 comment.
519 (ravenscar_wait): Adjust.
520 (ravenscar_find_new_threads): Rename to ...
521 (ravenscar_update_thread_list): ... this. Call prune_threads.
522 (init_ravenscar_thread_ops): Adjust.
523 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
524 (record_btrace_update_thread_list): ... this. Adjust comment.
525 (init_record_btrace_ops): Adjust.
526 * remote.c (remote_threads_info): Rename to ...
527 (remote_update_thread_list): ... this. Call prune_threads.
528 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
529 Adjust.
530 * sol-thread.c (check_for_thread_db): Adjust.
531 (sol_find_new_threads_callback): Rename to ...
532 (sol_update_thread_list_callback): ... this.
533 (sol_find_new_threads): Rename to ...
534 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
535 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
536 * target-delegates.c: Regenerate.
537 * target.c (target_find_new_threads): Rename to ...
538 (target_update_thread_list): ... this.
539 * target.h (struct target_ops): Rename to_find_new_threads field
540 to to_update_thread_list.
541 (target_find_new_threads): Rename to ...
542 (target_update_thread_list): ... this.
543 * thread.c (prune_threads): Make extern.
544 (update_thread_list): Adjust.
545
6dc54d91
PA
5462014-10-15 Pedro Alves <palves@redhat.com>
547
548 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
549 Add describing comment. Return -1 if the qL packet is not
550 supported.
551 (struct thread_item, thread_item_t): Move higher up in
552 the file. Add comments.
553 (struct threads_parsing_context): Move higher up in
554 the file, add comments, and remote to ...
555 (struct threads_listing_context): ... this.
556 (remote_newthread_step): Don't add the thread to GDB's thread
557 database here. Instead push it to the thread_listing_context
558 list.
559 (remote_find_new_threads): Rename to ...
560 (remote_get_threads_with_ql): ... this. Add target_ops and
561 targets_listing_context parameters. Pass down context.
562 (start_thread): Adjust.
563 (clear_threads_parsing_context): Rename to ...
564 (clear_threads_listing_context): ... this.
565 (remote_get_threads_with_qxfer): New, with parts salvaged from old
566 remote_threads_info.
567 (remote_get_threads_with_qthreadinfo): Ditto.
568 (remote_threads_info): Reimplement.
569
36728e82
PA
5702014-10-15 Pedro Alves <palves@redhat.com>
571
572 * infrun.c (resume): Don't force displaced-stepping for all
573 single-steps on software single-stepping archs.
574
34b7e8a6
PA
5752014-10-15 Pedro Alves <palves@redhat.com>
576
577 * breakpoint.c (single_step_breakpoints): Delete global.
578 (insert_single_step_breakpoint): Adjust to store the breakpoint
579 pointer in the current thread.
580 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
581 (cancel_single_step_breakpoints): Delete functions.
582 (breakpoint_has_location_inserted_here): Make extern.
583 (single_step_breakpoint_inserted_here_p): Adjust to walk the
584 breakpoint list.
585 * breakpoint.h (breakpoint_has_location_inserted_here): New
586 declaration.
587 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
588 (cancel_single_step_breakpoints): Remove declarations.
589 * gdbthread.h (struct thread_control_state)
590 <single_step_breakpoints>: New field.
591 (delete_single_step_breakpoints)
592 (thread_has_single_step_breakpoints_set)
593 (thread_has_single_step_breakpoint_here): New declarations.
594 * infrun.c (follow_exec): Also clear the single-step breakpoints.
595 (singlestep_breakpoints_inserted_p, singlestep_ptid)
596 (singlestep_pc): Delete globals.
597 (infrun_thread_ptid_changed): Remove references to removed
598 globals.
599 (resume_cleanups): Delete the current thread's single-step
600 breakpoints.
601 (maybe_software_singlestep): Remove references to removed globals.
602 (resume): Adjust to use thread_has_single_step_breakpoints_set and
603 delete_single_step_breakpoints.
604 (init_wait_for_inferior): Remove references to removed globals.
605 (delete_thread_infrun_breakpoints): Delete the thread's
606 single-step breakpoints too.
607 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
608 single-step breakpoints here.
609 (delete_stopped_threads_single_step_breakpoints): New function.
610 (adjust_pc_after_break): Adjust to use
611 thread_has_single_step_breakpoints_set.
612 (handle_inferior_event): Remove references to removed globals.
613 Use delete_stopped_threads_single_step_breakpoints.
614 (handle_signal_stop): Adjust to per-thread single-step
615 breakpoints. Swap test order to do cheaper tests first.
616 (switch_back_to_stepped_thread): Extend debug output. Remove
617 references to removed globals.
618 * record-full.c (record_full_wait_1): Adjust to per-thread
619 single-step breakpoints.
620 * thread.c (delete_single_step_breakpoints)
621 (thread_has_single_step_breakpoints_set)
622 (thread_has_single_step_breakpoint_here): New functions.
623 (clear_thread_inferior_resources): Also delete the thread's
624 single-step breakpoints.
625
5b834a0a
PA
6262014-10-15 Pedro Alves <palves@redhat.com>
627
628 * thread.c (delete_thread_breakpoint): New function.
629 (delete_step_resume_breakpoint)
630 (delete_exception_resume_breakpoint): Use it.
631 (delete_at_next_stop): New function.
632 (clear_thread_inferior_resources): Use delete_at_next_stop.
633
a1fd2fa5
PA
6342014-10-15 Pedro Alves <palves@redhat.com>
635
636 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
637 (breakpoint_inserted_here_p): ... here. Remove special case for
638 software single-step breakpoints.
639 (find_non_raw_software_breakpoint_inserted_here): Inline ...
640 (software_breakpoint_inserted_here_p): ... here. Remove special
641 case for software single-step breakpoints.
642 (bp_target_info_copy_insertion_state)
643 (deprecated_insert_raw_breakpoint)
644 (deprecated_remove_raw_breakpoint): Delete functions.
645 * breakpoint.h (deprecated_insert_raw_breakpoint)
646 (deprecated_remove_raw_breakpoint): Remove declarations.
647
7c16b83e
PA
6482014-10-15 Pedro Alves <palves@redhat.com>
649
650 PR breakpoints/9649
651 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
652 Delete array globals.
653 (single_step_breakpoints): New global.
654 (breakpoint_xfer_memory): Remove special handling for single-step
655 breakpoints.
656 (update_breakpoints_after_exec): Delete bp_single_step
657 breakpoints.
658 (detach_breakpoints): Remove special handling for single-step
659 breakpoints.
660 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
661 (bpstat_stop_status): Add comment.
662 (bpstat_what, bptype_string, print_one_breakpoint_location)
663 (adjust_breakpoint_address, init_bp_location): Handle
664 bp_single_step.
665 (new_single_step_breakpoint): New function.
666 (set_momentary_breakpoint, bkpt_remove_location): Remove special
667 handling for single-step breakpoints.
668 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
669 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
670 Rewrite.
671 (detach_single_step_breakpoints, find_single_step_breakpoint):
672 Delete functions.
673 (breakpoint_has_location_inserted_here): New function.
674 (single_step_breakpoint_inserted_here_p): Rewrite.
675 * breakpoint.h: Remove FIXME.
676 (enum bptype) <bp_single_step>: New enum value.
677 (insert_single_step_breakpoint): Update comment.
678 * infrun.c (resume_cleanups)
679 (delete_step_thread_step_resume_breakpoint): Remove single-step
680 breakpoints.
681 (fetch_inferior_event): Install a cleanup that removes infrun
682 breakpoints.
683 (switch_back_to_stepped_thread) <expect thread advanced also>:
684 Clear step-over info.
685
0cbcdb96
PA
6862014-10-15 Pedro Alves <palves@redhat.com>
687
688 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
689 (delete_thread_infrun_breakpoints): New function, with parts
690 salvaged from delete_step_resume_breakpoint_callback.
691 (delete_step_thread_step_resume_breakpoint): Delete.
692 (for_each_just_stopped_thread_callback_func): New typedef.
693 (for_each_just_stopped_thread): New function.
694 (delete_just_stopped_threads_infrun_breakpoints): New function.
695 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
696 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
697 ... this. Adjust.
698 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
699
963f9c80
PA
7002014-10-15 Pedro Alves <palves@redhat.com>
701
702 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
703 trying to step past a non-steppable watchpoint.
704 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
705 field.
706 * infrun.c (struct step_over_info): Add new field
707 'nonsteppable_watchpoint_p' and adjust comments.
708 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
709 Adjust.
710 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
711 (stepping_past_nonsteppable_watchpoint): New function.
712 (step_over_info_valid_p): Also return true if stepping past a
713 nonsteppable watchpoint.
714 (proceed): Adjust call to set_step_over_info. Remove reference to
715 init_infwait_state.
716 (init_wait_for_inferior): Remove reference to init_infwait_state.
717 (waiton_ptid): Delete global.
718 (struct execution_control_state)
719 <stepped_after_stopped_by_watchpoint>: Delete field.
720 (wait_for_inferior, fetch_inferior_event): Always pass
721 minus_one_ptid to target_wait.
722 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
723 field.
724 (init_infwait_state): Delete function.
725 (handle_inferior_event): Remove infwait_state handling.
726 (handle_signal_stop) <watchpoints handling>: Adjust after
727 stepped_after_stopped_by_watchpoint removal. Don't remove
728 breakpoints here nor set infwait_state. Set the thread's
729 stepping_over_watchpoint flag, and call keep_going instead.
730 (keep_going): Handle stepping_over_watchpoint. Adjust
731 set_step_over_info calls.
732 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
733 function.
734
6cc83d2a
PA
7352014-10-15 Pedro Alves <palves@redhat.com>
736
737 * infrun.c (step_over_info_valid_p): New function.
738 (resume): Use step_over_info_valid_p instead of checking the
739 threads's trap_expected flag.
740
6979730b
DE
7412014-10-15 Doug Evans <dje@google.com>
742 Walfred Tedeschi <walfred.tedeschi@intel.com>
743
744 PR python/17364
745 * python/lib/gdb/__init__.py (packages): Add "printer".
746 * python/lib/gdb/command/bound_registers.py: Moved to ...
747 * python/lib/gdb/printer/bound_registers.py: ... here.
748 Add printer to global set of builtin printers. Rename printer from
749 "bound" to "mpx_bound128".
750 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
751 registered as global "builtin" printer.
752 (add_builtin_pretty_printer): New function.
753 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
754 gdb/printer/__init__.py.
755
35a49624
IB
7562014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
757
758 * Makefile.in (SFILES): Remove d-support.c.
759 (COMMON_OBS): Remove d-support.o.
760 * d-lang.h (d_parse_symbol): Remove declaration.
761 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
762 * d-support.c: Remove file.
763
8fa0c4f8
AA
7642014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
765
766 * gdb/infrun.c (process_event_stop_test): Apply
767 gdbarch_addr_bits_remove to longjmp resume address.
768
3666da81
PA
7692014-10-15 Pedro Alves <palves@redhat.com>
770
771 * regformats/microblaze.dat: Delete file.
772
449aa9df
AKA
7732014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
774
775 * features/Makefile (microblaze-expedite): Replace pc with rpc.
776 * regformats/microblaze-with-stack-protect.dat: Regenerate.
777
ebb8ece2
SC
7782014-10-15 Siva Chandra Reddy <sivachandra@google.com>
779
780 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
781 as non-trivial.
782
82c48ac7
SC
7832014-10-15 Siva Chandra Reddy <sivachandra@google.com>
784
785 PR c++/13403
786 PR c++/15154
787 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
788 with qualified args.
789
c40cc657
JB
7902014-10-14 Joel Brobecker <brobecker@adacore.com>
791
792 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
793 of the case where the second operand is a pointer.
794 <BINOP_SUB>: Likewise.
795
0ea5cda8
SDJ
7962014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
797
798 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
799 only if it is not NULL.
800 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
801 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
802 (struct probe_ops) <clear_semaphore>: Likewise.
803 * tracepoint.c (start_tracing): Call set_semaphore only if it is
804 not NULL.
805 (stop_tracing): Likewise, for clear_semaphore.
806
f7088df3
SDJ
8072014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
808
809 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
810 using language_c, instead of current_language.
811
4e1bbde0
DE
8122014-10-13 Doug Evans <dje@google.com>
813
6ff5a0f6 814 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 815 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 816 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
817 (pspy_new, pspace_to_pspace_object): Call it.
818
c780cc2f
JK
8192014-10-13 Miroslav Franc <mfranc@redhat.com>
820 Jan Kratochvil <jan.kratochvil@redhat.com>
821
822 Fix "save breakpoints" for "catch" command.
823 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
824 newline.
825
99894e11
JK
8262014-10-12 Miroslav Franc <mfranc@redhat.com>
827
828 Fix "save breakpoints" for "disable $bpnum" command.
829 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
830
3831839c
PA
8312014-10-10 Pedro Alves <palves@redhat.com>
832
833 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
834 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
835 (HFILES_NO_SRCDIR): Remove solib-irix.h.
836 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
837 and been removed.
838 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
839 * configure.ac: Remove references to IRIX.
840 * configure.host: Add *-*-irix* to the obsolete hosts section.
841 Remove all other references to irix.
842 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
843 Delete files.
844
cc3afae2
AKA
8452014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
846
847 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
848 isn't valid, release the tdesc arch data and return NULL.
849
cdfa0b0a
PA
8502014-10-10 Pedro Alves <palves@redhat.com>
851
852 * linux-tdep.c: Include observer.h.
853 (linux_inferior_data): New global.
854 (struct linux_info): New structure.
855 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
856 (get_linux_inferior_data): New functions.
857 (linux_vsyscall_range): Rename to ...
858 (linux_vsyscall_range_raw): ... this.
859 (linux_vsyscall_range): New function; handles caching.
860 (_initialize_linux_tdep): Register linux_inferior_data. Install
861 inferior_exit and inferior_appeared observers.
862
8b9a549d
PA
8632014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
864 Pedro Alves <palves@redhat.com>
865
866 PR symtab/14466
867 * solib-svr4.c (svr4_read_so_list): Rename to ...
868 (svr4_current_sos_1): ... this and change the function comment.
869 (svr4_current_sos): New function.
870
3437254d
PA
8712014-10-10 Pedro Alves <palves@redhat.com>
872
873 * arch-utils.c (default_vsyscall_range): New function.
874 * arch-utils.h (default_vsyscall_range): New declaration.
875 * gdbarch.sh (vsyscall_range): New hook.
876 * gdbarch.h, gdbarch.c: Regenerate.
877 * linux-tdep.c (linux_vsyscall_range): New function.
878 (linux_init_abi): Install linux_vsyscall_range as
879 vsyscall_range gdbarch hook.
880 * memrange.c (address_in_mem_range): New function.
881 * memrange.h (address_in_mem_range): New declaration.
882 * symfile-mem.c (find_vdso_size): Delete function.
883 (add_vsyscall_page): Use gdbarch_vsyscall_range.
884
31cc0b80
PA
8852014-10-10 Pedro Alves <palves@redhat.com>
886
887 * infrun.c (normal_stop): Fix typo in comment.
888
3e3286a2
SDJ
8892014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
890
891 PR tdep/9390
892 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
893 typo when using logical AND to determine instruction type.
894
fcbdedf8
YQ
8952014-10-09 Yao Qi <yao@codesourcery.com>
896
897 * infrun.c (handle_signal_stop): Remove local variable
898 'printed'.
899
db984616
SS
9002014-10-08 Stan Shebs <stan@codesourcery.com>
901
902 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
903
3ba37e6c
GB
9042014-10-08 Gary Benson <gbenson@redhat.com>
905
906 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
907
a442d071
GB
9082014-10-08 Gary Benson <gbenson@redhat.com>
909
910 * common/common-defs.h: Include common-exceptions.h.
911 * exceptions.h: Do not include common-exceptions.h.
912
6f1947e8
GB
9132014-10-08 Gary Benson <gbenson@redhat.com>
914
915 * common/common-defs.h: Include cleanups.h.
916 * common/common-exceptions.c: Do not include cleanups.h.
917 * utils.h: Likewise.
918
c765fdb9
GB
9192014-10-08 Gary Benson <gbenson@redhat.com>
920
921 * ada-lang.c: Do not include exceptions.h.
922 * ada-valprint.c: Likewise.
923 * amd64-tdep.c: Likewise.
924 * auto-load.c: Likewise.
925 * block.c: Likewise.
926 * break-catch-throw.c: Likewise.
927 * breakpoint.c: Likewise.
928 * btrace.c: Likewise.
929 * c-lang.c: Likewise.
930 * cli/cli-cmds.c: Likewise.
931 * cli/cli-interp.c: Likewise.
932 * cli/cli-script.c: Likewise.
933 * completer.c: Likewise.
934 * corefile.c: Likewise.
935 * corelow.c: Likewise.
936 * cp-abi.c: Likewise.
937 * cp-support.c: Likewise.
938 * cp-valprint.c: Likewise.
939 * darwin-nat.c: Likewise.
940 * dwarf2-frame-tailcall.c: Likewise.
941 * dwarf2-frame.c: Likewise.
942 * dwarf2loc.c: Likewise.
943 * dwarf2read.c: Likewise.
944 * eval.c: Likewise.
945 * event-loop.c: Likewise.
946 * event-top.c: Likewise.
947 * f-valprint.c: Likewise.
948 * frame-unwind.c: Likewise.
949 * frame.c: Likewise.
950 * gdbtypes.c: Likewise.
951 * gnu-v2-abi.c: Likewise.
952 * gnu-v3-abi.c: Likewise.
953 * guile/scm-auto-load.c: Likewise.
954 * guile/scm-breakpoint.c: Likewise.
955 * guile/scm-cmd.c: Likewise.
956 * guile/scm-frame.c: Likewise.
957 * guile/scm-lazy-string.c: Likewise.
958 * guile/scm-param.c: Likewise.
959 * guile/scm-symbol.c: Likewise.
960 * guile/scm-type.c: Likewise.
961 * hppa-hpux-tdep.c: Likewise.
962 * i386-tdep.c: Likewise.
963 * inf-loop.c: Likewise.
964 * infcall.c: Likewise.
965 * infcmd.c: Likewise.
966 * infrun.c: Likewise.
967 * interps.c: Likewise.
968 * interps.h: Likewise.
969 * jit.c: Likewise.
970 * linespec.c: Likewise.
971 * linux-nat.c: Likewise.
972 * linux-thread-db.c: Likewise.
973 * m32r-rom.c: Likewise.
974 * main.c: Likewise.
975 * memory-map.c: Likewise.
976 * mi/mi-cmd-break.c: Likewise.
977 * mi/mi-cmd-stack.c: Likewise.
978 * mi/mi-interp.c: Likewise.
979 * mi/mi-main.c: Likewise.
980 * monitor.c: Likewise.
981 * nto-procfs.c: Likewise.
982 * objc-lang.c: Likewise.
983 * p-valprint.c: Likewise.
984 * parse.c: Likewise.
985 * ppc-linux-tdep.c: Likewise.
986 * printcmd.c: Likewise.
987 * probe.c: Likewise.
988 * python/py-auto-load.c: Likewise.
989 * python/py-breakpoint.c: Likewise.
990 * python/py-cmd.c: Likewise.
991 * python/py-finishbreakpoint.c: Likewise.
992 * python/py-frame.c: Likewise.
993 * python/py-framefilter.c: Likewise.
994 * python/py-function.c: Likewise.
995 * python/py-gdb-readline.c: Likewise.
996 * python/py-inferior.c: Likewise.
997 * python/py-infthread.c: Likewise.
998 * python/py-lazy-string.c: Likewise.
999 * python/py-linetable.c: Likewise.
1000 * python/py-param.c: Likewise.
1001 * python/py-prettyprint.c: Likewise.
1002 * python/py-symbol.c: Likewise.
1003 * python/py-type.c: Likewise.
1004 * python/py-value.c: Likewise.
1005 * python/python-internal.h: Likewise.
1006 * python/python.c: Likewise.
1007 * record-btrace.c: Likewise.
1008 * record-full.c: Likewise.
1009 * regcache.c: Likewise.
1010 * remote-fileio.c: Likewise.
1011 * remote-mips.c: Likewise.
1012 * remote.c: Likewise.
1013 * rs6000-aix-tdep.c: Likewise.
1014 * rs6000-nat.c: Likewise.
1015 * skip.c: Likewise.
1016 * solib-darwin.c: Likewise.
1017 * solib-dsbt.c: Likewise.
1018 * solib-frv.c: Likewise.
1019 * solib-ia64-hpux.c: Likewise.
1020 * solib-spu.c: Likewise.
1021 * solib-svr4.c: Likewise.
1022 * solib.c: Likewise.
1023 * spu-tdep.c: Likewise.
1024 * stack.c: Likewise.
1025 * stap-probe.c: Likewise.
1026 * symfile-mem.c: Likewise.
1027 * symmisc.c: Likewise.
1028 * target.c: Likewise.
1029 * thread.c: Likewise.
1030 * top.c: Likewise.
1031 * tracepoint.c: Likewise.
1032 * tui/tui-interp.c: Likewise.
1033 * typeprint.c: Likewise.
1034 * utils.c: Likewise.
1035 * valarith.c: Likewise.
1036 * valops.c: Likewise.
1037 * valprint.c: Likewise.
1038 * value.c: Likewise.
1039 * varobj.c: Likewise.
1040 * windows-nat.c: Likewise.
1041 * xml-support.c: Likewise.
1042
484933d1
MR
10432014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1044
1045 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1046 name implies.
1047 (extended_mips16_next_pc): Update accordingly.
1048
ab50adb6
MR
10492014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1050
1051 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1052 function.
1053 (micromips_instruction_is_compact_branch): Likewise.
1054 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1055 or a compact jump, reaching a jump delay slot, or seeing a
1056 second non-prologue instruction.
1057 (micromips_scan_prologue): Also terminate scanning upon seeing a
1058 compact branch or jump, or reaching a branch or jump delay slot.
1059 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1060 or jump delay slot, or seeing a second non-prologue instruction.
1061 (mips32_instruction_has_delay_slot): Retain instruction
1062 examination code only, update arguments accordingly and move
1063 instruction fetch pieces to...
1064 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1065 (micromips_instruction_has_delay_slot): Likewise and to...
1066 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1067 (mips16_instruction_has_delay_slot): Likewise and to...
1068 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1069 (mips_single_step_through_delay): Update accordingly.
1070 (mips_adjust_breakpoint_address): Likewise.
1071
ae790652
MR
10722014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1073
1074 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1075 !mustbe32 also return 1 for 32-bit instructions.
1076 (mips16_instruction_has_delay_slot): Likewise. Add an
1077 explanatory comment.
1078
9b807e7b
MR
10792014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1080
1081 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1082 symbols special.
1083
0d5ed153
MR
10842014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1085
1086 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1087 update comments.
1088 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1089 for the breakpoint's address. Don't preinitialize `placed_size'.
1090 (insert_bp_location): Set `reqstd_address' rather than
1091 `placed_address'.
1092 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1093 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1094 address.
1095 (bkpt_remove_location): Likewise.
1096 (deprecated_insert_raw_breakpoint): Likewise.
1097 (deprecated_remove_raw_breakpoint): Likewise.
1098 (find_single_step_breakpoint): Likewise.
1099 * mem-break.c (default_memory_insert_breakpoint): Use
1100 `reqstd_address' for the breakpoint's address. Don't set
1101 `placed_address' or `placed_size' if breakpoint contents couldn't
1102 have been determined.
1103 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1104 the breakpoint's address.
1105 (remote_insert_hw_breakpoint): Likewise. Don't set
1106 `placed_address' or `placed_size' if breakpoint couldn't have been
1107 set.
1108 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1109 `reqstd_address' for the breakpoint's address.
1110 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1111 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1112 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1113 * microblaze-linux-tdep.c
1114 (microblaze_linux_memory_remove_breakpoint): Likewise.
1115 * monitor.c (monitor_insert_breakpoint): Likewise.
1116 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1117 (procfs_insert_hw_breakpoint): Likewise.
1118 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1119 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1120 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1121 * remote-mips.c (mips_insert_breakpoint): Likewise.
1122 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1123
3e871532
LM
11242014-10-03 Luis Machado <lgustavo@codesourcery.com>
1125
1126 * valops.c (value_assign): Check for bit field assignments
1127 before calling architecture-specific register value
1128 conversion functions.
1129
ec48dc8b
PM
11302014-10-03 Pierre Muller <muller@sourceware.org>
1131
1132 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1133
b57bacec
PA
11342014-10-02 Pedro Alves <palves@redhat.com>
1135
1136 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1137 threads_are_executing.
1138 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1139 describing comment.
1140 * gdbthread.h (threads_are_executing): Declare.
1141 (handle_signal_stop) <random signals>: Don't print about the
1142 signal here if stopping.
1143 (end_stepping_range): Don't notify observers here.
1144 (normal_stop): Update the thread list. If stopped by a random
1145 signal or a stepping range ended, notify observers.
1146 * thread.c (threads_executing): New global.
1147 (init_thread_list): Clear 'threads_executing'.
1148 (set_executing): Set or clear 'threads_executing'.
1149 (threads_are_executing): New function.
1150 (update_threads_executing): New function.
1151 (update_thread_list): Use it.
1152
13fd3ff3
PA
11532014-10-02 Pedro Alves <palves@redhat.com>
1154
1155 PR breakpoints/17431
1156 * breakpoint.c (update_breakpoints_after_exec): Don't create
1157 overlay, longjmp, std terminate nor exception breakpoints here.
1158
32990ada
PA
11592014-10-02 Pedro Alves <palves@redhat.com>
1160
1161 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1162 Adjust comments.
1163 * inferior.c (find_inferior_for_program_space): Give preference to
1164 the current inferior.
1165 * inferior.h (find_inferior_for_program_space): Update comment.
1166 * progspace.c (switch_to_program_space_and_thread): Prefer the
1167 current inferior if it's bound to the program space requested. If
1168 the inferior found doesn't have a PID yet, don't bother looking up
1169 a thread.
1170 * progspace.h (switch_to_program_space_and_thread): Adjust
1171 comment.
1172 * thread.c (any_thread_of_process, any_live_thread_of_process):
1173 Give preference to the current thread.
1174
0fec99e8
PA
11752014-10-01 Pedro Alves <palves@redhat.com>
1176
1177 * breakpoint.c (insert_bp_location): Error out if inserting a
1178 software breakpoint at a read-only address.
1179 * target.c (memory_xfer_check_region): New function, factored out
1180 from ...
1181 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1182 ULONGEST.
1183 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1184 against the memory region attributes.
1185
2ddf4301
SM
11862014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1187
1188 * NEWS: Announce new exit-code field in -list-thread-groups
1189 output.
1190 * inferior.c (exit_inferior_1): Don't clear exit code.
1191 (inferior_appeared): Clear exit code.
1192 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1193 code.
1194
5fdeec1d
PA
11952014-10-01 Pedro Alves <palves@redhat.com>
1196
1197 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1198 GENERATED" along with emacs/vi read-only markers.
1199 * regformats/aarch64.dat: Regenerate.
1200 * regformats/arm-with-iwmmxt.dat: Regenerate.
1201 * regformats/arm-with-neon.dat: Regenerate.
1202 * regformats/arm-with-vfpv2.dat: Regenerate.
1203 * regformats/arm-with-vfpv3.dat: Regenerate.
1204 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1205 * regformats/i386/amd64-avx.dat: Regenerate.
1206 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1207 * regformats/i386/amd64-avx512.dat: Regenerate.
1208 * regformats/i386/amd64-linux.dat: Regenerate.
1209 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1210 * regformats/i386/amd64-mpx.dat: Regenerate.
1211 * regformats/i386/amd64.dat: Regenerate.
1212 * regformats/i386/i386-avx-linux.dat: Regenerate.
1213 * regformats/i386/i386-avx.dat: Regenerate.
1214 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1215 * regformats/i386/i386-avx512.dat: Regenerate.
1216 * regformats/i386/i386-linux.dat: Regenerate.
1217 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1218 * regformats/i386/i386-mmx.dat: Regenerate.
1219 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1220 * regformats/i386/i386-mpx.dat: Regenerate.
1221 * regformats/i386/i386.dat: Regenerate.
1222 * regformats/i386/x32-avx-linux.dat: Regenerate.
1223 * regformats/i386/x32-avx.dat: Regenerate.
1224 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1225 * regformats/i386/x32-avx512.dat: Regenerate.
1226 * regformats/i386/x32-linux.dat: Regenerate.
1227 * regformats/i386/x32.dat: Regenerate.
1228 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1229 * regformats/mips-dsp-linux.dat: Regenerate.
1230 * regformats/mips-linux.dat: Regenerate.
1231 * regformats/mips64-dsp-linux.dat: Regenerate.
1232 * regformats/mips64-linux.dat: Regenerate.
1233 * regformats/nios2-linux.dat: Regenerate.
1234 * regformats/rs6000/powerpc-32.dat: Regenerate.
1235 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1236 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1237 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1238 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1239 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1240 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1241 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1242 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1243 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1244 * regformats/s390-linux32.dat: Regenerate.
1245 * regformats/s390-linux32v1.dat: Regenerate.
1246 * regformats/s390-linux32v2.dat: Regenerate.
1247 * regformats/s390-linux64.dat: Regenerate.
1248 * regformats/s390-linux64v1.dat: Regenerate.
1249 * regformats/s390-linux64v2.dat: Regenerate.
1250 * regformats/s390-te-linux64.dat: Regenerate.
1251 * regformats/s390x-linux64.dat: Regenerate.
1252 * regformats/s390x-linux64v1.dat: Regenerate.
1253 * regformats/s390x-linux64v2.dat: Regenerate.
1254 * regformats/s390x-te-linux64.dat: Regenerate.
1255 * regformats/tic6x-c62x-linux.dat: Regenerate.
1256 * regformats/tic6x-c62x.dat: Regenerate.
1257 * regformats/tic6x-c64x-linux.dat: Regenerate.
1258 * regformats/tic6x-c64x.dat: Regenerate.
1259 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1260 * regformats/tic6x-c64xp.dat: Regenerate.
1261
db74e4ba
PA
12622014-10-01 Pedro Alves <palves@redhat.com>
1263
1264 * features/Makefile: Update comments.
1265 (XMLTOC): List all xml files we build C files from.
1266 (clean-cfiles): New rule.
1267
d63f2f84
PA
12682014-10-01 Pedro Alves <palves@redhat.com>
1269
1270 * features/i386/amd64-avx512-linux.c: Regenerate.
1271 * features/i386/amd64-avx512.c: Regenerate.
1272 * features/i386/x32-avx512-linux.c: Regenerate.
1273 * features/i386/x32-avx512.c: Regenerate.
1274
20ad026d
PA
12752014-10-01 Pedro Alves <palves@redhat.com>
1276
1277 * features/Makefile (WHICH): Remove arm-with-m,
1278 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1279
acc9fe45
PA
12802014-10-01 Pedro Alves <palves@redhat.com>
1281
1282 * features/Makefile (clean): New rule.
1283
e001e535
PA
12842014-10-01 Pedro Alves <palves@redhat.com>
1285
1286 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1287 (zmm14h): Add missing end quotes.
1288
bdc14417
PA
12892014-10-01 Pedro Alves <palves@redhat.com>
1290
1291 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1292 * features/aarch64.c: Regenerate.
1293
d83ad864
DB
12942014-09-30 Don Breazeal <donb@codesourcery.com>
1295
1296 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1297 code so as to work with follow_fork_inferior.
1298 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1299 (inf_ttrace_create_inferior): Remove reference to
1300 inf_ttrace_vfork_ppid.
1301 (inf_ttrace_attach): Ditto.
1302 (inf_ttrace_detach): Ditto.
1303 (inf_ttrace_kill): Use current_inferior instead of
1304 inf_ttrace_vfork_ppid.
1305 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1306 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1307 inferior away from the parent.
1308 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1309 target_follow_fork.
1310 (follow_fork_inferior): New function.
1311 (follow_inferior_reset_breakpoints): Make function static.
1312 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1313 * linux-nat.c (linux_child_follow_fork): Move target-independent
1314 code to infrun.c:follow_fork_inferior.
1315
29082443
AA
13162014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1317
1318 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1319 * gdbarch.c: Regenerate.
1320 * gdbarch.h: Likewise.
1321 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1322 gdbarch method 'regset_from_core_section'.
1323 (get_core_register_section): Remove handling for the case that
1324 regset == NULL and regset_from_core_section is defined.
1325 (get_core_registers): Drop check for deleted method.
1326 * procfs.c (procfs_do_thread_registers): Adjust comment.
1327
f968fe80
AA
13282014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1329
1330 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1331 (linux_nat_make_corefile_notes): Remove.
1332 (linux_target_install_ops): Do not set target method
1333 'make_corefile_notes'.
1334 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1335 Remove field.
1336 (linux_corefile_thread_callback): Instead of args->collect, call
1337 linux_collect_thread_registers.
1338 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1339 NULL unless there is a regset iterator.
1340 (linux_make_corefile_notes_1): Remove.
1341 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1342 by linux_make_corefile_notes.
1343 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1344
174ad59a
AA
13452014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1346
1347 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1348 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1349 Remove.
1350 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1351
97094034
AA
13522014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1353
1354 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1355 (xtensa_iterate_over_regset_sections): New.
1356 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1357
f73d3ce7
AA
13582014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1359
1360 * vax-tdep.c (vax_regset_from_core_section): Remove.
1361 (vax_iterate_over_regset_sections): New.
1362 (vax_gdbarch_init): Adjust gdbarch initialization.
1363
cb24567a
AA
13642014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1365
1366 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1367 (tilegx_regset_from_core_section): Remove.
1368 (tilegx_iterate_over_regset_sections): New.
1369 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1370
e5139de8
AA
13712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1372
1373 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1374 (sparc_iterate_over_regset_sections): New.
1375 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1376 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1377 targets.
1378 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1379 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1380 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1381 target method 'make_corefile_notes'.
1382
c6d41a6f
AA
13832014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1384
1385 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1386 'sizeof_gregset' and 'sizeof_fpregset'.
1387 * sh-tdep.c (sh_regset_from_core_section): Remove.
1388 (sh_iterate_over_regset_sections): New.
1389 (sh_gdbarch_init): Adjust gdbarch initialization.
1390 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1391 sizeof_fpregset.
1392 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1393 'sizeof_gregset'.
1394
9845a0b5
AA
13952014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1396
1397 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1398 (score7_linux_iterate_over_regset_sections): New.
1399 (score_gdbarch_init): Adjust gdbarch initialization.
1400
23ea9aeb
AA
14012014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1402
1403 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1404 FreeBSD targets.
1405 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1406 method 'make_corefile_notes'.
1407 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1408 (ppcfbsd_regset_from_core_section): Remove.
1409 (ppcfbsd_iterate_over_regset_sections): New.
1410 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1411 initialization.
1412 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1413 (ppcnbsd_iterate_over_regset_sections): New.
1414 (ppcnbsd_init_abi): Adjust.
1415 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1416 (ppcobsd_iterate_over_regset_sections): New.
1417 (ppcobsd_init_abi): Adjust.
1418 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1419 (rs6000_aix_iterate_over_regset_sections): New.
1420 (rs6000_aix_init_osabi): Adjust.
1421
c5b8d704
AA
14222014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1423
1424 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1425 (nios2_regset_from_core_section): Remove.
1426 (nios2_iterate_over_regset_sections): New.
1427 (nios2_linux_init_abi): Adjust gdbarch initialization.
1428
3636e608
AA
14292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1430
1431 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1432 (am33_iterate_over_regset_sections): New.
1433 (am33_linux_init_osabi): Adjust gdbarch initialization.
1434
d4036235
AA
14352014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1436
1437 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1438 (mips_linux_iterate_over_regset_sections): New.
1439 (mips_linux_init_abi): Adjust gdbarch initialization.
1440 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1441 (mips64obsd_iterate_over_regset_sections): New.
1442 (mips64obsd_init_abi): Adjust.
1443 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1444 (mipsnbsd_iterate_over_regset_sections): New.
1445 (mipsnbsd_init_abi): Adjust.
1446
b61ddd6e
AA
14472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1448
1449 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1450 (m88k_iterate_over_regset_sections): New.
1451 (m88k_gdbarch_init): Adjust gdbarch initialization.
1452
55a2906a
AA
14532014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1454
1455 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1456 (ia64_linux_iterate_over_regset_sections): New.
1457 (ia64_linux_init_abi): Adjust gdbarch initialization.
1458
022c98ab
AA
14592014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1460
1461 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1462 (m68kbsd_iterate_over_regset_sections): New.
1463 (m68kbsd_init_abi): Adjust gdbarch initialization.
1464 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1465 (m68k_linux_iterate_over_regset_sections): New.
1466 (m68k_linux_init_abi): Adjust gdbarch initialization.
1467
5fac247f
AA
14682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1469
1470 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1471 (m32r_linux_regset_from_core_section): Remove.
1472 (m32r_linux_iterate_over_regset_sections): New.
1473 (m32r_linux_init_abi): Adjust gdbarch initialization.
1474
490496c3
AA
14752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1476
1477 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1478 (amd64obsd_iterate_over_regset_sections): New.
1479 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1480 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1481 Remove.
1482 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1483 regset_from_core_section initialization.
1484 * i386-tdep.c (i386_regset_from_core_section): Remove.
1485 (i386_iterate_over_regset_sections): New.
1486 (i386_gdbarch_init): Adjust gdbarch initialization.
1487 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1488 (i386_iterate_over_regset_sections): New prototype.
1489 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1490 Remove.
1491 (i386obsd_aout_iterate_over_regset_sections): New.
1492 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1493 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1494 targets.
1495 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1496 (amd64fbsd_init_abi): Call fbsd_init_abi.
1497 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1498 (i386fbsd4_init_abi): Call fbsd_init_abi.
1499 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1500 target method 'make_corefile_notes'.
1501 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1502
50c5eb53
AA
15032014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1504
1505 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1506 (hppa_hpux_iterate_over_regset_sections): New.
1507 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1508 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1509 (hppa_linux_iterate_over_regset_sections): New.
1510 (hppa_linux_init_abi): Adjust.
1511 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1512 (hppanbsd_iterate_over_regset_sections): New.
1513 (hppanbsd_init_abi): Adjust.
1514 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1515 (hppaobsd_iterate_over_regset_sections): New.
1516 (hppaobsd_init_abi): Adjust.
1517
66afae4f
AA
15182014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1519
1520 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1521 (frv_linux_iterate_over_regset_sections): New.
1522 (frv_linux_init_abi): Adjust gdbarch initialization.
1523
ed09174e
AA
15242014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1525
1526 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1527 (armbsd_iterate_over_regset_sections): New prototype.
1528 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1529 (armbsd_iterate_over_regset_sections): New.
1530 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1531 initialization.
1532
dff2166e
AA
15332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1534
1535 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1536 (alpha_linux_iterate_over_regset_sections): New.
1537 (alpha_linux_init_abi): Adjust gdbarch initialization.
1538 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1539 prototype.
1540 (alphanbsd_iterate_over_regset_sections): New prototype.
1541
4108500a
AA
15422014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1543
1544 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1545 Remove.
1546 (aarch64_linux_iterate_over_regset_sections): New.
1547 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1548
a904c024
AA
15492014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1550
1551 * fbsd-tdep.c: New file.
1552 * fbsd-tdep.h: New file.
1553 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1554 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1555 (ALLDEPFILES): Add fbsd-tdep.c.
1556
8f0435f7
AA
15572014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1558
1559 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1560 parameter.
1561 * gdbarch.h: Regenerate.
1562 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1563 iterator.
1564 (get_core_register_section): Add parameter 'regset' and use it, if
1565 set. Add parameter 'min_size' and verify the bfd section size
1566 against it.
1567 (get_core_registers_cb): Add parameter 'regset' and pass it to
1568 get_core_register section. For the "standard" register sections
1569 ".reg" and ".reg2", set an appropriate default for human_name.
1570 (get_core_registers): Don't abort when the gdbarch has an iterator
1571 but no regset_from_core_section. Add NULL/0 for parameters
1572 'regset'/'min_size' in calls to get_core_register_section.
1573 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1574 'regset' and use it instead of calling the
1575 regset_from_core_section gdbarch method.
1576 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1577 * i386-tdep.c (i386_supply_xstateregset)
1578 (i386_collect_xstateregset, i386_xstateregset): Moved to
1579 i386-linux-tdep.c.
1580 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1581 .reg-xstate.
1582 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1583 core file support only if the regset iterator hasn't been set.
1584 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1585 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1586 Moved from i386-tdep.c and renamed to *_linux*.
1587 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1588 each callback invocation. Allow any .reg-xstate size when reading
1589 from a core file.
1590 * amd64-tdep.c (amd64_supply_xstateregset)
1591 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1592 amd64-linux-tdep.c.
1593 (amd64_regset_from_core_section): Remove.
1594 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1595 install an amd64-specific regset_from_core_section gdbarch method.
1596 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1597 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1598 Moved from amd64-tdep.c and renamed to *_linux*.
1599 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1600 to each callback invocation. Allow any .reg-xstate size when
1601 reading from a core file.
1602 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1603 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1604 each callback invocation.
1605 (arm_linux_init_abi): No longer set the regset_from_core_section
1606 gdbarch method.
1607 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1608 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1609 each callback invocation.
1610 (ppc_linux_init_abi): No longer set the regset_from_core_section
1611 gdbarch method.
1612 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1613 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1614 (s390_regset_from_core_section): Remove.
1615 (s390_iterate_over_regset_sections): Add regset parameter to each
1616 callback invocation.
1617 (s390_gdbarch_init): No longer set the regset_from_core_section
1618 gdbarch method. Drop initialization of deleted tdep fields.
1619
5aa82d05
AA
16202014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1621
1622 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1623 (amd64_linux_iterate_over_regset_sections): New.
1624 (amd64_linux_init_abi_common): Don't install the regset section
1625 list, but the new iterator in gdbarch.
1626 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1627 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1628 (arm_linux_iterate_over_regset_sections): ...here. New function.
1629 (arm_linux_init_abi): Set iterator instead of section list.
1630 * corelow.c (get_core_registers_cb): New function, logic moved
1631 from...
1632 (get_core_registers): ...loop body here. Use new iterator method
1633 instead of walking through the regset section list.
1634 * gdbarch.sh: Remove 'core_regset_sections'. New method
1635 'iterate_over_regset_sections'. New typedef
1636 'iterate_over_regset_sections_cb'.
1637 * gdbarch.c: Regenerate.
1638 * gdbarch.h: Likewise.
1639 * i386-linux-tdep.c (i386_linux_regset_sections)
1640 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1641 Remove.
1642 (i386_linux_iterate_over_regset_sections): New.
1643 (i386_linux_init_abi): Don't choose a regset section list, but
1644 install new iterator in gdbarch.
1645 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1646 (linux_collect_regset_section_cb): New function, logic moved
1647 from...
1648 (linux_collect_thread_registers): ...loop body here. Use iterator
1649 method instead of walking through list.
1650 (linux_make_corefile_notes_1): Check for presence of iterator
1651 method instead of regset section list.
1652 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1653 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1654 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1655 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1656 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1657 (ppc_linux_init_abi): Don't choose from above regset section
1658 lists, but install new iterator in gdbarch.
1659 * regset.h (struct core_regset_section): Remove.
1660 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1661 have_linux_v1, have_linux_v2, and have_tdb.
1662 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1663 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1664 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1665 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1666 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1667 (s390_iterate_over_regset_sections): ...here. New function. Use
1668 new tdep fields.
1669 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1670 regset section lists, but install new iterator.
1671
2eca4a8d
JK
16722014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1673
1674 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1675
a73c2b56
SM
16762014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1677
1678 * progspace.c (print_program_space): Don't prune program spaces
1679 before printing them.
1680
03d46957
PA
16812014-09-25 Pedro Alves <palves@redhat.com>
1682
1683 * infrun.c (user_visible_resume_ptid): Don't check
1684 singlestep_breakpoints_inserted_p.
1685
e558d7c1
PA
16862014-09-25 Pedro Alves <palves@redhat.com>
1687
1688 * breakpoint.c (should_be_inserted): Add debug output.
1689
7f89fd65
PA
16902014-09-25 Pedro Alves <palves@redhat.com>
1691
1692 * infrun.c (stepping_past_instruction_at)
1693 (clear_exit_convenience_vars): Point at infrun.h instead of
1694 inferior.h.
1695 (handle_signal_stop): Fix typo.
1696
b7576e5c
YQ
16972014-09-24 Yao Qi <yao@codesourcery.com>
1698
1699 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1700 bitmask.
1701
9a6cf368
GB
17022014-09-22 Gary Benson <gbenson@redhat.com>
1703
1704 * target.c (target_stop): Updated comment.
1705
03f4463b
GB
17062014-09-22 Gary Benson <gbenson@redhat.com>
1707
1708 * target/target.h (target_stop_ptid): Renamed as...
1709 (target_stop_and_wait): New function. Updated comment.
1710 All uses updated.
1711 (target_continue_ptid): Renamed as...
1712 (target_continue_no_signal): New function. Updated comment.
1713 All uses updated.
1714
a25a5a45
PA
17152014-09-22 Pedro Alves <palves@redhat.com>
1716
1717 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1718 and "auto" merged.
1719 * breakpoint.c (enum ugll_insert_mode): New enum.
1720 (always_inserted_mode): Now a plain boolean.
1721 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1722 (breakpoints_always_inserted_mode): Delete.
1723 (breakpoints_should_be_inserted_now): New function.
1724 (insert_breakpoints): Pass UGLL_INSERT to
1725 update_global_location_list instead of calling
1726 insert_breakpoint_locations manually.
1727 (create_solib_event_breakpoint_1): New, factored out from ...
1728 (create_solib_event_breakpoint): ... this.
1729 (create_and_insert_solib_event_breakpoint): Use
1730 create_solib_event_breakpoint_1 instead of calling
1731 insert_breakpoint_locations manually.
1732 (update_global_location_list): Change parameter type from boolean
1733 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1734 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1735 (update_global_location_list_nothrow): Change parameter type from
1736 boolean to enum ugll_insert_mode.
1737 (_initialize_breakpoint): "breakpoint always-inserted" option is
1738 now a boolean command. Update help text.
1739 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1740 (breakpoints_should_be_inserted_now): New declaration.
1741 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1742 Remove breakpoints_always_inserted_mode check.
1743 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1744 * remote.c (remote_start_remote): Likewise.
1745
04086b45
PA
17462014-09-22 Pedro Alves <palves@redhat.com>
1747
1748 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1749 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1750 Instead, pass UGLL_INSERT to update_global_location_list.
1751 (update_global_location_list): Change parameter type from boolean
1752 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1753 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1754 (create_solib_event_breakpoint_1): New, factored out from ...
1755 (create_solib_event_breakpoint): ... this.
1756 (create_and_insert_solib_event_breakpoint): Use
1757 create_solib_event_breakpoint_1 instead of calling
1758 insert_breakpoint_locations manually.
1759 (update_global_location_list): Handle UGLL_INSERT.
1760
44702360
PA
17612014-09-22 Pedro Alves <palves@redhat.com>
1762
1763 * breakpoint.c (enum ugll_insert_mode): New enum.
1764 (update_global_location_list)
1765 (update_global_location_list_nothrow): Change parameter type from
1766 boolean to enum ugll_insert_mode. All callers adjusted.
1767
93c6145a
JB
17682014-09-19 Joel Brobecker <brobecker@adacore.com>
1769
1770 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1771 SystemTap support in GDB.
1772
89a5711c
DB
17732014-09-19 Don Breazeal <donb@codesourcery.com>
1774
1775 * linux-nat.c (linux_handle_extended_wait): Call
1776 linux_ptrace_get_extended_event.
1777 (wait_lwp): Call linux_is_extended_waitstatus.
1778 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1779 and linux_is_extended_waitstatus.
1780 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1781 linux_ptrace_get_extended_event.
1782 (linux_ptrace_get_extended_event): New function.
1783 (linux_is_extended_waitstatus): New function.
1784 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1785 (linux_is_extended_waitstatus): New declarations.
1786
c3b7b696
YQ
17872014-09-19 Yao Qi <yao@codesourcery.com>
1788
1789 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1790 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1791 comments. Callers update.
1792 (dwarf_decode_lines): Likewise.
1793 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1794 comments. Skip the line table if 'lowpc' is greater than
1795 'address'. Don't check
1796 dwarf2_per_objfile->has_section_at_zero.
1797
2b4fd423
DE
17982014-09-18 Doug Evans <dje@google.com>
1799
1800 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1801 * python/py-symtab.c (stpy_get_producer): New function.
1802 (symtab_object_getset): Add "producer" attribute.
1803
5e43d467
UW
18042014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1805
1806 PR gdb/17384
1807 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1808 (do_captured_read_memory_integer): Remove.
1809 (safe_read_memory_integer): Use target_read_memory directly instead
1810 of catching errors in do_captured_read_memory_integer.
1811
04e79979
MR
18122014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1813
1814 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1815 not gdb/doc.
1816
76aeec5b
SDJ
18172014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1818
1819 * objc-lang.c (find_implementation_from_class): Remove dead code.
1820
2f693f9d
SDJ
18212014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1822
1823 PR cli/7233
1824 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1825 "fprintf_unfiltered (gdb_stdlog...)".
1826
bb9d5f81
PP
18272014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1828
1829 PR breakpoints/12526
1830 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1831 val_bitsize.
1832 * breakpoint.c (watch_command_1): Use these fields to retain
1833 bitfield information.
1834 (extract_bitfield_from_watchpoint_value): New function.
1835 (watchpoint_check): Use it.
1836 (update_watchpoint): Use it. Optimize the address and length of a
1837 HW watchpoint pointing to a bitfield.
1838 * value.h (unpack_value_bitfield): New prototype.
1839 * value.c (unpack_value_bitfield): Make extern.
1840
05db5edd
ST
18412014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1842
1843 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1844 x86-dregs.o.
1845 * gnu-nat.c (inf_threads): New function.
1846 * gnu-nat.h (inf_threads_ftype): New typedef.
1847 (inf_threads): New declaration.
1848 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1849 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1850 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1851 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1852 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1853 (i386_gnu_dr_get_control): New functions.
1854 (reg_addr): New structure.
1855 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1856 i386 debugging register hooks.
1857 * NEWS: Mention this.
1858
5a578da5
OJ
18592014-08-13 Omair Javaid <omair.javaid@linaro.org>
1860
1861 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1862 vector data transfer instructions.
1863 (arm_record_coproc_data_proc): Updated.
1864
f20f80dd
OJ
18652014-08-13 Omair Javaid <omair.javaid@linaro.org>
1866
1867 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1868 arm_record_exreg_ld_st_insn.
1869 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1870 load/store insns.
1871
851f26ae
OJ
18722014-08-13 Omair Javaid <omair.javaid@linaro.org>
1873
1874 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1875 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1876 processing instructions.
1877
1e1b6563
OJ
18782014-08-13 Omair Javaid <omair.javaid@linaro.org>
1879
1880 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1881 for advance SIMD struct ld/st insn.
1882 (thumb2_record_decode_insn_handler): Replace stub handler with
1883 thumb2_record_asimd_struct_ld_st.
1884
60cc5e93
OJ
18852014-08-13 Omair Javaid <omair.javaid@linaro.org>
1886
1887 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1888 for asimd, vfp and coprocessor insns.
1889 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1890 and coprocessor insns.
1891 (thumb2_record_coproc_insn): New function.
1892 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1893 handlers.
1894 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1895 opcode 110 insns.
1896
81219e53
DE
18972014-09-13 Doug Evans <xdje42@gmail.com>
1898
1899 * NEWS: Mention new "queue-signal" command.
1900 * infcmd.c (queue_signal_command): New function.
1901 (_initialize_infcmd): Add new queue-signal command.
1902
d36bf488
DE
19032014-09-13 Doug Evans <xdje42@gmail.com>
1904
1905 * linux-nat.c (wait_lwp): Add debugging printf.
1906 (linux_nat_wait_1): Ditto.
1907
f37f681c
PA
19082014-09-12 Pedro Alves <palves@redhat.com>
1909
1910 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1911 (create_and_insert_solib_event_breakpoint): New functions.
1912 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1913 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1914 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1915 (remove_dbx_link_breakpoint): Delete function.
1916 (insert_dbx_link_bpt_in_file): Use
1917 create_and_insert_solib_event_breakpoint instead of
1918 deprecated_insert_raw_breakpoint.
1919 (procfs_wait): Don't check whether we hit __dbx_link here.
1920 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1921 here.
1922 * solib-irix.c (base_breakpoint): Delete global.
1923 (disable_break): Delete function.
1924 (enable_break): Use create_solib_event_breakpoint
1925 instead of deprecated_insert_raw_breakpoint.
1926 (irix_solib_handle_event): New function.
1927 (irix_solib_create_inferior_hook): Don't run the target or disable
1928 the mapping-complete breakpoint here.
1929 (_initialize_irix_solib): Install irix_solib_handle_event as
1930 so_ops->handle_event hook.
1931
9d9bf2df
EBM
19322014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1933 Ulrich Weigand  <uweigand@de.ibm.com>
1934
1935 PR tdep/17379
1936 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1937 instead of read_memory_unsigned_integer.
1938
b006a80e
GB
19392014-09-12 Gary Benson <gbenson@redhat.com>
1940
1941 * nat/linux-waitpid.c: Include common-defs.h.
1942 [GDBSERVER]: Add FIXME comment.
1943 [!GDBSERVER]: Don't include defs.h or signal.h.
1944 (linux_debug) [!GDBSERVER]: Remove empty block.
1945
296b1496
GB
19462014-09-12 Gary Benson <gbenson@redhat.com>
1947
1948 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1949 Don't include defs.h or server.h.
1950
53f81362
GB
19512014-09-12 Gary Benson <gbenson@redhat.com>
1952
1953 * nat/linux-btrace.c: Include common-defs.h.
1954 Don't include defs.h, server.h or gdbthread.h.
1955 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1956
727605ca
GB
19572014-09-12 Gary Benson <gbenson@redhat.com>
1958
1959 * common/agent.c: Include common-defs.h.
1960 Don't include defs.h or server.h.
1961 * common/buffer.c: Likewise.
1962 * common/common-debug.c: Likewise.
1963 * common/common-utils.c: Likewise.
1964 * common/errors.c: Likewise.
1965 * common/filestuff.c: Likewise.
1966 * common/format.c: Likewise.
1967 * common/gdb_vecs.c: Likewise.
1968 * common/print-utils.c: Likewise.
1969 * common/ptid.c: Likewise.
1970 * common/rsp-low.c: Likewise.
1971 * common/signals.c: Likewise.
1972 * common/vec.c: Likewise.
1973 * common/xml-utils.c: Likewise.
1974 * nat/linux-osdata.c: Likewise.
1975 * nat/linux-procfs.c: Likewise.
1976 * nat/linux-ptrace.c: Likewise.
1977 * nat/mips-linux-watch.c: Likewise.
1978 * target/waitstatus.c: Likewise.
1979
361c8ade
GB
19802014-09-12 Tom Tromey <tromey@redhat.com>
1981 Gary Benson <gbenson@redhat.com>
1982
1983 * common/common-regcache.h: New file.
1984 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1985 * regcache.h: Include common-regcache.h.
1986 (regcache_read_pc): Don't declare.
1987 * regcache.c (get_thread_regcache_for_ptid): New function.
1988 * nat/linux-btrace.c: Don't include regcache.h.
1989 Include common-regcache.h.
1990 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1991
a01cbb49
TS
19922014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1993
1994 * regcache.h (struct regset): Declare.
1995
98880d46
PA
19962014-09-11 Pedro Alves <palves@redhat.com>
1997
1998 PR gdb/17347
1999 * main.c: Include "infrun.h".
2000 (catch_command_errors, catch_command_errors_const): Wait for the
2001 foreground command to complete.
2002 * top.c (maybe_wait_sync_command_done): New function, factored out
2003 from ...
2004 (maybe_wait_sync_command_done): ... here.
2005 * top.h (maybe_wait_sync_command_done): New declaration.
2006
bd9269f7
GB
20072014-09-11 Tom Tromey <tromey@redhat.com>
2008 Gary Benson <gbenson@redhat.com>
2009
2010 * common/symbol.h: New file.
2011 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2012 * minsyms.c (find_minimal_symbol_address): New function.
2013 * common/agent.c: Include common/symbol.h.
2014 [!GDBSERVER]: Don't include objfiles.h.
2015 (agent_look_up_symbols): Use find_minimal_symbol_address.
2016
f8c1d06b
GB
20172014-09-11 Gary Benson <gbenson@redhat.com>
2018
2019 * target/target.h (target_stop_ptid, target_continue_ptid):
2020 Declare.
2021 * target.c (target_stop_ptid, target_continue_ptid): New
2022 functions.
2023 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2024 (agent_run_command): Always use target_stop_ptid and
2025 target_continue_ptid.
2026
721ec300
GB
20272014-09-11 Tom Tromey <tromey@redhat.com>
2028 Gary Benson <gbenson@redhat.com>
2029
2030 * target/target.h: New file.
2031 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2032 * target.h: Include target/target.h.
2033 (target_read_memory, target_write_memory): Don't declare.
2034 * target.c (target_read_uint32): New function.
2035 * common/agent.c: Include target/target.h.
2036 [!GDBSERVER]: Don't include target.h.
2037 (helper_thread_id): Type changed to uint32_t.
2038 (agent_get_helper_thread_id): Use target_read_uint32.
2039 (agent_run_command): Always use target_read_memory and
2040 target_write_memory.
2041 (agent_capability): Type changed to uint32_t.
2042 (agent_capability_check): Use target_read_uint32.
2043
c5e92cca
GB
20442014-09-11 Gary Benson <gbenson@redhat.com>
2045
2046 * common/common-debug.h (show_debug_regs): Declare.
2047 * common/common-debug.c (show_debug_regs): Define.
2048 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2049 all uses with show_debug_regs. Replace all uses that considered
2050 debug_hw_points as a multi-value integer with straight boolean
2051 uses.
2052 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2053 with show_debug_regs.
2054 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2055 all uses with show_debug_regs.
2056 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2057 uses with show_debug_regs.
2058
eeef931a
UW
20592014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2060
2061 * findvar.c (address_from_register): Handle targets requiring
2062 a special conversion routine even for plain pointer types.
2063
8efa9855
UW
20642014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2065
2066 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2067 (store_register): Do not call exec_one_dummy_insn.
2068
eb479039
JB
20692014-09-10 Joel Brobecker <brobecker@adacore.com>
2070
2071 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2072 dereference it first. Use value_enclosing_type instead of
2073 value_type.
2074 (ada_array_length): Likewise.
2075
deede10c
JB
20762014-09-10 Joel Brobecker <brobecker@adacore.com>
2077
2078 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2079 Adjust function implementation and documentation accordingly.
2080 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2081 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2082 Update call to ada_value_ptr_subscript.
2083
7828a5f5
JB
20842014-09-10 Joel Brobecker <brobecker@adacore.com>
2085
2086 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2087 instead of VAL's type.
2088
35782f14
JB
20892014-09-10 Joel Brobecker <brobecker@adacore.com>
2090
2091 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2092
d342a0da
DE
20932014-09-09 Doug Evans <xdje42@gmail.com>
2094
2095 PR guile/17367
2096 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2097 last parameter to pkg-config, not first.
2098 * configure.ac: Pass --with-guile provided pkg-config path to
2099 GDB_GUILE_PROGRAM_NAMES.
2100 * configure: Regenerate.
2101
b4a3d263
GKB
21022014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2103
2104 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2105 Bertazi".
2106
6e466374
MR
21072014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2108
2109 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2110 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2111 the list of sections determining GDB_OSABI_IRIX.
2112
a1ada89a
JH
21132014-09-09 James Hogan <james.hogan@imgtec.com>
2114
2115 * MAINTAINERS (Write After Approval): Add "James Hogan".
2116
86db008d
JH
21172014-09-09 James Hogan <james.hogan@imgtec.com>
2118
2119 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2120
72fde3df
JB
21212014-09-09 Joel Brobecker <brobecker@adacore.com>
2122
2123 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2124
92d8d229
DE
21252014-09-08 Doug Evans <xdje42@gmail.com>
2126
2127 PR 17247
2128 * guile.c: #include <signal.h>.
2129 (_initialize_guile): Block SIGCHLD while initializing Guile.
2130
2131 Replaces the following, which is reverted.
2132
2133 2014-07-26 Doug Evans <xdje42@gmail.com>
2134
2135 PR 17185
2136 * configure.ac: Add check for header gc/gc.h.
2137 Add check for function setenv.
2138 * configure: Regenerate.
2139 * config.in: Regenerate.
2140 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2141
d81412aa
DE
21422014-09-08 Doug Evans <xdje42@gmail.com>
2143
2144 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2145 with named constant. Fix style of pointer comparison.
2146 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2147
a9f116cb
GKB
21482014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2149
2150 PR gdb/17035
2151 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2152 decide whether we display the command on "show user".
2153 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2154 printing command name.
2155 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2156 * cli/cli-decode.c (cli_user_command_p): Create helper function
2157 to verify whether cmd_list_element is a user-defined command.
2158
c75bd3a2
JK
21592014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2160
2161 PR python/17355
2162 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2163 Fix goto out of TRY_CATCH.
2164
faa42425 21652014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 2166 Tom Tromey <tromey@redhat.com>
faa42425
DE
2167
2168 PR 15276
2169 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2170 $_any_caller_matches.
2171 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2172 * python/lib/gdb/function/caller_is.py: New file.
2173
0d41ba00
DE
21742014-09-06 Doug Evans <xdje42@gmail.com>
2175
2176 * infcmd.c (program_info): Fix typo.
2177
474ca4f6
SDJ
21782014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2179
2180 PR gdb/17235
2181 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2182 'number'. New variable 'has_digit'. Rewrite code to deal with
2183 subexpressions on SDT probes.
2184
ebf13736
PA
21852014-09-04 Pedro Alves <palves@redhat.com>
2186
2187 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2188 the input is only one character long.
2189
eb0b0463
SDJ
21902014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2191
2192 PR fortran/17237
2193 * f-valprint.c (f_val_print): Specify the correct print option to
2194 use when printing integer values.
2195
5ee44bfa
GB
21962014-09-04 Gary Benson <gbenson@redhat.com>
2197
2198 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2199 Remove code to cope with LWPs wrapped as PIDs.
2200 Add assertions to ensure no wrapped LWPs are passed.
2201
4875ffdb
PA
22022014-09-04 Pedro Alves <palves@redhat.com>
2203
2204 * value.c (value_ranges_copy_adjusted): New function, factored out
2205 from ...
2206 (value_contents_copy_raw): ... here.
2207 (unpack_value_bits_as_long_1): Rename back to ...
2208 (unpack_bits_as_long): ... this. Remove 'original_value' and
2209 'result' parameters. Change return type to LONGEST.
2210 (unpack_value_bits_as_long): Delete.
2211 (unpack_value_field_as_long_1): Delete.
2212 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2213 (unpack_value_bitfield): New function.
2214 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2215 (value_fetch_lazy): Use unpack_value_bitfield.
2216 * value.h (unpack_value_bits_as_long): Delete declaration.
2217
5f3b99cf
SS
22182014-09-03 Sasha Smundak <asmundak@google.com>
2219
2220 * python/py-frame.c (frapy_read_register): New function.
2221
ac740bc7
JH
22222014-09-03 James Hogan <james.hogan@imgtec.com>
2223
2224 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2225 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2226
7d793aa9
SDJ
22272014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2228
2229 PR python/16699
2230 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2231 function.
2232 (add_cmd): Set "completer_handle_brkchars" to NULL.
2233 * cli/cli-decode.h (struct cmd_list_element)
2234 <completer_handle_brkchars>: New field.
2235 * command.h (completer_ftype_void): New typedef.
2236 (set_cmd_completer_handle_brkchars): New prototype.
2237 * completer.c (set_gdb_completion_word_break_characters): New
2238 function.
2239 (complete_line_internal): Call "completer_handle_brkchars"
2240 callback from command.
2241 * completer.h: Include "command.h".
2242 (set_gdb_completion_word_break_characters): New prototype.
2243 * python/py-cmd.c (cmdpy_completer_helper): New function.
2244 (cmdpy_completer_handle_brkchars): New function.
2245 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2246 (cmdpy_init): Set completer_handle_brkchars to
2247 cmdpy_completer_handle_brkchars.
2248
97ea6506
GB
22492014-09-03 Gary Benson <gbenson@redhat.com>
2250
2251 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2252 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2253 Loop conditions changed to equivalent form.
2254 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2255 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2256 ALL_DEBUG_ADDRESS_REGISTERS.
2257
d1437815
JB
22582014-09-03 Joel Brobecker <brobecker@adacore.com>
2259
2260 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2261 description fix.
2262
9b94fcf1
DE
22632014-09-02 Doug Evans <dje@google.com>
2264
2265 * typeprint.c (find_global_typedef): Fix comment.
2266
df7e5265
GB
22672014-09-02 Gary Benson <gbenson@redhat.com>
2268
2269 * i386-nat.h: Renamed as...
2270 * x86-nat.h: New file. All type, function and variable name
2271 prefixes changed from "i386_" to "x86_". All references updated.
2272 * i386-nat.c: Renamed as...
2273 * x86-nat.c: New file. All type, function and variable name
2274 prefixes changed from "i386_" to "x86_". All references updated.
2275 * common/i386-xstate.h: Renamed as...
2276 * common/x86-xstate.h: New file. All type, function and variable
2277 name prefixes changed from "i386_" to "x86_". All references
2278 updated.
2279 * nat/i386-cpuid.h: Renamed as...
2280 * nat/x86-cpuid.h: New file. All type, function and variable name
2281 prefixes changed from "i386_" to "x86_". All references updated.
2282 * nat/i386-gcc-cpuid.h: Renamed as...
2283 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2284 name prefixes changed from "i386_" to "x86_". All references
2285 updated.
2286 * nat/i386-dregs.h: Renamed as...
2287 * nat/x86-dregs.h: New file. All type, function and variable name
2288 prefixes changed from "i386_" to "x86_". All references updated.
2289 * nat/i386-dregs.c: Renamed as...
2290 * nat/x86-dregs.c: New file. All type, function and variable name
2291 prefixes changed from "i386_" to "x86_". All references updated.
2292
1c3569d4
MR
22932014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2294
2295 * varobj.c (_initialize_varobj): Move to the end of file.
2296
ff55e1b5
GB
22972014-08-29 Gary Benson <gbenson@redhat.com>
2298
2299 * common/common-exceptions.h: New file.
2300 * common/common-exceptions.c: Likewise.
2301 * Makefile.in (SFILES): Add common/common-exceptions.c.
2302 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2303 (COMMON_OBS): Add common-exceptions.o.
2304 (common-exceptions.o): New rule.
2305 * exceptions.h (common-exceptions.h): Include.
2306 (gdb_setjmp.h): Do not include.
2307 (return_reason): Moved to common-exceptions.h.
2308 (enum return_reason): Likewise.
2309 (RETURN_MASK): Likewise.
2310 (typedef return_mask): Likewise.
2311 (enum errors): Likewise.
2312 (struct gdb_exception): Likewise.
2313 (exceptions_state_mc_init): Likewise.
2314 (exceptions_state_mc_action_iter): Likewise.
2315 (exceptions_state_mc_action_iter_1): Likewise.
2316 (TRY_CATCH): Likewise.
2317 (throw_exception): Likewise.
2318 (throw_verror): Likewise.
2319 (throw_vquit): Likewise.
2320 (throw_error): Likewise.
2321 (throw_quit): Likewise.
2322 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2323 (enum catcher_action): Likewise.
2324 (struct catcher): Likewise.
2325 (current_catcher): Likewise.
2326 (catcher_list_size): Likewise.
2327 (exceptions_state_mc_init): Likewise.
2328 (catcher_pop): Likewise.
2329 (exceptions_state_mc): Likewise.
2330 (exceptions_state_mc_action_iter): Likewise.
2331 (exceptions_state_mc_action_iter_1): Likewise.
2332 (throw_exception): Likewise.
2333 (exception_messages): Likewise.
2334 (exception_messages_size): Likewise.
2335 (throw_it): Likewise.
2336 (throw_verror): Likewise.
2337 (throw_vquit): Likewise.
2338 (throw_error): Likewise.
2339 (throw_quit): Likewise.
2340 (prepare_to_throw_exception): New function.
2341
e9bcb658
GB
23422014-08-29 Gary Benson <gbenson@redhat.com>
2343
2344 * common/gdb_setjmp.h: New file.
2345 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2346 * configure.ac: Move sigsetjmp check...
2347 * common/common.m4: ...here.
2348 * configure: Regenerate.
2349 * cp-support.c (SIGJMP_BUF): Delete.
2350 (SIGSETJMP): Likewise.
2351 (SIGLONGJMP): Likewise.
2352 * exceptions.h (gdb_setjmp.h): Include.
2353 (setjmp.h): Do not include.
2354 (EXCEPTIONS_SIGJMP_BUF): Delete.
2355 (EXCEPTIONS_SIGSETJMP): Likewise.
2356 (EXCEPTIONS_SIGLONGJMP): Likewise.
2357 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2358 from gdb_setjmp.h.
2359 * exceptions.c: Likewise.
2360
e3180625
GB
23612014-08-29 Gary Benson <gbenson@redhat.com>
2362
2363 * cleanups.h: Moved to...
2364 * common/cleanups.h: New file.
2365 * cleanups.c: Moved to...
2366 * common/cleanups.c: New file. Include common-defs.h and
2367 cleanups.h. Do not include defs.h.
2368 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2369 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2370 (cleanups.o): New rule.
2371
e3d6ba5d
GB
23722014-08-29 Gary Benson <gbenson@redhat.com>
2373
2374 * common/errors.h (internal_warning): New declaration.
2375 (internal_vwarning): Likewise.
2376 * common/errors.c (internal_warning): New function.
2377 * utils.h (internal_warning): Don't declare.
2378 (internal_vwarning): Likewise.
2379 * utils.c (internal_warning): Removed.
2380
075c7033
GB
23812014-08-29 Gary Benson <gbenson@redhat.com>
2382
2383 * main.c (captured_main): Use warning during startup.
2384 Prefix startup warning messages with command name.
2385
91b35fd0
GB
23862014-08-29 Gary Benson <gbenson@redhat.com>
2387
2388 * main.c (captured_main): Handle usage errors with error.
2389
b1ec390e
GB
23902014-08-29 Gary Benson <gbenson@redhat.com>
2391
2392 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2393 exit pair with a call to error. Wrap the message with _().
2394
fd0ef3dd
GB
23952014-08-29 Gary Benson <gbenson@redhat.com>
2396
2397 * main.c (captured_main): Replace a fprintf/exit
2398 pair with a call to error. Wrap the message with _().
2399
e0e6bcab
GB
24002014-08-29 Gary Benson <gbenson@redhat.com>
2401
2402 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2403 pairs with calls to error. Wrap the message with _().
2404
0d2f5c07
GB
24052014-08-29 Gary Benson <gbenson@redhat.com>
2406
2407 * utils.c (vwarning): Protect calls to target_terminal_ours
2408 and wrap_here.
2409
5df43998
GB
24102014-08-29 Gary Benson <gbenson@redhat.com>
2411
2412 * exceptions.c (print_flush): Protect calls to
2413 target_terminal_ours and wrap_here.
2414
2437fd32
GB
24152014-08-29 Gary Benson <gbenson@redhat.com>
2416
2417 * utils.h (filtered_printing_initialized): New declaration.
2418 * utils.c (abort_with_message): New function.
2419 (internal_vproblem): Use abort_with_message for first level
2420 recursive internal problems, and if gdb_stderr is not set up.
2421 Protect calls to target_terminal_ours, begin_line and query.
2422
f1f58506
DE
24232014-08-28 Doug Evans <dje@google.com>
2424
2425 * symtab.c (in_prologue): Move definition to better spot.
2426 (skip_prologue_using_sal): Ditto.
2427
aab2f208
DE
24282014-08-28 Doug Evans <dje@google.com>
2429
2430 * symtab.c (find_function_start_sal): Move definition to better spot.
2431
6b65d1b6
YQ
24322014-08-28 Yao Qi <yao@codesourcery.com>
2433
2434 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2435 found_stack_adjust in forward scan. Remove condition check
2436 on found_stack_adjust which is always true. Indent the code.
2437
a1b34d15
YQ
24382014-08-28 Yao Qi <yao@codesourcery.com>
2439
2440 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2441 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2442 (dwarf_decode_lines): Remove argument
2443 want_line_info. Remove condition check on want_line_info.
2444 Callers update.
2445
d5962de5
DE
24462014-08-27 Doug Evans <dje@google.com>
2447
2448 * dwarf2read.c (dwarf_record_line): Fix typo.
2449
9b139002
SDJ
24502014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2451
2452 * target.h (struct target_ops::to_terminal_save_ours): Remove
2453 declaration.
2454 (target_terminal_save_ours): Remove macro.
2455 * target-delegates.c: Regenerate.
2456 * inf-child.c (inf_child_target): Don't set the nonexistent
2457 field to_terminal_save_ours.
2458 * inferior.h (child_terminal_save_ours): Remove declaration.
2459 * terminal.h (gdb_save_tty_state): New declaration.
2460 * inflow.c (child_terminal_save_ours): Rename to ...
2461 (gdb_save_tty_state): ... this.
2462 * tui/tui.c: Include terminal.h.
2463 (tui_enable): Use gdb_save_tty_state instead of
2464 target_terminal_save_ours.
2465 (tui_disable): Likewise.
2466
9debeba0
DE
24672014-08-25 Doug Evans <dje@google.com>
2468
2469 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2470 Pass NULL instead of 0 for context pointer.
2471
428fc5fc
YQ
24722014-08-25 Yao Qi <yao@codesourcery.com>
2473
2474 * dwarf2read.c: Fix grammatical error.
2475
cdc07690
YQ
24762014-08-24 Yao Qi <yao@codesourcery.com>
2477
2478 * dwarf2read.c (scan_partial_symbols): Update comments.
2479 Rename argument 'need_pc' with 'set_addrmap'.
2480 (add_partial_namespace): Rename argument 'need_pc' with
2481 'set_addrmap'.
2482 (add_partial_module): Likewise.
2483 (add_partial_subprogram): Likewise. Update comments.
2484 (dwarf2_name): Fix typo.
2485
a05a36a5
DE
24862014-08-22 Doug Evans <dje@google.com>
2487
2488 PR 17276
2489 * dwarf2read.c (dwarf_record_line_p): New function.
2490 (dwarf_decode_lines_1): Ignore subsequent line number entries
2491 for the same line if any entry had a non-zero discriminator.
2492
252a6764
DE
24932014-08-22 Doug Evans <dje@google.com>
2494
2495 * buildsym.h (record_line_ftype): New typedef.
2496 (record_line): Use it.
2497 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2498 (dwarf_decode_lines_1): Call them.
2499
510db052
YQ
25002014-08-22 Yao Qi <yao@codesourcery.com>
2501
2502 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2503 (ctf_end): Remove code.
2504
22fd09ae
JK
25052014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2506
2507 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2508 (linux_make_corefile_notes): call update_thread_list, protected against
2509 exceptions.
2510
656e8868
PA
25112014-08-21 Pedro Alves <palves@redhat.com>
2512
2513 * infcmd.c (attach_command): Remove comment.
2514
de589d04
WN
25152014-08-21 Bin Cheng <bin.cheng@arm.com>
2516
2517 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2518 unsigned LONGEST to ULONGEST.
2519
2a31c623
PA
25202014-08-20 Pedro Alves <palves@redhat.com>
2521
2522 * Makefile.in (check-read1): New rule.
2523
d36430db
JB
25242014-08-20 Joel Brobecker <brobecker@adacore.com>
2525
2526 * value.c (value_from_contents_and_address): Strip resolved_type's
2527 typedef layers before checking its TYPE_DATA_LOCATION.
2528
000339af
PA
25292014-08-20 Pedro Alves <palves@redhat.com>
2530
2531 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2532
5f52445b
YQ
25332014-08-20 Yao Qi <yao@codesourcery.com>
2534
2535 * amd64-tdep.c (amd64_classify): Add a blank line after the
2536 example. Move "*/" to a new line.
2537 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2538 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2539 * dwarf2read.c (psymtab_include_file_name): Likewise.
2540
9a0dc9e3
PA
25412014-08-19 Andrew Burgess <aburgess@broadcom.com>
2542 Pedro Alves <palves@redhat.com>
2543
2544 PR symtab/14604
2545 PR symtab/14605
2546 * ada-lang.c (coerce_unspec_val_to_type): Use
2547 value_contents_copy_raw.
2548 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2549 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2550 * cp-valprint.c (cp_print_value_fields): Let the common printing
2551 code handle optimized out values.
2552 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2553 * d-valprint.c (dynamic_array_type): Use
2554 value_bits_any_optimized_out.
2555 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2556 check_any_valid fields.
2557 (check_pieced_value_bits): Delete and inline ...
2558 (check_pieced_synthetic_pointer): ... here.
2559 (check_pieced_value_validity): Delete.
2560 (check_pieced_value_invalid): Delete.
2561 (pieced_value_funcs): Remove check_validity and check_any_valid
2562 fields.
2563 (read_pieced_value): Use mark_value_bits_optimized_out.
2564 (write_pieced_value): Switch to use
2565 mark_value_bytes_optimized_out.
2566 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2567 of assuming the whole value is optimized out.
2568 * findvar.c (read_frame_register_value): Remove special handling
2569 of optimized out registers.
2570 (value_from_register): Use mark_value_bytes_optimized_out.
2571 * frame-unwind.c (frame_unwind_got_optimized): Use
2572 mark_value_bytes_optimized_out.
2573 * jv-valprint.c (java_value_print): Adjust.
2574 (java_print_value_fields): Let the common printing code handle
2575 optimized out values.
2576 * mips-tdep.c (mips_print_register): Remove special handling of
2577 optimized out registers.
2578 * opencl-lang.c (lval_func_check_validity): Delete.
2579 (lval_func_check_any_valid): Delete.
2580 (opencl_value_funcs): Remove check_validity and check_any_valid
2581 fields.
2582 * p-valprint.c (pascal_object_print_value_fields): Let the common
2583 printing code handle optimized out values.
2584 * stack.c (read_frame_arg): Remove special handling of optimized
2585 out values. Fetch both VAL and ENTRYVAL before comparing
2586 contents. Adjust to value_available_contents_eq rename.
2587 * valprint.c (valprint_check_validity)
2588 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2589 (val_print_array_elements): Adjust.
2590 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2591 (value_bits_any_optimized_out): New function.
2592 (value_entirely_covered_by_range_vector): New function, factored
2593 out from value_entirely_unavailable.
2594 (value_entirely_unavailable): Reimplement.
2595 (value_entirely_optimized_out): New function.
2596 (insert_into_bit_range_vector): New function, factored out from
2597 mark_value_bits_unavailable.
2598 (mark_value_bits_unavailable): Reimplement.
2599 (struct ranges_and_idx): New struct.
2600 (find_first_range_overlap_and_match): New function, factored out
2601 from value_available_contents_bits_eq.
2602 (value_available_contents_bits_eq): Rename to ...
2603 (value_contents_bits_eq): ... this. Check both unavailable
2604 contents and optimized out contents.
2605 (value_available_contents_eq): Rename to ...
2606 (value_contents_eq): ... this.
2607 (allocate_value_lazy): Remove reference to the old optimized_out
2608 boolean.
2609 (allocate_optimized_out_value): Use
2610 mark_value_bytes_optimized_out.
2611 (require_not_optimized_out): Adjust to check whether the
2612 optimized_out vec is empty.
2613 (ranges_copy_adjusted): New function, factored out from
2614 value_contents_copy_raw.
2615 (value_contents_copy_raw): Also copy the optimized out ranges.
2616 Assert the destination ranges aren't optimized out.
2617 (value_contents_copy): Update comment, remove call to
2618 require_not_optimized_out.
2619 (value_contents_equal): Adjust to check whether the optimized_out
2620 vec is empty.
2621 (set_value_optimized_out, value_optimized_out_const): Delete.
2622 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2623 New functions.
2624 (value_entirely_optimized_out, value_bits_valid): Delete.
2625 (value_copy): Take a VEC copy of the 'optimized_out' field.
2626 (value_primitive_field): Remove special handling of optimized out.
2627 (value_fetch_lazy): Assert that lazy values have no unavailable
2628 regions. Use value_bits_any_optimized_out. Remove some special
2629 handling for optimized out values.
2630 * value.h: Add intro comment about <optimized out> and
2631 <unavailable>.
2632 (struct lval_funcs): Remove check_validity and check_any_valid
2633 fields.
2634 (set_value_optimized_out, value_optimized_out_const): Remove.
2635 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2636 New declarations.
2637 (value_bits_any_optimized_out): New declaration.
2638 (value_bits_valid): Delete declaration.
2639 (value_available_contents_eq): Rename to ...
2640 (value_contents_eq): ... this, and extend comments.
2641
6694c411
JK
26422014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2643
2644 Fix -fsanitize=address on unreadable inferior strings.
2645 * valprint.c (val_print_string): Fix access before BUFFER.
2646
89a1c21a
SM
26472014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2648
2649 * target.c (target_struct_size): Remove.
2650 (target_struct_allocsize): Remove.
2651 (DEFAULT_ALLOCSIZE): Remove.
2652 (target_ops_p): New typedef.
2653 (DEF_VEC_P (target_ops_p)): New vector type.
2654 (target_structs): Change type to VEC (target_ops_p).
2655 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2656 (find_default_run_target): Rewrite for loop following changes to
2657 target_structs.
2658
cb417230
JB
26592014-08-19 Joel Brobecker <brobecker@adacore.com>
2660
2661 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2662 Adjust code accordingly. Adjust function description comment.
2663
817e0957
YQ
26642014-08-19 Yao Qi <yao@codesourcery.com>
2665
2666 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2667 types.
2668
2974be62
AM
26692014-08-19 Alan Modra <amodra@gmail.com>
2670
2671 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2672 * config.in: Regenerate.
2673 * configure: Regenerate.
2674
34abf635
GB
26752014-08-19 Tom Tromey <tromey@redhat.com>
2676 Gary Benson <gbenson@redhat.com>
2677
2678 * common/common-debug.h: New file.
2679 * common/common-debug.c: Likewise.
2680 * debug.c: Likewise.
2681 * Makefile.in (SFILES): Add common/common-debug.c.
2682 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2683 (COMMON_OBS): Add common-debug.o and debug.o.
2684 (common-debug.o): New rule.
2685 * common/common-defs.h: Include common-debug.h.
2686 * common/agent.c (debug_agent_printf): New function.
2687 (DEBUG_AGENT): Redefine.
2688 * nat/i386-dregs.c (debug_printf): Undefine.
2689
f6e94d78
GB
26902014-08-19 Gary Benson <gbenson@redhat.com>
2691
2692 * common/common-defs.h: Include print-utils.h.
2693 * utils.h: Do not include print-utils.h.
2694
9239eeab
GB
26952014-08-19 Tom Tromey <tromey@redhat.com>
2696 Gary Benson <gbenson@redhat.com>
2697
2698 * common/common-types.h: New file.
2699 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2700 * common/common-defs.h: Include common-types.h.
2701 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2702 (ULONGEST): Remove.
2703
ef87c8bb
GB
27042014-08-19 Tom Tromey <tromey@redhat.com>
2705 Gary Benson <gbenson@redhat.com>
2706
2707 * common/errors.h: New file.
2708 * common/errors.c: Likewise.
2709 * Makefile.in (SFILES): Add common/errors.c.
2710 (HFILES_NO_SRCDIR): Add common/errors.h.
2711 (COMMON_OBS): Add errors.o.
2712 (errors.o): New rule.
2713 * common/common-defs.h: Include errors.h.
2714 * utils.h (perror_with_name, error, verror, warning, vwarning):
2715 Don't declare.
2716 * common/common-utils.h: (malloc_failure, internal_error):
2717 Likewise.
2718
196a707b
GB
27192014-08-19 Gary Benson <gbenson@redhat.com>
2720
2721 * utils.c (internal_vproblem): Always print the message.
2722
ded4fc8f
DE
27232014-08-18 Doug Evans <dje@google.com>
2724
2725 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2726
950c97d8
JB
27272014-08-18 Joel Brobecker <brobecker@adacore.com>
2728
2729 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2730 Return 0 if TYPE is dynamic.
2731 (print_range): Add handling of dynamic ranges.
2732
3cdcd0ce
JB
27332014-08-18 Keven Boell <keven.boell@intel.com>
2734 Joel Brobecker <brobecker@adacore.com>
2735
2736 * gdbtypes.h (struct main_type): Add field "data_location".
2737 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2738 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2739 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2740 a dynamic data location.
2741 (resolve_dynamic_type): Add DW_AT_data_location handling.
2742 (copy_recursive, copy_type): Copy the data_location information
2743 when present.
2744 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2745 * value.c (value_from_contents_and_address): Add
2746 DW_AT_data_location handling.
2747
08412b07
JB
27482014-08-18 Keven Boell <keven.boell@intel.com>
2749 Joel Brobecker <brobecker@adacore.com>
2750
2751 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2752 field "get_object_address".
2753 * dwarf2expr.c (execute_stack_op): Add handling for
2754 DW_OP_push_object_address.
2755 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2756 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2757 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2758 (dwarf_expr_get_obj_addr): New function.
2759 (dwarf_expr_ctx_funcs): Add get_object_address field.
2760 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2761 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2762 (dwarf2_evaluate_property): Add parameter "address". Use it.
2763 (needs_get_obj_addr): New function.
2764 (needs_frame_ctx_funcs): Add get_object_address field.
2765 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2766 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2767 (resolve_dynamic_array): Likewise.
2768
84754697
JB
27692014-08-18 Joel Brobecker <brobecker@adacore.com>
2770
2771 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2772 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2773 fixed value for records and unions for which some GNAT encodings
2774 are present.
2775
da5c522f
JB
27762014-08-18 Joel Brobecker <brobecker@adacore.com>
2777
2778 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2779 rewrite to avoid "else if" and "else" constructs. Should be
2780 a no-op in practice.
2781
0d72a7c3
JB
27822014-08-18 Joel Brobecker <brobecker@adacore.com>
2783
2784 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2785 of lexical block.
2786
e66d4446
SC
27872014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2788
2789 PR c++/17132
2790 * eval.c: Update all calls to find_overload_match.
2791 * valarith.c: Likewise.
2792 (value_user_defined_cpp_op, value_user_defined_op): New
2793 argument NOSIDE. Update all callers.
2794 * valops.c (find_overload_match): New argument NOSIDE.
2795 * value.h (find_overload_match): Update signature.
2796
940df408
SC
27972014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2798
2799 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2800 'items' methods instead of 'iteritems' method on dictionaries.
2801
699ca60a
DE
28022014-08-15 Doug Evans <dje@google.com>
2803
2804 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2805 closer to use.
2806
37780ee5
DE
28072014-08-15 Doug Evans <dje@google.com>
2808
2809 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2810
0ad93d4f
DE
28112014-08-15 Doug Evans <dje@google.com>
2812
2813 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2814
20d8c372
DE
28152014-08-15 Doug Evans <dje@google.com>
2816
2817 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2818 unused.
2819
cb039ba4
EZ
28202014-08-15 Eli Zaretskii <eliz@gnu.org>
2821
2822 * dcache.h: Include target.h, to avoid compile time warnings.
2823
eb7a547a
JB
28242014-08-15 Joel Brobecker <brobecker@adacore.com>
2825
2826 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2827 frame_info" partial declaration.
2828 * gdbarch.h: Regenerate.
2829
783cecc8
YQ
28302014-08-15 Yao Qi <yao@codesourcery.com>
2831
2832 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2833 Add parameter 'decode_for_pst_p'. Callers update.
2834
65c749e7
YQ
28352014-08-13 Yao Qi <yao@codesourcery.com>
2836
2837 PR build/17104
2838 * configure.ac: Use local variable 'pos'.
2839 * configure: Regenerated.
2840
d769e349
DE
28412014-08-11 Doug Evans <dje@google.com>
2842
2843 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2844 message, it is redundant with "Reading symbols from ..." message.
2845
24f1235e
DE
28462014-08-10 Doug Evans <xdje42@gmail.com>
2847
2848 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2849
dcd2e6ef
YQ
28502014-08-09 Yao Qi <yao@codesourcery.com>
2851
2852 PR remote/9053
2853 * remote.c (remote_xfer_partial): Remove dead code.
2854
070bdf0b
AA
28552014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2856
2857 * ia64-linux-tdep.c: Include "regset.h".
2858 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2859 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2860 (ia64_linux_supply_fpregset): New function.
2861 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2862 (ia64_linux_regset_from_core_section): New function.
2863 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2864 method.
2865
08f9f542
AA
28662014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2867
2868 * m68klinux-tdep.c: Include "regset.h".
2869 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2870 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2871 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2872 (m68k_linux_regset_from_core_section): New function.
2873 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2874 method.
2875
8f1cee41
AA
28762014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2877
2878 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2879 function. Move logic to...
2880 (tilegx_linux_regmap): ... this new register map.
2881 (tilegx_linux_regset): Refer to register map, replace supply
2882 method by regcache_supply_regset, and add collect method.
2883 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2884 TILEGX_FIRST_EASY_REGNUM.
2885
c5741217
AA
28862014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2887
2888 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2889 that calls regcache_supply_regset and handles the EPC register
2890 separately. Move main logic to...
2891 (score7_linux_gregmap): ... this new register map.
2892 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2893 (score7_linux_gregset): Refer to register map. Add collect method.
2894 (score7_linux_regset_from_core_section): Replace
2895 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2896 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2897 (struct regset): Delete unused forward declaraction.
2898 (struct pt_regs): Delete structure definition.
2899 (elf_gregset_t): Delete typedef.
2900
81580573
AA
29012014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2902
2903 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2904 (nios2_core_regset): Add collect method.
2905
ba199d7d
AA
29062014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2907
2908 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2909 platform-independent and don't write to read-only input buffer.
2910 (m32r_linux_collect_gregset): New function.
2911 (m32r_linux_gregset): Add collect method.
2912
0006a9da
AA
29132014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2914
2915 * hppa-linux-tdep.c (greg_map): Rename to...
2916 (hppa_linux_gregmap): ... this. Also convert to
2917 regcache_map_entry format.
2918 (hppa_linux_supply_regset): Delete function.
2919 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2920 (hppa_linux_fpregmap): ... this new register map.
2921 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2922 register map, replace supply method by regcache_supply_regset, and
2923 add collect method regcache_collect_regset.
2924
901e1b23
AA
29252014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2926
2927 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2928 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2929 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2930 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2931 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2932 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2933 (frv_linux_supply_gregset): Replace main logic by call to
2934 regcache_supply_regset, but keep clearing gr32-gr63.
2935 (frv_linux_supply_fpregset): Delete function.
2936 (frv_linux_gregset): Refer to appropriate register map and add
2937 regcache_collect_regset as the collect method.
2938 (frv_linux_fpregset): Likewise. Also exchange the supply method
2939 by regcache_supply_regset.
2940
1d6e7555
AA
29412014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2942
2943 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2944 by call to alpha_supply_int_regs.
2945 (alpha_linux_collect_gregset): New function.
2946 (alpha_linux_supply_fpregset): Replace logic by call to
2947 alpha_supply_fp_regs.
2948 (alpha_linux_collect_fpregset): New function.
2949 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2950
d4d793bf
AA
29512014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2952
2953 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2954 by call to regcache_collect_regset.
2955 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2956 instead of aarch64_linux_supply_gregset/_fpregset.
2957 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2958 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2959 header file instead.
2960 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2961 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2962 functions. Move logic to ...
2963 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2964 register maps.
2965 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2966 refer to new register maps, replace *_regset_from_core by
2967 regcache_supply_regset, and also use regcache_collect_regset.
2968 * aarch64-linux-tdep.h: Include "regset.h".
2969 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2970 Delete prototypes.
2971 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2972 macros, moved from C source file.
2973 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2974 variable declarations.
2975
99b7da5d
AA
29762014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2977
2978 * s390-linux-nat.c: Include "regset.h".
2979 (regmap_gregset): Delete macro.
2980 (s390_64_regmap_gregset): New register map for
2981 regcache_supply/_collect_regset.
2982 (s390_64_gregset): New regset.
2983 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2984 (regmap_fpregset): Delete macro.
2985 (s390_native_supply, s390_native_collect): Delete functions.
2986 (supply_gregset, fill_gregset): Replace s390-specific regmap
2987 handling by a call to regcache_supply/_collect_regset.
2988 (supply_fpregset, fill_fpregset): Call regcache_supply/
2989 _collect_regset instead of s390_native_supply/_collect.
2990 (fetch_regset, store_regset): Likewise. Also change the last
2991 parameter to a regset instead of a regmap.
2992 (s390_linux_fetch_inferior_registers)
2993 (390_linux_store_inferior_registers): Adjust last parameter in
2994 calls to fetch_regset and store_regset.
2995 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2996 (s390_gregmap): ... this. Also make static const and convert to
2997 regcache_map_entry format.
2998 (s390x_regmap_gregset): Delete.
2999 (s390_regmap_fpregset): Rename to...
3000 (s390_fpregmap): ... this. Make static const and convert to
3001 regcache_map_entry format.
3002 (s390_regmap_upper, s390_regmap_last_break)
3003 (s390x_regmap_last_break, s390_regmap_system_call)
3004 (s390_regmap_tdb): Likewise.
3005 (s390_supply_regset, s390_collect_regset): Remove functions.
3006 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3007 s390_supply_regset.
3008 (s390_gregset, s390_fpregset, s390_upper_regset)
3009 (s390_last_break_regset, s390x_last_break_regset)
3010 (s390_system_call_regset, s390_tdb_regset): Make global and
3011 replace s390_supply/_collect_regset by regcache_supply/
3012 _collect_regset.
3013 (s390x_gregset): Delete.
3014 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3015 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3016 (s390_regmap_fpregset, s390_regmap_last_break)
3017 (s390x_regmap_last_break, s390_regmap_system_call)
3018 (s390_regmap_tdb): Delete global variable declarations.
3019 (s390_gregset, s390_fpregset, s390_last_break_regset)
3020 (s390x_last_break_regset, s390_system_call_regset)
3021 (s390_tdb_regset): New global variable declarations.
3022
0b309272
AA
30232014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3024
3025 * regcache.c: Include "regset.h".
3026 (regcache_transfer_regset): New local function.
3027 (regcache_supply_regset, regcache_collect_regset): New functions.
3028 * regcache.h (struct regcache_map_entry): New structure.
3029 (REGCACHE_MAP_SKIP): New enum value.
3030 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3031
7fefa8d7
AA
30322014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3033
3034 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3035 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3036 (ppc_linux_collect_gregset ): Likewise.
3037 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3038 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3039 (ppc_collect_vrregset): Likewise.
3040 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3041 Likewise.
3042
96c4f946
YQ
30432014-08-07 Yao Qi <yao@codesourcery.com>
3044
3045 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3046 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3047 * remote.c (remote_read_bytes): Likewise.
3048
fffbe6a8
YQ
30492014-08-07 Yao Qi <yao@codesourcery.com>
3050
3051 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3052
5ee8a82c
YQ
30532014-08-07 Yao Qi <yao@codesourcery.com>
3054
3055 PR remote/17230
3056 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3057 TARGET_XFER_OK instead of 0.
3058
bb974a24
GB
30592014-08-07 Gary Benson <gbenson@redhat.com>
3060
3061 * common/common-defs.h: Include errno.h.
3062 * defs.h: Do not include errno.h.
3063 * ada-typeprint.c: Likewise.
3064 * c-typeprint.c: Likewise.
3065 * core-regset.c: Likewise.
3066 * corefile.c: Likewise.
3067 * corelow.c: Likewise.
3068 * event-loop.c: Likewise.
3069 * f-typeprint.c: Likewise.
3070 * gnu-nat.c: Likewise.
3071 * go32-nat.c: Likewise.
3072 * i386gnu-nat.c: Likewise.
3073 * m2-typeprint.c: Likewise.
3074 * nat/linux-btrace.c: Likewise.
3075 * p-typeprint.c: Likewise.
3076 * procfs.c: Likewise.
3077 * remote-sim.c: Likewise.
3078 * rs6000-nat.c: Likewise.
3079 * target.c: Likewise.
3080 * typeprint.c: Likewise.
3081 * ui-file.c: Likewise.
3082 * valops.c: Likewise.
3083 * valprint.c: Likewise.
3084
6d3d12eb
GB
30852014-08-07 Gary Benson <gbenson@redhat.com>
3086
3087 * common/common-defs.h: Include string.h.
3088 * aarch64-tdep.c: Do not include string.h.
3089 * ada-exp.y: Likewise.
3090 * ada-lang.c: Likewise.
3091 * ada-lex.l: Likewise.
3092 * ada-typeprint.c: Likewise.
3093 * ada-valprint.c: Likewise.
3094 * aix-thread.c: Likewise.
3095 * alpha-linux-tdep.c: Likewise.
3096 * alpha-mdebug-tdep.c: Likewise.
3097 * alpha-nat.c: Likewise.
3098 * alpha-osf1-tdep.c: Likewise.
3099 * alpha-tdep.c: Likewise.
3100 * alphanbsd-tdep.c: Likewise.
3101 * amd64-dicos-tdep.c: Likewise.
3102 * amd64-linux-tdep.c: Likewise.
3103 * amd64-nat.c: Likewise.
3104 * amd64-sol2-tdep.c: Likewise.
3105 * amd64fbsd-tdep.c: Likewise.
3106 * amd64obsd-tdep.c: Likewise.
3107 * arch-utils.c: Likewise.
3108 * arm-linux-nat.c: Likewise.
3109 * arm-linux-tdep.c: Likewise.
3110 * arm-tdep.c: Likewise.
3111 * arm-wince-tdep.c: Likewise.
3112 * armbsd-tdep.c: Likewise.
3113 * armnbsd-nat.c: Likewise.
3114 * armnbsd-tdep.c: Likewise.
3115 * armobsd-tdep.c: Likewise.
3116 * avr-tdep.c: Likewise.
3117 * ax-gdb.c: Likewise.
3118 * ax-general.c: Likewise.
3119 * bcache.c: Likewise.
3120 * bfin-tdep.c: Likewise.
3121 * breakpoint.c: Likewise.
3122 * build-id.c: Likewise.
3123 * buildsym.c: Likewise.
3124 * c-exp.y: Likewise.
3125 * c-lang.c: Likewise.
3126 * c-typeprint.c: Likewise.
3127 * c-valprint.c: Likewise.
3128 * charset.c: Likewise.
3129 * cli-out.c: Likewise.
3130 * cli/cli-cmds.c: Likewise.
3131 * cli/cli-decode.c: Likewise.
3132 * cli/cli-dump.c: Likewise.
3133 * cli/cli-interp.c: Likewise.
3134 * cli/cli-logging.c: Likewise.
3135 * cli/cli-script.c: Likewise.
3136 * cli/cli-setshow.c: Likewise.
3137 * cli/cli-utils.c: Likewise.
3138 * coffread.c: Likewise.
3139 * common/agent.c: Likewise.
3140 * common/buffer.c: Likewise.
3141 * common/buffer.h: Likewise.
3142 * common/common-utils.c: Likewise.
3143 * common/filestuff.c: Likewise.
3144 * common/filestuff.c: Likewise.
3145 * common/format.c: Likewise.
3146 * common/print-utils.c: Likewise.
3147 * common/rsp-low.c: Likewise.
3148 * common/signals.c: Likewise.
3149 * common/vec.h: Likewise.
3150 * common/xml-utils.c: Likewise.
3151 * core-regset.c: Likewise.
3152 * corefile.c: Likewise.
3153 * corelow.c: Likewise.
3154 * cp-abi.c: Likewise.
3155 * cp-name-parser.y: Likewise.
3156 * cp-support.c: Likewise.
3157 * cp-valprint.c: Likewise.
3158 * cris-tdep.c: Likewise.
3159 * d-exp.y: Likewise.
3160 * darwin-nat.c: Likewise.
3161 * dbxread.c: Likewise.
3162 * dcache.c: Likewise.
3163 * demangle.c: Likewise.
3164 * dicos-tdep.c: Likewise.
3165 * disasm.c: Likewise.
3166 * doublest.c: Likewise.
3167 * dsrec.c: Likewise.
3168 * dummy-frame.c: Likewise.
3169 * dwarf2-frame.c: Likewise.
3170 * dwarf2loc.c: Likewise.
3171 * dwarf2read.c: Likewise.
3172 * elfread.c: Likewise.
3173 * environ.c: Likewise.
3174 * eval.c: Likewise.
3175 * event-loop.c: Likewise.
3176 * exceptions.c: Likewise.
3177 * exec.c: Likewise.
3178 * expprint.c: Likewise.
3179 * f-exp.y: Likewise.
3180 * f-lang.c: Likewise.
3181 * f-typeprint.c: Likewise.
3182 * f-valprint.c: Likewise.
3183 * fbsd-nat.c: Likewise.
3184 * findcmd.c: Likewise.
3185 * findvar.c: Likewise.
3186 * fork-child.c: Likewise.
3187 * frame.c: Likewise.
3188 * frv-linux-tdep.c: Likewise.
3189 * frv-tdep.c: Likewise.
3190 * gdb.c: Likewise.
3191 * gdb_bfd.c: Likewise.
3192 * gdbarch.c: Likewise.
3193 * gdbarch.sh: Likewise.
3194 * gdbtypes.c: Likewise.
3195 * gnu-nat.c: Likewise.
3196 * gnu-v2-abi.c: Likewise.
3197 * gnu-v3-abi.c: Likewise.
3198 * go-exp.y: Likewise.
3199 * go-lang.c: Likewise.
3200 * go32-nat.c: Likewise.
3201 * guile/guile.c: Likewise.
3202 * guile/scm-auto-load.c: Likewise.
3203 * hppa-hpux-tdep.c: Likewise.
3204 * hppa-linux-nat.c: Likewise.
3205 * hppanbsd-tdep.c: Likewise.
3206 * hppaobsd-tdep.c: Likewise.
3207 * i386-cygwin-tdep.c: Likewise.
3208 * i386-dicos-tdep.c: Likewise.
3209 * i386-linux-tdep.c: Likewise.
3210 * i386-nto-tdep.c: Likewise.
3211 * i386-sol2-tdep.c: Likewise.
3212 * i386-tdep.c: Likewise.
3213 * i386bsd-tdep.c: Likewise.
3214 * i386gnu-nat.c: Likewise.
3215 * i386nbsd-tdep.c: Likewise.
3216 * i386obsd-tdep.c: Likewise.
3217 * i387-tdep.c: Likewise.
3218 * ia64-libunwind-tdep.c: Likewise.
3219 * ia64-linux-nat.c: Likewise.
3220 * inf-child.c: Likewise.
3221 * inf-ptrace.c: Likewise.
3222 * inf-ttrace.c: Likewise.
3223 * infcall.c: Likewise.
3224 * infcmd.c: Likewise.
3225 * inflow.c: Likewise.
3226 * infrun.c: Likewise.
3227 * interps.c: Likewise.
3228 * iq2000-tdep.c: Likewise.
3229 * irix5-nat.c: Likewise.
3230 * jv-exp.y: Likewise.
3231 * jv-lang.c: Likewise.
3232 * jv-typeprint.c: Likewise.
3233 * jv-valprint.c: Likewise.
3234 * language.c: Likewise.
3235 * linux-fork.c: Likewise.
3236 * linux-nat.c: Likewise.
3237 * lm32-tdep.c: Likewise.
3238 * m2-exp.y: Likewise.
3239 * m2-typeprint.c: Likewise.
3240 * m32c-tdep.c: Likewise.
3241 * m32r-linux-nat.c: Likewise.
3242 * m32r-linux-tdep.c: Likewise.
3243 * m32r-rom.c: Likewise.
3244 * m32r-tdep.c: Likewise.
3245 * m68hc11-tdep.c: Likewise.
3246 * m68k-tdep.c: Likewise.
3247 * m68kbsd-tdep.c: Likewise.
3248 * m68klinux-nat.c: Likewise.
3249 * m68klinux-tdep.c: Likewise.
3250 * m88k-tdep.c: Likewise.
3251 * machoread.c: Likewise.
3252 * macrocmd.c: Likewise.
3253 * main.c: Likewise.
3254 * mdebugread.c: Likewise.
3255 * mem-break.c: Likewise.
3256 * memattr.c: Likewise.
3257 * memory-map.c: Likewise.
3258 * mep-tdep.c: Likewise.
3259 * mi/mi-cmd-break.c: Likewise.
3260 * mi/mi-cmd-disas.c: Likewise.
3261 * mi/mi-cmd-env.c: Likewise.
3262 * mi/mi-cmd-stack.c: Likewise.
3263 * mi/mi-cmd-var.c: Likewise.
3264 * mi/mi-cmds.c: Likewise.
3265 * mi/mi-console.c: Likewise.
3266 * mi/mi-getopt.c: Likewise.
3267 * mi/mi-interp.c: Likewise.
3268 * mi/mi-main.c: Likewise.
3269 * mi/mi-parse.c: Likewise.
3270 * microblaze-rom.c: Likewise.
3271 * microblaze-tdep.c: Likewise.
3272 * mingw-hdep.c: Likewise.
3273 * minidebug.c: Likewise.
3274 * minsyms.c: Likewise.
3275 * mips-irix-tdep.c: Likewise.
3276 * mips-linux-tdep.c: Likewise.
3277 * mips-tdep.c: Likewise.
3278 * mips64obsd-tdep.c: Likewise.
3279 * mipsnbsd-tdep.c: Likewise.
3280 * mipsread.c: Likewise.
3281 * mn10300-linux-tdep.c: Likewise.
3282 * mn10300-tdep.c: Likewise.
3283 * monitor.c: Likewise.
3284 * moxie-tdep.c: Likewise.
3285 * mt-tdep.c: Likewise.
3286 * nat/linux-btrace.c: Likewise.
3287 * nat/linux-osdata.c: Likewise.
3288 * nat/linux-procfs.c: Likewise.
3289 * nat/linux-ptrace.c: Likewise.
3290 * nat/linux-waitpid.c: Likewise.
3291 * nbsd-tdep.c: Likewise.
3292 * nios2-linux-tdep.c: Likewise.
3293 * nto-procfs.c: Likewise.
3294 * nto-tdep.c: Likewise.
3295 * objc-lang.c: Likewise.
3296 * objfiles.c: Likewise.
3297 * opencl-lang.c: Likewise.
3298 * osabi.c: Likewise.
3299 * osdata.c: Likewise.
3300 * p-exp.y: Likewise.
3301 * p-lang.c: Likewise.
3302 * p-typeprint.c: Likewise.
3303 * parse.c: Likewise.
3304 * posix-hdep.c: Likewise.
3305 * ppc-linux-nat.c: Likewise.
3306 * ppc-sysv-tdep.c: Likewise.
3307 * ppcfbsd-tdep.c: Likewise.
3308 * ppcnbsd-tdep.c: Likewise.
3309 * ppcobsd-tdep.c: Likewise.
3310 * printcmd.c: Likewise.
3311 * procfs.c: Likewise.
3312 * prologue-value.c: Likewise.
3313 * python/py-auto-load.c: Likewise.
3314 * python/py-gdb-readline.c: Likewise.
3315 * ravenscar-thread.c: Likewise.
3316 * regcache.c: Likewise.
3317 * registry.c: Likewise.
3318 * remote-fileio.c: Likewise.
3319 * remote-m32r-sdi.c: Likewise.
3320 * remote-mips.c: Likewise.
3321 * remote-notif.c: Likewise.
3322 * remote-sim.c: Likewise.
3323 * remote.c: Likewise.
3324 * reverse.c: Likewise.
3325 * rs6000-aix-tdep.c: Likewise.
3326 * ser-base.c: Likewise.
3327 * ser-go32.c: Likewise.
3328 * ser-mingw.c: Likewise.
3329 * ser-pipe.c: Likewise.
3330 * ser-tcp.c: Likewise.
3331 * ser-unix.c: Likewise.
3332 * serial.c: Likewise.
3333 * sh-tdep.c: Likewise.
3334 * sh64-tdep.c: Likewise.
3335 * shnbsd-tdep.c: Likewise.
3336 * skip.c: Likewise.
3337 * sol-thread.c: Likewise.
3338 * solib-dsbt.c: Likewise.
3339 * solib-frv.c: Likewise.
3340 * solib-osf.c: Likewise.
3341 * solib-som.c: Likewise.
3342 * solib-spu.c: Likewise.
3343 * solib-target.c: Likewise.
3344 * solib.c: Likewise.
3345 * somread.c: Likewise.
3346 * source.c: Likewise.
3347 * sparc-nat.c: Likewise.
3348 * sparc-sol2-tdep.c: Likewise.
3349 * sparc-tdep.c: Likewise.
3350 * sparc64-tdep.c: Likewise.
3351 * sparc64fbsd-tdep.c: Likewise.
3352 * sparc64nbsd-tdep.c: Likewise.
3353 * sparcnbsd-tdep.c: Likewise.
3354 * spu-linux-nat.c: Likewise.
3355 * spu-multiarch.c: Likewise.
3356 * spu-tdep.c: Likewise.
3357 * stabsread.c: Likewise.
3358 * stack.c: Likewise.
3359 * std-regs.c: Likewise.
3360 * symfile.c: Likewise.
3361 * symmisc.c: Likewise.
3362 * symtab.c: Likewise.
3363 * target.c: Likewise.
3364 * thread.c: Likewise.
3365 * tilegx-linux-nat.c: Likewise.
3366 * tilegx-tdep.c: Likewise.
3367 * top.c: Likewise.
3368 * tracepoint.c: Likewise.
3369 * tui/tui-command.c: Likewise.
3370 * tui/tui-data.c: Likewise.
3371 * tui/tui-disasm.c: Likewise.
3372 * tui/tui-file.c: Likewise.
3373 * tui/tui-layout.c: Likewise.
3374 * tui/tui-out.c: Likewise.
3375 * tui/tui-regs.c: Likewise.
3376 * tui/tui-source.c: Likewise.
3377 * tui/tui-stack.c: Likewise.
3378 * tui/tui-win.c: Likewise.
3379 * tui/tui-windata.c: Likewise.
3380 * tui/tui-winsource.c: Likewise.
3381 * typeprint.c: Likewise.
3382 * ui-file.c: Likewise.
3383 * ui-out.c: Likewise.
3384 * user-regs.c: Likewise.
3385 * utils.c: Likewise.
3386 * v850-tdep.c: Likewise.
3387 * valarith.c: Likewise.
3388 * valops.c: Likewise.
3389 * valprint.c: Likewise.
3390 * value.c: Likewise.
3391 * varobj.c: Likewise.
3392 * vax-tdep.c: Likewise.
3393 * vaxnbsd-tdep.c: Likewise.
3394 * vaxobsd-tdep.c: Likewise.
3395 * windows-nat.c: Likewise.
3396 * xcoffread.c: Likewise.
3397 * xml-support.c: Likewise.
3398 * xstormy16-tdep.c: Likewise.
3399 * xtensa-linux-nat.c: Likewise.
3400
dccbb609
GB
34012014-08-07 Gary Benson <gbenson@redhat.com>
3402
3403 * common/common-defs.h: Include gdb_assert.h.
3404 * aarch64-tdep.c: Do not include gdb_assert.h.
3405 * addrmap.c: Likewise.
3406 * aix-thread.c: Likewise.
3407 * alpha-linux-tdep.c: Likewise.
3408 * alpha-mdebug-tdep.c: Likewise.
3409 * alphanbsd-tdep.c: Likewise.
3410 * amd64-nat.c: Likewise.
3411 * amd64-tdep.c: Likewise.
3412 * amd64bsd-nat.c: Likewise.
3413 * amd64fbsd-nat.c: Likewise.
3414 * amd64fbsd-tdep.c: Likewise.
3415 * amd64nbsd-nat.c: Likewise.
3416 * amd64nbsd-tdep.c: Likewise.
3417 * amd64obsd-nat.c: Likewise.
3418 * amd64obsd-tdep.c: Likewise.
3419 * arch-utils.c: Likewise.
3420 * arm-tdep.c: Likewise.
3421 * armbsd-tdep.c: Likewise.
3422 * auxv.c: Likewise.
3423 * bcache.c: Likewise.
3424 * bfin-tdep.c: Likewise.
3425 * blockframe.c: Likewise.
3426 * breakpoint.c: Likewise.
3427 * bsd-kvm.c: Likewise.
3428 * bsd-uthread.c: Likewise.
3429 * buildsym.c: Likewise.
3430 * c-exp.y: Likewise.
3431 * c-lang.c: Likewise.
3432 * charset.c: Likewise.
3433 * cleanups.c: Likewise.
3434 * cli-out.c: Likewise.
3435 * cli/cli-decode.c: Likewise.
3436 * cli/cli-dump.c: Likewise.
3437 * cli/cli-logging.c: Likewise.
3438 * cli/cli-script.c: Likewise.
3439 * cli/cli-utils.c: Likewise.
3440 * coffread.c: Likewise.
3441 * common/common-utils.c: Likewise.
3442 * common/queue.h: Likewise.
3443 * common/signals.c: Likewise.
3444 * common/vec.h: Likewise.
3445 * complaints.c: Likewise.
3446 * completer.c: Likewise.
3447 * corelow.c: Likewise.
3448 * cp-abi.c: Likewise.
3449 * cp-name-parser.y: Likewise.
3450 * cp-namespace.c: Likewise.
3451 * cp-support.c: Likewise.
3452 * cris-tdep.c: Likewise.
3453 * dbxread.c: Likewise.
3454 * dictionary.c: Likewise.
3455 * doublest.c: Likewise.
3456 * dsrec.c: Likewise.
3457 * dummy-frame.c: Likewise.
3458 * dwarf2-frame-tailcall.c: Likewise.
3459 * dwarf2-frame.c: Likewise.
3460 * dwarf2expr.c: Likewise.
3461 * dwarf2loc.c: Likewise.
3462 * dwarf2read.c: Likewise.
3463 * eval.c: Likewise.
3464 * event-loop.c: Likewise.
3465 * exceptions.c: Likewise.
3466 * expprint.c: Likewise.
3467 * f-valprint.c: Likewise.
3468 * fbsd-nat.c: Likewise.
3469 * findvar.c: Likewise.
3470 * frame-unwind.c: Likewise.
3471 * frame.c: Likewise.
3472 * frv-tdep.c: Likewise.
3473 * gcore.c: Likewise.
3474 * gdb-dlfcn.c: Likewise.
3475 * gdb_bfd.c: Likewise.
3476 * gdbarch.c: Likewise.
3477 * gdbarch.sh: Likewise.
3478 * gdbtypes.c: Likewise.
3479 * gnu-nat.c: Likewise.
3480 * gnu-v3-abi.c: Likewise.
3481 * go-lang.c: Likewise.
3482 * guile/scm-exception.c: Likewise.
3483 * guile/scm-gsmob.c: Likewise.
3484 * guile/scm-lazy-string.c: Likewise.
3485 * guile/scm-math.c: Likewise.
3486 * guile/scm-pretty-print.c: Likewise.
3487 * guile/scm-safe-call.c: Likewise.
3488 * guile/scm-utils.c: Likewise.
3489 * guile/scm-value.c: Likewise.
3490 * h8300-tdep.c: Likewise.
3491 * hppa-hpux-nat.c: Likewise.
3492 * hppa-tdep.c: Likewise.
3493 * hppanbsd-tdep.c: Likewise.
3494 * hppaobsd-tdep.c: Likewise.
3495 * i386-darwin-nat.c: Likewise.
3496 * i386-darwin-tdep.c: Likewise.
3497 * i386-nto-tdep.c: Likewise.
3498 * i386-tdep.c: Likewise.
3499 * i386bsd-nat.c: Likewise.
3500 * i386fbsd-tdep.c: Likewise.
3501 * i386gnu-nat.c: Likewise.
3502 * i386nbsd-tdep.c: Likewise.
3503 * i386obsd-tdep.c: Likewise.
3504 * i387-tdep.c: Likewise.
3505 * ia64-libunwind-tdep.c: Likewise.
3506 * ia64-tdep.c: Likewise.
3507 * inf-ptrace.c: Likewise.
3508 * inf-ttrace.c: Likewise.
3509 * infcall.c: Likewise.
3510 * infcmd.c: Likewise.
3511 * infrun.c: Likewise.
3512 * inline-frame.c: Likewise.
3513 * interps.c: Likewise.
3514 * jv-lang.c: Likewise.
3515 * jv-typeprint.c: Likewise.
3516 * linux-fork.c: Likewise.
3517 * linux-nat.c: Likewise.
3518 * linux-thread-db.c: Likewise.
3519 * m32c-tdep.c: Likewise.
3520 * m32r-linux-nat.c: Likewise.
3521 * m32r-tdep.c: Likewise.
3522 * m68k-tdep.c: Likewise.
3523 * m68kbsd-nat.c: Likewise.
3524 * m68kbsd-tdep.c: Likewise.
3525 * m88k-tdep.c: Likewise.
3526 * machoread.c: Likewise.
3527 * macroexp.c: Likewise.
3528 * macrotab.c: Likewise.
3529 * maint.c: Likewise.
3530 * mdebugread.c: Likewise.
3531 * memory-map.c: Likewise.
3532 * mep-tdep.c: Likewise.
3533 * mi/mi-common.c: Likewise.
3534 * microblaze-tdep.c: Likewise.
3535 * mingw-hdep.c: Likewise.
3536 * mips-linux-nat.c: Likewise.
3537 * mips-linux-tdep.c: Likewise.
3538 * mips-tdep.c: Likewise.
3539 * mips64obsd-tdep.c: Likewise.
3540 * mipsnbsd-tdep.c: Likewise.
3541 * mn10300-linux-tdep.c: Likewise.
3542 * mn10300-tdep.c: Likewise.
3543 * moxie-tdep.c: Likewise.
3544 * mt-tdep.c: Likewise.
3545 * nat/linux-btrace.c: Likewise.
3546 * nat/linux-osdata.c: Likewise.
3547 * nat/linux-ptrace.c: Likewise.
3548 * nat/mips-linux-watch.c: Likewise.
3549 * nios2-linux-tdep.c: Likewise.
3550 * nios2-tdep.c: Likewise.
3551 * objc-lang.c: Likewise.
3552 * objfiles.c: Likewise.
3553 * obsd-nat.c: Likewise.
3554 * opencl-lang.c: Likewise.
3555 * osabi.c: Likewise.
3556 * parse.c: Likewise.
3557 * ppc-linux-nat.c: Likewise.
3558 * ppc-sysv-tdep.c: Likewise.
3559 * ppcfbsd-nat.c: Likewise.
3560 * ppcfbsd-tdep.c: Likewise.
3561 * ppcnbsd-nat.c: Likewise.
3562 * ppcnbsd-tdep.c: Likewise.
3563 * ppcobsd-nat.c: Likewise.
3564 * ppcobsd-tdep.c: Likewise.
3565 * printcmd.c: Likewise.
3566 * procfs.c: Likewise.
3567 * prologue-value.c: Likewise.
3568 * psymtab.c: Likewise.
3569 * python/py-lazy-string.c: Likewise.
3570 * python/py-value.c: Likewise.
3571 * regcache.c: Likewise.
3572 * reggroups.c: Likewise.
3573 * registry.c: Likewise.
3574 * remote-sim.c: Likewise.
3575 * remote.c: Likewise.
3576 * rs6000-aix-tdep.c: Likewise.
3577 * rs6000-tdep.c: Likewise.
3578 * s390-linux-tdep.c: Likewise.
3579 * score-tdep.c: Likewise.
3580 * ser-base.c: Likewise.
3581 * ser-mingw.c: Likewise.
3582 * sh-tdep.c: Likewise.
3583 * sh64-tdep.c: Likewise.
3584 * solib-darwin.c: Likewise.
3585 * solib-spu.c: Likewise.
3586 * solib-svr4.c: Likewise.
3587 * source.c: Likewise.
3588 * sparc-nat.c: Likewise.
3589 * sparc-sol2-tdep.c: Likewise.
3590 * sparc-tdep.c: Likewise.
3591 * sparc64-sol2-tdep.c: Likewise.
3592 * sparc64-tdep.c: Likewise.
3593 * sparc64fbsd-tdep.c: Likewise.
3594 * sparc64nbsd-tdep.c: Likewise.
3595 * sparc64obsd-tdep.c: Likewise.
3596 * sparcnbsd-tdep.c: Likewise.
3597 * sparcobsd-tdep.c: Likewise.
3598 * spu-multiarch.c: Likewise.
3599 * spu-tdep.c: Likewise.
3600 * stabsread.c: Likewise.
3601 * stack.c: Likewise.
3602 * symfile.c: Likewise.
3603 * symtab.c: Likewise.
3604 * target-descriptions.c: Likewise.
3605 * target-memory.c: Likewise.
3606 * target.c: Likewise.
3607 * tic6x-linux-tdep.c: Likewise.
3608 * tic6x-tdep.c: Likewise.
3609 * tilegx-linux-nat.c: Likewise.
3610 * tilegx-tdep.c: Likewise.
3611 * top.c: Likewise.
3612 * tramp-frame.c: Likewise.
3613 * tui/tui-out.c: Likewise.
3614 * tui/tui-winsource.c: Likewise.
3615 * ui-out.c: Likewise.
3616 * user-regs.c: Likewise.
3617 * utils.c: Likewise.
3618 * v850-tdep.c: Likewise.
3619 * valops.c: Likewise.
3620 * value.c: Likewise.
3621 * varobj.c: Likewise.
3622 * vax-nat.c: Likewise.
3623 * xml-syscall.c: Likewise.
3624 * xml-tdesc.c: Likewise.
3625 * xstormy16-tdep.c: Likewise.
3626 * xtensa-linux-nat.c: Likewise.
3627 * xtensa-tdep.c: Likewise.
3628
e76df0d0
GB
36292014-08-07 Gary Benson <gbenson@redhat.com>
3630
3631 * common/common-defs.h: Include common-utils.h.
3632 * defs.h: Do not include common-utils.h.
3633 * common/gdb_assert.h: Likewise.
3634 * darwin-nat.h: Likewise.
3635 * nat/linux-btrace.c: Likewise.
3636 * target/waitstatus.h: Likewise.
3637
4cb9c816
GB
36382014-08-07 Gary Benson <gbenson@redhat.com>
3639
3640 * common/common-defs.h: Include ptid.h.
3641 * defs.h: Do not include ptid.h.
3642 * inferior.h: Likewise.
3643 * infrun.h: Likewise.
3644 * nat/linux-btrace.h: Likewise.
3645 * nat/linux-osdata.h: Likewise.
3646 * target/waitstatus.h: Likewise.
3647
3995eeee
GB
36482014-08-07 Gary Benson <gbenson@redhat.com>
3649
3650 * common/common-defs.h: Include gdb_locale.h.
3651 * defs.h: Do not include gdb_locale.h.
3652
cb9f1a9b
GB
36532014-08-07 Gary Benson <gbenson@redhat.com>
3654
3655 * common/common-defs.h: Include gdb/signals.h.
3656 * defs.h: Do not include gdb/signals.h.
3657
a5fceff8
GB
36582014-08-07 Gary Benson <gbenson@redhat.com>
3659
3660 * common/common-defs.h: Include pathmax.h.
3661 * defs.h: Do not include pathmax.h.
3662
b9391142
GB
36632014-08-07 Gary Benson <gbenson@redhat.com>
3664
3665 * common/common-defs.h: Include libiberty.h.
3666 * defs.h: Do not include libiberty.h.
3667 * common/queue.h: Likewise.
3668 * cp-name-parser.y: Likewise.
3669 * mi/mi-cmd-catch.c: Likewise.
3670 * python/python.c: Likewise.
3671
0e443c87
GB
36722014-08-07 Gary Benson <gbenson@redhat.com>
3673
3674 * common/common-defs.h: Include ansidecl.h.
3675 * defs.h: Do not include ansidecl.h.
3676 * common/buffer.h: Likewise.
3677 * common/common-utils.h: Likewise.
3678
8ebb3f56
GB
36792014-08-07 Gary Benson <gbenson@redhat.com>
3680
3681 * common/common-defs.h: Include stddef.h.
3682 * defs.h: Do not include stddef.h.
3683 * common/common-utils.h: Likewise.
3684 * amd64fbsd-nat.c: Likewise.
3685 * bcache.c: Likewise.
3686 * charset.c: Likewise.
3687 * common/buffer.h: Likewise.
3688 * common/vec.h: Likewise.
3689 * i386bsd-nat.c: Likewise.
3690 * nat/linux-btrace.h: Likewise.
3691 * ppcfbsd-nat.c: Likewise.
3692 * ppcnbsd-tdep.h: Likewise.
3693 * ppcobsd-nat.c: Likewise.
3694 * ppcobsd-tdep.h: Likewise.
3695 * python/py-gdb-readline.c: Likewise.
3696
8980bdf6
GB
36972014-08-07 Gary Benson <gbenson@redhat.com>
3698
3699 * common/common-defs.h: Include stdarg.h.
3700 * defs.h: Do not include stdarg.h.
3701 * ada-lang.c: Likewise.
3702 * common/common-utils.h: Likewise.
3703 * guile/scm-string.c: Likewise.
3704 * guile/scm-utils.c: Likewise.
3705 * m32c-tdep.c: Likewise.
3706
d7096f71
GB
37072014-08-07 Gary Benson <gbenson@redhat.com>
3708
3709 * common/common-defs.h: Include stdlib.h.
3710 * defs.h: Do not include stdlib.h.
3711 * addrmap.c: Likewise.
3712 * bcache.c: Likewise.
3713 * common/buffer.c: Likewise.
3714 * common/common-utils.c: Likewise.
3715 * cp-name-parser.y: Likewise.
3716 * go32-nat.c: Likewise.
3717 * mn10300-linux-tdep.c: Likewise.
3718 * nat/linux-osdata.c: Likewise.
3719 * tui/tui.c: Likewise.
3720 * windows-nat.c: Likewise.
3721
d02f550d
GB
37222014-08-07 Gary Benson <gbenson@redhat.com>
3723
3724 * common/common-defs.h: Include stdio.h.
3725 * defs.h: Do not include stdio.h.
3726 * ada-lang.c: Likewise.
3727 * common/buffer.c: Likewise.
3728 * common/common-utils.c: Likewise.
3729 * cp-name-parser.y: Likewise.
3730 * gnu-nat.c: Likewise.
3731 * go32-nat.c: Likewise.
3732 * i386gnu-nat.c: Likewise.
3733 * proc-api.c: Likewise.
3734 * proc-events.c: Likewise.
3735 * proc-flags.c: Likewise.
3736 * proc-why.c: Likewise.
3737 * python/python-internal.h: Likewise.
3738 * target-memory.c: Likewise.
3739 * tui/tui-io.c: Likewise.
3740 * tui/tui.c: Likewise.
3741
b6d7a4bf
SM
37422014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3743
3744 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3745 (scan_dyntag_auxv): Same.
3746
af19829b
YQ
37472014-08-06 Yao Qi <yao@codesourcery.com>
3748
3749 * amd64-linux-nat.c: Remove duplicated include
3750 "x86-linux-nat.h".
3751 * i386-linux-nat.c: Likewise.
3752
8e07a239
YQ
37532014-08-06 Yao Qi <yao@codesourcery.com>
3754
3755 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3756 operand" with "Special opcode" in comments.
3757
7bfe8241
GB
37582014-08-05 Gary Benson <gbenson@redhat.com>
3759
3760 * interps.c (initialize_interps): Remove prototype.
3761 (interpreter_initialized): Remove static global.
3762 (interp_add): Do not call initialize_interps.
3763 (initialize_interps): Remove function.
3764
d6c95504
GB
37652014-08-05 Gary Benson <gbenson@redhat.com>
3766
3767 * utils.c (vwarning): Remove spurious va_end.
3768
241fd515
AM
37692014-08-05 Alan Modra <amodra@gmail.com>
3770
3771 * charset.c (convert_between_encodings): Cast result of obstack_base.
3772 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3773 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3774 (read_unwind_info): Use size_t for some locals.
3775 * jit.c (finalize_symtab): Likewise.
3776 * utils.c (hashtab_obstack_allocate): Likewise.
3777 * symmisc.c (print_objfile_statistics): Update format strings.
3778
dc304a94
JK
37792014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3780
3781 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3782 (Changes in GDB 7.8): ... here.
3783
3cecbbbe
TT
37842014-08-04 Tom Tromey <tromey@redhat.com>
3785
3786 * target.c (set_targetdebug): New function.
3787 (initialize_targets): Pass set_targetdebug when creating "set
3788 debug target".
3789
6908c509
JB
37902014-08-01 Joel Brobecker <brobecker@adacore.com>
3791
3792 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3793 if detecting a variable-sized field that is not the last field.
3794 Fix struct type length computation.
3795
53e8f97d
JB
37962014-08-01 Joel Brobecker <brobecker@adacore.com>
3797
3798 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3799 Add debug trace.
3800
e068c55d
JB
38012014-08-01 Joel Brobecker <brobecker@adacore.com>
3802
3803 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3804 Remove "+ 8" offset in computation of CHAIN_VMA.
3805
4d4ca2a1
DE
38062014-07-31 Doug Evans <dje@google.com>
3807
3808 * inflow.c (child_terminal_inferior): Add comment.
3809 (child_terminal_ours_for_output): Add comment.
3810 (child_terminal_ours): Add comment.
3811 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3812 (linux_nat_terminal_ours): Add comment.
3813
462f517e
GB
38142014-07-31 Gary Benson <gbenson@redhat.com>
3815
3816 * common/btrace-common.h: Do not include defs.h or server.h.
3817 * nat/mips-linux-watch.h: Likewise.
3818 * gdb-dlfcn.h: Do not include defs.h.
3819 * tracefile.h: Likewise.
3820
74228e77
RM
38212014-07-30 Roland McGrath <mcgrathr@google.com>
3822
3823 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3824
014f9477
TT
38252014-07-30 Tom Tromey <tromey@redhat.com>
3826
3827 * bsd-kvm.c (bsd_kvm_open): Constify.
3828 * corelow.c (core_open): Constify.
3829 * ctf.c (ctf_open): Constify.
3830 * dbug-rom.c (dbug_open): Constify.
3831 * exec.c (exec_open): Constify.
3832 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3833 * microblaze-rom.c (picobug_open): Constify.
3834 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3835 Constify.
3836 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3837 * record-btrace.c (record_btrace_open): Constify.
3838 * record-full.c (record_full_core_open_1, record_full_open_1)
3839 (record_full_open): Constify.
3840 * remote-m32r-sdi.c (m32r_open): Constify.
3841 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3842 (rockhopper_open, lsi_open): Constify.
3843 * remote-sim.c (gdbsim_open): Constify.
3844 * remote.c (remote_open, extended_remote_open, remote_open_1):
3845 Constify.
3846 * target.h (struct target_ops) <to_open>: Make "arg" const.
3847 * tracefile-tfile.c (tfile_open): Constify.
3848
e799154c
TT
38492014-07-30 Tom Tromey <tromey@redhat.com>
3850
3851 * breakpoint.c (map_breakpoint_numbers): Update.
3852 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3853 (get_number_const): New function.
3854 (get_number): Rewrite using get_number_const.
3855 (init_number_or_range): Make "string" const.
3856 (number_is_in_list): Make "list" const.
3857 * cli/cli-utils.h (get_number_const): Declare.
3858 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3859 (init_number_or_range, number_is_in_list): Update.
3860 * printcmd.c (map_display_numbers): Update.
3861 * value.c (value_from_history_ref): Constify.
3862 * value.h (value_from_history_ref): Update.
3863
5f08566b
TT
38642014-07-30 Tom Tromey <tromey@redhat.com>
3865
3866 * corefile.c (hook_type, call_extra_exec_file_hooks)
3867 (specify_exec_file_hook): Constify.
3868 * exec.c (exec_file_attach): Make "filename" const.
3869 * gdbcore.h (deprecated_exec_file_display_hook)
3870 (specify_exec_file_hook, exec_file_attach): Constify.
3871 * main.c (captured_main): Use catch_command_errors_const.
3872
8981c758
TT
38732014-07-30 Tom Tromey <tromey@redhat.com>
3874
3875 * target.c (open_target): New function.
3876 (add_target_with_completer, add_deprecated_target_alias): Use
3877 set_cmd_sfunc, set_cmd_context.
3878 (debug_to_open): Remove.
3879 (setup_target_debug): Update.
3880
a1c7835a
YQ
38812014-07-30 Yao Qi <yao@codesourcery.com>
3882
3883 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3884 comments.
3885 * parse.c (exp_iterate): Update comments.
3886
976411d6
GB
38872014-07-30 Gary Benson <gbenson@redhat.com>
3888
3889 * common/common-defs.h: New file.
3890 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3891 * defs.h: Include common-defs.h.
3892 Do not include config.h or build-gnulib/config.h.
3893
5d4848a4
GB
38942014-07-30 Gary Benson <gbenson@redhat.com>
3895
3896 * common/common-utils.h: Do not include config.h.
3897 * nat/linux-btrace.h: Likewise.
3898
d41f6d8e
GB
38992014-07-30 Gary Benson <gbenson@redhat.com>
3900
3901 * btrace.c: Include defs.h.
3902 * common/ptid.c: Include defs.h or server.h as appropriate.
3903 * nat/mips-linux-watch.c: Likewise.
3904
84202f9c
TT
39052014-07-29 Tom Tromey <tromey@redhat.com>
3906
3907 * target.c (target_is_pushed): Simplify.
3908
2530441c
JB
39092014-07-29 Joel Brobecker <brobecker@adacore.com>
3910
3911 GDB 7.8 released.
3912
7e09a223
YQ
39132014-07-29 Yao Qi <yao@codesourcery.com>
3914
3915 PR gdb/17206
3916 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3917
7ebdbe92
DE
39182014-07-28 Doug Evans <xdje42@gmail.com>
3919
3920 PR guile/17203
3921 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3922 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3923 parameters.
3924
f347ffc9
WN
39252014-07-28 Will Newton <will.newton@linaro.org>
3926
3927 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3928 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3929 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3930 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3931 (THUMB2_EABI_SYSCALL): Likewise.
3932 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3933 struct tramp_frame.
3934 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3935 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3936
37c5f1f7
DE
39372014-07-27 Doug Evans <xdje42@gmail.com>
3938
3939 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3940
0c3abbc7
DE
39412014-07-27 Doug Evans <xdje42@gmail.com>
3942
3943 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3944
e76c5d17
DE
39452014-07-26 Ludovic Courtès <ludo@gnu.org>
3946 Doug Evans <xdje42@gmail.com>
3947
3948 PR guile/17146
3949 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3950 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3951 * configure.ac: Try to use guild to compile an scm file, if it fails
3952 then disable guile support.
3953 * configure: Regenerate.
3954 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3955 GUILE_FILE_LIST.
3956 (GUILE_COMPILED_FILES): New variable.
3957 (GUILE_FILES) Update.
3958 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3959 (stamp-guile): Compile scm files.
3960 * guile/guile.c (boot_guile_support): New function.
3961 (standard_throw_args_p): New function.
3962 (print_standard_throw_error, print_throw_error): New functions.
3963 (handle_boot_error): New function.
3964 (initialize_scheme_side): Rewrite to call boot_guile_support.
3965 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3966 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3967
186fcde0
DE
39682014-07-26 Ludovic Courtès <ludo@gnu.org>
3969 Doug Evans <xdje42@gmail.com>
3970
3971 PR guile/17146
3972 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3973 * guile/lib/gdb/support.scm: New file.
3974 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3975 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3976 All uses updated.
3977 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3978 All uses updated.
3979 (%assert-type): Ditto, and renamed to assert-type.
3980 (%exception-print-style): Delete.
3981
4df42755
DE
39822014-07-26 Doug Evans <xdje42@gmail.com>
3983
3984 PR build/17105
3985 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3986 * configure: Regenerate.
3987 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3988 PYTHON_FILES.
3989 (PYTHON_FILES): New variable.
3990 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3991 (GUILE_FILES): New variable.
3992 (stamp-python, install-python, uninstall-python): Handle empty
3993 file list.
3994 (stamp-guile, install-guile, uninstall-guile): Ditto.
3995
ee7333ae
DE
39962014-07-26 Doug Evans <xdje42@gmail.com>
3997
3998 PR guile/17177
3999 * guile/lib/gdb.scm (pretty-printers): Export.
4000 (set-pretty-printers!): Export.
4001 * guile/lib/gdb/printing.scm (gdb module): Update.
4002 (prepend-pretty-printer!, append-pretty-printer!): Update.
4003 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4004 (pretty_printer_list_var): Delete.
4005 (pretty_printer_list): New static global.
4006 (gdbscm_pretty_printers): New function.
4007 (gdbscm_set_pretty_printers_x): New function.
4008 (ppscm_find_pretty_printer_from_gdb): Update.
4009 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4010 (gdbscm_initialize_pretty_printers): Update.
4011
74edf516
DE
40122014-07-26 Doug Evans <xdje42@gmail.com>
4013
4014 PR 17185
4015 * configure.ac: Add check for header gc/gc.h.
4016 Add check for function setenv.
4017 * configure: Regenerate.
4018 * config.in: Regenerate.
4019 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4020
d54398a7
MR
40212014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4022
4023 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4024 variation in gdbarch matching.
4025
ab16fce8
TT
40262014-07-25 Tom Tromey <tromey@redhat.com>
4027
4028 * exec.c (using_exec_ops): Remove.
4029 (exec_close_1): Update. Remove extraneous block, reindent.
4030 (add_target_sections): Use target_is_pushed.
4031
88056fbb
PA
40322014-07-25 Pedro Alves <palves@redhat.com>
4033
4034 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4035 * monitor.c (monitor_create_inferior): Likewise.
4036 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4037 * remote-sim.c (gdbsim_create_inferior): Likewise.
4038 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4039 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4040 * windows-nat.c (do_initial_windows_stuff): Likewise.
4041
70509625
PA
40422014-07-25 Pedro Alves <palves@redhat.com>
4043
4044 * NEWS: Mention signal passing and "signal" command changes.
4045 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4046 comment.
4047 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4048 call.
4049 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4050 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4051 (jump_command): Adjust clear_proceed_status call.
4052 (signal_command): Warn if other thread that are resumed have
4053 signals that will be delivered. Adjust clear_proceed_status call.
4054 (until_next_command, finish_command)
4055 (proceed_after_attach_callback, attach_command_post_wait)
4056 (attach_command): Adjust clear_proceed_status call.
4057 * infrun.c (proceed_after_vfork_done): Likewise.
4058 (proceed_after_attach_callback): Adjust comment.
4059 (clear_proceed_status_thread): Clear stop_signal if not in pass
4060 state.
4061 (clear_proceed_status_callback): Delete.
4062 (clear_proceed_status): New 'step' parameter. Only clear the
4063 proceed status of threads the command being prepared is about to
4064 resume.
4065 (proceed): If passed in an explicit signal, override stop_signal
4066 with it. Don't pass the last stop signal to the thread we're
4067 resuming.
4068 (init_wait_for_inferior): Adjust clear_proceed_status call.
4069 (switch_back_to_stepped_thread): Clear the signal if it should not
4070 be passed.
4071 * infrun.h (clear_proceed_status): New 'step' parameter.
4072 (user_visible_resume_ptid): Add comment.
4073 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4074 signal is in pass state.
4075 * remote.c (append_pending_thread_resumptions): Likewise.
4076 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4077
d8be2939
TT
40782014-07-25 Tom Tromey <tromey@redhat.com>
4079
4080 * target.h (target_stopped_data_address)
4081 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4082 parentheses.
4083
7d0d9d2b
PL
40842014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4085
4086 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4087 comments.
4088 (avr_pointer_to_address): Likewise.
4089
e9e7f724
TT
40902014-07-24 Tom Tromey <tromey@redhat.com>
4091
4092 * monitor.c (compile_pattern): Update.
4093 * target.h (struct target_ops) <to_shortname, to_longname,
4094 to_doc>: Now const.
4095
1947513d
TT
40962014-07-24 Tom Tromey <tromey@redhat.com>
4097
4098 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4099 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4100 (add_info_alias, add_com): Make "doc" const.
4101 (print_doc_line): Make "str" const.
4102 (delete_cmd): Update.
4103 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4104 (print_doc_line): Update.
4105 * cli/cli-script.c (document_command): Update.
4106 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4107 (add_com, add_info, add_info_alias): Update.
4108 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4109 * python/py-cmd.c (cmdpy_destroyer): Update.
4110
64e61d29
TT
41112014-07-24 Tom Tromey <tromey@redhat.com>
4112
4113 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4114 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4115 (help_cmd_list): Constify.
4116 (lookup_cmd): Update.
4117 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4118 const.
4119 (help_cmd_list, apropos_cmd): Update.
4120 * cli/cli-script.c (show_user): Update.
4121 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4122 * cli/cli-setshow.h (cmd_show_list): Update.
4123 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4124 (cmd_show_list): Update.
4125 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4126 * python/py-cmd.c (cmdpy_destroyer): Update.
4127
429e55ea
TT
41282014-07-24 Tom Tromey <tromey@redhat.com>
4129
4130 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4131 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4132 const.
4133 * command.h (deprecate_cmd): Update.
4134 * maint.c (maintenance_do_deprecate): Add casts.
4135
64669f3b
TT
41362014-07-24 Tom Tromey <tromey@redhat.com>
4137
4138 * cli/cli-decode.c (help_cmd): Make parameter "const".
4139 * cli/cli-decode.h (help_cmd): Update.
4140
d3d3328b
TT
41412014-07-24 Tom Tromey <tromey@redhat.com>
4142
4143 * stack.c (up_silently_base, down_silently_base): Make argument
4144 const.
4145
414842dc
TT
41462014-07-24 Tom Tromey <tromey@redhat.com>
4147
4148 * solib.c (solib_add): Make "pattern" const.
4149 * solib.h (solib_add): Update.
4150
baa336ce
TT
41512014-07-24 Tom Tromey <tromey@redhat.com>
4152
4153 * remote.c (remote_serial_open, print_packet, putpkt)
4154 (putpkt_binary): Constify.
4155 * remote.h (putpkt): Update.
4156
5a19e2d0
TT
41572014-07-24 Tom Tromey <tromey@redhat.com>
4158
4159 * monitor.c (monitor_open): Make "args" const.
4160 * monitor.h (monitor_open): Update.
4161
fc4baa5e
TT
41622014-07-24 Tom Tromey <tromey@redhat.com>
4163
4164 * maint.c (match_bfd_flags): Make "string" const.
4165 (print_bfd_section_info): Remove casts.
4166 (print_objfile_section_info): Make "string" const.
4167
0d5f0dbe
TT
41682014-07-24 Tom Tromey <tromey@redhat.com>
4169
4170 * inf-child.c (inf_child_open_target): Make "arg" const.
4171 * inf-child.h (inf_child_open_target): Update.
4172
41c77899
TT
41732014-07-24 Tom Tromey <tromey@redhat.com>
4174
4175 * environ.c (unset_in_environ): Make "var" const.
4176 * environ.h (unset_in_environ): Update.
4177
93db0d79
TT
41782014-07-24 Tom Tromey <tromey@redhat.com>
4179
4180 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4181 Make "cmd" const.
4182 (scan_filename_with_cleanup): Likewise.
4183 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4184 Make arguments const.
4185 (restore_command): Update.
4186
36d6eb95
PA
41872014-07-24 Pedro Alves <palves@redhat.com>
4188
4189 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4190
8009206a
TT
41912014-07-24 Tom Tromey <tromey@redhat.com>
4192 Gary Benson <gbenson@redhat.com>
4193
4194 * nat/linux-ptrace.c (additional_flags): New global.
4195 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4196 additional_flags; don't check GDBSERVER.
4197 (linux_ptrace_set_additional_flags): New function.
4198 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4199 Declare.
4200 * linux-nat.c (_initialize_linux_nat): Call
4201 linux_ptrace_set_additional_flags.
4202
a7068b60
TT
42032014-07-24 Tom Tromey <tromey@redhat.com>
4204
4205 * make-target-delegates (munge_type, write_debugmethod): New
4206 functions.
4207 (debug_names): New global.
4208 ($TARGET_DEBUG_PRINTER): New global.
4209 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4210 name.
4211 Write debug methods. Generate init_debug_target.
4212 * target-debug.h: New file.
4213 * target-delegates.c: Rebuild.
4214 * target.c: Include target-debug.h.
4215 (debug_target): Hoist definition.
4216 (target_kill, target_get_section_table, target_memory_map)
4217 (target_flash_erase, target_flash_done, target_detach)
4218 (target_disconnect, target_wait, target_resume)
4219 (target_pass_signals, target_program_signals, target_follow_fork)
4220 (target_mourn_inferior, target_search_memory)
4221 (target_thread_address_space, target_close)
4222 (target_find_new_threads, target_core_of_thread)
4223 (target_verify_memory, target_insert_mask_watchpoint)
4224 (target_remove_mask_watchpoint): Remove targetdebug code.
4225 (debug_to_post_attach, debug_to_prepare_to_store)
4226 (debug_to_files_info, debug_to_insert_breakpoint)
4227 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4228 (debug_to_region_ok_for_hw_watchpoint)
4229 (debug_to_can_accel_watchpoint_condition)
4230 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4231 (debug_to_watchpoint_addr_within_range)
4232 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4233 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4234 (debug_to_terminal_init, debug_to_terminal_inferior)
4235 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4236 (debug_to_terminal_save_ours, debug_to_terminal_info)
4237 (debug_to_load, debug_to_post_startup_inferior)
4238 (debug_to_insert_fork_catchpoint)
4239 (debug_to_remove_fork_catchpoint)
4240 (debug_to_insert_vfork_catchpoint)
4241 (debug_to_remove_vfork_catchpoint)
4242 (debug_to_insert_exec_catchpoint)
4243 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4244 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4245 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4246 (setup_target_debug): Call init_debug_target.
4247 * target.h (TARGET_DEBUG_PRINTER): New macro.
4248 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4249 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4250
2c51604d
GB
42512014-07-24 Gary Benson <gbenson@redhat.com>
4252
4253 * exceptions.h (throw_vfatal): Renamed to...
4254 (throw_vquit): New declaration.
4255 (throw_quit): Likewise.
4256 * exceptions.c (throw_vfatal): Renamed to...
4257 (throw_vquit): New function.
4258 (throw_quit): Likewise.
4259 (throw_error): Call throw_verror rather than throw_it.
4260 * utils.h (vfatal): Removed.
4261 (fatal): Likewise.
4262 * utils.c (vfatal): Removed.
4263 (fatal): Likewise.
4264 (internal_verror): Replaced call to fatal with call to throw_quit.
4265 (quit): Replaced calls to fatal with calls to throw_quit.
4266
34211963
ME
42672014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4268
4269 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4270 target_read_code.
4271
a52b4d3e
ME
42722014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4273
4274 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4275 less than zero in conditional expression.
4276
a8bdc56b
TT
42772014-07-23 Tom Tromey <tromey@redhat.com>
4278
4279 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4280 ($INTRO_PART): Don't match whitespace.
4281 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4282 argument matching.
4283 ($METHOD): Add $METHOD_TRAILER.
4284 (trim): Rewrite.
4285 (scan_target_h): New sub.
4286 Change main loop not to collect state.
4287 * target-delegates.c: Rebuild.
4288
91b52240
GB
42892014-07-23 Gary Benson <gbenson@redhat.com>
4290
4291 * cp-support.c (gdb_demangle): Fix build on systems without
4292 sigaltstack.
4293
45326f6f
JK
42942014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4295
4296 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4297 for reference entry value target data value.
4298
e214cf6c
JK
42992014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4300
4301 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4302 value_available_contents_eq.
4303
bddbbedd
PA
43042014-07-22 Pedro Alves <palves@redhat.com>
4305
4306 * value.c (allocate_optimized_out_value): Don't mark value as
4307 non-lazy.
4308
45c71484
JW
43092014-07-22 Jiong Wang <jiong.wang@arm.com>
4310
4311 * MAINTAINERS (Write After Approval): Update my email address.
4312
9597b22a
DE
43132014-07-20 Doug Evans <dje@google.com>
4314
4315 PR server/17147
4316 * remote.c (putpkt_binary): Add text to error message.
4317
91101fe5
YQ
43182014-07-20 Yao Qi <yao@codesourcery.com>
4319
4320 * eval.c: Remove "Chill" from comments.
4321 * gdbtypes.h: Likewise.
4322 * symtab.h: Likewise.
4323
c9402c95
YQ
43242014-07-20 Yao Qi <yao@codesourcery.com>
4325
4326 * std-operator.def: Update comments to TERNOP_SLICE.
4327
ae8fddda
YQ
43282014-07-20 Yao Qi <yao@codesourcery.com>
4329
4330 * std-operator.def: Remove BINOP_RANGE.
4331 * breakpoint.c (watchpoint_exp_is_const): Update.
4332 * expprint.c (dump_subexp_body_standard): Likewise.
4333 * eval.c (init_array_element): Remove dead code.
4334 (evaluate_subexp_standard): Likewise.
4335
9c816640
YQ
43362014-07-20 Yao Qi <yao@codesourcery.com>
4337
4338 * std-operator.def: Remove BINOP_IN.
4339 * breakpoint.c (watchpoint_exp_is_const): Update.
4340 * eval.c (evaluate_subexp_standard): Likewise.
4341 * expprint.c (dump_subexp_body_standard): Likewise.
4342
164224e9
ME
43432014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4344
4345 * microblaze-tdep.c (microblaze_register_names): Add
4346 the rshr and rslr register names.
4347 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4348 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4349 Use of tdesc_numbered_register. Use of
4350 microblaze_register_g_packet_guesses. Use of
4351 tdesc_use_registers. Use of set_gdbarch_register_type.
4352 (microblaze_register_g_packet_guesses): New.
4353 * microblaze-tdep.h (microblaze_reg_num): Add
4354 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4355 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4356 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4357 * features/microblaze-core.xml: New file.
4358 * features/microblaze-stack-protect.xml: New file.
4359 * features/microblaze-with-stack-protect.c: New file.
4360 * features/microblaze-with-stack-protect.xml: New file.
4361 * features/microblaze.xml: New file.
4362 * features/microblaze.c: New file.
4363 * features/Makefile (microblaze-with-stack-protect): Add
4364 microblaze-with-stack-protect microblaze and microblaze-expedite.
4365 * regformats/microblaze-with-stack-protect.dat: New file.
4366 * regformats/microblaze.dat: New file.
4367 * doc/gdb.texinfo (MicroBlaze Features): Added.
4368
e8b2341c
TT
43692014-07-18 Tom Tromey <tromey@redhat.com>
4370
4371 * exec.c (exec_ops): Now static.
4372 * exec.h (exec_ops): Don't declare.
4373
44e89118
TT
43742014-07-18 Tom Tromey <tromey@redhat.com>
4375
4376 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4377 to find_target_beneath.
4378 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4379 find_target_beneath.
4380 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4381
b0ed115f
TT
43822014-07-18 Tom Tromey <tromey@redhat.com>
4383
4384 PR gdb/17130:
4385 * utils.c (quit): Use target_supports_terminal_ours.
4386 * target.h (target_supports_terminal_ours): Declare.
4387 * target.c (target_supports_delete_record): Don't check
4388 to_delete_record against NULL.
4389 (target_supports_terminal_ours): New function.
4390
e75fdfca
TT
43912014-07-18 Tom Tromey <tromey@redhat.com>
4392
4393 PR gdb/17130:
4394 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4395 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4396 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4397 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4398 * windows-nat.c (windows_xfer_partial): Always delegate.
4399 * record-btrace.c (record_btrace_xfer_partial): Simplify
4400 delegation.
4401 (record_btrace_fetch_registers, record_btrace_store_registers)
4402 (record_btrace_prepare_to_store, record_btrace_resume)
4403 (record_btrace_wait, record_btrace_find_new_threads)
4404 (record_btrace_thread_alive): Likewise.
4405 * procfs.c (procfs_xfer_partial): Always delegate.
4406 * corelow.c (core_xfer_partial): Always delegate.
4407 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4408
83814951
TT
44092014-07-18 Tom Tromey <tromey@redhat.com>
4410
4411 * exec.c (exec_make_note_section): Move earlier.
4412
b8b8facf
DE
44132014-07-17 Doug Evans <dje@google.com>
4414
74b49205 4415 PR gdb/17170
b8b8facf
DE
4416 * maint.c (count_symtabs_and_blocks): Handle NULL
4417 current_program_space.
4418 (report_command_stats): Check global enabled flag in addition to
4419 recorded enabled flag.
4420 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4421
69ff6be5
PA
44222014-07-16 Pedro Alves <palves@redhat.com>
4423
4424 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4425
252db1b5
TT
44262014-07-16 Tom Tromey <tromey@redhat.com>
4427
4428 * target.h (struct target_ops) <to_delete_record>: Reformat
4429 comment.
4430
a432721e
TT
44312014-07-16 Tom Tromey <tromey@redhat.com>
4432
4433 * target-delegates.c: Rebuild.
4434
487d9753
PL
44352014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4436
4437 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4438 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4439 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4440 (avr_pointer_to_address): Likewise.
4441 (avr_address_class_type_flags): New function.
4442 (avr_address_class_type_flags_to_name): Likewise.
4443 (avr_address_class_name_to_type_flags): Likewise.
4444 (avr_gdbarch_init): Set address_class_type_flags,
4445 address_class_type_flags_to_name and
4446 address_class_name_to_type_flags.
4447
57745c90
PA
44482014-07-15 Pedro Alves <palves@redhat.com>
4449
4450 * linux-nat.c (kill_callback): Save errno and work with saved
4451 copy.
4452
2d40be18
SM
44532014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4454
4455 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4456
572f6555
EBM
44572014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4458
4459 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4460 breakpoint support correctly.
4461
cc1c52ad
PA
44622014-07-14 Pedro Alves <palves@redhat.com>
4463
4464 * utils.c (prompt_for_continue): Call target_terminal_ours.
4465
1e973570
PA
44662014-07-14 Pedro Alves <palves@redhat.com>
4467
4468 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4469 catch_errors. Don't re-enable stdin or notify observers where,
4470 and rethrow error.
4471 (fetch_inferior_event_wrapper): Delete.
4472
93d6eb10
PA
44732014-07-14 Pedro Alves <palves@redhat.com>
4474
4475 PR gdb/17072
4476 * top.c: Include "inf-loop.h".
4477 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4478 field.
4479 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4480 was async before.
4481 (gdb_readline_wrapper): Store whether the target is async, and
4482 make it sync.
4483
0017922d
PA
44842014-07-14 Pedro Alves <palves@redhat.com>
4485
4486 PR gdb/17072
4487 * top.c (gdb_readline_wrapper_line): Tweak comment.
4488 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4489 the input handler callback.
4490
94696ad3
PA
44912014-07-14 Pedro Alves <palves@redhat.com>
4492
4493 PR gdb/17072
4494 * main.c: Include event-top.h.
4495 (handle_command_errors): New function.
4496 (catch_command_errors, catch_command_errors_const): Use it.
4497
9d1e69a2
PA
44982014-07-14 Pedro Alves <palves@redhat.com>
4499
4500 * exceptions.c (catch_command_errors, catch_command_errors_const):
4501 Moved to main.c.
4502 * exceptions.h (catch_command_errors_ftype)
4503 (catch_command_errors_const_ftype): Moved to main.c.
4504 (catch_command_errors, catch_command_errors_const): Delete
4505 declarations.
4506 * main.c (catch_command_errors_ftype)
4507 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4508 (catch_command_errors, catch_command_errors_const)): Moved here
4509 from exceptions.c and make static.
4510
feefc97b
PA
45112014-07-14 Pedro Alves <palves@redhat.com>
4512
4513 * exceptions.c (print_any_exception): Delete.
4514 (catch_exceptions_with_msg): Use exception_print instead of
4515 print_any_exception.
4516 (catch_errors): Use exception_fprintf instead of
4517 print_any_exception.
4518 (catch_command_errors, catch_command_errors_const): Use
4519 exception_print instead of print_any_exception.
4520
c933f875
PA
45212014-07-14 Pedro Alves <palves@redhat.com>
4522
4523 * infcall.c (run_inferior_call): Set 'sync_execution' while
4524 running the inferior call.
4525
feb6f816
PA
45262014-07-14 Pedro Alves <palves@redhat.com>
4527
4528 * value.c (value_contents_equal): Delete function.
4529 * value.h (value_contents_equal): Delete declaration.
4530
d98b7a16
TT
45312014-07-14 Tom Tromey <tromey@redhat.com>
4532
4533 PR exp/17106:
4534 * gdbtypes.c (is_dynamic_type_internal): New function, from
4535 is_dynamic_type.
4536 (is_dynamic_type): Rewrite.
4537 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4538 (resolve_dynamic_struct): Likewise.
4539 (resolve_dynamic_type_internal): New function, from
4540 resolve_dynamic_type.
4541 (resolve_dynamic_type): Rewrite.
4542
548740d6
TT
45432014-07-14 Tom Tromey <tromey@redhat.com>
4544
4545 * target.c (target_require_runnable): Also check record_stratum.
4546 Update comment.
4547
808f7ab1
YQ
45482014-07-11 Yao Qi <yao@codesourcery.com>
4549
4550 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4551 thumb_instruction_restores_sp return true.
4552
540314bd
YQ
45532014-07-11 Yao Qi <yao@codesourcery.com>
4554
4555 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4556 (thumb_in_function_epilogue_p): Call
4557 thumb_instruction_restores_sp.
4558
1db01f22
YQ
45592014-07-11 Yao Qi <yao@codesourcery.com>
4560
4561 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4562 'add sp, #imm'.
4563 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4564
3116063b
GB
45652014-07-11 Gary Benson <gbenson@redhat.com>
4566
4567 * amd64-linux-nat.c (gdbcore.h): Remove include.
4568 (regset.h): Likewise.
4569 (nat/linux-btrace.h): Likewise.
4570 (btrace.h): Likewise.
4571 (gdb_assert.h): Likewise.
4572 (string.h): Likewise.
4573 (sys/uio.h): Likewise.
4574 (sys/debugreg.h): Likewise.
4575 (sys/syscall.h): Likewise.
4576 (sys/procfs.h): Likewise.
4577 (sys/user.h): Likewise.
4578 (asm/ptrace.h): Likewise.
4579 (i386-nat.h): Likewise.
4580 * i386-linux-nat.c (i386-nat.h): Likewise.
4581 (regset.h): Likewise.
4582 (target.h): Likewise.
4583 (linux-nat.h): Likewise.
4584 (nat/linux-btrace.h): Likewise.
4585 (btrace.h): Likewise.
4586 (gdb_assert.h): Likewise.
4587 (string.h): Likewise.
4588 (sys/uio.h): Likewise.
4589 (sys/user.h): Likewise.
4590 (sys/procfs.h): Likewise.
4591 (sys/reg.h): Likewise.
4592 (sys/debugreg.h): Likewise.
4593 (ORIG_EAX): Remove definition.
4594
040baaf6
GB
45952014-07-11 Gary Benson <gbenson@redhat.com>
4596
4597 * i386-linux-nat.h: New file.
4598 * x86-linux-nat.h: Likewise.
4599 * x86-linux-nat.c: Likewise.
4600 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4601 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4602 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4603 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4604 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4605 (PTRACE_SETREGSET): Likewise.
4606 (arch_lwp_info): Now in x86-linux-nat.c.
4607 (have_ptrace_getregset): Now in x86-linux-nat.h.
4608 (x86_linux_dr_get): Now in x86-linux-nat.c.
4609 (x86_linux_dr_set): Likewise.
4610 (x86_linux_dr_get_addr): Likewise.
4611 (x86_linux_dr_get_control): Likewise.
4612 (x86_linux_dr_get_status): Likewise.
4613 (update_debug_registers_callback): Likewise.
4614 (x86_linux_dr_set_control): Likewise.
4615 (x86_linux_dr_set_addr): Likewise.
4616 (x86_linux_prepare_to_resume): Likewise.
4617 (x86_linux_new_thread): Likewise.
4618 (x86_linux_new_fork): Likewise.
4619 (x86_linux_get_thread_area): Likewise.
4620 (super_post_startup_inferior): Likewise.
4621 (x86_linux_child_post_startup_inferior): Likewise.
4622 (AMD64_LINUX_USER64_CS): Likewise.
4623 (AMD64_LINUX_X32_DS): Likewise.
4624 (x86_linux_read_description): Likewise.
4625 (x86_linux_enable_btrace): Likewise.
4626 (x86_linux_disable_btrace): Likewise.
4627 (x86_linux_teardown_btrace): Likewise.
4628 (x86_linux_read_btrace): Likewise.
4629 (x86_linux_create_target): Likewise.
4630 (x86_linux_add_target): Likewise.
4631 * i386-linux-nat.c (x86-linux-nat.h): New include.
4632 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4633 (PTRACE_SETREGSET): Likewise.
4634 (arch_lwp_info): Now in x86-linux-nat.c.
4635 (have_ptrace_getregset): Now in x86-linux-nat.h.
4636 (x86_linux_dr_get): Now in x86-linux-nat.c.
4637 (x86_linux_dr_set): Likewise.
4638 (x86_linux_dr_get_addr): Likewise.
4639 (x86_linux_dr_get_control): Likewise.
4640 (x86_linux_dr_get_status): Likewise.
4641 (update_debug_registers_callback): Likewise.
4642 (x86_linux_dr_set_control): Likewise.
4643 (x86_linux_dr_set_addr): Likewise.
4644 (x86_linux_prepare_to_resume): Likewise.
4645 (x86_linux_new_thread): Likewise.
4646 (x86_linux_new_fork): Likewise.
4647 (x86_linux_get_thread_area): Likewise.
4648 (super_post_startup_inferior): Likewise.
4649 (x86_linux_child_post_startup_inferior): Likewise.
4650 (AMD64_LINUX_USER64_CS): Likewise.
4651 (AMD64_LINUX_X32_DS): Likewise.
4652 (x86_linux_read_description): Likewise.
4653 (x86_linux_enable_btrace): Likewise.
4654 (x86_linux_disable_btrace): Likewise.
4655 (x86_linux_teardown_btrace): Likewise.
4656 (x86_linux_read_btrace): Likewise.
4657 (x86_linux_create_target): Likewise.
4658 (x86_linux_add_target): Likewise.
4659
1aa7e42c
GB
46602014-07-11 Gary Benson <gbenson@redhat.com>
4661
4662 * amd64-linux-nat.c: Comment and whitespace changes.
4663 * i386-linux-nat.c: Comment and whitespace changes.
4664
c1e246a0
GB
46652014-07-11 Gary Benson <gbenson@redhat.com>
4666
4667 * amd64-linux-nat.c (x86_linux_create_target): New function.
4668 (x86_linux_add_target): Likewise.
4669 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4670 * i386-linux-nat.c (x86_linux_create_target): New function.
4671 (x86_linux_add_target): Likewise.
4672 (_initialize_i386_linux_nat): Delegate to the above new functions.
4673
8c420b8d
GB
46742014-07-11 Gary Benson <gbenson@redhat.com>
4675
4676 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4677 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4678 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4679 (ps_get_thread_area): Delegate to the above.
4680
cb1da100
GB
46812014-07-11 Gary Benson <gbenson@redhat.com>
4682
4683 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4684 x86_linux_read_description. All uses updated. amd64-specific
4685 code conditionalized. Conditionalized i386-specific code added.
4686 Redundant cast removed.
4687 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4688 x86_linux_read_description. All uses updated. i386-specific
4689 code conditionalized. Conditionalized amd64-specific code added.
4690 One sizeof replaced with the actual type it is describing.
4691
2acf3cd0
GB
46922014-07-11 Gary Benson <gbenson@redhat.com>
4693
4694 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4695 x86_linux_dr_get. All uses updated.
4696 (amd64_linux_dr_set): Renamed to
4697 x86_linux_dr_set. All uses updated.
4698 (amd64_linux_dr_get_addr): Renamed to
4699 x86_linux_dr_get_addr. All uses updated.
4700 (amd64_linux_dr_get_control): Renamed to
4701 x86_linux_dr_get_control. All uses updated.
4702 (amd64_linux_dr_get_status): Renamed to
4703 x86_linux_dr_get_status. All uses updated.
4704 (amd64_linux_dr_set_control): Renamed to
4705 x86_linux_dr_set_control. All uses updated.
4706 (amd64_linux_dr_set_addr): Renamed to
4707 x86_linux_dr_set_addr. All uses updated.
4708 (amd64_linux_prepare_to_resume): Renamed to
4709 x86_linux_prepare_to_resume. All uses updated.
4710 (amd64_linux_new_thread): Renamed to
4711 x86_linux_new_thread. All uses updated.
4712 (amd64_linux_new_fork): Renamed to
4713 x86_linux_new_fork. All uses updated.
4714 (amd64_linux_child_post_startup_inferior): Renamed to
4715 x86_linux_child_post_startup_inferior. All uses updated.
4716 (amd64_linux_enable_btrace): Renamed to
4717 x86_linux_enable_btrace. All uses updated.
4718 (amd64_linux_disable_btrace): Renamed to
4719 x86_linux_disable_btrace. All uses updated.
4720 (amd64_linux_teardown_btrace): Renamed to
4721 x86_linux_teardown_btrace. All uses updated.
4722 (amd64_linux_read_btrace): Renamed to
4723 x86_linux_read_btrace. All uses updated.
4724 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4725 x86_linux_dr_get. All uses updated.
4726 (i386_linux_dr_set): Renamed to
4727 x86_linux_dr_set. All uses updated.
4728 (i386_linux_dr_get_addr): Renamed to
4729 x86_linux_dr_get_addr. All uses updated.
4730 (i386_linux_dr_get_control): Renamed to
4731 x86_linux_dr_get_control. All uses updated.
4732 (i386_linux_dr_get_status): Renamed to
4733 x86_linux_dr_get_status. All uses updated.
4734 (i386_linux_dr_set_control): Renamed to
4735 x86_linux_dr_set_control. All uses updated.
4736 (i386_linux_dr_set_addr): Renamed to
4737 x86_linux_dr_set_addr. All uses updated.
4738 (i386_linux_prepare_to_resume): Renamed to
4739 x86_linux_prepare_to_resume. All uses updated.
4740 (i386_linux_new_thread): Renamed to
4741 x86_linux_new_thread. All uses updated.
4742 (i386_linux_new_fork): Renamed to
4743 x86_linux_new_fork. All uses updated.
4744 (i386_linux_child_post_startup_inferior): Renamed to
4745 x86_linux_child_post_startup_inferior. All uses updated.
4746 (i386_linux_enable_btrace): Renamed to
4747 x86_linux_enable_btrace. All uses updated.
4748 (i386_linux_disable_btrace): Renamed to
4749 x86_linux_disable_btrace. All uses updated.
4750 (i386_linux_teardown_btrace): Renamed to
4751 x86_linux_teardown_btrace. All uses updated.
4752 (i386_linux_read_btrace): Renamed to
4753 x86_linux_read_btrace. All uses updated.
4754
b9c1d481
AS
47552014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4756
4757 * remote.c (extended_remote_post_attach): New function.
4758 (init_extended_remote_ops): Install it as to_post_attach method.
4759
7180e04a
PA
47602014-07-09 Pedro Alves <palves@redhat.com>
4761
4762 * infcmd.c (attach_command_post_wait): Don't call
4763 target_terminal_inferior here.
4764 (attach_command): Call it here instead.
4765
9a9a7608
AB
47662014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4767
4768 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4769 field.
4770 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4771 from varobj.c, with additional checks.
4772 (c_varobj_ops): Fill in is_path_expr_parent field.
4773 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4774 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4775 field.
4776 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4777 ops method.
4778 (varobj_default_is_path_expr_parent): New function.
4779 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4780 (varobj_default_is_path_expr_parent): Declare new function.
4781
1f267ae3
MM
47822014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4783
4784 * infcmd.c (finish_backward): Turn internal error into normal error.
4785
b2ee242b
PA
47862014-07-07 Pedro Alves <palves@redhat.com>
4787
8a869bca 4788 PR gdb/17096
b2ee242b
PA
4789 * remote.c (async_handle_remote_sigint)
4790 (async_handle_remote_sigint_twice): Call
4791 gdb_call_async_signal_handler instead of
4792 mark_async_signal_handler.
4793
38e229b2
TT
47942014-07-07 Tom Tromey <tromey@redhat.com>
4795
4796 * target-delegates.c: Rebuild.
4797 * target.c (target_info_record): Remove.
4798 * record.c (info_record_command): Unconditionally call
4799 to_info_record.
4800 * target.h (struct target_ops) <to_info_record>: Use
4801 TARGET_DEFAULT_IGNORE.
4802 (target_info_record): Remove.
4803
f0f9ff95
TT
48042014-07-07 Tom Tromey <tromey@redhat.com>
4805
4806 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4807 TARGET_DEFAULT_NORETURN.
4808 * target.c (generic_tls_error): New function.
4809 (target_translate_tls_address): Don't search target stack.
4810 * target-delegates.c: Rebuild.
4811 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4812 stack.
4813 * linux-thread-db.c (thread_db_get_thread_local_address):
4814 Unconditionally call beneath target.
4815
4a5be5ee
MK
48162014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4817
4818 * cli/cli-logging.c (pop_output_files): Assign targerr to
4819 gdb_stdtargerr.
4820
92c3b204
AB
48212014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4822
4823 * MAINTAINERS (Write After Approval): Update my email address.
4824
9b11e3a7
GB
48252014-07-02 Gary Benson <gbenson@redhat.com>
4826
4827 * proc-service.c (ps_xfer_memory): Update comment.
4828 (ps_pstop): Remove unused function.
4829 (ps_pcontinue): Likewise.
4830 (ps_lstop): Likewise.
4831 (ps_lcontinue): Likewise.
4832 (ps_lgetxregsize): Likewise.
4833 (ps_lgetxregs): Likewise.
4834 (ps_lsetxregs): Likewise.
4835 (ps_plog): Likewise.
4836 (ps_ptread): Likewise.
4837 (ps_ptwrite): Likewise.
4838
cf363f18
MW
48392014-07-01 Mark Wielaard <mjw@redhat.com>
4840
4841 * dwarf2read.c (add_array_cv_type): New function.
4842 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4843 (read_tag_volatile_type): Likewise.
4844
82ae6c8d
TT
48452014-07-01 Tom Tromey <tromey@redhat.com>
4846
4847 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4848 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4849 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4850 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4851 * command.h (cmd_cfunc_ftype): Move earlier.
4852 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4853 (add_com, add_info): Use cmd_cfunc_ftype.
4854
96142726
TT
48552014-06-30 Tom Tromey <tromey@redhat.com>
4856
4857 * symtab.c (operator_chars): Make parameters and return type
4858 const.
4859 (file_matches): Make "files" const.
4860 (struct search_symbols_data) <files>: Now const.
4861 (search_symbols): Make "regexp" and "files" parameters const.
4862 Update.
4863 (symtab_symbol_info): Remove cast.
4864 (rbreak_command): Update.
4865 * symtab.h (search_symbols): Update.
4866
b67a2c6f
YQ
48672014-06-27 Yao Qi <yao@codesourcery.com>
4868
4869 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4870 Change parameter type to 'struct thread_info *'. Caller
4871 updated.
4872 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4873 Update declaration.
4874 * dummy-frame.c (struct dummy_frame_id): New.
4875 (dummy_frame_id_eq): New function.
4876 (struct dummy_frame) <id>: Change its type to 'struct
4877 dummy_frame_id'.
4878 (dummy_frame_push): Add parameter ptid and save it in
4879 dummy_frame_id.
4880 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4881 inferior_ptid.
4882 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4883 to inferior_ptid.
4884 (lookup_dummy_frame): Change parameter type to 'struct
4885 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4886 instead of frame_id_eq.
4887 (dummy_frame_pop): Add parameter ptid. Callers updated.
4888 Update comments. Compose dummy_frame_id and pass it to
4889 lookup_dummy_frame.
4890 (dummy_frame_discard): Add parameter ptid.
4891 (dummy_frame_sniffer): Compose dummy_frame_id and call
4892 dummy_frame_id_eq instead of frame_id_eq.
4893 (fprint_dummy_frames): Print ptid.
4894 * dummy-frame.h: Remove comments.
4895 (dummy_frame_push): Add ptid in declaration.
4896 (dummy_frame_pop, dummy_frame_discard): Likewise.
4897
5b10184c
TT
48982014-06-26 Tom Tromey <tromey@redhat.com>
4899
4900 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4901 * command.h (error_no_arg): Update.
4902
06900326
TT
49032014-06-26 Tom Tromey <tromey@redhat.com>
4904
4905 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4906 (do_show_command): Make "arg" const.
4907 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4908
c2bcbb1d
TT
49092014-06-26 Tom Tromey <tromey@redhat.com>
4910
4911 * record-full.c (record_full_get_bookmark): Make "args" const.
4912 (record_full_goto_bookmark): Make "raw_bookmark" const.
4913 * record.c (record_goto): New function.
4914 (cmd_record_goto): Use it. Now static.
4915 * record.h (record_goto): Declare.
4916 (cmd_record_goto): Remove declaration.
4917 * target-delegates.c: Rebuild.
4918 * target.h (struct target_ops) <to_get_bookmark,
4919 to_goto_bookmark>: Make parameter const.
4920
9cbe5fff
TT
49212014-06-26 Tom Tromey <tromey@redhat.com>
4922
4923 * defs.h (generic_load): Update.
4924 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4925 * monitor.c (monitor_load): Make "args" const.
4926 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4927 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4928 const.
4929 (mips_load): Make "file" const.
4930 * remote-sim.c (gdbsim_load): Make "args" const.
4931 * remote.c (remote_load): Make "name" const.
4932 * symfile.c (generic_load): Make "args" const.
4933 * target-delegates.c: Rebuild.
4934 * target.c (target_load): Make "arg" const.
4935 (debug_to_load): Make "args" const.
4936 * target.h (struct target_ops) <to_load>: Make parameter const.
4937 (target_load): Update.
4938
34a68019
TT
49392014-06-26 Tom Tromey <tromey@redhat.com>
4940
4941 PR symtab/16902:
4942 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4943 (dwarf2_physname, read_partial_die)
4944 (guess_partial_die_structure_name, fixup_partial_die)
4945 (guess_full_die_structure_name, anonymous_struct_prefix)
4946 (dwarf2_name): Use per-BFD obstack.
4947
efc889c1
YQ
49482014-06-26 Yao Qi <yao@codesourcery.com>
4949
4950 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4951 dummyframe and this_id into inner block below.
4952
4395285e
YQ
49532014-06-26 Yao Qi <yao@codesourcery.com>
4954
4955 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4956 with "signal_pass[0]" in the initialization of signal_pass.
4957
aef92902
MM
49582014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4959
4960 * record-btrace.c (record_btrace_generating_corefile)
4961 (record_btrace_prepare_to_generate_core)
4962 (record_btrace_done_generating_core): New.
4963 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4964 (record_btrace_store_registers, record_btrace_prepare_to_store):
4965 Forward request when generating a core file.
4966 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4967 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4968 to_done_generating_core.
4969
5fff78c4
MM
49702014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4971
4972 * target.h (target_ops) <to_prepare_to_generate_core>
4973 <to_done_generating_core>: New.
4974 (target_prepare_to_generate_core, target_done_generating_core): New.
4975 * target.c (target_prepare_to_generate_core)
4976 (target_done_generating_core): New.
4977 * target-delegates.c: Regenerate.
4978 * gcore.c: (write_gcore_file): Rename to ...
4979 (write_gcore_file_1): ...this.
4980 (write_gcore_file): Call target_prepare_to_generate_core
4981 and target_done_generating_core.
4982
1d1f1ccb
MM
49832014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4984
4985 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4986 * gcore.c (write_gcore_file): Free memory returned from
4987 make_corefile_notes.
4988 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4989 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4990
3343ef86
YQ
49912014-06-24 Yao Qi <yao@codesourcery.com>
4992
4993 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4994 (arm_linux_init_abi): Set skip_trampoline_code with
4995 gdbarch_skip_trampoline_code instead of
4996 find_solib_trampoline_target.
4997
18d18ac8
YQ
49982014-06-24 Yao Qi <yao@codesourcery.com>
4999
5000 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5001 arm_skip_bx_reg returns non-zero.
5002
80d8d390
YQ
50032014-06-24 Yao Qi <yao@codesourcery.com>
5004
5005 * arm-tdep.c (arm_skip_bx_reg): New function.
5006 (arm_skip_stub): Call arm_skip_bx_reg.
5007
6a18a01c
DB
50082014-06-23 Don Breazeal <donb@codesourcery.com>
5009
5010 * MAINTAINERS: Add myself as write-after-approval maintainer.
5011
8e9db26e
PA
50122014-06-23 Pedro Alves <palves@redhat.com>
5013
5014 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5015 DR_CONTROL before setting DR0..DR3.
5016 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5017 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5018 bits of DR_CONTROL related to the debug register slot being
5019 disabled. If all slots are vacant, clear local slowdown as well,
5020 and assert DR_CONTROL is 0.
5021
70afc5b7
SC
50222014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5023
5024 * python/lib/gdb/command/xmethods.py
5025 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5026 current progspace only if the string "progspace" matches LOCUS_RE.
5027
840ed64d
JK
50282014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5029
5030 Fix --with-system-readline with readline-6.3 patch 5.
5031 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5032 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5033 types.
5034
26f2dc30
TT
50352014-06-20 Tom Tromey <tromey@redhat.com>
5036
5037 * dwarf2read.c (dw2_get_real_path): Use correct type in
5038 OBSTACK_CALLOC.
5039 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5040
125f8a3d
GB
50412014-06-20 Gary Benson <gbenson@redhat.com>
5042
5043 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5044 * common/glibc_thread_db.h: Likewise.
5045 * common/i386-cpuid.h: Likewise.
5046 * common/i386-gcc-cpuid.h: Likewise.
5047 * common/linux-btrace.h: Likewise.
5048 * common/linux-osdata.h: Likewise.
5049 * common/linux-procfs.h: Likewise.
5050 * common/linux-ptrace.h: Likewise.
5051 * common/mips-linux-watch.h: Likewise.
5052 * common/linux-btrace.c: Moved to nat.
5053 * common/linux-osdata.c: Likewise.
5054 * common/linux-procfs.c: Likewise.
5055 * common/linux-ptrace.c: Likewise.
5056 * common/mips-linux-watch.c: Likewise.
5057 * nat/gdb_thread_db.h: Moved from common.
5058 * nat/glibc_thread_db.h: Likewise.
5059 * nat/i386-cpuid.h: Likewise.
5060 * nat/i386-gcc-cpuid.h: Likewise.
5061 * nat/linux-btrace.c: Likewise.
5062 * nat/linux-btrace.h: Likewise.
5063 * nat/linux-osdata.c: Likewise.
5064 * nat/linux-osdata.h: Likewise.
5065 * nat/linux-procfs.c: Likewise.
5066 * nat/linux-procfs.h: Likewise.
5067 * nat/linux-ptrace.c: Likewise.
5068 * nat/linux-ptrace.h: Likewise.
5069 * nat/mips-linux-watch.c: Likewise.
5070 * nat/mips-linux-watch.h: Likewise.
5071 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5072 (object file files): Reordered.
5073 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5074 of glibc_thread_db.h.
5075
42995dbd
GB
50762014-06-20 Gary Benson <gbenson@redhat.com>
5077
5078 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5079 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5080 (i386_dr_low): Likewise.
5081 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5082 (i386_dr_low_set_addr): Likewise.
5083 (i386_dr_low_get_addr): Likewise.
5084 (i386_dr_low_can_set_control): Likewise.
5085 (i386_dr_low_set_control): Likewise.
5086 (i386_dr_low_get_control): Likewise.
5087 (i386_dr_low_get_status): Likewise.
5088 (i386_get_debug_register_length): Likewise.
5089 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5090 (i386_dr_low): Likewise.
5091 * nat/i386-dregs.c (i386-low.h): Remove include.
5092 (i386-nat.h): Likewise.
5093 (nat/i386-dregs.h): New include.
5094 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5095 (i386_dr_low_set_addr): Likewise.
5096 (i386_dr_low_get_addr): Likewise.
5097 (i386_dr_low_can_set_control): Likewise.
5098 (i386_dr_low_set_control): Likewise.
5099 (i386_dr_low_get_control): Likewise.
5100 (i386_dr_low_get_status): Likewise.
5101 (i386_get_debug_register_length): Likewise.
5102 (debug_hw_points): Likewise.
5103
3ed9baed
IB
51042014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5105
5106 * Makefile.in (SFILES): Add d-exp.y.
5107 (YYFILES): Add d-exp.c.
5108 (YYOBJ): Add d-exp.o.
5109 (local-maintainer-clean): Delete d-exp.c.
5110 * d-exp.y: New file.
5111 * d-lang.h (d_parse): New declaration.
5112 (d_error): New declaration.
5113 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5114 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5115 PREC_ORDER operators.
5116 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5117
78c164b0
YQ
51182014-06-19 Yao Qi <yao@codesourcery.com>
5119
5120 * gdbthread.h (any_running): Remove the declaration.
5121 * thread.c (any_running): Remove.
5122
f6e29b6e
YQ
51232014-06-19 Yao Qi <yao@codesourcery.com>
5124
5125 * gdbthread.h (struct thread_info) <state>: Change its type to
5126 'enum thread_state'. Update comments.
5127
034f788c
PA
51282014-06-19 Pedro Alves <palves@redhat.com>
5129
5130 * gdbthread.h (ALL_THREADS): Delete.
5131 (ALL_NON_EXITED_THREADS): New macro.
5132 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5133 instead of ALL_THREADS.
5134 * infrun.c (find_thread_needs_step_over)
5135 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5136 instead of ALL_THREADS.
5137 * record-btrace.c (record_btrace_open)
5138 (record_btrace_stop_recording, record_btrace_close)
5139 (record_btrace_is_replaying, record_btrace_resume)
5140 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5141 * remote.c (append_pending_thread_resumptions): Likewise.
5142 * thread.c (thread_apply_all_command): Likewise.
5143
46e33252
GB
51442014-06-19 Gary Benson <gbenson@redhat.com>
5145
5146 * i386-nat.c (i386_stopped_by_watchpoint):
5147 Use i386_dr_stopped_by_watchpoint.
5148 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5149 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5150
3a8ee006
GB
51512014-06-19 Gary Benson <gbenson@redhat.com>
5152
5153 * nat/i386-dregs.c: New file.
5154 * Makefile.in (i386-dregs.o): New rule.
5155 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5156 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5157 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5158 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5159 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5160 * config/i386/go32.mh (NATDEPFILES): Likewise.
5161 * config/i386/linux.mh (NATDEPFILES): Likewise.
5162 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5163 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5164 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5165 * i386-nat.h (debug_hw_points): New declaration.
5166 * i386-nat.c (breakpoint.h): Remove include.
5167 (command.h): Likewise.
5168 (target.h): Likewise.
5169 (gdb_assert.h): Likewise.
5170 (debug_hw_points): Made nonstatic.
5171 (debug_printf): Now in i386-dregs.c.
5172 (TARGET_HAS_DR_LEN_8): Likewise.
5173 (DR_CONTROL_SHIFT): Likewise.
5174 (DR_CONTROL_SIZE): Likewise.
5175 (DR_RW_EXECUTE): Likewise.
5176 (DR_RW_WRITE): Likewise.
5177 (DR_RW_READ): Likewise.
5178 (DR_RW_IORW): Likewise.
5179 (DR_LEN_1): Likewise.
5180 (DR_LEN_2): Likewise.
5181 (DR_LEN_4): Likewise.
5182 (DR_LEN_8): Likewise.
5183 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5184 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5185 (DR_ENABLE_SIZE): Likewise.
5186 (DR_LOCAL_SLOWDOWN): Likewise.
5187 (DR_GLOBAL_SLOWDOWN): Likewise.
5188 (DR_CONTROL_RESERVED): Likewise.
5189 (I386_DR_CONTROL_MASK): Likewise.
5190 (I386_DR_VACANT): Likewise.
5191 (I386_DR_LOCAL_ENABLE): Likewise.
5192 (I386_DR_GLOBAL_ENABLE): Likewise.
5193 (I386_DR_DISABLE): Likewise.
5194 (I386_DR_SET_RW_LEN): Likewise.
5195 (I386_DR_GET_RW_LEN): Likewise.
5196 (I386_DR_WATCH_HIT): Likewise.
5197 (i386_wp_op_t): Likewise.
5198 (i386_show_dr): Likewise.
5199 (i386_length_and_rw_bits): Likewise.
5200 (i386_insert_aligned_watchpoint): Likewise.
5201 (i386_remove_aligned_watchpoint): Likewise.
5202 (i386_handle_nonaligned_watchpoint): Likewise.
5203 (i386_update_inferior_debug_regs): Likewise.
5204 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5205 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5206 (i386_region_ok_for_watchpoint):
5207 Use i386_dr_region_ok_for_watchpoint.
5208 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5209
322a8e06
GB
52102014-06-19 Gary Benson <gbenson@redhat.com>
5211
5212 * i386-nat.c (i386_insert_hw_breakpoint): Use
5213 i386_insert_watchpoint.
5214 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5215
8f26655c
GB
52162014-06-19 Gary Benson <gbenson@redhat.com>
5217
5218 * i386-nat.c (i386_dr_show): Renamed to
5219 i386_show_dr and made static. All uses updated.
5220 (i386_dr_length_and_rw_bits): Renamed to
5221 i386_length_and_rw_bits and made static.
5222 All uses updated.
5223 (i386_dr_insert_aligned_watchpoint): Renamed to
5224 i386_insert_aligned_watchpoint and made static.
5225 All uses updated.
5226 (i386_dr_remove_aligned_watchpoint): Renamed to
5227 i386_remove_aligned_watchpoint and made static.
5228 All uses updated.
5229 (i386_dr_update_inferior_debug_regs): Renamed to
5230 i386_update_inferior_debug_regs and made static.
5231 All uses updated.
5232 * nat/i386-dregs.h (i386_dr_show): Removed.
5233 (i386_dr_length_and_rw_bits): Likewise.
5234 (i386_dr_insert_aligned_watchpoint): Likewise.
5235 (i386_dr_remove_aligned_watchpoint): Likewise.
5236 (i386_dr_update_inferior_debug_regs): Likewise.
5237
992c7d70
GB
52382014-06-19 Gary Benson <gbenson@redhat.com>
5239
5240 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5241 * configure: Regenerate.
5242 * config.in: Likewise.
5243 * main.c (signal.h): New include.
5244 (setup_alternate_signal_stack): New function.
5245 (captured_main): Call the above.
5246 * cp-support.c (signal.h): New include.
5247 (catch_demangler_crashes): New flag.
5248 (SIGJMP_BUF): New define.
5249 (SIGSETJMP): Likewise.
5250 (SIGLONGJMP): Likewise.
5251 (gdb_demangle_jmp_buf): New static global.
5252 (gdb_demangle_attempt_core_dump): Likewise.
5253 (gdb_demangle_signal_handler): New function.
5254 (gdb_demangle): If catch_demangler_crashes is set, install the
5255 above signal handler before calling bfd_demangle, and restore
5256 the original signal handler afterwards. Display the offending
5257 symbol and call demangler_warning the first time a segmentation
5258 fault is caught.
5259 (_initialize_cp_support): New maint set/show command.
5260
eae7090b
GB
52612014-06-19 Gary Benson <gbenson@redhat.com>
5262
5263 * utils.h (resource_limit_kind): New enum.
5264 (can_dump_core): New declaration.
5265 (warn_cant_dump_core): Likewise.
5266 (dump_core): Likewise.
5267 * utils.c (dump_core): Made nonstatic. Added new
5268 parameter "limit_kind".
5269 (can_dump_core): Made nonstatic. Moved printing code to...
5270 (warn_cant_dump_core): New function.
5271 (can_dump_core_warn): Likewise.
5272 (internal_vproblem): Replace calls to can_dump_core with
5273 calls to can_dump_core_warn. Supply new argument to each.
5274
57fcfb1b
GB
52752014-06-19 Gary Benson <gbenson@redhat.com>
5276
5277 * utils.h (demangler_vwarning): New declaration.
5278 (demangler_warning): Likewise.
5279 * utils.c (struct internal_problem)
5280 <user_settable_should_quit>: New field.
5281 <user_settable_should_dump_core>: Likewise
5282 (internal_error_problem): Add values for above new fields.
5283 (internal_warning_problem): Likewise.
5284 (demangler_warning_problem): New static global.
5285 (demangler_vwarning): New function.
5286 (demangler_warning): Likewise.
5287 (add_internal_problem_command): Selectively add commands.
5288 (_initialize_utils): New internal problem command.
5289 * maint.c (maintenance_demangler_warning): New function.
5290 (_initialize_maint_cmds): New command.
5291
17a40b44
TT
52922014-06-18 Tom Tromey <tromey@redhat.com>
5293
5294 * f-valprint.c (info_common_command_for_block): Update.
5295 * symtab.h (struct general_symbol_info) <common_block>: Now
5296 const.
5297
346d1dfe
TT
52982014-06-18 Tom Tromey <tromey@redhat.com>
5299
5300 * symtab.h (struct symtab) <blockvector>: Now const.
5301 * ada-lang.c (ada_add_global_exceptions): Update.
5302 * buildsym.c (augment_type_symtab): Update.
5303 * dwarf2read.c (dw2_lookup_symbol): Update.
5304 * jit.c (finalize_symtab): Update.
5305 * jv-lang.c (add_class_symtab_symbol): Update.
5306 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5307 Update.
5308 * objfiles.c (objfile_relocate1): Update.
5309 * psymtab.c (lookup_symbol_aux_psymtabs)
5310 (maintenance_check_psymtabs): Update.
5311 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5312 Update.
5313 * spu-tdep.c (spu_catch_start): Update.
5314 * symmisc.c (dump_symtab_1): Update.
5315 * symtab.c (lookup_global_symbol_from_objfile)
5316 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5317 (basic_lookup_transparent_type_quick)
5318 (basic_lookup_transparent_type, find_pc_sect_symtab)
5319 (find_pc_sect_line, search_symbols): Update.
5320 * block.c (find_block_in_blockvector): Make "bl" const.
5321 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5322 const.
5323 (blockvector_contains_pc): Make "bv" const.
5324 (block_for_pc_sect): Update.
5325 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5326 (blockvector_contains_pc): Update.
5327 * breakpoint.c (resolve_sal_pc): Update.
5328 * inline-frame.c (block_starting_point_at): Update.
5329
1834676b
TT
53302014-06-18 Tom Tromey <tromey@redhat.com>
5331
5332 * completer.c (complete_line): Make "line_buffer" const.
5333 * completer.h (complete_line): Update.
5334
ac1a991b
TT
53352014-06-18 Tom Tromey <tromey@redhat.com>
5336
5337 * symtab.c (add_macro_name): Remove unneeded cast.
5338
5bc98e52
TT
53392014-06-18 Tom Tromey <tromey@redhat.com>
5340
5341 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5342 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5343
8236def8
TT
53442014-06-18 Tom Tromey <tromey@redhat.com>
5345
5346 * probe.c (info_probes_for_ops): Make "arg" const.
5347 * probe.h (info_probes_for_ops): Update.
5348
3977b71f
TT
53492014-06-18 Tom Tromey <tromey@redhat.com>
5350
5351 * varobj.c (varobj_create): Update.
5352 * valops.c (value_of_this): Update.
5353 * tracepoint.c (add_local_symbols, scope_info): Update.
5354 * symtab.h (struct general_symbol_info) <block>: Now const.
5355 * symtab.c (skip_prologue_sal)
5356 (default_make_symbol_completion_list_break_on)
5357 (skip_prologue_using_sal): Update.
5358 * stack.h (iterate_over_block_locals)
5359 (iterate_over_block_local_vars): Update.
5360 * stack.c (print_frame_args): Update.
5361 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5362 parameter const.
5363 (get_selected_block): Make return type const.
5364 * python/py-frame.c (frapy_block): Update.
5365 * python/py-block.c (gdbpy_block_for_pc): Update.
5366 * p-exp.y (%union) <bval>: Now const.
5367 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5368 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5369 * m2-exp.y (%union) <bval>: Now const.
5370 * linespec.c (get_current_search_block): Make return type const.
5371 (create_sals_line_offset, find_label_symbols): Update.
5372 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5373 Update.
5374 (block_starting_point_at): Make "block" const.
5375 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5376 (check_exception_resume): Update.
5377 * guile/scm-frame.c (gdbscm_frame_block): Update.
5378 * guile/scm-block.c (gdbscm_lookup_block): Update.
5379 * frame.h (get_frame_block): Update.
5380 (get_selected_block): Make return type const.
5381 * frame.c (frame_id_inner): Update.
5382 * f-valprint.c (info_common_command_for_block)
5383 (info_common_command): Update.
5384 * dwarf2loc.c (dwarf2_find_location_expression)
5385 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5386 (locexpr_describe_location_piece): Update.
5387 * c-exp.y (%union) <bval>: Now const.
5388 * breakpoint.c (resolve_sal_pc): Update.
5389 * blockframe.c (get_frame_block):Make return type const.
5390 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5391 (block_innermost_frame): Update.
5392 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5393 (block_for_pc, block_for_pc_sect): Update.
5394 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5395 'pblock' const.
5396 (block_for_pc_sect, block_for_pc): Make return type const.
5397 * ax-gdb.c (gen_expr): Update.
5398 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5399 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5400 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5401 (ada_read_var_value): Update.
5402 * ada-exp.y (struct name_info) <block>: Now const.
5403 (%union): Likewise.
5404 (block_lookup): Constify.
5405
b9228891
GB
54062014-06-18 Gary Benson <gbenson@redhat.com>
5407
5408 * nat/i386-dregs.h: New file.
5409 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5410 * i386-nat.h (i386-dregs.h): New include.
5411 (DR_FIRSTADDR): Now in i386-dregs.h.
5412 (DR_LASTADDR): Likewise.
5413 (DR_NADDR): Likewise.
5414 (DR_STATUS): Likewise.
5415 (DR_CONTROL): Likewise.
5416 (i386_debug_reg_state): Likewise.
5417 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5418
a1aa2221
LM
54192014-06-18 Don Breazeal <donb@codesourcery.com>
5420
5421 * breakpoint.c (set_longjmp_breakpoint): Call
5422 momentary_breakpoint_from_master with additional argument.
5423 (set_longjmp_breakpoint_for_call_dummy): Call
5424 momentary_breakpoint_from_master with additional argument.
5425 (set_std_terminate_breakpoint): Call
5426 momentary_breakpoint_from_master with additional argument.
5427 (momentary_breakpoint_from_master): Add argument to function
5428 definition and use it to initialize structure member flag.
74228e77 5429 (clone_momentary_breakpoint): Call
a1aa2221
LM
5430 momentary_breakpoint_from_master with additional argument.
5431 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5432 member flags set in momentary_breakpoint_from_master.
5433
4be83cc2
GB
54342014-06-18 Gary Benson <gbenson@redhat.com>
5435
5436 * i386-nat.c (i386_show_dr): Renamed to
5437 i386_dr_show and made nonstatic. All uses updated.
5438 (i386_length_and_rw_bits): Renamed to
5439 i386_dr_length_and_rw_bits and made nonstatic.
5440 All uses updated.
5441 (i386_insert_aligned_watchpoint): Renamed to
5442 i386_dr_insert_aligned_watchpoint and made nonstatic.
5443 All uses updated.
5444 (i386_remove_aligned_watchpoint): Renamed to
5445 i386_dr_remove_aligned_watchpoint and made nonstatic.
5446 All uses updated.
5447 (i386_update_inferior_debug_regs): Renamed to
5448 i386_dr_update_inferior_debug_regs and made nonstatic.
5449 All uses updated.
5450
131aa0d4
GB
54512014-06-18 Gary Benson <gbenson@redhat.com>
5452
5453 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5454 (i386_dr_low_can_set_control): Likewise.
5455 (i386_dr_low_set_addr): Likewise.
5456 (i386_dr_low_set_control): Likewise.
5457 (i386_dr_low_get_addr): Likewise.
5458 (i386_dr_low_get_status): Likewise.
5459 (i386_dr_low_get_control): Likewise.
5460 (i386_insert_aligned_watchpoint): Use new macros.
5461 (i386_update_inferior_debug_regs): Likewise.
5462 (i386_stopped_data_address): Likewise.
5463
d9305f7f
GB
54642014-06-18 Gary Benson <gbenson@redhat.com>
5465
5466 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5467 New parameter. All uses updated.
5468
ea008da4
GB
54692014-06-18 Gary Benson <gbenson@redhat.com>
5470
5471 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5472 All uses updated.
5473
1b6d4134
GB
54742014-06-18 Gary Benson <gbenson@redhat.com>
5475
5476 * i386-nat.c (debug_printf): New macro.
5477 (i386_get_debug_register_length): Likewise.
5478 (TARGET_HAS_DR_LEN_8): Use above macro.
5479 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5480 and printf_unfiltered. Use phex to format values.
5481
9b4550ef
GB
54822014-06-18 Gary Benson <gbenson@redhat.com>
5483
5484 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5485 Make const.
5486
6e62758f
GB
54872014-06-18 Gary Benson <gbenson@redhat.com>
5488
5489 * i386-nat.c: Comment changes.
5490
51c79e94
GB
54912014-06-18 Gary Benson <gbenson@redhat.com>
5492
5493 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5494
3e11889a
GB
54952014-06-18 Gary Benson <gbenson@redhat.com>
5496
5497 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5498 (i386_insert_aligned_watchpoint): Likewise.
5499 (i386_remove_aligned_watchpoint): Likewise.
5500 (i386_handle_nonaligned_watchpoint): Likewise.
5501
fc6e2f03
GB
55022014-06-18 Gary Benson <gbenson@redhat.com>
5503
5504 * i386-nat.c: Whitespace changes.
5505
2afe7d50
SB
55062014-06-17 Samuel Bronson <naesten@gmail.com>
5507
5508 * MAINTAINERS: Update Roland McGrath's email address.
5509 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 5510 Red Hat a while ago, and giving me a current address.
2afe7d50 5511
3bca49ee
TT
55122014-06-17 Tom Tromey <tromey@redhat.com>
5513
5514 * utils.h (savestring): Remove declaration.
5515
6e366df1
TT
55162014-06-17 Tom Tromey <tromey@redhat.com>
5517
5518 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5519
6be47f0c
KS
55202014-06-16 Keith Seitz <keiths@redhat.com>
5521
5522 PR mi/15863
5523 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5524 to update the varobj if inferior_ptid is null_ptid.
5525
7bc112c1
TT
55262014-06-16 Tom Tromey <tromey@redhat.com>
5527
5528 * target.h (struct target_ops) <to_info_proc>: Make parameter
5529 const.
5530 (target_info_proc): Update.
5531 * target.c (target_info_proc): Make "args" const.
5532 * procfs.c (procfs_info_proc): Update.
5533 * linux-tdep.c (linux_info_proc): Update.
5534 (linux_core_info_proc_mappings): Make "args" const.
5535 (linux_core_info_proc): Update.
5536 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5537 * gdbarch.c: Rebuild.
5538 * gdbarch.h: Rebuild.
5539 * corelow.c (core_info_proc): Update.
5540
fee354ee
TT
55412014-06-16 Tom Tromey <tromey@redhat.com>
5542
5543 * target.h (struct target_ops) <to_disconnect>: Make parameter
5544 const.
5545 (target_disconnect): Update.
5546 * target.c (target_disconnect): Make "args" const.
5547 * target-delegates.c: Rebuild.
5548 * remote.c (remote_disconnect): Update.
5549 * record.h (record_disconnect): Update.
5550 * record.c (record_disconnect): Update.
5551 * inf-child.c (inf_child_disconnect): Update.
5552
a30bf1f1
TT
55532014-06-16 Tom Tromey <tromey@redhat.com>
5554
5555 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5556 * target.c (debug_to_rcmd, default_rcmd): Update.
5557 * target-delegates.c: Rebuild.
5558 * remote.c (remote_rcmd): Update.
5559 * monitor.c (monitor_rcmd): Update.
5560
d03de421
PA
55612014-06-16 Pedro Alves <palves@redhat.com>
5562
5563 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5564 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5565 have OBJF_SHARED set.
5566 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5567 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5568 instead of OBJF_USERLOADED.
5569 * objfiles.h (OBJF_SHARED): Update comment.
5570 (userloaded_objfile_contains_address_p): Rename to ...
5571 (shared_objfile_contains_address_p): ... this, and update
5572 comments.
5573 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5574 new objfile.
5575 (remove_symbol_file_command): Skip objfiles that don't have
5576 OBJF_SHARED set.
5577
99f4262f
TT
55782014-06-16 Tom Tromey <tromey@redhat.com>
5579
5580 * minsyms.h (prim_record_minimal_symbol)
5581 (prim_record_minimal_symbol_and_info): Update comments.
5582
97d66cc6
EZ
55832014-06-14 Eli Zaretskii <eliz@gnu.org>
5584
5585 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5586 or --without-guile, according to how GDB was built.
5587
635c7e8a
TT
55882014-06-13 Tom Tromey <tromey@redhat.com>
5589
5590 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5591 to help_list.
5592 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5593 to help_list.
5594 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5595 help_list.
5596 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5597 help_list.Pass all_commands, not -1, to help_list.
5598 * cli/cli-dump.c (dump_command, append_command)
5599 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5600 (binary_dump_command, binary_append_command): Pass all_commands,
5601 not -1, to help_list.
5602 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5603 -1, to help_list.
5604 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5605 -1, to help_list.
5606 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5607 help_list.
5608 * top.c (set_history): Pass all_commands, not -1, to help_list.
5609 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5610 all_commands, not -1, to help_list.
5611 * symfile.c (overlay_command): Pass all_commands, not -1, to
5612 help_list.
5613 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5614 help_list.
5615 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5616 help_list.
5617 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5618 -1, to help_list.
5619 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5620 not -1, to help_list.
5621 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5622 not -1, to help_list.
5623 * maint.c (maintenance_command, maintenance_info_command)
5624 (maintenance_print_command, maintenance_set_cmd): Pass
5625 all_commands, not -1, to help_list.
5626 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5627 help_list.
5628 * language.c (set_check): Pass all_commands, not -1, to help_list.
5629 * infcmd.c (unset_command): Pass all_commands, not -1, to
5630 help_list.
5631 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5632 help_list.
5633 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5634 help_list.
5635 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5636 help_list.
5637 * breakpoint.c (save_command): Pass all_commands, not -1, to
5638 help_list.
5639 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5640 all_commands, not -1, to help_list.
5641
b94ade42
PL
56422014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5643
5644 * regcache.c (struct register_to_invalidate): New structure.
5645 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5646 functions.
5647 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5648
31f628ae
YQ
56492014-06-12 Yao Qi <yao@codesourcery.com>
5650
5651 * varobj.c (varobj_get_num_children): Call
5652 varobj_is_dynamic_p.
5653 (varobj_list_children): Likewise.
5654 (varobj_update): Likewise. Update comments.
5655
cde5ef40
YQ
56562014-06-12 Yao Qi <yao@codesourcery.com>
5657
5658 * varobj.c (varobj_pretty_printed_p): Rename to ...
5659 (varobj_is_dynamic_p): ... this. New function.
5660 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5661 (varobj_is_dynamic_p): Declare.
5662 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5663 (mi_print_value_p, varobj_update_one): Likewise.
5664
576ea091
YQ
56652014-06-12 Pedro Alves <pedro@codesourcery.com>
5666 Yao Qi <yao@codesourcery.com>
5667
5668 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5669 (varobj_get_iterator): Wrap up code for pretty-printer by
5670 "#if HAVE_PYTHON" and "#endif".
5671 (update_dynamic_varobj_children): Likewise.
5672
827f100c
YQ
56732014-06-12 Pedro Alves <pedro@codesourcery.com>
5674 Yao Qi <yao@codesourcery.com>
5675
5676 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5677 gdb_python_initialized is false. Move some code from varobj.c.
5678 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5679 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5680 (struct varobj_item): Moved to varobj-iter.h".
5681 (varobj_clear_saved_item): New function.
5682 (update_dynamic_varobj_children): Move python-related code to
5683 py-varobj.c.
5684 (free_variable): Call varobj_clear_saved_item and
5685 varobj_iter_delete.
5686
e5250216
YQ
56872014-06-12 Pedro Alves <pedro@codesourcery.com>
5688 Yao Qi <yao@codesourcery.com>
5689
5690 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5691 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5692 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5693 (py-varobj.o): New rule.
5694 * python/py-varobj.c: New file.
5695 * python/python-internal.h (py_varobj_get_iterator): Declare.
5696 * varobj-iter.h: New file.
5697 * varobj.c: Include "varobj-iter.h"
5698 (struct varobj) <child_iter>: Change its type from "PyObject *"
5699 to "struct varobj_iter *".
5700 <saved_item>: Likewise.
5701 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5702 [HAVE_PYTHON] (varobj_get_iterator): New function.
5703 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5704 python-specific code to python/py-varobj.c.
5705 (install_visualizer): Call varobj_iter_delete instead of
5706 Py_XDECREF.
5707 * varobj.h (varobj_ensure_python_env): Declare.
5708
5a2e0d6e
YQ
57092014-06-12 Yao Qi <yao@codesourcery.com>
5710
5711 * varobj.c (struct varobj_item): New structure.
5712 (create_child_with_value): Update declaration.
5713 (varobj_add_child): Replace arguments 'name' and 'value' with
5714 'item'. All callers updated.
5715 (install_dynamic_child): Likewise.
5716 (update_dynamic_varobj_children): Likewise.
5717 (varobj_add_child): Likewise.
5718 (create_child_with_value): Likewise.
5719
919b9a93
JB
57202014-06-11 Joel Brobecker <brobecker@adacore.com>
5721
5722 * NEWS: Create a new section for the next release branch.
5723 Rename the section of the current branch, now that it has
5724 been cut.
5725
71a55bdf
JB
57262014-06-11 Joel Brobecker <brobecker@adacore.com>
5727
5728 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5729 * version.in: Bump version to 7.8.50.DATE-cvs.
5730
364fe1f7
PA
57312014-06-11 Pedro Alves <palves@redhat.com>
5732
5733 PR remote/17028
5734 * ser-mingw.c (net_windows_socket_check_pending): New function.
5735 (net_windows_select_thread): Ignore spurious wakeups. Use
5736 net_windows_socket_check_pending.
5737 (net_windows_wait_handle): Check for pending events with
5738 ioctlsocket, through net_windows_socket_check_pending, instead of
5739 checking the socket's event.
5740
5a6c7709
SC
57412014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5742
5743 * python/python-internal.h (gdb_PyObject_GetAttrString)
5744 (gdb_PyObject_HasAttrString): New inline function definitions.
5745 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5746 char * of the second argument to PyObject_GetAttrString.
74228e77 5747
0e58ee40
JB
57482014-06-10 Joel Brobecker <brobecker@adacore.com>
5749
5750 * serial.c (serial_write): Fix index of character to be printed
5751 in call to serial_logchar when serial debug traces are enabled.
5752
d190df30
JB
57532014-06-10 Joel Brobecker <brobecker@adacore.com>
5754
5755 * gdbtypes (resolve_dynamic_range): Add function description.
5756
b4b01d36
PA
57572014-06-09 Pedro Alves <palves@redhat.com>
5758
5759 * linux-nat.c (linux_child_follow_fork): Initialize status with
5760 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5761 inner block. Only pass the signal to PTRACE_DETACH if in pass
5762 state.
5763
3657956b
GB
57642014-06-09 Gary Benson <gbenson@redhat.com>
5765
5766 * common/signals.c (gdb_signal_from_host): Reorder to separate
5767 the always-available ANSI-standard signals from the signals that
5768 require checking.
5769 (do_gdb_signal_to_host): Likewise.
5770 * proc-events.c (signal_table): Likewise.
5771
c077881a
HZ
57722014-06-08 Hui Zhu <hui@codesourcery.com>
5773
5774 * common/linux-ptrace.c (linux_disable_event_reporting): New
5775 function.
5776 * common/linux-ptrace.h (linux_disable_event_reporting): New
5777 declaration.
5778 * linux-nat.c (linux_child_follow_fork): Do a single step before
5779 detach.
5780
4186eb54
KS
57812014-06-07 Keith Seitz <keiths@redhat.com>
5782
5783 Revert:
5784 PR c++/16253
5785 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5786 from symbol_matches_domain in symtab.c. All local callers
5787 of symbol_matches_domain updated.
5788 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5789 search STRUCT_DOMAIN.
5790 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5791 independently. standard_lookup will do that automatically.
5792 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5793 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5794 (cp_lookup_symbol_in_namespace): Likewise.
5795 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5796 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5797 may return a STRUCT_DOMAIN match.
5798 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5799 * cp-support.c: Include language.h.
5800 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5801 VAR_DOMAIN.
5802 * psymtab.c (match_partial_symbol): Compare the requested
5803 domain with the symbol's domain directly.
5804 (lookup_partial_symbol): Likewise.
5805 * symtab.c (lookup_symbol_in_language): Explain when/why
5806 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5807 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5808 appropriate languages.
5809 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5810 and moved to ada-lang.c
5811 (lookup_block_symbol): Explain that this function only returns
5812 symbol matching the requested DOMAIN.
5813 Compare the requested domain with the symbol's domain directly.
5814 (iterate_over_symbols): Compare the requested domain with the
5815 symbol's domain directly.
5816 * symtab.h (symbol_matches_domain): Remove.
5817
25326a28 58182014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5819
5820 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5821 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5822 (gdbscm_guile_version_is_at_least): Declare.
5823 (gdbscm_scm_string_to_int): Declare.
5824 * guile/guile.c (gdbscm_guile_major_version): New global.
5825 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5826 (guile_datadir): New static global.
5827 (gdbscm_guile_data_directory): New function.
5828 (initialize_scheme_side): Update.
5829 (misc_guile_functions): Add guile-data-directory.
5830 (initialize_gdb_module): Fetch guile version number.
5831 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5832 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5833 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5834 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5835 comments.
5836 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5837 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5838 * guile/scm-value.c (gdbscm_value_to_string): Only call
5839 scm_port_conversion_strategy if Guile version >= 2.0.6.
5840
0a770bb2 58412014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5842
5843 * main.c (print_gdb_help): Add -q and --silent.
5844
73ba372c
GB
58452014-06-06 Gary Benson <gbenson@redhat.com>
5846
5847 * common/signals.c: Remove preprocessor conditionals for
5848 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5849 SIGSEGV and SIGTERM.
5850 * proc-events.c: Likewise.
5851
c33b2f12
MM
58522014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5853
5854 * symfile.c (symfile_free_objfile): Remove restriction to
5855 OBJF_USERLOADED.
5856 * symfile-mem.c (symbol_file_add_from_memory): Call
5857 add_target_sections_of_objfile.
5858
fb934770
LC
58592014-06-05 Ludovic Courtès <ludo@gnu.org>
5860
5861 * guile/scm-value.c (gdbscm_history_append_x): Use
5862 'vlscm_get_value_smob_arg_unsafe' instead of
5863 'vlscm_scm_to_value'.
5864
6ef284bd
SM
58652014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5866
5867 PR mi/15806
5868 * utils.c (printchar): Don't escape at all if quoter is NUL.
5869 Update function documentation to clarify effect of parameter
5870 QUOTER.
5871 * remote.c (escape_buffer): Pass '\\' as the quoter to
5872 fputstrn_unfiltered.
5873 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5874 generate the output.
5875 (mi_solib_unloaded): Same.
5876
270c9937
JB
58772014-06-05 Joel Brobecker <brobecker@adacore.com>
5878
5879 * development.sh: Delete.
5880 * Makefile.in (config.status): Adjust dependency on development.sh.
5881 * configure.ac: Adjust development.sh source call.
5882 * configure: Regenerate.
5883
16f691fb
DE
58842014-06-04 Doug Evans <xdje42@gmail.com>
5885
5886 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5887 is_scheme_bkpt, spec.
5888 (bpscm_make_breakpoint_smob): Initialize new members.
5889 (gdbscm_create_breakpoint_x): Split into two ...
5890 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5891 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5892 (scheme_function breakpoint_functions): Update.
5893 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5894 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5895 register-breakpoint!.
5896
ef7cab6b
JB
58972014-06-04 Joel Brobecker <brobecker@adacorer.com>
5898
5899 PR server/17023
5900 * mem-break.c (z_type_supported): Return zero if
5901 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5902
012370f6
TT
59032014-06-04 Tom Tromey <tromey@redhat.com>
5904
5905 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5906 value_from_contents_and_address_unresolved.
5907 (ada_template_to_fixed_record_type_1): Likewise.
5908 (ada_which_variant_applies): Likewise.
5909 * value.h (value_from_contents_and_address_unresolved): Declare.
5910 * value.c (value_from_contents_and_address_unresolved): New
5911 function.
5912 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5913 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5914 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5915
92e2a17f
TT
59162014-06-04 Tom Tromey <tromey@redhat.com>
5917
5918 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5919
c0939df1
TT
59202014-06-04 Tom Tromey <tromey@redhat.com>
5921
5922 * procfs.c (procfs_attach): Make "args" const.
5923 * windows-nat.c (windows_attach): Make "args" const.
5924 * nto-procfs.c (procfs_attach): Make "args" const.
5925 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5926 * go32-nat.c (go32_attach): Make "args" const.
5927 * gnu-nat.c (gnu_attach): Make "args" const.
5928 * darwin-nat.c (darwin_attach): Make "args" const.
5929 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5930 * linux-nat.c (linux_nat_attach): Make "args" const.
5931 * remote.c (extended_remote_attach_1, extended_remote_attach):
5932 Make "args" const.
5933 * target.h (struct target_ops) <to_attach>: Make "args" const.
5934 (find_default_attach): Likewise.
5935 * utils.c (parse_pid_to_attach): Make "args" const.
5936 * utils.h (parse_pid_to_attach): Update.
5937
8eaff7cd
TT
59382014-06-04 Tom Tromey <tromey@redhat.com>
5939
5940 * target-delegates.c: Rebuild.
5941 * target.c (default_thread_address_space): New function.
5942 (target_thread_address_space): Simplify.
5943 * target.h (struct target_ops) <to_thread_address_space>: Add
5944 TARGET_DEFAULT_FUNC.
5945
1913f160
DE
59462014-06-04 Doug Evans <xdje42@gmail.com>
5947
5948 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5949
70ad5bff
MM
59502014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5951
5952 * record-btrace.c: Include event-loop.h and inf-loop.h.
5953 (record_btrace_resume_exec_dir)
5954 (record_btrace_async_inferior_event_handler)
5955 (record_btrace_handle_async_inferior_event): New.
5956 (record_btrace_open): Create async event handler.
5957 (record_btrace_close): Delete async event handler.
5958 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5959 Mark async event handler.
5960 (record_btrace_execution_direction): New.
5961 (init_record_btrace_ops): Initialize to_execution_direction.
5962
b6210538
DE
59632014-06-03 Doug Evans <xdje42@gmail.com>
5964
5965 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5966 (gdbscm_make_parameter): Ditto.
5967
a5b1fd27
DE
59682014-06-03 Doug Evans <dje@google.com>
5969
5970 * exec.c (exec_close_1): Call clear_section_table instead of
5971 resize_section_table.
5972 (clear_section_table): New function.
5973 (resize_section_table): Make static. Rename arg num_added to
5974 adjustment.
5975 * exec.h (clear_section_table): Declare.
5976 (resize_section_table): Delete.
5977 * progspace.c (release_program_space): Call clear_section_table
5978 instead of resize_section_table.
5979
0c6e92a5
SC
59802014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5981
5982 * NEWS (Python Scripting): Add entry about the new xmethods
5983 feature.
5984
883964a7
SC
59852014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5986
5987 * python/py-xmethods.c: New file.
5988 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5989 (objfpy_dealloc): XDECREF on the new xmethods field.
5990 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5991 field.
5992 (objfpy_get_xmethods): New function.
5993 (objfile_getset): New entry 'xmethods'.
5994 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5995 (pspy_dealloc): XDECREF on the new xmethods field.
5996 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5997 field.
5998 (pspy_get_xmethods): New function.
5999 (pspace_getset): New entry 'xmethods'.
6000 * python/python-internal.h: Add declarations for new functions.
6001 * python/python.c (_initialize_python): Invoke
6002 gdbpy_initialize_xmethods.
6003 * python/lib/gdb/__init__.py (xmethods): New
6004 attribute.
6005 * python/lib/gdb/xmethod.py: New file.
6006 * python/lib/gdb/command/xmethods.py: New file.
6007
58992dc5
SC
60082014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6009
6010 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6011 best match method returned by find_overload_match is an xmethod.
6012 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6013 the best matching operator returned by find_overload_match is an
6014 xmethod.
6015 * valops.c: #include "extension.h".
6016 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6017 Return void. The list of matching source methods is returned in
6018 "fn_list" and a vector of matching debug method workers is
6019 returned in "xm_worker_vec". Update all callers.
6020 (value_find_oload_method_list): Likewise.
6021 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6022 non-NULL, then the index of the best matching method in this
6023 vector is returned. Update all callers.
6024 (find_overload_match): Include xmethods while performing overload
6025 resolution.
6026
e81e7f5e
SC
60272014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6028
6029 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6030 * extension-priv.h (struct extension_language_ops): Add the
6031 xmethod interface.
6032 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6033 get_matching_xmethod_workers, get_xmethod_argtypes,
6034 invoke_xmethod, free_xmethod_worker,
6035 free_xmethod_worker_vec): New functions.
6036 * extension.h: #include "common/vec.h".
6037 New function declarations.
6038 (struct xmethod_worker): New struct.
6039 (VEC (xmethod_worker_ptr)): New vector type.
6040 (xmethod_worker_ptr): New typedef.
6041 (xmethod_worker_vec): Likewise.
6042 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6043 builtin_type.
6044 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6045 (struct builtin_type): New field "xmethod".
6046 * valarith.c (value_ptradd): Assert that the value argument is not
6047 lval_xcallable.
6048 * valops.c (value_must_coerce_to_target): Return 0 for
6049 lval_xcallable values.
6050 * value.c (struct value): New field XM_WORKER in the field
6051 LOCATION.
6052 (value_address, value_raw_address): Return 0 for lval_xcallable
6053 values.
6054 (set_value_address): Assert that the value is not an
6055 lval_xcallable.
6056 (value_free): Free the associated xmethod worker when freeing
6057 lval_xcallable values.
6058 (set_value_component_location): Assert that the WHOLE value is not
6059 lval_xcallable.
6060 (value_of_xmethod, call_xmethod): New functions.
6061 * value.h: Declare "struct xmethod_worker".
6062 Declare new functions value_of_xmethod, call_xmethod.
6063
ef370185
JB
60642014-06-03 Joel Brobecker <brobecker@adacore.com>
6065 Pedro Alves <palves@redhat.com>
6066
6067 PR breakpoints/17000
6068 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6069 New function, extracted from software_breakpoint_inserted_here_p.
6070 (software_breakpoint_inserted_here_p): Replace factored out code
6071 by call to find_non_raw_software_breakpoint_inserted_here.
6072 (bp_target_info_copy_insertion_state): New function.
6073 (bkpt_insert_location): Handle the case of a single-step
6074 breakpoint already inserted at the same address.
6075 (bkpt_remove_location): Handle the case of a single-step
6076 breakpoint still inserted at the same address.
6077 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6078 breakpoint already inserted at the same address.
6079 (deprecated_remove_raw_breakpoint): Handle the case of a
6080 non-raw breakpoint still inserted at the same address.
6081 (find_single_step_breakpoint): New function, extracted from
6082 single_step_breakpoint_inserted_here_p.
6083 (find_single_step_breakpoint): New function,
6084 factored out from single_step_breakpoint_inserted_here_p.
6085 (single_step_breakpoint_inserted_here_p): Reimplement.
6086
1e2ccb61
BM
60872014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6088
6089 Pushed by Joel Brobecker <brobecker@adacore.com>
6090 * source.c (show_substitute_path_command): Fix display of matching
6091 substitution rules.
6092
d3448d85
GB
60932014-06-03 Gary Benson <gbenson@redhat.com>
6094
6095 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6096
06eb1586
DE
60972014-06-02 Doug Evans <xdje42@gmail.com>
6098
6099 Add parameter support for Guile.
6100 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6101 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6102 (scm-param.o): New rule.
6103 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6104 (gdbscm_misc_error): Declare.
6105 (gdbscm_canonicalize_command_name): Declare.
6106 (gdbscm_scm_to_host_string): Declare.
6107 (gdbscm_scm_from_host_string): Declare.
6108 (gdbscm_initialize_parameters): Declare.
6109 * guile/guile.c (initialize_gdb_module): Call
6110 gdbscm_initialize_parameters.
6111 * guile/lib/gdb.scm: Export parameter symbols.
6112 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6113 cmdscm_canonicalize_name and made public. All callers updated.
6114 * guile/scm-exception.c (gdbscm_misc_error): New function.
6115 * guile/scm-param.c: New file.
6116 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6117 (gdbscm_scm_to_host_string): New function.
6118 (gdbscm_scm_from_host_string): New function.
6119 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6120
e698b8c4
DE
61212014-06-02 Doug Evans <xdje42@gmail.com>
6122
6123 Add command support for Guile.
6124 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6125 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6126 (scm-cmd.o): New rule.
6127 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6128 (gdbscm_user_error_p): Declare.
6129 (gdbscm_parse_command_name): Declare.
6130 (gdbscm_valid_command_class_p): Declare.
6131 (gdbscm_initialize_commands): Declare.
6132 * guile/guile.c (initialize_gdb_module): Call
6133 gdbscm_initialize_commands.
6134 * guile/lib/gdb.scm: Export command symbols.
6135 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6136 (throw-user-error): New function.
6137 * guile/scm-cmd.c: New file.
6138 * guile/scm-exception.c (user_error_symbol): New static global.
6139 (gdbscm_user_error_p): New function.
6140 (gdbscm_initialize_exceptions): Set user_error_symbol.
6141 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6142
fb1f94b0
PM
61432014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6144
6145 * top.c (command_loop): Handle comments here...
6146 (command_line_input): ... not here.
6147
ded03782
DE
61482014-06-02 Doug Evans <xdje42@gmail.com>
6149
6150 Add progspace support for Guile.
6151 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6152 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6153 (scm-progspace.o): New rule.
6154 * guile/guile-internal.h (pspace_smob): New typedef.
6155 (psscm_pspace_smob_pretty_printers): Declare.
6156 (psscm_pspace_smob_from_pspace): Declare.
6157 (psscm_scm_from_pspace): Declare.
6158 * guile/guile.c (initialize_gdb_module): Call
6159 gdbscm_initialize_pspaces.
6160 * guile/lib/gdb.scm: Export progspace symbols.
6161 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6162 support.
6163 (append-pretty-printer!): Ditto.
6164 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6165 Implement.
6166 * guile/scm-progspace.c: New file.
6167
397998fc
AM
61682014-06-03 Alan Modra <amodra@gmail.com>
6169
6170 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6171 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6172
6aa5f3a6
DE
61732014-06-02 Doug Evans <dje@google.com>
6174
6175 Add support for skeletonless type units.
6176 * dwarf2read.c (struct dwarf2_per_objfile): New member
6177 n_allocated_type_units.
6178 (struct dwarf2_per_objfile) <tu_stats>: New member
6179 nr_all_type_units_reallocs.
6180 (create_signatured_type_table_from_index): Initialize
6181 n_allocated_type_units
6182 (create_all_type_units): Ditto.
6183 (add_type_unit): Move up in file. New arg slot.
6184 All callers updated. Increase space for all_type_units more
6185 efficiently.
6186 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6187 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6188 (lookup_dwp_signatured_type): Ditto.
6189 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6190 All callers updated.
6191 (build_type_psymtabs_1): Leave type_unit_groups as
6192 NULL if no TUs present.
6193 (print_tu_stats): New function.
6194 (process_skeletonless_type_unit): New function.
6195 (process_dwo_file_for_skeletonless_type_units): New
6196 function.
6197 (process_skeletonless_type_units): New function.
6198 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6199 Call print tu_stats if debugging enabled.
6200
41fac0cf
PA
62012014-06-02 Pedro Alves <palves@redhat.com>
6202
6203 * breakpoint.c (build_target_command_list): Don't build a command
6204 list if we have any duplicate location that isn't a dprintf.
6205
cd1608cc
PA
62062014-06-02 Pedro Alves <palves@redhat.com>
6207
6208 * breakpoint.c (dprintf_breakpoint_hit): New function.
6209 (initialize_breakpoint_ops): Install it as dprintf's
6210 breakpoint_hit method.
6211
486ef3b9
JB
62122014-06-02 Joel Brobecker <brobecker@adacore.com>
6213
6214 * source.c (substitute_path_rule_matches): Simplify using
6215 filename_ncmp instead of FILENAME_CMP.
6216
230cd560
JB
62172014-06-02 Joel Brobecker <brobecker@adacore.com>
6218
6219 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6220
16954d5d
LC
62212014-06-01 Ludovic Courtès <ludo@gnu.org>
6222
6223 * configure.ac: When Guile is available, check for the
6224 availability of 'scm_new_smob'.
6225 * configure, config.h.in: Regenerate.
6226 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6227 function.
6228
53e8a631
AB
62292014-05-30 Andrew Burgess <aburgess@broadcom.com>
6230
6231 * frame.c (struct frame_info): Add stop_string field.
6232 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6233 (get_prev_frame_always): Old content moved into
6234 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6235 TRY_CATCH, handle MEMORY_ERROR exceptions.
6236 (frame_stop_reason_string): New function definition.
6237 * frame.h (unwind_stop_reason_to_string): Extend comment to
6238 mention frame_stop_reason_string.
6239 (frame_stop_reason_string): New function declaration.
6240 * stack.c (frame_info): Switch to frame_stop_reason_string.
6241 (backtrace_command_1): Switch to frame_stop_reason_string.
6242 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6243 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6244 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6245
70e38b8e
AB
62462014-05-30 Andrew Burgess <aburgess@broadcom.com>
6247
6248 * frame.c (frame_stop_reason_string): Rename to ...
6249 (unwind_stop_reason_to_string): this.
6250 * frame.h (frame_stop_reason_string): Rename to ...
6251 (unwind_stop_reason_to_string): this.
6252 * stack.c (frame_info): Update call to frame_stop_reason_string.
6253 (backtrace_command_1): Likewise.
6254 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6255 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6256
938f0e2f
AB
62572014-05-30 Andrew Burgess <aburgess@broadcom.com>
6258
6259 * frame.c (remove_prev_frame): New function.
6260 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6261 remove_prev_frame.
6262
a09dd441
PA
62632014-05-29 Pedro Alves <palves@redhat.com>
6264
6265 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6266 and make it const. When a single-step decays to a continue,
6267 clear 'step', not 'hw_step'. Pass whether the caller wanted
6268 to step to user_visible_resume_ptid, not what we ask the
6269 target to do.
6270
bdc36728
PA
62712014-05-29 Pedro Alves <palves@redhat.com>
6272
6273 * infrun.c (process_event_stop_test, handle_step_into_function)
6274 (handle_step_into_function_backward): Adjust.
6275 Don't set the even thread's stop_step and call stop_waiting before
6276 calling end_stepping_range. Instead do that ...
6277 (end_stepping_range): ... here. Take an ecs pointer parameter.
6278
22bcd14b
PA
62792014-05-29 Pedro Alves <palves@redhat.com>
6280
6281 * infrun.c (stop_stepping): Rename to ...
6282 (stop_waiting): ... this.
6283 (proceed): Update comment.
6284 (process_event_stop_test, handle_inferior_event)
6285 (handle_signal_stop, handle_step_into_function)
6286 (handle_step_into_function_backward): Update.
6287
4ae57c05
PA
62882014-05-29 Pedro Alves <palves@redhat.com>
6289
6290 * infcall.c (run_inferior_call): Don't check whether the current
6291 thread is running after the proceed call.
6292
329ea579
PA
62932014-05-29 Pedro Alves <palves@redhat.com>
6294 Tom Tromey <tromey@redhat.com>
6295
6296 * NEWS: Mention "maint set target-async", "set mi-async", and that
6297 background execution commands are now always available.
6298 * target.h (target_async_permitted): Update comment.
6299 * target.c (target_async_permitted, target_async_permitted_1):
6300 Default to 1.
6301 (set_target_async_command): Rename to ...
6302 (maint_set_target_async_command): ... this.
6303 (show_target_async_command): Rename to ...
6304 (maint_show_target_async_command): ... this.
6305 (_initialize_target): Adjust.
6306 * infcmd.c (prepare_execution_command): Make extern.
6307 * inferior.h (prepare_execution_command): Declare.
6308 * infrun.c (set_observer_mode): Leave target async alone.
6309 * mi/mi-interp.c (mi_interpreter_init): Install
6310 mi_on_sync_execution_done as sync_execution_done observer.
6311 (mi_on_sync_execution_done): New function.
6312 (mi_execute_command_input_handler): Don't print the prompt if we
6313 just started a synchronous command with an async target.
6314 (mi_on_resume): Check sync_execution before printing prompt.
6315 * mi/mi-main.h (mi_async_p): Declare.
6316 * mi/mi-main.c: Include gdbcmd.h.
6317 (mi_async_p): New function.
6318 (mi_async, mi_async_1): New globals.
6319 (set_mi_async_command, show_mi_async_command, mi_async): New
6320 functions.
6321 (exec_continue): Call prepare_execution_command.
6322 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6323 (mi_execute_async_cli_command): Use mi_async_p.
6324 (_initialize_mi_main): Install "set mi-async". Make
6325 "target-async" a deprecated alias.
6326
92bcb5f9
PA
63272014-05-29 Pedro Alves <palves@redhat.com>
6328
6329 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6330 (_initialize_cli_interp): Adjust.
6331 * event-loop.c: Include "observer.h".
6332 (start_event_loop): Notify 'command_error' observers instead of
6333 calling display_gdb_prompt. Remove FIXME comment.
6334 * event-top.c (display_gdb_prompt): Remove call into the
6335 interpreters.
6336 * inf-loop.c: Include "observer.h".
6337 (inferior_event_handler): Notify 'command_error' observers instead
6338 of calling display_gdb_prompt.
6339 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6340 observers instead of calling display_gdb_prompt.
6341 * interps.c (interp_set): Don't call display_gdb_prompt.
6342 (current_interp_display_prompt_p): Delete.
6343 * interps.h (interp_prompt_p): Delete declaration.
6344 (interp_prompt_p_ftype): Delete.
6345 (struct interp_procs) <prompt_proc_p>: Delete field.
6346 (current_interp_display_prompt_p): Delete declaration.
6347 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6348 (_initialize_mi_interp): Adjust.
6349 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6350 'command_error' observers.
6351 (tui_on_sync_execution_done, tui_on_command_error): New
6352 functions.
6353 (tui_display_prompt_p): Delete.
6354 (_initialize_tui_interp): Adjust.
6355
fd664c91
PA
63562014-05-29 Pedro Alves <palves@redhat.com>
6357
6358 PR gdb/13860
6359 * cli/cli-interp.c: Include infrun.h and observer.h.
6360 (cli_uiout, cli_interp): New globals.
6361 (cli_on_signal_received, cli_on_end_stepping_range)
6362 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6363 functions.
6364 (cli_interpreter_init): Install them as 'end_stepping_range',
6365 'signal_received' 'signal_exited', 'exited' and 'no_history'
6366 observers.
6367 (_initialize_cli_interp): Remove cli_interp local.
6368 * infrun.c (handle_inferior_event): Call the several stop reason
6369 observers instead of printing the stop reason directly.
6370 (end_stepping_range): New function.
6371 (print_end_stepping_range_reason, print_signal_exited_reason)
6372 (print_exited_reason, print_signal_received_reason)
6373 (print_no_history_reason): Make static, and add an uiout
6374 parameter. Print to that instead of to CURRENT_UIOUT.
6375 * infrun.h (print_end_stepping_range_reason)
6376 (print_signal_exited_reason, print_exited_reason)
6377 (print_signal_received_reason print_no_history_reason): New
6378 declarations.
6379 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6380 'mi_uiout'.
6381 <cli_uiout>: New field.
6382 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6383 uiout for CLI output. Install 'signal_received',
6384 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6385 observers.
6386 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6387 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6388 (mi_on_no_history): New functions.
6389 (ui_out_free_cleanup): Delete function.
6390 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6391 instead use the one already stored in the MI interpreter data.
6392 (mi_ui_out): Adjust.
6393 * tui/tui-interp.c: Include infrun.h and observer.h.
6394 (tui_interp): New global.
6395 (tui_on_signal_received, tui_on_end_stepping_range)
6396 (tui_on_signal_exited, tui_on_exited)
6397 (tui_on_no_history): New functions.
6398 (tui_init): Install them as 'end_stepping_range',
6399 'signal_received' 'signal_exited', 'exited' and 'no_history'
6400 observers.
6401 (_initialize_tui_interp): Delete tui_interp local.
6402
8817a6f2
PA
64032014-05-29 Pedro Alves <palves@redhat.com>
6404
6405 PR gdb/15713
6406 * linux-nat.c (linux_nat_resume_callback): Rename the second
6407 parameter to 'except'. Skip LP if it points to EXCEPT.
6408 (linux_nat_resume): Don't mark the event lwp as not stopped
6409 before resuming sibling lwps. Instead ask
6410 linux_nat_resume_callback to skip the event lwp. Mark it as not
6411 stopped after actually resuming it.
6412 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6413 resuming it.
6414 (wait_lwp): Mark the lwp as stopped here.
6415 (stop_wait_callback): Mark the lwp as not stopped right after
6416 resuming it. Don't mark lwps as stopped here.
6417 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6418 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6419
251bde03
PA
64202014-05-29 Pedro Alves <palves@redhat.com>
6421
6422 PR PR15693
6423 * infrun.c (resume): Determine how much to resume depending on
6424 whether the caller wanted a step, not whether we can hardware step
6425 the target. Mark all threads that we intend to run as running,
6426 unless we're calling an inferior function.
6427 (normal_stop): If the thread is running an infcall, don't finish
6428 thread state.
6429 * target.c (target_resume): Don't mark threads as running here.
6430
7f3c0343
JB
64312014-05-28 Joel Brobecker <brobecker@adacore.com>
6432
6433 * serial.c (_initialize_serial): Remove support for
6434 the "set remotebaud" and "show remotebaud" commands.
6435 * NEWS: Add entry documenting the removal of that command.
6436
ee34b3f9
YQ
64372014-05-28 Yao Qi <yao@codesourcery.com>
6438
6439 * charset.c: Fix typo in comments.
6440
add6c04d
GB
64412014-05-27 Gary Benson <gbenson@redhat.com>
6442
6443 * utils.c (internal_vproblem): Prompt for a bug report.
6444
92c48fc5
AW
64452014-05-26 Andy Wingo <wingo@igalia.com>
6446
6447 * guile/scm-arch.c (arscm_mark_arch_smob):
6448 * guile/scm-block.c (bkscm_mark_block_smob)
6449 (bkscm_mark_block_syms_progress_smob):
6450 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6451 * guile/scm-exception.c (exscm_mark_exception_smob):
6452 * guile/scm-frame.c (frscm_mark_frame_smob):
6453 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6454 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6455 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6456 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6457 (ppscm_mark_pretty_printer_worker_smob):
6458 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6459 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6460 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6461 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6462 mark functions.
6463 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6464 function.
6465
b2715b27
AW
64662014-05-26 Andy Wingo <wingo@igalia.com>
6467 Doug Evans <xdje42@gmail.com>
6468
6469 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6470 empty_base_class. All uses updated.
6471 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6472 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6473 Adapt all callers.
6474 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6475 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6476 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6477 (gdbscm_gsmob_has_property_p, add_property_name)
6478 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6479 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6480 (gdb-object-has-property?, gdb-object-properties): Remove.
6481 (gdb-object-kind): Renamed from gsmob-kind.
6482
214ab2da
AW
64832014-05-26 Andy Wingo <wingo@igalia.com>
6484
6485 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6486 * configure: Regenerate.
6487
589fdceb
MM
64882014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6489
6490 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6491
67b5c0c1
MM
64922014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6493
6494 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6495 (replay_memory_access_read_only, replay_memory_access_read_write)
6496 (replay_memory_access_types, replay_memory_access)
6497 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6498 (cmd_set_record_btrace, cmd_show_record_btrace)
6499 (cmd_show_replay_memory_access): New.
6500 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6501 (record_btrace_remove_breakpoint): Replace
6502 record_btrace_allow_memory_access with replay_memory_access.
6503 (_initialize_record_btrace): Add commands.
6504 * NEWS: Announce it.
6505
036cd381
RR
65062014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6507
6508 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6509
c77c1e42
RR
65102014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6511
6512 * MAINTAINERS (Write After Approval): Move self back from
6513 paper trail.
6514
45741a9c
PA
65152014-05-22 Pedro Alves <palves@redhat.com>
6516
6517 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6518 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6519 (disable_randomization, enum exec_direction_kind)
6520 (execution_direction, stop_registers, start_remote)
6521 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6522 (wait_for_inferior, normal_stop, get_last_target_status)
6523 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6524 (insert_step_resume_breakpoint_at_sal)
6525 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6526 (set_step_info, print_stop_event, signal_stop_state)
6527 (signal_print_state, signal_pass_state, signal_stop_update)
6528 (signal_print_update, signal_pass_update)
6529 (update_signals_program_target, clear_exit_convenience_vars)
6530 (displaced_step_dump_bytes, update_observer_mode)
6531 (signal_catch_update, gdb_signal_from_command): Move
6532 declarations ...
6533 * infrun.h: ... to this new file.
6534 * amd64-tdep.c: Include infrun.h.
6535 * annotate.c: Include infrun.h.
6536 * arch-utils.c: Include infrun.h.
6537 * arm-linux-tdep.c: Include infrun.h.
6538 * arm-tdep.c: Include infrun.h.
6539 * break-catch-sig.c: Include infrun.h.
6540 * breakpoint.c: Include infrun.h.
6541 * common/agent.c: Include infrun.h instead of inferior.h.
6542 * corelow.c: Include infrun.h.
6543 * event-top.c: Include infrun.h.
6544 * go32-nat.c: Include infrun.h.
6545 * i386-tdep.c: Include infrun.h.
6546 * inf-loop.c: Include infrun.h.
6547 * infcall.c: Include infrun.h.
6548 * infcmd.c: Include infrun.h.
6549 * infrun.c: Include infrun.h.
6550 * linux-fork.c: Include infrun.h.
6551 * linux-nat.c: Include infrun.h.
6552 * linux-thread-db.c: Include infrun.h.
6553 * monitor.c: Include infrun.h.
6554 * nto-tdep.c: Include infrun.h.
6555 * procfs.c: Include infrun.h.
6556 * record-btrace.c: Include infrun.h.
6557 * record-full.c: Include infrun.h.
6558 * remote-m32r-sdi.c: Include infrun.h.
6559 * remote-mips.c: Include infrun.h.
6560 * remote-notif.c: Include infrun.h.
6561 * remote-sim.c: Include infrun.h.
6562 * remote.c: Include infrun.h.
6563 * reverse.c: Include infrun.h.
6564 * rs6000-tdep.c: Include infrun.h.
6565 * s390-linux-tdep.c: Include infrun.h.
6566 * solib-irix.c: Include infrun.h.
6567 * solib-osf.c: Include infrun.h.
6568 * solib-svr4.c: Include infrun.h.
6569 * target.c: Include infrun.h.
6570 * top.c: Include infrun.h.
6571 * windows-nat.c: Include infrun.h.
6572 * mi/mi-interp.c: Include infrun.h.
6573 * mi/mi-main.c: Include infrun.h.
6574 * python/py-threadevent.c: Include infrun.h.
6575
98eb56a4
PA
65762014-05-22 Pedro Alves <palves@redhat.com>
6577
6578 * infrun.c (handle_inferior_event): Store the exit code for
6579 --return-child-result here, instead of ...
6580 (print_exited_reason): ... here.
6581
17b2616c
PA
65822014-05-21 Pedro Alves <palves@redhat.com>
6583
6584 PR gdb/13860
6585 * gdbthread.h (struct thread_control_state): New field
6586 `command_interp'.
6587 * infrun.c (follow_fork): Copy the new thread control field to the
6588 child fork thread.
6589 (clear_proceed_status_thread): Clear the new thread control field.
6590 (proceed): Set the new thread control field.
6591 * interps.h (command_interp): Declare.
6592 * interps.c (command_interpreter): New global.
6593 (command_interp): New function.
6594 (interp_exec): Set `command_interpreter' while here.
6595 * cli-out.c (cli_uiout_dtor): New function.
6596 (cli_ui_out_impl): Install it.
6597 * mi/mi-interp.c: Include cli-out.h.
6598 (mi_cmd_interpreter_exec): Add comment.
6599 (restore_current_uiout_cleanup): New function.
6600 (ui_out_free_cleanup): New function.
6601 (mi_on_normal_stop): If finishing an execution command started by
6602 a CLI command, or any kind of breakpoint-like event triggered,
6603 print the stop event to the output (CLI) stream.
6604 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6605
5166082f
PA
66062014-05-21 Pedro Alves <palves@redhat.com>
6607
6608 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6609 current source line having changed.
6610 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6611 * infrun.c (normal_stop): Adjust call to
6612 set_current_sal_from_frame.
6613 * source.c (clear_lines_listed_range): New function.
6614 (set_current_source_symtab_and_line, identify_source_line): Clear
6615 the lines listed range.
6616 (line_info): Handle the first "info line" after the current source
6617 line having changed.
6618 * stack.c (print_stack_frame): Remove center handling.
6619 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6620 center sal.line.
6621
c1ee2fb3
PA
66222014-05-21 Pedro Alves <palves@redhat.com>
6623
6624 * inf-child.c (inf_child_mourn_inferior): New function.
6625 * inf-child.h (inf_child_mourn_inferior): New declaration.
6626 * darwin-nat.c (darwin_mourn_inferior): Use
6627 inf_child_mourn_inferior.
6628 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6629 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6630 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6631 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6632 * windows-nat.c (windows_mourn_inferior): Likewise.
6633
5c6d4fb2
DE
66342014-05-21 Doug Evans <xdje42@gmail.com>
6635
250748cb 6636 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 6637
4a2722c5
DE
66382014-05-21 Doug Evans <xdje42@gmail.com>
6639
17292b30 6640 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
6641 (gdbscm_out_of_range_error): Ditto.
6642 (gdbscm_memory_error): Ditto.
250748cb
DE
6643 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6644 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
6645 (gdbscm_out_of_range_error): Update.
6646 (gdbscm_memory_error): Update.
6647 (gdbscm_scm_to_target_string_unsafe): Delete.
6648
6a3cb8e8
PA
66492014-05-21 Pedro Alves <palves@redhat.com>
6650
6651 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6652 globals.
6653 (inf_child_open_target): New function.
6654 (inf_child_open): Use inf_child_open_target to push the target
6655 instead of erroring out.
6656 (inf_child_disconnect, inf_child_close)
6657 (inf_child_maybe_unpush_target): New functions.
6658 (inf_child_target): Install inf_child_disconnect and
6659 inf_child_close. Store a pointer to the returned object.
6660 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6661 declarations.
6662 * target.c (auto_connect_native_target): New global.
6663 (show_default_run_target): New function.
6664 (find_default_run_target): Return NULL if automatically connecting
6665 to the native target is disabled.
6666 (_initialize_target): Install set/show auto-connect-native-target.
6667 * NEWS: Mention "set auto-connect-native-target", and "target
6668 native".
6669 * linux-nat.c (super_close): New global.
6670 (linux_nat_close): Call super_close.
6671 (linux_nat_add_target): Store a pointer to the base class's
6672 to_close method.
6673 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6674 inf_child_maybe_unpush.
6675 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6676 already pushed.
6677 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6678 the inferior. Use inf_child_maybe_unpush_target.
6679 (inf_ttrace_attach): Don't push the target if it is already
6680 pushed.
6681 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6682 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6683 after mourning the inferior. Use inf_child_maybe_unpush_target.
6684 (darwin_attach_pid): Don't push the target if it is already
6685 pushed.
6686 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6687 mourning the inferior. Use inf_child_maybe_unpush_target.
6688 (gnu_detach): Use inf_child_maybe_unpush_target.
6689 * go32-nat.c (go32_create_inferior): Don't push the target if it
6690 is already pushed.
6691 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6692 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6693 (procfs_open): Rename to ...
6694 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6695 comments. Can target_preopen before changing node. Call
6696 inf_child_open_target to push the target explicitly.
6697 (procfs_attach): Don't push the target if it is already pushed.
6698 (procfs_detach): Use inf_child_maybe_unpush_target.
6699 (procfs_create_inferior): Don't push the target if it is already
6700 pushed.
6701 (nto_native_ops): New global.
6702 (procfs_open): Reimplement.
6703 (procfs_native_open): New function.
6704 (init_procfs_targets): Install procfs_native_open as to_open of
6705 "target native". Store a pointer to the "native" target in
6706 nto_native_ops.
6707 * procfs.c (procfs_attach): Don't push the target if it is already
6708 pushed.
6709 (procfs_detach): Use inf_child_maybe_unpush_target.
6710 (procfs_mourn_inferior): Only unpush the target after mourning the
6711 inferior. Use inf_child_maybe_unpush_target.
6712 (procfs_init_inferior): Don't push the target if it is already
6713 pushed.
6714 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6715 if it is already pushed.
6716
930ee1b1
PA
67172014-05-21 Pedro Alves <palves@redhat.com>
6718
6719 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6720 and "procfs" targets are now called "native" instead.
6721
1f5d1b13
PA
67222014-05-21 Pedro Alves <palves@redhat.com>
6723
6724 * go32-nat.c (go32_open): Delete.
6725 (go32_target): Don't override the to_open method.
6726
132f8e03
PA
67272014-05-21 Pedro Alves <palves@redhat.com>
6728
6729 * nto-procfs.c (procfs_can_run): New function.
6730 (nto_procfs_ops): New global.
6731 (init_procfs_targets): New, based on procfs_target. Install
6732 "target native" in addition to "target procfs".
6733 (_initialize_procfs): Call init_procfs_targets instead of adding
6734 the target here.
6735
03c136c3
PA
67362014-05-21 Pedro Alves <palves@redhat.com>
6737
6738 * windows-nat.c (windows_target): Don't override to_shortname,
6739 to_longname or to_doc.
6740
a635d0f3
PA
67412014-05-21 Pedro Alves <palves@redhat.com>
6742
6743 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6744 to_doc.
6745
4f9b5133
PA
67462014-05-21 Pedro Alves <palves@redhat.com>
6747
6748 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6749 to_shortname, to_longname or to_doc.
6750
bc85afde
PA
67512014-05-21 Pedro Alves <palves@redhat.com>
6752
6753 * go32-nat.c (go32_target): Don't override to_shortname,
6754 to_longname or to_doc.
6755
4ebfc96e
PA
67562014-05-21 Pedro Alves <palves@redhat.com>
6757
6758 * inf-child.c (inf_child_open): Remove mention of "child".
6759 (inf_child_target): Rename target to "native" instead of "child".
6760
2648dfed
AA
67612014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6762
6763 * Makefile.in (SFILES): Delete "regset.c".
6764 (COMMON_OBS): Delete "regset.o".
6765 * regset.c: Remove.
6766 * regset.h (regset_alloc): Delete prototype.
6767
b13feb94
AA
67682014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6769
6770 * sparc-linux-tdep.c (sparc32_linux_gregset)
6771 (sparc32_linux_fpregset): New static regset structures.
6772 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6773 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6774 'fpregset' fields.
6775 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6776 (sparc64_linux_fpregset): New static regset structures.
6777 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6778 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6779 New static regset structures.
6780 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6781 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6782 New static regset structures.
6783 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6784 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6785 New static regset structures.
6786 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6787 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6788 New static regset structures.
6789 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6790
b4fd25c9
AA
67912014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6792
6793 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6794 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6795 register maps ("regmaps") from "*regset" to "*regmap". Do this
6796 for all regmap types and variables.
6797 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6798 (sparc32_linux_supply_core_gregset)
6799 (sparc32_linux_collect_core_gregset)
6800 (sparc32_linux_supply_core_fpregset)
6801 (sparc32_linux_collect_core_fpregset): Likewise.
6802 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6803 (sparc_gregmap, sparc_fpregmap): ... these.
6804 (sparc_supply_gregset, sparc_collect_gregset)
6805 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6806 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6807 (_initialize_sparc_nat): Rename regmaps.
6808 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6809 (sparc_gregmap, sparc_fpregmap): ... these.
6810 (sparc_supply_gregset, sparc_collect_gregset)
6811 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6812 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6813 Rename macros to...
6814 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6815 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6816 Likewise.
6817 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6818 Rename to...
6819 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6820 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6821 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6822 regmaps.
6823 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6824 (sparc32_bsd_fpregset): Rename to...
6825 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6826 (sparc32_bsd_fpregmap): ... these.
6827 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6828 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6829 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6830 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6831 (struct sparc_gregmap, struct sparc_fpregmap)
6832 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6833 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6834 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6835 (sparc32_supply_regset, sparc32_collect_gregset)
6836 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6837 prototypes.
6838 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6839 (sparc64_linux_ptrace_gregmap): ... this.
6840 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6841 (_initialize_sparc64_linux_nat): Rename regmaps.
6842 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6843 (sparc64_linux_core_gregmap): ... this.
6844 (sparc64_linux_supply_core_gregset)
6845 (sparc64_linux_collect_core_gregset)
6846 (sparc64_linux_supply_core_fpregset)
6847 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6848 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6849 (sparc64_sol2_fpregset): Rename to...
6850 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6851 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6852 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6853 regmaps.
6854 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6855 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6856 (sparc64_bsd_fpregset): Rename to...
6857 (struct sparc_gregmap, sparc64_sol2_gregmap)
6858 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6859 (sparc64_bsd_fpregmap): ... these.
6860 (sparc64_supply_gregset, sparc64_collect_gregset)
6861 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6862 prototypes.
6863 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6864 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6865 (sparc64fbsd_gregmap): ... this.
6866 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6867 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6868 Rename regmaps.
6869 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6870 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6871 (sparc64nbsd_collect_fpregset): Likewise.
6872 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6873 (sparc64nbsd_gregmap): ... this.
6874 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6875 regmaps.
6876 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6877 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6878 (sparc64obsd_gregmap): ... this.
6879 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6880 regmaps.
6881 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6882 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6883 (sparc32nbsd_gregmap): ... this.
6884 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6885 regmaps.
6886
8fea3224
AA
68872014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6888
6889 * score-tdep.c (score7_linux_gregset): New static regset
6890 structure.
6891 (score7_linux_regset_from_core_section): Remove dynamic regset
6892 allocation.
6893 (score_gdbarch_init): Drop allocation of tdep structure.
6894 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6895
24534243
AA
68962014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6897
6898 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6899 regset structures.
6900 (am33_regset_from_core_section): Remove dynamic regset
6901 allocations.
6902
b7195f27
AA
69032014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6904
6905 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6906 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6907 structures.
6908 (mips_linux_regset_from_core_section): Remove dynamic regset
6909 allocations.
6910 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6911 'gregset64', 'fpregset', and 'fpregset64'.
6912 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6913 deleted tdep fields.
6914
ecc37a5a
AA
69152014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6916
6917 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6918 regset structures.
6919 (amd64_regset_from_core_section): Remove dynamic regset
6920 allocations.
6921 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6922 structure.
6923 (amd64obsd_regset_from_core_section): Remove dynamic regset
6924 allocation.
6925 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6926 Likewise.
6927 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6928 x86-common regset supply function.
6929 * i386-tdep.c (i386_collect_gregset): Make static.
6930 (i386_gregset): New global regset structure.
6931 (i386_fpregset, i386_xstateregset): New static regset structures.
6932 (i386_regset_from_core_section): Remove dynamic regset
6933 allocations.
6934 (i386_gdbarch_init): Remove initialization of tdep fields
6935 'gregset', 'fpregset', and 'xstateregset'.
6936 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6937 'fpregset', and 'xstateregset'.
6938 (i386_collect_gregset): Remove prototype.
6939 (i386_gregset): New declaration.
6940 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6941 structure.
6942 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6943 allocation.
6944
b7611c43
AA
69452014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6946
6947 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6948 (arm_linux_vfpregset): New static regset structures.
6949 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6950 regset structures.
6951 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6952 and 'vfpregset' fields.
6953
a069a2bd
AA
69542014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6955
6956 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6957 (aarch64_linux_fpregset): New static regset structures.
6958 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6959 of regset structures.
6960 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6961 'fpregset' fields.
6962
09424cff
AA
69632014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6964
6965 * regset.h (struct regset): Remove gdbarch field.
6966 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6967 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6968 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6969 Likewise.
6970 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6971 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6972 (ppc32_linux_vsxregset): Likewise.
6973 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6974 via the regcache instead of the regset.
6975 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6976 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6977 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6978 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6979 Likewise.
6980
3ca7dae4
AA
69812014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6982
6983 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6984 Constify structures.
6985 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6986 (alphanbsd_aout_gregset): Likewise.
6987 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6988 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6989 Likewise.
6990 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6991 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6992 Likewise.
6993 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6994 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6995 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6996 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6997 * m88k-tdep.c (m88k_gregset): Likewise.
6998 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6999 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7000 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7001 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7002 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7003 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7004 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7005 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7006 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7007 Likewise.
7008 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7009 * sh-tdep.h (sh_corefile_gregset): Likewise.
7010 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7011 * vax-tdep.c (vax_gregset): Likewise.
7012
5876f503
JK
70132014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7014
7015 Fix TLS access for -static -pthread.
7016 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7017 (try_thread_db_load_1): Initialize it.
7018 (thread_db_get_thread_local_address): Call it if LM is zero.
7019 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7020 * target.h (struct target_ops) (to_get_thread_local_address): Add
7021 load_module_addr comment.
7022
0256a6ac
PA
70232014-05-21 Pedro Alves <palves@redhat.com>
7024
7025 * dcache.c (dcache_read_memory_partial): If reading the cache line
7026 fails, fallback to reading just the memory the caller wanted.
7027
227533ac
DE
70282014-05-20 Doug Evans <dje@google.com>
7029
7030 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7031 instead of get_current_arch.
7032
936d2992
PA
70332014-05-20 Pedro Alves <palves@redhat.com>
7034
7035 * NEWS: Mention that compare-sections now works with all targets.
7036
7037 * remote.c (PACKET_qCRC): New enum value.
7038 (remote_verify_memory): Don't send qCRC if the target has no
7039 execution. Use packet_support/packet_ok. If the target doesn't
7040 support the qCRC packet, fallback to a deep memory copy.
7041 (compare_sections_command): Say "target image" instead of "remote
7042 executable".
7043 (_initialize_remote): Add PACKET_qCRC to the list of config
7044 packets that have no associated command. Extend comment.
7045 * target.c (simple_verify_memory, default_verify_memory): New
7046 function.
7047 * target.h (struct target_ops) <to_verify_memory>: Default to
7048 default_verify_memory.
7049 (simple_verify_memory): New declaration.
7050 * target-delegates.c: Regenerate.
7051
e59fa00f
MM
70522014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7053
7054 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7055
f2205de0
HZ
70562014-05-20 Hui Zhu <hui@codesourcery.com>
7057 Yao Qi <yao@codesourcery.com>
7058
7059 PR backtrace/16558
7060 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7061 and change address of sp and pc.
7062
c4e54771
TT
70632014-05-19 Tom Tromey <tromey@redhat.com>
7064
7065 * gdbtypes.c (rank_function): Use XNEWVEC.
7066 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7067
73051182
DE
70682014-05-19 Doug Evans <dje@google.com>
7069
7070 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7071 build_type_unit_groups and moved closer to only caller. Remove
7072 arguments. All references updated. Remove outdated .gdb_index
7073 comment.
7074 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7075 build_type_psymtabs_1.
7076
8832e7e3
DE
70772014-05-19 Doug Evans <dje@google.com>
7078
7079 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7080 n_type_unit_groups, all_type_unit_groups. All uses removed.
7081 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7082 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7083 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7084 (add_type_unit_group_to_table): Delete.
7085
cd8ae15e
DE
70862014-05-19 Doug Evans <dje@google.com>
7087
7088 * eval.c (evaluate_subexp_standard): Add some comments.
7089
08f4850b
DE
70902014-05-17 Doug Evans <xdje42@gmail.com>
7091
7092 * progspace.c (remove_program_space): Delete, unused.
7093 * progspace.h (remove_program_space): Ditto.
7094
bed8455c
DE
70952014-05-17 Doug Evans <xdje42@gmail.com>
7096
7097 * inferior.c (prune_inferiors): Fix comment.
7098 (remove_inferior_command): Call prune_program_spaces.
7099
8d551b02
DE
71002014-05-16 Doug Evans <dje@google.com>
7101
7102 New command line option -D.
7103 * NEWS: Mention it.
7104 * main.c (set_gdb_data_directory): New function.
7105 (captured_main): Recognize -D. Flag error for --data-directory "".
7106 Call set_gdb_data_directory.
7107 (print_gdb_help): Print --data-directory, -D.
7108 * main.h (set_gdb_data_directory): Declare.
7109 * top.c (staged_gdb_datadir): New static global.
7110 (set_gdb_datadir): Call set_gdb_data_directory
7111 (show_gdb_datadir): New function.
7112 (init_main): Update init of data-directory parameter.
7113
18848e28
GF
71142014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7115
7116 Import the "dirfd" gnulib module.
7117 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7118 * gnulib/aclocal.m4: Update.
7119 * gnulib/config.in: Update.
7120 * gnulib/configure: Update.
7121 * gnulib/import/Makefile.am: Update.
7122 * gnulib/import/Makefile.in: Update.
7123 * gnulib/import/dirfd.c: New.
7124 * gnulib/import/m4/dirfd.m4: New.
7125 * gnulib/import/m4/gnulib-cache.m4: Update.
7126 * gnulib/import/m4/gnulib-comp.m4: Update.
7127
95c64f92
YQ
71282014-05-16 Pierre Muller <muller@sourceware.org>
7129 Yao Qi <yao@codesourcery.com>
7130
7131 * valprint.c (print_wchar): Move the code on checking whether
7132 W is a printable wide char to the default branch of switch
7133 statement below. Call wchar_printable instead of gdb_iswprint.
7134
cac395ea
TM
71352014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7136
19679eca 7137 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
7138 ldr.w and ldrd instructions.
7139
83655187
DE
71402014-05-15 Doug Evans <dje@google.com>
7141
7142 * dwarf2read.c (read_structure_type): Delete outdated comments.
7143
dd756689
TT
71442014-05-14 Tom Tromey <tromey@redhat.com>
7145
7146 * macrocmd.c (print_macro_definition): Reindent.
7147
75ddda77
DE
71482014-05-13 Doug Evans <xdje42@gmail.com>
7149
7150 * python/py-cmd.c (cmdpy_completer): Add comment.
7151 (completers): Make const.
7152
b0f16a3e
SM
71532014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7154
7155 * infrun.c (resume): Remove should_resume (unused). Move up
7156 declaration of resume_ptid.
7157
033c3379
TT
71582014-05-13 Tom Tromey <tromey@redhat.com>
7159
7160 * language.h (unop_type_check): Remove.
7161 (binop_type_check): Don't declare.
7162
9b44a3a5
AA
71632014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7164
7165 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7166 call to regcache_raw_collect.
7167
303a33fa
SM
71682014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7169
7170 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7171 mi_console->quote as the quoting character.
7172
196100a0
SM
71732014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7174
7175 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7176
f989a1c8
TT
71772014-04-29 Tom Tromey <tromey@redhat.com>
7178
7179 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7180 "show debug varobj".
7181
9404b58f
KM
71822014-05-07 Kyle McMartin <kyle@redhat.com>
7183
7184 Pushed by Joel Brobecker <brobecker@adacore.com>.
7185 * aarch64-tdep.c (aarch64_software_single_step): New function.
7186 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7187 with aarch64_software_single_step.
7188
5e49ba57
JB
71892014-05-05 Joel Brobecker <brobecker@adacore.com>
7190
7191 GDB 7.7.1 released.
7192
c888a17d
KS
71932014-05-05 Keith Seitz <keiths@redhat.com>
7194
7195 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7196 variable or history value is successfully parsed.
7197
290a839c
YQ
71982014-05-05 Yao Qi <yao@codesourcery.com>
7199 Pedro Alves <palves@redhat.com>
7200
7201 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7202 address of blocks that intersects the requested range. Trim
7203 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7204 sections.
7205 * ctf.c (ctf_xfer_partial): Likewise.
7206
91256dc2
YQ
72072014-05-05 Yao Qi <yao@codesourcery.com>
7208
7209 * printcmd.c (display_command): Remove the check to
7210 target_has_execution.
7211
07284463
MK
72122014-05-03 Mark Kettenis <kettenis@gnu.org>
7213
7214 * ppcobsd-nat.c: Include "obsd-nat.h".
7215 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7216 add_target.
7217 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7218
30a1e6cc
SDJ
72192014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7220
7221 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7222 and 16-bit signed and unsigned arguments. Update comment.
7223 (stap_parse_probe_arguments): Extend code to handle such
7224 arguments. Use warning instead of complaint to notify about
7225 unrecognized bitness.
7226
f33da99a
SDJ
72272014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7228
7229 PR breakpoints/16889
7230 * stap-probe.c (stap_parse_probe_arguments): Simplify
7231 check for non-prefixed probes (i.e., probes whose
7232 arguments do not start with "N@"). Always set the
7233 argument type to a sane value.
7234
95cf3b38
DT
72352014-05-01 David Taylor <dtaylor@emc.com>
7236
7237 * remote.c (compare_sections_command): Add -r option to compare
7238 all loadable read-only sections.
7239
1cfdf534
SC
72402014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7241
7242 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7243 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7244 Update all callers.
7245 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7246 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7247 Remove unused CORE_ADDR argument. Update all callers.
7248
ca4f7f8b
PA
72492014-04-29 Pedro Alves <palves@redhat.com>
7250
7251 * remote.c (struct packet_config) <detect>: Extend comment.
7252 (add_packet_config_cmd): Don't set the config's detect or support
7253 fields here.
7254 (init_all_packet_configs): Also initialize the config's 'detect'
7255 field.
7256 (reset_all_packet_configs_support): New function.
7257 (remote_open_1): Call reset_all_packet_configs_support instead of
7258 init_all_packet_configs.
7259 (_initialize_remote): Initialize all packet configs. Assert that
7260 all packets have an associated command, except a few known
7261 outliers.
7262
11c1ba78
JB
72632014-04-28 Joel Brobecker <brobecker@adacore.com>
7264
7265 * dwarf2read.c (read_subrange_type): Handle dynamic
7266 DW_AT_lower_bound attributes.
7267
8739bc53
JB
72682014-04-28 Joel Brobecker <brobecker@adacore.com>
7269
7270 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7271 dynamic bounds before computing its upper bound.
7272 (ada_discrete_type_low_bound): Same as above with the lower bound.
7273
6f8a3220
JB
72742014-04-28 Joel Brobecker <brobecker@adacore.com>
7275
7276 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7277 range types. Adjust the array handling implementation to
7278 take advantage of this change.
7279 (resolve_dynamic_range): New function, mostly extracted from
7280 resolve_dynamic_bounds.
7281 (resolve_dynamic_array): New function, mostly extracted from
7282 resolve_dynamic_bounds.
7283 (resolve_dynamic_bounds): Delete.
7284 (resolve_dynamic_type): Reimplement. Add handling of
7285 TYPE_CODE_RANGE types.
7286
4d072ce4
JB
72872014-04-28 Joel Brobecker <brobecker@adacore.com>
7288
7289 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7290 handling of parallel ___XA types.
7291
52865325
JB
72922014-04-28 Joel Brobecker <brobecker@adacore.com>
7293
7294 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7295 unnecessary second call to static_unwrap_type.
7296
433e77fa
HZ
72972014-04-27 Hui Zhu <hui@codesourcery.com>
7298
7299 * stack.c (print_frame_info): Call do_gdb_disassembly with
7300 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7301
b51a69ee
DE
73022014-04-26 Doug Evans <xdje42@gmail.com>
7303
7304 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7305
7ae1a6a6
PA
73062014-04-25 Pedro Alves <palves@redhat.com>
7307
7308 PR server/16255
7309 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7310 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7311 and newline from built string.
7312 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7313 (linux_ptrace_attach_fail_reason): ... this.
7314 * linux-nat.c (linux_nat_attach): Adjust to use
7315 linux_ptrace_attach_fail_reason.
7316
4082afcc
PA
73172014-04-25 Pedro Alves <palves@redhat.com>
7318
7319 * remote.c (struct remote_state): Remove multi_process_aware,
7320 non_stop_aware, cond_tracepoints, cond_breakpoints,
7321 breakpoint_commands, fast_tracepoints, static_tracepoints,
7322 install_in_trace, disconnected_tracing,
7323 enable_disable_tracepoints, string_tracing, and
7324 augmented_libraries_svr4_read fields.
7325 (remote_multi_process_p): Move further below in the file.
7326 (struct packet_config): Add comments.
7327 (update_packet_config): Delete function.
7328 (show_packet_config_cmd): Use packet_config_support.
7329 (add_packet_config_cmd): Use NULL as set callback.
7330 (packet_ok): "set remote foo-packet"-style commands no longer
7331 change config->supported -- adjust.
7332 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7333 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7334 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7335 (PACKET_QNonStop, PACKET_multiprocess_feature)
7336 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7337 (PACKET_DisconnectedTracing_feature)
7338 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7339 (set_remote_protocol_packet_cmd): Delete function.
7340 (packet_config_support, packet_support): New functions.
7341 (set_remote_protocol_Z_packet_cmd): Don't call
7342 update_packet_config.
7343 (remote_query_attached, remote_pass_signals)
7344 (remote_program_signals, remote_threads_info)
7345 (remote_threads_extra_info, remote_start_remote): Use
7346 packet_support.
7347 (remote_start_remote): Use packet_config_support and
7348 packet_support.
7349 (init_all_packet_configs): Set all packets to unknown support,
7350 instead of calling update_packet_config.
7351 (remote_check_symbols): Use packet_support.
7352 (remote_supported_packet): Unconditionally set the packet config's
7353 support status.
7354 (remote_multi_process_feature, remote_non_stop_feature)
7355 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7356 (remote_breakpoint_commands_feature)
7357 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7358 (remote_install_in_trace_feature)
7359 (remote_disconnected_tracing_feature)
7360 (remote_enable_disable_tracepoint_feature)
7361 (remote_string_tracing_feature)
7362 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7363 (remote_protocol_features): Adjust to use remote_supported_packet
7364 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7365 "ConditionalTracepoints", "ConditionalBreakpoints",
7366 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7367 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7368 "EnableDisableTracepoints", and "tracenz".
7369 (remote_query_supported): Use packet_support.
7370 (remote_open_1): Adjust.
7371 (extended_remote_attach_1): Use packet_support. Switch on the
7372 result of packet_ok instead of checking whether the packet ended
7373 up disabled.
7374 (remote_vcont_resume): Use packet_support.
7375 (remote_resume, remote_stop_ns, fetch_register_using_p)
7376 (remote_prepare_to_store, store_register_using_P)
7377 (check_binary_download, remote_write_bytes): Use packet_support.
7378 (remote_vkill): Use packet_support. Switch on the result of
7379 packet_ok instead of checking whether the packet ended up
7380 disabled.
7381 (extended_remote_supports_disable_randomization): Use
7382 packet_support.
7383 (extended_remote_run): Switch on the result of packet_ok instead
7384 of checking whether the packet ended up disabled.
7385 (remote_insert_breakpoint, remote_remove_breakpoint)
7386 (remote_insert_watchpoint, remote_remove_watchpoint)
7387 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7388 packet_support.
7389 (remote_search_memory): Use packet_config_support.
7390 (remote_get_thread_local_address, remote_get_tib_address)
7391 (remote_hostio_send_command, remote_can_execute_reverse): Use
7392 packet_support.
7393 (remote_supports_cond_tracepoints)
7394 (remote_supports_cond_breakpoints)
7395 (remote_supports_fast_tracepoints)
7396 (remote_supports_static_tracepoints)
7397 (remote_supports_install_in_trace)
7398 (remote_supports_enable_disable_tracepoint)
7399 (remote_supports_string_tracing)
7400 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7401 the packet config says the feature is enabled or disabled.
7402 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7403 (remote_get_trace_status): Use packet_support.
7404 (remote_set_disconnected_tracing): Adjust to check whether the
7405 feature is enabled with packet_support.
7406 (remote_set_trace_buffer_size, remote_use_agent)
7407 (remote_can_use_agent, remote_supports_btrace): Use
7408 packet_support.
7409 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7410 Use packet_config_support.
7411 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7412 the packet config says the feature is enabled or disabled.
7413 (set_range_stepping): Use packet_support.
7414
bdb52a22
TT
74152014-04-25 Tom Tromey <tromey@redhat.com>
7416
7417 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7418 argument.
7419
e9475ead
SA
74202014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7421
7422 * NEWS: Mention support for C99 variable length arrays.
7423
82eacd52
JB
74242014-04-24 Joel Brobecker <brobecker@adacore.com>
7425
7426 * ada-lang.c (standard_exc): Expand introductory comment.
7427
01f9f808
MS
74282014-04-24 Michael Sturm <michael.sturm@mintel.com>
7429 Walfred Tedeschi <walfred.tedeschi@intel.com>
7430
7431 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7432 AVX512 registers.
7433 (amd64_linux_read_description): Add code to handle AVX512 xstate
7434 mask and return respective tdesc.
7435 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7436 and features/i386/x32-avx512-linux.c.
7437 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7438 (amd64_linux_core_read_description): Add code to handle AVX512
7439 xstate mask and return respective tdesc.
7440 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7441 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7442 calculation.
7443 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7444 (tdesc_amd64_avx512_linux): New prototype.
7445 (tdesc_x32_avx512_linux): Likewise.
7446 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7447 features/i386/x32-avx512.c.
7448 (amd64_ymm_avx512_names): New register names for pseudo
7449 registers YMM16-31.
7450 (amd64_ymmh_avx512_names): New register names for raw registers
7451 YMMH16-31.
7452 (amd64_k_names): New register names for K registers.
7453 (amd64_zmmh_names): New register names for ZMM raw registers.
7454 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7455 (amd64_xmm_avx512_names): New register names for XMM16-31
7456 registers.
7457 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7458 registers.
7459 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7460 if feature is present.
7461 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7462 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7463 (AMD64_NUM_REGS): Adjust to new number of registers.
7464 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7465 registers supplied via XSTATE by AVX512 registers.
7466 (i386_linux_read_description): Add case for AVX512.
7467 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7468 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7469 (i386_linux_core_read_description): Add case for AVX512.
7470 (i386_linux_init_abi): Install supported register note section
7471 for AVX512.
7472 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7473 AVX512.
7474 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7475 registers to be number of zmm7h + 1.
7476 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7477 * i386-tdep.c: Include features/i386/i386-avx512.c.
7478 (i386_zmm_names): Add ZMM pseudo register names array.
7479 (i386_zmmh_names): Add ZMM raw register names array.
7480 (i386_k_names): Add K raw register names array.
7481 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7482 registers. AVX512 has 16 more ZMM registers than there are YMM
7483 registers.
7484 (i386_zmmh_regnum_p): Add function to look up register number of
7485 ZMM raw registers.
7486 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7487 (i386_k_regnum_p): Likewise for K raw registers.
7488 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7489 registers added by AVX512.
7490 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7491 registers added by AVX512.
7492 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7493 added by AVX512.
7494 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7495 (i386_pseudo_register_name): Add ZMM pseudo registers.
7496 (i386_zmm_type): Construct and return vector registers type for ZMM
7497 registers.
7498 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7499 ZMM0-31 pseudo registers and K registers.
7500 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7501 and YMM16-31 registers from register cache.
7502 (i386_pseudo_register_write): Add code to write K, ZMM and
7503 YMM16-31 registers.
7504 (i386_register_reggroup_p): Add code to include/exclude AVX512
7505 registers in/from respective register groups.
7506 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7507 registers if feature is present in xcr0.
7508 (i386_gdbarch_init): Add code to initialize AVX512 feature
7509 variables in tdep structure, wire in pseudo registers and call
7510 initialize_tdesc_i386_avx512.
7511 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7512 variables.
7513 (i386_regnum): Add AVX512 registers.
7514 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7515 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7516 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7517 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7518 512 bits wide.
7519 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7520 (i386_ymm_avx512_regnum_p): Likewise.
7521 (i386_k_regnum_p): Likewise.
7522 (i386_zmm_regnum_p): Likewise.
7523 (i386_zmmh_regnum_p): Likewise.
7524 * i387-tdep.c : Update year in copyright notice.
7525 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7526 XSAVE buffer.
7527 (XSAVE_YMM_AVX512_ADDR): New macro.
7528 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7529 XSAVE buffer.
7530 (XSAVE_XMM_AVX512_ADDR): New macro.
7531 (xsave_avx512_k_offset): New table for K register offsets in
7532 XSAVE buffer.
7533 (XSAVE_AVX512_K_ADDR): New macro.
7534 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7535 in XSAVE buffer.
7536 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7537 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7538 buffer.
7539 (i387_collect_xsave): Add code to collect AVX512 registers from
7540 XSAVE buffer.
7541 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7542 of XMM16-31 registers.
7543 (I387_NUM_K_REGS): New define for number of K registers.
7544 (I387_K0_REGNUM): New define for K0 register number.
7545 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7546 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7547 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7548 registers.
7549 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7550 (I387_XMM16_REGNUM): New define for XMM16 register number.
7551 (I387_YMM0_REGNUM): New define for YMM0 register number.
7552 (I387_KEND_REGNUM): New define for last K register number.
7553 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7554 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7555 number.
7556 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7557 number.
7558 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7559 size.
7560 * features/Makefile: Add AVX512 related files.
7561 * features/i386/32bit-avx512.xml: New file.
7562 * features/i386/64bit-avx512.xml: Likewise.
7563 * features/i386/amd64-avx512-linux.c: Likewise.
7564 * features/i386/amd64-avx512-linux.xml: Likewise.
7565 * features/i386/amd64-avx512.c: Likewise.
7566 * features/i386/amd64-avx512.xml: Likewise.
7567 * features/i386/i386-avx512-linux.c: Likewise.
7568 * features/i386/i386-avx512-linux.xml: Likewise.
7569 * features/i386/i386-avx512.c: Likewise.
7570 * features/i386/i386-avx512.xml: Likewise.
7571 * features/i386/x32-avx512-linux.c: Likewise.
7572 * features/i386/x32-avx512-linux.xml: Likewise.
7573 * features/i386/x32-avx512.c: Likewise.
7574 * features/i386/x32-avx512.xml: Likewise.
7575 * regformats/i386/amd64-avx512-linux.dat: New file.
7576 * regformats/i386/amd64-avx512.dat: Likewise.
7577 * regformats/i386/i386-avx512-linux.dat: Likewise.
7578 * regformats/i386/i386-avx512.dat: Likewise.
7579 * regformats/i386/x32-avx512-linux.dat: Likewise.
7580 * regformats/i386/x32-avx512.dat: Likewise.
7581 * NEWS: Add note about new support for AVX512.
7582
7583
08351840
PA
75842014-04-23 Pedro Alves <palves@redhat.com>
7585
7586 * breakpoint.c (insert_bp_location): Tolerate errors if the
7587 breakpoint is set in a user-loaded objfile.
7588 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7589 location is marked shlib_disabled. If the breakpoint is set in a
7590 user-loaded objfile is a GDB-side memory breakpoint, validate it
7591 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7592 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7593 flag.
7594 * mem-break.c (memory_validate_breakpoint): New function.
7595 * objfiles.c (userloaded_objfile_contains_address_p): New
7596 function.
7597 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7598 * target.h (memory_validate_breakpoint): New declaration.
7599
076855f9
PA
76002014-04-23 Pedro Alves <palves@redhat.com>
7601
7602 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7603 the breakpoint is set in a shared library, only suppress
7604 errors for software breakpoints, not hardware breakpoints.
7605
483805cf
PA
76062014-04-22 Pedro Alves <palves@redhat.com>
7607
7608 * infrun.c (schedlock_applies): New function, factored out from
7609 find_thread_needs_step_over.
7610 (find_thread_needs_step_over): Use it.
7611 (switch_back_to_stepped_thread): Always clear trap_expected if the
7612 step over is finished. Return early if scheduler locking applies.
7613 Look for the stepping thread and a potential step-over thread with
7614 a single loop.
7615 (currently_stepping_or_nexting_callback): Delete.
7616
a75fef0e
NC
76172014-04-22 Nick Clifton <nickc@redhat.com>
7618
7619 * NEWS: Mention that ARM sim now supports tracing.
7620
48b6e87e
YQ
76212014-04-22 Yao Qi <yao@codesourcery.com>
7622
7623 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7624 to ...
7625 * tracefile.c (tracefile_fetch_registers): ... it. New
7626 function.
7627 * tracefile.h (tracefile_fetch_registers): Declare.
7628 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7629 tracefile_fetch_registers.
7630
17617f2d
EZ
76312014-04-19 Eli Zaretskii <eliz@gnu.org>
7632
7633 PR gdb/14018
7634 * windows-nat.c (thread_rec): Don't display a warning when
7635 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7636 fails for any reason, set th->suspended to -1, so that we don't
7637 try to resume such a thread. Also, don't return NULL in these
7638 cases, to avoid completely ruin the session due to "PC register is
7639 not available" error.
7640 (do_windows_fetch_inferior_registers): Check errors in
7641 GetThreadContext call.
7642 (windows_continue): Accept an additional argument KILLED; if not
7643 zero, ignore errors in the SetThreadContext call, since the
7644 inferior was killed and is shutting down.
7645 (windows_resume, get_windows_debug_event)
7646 (windows_create_inferior, windows_mourn_inferior)
7647 (windows_kill_inferior): All callers of windows_continue changed
7648 to adjust to its new calling sequence.
7649
5723a6fd
YQ
76502014-04-19 Yao Qi <yao@codesourcery.com>
7651
7652 * ctf.c (ctf_open): Call post_create_inferior.
7653
614d5099
YQ
76542014-04-19 Yao Qi <yao@codesourcery.com>
7655
7656 * ctf.c (handle_id): New static variable.
7657 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7658 value. Get the declaration of event "register" and get length
7659 of field "contents".
7660
dac3e710
YQ
76612014-04-19 Yao Qi <yao@codesourcery.com>
7662
7663 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7664
2bca57ba
SC
76652014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7666
7667 * valops.c (oload_method_static): Remove unnecessary argument
7668 METHOD. Update all callers.
7669
51d48146
PA
76702014-04-18 Pedro alves <palves@redhat.com>
7671 Tom Tromey <tromey@redhat.com>
7672
7673 PR backtrace/15558
7674 * frame.c (get_prev_frame_1): Rename to ...
7675 (get_prev_frame_always): ... this, and make extern. Adjust.
7676 (skip_artificial_frames): Use get_prev_frame_always.
7677 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7678 (get_frame_unwind_stop_reason): Adjust to rename.
7679 * frame.h (get_prev_frame_always): Declare.
7680 * inline-frame.c: Include frame.h.
7681 (inline_frame_this_id): Use get_prev_frame_always.
7682
1bdad2e0
TG
76832014-04-18 Tristan Gingold <gingold@adacore.com>
7684
7685 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7686 code by using bfd_mach_o_get_base_address.
7687
7ce16bd4
UW
76882014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7689
7690 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7691 (spu_ax_pseudo_register_collect): New function.
7692 (spu_ax_pseudo_register_push_stack): Likewise.
7693 (spu_dwarf_reg_to_regnum): Likewise.
7694 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7695
2ed3c037
UW
76962014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7697
7698 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7699 Replace FRAME argument with FRAME_ID.
7700 * gdbarch.c, gdbarch.h: Regenerate.
7701 * findvar.c (default_value_from_register): Add GDBARCH argument;
7702 replace FRAME by FRAME_ID. No longer call get_frame_id.
7703 (value_from_register): Update call to gdbarch_value_from_register.
7704 * value.h (default_value_from_register): Update prototype.
7705 * s390-linux-tdep.c (s390_value_from_register): Update interface
7706 and call to default_value_from_register.
7707 * spu-tdep.c (spu_value_from_register): Likewise.
7708
7709 * findvar.c (address_from_register): Remove TYPE argument.
7710 Do not call value_from_register; use gdbarch_value_from_register
7711 with null_frame_id instead.
7712 * value.h (address_from_register): Update prototype.
7713 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7714 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7715 address_from_register interface change.
7716
71e50e83
YQ
77172014-04-17 Yao Qi <yao@codesourcery.com>
7718
7719 * gdbtypes.h: Update comments to link to types and macros'
7720 definitions.
7721
7a23c549
SC
77222014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7723
7724 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7725
22869d73
KS
77262014-04-16 Keith Seitz <keiths@redhat.com>
7727
7728 PR gdb/15827
7729 * dwarf2read.c (skip_one_die): Check that all relative-offset
7730 sibling DIEs fall within range of the current reader's buffer.
7731 (read_partial_die): Likewise.
7732
c4f87ca6
KS
77332014-04-16 Keith Seitz <keiths@redhat.com>
7734
7735 PR c++/16597
7736 * cp-namespace.c (lookup_symbol_file): If the type name of
7737 `this' is NULL, return immediately.
7738
b50c8614
KS
77392014-04-14 Keith Seitz <keiths@redhat.com>
7740
7741 PR c++/16253
7742 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7743 from symbol_matches_domain in symtab.c. All local callers
7744 of symbol_matches_domain updated.
7745 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7746 search STRUCT_DOMAIN.
7747 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7748 independently. standard_lookup will do that automatically.
7749 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7750 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7751 (cp_lookup_symbol_in_namespace): Likewise.
7752 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7753 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7754 may return a STRUCT_DOMAIN match.
7755 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7756 * cp-support.c: Include language.h.
7757 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7758 VAR_DOMAIN.
7759 * psymtab.c (match_partial_symbol): Compare the requested
7760 domain with the symbol's domain directly.
7761 (lookup_partial_symbol): Likewise.
7762 * symtab.c (lookup_symbol_in_language): Explain when/why
7763 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7764 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7765 appropriate languages.
7766 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7767 and moved to ada-lang.c
7768 (lookup_block_symbol): Explain that this function only returns
7769 symbol matching the requested DOMAIN.
7770 Compare the requested domain with the symbol's domain directly.
7771 (iterate_over_symbols): Compare the requested domain with the
7772 symbol's domain directly.
7773 * symtab.h (symbol_matches_domain): Remove.
7774
3d567982
TT
77752014-04-14 Tom Tromey <tromey@redhat.com>
7776
7777 PR c++/15246:
7778 * c-exp.y (type_aggregate_p): New function.
7779 (qualified_name, classify_inner_name): Use it.
7780 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7781 and TYPE_TARGET_TYPE of an enum type.
7782 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7783 an enum type.
7784 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7785 handle TYPE_DECLARED_CLASS.
7786 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7787 types.
7788 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7789 * valops.c (enum_constant_from_type): New function.
7790 (value_aggregate_elt): Use it.
7791 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7792 TYPE_CODE_ENUM.
7793
c848d642
TT
77942014-04-14 Tom Tromey <tromey@redhat.com>
7795
7796 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7797 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7798 const.
7799 * value.h (value_aggregate_elt): Update.
7800
0626fc76
TT
78012014-04-14 Tom Tromey <tromey@redhat.com>
7802
7803 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7804
5ecaaa66
SA
78052014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7806
7807 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7808 (evaluate_subexp_standard): Pass noside argument.
7809 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7810 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7811 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7812 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7813 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7814
1612e0c0
SA
78152014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7816
7817 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7818 points to a constant blob.
7819
c451ebe5
SA
78202014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7821
7822 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7823 property and store it as the high bound and flag the range accordingly.
7824 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7825 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7826 * gdbtypes.h (enum range_flags): New enum.
7827 (struct range_bounds): Add flags member.
7828
1d42e4c4
SA
78292014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7830
7831 * c-typeprint.c (c_type_print_varspec_suffix): Added
7832 check for not yet resolved high bound. If unresolved, print
7833 "variable length" string to the console instead of random
7834 length.
7835
9f1f738a
SA
78362014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7837
7838 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7839 value.
7840 (ada_template_to_fixed_record_type_1): Likewise.
7841 (ada_to_fixed_type_1): Likewise.
7842 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7843 (cp_print_value): Likewise.
7844 * d-valprint.c (dynamic_array_type): Likewise.
7845 * findvar.c (address_of_variable): Likewise.
7846 * jv-valprint.c (java_value_print): Likewise.
7847 * valops.c (value_ind): Likewise.
7848 * value.c (coerce_ref): Likewise.
7849
3c8452d4
SA
78502014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7851
7852 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7853 value and retrieve the dynamic type size.
7854
4ad88275
SA
78552014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7856
7857 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7858 passed to sizeof is dynamic evaluate the argument to compute the length.
7859
80180f79
SA
78602014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7861 Joel Brobecker <brobecker@adacore.com>
7862
7863 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7864 (dwarf2_evaluate_property): New function.
7865 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7866 * dwarf2read.c (attr_to_dynamic_prop): New function.
7867 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7868 attribute.
7869 * gdbtypes.c: Include dwarf2loc.h.
7870 (is_dynamic_type): New function.
7871 (resolve_dynamic_type): New function.
7872 (resolve_dynamic_bounds): New function.
7873 (get_type_length): New function.
7874 (check_typedef): Use get_type_length to compute type length.
7875 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7876 (TYPE_LOW_BOUND_KIND): New macro.
7877 (is_dynamic_type): New function prototype.
7878 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7879 to resolve dynamic properties of the type. Update comment.
7880 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7881
a1556843
RH
78822014-04-14 Richard Henderson <rth@redhat.com>
7883
7884 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7885
0be03e84
DE
78862014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7887 Doug Evans <xdje42@gmail.com>
7888
7889 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7890 dereference TYPE_CODE_REF values.
7891
6b662e19
JB
78922014-04-11 Joel Brobecker <brobecker@adacore.com>
7893
7894 Revert the following changes due to regressions:
7895
7896 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7897 (dwarf2_evaluate_property): New function.
7898 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7899 * dwarf2read.c (attr_to_dynamic_prop): New function.
7900 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7901 attribute.
7902 * gdbtypes.c: Include dwarf2loc.h.
7903 (is_dynamic_type): New function.
7904 (resolve_dynamic_type): New function.
7905 (resolve_dynamic_bounds): New function.
7906 (get_type_length): New function.
7907 (check_typedef): Use get_type_length to compute type length.
7908 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7909 (TYPE_LOW_BOUND_KIND): New macro.
7910 (is_dynamic_type): New function prototype.
7911 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7912 to resolve dynamic properties of the type. Update comment.
7913 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7914
7915 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7916 passed to sizeof is dynamic evaluate the argument to compute the length.
7917
7918 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7919 value and retrieve the dynamic type size.
7920
7921 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7922 (ada_template_to_fixed_record_type_1): Likewise.
7923 (ada_to_fixed_type_1): Likewise.
7924 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7925 (cp_print_value): Likewise.
7926 * d-valprint.c (dynamic_array_type): Likewise.
7927 * eval.c (evaluate_subexp_with_coercion): Likewise.
7928 * findvar.c (address_of_variable): Likewise.
7929 * jv-valprint.c (java_value_print): Likewise.
7930 * valops.c (value_ind): Likewise.
7931 * value.c (coerce_ref): Likewise.
7932
7933 * c-typeprint.c (c_type_print_varspec_suffix): Added
7934 check for not yet resolved high bound. If unresolved, print
7935 "variable length" string to the console instead of random
7936 length.
7937
7938 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7939 property and store it as the high bound and flag the range accordingly.
7940 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7941 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7942 * gdbtypes.h (enum range_flags): New enum.
7943 (struct range_bounds): Add flags member.
7944
7945 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7946 points to a constant blob.
7947
7948 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7949 (evaluate_subexp_standard): Pass noside argument.
7950 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7951 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7952 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7953 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7954 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7955
245a5f0b
KS
79562014-04-11 Keith Seitz <keiths@redhat.com>
7957
7958 PR c++/16675
7959 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7960 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7961 reference types.
7962
3bce8237
SA
79632014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7964
7965 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7966 (evaluate_subexp_standard): Pass noside argument.
7967 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7968 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7969 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7970 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7971 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7972
92b09522
SA
79732014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7974
7975 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7976 points to a constant blob.
7977
e1969afb
SA
79782014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7979
7980 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7981 property and store it as the high bound and flag the range accordingly.
7982 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7983 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7984 * gdbtypes.h (enum range_flags): New enum.
7985 (struct range_bounds): Add flags member.
7986
b86138fb
SA
79872014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7988
7989 * c-typeprint.c (c_type_print_varspec_suffix): Added
7990 check for not yet resolved high bound. If unresolved, print
7991 "variable length" string to the console instead of random
7992 length.
7993
bcd629a4
SA
79942014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7995
7996 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7997 (ada_template_to_fixed_record_type_1): Likewise.
7998 (ada_to_fixed_type_1): Likewise.
7999 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8000 (cp_print_value): Likewise.
8001 * d-valprint.c (dynamic_array_type): Likewise.
8002 * eval.c (evaluate_subexp_with_coercion): Likewise.
8003 * findvar.c (address_of_variable): Likewise.
8004 * jv-valprint.c (java_value_print): Likewise.
8005 * valops.c (value_ind): Likewise.
8006 * value.c (coerce_ref): Likewise.
8007
04b19544
SA
80082014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8009
8010 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8011 value and retrieve the dynamic type size.
8012
26cb189f
SA
80132014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8014
8015 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8016 passed to sizeof is dynamic evaluate the argument to compute the length.
8017
37c1ab67
SA
80182014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8019
8020 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8021 (dwarf2_evaluate_property): New function.
8022 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8023 * dwarf2read.c (attr_to_dynamic_prop): New function.
8024 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8025 attribute.
8026 * gdbtypes.c: Include dwarf2loc.h.
8027 (is_dynamic_type): New function.
8028 (resolve_dynamic_type): New function.
8029 (resolve_dynamic_bounds): New function.
8030 (get_type_length): New function.
8031 (check_typedef): Use get_type_length to compute type length.
8032 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8033 (TYPE_LOW_BOUND_KIND): New macro.
8034 (is_dynamic_type): New function prototype.
8035 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8036 to resolve dynamic properties of the type. Update comment.
8037 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8038
729efb13
SA
80392014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8040
8041 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8042 declaring high/low bounds and change uses accordingly. Call
8043 create_range_type instead of create_static_range_type.
8044 * gdbtypes.c (create_range_type): New function.
8045 (create_range_type): Convert bounds into struct bound_prop and pass
8046 them to create_range_type.
8047 * gdbtypes.h (struct bound_prop): New struct.
8048 (create_range_type): New function prototype.
8049 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8050 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8051 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8052 part of the bound.
8053 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8054
0c9c3474
SA
80552014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8056
8057 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8058 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8059 * ada-lang.c: All uses of create_range_type updated.
8060 * coffread.c: All uses of create_range_type updated.
8061 * dwarf2read.c: All uses of create_range_type updated.
8062 * f-exp.y: All uses of create_range_type updated.
8063 * m2-valprint.c: All uses of create_range_type updated.
8064 * mdebugread.c: All uses of create_range_type updated.
8065 * stabsread.c: All uses of create_range_type updated.
8066 * valops.c: All uses of create_range_type updated.
8067 * valprint.c: All uses of create_range_type updated.
8068
9d497a19
PA
80692014-04-10 Pedro Alves <palves@redhat.com>
8070
8071 * breakpoint.c (single_step_breakpoints)
8072 (single_step_gdbarch): Move up in the file.
8073 (one_breakpoint_xfer_memory): New function, factored out from ...
8074 (breakpoint_xfer_memory): ... here. Also process single-step
8075 breakpoints.
8076
15a9128a
TG
80772014-04-09 Tristan Gingold <gingold@adacore.com>
8078
8079 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8080 comments.
8081 (darwin_decode_exception_message): Free port only after use.
8082
9c97a070
PL
80832014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8084
8085 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8086 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8087 when setting the size of call_length.
8088
7af389b8
SC
80892014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8090
8091 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8092 dereference TYPE_CODE_REF values.
8093
86ad98c3
JB
80942014-04-07 Joel Brobecker <brobecker@adacore.com>
8095
8096 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8097 end of warning message.
8098
b0aeadb3
DE
80992014-04-03 Doug Evans <dje@google.com>
8100
8101 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8102 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8103
5979d6b6
AM
81042014-04-02 Alan Modra <amodra@gmail.com>
8105
8106 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8107 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8108 (struct symbol_file_add_from_memory_args): Add size field.
8109 (find_vdso_size): New function.
8110 (add_vsyscall_page): Attempt to find vdso size.
8111
0d60c288
DE
81122014-04-01 Doug Evans <dje@google.com>
8113
8114 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8115
a41f2563
TG
81162014-04-01 Tristan Gingold <gingold@adacore.com>
8117
8118 * darwin-nat.c (darwin_encode_reply): Add prototype.
8119 (darwin_decode_exception_message): Reply to unknown inferiors.
8120 (darwin_decode_message): Handle message by id. Ignore message
8121 to unknown inferior.
8122 (darwin_wait): Discard unknown messages, add debug trace.
8123
11a865c8
DE
81242014-03-31 Doug Evans <dje@google.com>
8125
8126 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8127 comp_dir_string.
8128
770e7fc7
DE
81292014-03-31 Doug Evans <dje@google.com>
8130
8131 New option "set print symbol-loading".
8132 * NEWS: Mention it.
8133 * solib.c (solib_read_symbols): Only print symbol loading messages
8134 if requested.
8135 (solib_add): If symbol loading is in "brief" mode, notify user
8136 symbols are being loaded.
8137 (reload_shared_libraries_1): Ditto.
8138 * symfile.c (print_symbol_loading_off): New static global.
8139 (print_symbol_loading_brief): New static global.
8140 (print_symbol_loading_full): New static global.
8141 (print_symbol_loading_enums): New static global.
8142 (print_symbol_loading): New static global.
8143 (print_symbol_loading_p): New function.
8144 (symbol_file_add_with_addrs): Only print symbol loading messages
8145 if requested.
8146 (_initialize_symfile): Register "print symbol-loading" set/show
8147 command.
8148 * symfile.h (print_symbol_loading_p): Declare.
8149
c32c64b7
DE
81502014-03-30 Doug Evans <xdje42@gmail.com>
8151
8152 * infrun.c (set_last_target_status): New function.
8153 (handle_inferior_event): Call it.
8154
7c0bc051
DE
81552014-03-30 Doug Evans <xdje42@gmail.com>
8156
8157 * inferior.h (enum stop_kind): Improve comment.
8158
8776cfe9
JB
81592014-03-28 Joel Brobecker <brobecker@adacore.com>
8160
8161 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8162 a reference, strip the reference layer before calling
8163 the lang_ops value_has_mutated callback.
8164
410a0ff2
SDJ
81652014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8166
8167 Remove some globals from our parser.
8168 * language.c (unk_lang_parser): Add "struct parser_state"
8169 argument.
8170 * language.h (struct language_defn) <la_parser>: Likewise.
8171 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8172 (initialize_expout): Add "struct parser_state" argument.
8173 Rewrite function to use the parser state.
8174 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8175 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8176 write_exp_elt_longcst, write_exp_elt_dblcst,
8177 write_exp_elt_decfloatcst, write_exp_elt_type,
8178 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8179 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8180 write_dollar_variable): Likewise.
8181 (parse_exp_in_context_1): Use parser state.
8182 (insert_type_address_space): Add "struct parser_state" argument.
8183 Use parser state.
8184 (increase_expout_size): New function.
8185 * parser-defs.h: Forward declare "struct language_defn" and
8186 "struct parser_state".
8187 (expout, expout_size, expout_ptr): Remove extern declarations.
8188 (parse_gdbarch, parse_language): Rewrite macro declarations to
8189 accept the parser state.
8190 (struct parser_state): New struct.
8191 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8192 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8193 write_exp_elt_decfloatcst, write_exp_elt_type,
8194 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8195 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8196 write_exp_msymbol, write_dollar_variable,
8197 mark_struct_expression, insert_type_address_space): Add "struct
8198 parser_state" argument.
8199 (increase_expout_size): New function.
8200 * utils.c (do_clear_parser_state): New function.
8201 (make_cleanup_clear_parser_state): Likewise.
8202 * utils.h (make_cleanup_clear_parser_state): New function
8203 prototype.
8204 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8205 Update calls to write_exp* in order to pass the parser state.
8206 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8207 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8208 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8209 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8210 * stap-probe.c (stap_parse_register_operand): Likewise.
8211 (stap_parse_single_operand): Likewise.
8212 (stap_parse_argument_1): Likewise.
8213 (stap_parse_argument): Use parser state.
8214 * stap-probe.h: Include "parser-defs.h".
8215 (struct stap_parse_info) <pstate>: New field.
8216 * c-exp.y (parse_type): Rewrite to use parser state.
8217 (yyparse): Redefine to c_parse_internal.
8218 (pstate): New global variable.
8219 (parse_number): Add "struct parser_state" argument.
8220 (write_destructor_name): Likewise.
8221 (type_exp): Update calls to write_exp* and similars in order to
8222 use parser state.
8223 (exp1, exp, variable, qualified_name, space_identifier,
8224 typename, typebase): Likewise.
8225 (write_destructor_name, parse_number, lex_one_token,
8226 classify_name, classify_inner_name, c_parse): Add "struct
8227 parser_state" argument. Update function to use parser state.
8228 * c-lang.h: Forward declare "struct parser_state".
8229 (c_parse): Add "struct parser_state" argument.
8230 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8231 (yyparse): Redefine macro to ada_parse_internal.
8232 (pstate): New variable.
8233 (write_int, write_object_renaming, write_var_or_type,
8234 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8235 type_int, type_long, type_long_long, type_float, type_double,
8236 type_long_double, type_char, type_boolean, type_system_address):
8237 Add "struct parser_state" argument.
8238 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8239 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8240 var_or_type, aggregate, aggregate_component_list,
8241 positional_list, others, component_group,
8242 component_associations): Update calls to write_exp* and similar
8243 functions in order to use parser state.
8244 (ada_parse, write_var_from_sym, write_int,
8245 write_exp_op_with_string, write_object_renaming,
8246 find_primitive_type, write_selectors, write_ambiguous_var,
8247 write_var_or_type, write_name_assoc, type_int, type_long,
8248 type_long_long, type_float, type_double, type_long_double,
8249 type_char, type_boolean, type_system_address): Add "struct
8250 parser_state" argument. Adjust function to use parser state.
8251 * ada-lang.c (parse): Likewise.
8252 * ada-lang.h: Forward declare "struct parser_state".
8253 (ada_parse): Add "struct parser_state" argument.
8254 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8255 calls to both functions.
8256 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8257 parser state.
8258 (yyparse): Redefine macro to f_parse_internal.
8259 (pstate): New variable.
8260 (parse_number): Add "struct parser_state" argument.
8261 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8262 and similars in order to use parser state.
8263 (parse_number): Adjust code to use parser state.
8264 (yylex): Likewise.
8265 (f_parse): New function.
8266 * f-lang.h: Forward declare "struct parser_state".
8267 (f_parse): Add "struct parser_state" argument.
8268 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8269 parser state.
8270 (yyparse): Redefine macro for java_parse_internal.
8271 (pstate): New variable.
8272 (push_expression_name, push_expression_name, insert_exp): Add
8273 "struct parser_state" argument.
8274 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8275 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8276 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8277 PostIncrementExpression, PostDecrementExpression,
8278 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8279 UnaryExpressionNotPlusMinus, CastExpression,
8280 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8281 RelationalExpression, EqualityExpression, AndExpression,
8282 ExclusiveOrExpression, InclusiveOrExpression,
8283 ConditionalAndExpression, ConditionalOrExpression,
8284 ConditionalExpression, Assignment, LeftHandSide): Update
8285 calls to write_exp* and similars in order to use parser state.
8286 (parse_number): Ajust code to use parser state.
8287 (yylex): Likewise.
8288 (java_parse): New function.
8289 (push_variable): Add "struct parser_state" argument. Adjust
8290 code to user parser state.
8291 (push_fieldnames, push_qualified_expression_name,
8292 push_expression_name, insert_exp): Likewise.
8293 * jv-lang.h: Forward declare "struct parser_state".
8294 (java_parse): Add "struct parser_state" argument.
8295 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8296 parser state.
8297 (yyparse): Redefine macro to m2_parse_internal.
8298 (pstate): New variable.
8299 (type_exp, exp, fblock, variable, type): Update calls to
8300 write_exp* and similars to use parser state.
8301 (yylex): Likewise.
8302 (m2_parse): New function.
8303 * m2-lang.h: Forward declare "struct parser_state".
8304 (m2_parse): Add "struct parser_state" argument.
8305 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8306 * objc-lang.h: Forward declare "struct parser_state".
8307 (end_msglist): Add "struct parser_state" argument.
8308 * p-exp.y (parse_type): Rewrite macro to use parser state.
8309 (yyparse): Redefine macro to pascal_parse_internal.
8310 (pstate): New variable.
8311 (parse_number): Add "struct parser_state" argument.
8312 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8313 write_exp* and similars in order to use parser state.
8314 (parse_number, yylex): Adjust code to use parser state.
8315 (pascal_parse): New function.
8316 * p-lang.h: Forward declare "struct parser_state".
8317 (pascal_parse): Add "struct parser_state" argument.
8318 * go-exp.y (parse_type): Rewrite macro to use parser state.
8319 (yyparse): Redefine macro to go_parse_internal.
8320 (pstate): New variable.
8321 (parse_number): Add "struct parser_state" argument.
8322 (type_exp, exp1, exp, variable, type): Update calls to
8323 write_exp* and similars in order to use parser state.
8324 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8325 to use parser state.
8326 (go_parse): Likewise.
8327 * go-lang.h: Forward declare "struct parser_state".
8328 (go_parse): Add "struct parser_state" argument.
8329
342587c4
DE
83302014-03-27 Doug Evans <dje@google.com>
8331
8332 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8333
33e80786
DE
83342014-03-27 Doug Evans <dje@google.com>
8335
8336 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8337 Remove argument abbrev_section. All callers updated.
8338
1dbab08b
DE
83392014-03-27 Doug Evans <dje@google.com>
8340
8341 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8342 addr_base, ranges_base.
8343
318d3177
KS
83442014-03-26 Keith Seitz <keiths@redhat.com>
8345
8346 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8347 types, not VAR_DOMAIN.
8348
1e54db15
SL
83492014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8350
8351 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8352 "ra" registers.
8353 * features/nios2-linux.c: Regenerated.
8354 * features/nios2.c: Regenerated.
8355
d3839ede
PA
83562014-03-25 Pedro Alves <palves@redhat.com>
8357
8358 * cli/cli-script.c (script_from_file): Force the interpreter to
8359 sync mode.
8360
7588d2ec
PL
83612014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8362
8363 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8364 small stack allocation.
8365
a6290449
TG
83662014-03-24 Tristan Gingold <gingold@adacore.com>
8367
8368 * darwin-nat.c (exc_server): Remove unused prototype.
8369 (darwin_dump_message): Correctly display data on x86_64.
8370 (darwin_encode_reply): Fix style.
8371 Add comments and fix indentation.
8372
31ae9d24 83732014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
8374
8375 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8376
6339bfc4
DE
83772014-03-22 Doug Evans <xdje42@gmail.com>
8378
8379 * infcmd.c: Whitespace fixes.
8380 (interrupt_command): Merge two function comments into one.
8381
0a07590b
DE
83822014-03-22 Doug Evans <xdje42@gmail.com>
8383
8384 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8385 All uses updated.
8386
b55fbac4
YQ
83872014-03-22 Yao Qi <yao@codesourcery.com>
8388
8389 * remote.c (target_read_live_memory): Remove.
8390 (memory_xfer_live_readonly_partial): Rename it to
8391 remote_xfer_live_readonly_partial. Remove argument 'object'.
8392 All callers updated. Call remote_read_bytes_1
8393 instead of target_read_live_memory.
8394 * tracepoint.c (set_traceframe_number): Remove.
8395 (make_cleanup_restore_traceframe_number): Likewise .
8396 * tracepoint.h (set_traceframe_number): Remove declaration.
8397 (make_cleanup_restore_traceframe_number): Likewise.
8398
9217e74e
YQ
83992014-03-22 Yao Qi <yao@codesourcery.com>
8400
8401 * remote.c (remote_read_bytes): Move code on reading from the
8402 remote stub to ...
8403 (remote_read_bytes_1): ... here. New function.
8404
8acf9577
YQ
84052014-03-22 Yao Qi <yao@codesourcery.com>
8406
8407 * ctf.c (ctf_xfer_partial): Check the return value of
8408 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8409 return TARGET_XFER_UNAVAILABLE.
8410 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8411 * target.c (target_read_live_memory): Move it to remote.c.
8412 (memory_xfer_live_readonly_partial): Likewise.
8413 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8414 * remote.c (target_read_live_memory): Moved from target.c.
8415 (memory_xfer_live_readonly_partial): Likewise.
8416 (remote_read_bytes): Factored out from
8417 memory_xfer_partial_1.
8418
feef67ab
DE
84192014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8420
8421 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8422 NULL pointer.
8423
b65dc60b
PA
84242014-03-21 Pedro Alves <palves@redhat.com>
8425
8426 * infrun.c (normal_stop): Extend comment.
8427
b4ab256d
HZ
84282014-03-21 Hui Zhu <hui@codesourcery.com>
8429 Pedro Alves <palves@redhat.com>
8430
8431 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8432 static buffer.
8433 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8434 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8435 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8436
deba7593
MR
84372014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8438
8439 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8440 `z' formatted output modifier.
8441
1bff71c3
SDJ
84422014-03-20 Tom Tromey <tromey@redhat.com>
8443 Sergio Durigan Junior <sergiodj@redhat.com>
8444
8445 * probe.c (parse_probes): Turn assert into an ordinary error.
8446 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8447 exceptions when parsing probes. Rearrange the code for clarity.
8448
90e28950
TT
84492014-03-20 Tom Tromey <tromey@redhat.com>
8450
8451 PR gdb/14135
8452 * top.c (execute_command): Only dispatch events if the command
8453 started the target.
8454
beb460e8
PA
84552014-03-20 Tom Tromey <tromey@redhat.com>
8456
8457 PR cli/15718
8458 * infcall.c: Include event-top.h.
8459 (run_inferior_call): Call async_disable_stdin if needed.
8460
99619bea
PA
84612014-03-20 Pedro Alves <palves@redhat.com>
8462
8463 * infrun.c (prepare_to_proceed): Delete.
8464 (thread_still_needs_step_over): New function.
8465 (find_thread_needs_step_over): New function.
8466 (proceed): If the current thread needs a step-over, set its
8467 steping_over_breakpoint flag. Adjust to use
8468 find_thread_needs_step_over instead of prepare_to_proceed.
8469 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8470 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8471 breakpoint.
8472 (switch_back_to_stepped_thread): Step over breakpoints of all
8473 threads not the stepping thread, before switching back to the
8474 stepping thread.
8475
2adfaa28
PA
84762014-03-20 Pedro Alves <palves@redhat.com>
8477
8478 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8479 extern.
8480 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8481 * infrun.c (saved_singlestep_ptid)
8482 (stepping_past_singlestep_breakpoint): Delete.
8483 (resume): Remove stepping_past_singlestep_breakpoint handling.
8484 (proceed): Store the prev_pc of the stepping thread too.
8485 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8486 singlestep_pc.
8487 (enum infwait_states): Delete infwait_thread_hop_state.
8488 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8489 field.
8490 (handle_inferior_event): Adjust.
8491 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8492 handling and the thread-hop code. Before removing single-step
8493 breakpoints, check whether the thread hit a single-step breakpoint
8494 of another thread. If it did, the trap is not a random signal.
8495 (switch_back_to_stepped_thread): If the event thread hit a
8496 single-step breakpoint, unblock it before switching to the
8497 stepping thread. Handle the case of the stepped thread having
8498 advanced already.
8499 (keep_going): Handle the case of the current thread moving past a
8500 single-step breakpoint.
8501
31e77af2
PA
85022014-03-20 Pedro Alves <palves@redhat.com>
8503
8504 PR breakpoints/7143
8505 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8506 are being stepped over.
8507 (breakpoint_address_match): Make extern.
8508 * breakpoint.h (breakpoint_address_match): New declaration.
8509 * inferior.h (stepping_past_instruction_at): New declaration.
8510 * infrun.c (struct step_over_info): New type.
8511 (step_over_info): New global.
8512 (set_step_over_info, clear_step_over_info)
8513 (stepping_past_instruction_at): New functions.
8514 (handle_inferior_event): Clear the step-over info when
8515 trap_expected is cleared.
8516 (resume): Remove now stale comment.
8517 (clear_proceed_status): Clear step-over info.
8518 (proceed): Adjust step-over handling to set or clear the step-over
8519 info instead of removing all breakpoints.
8520 (handle_signal_stop): When setting up a thread-hop, don't remove
8521 breakpoints here.
8522 (stop_stepping): Clear step-over info.
8523 (keep_going): Adjust step-over handling to set or clear step-over
8524 info and then always inserting breakpoints, instead of removing
8525 all breakpoints when stepping over one.
8526
b9f437de
PA
85272014-03-20 Pedro Alves <palves@redhat.com>
8528
8529 * infrun.c (previous_inferior_ptid): Adjust comment.
8530 (deferred_step_ptid): Delete.
8531 (infrun_thread_ptid_changed, prepare_to_proceed)
8532 (init_wait_for_inferior): Adjust.
8533 (handle_signal_stop): Delete deferred_step_ptid handling.
8534
06c868a8
JK
85352014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8536
8537 PR gdb/15358
8538 * defs.h (sync_quit_force_run): New declaration.
8539 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8540 * event-top.c (async_sigterm_handler): New declaration.
8541 (async_sigterm_token): New variable.
8542 (async_init_signals): Create also async_sigterm_token.
8543 (async_sigterm_handler): New function.
8544 (sync_quit_force_run): New variable.
8545 (handle_sigterm): Replace quit_force call by other calls.
8546 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8547
dea80df0
MR
85482014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8549
8550 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8551 offset into SPE pseudo registers.
8552
0c7e1a46
PA
85532014-03-18 Pedro Alves <palves@redhat.com>
8554
8555 PR gdb/13860
8556 * inferior.h (print_stop_event): Declare.
8557 * infrun.c (print_stop_event): New, factored out from ...
8558 (normal_stop): ... this.
8559 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8560 of bpstat_print/print_stack_frame.
8561
9c1fcd01
TT
85622014-03-17 Tom Tromey <tromey@redhat.com>
8563
8564 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8565
11aa919a
PMR
85662014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8567
8568 * ada-lang.c (decode_constrained_packed_array): Perform a
8569 minimal coercion for reference with coerce_ref instead of
8570 ada_coerce_ref.
8571
d4ccb5e0
TG
85722014-03-17 Tristan Gingold <gingold@adacore.com>
8573
8574 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8575 (darwin_solib_create_inferior_hook): Emit a warning if version
8576 is unhandled.
8577
49840f2a
UW
85782014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8579
8580 * python/py-value.c (get_field_flag): Cast flag_name argument to
8581 PyObject_GetAttrString to support Python 2.4.
8582
ed4123e5
JK
85832014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8584
8585 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8586 (Global Maintainers): Remove Jan Kratochvil.
8587
d6b64346
PA
85882014-03-14 Pedro Alves <palves@redhat.com>
8589
8590 * inferior.h (terminal_ours_for_output): Rename to ...
8591 (child_terminal_ours_for_output): ... this.
8592 (terminal_save_ours): Rename to ...
8593 (child_terminal_save_ours): ... this.
8594 (terminal_ours): Rename to ...
8595 (child_terminal_ours): ... this.
8596 (terminal_inferior): Rename to ...
8597 (child_terminal_inferior): ... this.
8598 (terminal_init_inferior): Rename to ...
8599 (child_terminal_init_inferior): ... this.
8600 (terminal_init_inferior_with_pgrp): Rename to ...
8601 (child_terminal_init_inferior_with_pgrp): ... this.
8602 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8603 (child_terminal_init_with_pgrp): ... this.
8604 (terminal_save_ours): Rename to ...
8605 (child_terminal_save_ours): ... this.
8606 (terminal_init_inferior): Rename to ...
8607 (child_terminal_init): ... this. Adjust.
8608 (terminal_inferior): Rename to ...
8609 (child_terminal_inferior): ... this.
8610 (terminal_ours_for_output): Rename to ...
8611 (child_terminal_ours_for_output): ... this. Adjust.
8612 (terminal_ours): Rename to ...
8613 (child_terminal_ours): ... this.
8614 (terminal_ours_1): Rename to ...
8615 (child_terminal_ours_1): ... this. Adjust.
8616 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8617 * windows-nat.c (do_initial_windows_stuff): Adjust.
8618 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8619 (gnu_terminal_init): ... this. Adjust.
8620 (gnu_target): Adjust.
8621 * inf-child.c (inf_child_target): Adjust.
8622
5a1e8c7a
DE
86232014-03-13 Doug Evans <xdje42@gmail.com>
8624
8625 PR guile/16612
8626 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8627 new eq?-hashtab.
8628
350e1a76
DE
86292014-03-13 Doug Evans <xdje42@gmail.com>
8630
8631 * value.c (record_latest_value): Call release_value_or_incref
8632 instead of release_value.
8633
a69900ae
PA
86342014-03-13 Pedro Alves <palves@redhat.com>
8635
8636 * procfs.c (procfs_target): Don't override to_shortname,
8637 to_longname or to_doc.
8638
5db9f0bd
PA
86392014-03-13 Pedro Alves <palves@redhat.com>
8640
8641 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8642 Unix in user visible strings.
8643
5e3a2c38
SS
86442014-03-12 Stan Shebs <stan@codesourcery.com>
8645
8646 * gdbtypes.h: Annotate comments for Doxygen, add a page
8647 block comment with some general info.
8648
8bc2fe48
PA
86492014-03-12 Pedro Alves <palves@redhat.com>
8650
8651 * infcmd.c (prepare_execution_command): New function, factored out
8652 from several execution commands.
8653 (run_command_1, continue_command, step_1, jump_command)
8654 (signal_command, until_command, advance_command, finish_command)
8655 (attach_command): Use prepare_execution_command.
8656
638c5f49
OJ
86572014-03-12 Omair Javaid <omair.javaid@linaro.org>
8658
8659 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8660 (MAX_BPTS): Define.
8661 (MAX_WPTS): Define.
8662 (struct arm_linux_thread_points): Removed.
8663 (struct arm_linux_process_info): New.
8664 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8665 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8666 (arm_linux_find_breakpoints_by_tid): Removed.
8667 (struct arch_lwp_info): New.
8668 (arm_linux_find_process_pid): New functions.
8669 (arm_linux_add_process): New functions.
8670 (arm_linux_process_info_get): New functions.
8671 (arm_linux_forget_process): New function.
8672 (arm_linux_get_debug_reg_state): New function.
8673 (struct update_registers_data): New.
8674 (update_registers_callback): New function.
8675 (arm_linux_insert_hw_breakpoint1): Updated.
8676 (arm_linux_remove_hw_breakpoint1): Updated.
8677 (arm_linux_insert_hw_breakpoint): Updated.
8678 (arm_linux_remove_hw_breakpoint): Updated.
8679 (arm_linux_insert_watchpoint): Updated.
8680 (arm_linux_remove_watchpoint): Updated.
8681 (arm_linux_new_thread): Updated.
8682 (arm_linux_prepare_to_resume): New function.
8683 (arm_linux_new_fork): New function.
8684 (_initialize_arm_linux_nat): Updated.
8685
6d03af93
PA
86862014-03-12 Pedro Alves <palves@redhat.com>
8687
8688 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8689
b3ccfe11
TT
86902014-03-12 Tom Tromey <tromey@redhat.com>
8691
8692 * inf-child.c (return_zero): New function.
8693 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8694 * aix-thread.c (aix_thread_inferior_created): New function.
8695 (aix_thread_attach): Remove.
8696 (init_aix_thread_ops): Don't set to_attach.
8697 (_initialize_aix_thread): Register inferior_created observer.
8698 * corelow.c (init_core_ops): Don't set to_attach or
8699 to_create_inferior.
8700 * exec.c (init_exec_ops): Don't set to_attach or
8701 to_create_inferior.
8702 * infcmd.c (run_command_1): Use find_run_target. Make direct
8703 target calls.
8704 (attach_command): Use find_attach_target. Make direct target
8705 calls.
8706 * record-btrace.c (init_record_btrace_ops): Don't set
8707 to_create_inferior.
8708 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8709 Remove.
8710 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8711 set to_create_inferior.
8712 * target.c (complete_target_initialization): Add assertion.
8713 (target_create_inferior): Remove.
8714 (find_default_attach, find_default_create_inferior): Remove.
8715 (find_attach_target, find_run_target): New functions.
8716 (find_default_is_async_p, find_default_can_async_p)
8717 (target_supports_non_stop, target_attach): Remove.
8718 (init_dummy_target): Don't set to_create_inferior or
8719 to_supports_non_stop.
8720 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8721 TARGET_DEFAULT_FUNC.
8722 <to_create_inferior>: Add comment.
8723 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8724 TARGET_DEFAULT_RETURN.
8725 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8726 (find_attach_target, find_run_target): Declare.
8727 (target_create_inferior): Remove.
8728 (target_has_execution_1): Update comment.
8729 (target_supports_non_stop): Remove.
8730 * target-delegates.c: Rebuild.
8731
91f83b02
PA
87322014-03-12 Pedro Alves <palves@redhat.com>
8733
8734 * inf-child.h: Update comment to not mention Unix.
8735
f1aea813
PA
87362014-03-12 Pedro Alves <palves@redhat.com>
8737
8738 * inf-child.c: Update top comment to not mention Unix. Add
8739 generic comment describing how this target is meant to be used.
8740 (inf_child_post_attach, inf_child_post_startup_inferior)
8741 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8742 Unix in comment.
8743
ee8e9165
PA
87442014-03-12 Pedro Alves <palves@redhat.com>
8745
8746 * nto-procfs.c: Include inf-child.h.
8747 (procfs_ops): Delete global.
8748 (procfs_can_run): Delete method.
8749 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8750 target pointer instead of referencing procfs_ops.
8751 (procfs_prepare_to_store): Delete.
8752 (init_procfs_ops): Delete function.
8753 (procfs_target): New function, based on init_procfs_ops, but
8754 inherit inf_child_target.
8755 (_initialize_procfs): Use procfs_target.
8756
51a9c8c5
PA
87572014-03-12 Pedro Alves <palves@redhat.com>
8758
8759 * windows-nat.c: Include inf-child.h.
8760 (windows_ops): Delete global.
8761 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8762 methods.
8763 (init_windows_ops): Delete function.
8764 (windows_target): New function, based on init_windows_ops, but
8765 inherit inf_child_target.
8766 (_initialize_windows_nat): Use windows_target. Install x86
8767 specific target methods here.
8768
c1966e26
DE
87692014-03-10 Doug Evans <xdje42@gmail.com>
8770
8771 * guile/guile.c (call_initialize_gdb_module): New function.
8772 (initialize_guile): Replace call to scm_init_guile with call to
8773 scm_with_guile.
8774
023db19c
JB
87752014-03-10 Joel Brobecker <brobecker@adacore.com>
8776
8777 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8778 in call to TYPE_CODE macro.
8779
5ec18f2b
JG
87802014-03-10 Jerome Guitton <guitton@adacore.com>
8781
8668be63
JB
8782 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8783 Resolve tagged types to full view.
5ec18f2b 8784
7d03f2eb
HZ
87852014-03-10 Hui Zhu <hui@codesourcery.com>
8786
8787 * target.h (target_insert_breakpoint): Remove "hardware" from its
8788 comments.
8789
c5164cbc
DE
87902014-03-07 Doug Evans <dje@google.com>
8791
8792 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8793
c4a3fee2
DE
87942014-03-07 Doug Evans <dje@google.com>
8795
8796 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8797 Remove unused local comp_dir_attr. Assert exactly one of
8798 stub_comp_unit_die, stub_comp_dir is non-NULL.
8799
3156469c
JB
88002014-03-07 Joel Brobecker <brobecker@adacore.com>
8801
8802 * target.h (complete_target_initialization, add_target):
8803 Add comment.
8804
c1a7b7c6
PA
88052014-03-07 Pedro Alves <palves@redhat.com>
8806
8807 * go32-nat.c: Include inf-child.h.
8808 (go32_ops): Delete global.
8809 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8810 Delete methods.
8811 (go32_create_inferior): Push the passed in target pointer instead
8812 of referencing go32_ops.
8813 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8814 (go32_target): New function, based on init_go32_ops, but inherit
8815 inf_child_target.
8816 (_initialize_go32_nat): Use go32_target. Move parts of
8817 init_go32_ops here.
8818
d3c1a85f
JB
88192014-03-06 Joel Brobecker <brobecker@adacore.com>
8820
8821 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8822 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8823 SYMBOL_VALUE_ADDRESS.
8824 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8825
5fa1d40e
YQ
88262014-03-06 Yao Qi <yao@codesourcery.com>
8827
8828 * breakpoint.c (get_tracepoint_by_number): Remove argument
8829 optional_p. All callers updated. Adjust comments. Update
8830 output message.
8831 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8832
0c13193f
YQ
88332014-03-06 Yao Qi <yao@codesourcery.com>
8834
8835 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8836 early if get_number returns zero. Use 'p' instead of 'args'.
8837
2217da06
YQ
88382014-03-06 Yao Qi <yao@codesourcery.com>
8839
8840 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8841 message.
8842
cc3da688
YQ
88432014-03-06 Yao Qi <yao@codesourcery.com>
8844
8845 PR breakpoints/16508
8846 * tracepoint.c (check_trace_running): New function.
8847 (trace_find_command): Move code to check_trace_running and
8848 call check_trace_running.
8849 (trace_find_pc_command): Likewise.
8850 (trace_find_tracepoint_command): Likewise.
8851 (trace_find_line_command): Likewise.
8852 (trace_find_range_command): Likewise.
8853 * tracepoint.h (check_trace_running): Likewise.
8854 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8855
6a5f844b
YQ
88562014-03-06 Yao Qi <yao@codesourcery.com>
8857
8858 * target.h (struct target_ops) <to_traceframe_info>: Use
8859 TARGET_DEFAULT_NORETURN (tcomplain ()).
8860 * target-delegates.c: Regenerated.
8861
0f26cec1
PA
88622014-03-05 Pedro Alves <palves@redhat.com>
8863
8864 PR gdb/16575
8865 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8866 void. Update comment.
8867 (dcache_xfer_memory): Delete.
8868 (dcache_read_memory_partial): New, based on the read bits of
8869 dcache_xfer_memory.
8870 (dcache_update): Add status parameter. Use ULONGEST for len, and
8871 adjust. Discard cache lines if the reason for the update was
8872 error.
8873 * dcache.h (dcache_xfer_memory): Delete declaration.
8874 (dcache_read_memory_partial): New declaration.
8875 (dcache_update): Update prototype.
8876 * target.c (raw_memory_xfer_partial): Update the dcache here.
8877 (memory_xfer_partial_1): Don't handle dcache writes here.
8878
b2b255bd
MF
88792014-03-05 Mike Frysinger <vapier@gentoo.org>
8880
8881 * remote-sim.c (gdbsim_load): Add const to prog.
8882
5d9cf8a4
TT
88832014-03-03 Tom Tromey <tromey@redhat.com>
8884
8885 * elfread.c (probe_key): Change to bfd_data.
8886 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8887 now per-BFD, not per-objfile.
8888 * stap-probe.c (stap_probe_destroy): Update comment.
8889 (handle_stap_probe): Allocate on the per-BFD obstack.
8890
729662a5
TT
88912014-03-03 Tom Tromey <tromey@redhat.com>
8892
8893 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8894 * breakpoint.c (create_longjmp_master_breakpoint): Use
8895 get_probe_address.
8896 (add_location_to_breakpoint, bkpt_probe_insert_location)
8897 (bkpt_probe_remove_location): Update.
8898 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8899 * elfread.c (elf_symfile_relocate_probe): Remove.
8900 (elf_probe_fns): Update.
8901 (insert_exception_resume_breakpoint): Change type of "probe"
8902 parameter to bound_probe.
8903 (check_exception_resume): Update.
8904 * objfiles.c (objfile_relocate1): Don't relocate probes.
8905 * probe.c (bound_probe_s): New typedef.
8906 (parse_probes): Use get_probe_address. Set sal's objfile.
8907 (find_probe_by_pc): Return a bound_probe.
8908 (collect_probes): Return a VEC(bound_probe_s).
8909 (compare_probes): Update.
8910 (gen_ui_out_table_header_info): Change type of "probes"
8911 parameter. Update.
8912 (info_probes_for_ops): Update.
8913 (get_probe_address): New function.
8914 (probe_safe_evaluate_at_pc): Update.
8915 * probe.h (struct probe_ops) <get_probe_address>: New field.
8916 <set_semaphore, clear_semaphore>: Add objfile parameter.
8917 (struct probe) <objfile>: Remove field.
8918 <arch>: New field.
8919 <address>: Update comment.
8920 (struct bound_probe): New.
8921 (find_probe_by_pc): Return a bound_probe.
8922 (get_probe_address): Declare.
8923 * solib-svr4.c (struct probe_and_action) <address>: New field.
8924 (hash_probe_and_action, equal_probe_and_action): Update.
8925 (register_solib_event_probe): Add address parameter.
8926 (solib_event_probe_at): Update.
8927 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8928 get_probe_address.
8929 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8930 (stap_get_probe_address): New function.
8931 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8932 (compile_probe_arg): Update.
8933 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8934 address.
8935 (handle_stap_probe): Don't relocate the probe.
8936 (stap_relocate): Remove.
8937 (stap_gen_info_probes_table_values): Update.
8938 (stap_probe_ops): Remove stap_relocate.
8939 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8940 (debug_sym_probe_fns): Update.
8941 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8942 * symtab.c (init_sal): Use memset.
8943 * symtab.h (struct symtab_and_line) <objfile>: New field.
8944 * tracepoint.c (start_tracing, stop_tracing): Update.
8945
ff887920
TT
89462014-03-03 Tom Tromey <tromey@redhat.com>
8947
8948 * probe.h (parse_probes, find_probe_by_pc)
8949 (find_probes_in_objfile): Fix comments.
8950
f0407826
DE
89512014-03-02 Doug Evans <xdje42@gmail.com>
8952
8953 * infrun.c (handle_signal_stop): Replace test for
8954 TARGET_WAITKIND_STOPPED with an assert.
8955
35e6a711
DE
89562014-03-02 Doug Evans <xdje42@gmail.com>
8957
8958 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8959
667f9d0b
DE
89602014-03-02 Doug Evans <xdje42@gmail.com>
8961
8962 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8963
dc92ace0
MK
89642014-03-01 Mark Kettenis <kettenis@gnu.org>
8965
8966 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8967
a900370f
MK
89682014-03-01 Mark Kettenis <kettenis@gnu.org>
8969
8970 * i386obsd-nat.c: Include "obsd-nat.h".
8971 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8972 add_target.
8973 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8974
b72a7981
MK
89752014-03-01 Mark Kettenis <kettenis@gnu.org>
8976
8977 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8978
96c70aba
MK
89792014-03-01 Mark Kettenis <kettenis@gnu.org>
8980
8981 * mips64obsd-nat.c: Include "obsd-nath".
8982 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8983 add_target
8984 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8985
874a80af
MK
89862014-03-01 Mark Kettenis <kettenis@gnu.org>
8987
8fd408f1
MK
8988 * amd64obsd-nat.c: Include "obsd-nat,h.
8989 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8990 add_target.
874a80af
MK
8991 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8992
9cf95373
SC
89932014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8994
8995 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8996 (find_overload_match): Update call to find_oload_champ.
8997 (find_oload_champ_namespace_loop): Likewise
8998
863e4da4
MK
89992014-02-28 Mark Kettenis <kettenis@gnu.org>
9000
025cac40
MK
9001 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9002
1ed586ce
MK
9003 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9004 * config/sparc/obsd64.mh: New file.
9005 * sparc64obsd-nat.c: New file.
9006
863e4da4
MK
9007 * obsd-nat.h: New file.
9008 * obsd-nat.c: New file.
9009 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9010 (ALLDEPFILES): Add obsd-nat.c.
9011
89de4da4
TT
90122014-02-28 Tom Tromey <tromey@redhat.com>
9013
9014 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9015 * cli-out.h (cli_ui_out_impl): Now const.
9016 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9017 * ui-out.c (struct ui_out) <impl>: Now const.
9018 (default_ui_out_impl): Now const.
9019 (ui_out_new): Make 'impl' parameter const.
9020 * ui-out.h (ui_out_new): Update.
9021
c725e7b6
MK
90222014-02-27 Mark Kettenis <kettenis@gnu.org>
9023
9024 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9025
670b46b3
MK
90262014-02-27 Mark Kettenis <kettenis@gnu.org>
9027
9028 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9029
c91550fc
JK
90302014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9031
9032 Additional PR 8882 fix.
9033 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9034
2fa0369e
PA
90352014-02-27 Pedro Alves <palves@redhat.com>
9036
9037 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9038 isn't set.
9039
d632a097
PA
90402014-02-27 Pedro Alves <palves@redhat.com>
9041
9042 PR 12702
9043 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9044 * nat/linux-waitpid.c: Include string.h.
9045 (status_to_str): Moved here and made extern.
9046 * nat/linux-waitpid.h (status_to_str): New declaration.
9047
2ebd5a35
HZ
90482014-02-27 Hui Zhu <hui@codesourcery.com>
9049
9050 PR 12702
9051 * infrun.c (ptid_match): Move ...
9052 * common/ptid.c (ptid_match): ... here.
9053 * inferior.h (ptid_match): Move ...
9054 * common/ptid.h (ptid_match): ... here.
9055
3cdd631f
MK
90562014-02-27 Mark Kettenis <kettenis@gnu.org>
9057
9058 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9059 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9060 gdb_target_obs.
9061
bee30a64
MK
90622014-02-27 Mark Kettenis <kettenis@gnu.org>
9063
9064 * obsd-tdep.c (obsd_auxv_parse): New function.
9065 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
9066
9067 * gdbarch.sh (auxv_parse): New.
9068 * gdbarch.h: Regenerated.
9069 * gdbarch.c: Regenerated.
9070 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9071
7a5a839f
LC
90722014-02-26 Ludovic Courtès <ludo@gnu.org>
9073
9074 * guile/scm-value.c (gdbscm_history_append_x): New function.
9075 (value_functions): Add it.
9076
31aa7e4e
JB
90772014-02-27 Joel Brobecker <brobecker@adacore.com>
9078
9079 * dwarf2read.c (attr_value_as_address): New function.
9080 (dwarf2_find_base_address, read_call_site_scope): Use
9081 attr_value_as_address in place of DW_ADDR.
9082 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9083 the low and high addresses. Slight rework of the handling
9084 of the high pc being a constant form, and limit it to
9085 DWARF verson 4 or higher.
9086 (dwarf2_record_block_ranges): Likewise.
9087 (read_partial_die): Likewise.
9088 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9089
9b333ba3
TT
90902014-02-26 Tom Tromey <tromey@redhat.com>
9091
9092 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9093
5f6cac40
TT
90942014-02-26 Tom Tromey <tromey@redhat.com>
9095
9096 * elfread.c (elf_read_minimal_symbols): Return early if
9097 minimal symbols have already been read. Add "ei" parameter.
9098 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9099 * minsyms.c (prim_record_minimal_symbol_full): Update.
9100 * objfiles.h (struct objstats) <n_minsyms>: Move...
9101 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9102 * symmisc.c (print_objfile_statistics): Update.
9103
2750ef27
TT
91042014-02-26 Tom Tromey <tromey@redhat.com>
9105
9106 * elfread.c (elf_read_minimal_symbols): New function, from
9107 elf_symfile_read.
9108 (elf_symfile_read): Call it.
9109
34643a32
TT
91102014-02-26 Tom Tromey <tromey@redhat.com>
9111
9112 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9113 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9114 (lookup_minimal_symbol_solib_trampoline)
9115 (lookup_minimal_symbol_by_pc_section_1)
9116 (lookup_minimal_symbol_and_objfile): Update.
9117 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9118 Don't allocate a minimal symbol if minsyms have already been read.
9119 (build_minimal_symbol_hash_tables): Update.
9120 (install_minimal_symbols): Do nothing if minsyms already read.
9121 Use the per-BFD obstack.
9122 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9123 * objfiles.c (allocate_objfile): Call
9124 terminate_minimal_symbol_table later.
9125 (have_minimal_symbols): Update.
9126 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9127 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9128 Move from struct objfile.
9129 <minsyms_read>: New field.
9130 (struct objfile) <msymbols, minimal_symbol_count,
9131 msymbol_hash, msymbol_demangled_hash>: Move.
9132 (ALL_OBJFILE_MSYMBOLS): Update.
9133 * symfile.c (read_symbols): Set minsyms_read.
9134 (reread_symbols): Update.
9135 * symmisc.c (dump_objfile, dump_msymbols): Update.
9136
2273f0ac
TT
91372014-02-26 Tom Tromey <tromey@redhat.com>
9138
9139 * minsyms.c (msymbols_sort): Remove.
9140 * minsyms.h (msymbols_sort): Remove.
9141 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9142 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9143 * elfread.c (elf_symtab_read): Don't add section offsets.
9144 * xcoffread.c (record_minimal_symbol): Don't add section offset
9145 to minimal symbol address.
9146 * somread.c (text_offset, data_offset): Remove.
9147 (som_symtab_read): Don't add section offsets to minimal symbol
9148 addresses.
9149 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9150 Don't add section offsets to minimal symbols.
9151 * coffread.c (coff_symtab_read): Don't add section offsets
9152 to minimal symbol addresses.
9153 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9154 to minimal symbol addresses.
9155 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9156 section offset to minimal symbol addresses.
9157 * mdebugread.c (parse_partial_symbols): Don't add section
9158 offset to minimal symbol addresses.
9159 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9160 offset to minimal symbol addresses.
9161
77e371c0
TT
91622014-02-26 Tom Tromey <tromey@redhat.com>
9163
9164 * ada-lang.c (ada_main_name): Update.
9165 (ada_add_standard_exceptions): Update.
9166 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9167 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9168 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9169 * auxv.c (ld_so_xfer_auxv): Update.
9170 * avr-tdep.c (avr_scan_prologue): Update.
9171 * ax-gdb.c (gen_var_ref): Update.
9172 * blockframe.c (get_pc_function_start)
9173 (find_pc_partial_function_gnu_ifunc): Update.
9174 * breakpoint.c (create_overlay_event_breakpoint)
9175 (create_longjmp_master_breakpoint)
9176 (create_std_terminate_master_breakpoint)
9177 (create_exception_master_breakpoint): Update.
9178 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9179 * c-valprint.c (c_val_print): Update.
9180 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9181 * common/agent.c (agent_look_up_symbols): Update.
9182 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9183 * dwarf2loc.c (call_site_to_target_addr): Update.
9184 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9185 * elfread.c (elf_gnu_ifunc_record_cache)
9186 (elf_gnu_ifunc_resolve_by_got): Update.
9187 * findvar.c (default_read_var_value): Update.
9188 * frame.c (inside_main_func): Update.
9189 * frv-tdep.c (frv_frame_this_id): Update.
9190 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9191 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9192 Update.
9193 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9194 (hppa_hpux_find_dummy_bpaddr): Update.
9195 * hppa-tdep.c (hppa_symbol_address): Update.
9196 * infcmd.c (until_next_command): Update.
9197 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9198 Update.
9199 * linespec.c (minsym_found, add_minsym): Update.
9200 * linux-nat.c (get_signo): Update.
9201 * linux-thread-db.c (inferior_has_bug): Update.
9202 * m32c-tdep.c (m32c_return_value)
9203 (m32c_m16c_address_to_pointer): Update.
9204 * m32r-tdep.c (m32r_frame_this_id): Update.
9205 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9206 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9207 * maint.c (maintenance_translate_address): Update.
9208 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9209 (frob_address): New function.
9210 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9211 frob_address. Rename parameter to "pc_in".
9212 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9213 addresses.
9214 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9215 Update.
9216 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9217 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9218 * objc-lang.c (find_objc_msgsend): Update.
9219 * objfiles.c (objfile_relocate1): Update.
9220 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9221 * p-valprint.c (pascal_val_print): Update.
9222 * parse.c (write_exp_msymbol): Update.
9223 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9224 (ppc_elfv2_skip_entrypoint): Update.
9225 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9226 * printcmd.c (build_address_symbolic, msym_info)
9227 (address_info): Update.
9228 * proc-service.c (ps_pglobal_lookup): Update.
9229 * psymtab.c (find_pc_sect_psymtab_closer)
9230 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9231 Change msymbol parameter to bound_minimal_symbol.
9232 * ravenscar-thread.c (get_running_thread_id): Update.
9233 * remote.c (remote_check_symbols): Update.
9234 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9235 address.
9236 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9237 * solib-dsbt.c (lm_base): Update.
9238 * solib-frv.c (lm_base, main_got): Update.
9239 * solib-irix.c (locate_base): Update.
9240 * solib-som.c (som_solib_create_inferior_hook)
9241 (link_map_start): Update.
9242 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9243 * solib-svr4.c (elf_locate_base, enable_break): Update.
9244 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9245 (flush_ea_cache): Update.
9246 * stabsread.c (define_symbol, scan_file_globals): Update.
9247 * stack.c (find_frame_funname): Update.
9248 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9249 (debug_qf_find_pc_sect_symtab): Update.
9250 * symfile.c (simple_read_overlay_table)
9251 (simple_overlay_update): Update.
9252 * symfile.h (struct quick_symbol_functions)
9253 <find_pc_sect_symtab>: Change type of msymbol to
9254 bound_minimal_symbol.
9255 * symmisc.c (dump_msymbols): Update.
9256 * symtab.c (find_pc_sect_symtab_via_partial)
9257 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9258 (search_symbols, print_msymbol_info): Update.
9259 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9260 (MSYMBOL_VALUE_ADDRESS): Redefine.
9261 (BMSYMBOL_VALUE_ADDRESS): New macro.
9262 * tracepoint.c (scope_info): Update.
9263 * tui/tui-disasm.c (tui_find_disassembly_address)
9264 (tui_get_begin_asm_address): Update.
9265 * valops.c (find_function_in_inferior): Update.
9266 * value.c (value_static_field, value_fn_field): Update.
9267
3b7344d5
TT
92682014-02-26 Tom Tromey <tromey@redhat.com>
9269
9270 * ada-lang.c (ada_update_initial_language): Update.
9271 (ada_main_name, ada_has_this_exception_support): Update.
9272 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9273 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9274 * arm-tdep.c (arm_skip_stub): Update.
9275 * auxv.c (ld_so_xfer_auxv): Update.
9276 * avr-tdep.c (avr_scan_prologue): Update.
9277 * ax-gdb.c (gen_var_ref): Update.
9278 * breakpoint.c (struct breakpoint_objfile_data)
9279 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9280 type to bound_minimal_symbol.
9281 (create_overlay_event_breakpoint)
9282 (create_longjmp_master_breakpoint)
9283 (create_std_terminate_master_breakpoint)
9284 (create_exception_master_breakpoint): Update.
9285 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9286 * c-exp.y (classify_name): Update.
9287 * coffread.c (coff_symfile_read): Update.
9288 * common/agent.c (agent_look_up_symbols): Update.
9289 * d-lang.c (d_main_name): Update.
9290 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9291 * dec-thread.c (enable_dec_thread): Update.
9292 * dwarf2loc.c (call_site_to_target_addr): Update.
9293 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9294 * eval.c (evaluate_subexp_standard): Update.
9295 * findvar.c (struct minsym_lookup_data) <result>: Change type
9296 to bound_minimal_symbol.
9297 <objfile>: Remove.
9298 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9299 * frame.c (inside_main_func): Update.
9300 * frv-tdep.c (frv_frame_this_id): Update.
9301 * gcore.c (call_target_sbrk): Update.
9302 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9303 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9304 Update.
9305 * go-lang.c (go_main_name): Update.
9306 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9307 (hppa_hpux_find_import_stub_for_addr): Update.
9308 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9309 Update. Change return type.
9310 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9311 type.
9312 * jit.c (jit_breakpoint_re_set_internal): Update.
9313 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9314 Update.
9315 * linux-nat.c (get_signo): Update.
9316 * linux-thread-db.c (inferior_has_bug): Update
9317 * m32c-tdep.c (m32c_return_value)
9318 (m32c_m16c_address_to_pointer): Update.
9319 * m32r-tdep.c (m32r_frame_this_id): Update.
9320 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9321 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9322 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9323 lookup_minimal_symbol. Change return type.
9324 (lookup_minimal_symbol): Remove.
9325 (lookup_bound_minimal_symbol): Update.
9326 (lookup_minimal_symbol_text): Change return type.
9327 (lookup_minimal_symbol_solib_trampoline): Change return type.
9328 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9329 (lookup_minimal_symbol_solib_trampoline): Change return type.
9330 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9331 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9332 (value_nsstring, find_imps): Update.
9333 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9334 * p-lang.c (pascal_main_name): Update.
9335 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9336 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9337 * proc-service.c (ps_pglobal_lookup): Update.
9338 * ravenscar-thread.c (get_running_thread_msymbol): Change
9339 return type.
9340 (has_ravenscar_runtime, get_running_thread_id): Update.
9341 * remote.c (remote_check_symbols): Update.
9342 * sol-thread.c (ps_pglobal_lookup): Update.
9343 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9344 * solib-dsbt.c (lm_base): Update.
9345 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9346 Update.
9347 * solib-irix.c (locate_base): Update.
9348 * solib-som.c (som_solib_create_inferior_hook)
9349 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9350 Update.
9351 * solib-spu.c (spu_enable_break): Update.
9352 * solib-svr4.c (elf_locate_base, enable_break): Update.
9353 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9354 (flush_ea_cache): Update.
9355 * stabsread.c (define_symbol): Update.
9356 * symfile.c (simple_read_overlay_table): Update.
9357 * symtab.c (find_pc_sect_line): Update.
9358 * tracepoint.c (scope_info): Update.
9359 * tui-disasm.c (tui_get_begin_asm_address): Update.
9360 * value.c (value_static_field): Update.
9361
40c1a007
TT
93622014-02-26 Tom Tromey <tromey@redhat.com>
9363
9364 * minsyms.c (prim_record_minimal_symbol_full): Use
9365 SET_MSYMBOL_VALUE_ADDRESS.
9366 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9367 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9368 SET_MSYMBOL_VALUE_ADDRESS.
9369 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9370 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9371
efd66ac6
TT
93722014-02-26 Tom Tromey <tromey@redhat.com>
9373
9374 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9375 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9376 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9377 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9378 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9379 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9380 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9381 * ada-lang.c (ada_main_name): Update.
9382 (ada_lookup_simple_minsym): Update.
9383 (ada_make_symbol_completion_list): Update.
9384 (ada_add_standard_exceptions): Update.
9385 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9386 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9387 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9388 * arm-tdep.c (skip_prologue_function): Update.
9389 (arm_skip_stack_protector, arm_skip_stub): Update.
9390 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9391 (arm_wince_skip_main_prologue): Update.
9392 * auxv.c (ld_so_xfer_auxv): Update.
9393 * avr-tdep.c (avr_scan_prologue): Update.
9394 * ax-gdb.c (gen_var_ref): Update.
9395 * block.c (call_site_for_pc): Update.
9396 * blockframe.c (get_pc_function_start): Update.
9397 (find_pc_partial_function_gnu_ifunc): Update.
9398 * breakpoint.c (create_overlay_event_breakpoint): Update.
9399 (create_longjmp_master_breakpoint): Update.
9400 (create_std_terminate_master_breakpoint): Update.
9401 (create_exception_master_breakpoint): Update.
9402 (resolve_sal_pc): Update.
9403 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9404 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9405 Update.
9406 * c-valprint.c (c_val_print): Update.
9407 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9408 * coffread.c (coff_symfile_read): Update.
9409 * common/agent.c (agent_look_up_symbols): Update.
9410 * dbxread.c (find_stab_function_addr): Update.
9411 (end_psymtab): Update.
9412 * dwarf2loc.c (call_site_to_target_addr): Update.
9413 (func_verify_no_selftailcall): Update.
9414 (tailcall_dump): Update.
9415 (call_site_find_chain_1): Update.
9416 (dwarf_expr_reg_to_entry_parameter): Update.
9417 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9418 (elf_gnu_ifunc_resolve_by_got): Update.
9419 * f-valprint.c (info_common_command): Update.
9420 * findvar.c (read_var_value): Update.
9421 * frame.c (get_prev_frame_1): Update.
9422 (inside_main_func): Update.
9423 * frv-tdep.c (frv_skip_main_prologue): Update.
9424 (frv_frame_this_id): Update.
9425 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9426 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9427 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9428 (gnuv3_skip_trampoline): Update.
9429 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9430 (hppa64_hpux_in_solib_call_trampoline): Update.
9431 (hppa_hpux_skip_trampoline_code): Update.
9432 (hppa64_hpux_search_dummy_call_sequence): Update.
9433 (hppa_hpux_find_import_stub_for_addr): Update.
9434 (hppa_hpux_find_dummy_bpaddr): Update.
9435 * hppa-tdep.c (hppa_symbol_address)
9436 (hppa_lookup_stub_minimal_symbol): Update.
9437 * i386-tdep.c (i386_skip_main_prologue): Update.
9438 (i386_pe_skip_trampoline_code): Update.
9439 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9440 * infcall.c (get_function_name): Update.
9441 * infcmd.c (until_next_command): Update.
9442 * jit.c (jit_breakpoint_re_set_internal): Update.
9443 (jit_inferior_init): Update.
9444 * linespec.c (minsym_found): Update.
9445 (add_minsym): Update.
9446 * linux-fork.c (info_checkpoints_command): Update.
9447 * linux-nat.c (get_signo): Update.
9448 * linux-thread-db.c (inferior_has_bug): Update.
9449 * m32c-tdep.c (m32c_return_value): Update.
9450 (m32c_m16c_address_to_pointer): Update.
9451 (m32c_m16c_pointer_to_address): Update.
9452 * m32r-tdep.c (m32r_frame_this_id): Update.
9453 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9454 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9455 * maint.c (maintenance_translate_address): Update.
9456 * minsyms.c (add_minsym_to_hash_table): Update.
9457 (add_minsym_to_demangled_hash_table): Update.
9458 (msymbol_objfile): Update.
9459 (lookup_minimal_symbol): Update.
9460 (iterate_over_minimal_symbols): Update.
9461 (lookup_minimal_symbol_text): Update.
9462 (lookup_minimal_symbol_by_pc_name): Update.
9463 (lookup_minimal_symbol_solib_trampoline): Update.
9464 (lookup_minimal_symbol_by_pc_section_1): Update.
9465 (lookup_minimal_symbol_and_objfile): Update.
9466 (prim_record_minimal_symbol_full): Update.
9467 (compare_minimal_symbols): Update.
9468 (compact_minimal_symbols): Update.
9469 (build_minimal_symbol_hash_tables): Update.
9470 (install_minimal_symbols): Update.
9471 (terminate_minimal_symbol_table): Update.
9472 (find_solib_trampoline_target): Update.
9473 (minimal_symbol_upper_bound): Update.
9474 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9475 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9476 (mips_skip_pic_trampoline_code): Update.
9477 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9478 * objc-lang.c (selectors_info): Update.
9479 (classes_info): Update.
9480 (find_methods): Update.
9481 (find_imps): Update.
9482 (find_objc_msgsend): Update.
9483 * objfiles.c (objfile_relocate1): Update.
9484 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9485 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9486 * p-valprint.c (pascal_val_print): Update.
9487 * parse.c (write_exp_msymbol): Update.
9488 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9489 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9490 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9491 * printcmd.c (build_address_symbolic): Update.
9492 (sym_info): Update.
9493 (address_info): Update.
9494 * proc-service.c (ps_pglobal_lookup): Update.
9495 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9496 (find_pc_sect_psymtab): Update.
9497 * python/py-framefilter.c (py_print_frame): Update.
9498 * ravenscar-thread.c (get_running_thread_id): Update.
9499 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9500 Update.
9501 * remote.c (remote_check_symbols): Update.
9502 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9503 (rs6000_skip_trampoline_code): Update.
9504 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9505 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9506 * solib-dsbt.c (lm_base): Update.
9507 * solib-frv.c (lm_base): Update.
9508 (main_got): Update.
9509 * solib-irix.c (locate_base): Update.
9510 * solib-som.c (som_solib_create_inferior_hook): Update.
9511 (som_solib_desire_dynamic_linker_symbols): Update.
9512 (link_map_start): Update.
9513 * solib-spu.c (spu_enable_break): Update.
9514 (ocl_enable_break): Update.
9515 * solib-svr4.c (elf_locate_base): Update.
9516 (enable_break): Update.
9517 * spu-tdep.c (spu_get_overlay_table): Update.
9518 (spu_catch_start): Update.
9519 (flush_ea_cache): Update.
9520 * stabsread.c (define_symbol): Update.
9521 (scan_file_globals): Update.
9522 * stack.c (find_frame_funname): Update.
9523 (frame_info): Update.
9524 * symfile.c (simple_read_overlay_table): Update.
9525 (simple_overlay_update): Update.
9526 * symmisc.c (dump_msymbols): Update.
9527 * symtab.c (fixup_section): Update.
9528 (find_pc_sect_line): Update.
9529 (skip_prologue_sal): Update.
9530 (search_symbols): Update.
9531 (print_msymbol_info): Update.
9532 (rbreak_command): Update.
9533 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9534 (completion_list_objc_symbol): Update.
9535 (default_make_symbol_completion_list_break_on): Update.
9536 * tracepoint.c (scope_info): Update.
9537 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9538 (tui_get_begin_asm_address): Update.
9539 * valops.c (find_function_in_inferior): Update.
9540 * value.c (value_static_field): Update.
9541 (value_fn_field): Update.
9542
50e65b17
TT
95432014-02-26 Tom Tromey <tromey@redhat.com>
9544
9545 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9546 bound minimal symbols. Move code that knows about minsym
9547 table layout...
9548 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9549 function.
9550 * minsyms.h (minimal_symbol_upper_bound): Declare.
9551 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9552 minimal_symbol_upper_bound.
9553
1b588015
JB
95542014-02-27 Joel Brobecker <brobecker@adacore.com>
9555
9556 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9557 Use the type's name if its basic type does not have a tag.
9558
dbb9c2b1
JB
95592014-02-27 Joel Brobecker <brobecker@adacore.com>
9560
9561 * dwarf2read.c (read_subrange_type): Add comment.
9562
55426c9d
JB
95632014-02-27 Joel Brobecker <brobecker@adacore.com>
9564
9565 * dwarf2read.c (update_enumeration_type_from_children): New
9566 function, mostly extracted from process_structure_scope.
9567 (read_enumeration_type): Call update_enumeration_type_from_children.
9568 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9569 and flag_flag_enum fields.
9570
f2fce0ca
PA
95712014-02-26 Pedro Alves <palves@redhat.com>
9572
9573 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9574 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9575 to_xfer_partial method.
9576
7a44e40e
PA
95772014-02-26 Pedro Alves <palves@redhat.com>
9578
9579 * target.c (complete_target_initialization): Don't install
9580 default_xfer_partial as to_xfer_partial hook.
9581 (nomemory): Delete.
9582 (update_current_target): Don't INHERIT nor de_fault
9583 deprecated_xfer_memory. Delete de_fault macro.
9584 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9585 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9586 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9587 field.
9588
bd265cd0
PA
95892014-02-26 Pedro Alves <palves@redhat.com>
9590
9591 * go32-nat.c (my_write_child): New function.
9592 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9593 (go32_xfer_partial): New function.
9594 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9595 Instead install a to_xfer_partial hook.
9596
9d46c4e5
PA
95972014-02-26 Pedro Alves <palves@redhat.com>
9598
9599 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9600 to_xfer_partial helper. Rewrite.
9601 (procfs_xfer_partial): New function.
9602 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9603 Install a to_xfer_partial hook.
9604
a1583b1f
PA
96052014-02-26 Pedro Alves <palves@redhat.com>
9606
9607 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9608 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9609 (m32r_xfer_partial): New function.
9610 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9611 Install a to_xfer_partial hook.
9612
6df1b29f
PA
96132014-02-26 Pedro Alves <palves@redhat.com>
9614
9615 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9616 helper.
9617 (mips_xfer_partial): New function.
9618 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9619 hook. Install a to_xfer_partial hook.
9620
dc53a7ad
JB
96212014-02-26 Joel Brobecker <brobecker@adacore.com>
9622
9623 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9624 * gdbtypes.c (create_array_type_with_stride): New function,
9625 renaming create_array_type, but with an added parameter
9626 called "bit_stride".
9627 (create_array_type): Re-implement using
9628 create_array_type_with_stride.
9629 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9630 and DW_AT_bit_stride attributes.
9631
12ab52e9
PA
96322014-02-26 Pedro Alves <palves@redhat.com>
9633
9634 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9635 task-specific breakpoints.
9636
d16461ae
PA
96372014-02-25 Pedro Alves <palves@redhat.com>
9638
9639 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9640 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9641
a8b16220
SS
96422014-02-25 Stan Shebs <stan@codesourcery.com>
9643
9644 * defs.h: Annotate comments for Doxygen.
9645
b9e795ee
TT
96462014-02-25 Tom Tromey <tromey@redhat.com>
9647
9648 * target.h (target_ignore): Don't declare.
9649 * target.c (target_ignore): Remove.
9650
849c862e
JK
96512014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9652
9653 PR gdb/16626
9654 * auto-load.c (auto_load_objfile_script_1): Change filename to
9655 debugfile.
9656
475109d8
JB
96572014-02-25 Joel Brobecker <brobecker@adacore.com>
9658
9659 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9660 documentation. Adjust prototype to match the target_ops
9661 to_xfer_partial method. Adjust implementation accordingly.
9662
e186c3bd
HZ
96632014-02-25 Hui Zhu <hui@codesourcery.com>
9664
9665 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9666 to_traceframe_info.
9667
6d451942
KB
96682014-02-25 Kevin Buettner <kevinb@redhat.com>
9669
041ab8b4 9670 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9671 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9672 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9673 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9674 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9675 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9676 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9677 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9678 New constants.
9679 (rl78_register_type): Use a data pointer type for SP and
9680 new pseudo registers mentioned above. Use a 16 bit integer
9681 type for all other register pairs.
9682 (rl78_register_name, rl78_g10_register_name): Update for
9683 new pseudo registers.
9684 (rl78_pseudo_register_read): Likewise.
9685 (rl78_pseudo_register_write): Likewise.
9686 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9687 to the newly added pseudo registers.
9688
eddf0bae
DE
96892014-02-24 Doug Evans <dje@google.com>
9690
9691 * value.c (record_latest_value): Fix comment.
9692 * printcmd.c (print_command_1): Remove code to handle -1 return from
9693 record_latest_value.
9694
e96027e0
PA
96952014-02-24 Pedro Alves <palves@redhat.com>
9696
9697 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9698 deprecated_xfer_memory hook.
9699 (procfs_xfer_partial): Call procfs_xfer_memory instead
9700 of the deprecated_xfer_memory target hook.
9701 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9702 helper.
9703
0837c976
YZ
97042014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9705
9706 * windows-nat.c (windows_xfer_shared_libraries): Return
9707 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9708 requested object is TARGET_OBJECT_LIBRARIES.
9709
bc113b4e
YQ
97102014-02-24 Yao Qi <yao@codesourcery.com>
9711
9712 * target.h (enum target_xfer_status)
9713 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9714 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9715 explicitly. New.
9716 * corefile.c (memory_error_message): User updated.
9717 * exec.c (section_table_read_available_memory): Likewise.
9718 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9719 * target.c (target_xfer_status_to_string): Likewise.
9720 (raw_memory_xfer_partial): Likewise.
9721 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9722 * valops.c (read_value_memory): Likewise.
9723 * exec.h: Update comments.
9724
01cb8804
YQ
97252014-02-24 Yao Qi <yao@codesourcery.com>
9726
9727 * target.c (target_xfer_status_to_string): Rename argument err
9728 to status.
9729 * target.h (target_xfer_status_to_string): Update declaration.
9730 Replace target_xfer_error_to_string with
9731 target_xfer_status_to_string in comment.
9732
93063aa6
YQ
97332014-02-24 Yao Qi <yao@codesourcery.com>
9734
9735 * mips-linux-nat.c (super_close): Update its type.
9736 (mips_linux_close): Pass 'self' to super_close.
9737
5c328c05
YQ
97382014-02-24 Yao Qi <yao@codesourcery.com>
9739
9740 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9741 * corefile.c (read_memory): Adjusted.
9742 * target.c (target_write_with_progress): Adjusted.
9743
f73023dd
YQ
97442014-02-23 Yao Qi <yao@codesourcery.com>
9745
9746 Revert two patches:
9747
9748 2013-10-25 Yao Qi <yao@codesourcery.com>
9749
9750 * remote.c (remote_traceframe_info): Return early if
9751 traceframe is not selected.
9752
9753 2013-07-19 Yao Qi <yao@codesourcery.com>
9754
9755 * target.c (update_current_target): Change the default action
9756 of 'to_traceframe_info' from tcomplain to return_zero.
9757 * target.h (struct target_ops) <to_traceframe_info>: Add more
9758 comments.
9759
5a2eb0ef
YQ
97602014-02-23 Yao Qi <yao@codesourcery.com>
9761
9762 * valops.c (read_value_memory): Rewrite it. Call
9763 target_xfer_partial in a loop.
9764 * exec.h (section_table_available_memory): Remove declaration.
9765 Move comments to ...
9766 * exec.c (section_table_available_memory): ... here. Make it
9767 static.
9768
1ee79381
YQ
97692014-02-23 Yao Qi <yao@codesourcery.com>
9770
9771 * exec.c (section_table_read_available_memory): New function.
9772 * exec.h (section_table_read_available_memory): Declare.
9773 * ctf.c (ctf_xfer_partial): Call
9774 section_table_read_available_memory.
9775 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9776
1ca49d37
YQ
97772014-02-23 Yao Qi <yao@codesourcery.com>
9778
9779 * ctf.c (ctf_xfer_partial): Move code to ...
9780 * exec.c (exec_read_partial_read_only): ... it. New function.
9781 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9782 * tracefile.c: Include "exec.h".
9783 * exec.h (exec_read_partial_read_only): Declare.
9784
a283690e
YQ
97852014-02-23 Yao Qi <yao@codesourcery.com>
9786
9787 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9788 (tfile_has_memory): Remove.
9789 (init_tfile_ops): Don't set fields to_has_all_memory and
9790 to_has_memory of tfile_ops.
9791 * tracefile.c (tracefile_has_all_memory): New function.
9792 (tracefile_has_memory): New function.
9793 (init_tracefile_ops): Initialize fields to_has_all_memory and
9794 to_has_memory of 'ops'.
9795
12e03cd0
YQ
97962014-02-23 Yao Qi <yao@codesourcery.com>
9797
9798 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9799 (ctf_thread_alive, ctf_get_trace_status): Remove.
9800 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9801 init_tracefile_ops.
9802 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9803 (tfile_has_stack, tfile_has_registers): Remove.
9804 (tfile_thread_alive): Remove.
9805 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9806 init_tracefile_ops.
9807 * tracefile.c (tracefile_has_stack): New function.
9808 (tracefile_has_registers): New function.
9809 (tracefile_thread_alive): New function.
9810 (tracefile_get_trace_status): New function.
9811 (init_tracefile_ops): New function.
9812 * tracefile.h (init_tracefile_ops): Declare.
9813
11395323
YQ
98142014-02-23 Yao Qi <yao@codesourcery.com>
9815
9816 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9817 (O_LARGEFILE): Likewise.
9818 (tfile_ops): Likewise.
9819 (TRACE_HEADER_SIZE): Likewise.
9820 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9821 (cur_data_size): Likewise.
9822 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9823 (tfile_close, tfile_files_info): Likewise.
9824 (tfile_get_trace_status): Likewise.
9825 (tfile_get_tracepoint_status): Likewise.
9826 (tfile_get_traceframe_address): Likewise.
9827 (tfile_trace_find, match_blocktype): Likewise.
9828 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9829 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9830 (tfile_get_trace_state_variable_value): Likewise.
9831 (tfile_has_all_memory, tfile_has_memory): Likewise.
9832 (tfile_has_stack, tfile_has_registers): Likewise.
9833 (tfile_thread_alive, build_traceframe_info): Likewise.
9834 (tfile_traceframe_info, init_tfile_ops): Likewise.
9835 (_initialize_tracepoint): Don't call init_tfile_ops
9836 and add_target_with_completer.
9837 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9838 exec.h, completer.h and filenames.h.
9839 (_initialize_tracefile_tfile): New function.
9840
7951c4eb
YQ
98412014-02-23 Yao Qi <yao@codesourcery.com>
9842
9843 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9844 tracefile-tfile.o.
9845 (HFILES_NO_SRCDIR): Add tracefile.h.
9846 * ctf.c: Include "tracefile.h".
9847 * tracefile.h: New file.
9848 * tracefile.c: New file
9849 * tracefile-tfile.c: New file.
9850 * tracepoint.c: Include "tracefile.h".
9851 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9852 (stop_reason_names): Add const.
9853 (trace_file_writer_xfree): Move it to tracefile.c.
9854 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9855 (trace_save_ctf): Likewise.
9856 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9857 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9858 (tfile_write_header, tfile_write_regblock_type): Likewise.
9859 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9860 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9861 (tfile_write_raw_data, tfile_end): Likewise.
9862 (tfile_trace_file_writer_new): Likewise.
9863 (free_uploaded_tp): Make it extern.
9864 (free_uploaded_tsv): Make it extern.
9865 (_initialize_tracepoint): Move code to register command 'tsave'
9866 to tracefile.c.
9867 * tracepoint.h (stop_reason_names): Declare.
9868 (struct trace_frame_write_ops): Move it to tracefile.h.
9869 (struct trace_file_write_ops): Likewise.
9870 (struct trace_file_writer): Likewise.
9871 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9872
184cd072
JK
98732014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9874
9875 PR gdb/16594
9876 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9877 process name.
9878 (get_cores_used_by_process): New parameter num_cores, use it.
9879 (linux_xfer_osdata_processes): Pass num_cores to it.
9880 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9881 process name.
9882
c63528fc
AK
98832014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9884
9885 * target.c (memory_xfer_partial): Fix length arg in call to
9886 breakpoint_xfer_memory.
9887
d7b30f67
SDJ
98882014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9889
9890 PR tdep/16397
9891 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9892 number comes after the + or - signs. Adjust length of register
9893 name to be extracted.
9894
8838afaf
TT
98952014-02-20 Tom Tromey <tromey@redhat.com>
9896
9897 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9898 (ada_varobj_ops): Mark "extern".
9899
05227d14
TT
99002014-02-20 Tom Tromey <tromey@redhat.com>
9901
9902 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9903
1254eefc
DE
99042014-02-20 Doug Evans <xdje42@gmail.com>
9905
9906 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9907 All callers updated.
9908 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9909 All callers updated.
9910 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9911 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9912
adde2bff
DE
99132014-02-20 lin zuojian <manjian2006@gmail.com>
9914 Joel Brobecker <brobecker@adacore.com>
9915 Doug Evans <xdje42@gmail.com>
9916
9917 PR symtab/16581
9918 * dwarf2read.c (struct die_info): New member in_process.
9919 (reset_die_in_process): New function.
9920 (process_die): Set it at the start, reset when returning.
9921 (inherit_abstract_dies): Only call process_die if origin_child_die
9922 not already being processed.
9923
3be75f87
JB
99242014-02-20 Joel Brobecker <brobecker@adacore.com>
9925
9926 * windows-nat.c (handle_unload_dll): Add function documentation.
9927 (do_initial_windows_stuff): Add comment explaining why we wait
9928 until after inferior initialization has finished before
9929 processing all DLLs.
9930
47f7ffdb
JB
99312014-02-20 Joel Brobecker <brobecker@adacore.com>
9932
9933 * windows-nat.c (get_module_name): Delete.
9934 (windows_get_exec_module_filename): New function, mostly
9935 inspired from get_module_name.
9936 (windows_pid_to_exec_file): Replace call to get_module_name
9937 by call to windows_get_exec_module_filename.
9938
1cd9feab
JB
99392014-02-20 Joel Brobecker <brobecker@adacore.com>
9940
9941 * windows-nat.c (handle_load_dll): Rewrite this function's
9942 introductory comment. Remove code using get_module_name
9943 to get the DLL's name.
9944
ea39ad35
JB
99452014-02-20 Joel Brobecker <brobecker@adacore.com>
9946
9947 * windows-nat.c (get_windows_debug_event): Ignore
9948 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9949 if windows_initialization_done == 0.
9950 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9951 Adjust implementation to always load all DLLs.
9952 (do_initial_windows_stuff): Replace call to
9953 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9954
95060284
JB
99552014-02-20 Joel Brobecker <brobecker@adacore.com>
9956
9957 * windows-nat.c (_initialize_windows_nat): Deprecate the
9958 "dll-symbols" command. Turn the "add-shared-symbol-files"
9959 and "assf" aliases into commands, and deprecate them as well.
9960 * NEWS: Add entry explaining that "dll-symbols" and its two
9961 aliases are now deprecated.
9962
8d4fdb12
JB
99632014-02-20 Joel Brobecker <brobecker@adacore.com>
9964
9965 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9966 new-line in debug string. Remove trailing spaces.
9967
1b281443
SS
99682014-02-19 Stan Shebs <stan@codesourcery.com>
9969
9970 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9971
f7bd0f78
SC
99722014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9973
9974 * NEWS: Add entry for the new feature
9975 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9976 and class values.
9977
399ebc3d
SS
99782014-02-19 Stan Shebs <stan@codesourcery.com>
9979
9980 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9981
c658158d
PA
99822014-02-19 Pedro Alves <palves@redhat.com>
9983
9984 * common/ptid.h (struct ptid): Mention that process_stratum
9985 targets should prefer ptid.lwp.
9986
ba348170
PA
99872014-02-19 Pedro Alves <palves@redhat.com>
9988
9989 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9990 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9991 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9992 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9993 store remote thread ids rather than ptid.tid.
9994 (_initialize_remote): Adjust.
9995
ac01945b
TT
99962014-02-19 Tom Tromey <tromey@redhat.com>
9997
9998 * target.c (target_get_unwinder): Rewrite.
9999 (target_get_tailcall_unwinder): Rewrite.
10000 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10001 (record_btrace_to_get_tailcall_unwinder): New function.
10002 (init_record_btrace_ops): Update.
10003 * target.h (struct target_ops) <to_get_unwinder,
10004 to_get_tailcall_unwinder>: Now function pointers. Use
10005 TARGET_DEFAULT_RETURN.
10006
8476dc92
TT
100072014-02-19 Tom Tromey <tromey@redhat.com>
10008
10009 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10010 argument.
10011 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10012
c0eca49f
TT
100132014-02-19 Tom Tromey <tromey@redhat.com>
10014
10015 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10016 directly.
10017 * target-delegates.c: Rebuild.
10018 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10019 TARGET_DEFAULT_FUNC.
10020 * target.c (default_target_decr_pc_after_break): Rename from
10021 forward_target_decr_pc_after_break. Simplify.
10022 (target_decr_pc_after_break): Rely on delegation.
10023
596b6b39
TT
100242014-02-19 Tom Tromey <tromey@redhat.com>
10025
10026 * target.c (update_current_target): Do not INHERIT to_doc or
10027 to_magic. Do not de_fault to_open or to_close.
10028
b427c1bc
TT
100292014-02-19 Tom Tromey <tromey@redhat.com>
10030
10031 * gcore.h (objfile_find_memory_regions): Declare.
10032 * gcore.c (objfile_find_memory_regions): No longer static. Add
10033 "self" argument.
10034 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10035 * exec.c: Include gcore.h.
10036 (exec_set_find_memory_regions): Remove.
10037 (exec_find_memory_regions): Remove.
10038 (exec_do_find_memory_regions): Remove.
10039 (init_exec_ops): Update.
10040 * defs.h (exec_set_find_memory_regions): Remove.
10041
9b144037
TT
100422014-02-19 Tom Tromey <tromey@redhat.com>
10043
10044 * target-delegates.c: Rebuild.
10045 * target.h (struct target_ops) <to_extra_thread_info,
10046 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10047 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10048 not 0, in TARGET_DEFAULT_RETURN.
10049
555bbdeb
TT
100502014-02-19 Tom Tromey <tromey@redhat.com>
10051
10052 * target.c (complete_target_initialization): Remove casts. Use
10053 return_zero_has_execution.
10054 (return_zero): Add "ignore" argument.
10055 (return_zero_has_execution): New function.
10056 (init_dummy_target): Remove casts. Use
10057 return_zero_has_execution.
10058
be4ddd36
TT
100592014-02-19 Tom Tromey <tromey@redhat.com>
10060
10061 * target.c (update_current_target): Update comments. Do not
10062 INHERIT to_stratum.
10063
2117c711
TT
100642014-02-19 Tom Tromey <tromey@redhat.com>
10065
10066 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10067 needed.
10068 * corelow.c (core_read_description): Delegate when needed.
10069 * remote.c (remote_read_description): Delegate when needed.
10070 * target-delegates.c: Rebuild.
10071 * target.c (target_read_description): Rewrite.
10072 * target.h (struct target_ops) <to_read_description>: Update
10073 comment. Use TARGET_DEFAULT_RETURN.
10074
e88ef65c
TT
100752014-02-19 Tom Tromey <tromey@redhat.com>
10076
10077 * target-delegates.c: Rebuild.
10078 * target.c (update_current_target): Don't inherit or default
10079 to_can_run.
10080 (find_default_run_target): Check against delegate_can_run.
10081 * target.h (struct target_ops) <to_can_run>: Use
10082 TARGET_DEFAULT_RETURN.
10083
86a0854a
TT
100842014-02-19 Tom Tromey <tromey@redhat.com>
10085
10086 * target-delegates.c: Rebuild.
10087 * target.c (target_disconnect): Unconditionally delegate.
10088 * target.h (struct target_ops) <to_disconnect>: Use
10089 TARGET_DEFAULT_NORETURN.
10090
ee97f592
TT
100912014-02-19 Tom Tromey <tromey@redhat.com>
10092
10093 * record.c (record_stop): Unconditionally delegate.
10094 * target-delegates.c: Rebuild.
10095 * target.c (target_stop_recording): Unconditionally delegate.
10096 * target.h (struct target_ops) <to_stop_recording>: Use
10097 TARGET_DEFAULT_IGNORE.
10098
6dc7fcf4
TT
100992014-02-19 Tom Tromey <tromey@redhat.com>
10100
10101 * target-delegates.c: Rebuild.
10102 * target.c (target_enable_btrace): Unconditionally delegate.
10103 * target.h (struct target_ops) <to_enable_btrace>: Use
10104 TARGET_DEFAULT_NORETURN.
10105
eb5b20d4
TT
101062014-02-19 Tom Tromey <tromey@redhat.com>
10107
10108 * target-delegates.c: Rebuild.
10109 * target.c (target_read_btrace): Unconditionally delegate.
10110 * target.h (struct target_ops) <to_read_btrace>: Use
10111 TARGET_DEFAULT_NORETURN.
10112
9ace480d
TT
101132014-02-19 Tom Tromey <tromey@redhat.com>
10114
10115 * target-delegates.c: Rebuild.
10116 * target.c (target_teardown_btrace): Unconditionally delegate.
10117 * target.h (struct target_ops) <to_teardown_btrace>: Use
10118 TARGET_DEFAULT_NORETURN.
10119
8dc292d3
TT
101202014-02-19 Tom Tromey <tromey@redhat.com>
10121
10122 * target-delegates.c: Rebuild.
10123 * target.c (target_disable_btrace): Unconditionally delegate.
10124 * target.h (struct target_ops) <to_disable_btrace>: Use
10125 TARGET_DEFAULT_NORETURN.
10126
58a5184e
TT
101272014-02-19 Tom Tromey <tromey@redhat.com>
10128
10129 * target-delegates.c: Rebuild.
10130 * target.c (default_search_memory): New function.
10131 (simple_search_memory): Update comment.
10132 (target_search_memory): Unconditionally delegate.
10133 * target.h (struct target_ops) <to_search_memory>: Use
10134 TARGET_DEFAULT_FUNC.
10135
8de71aab
TT
101362014-02-19 Tom Tromey <tromey@redhat.com>
10137
10138 * auxv.c (default_auxv_parse): No longer static.
10139 (target_auxv_parse): Unconditionally delegate.
10140 * auxv.h (default_auxv_parse): Declare.
10141 * target-delegates.c: Rebuild.
10142 * target.c: Include auxv.h.
10143 * target.h (struct target_ops) <to_auxv_parse>: Use
10144 TARGET_DEFAULT_FUNC.
10145
6b2c5a57
TT
101462014-02-19 Tom Tromey <tromey@redhat.com>
10147
10148 * target-delegates.c: Rebuild.
10149 * target.c (target_memory_map): Unconditionally delegate.
10150 * target.h (struct target_ops) <to_memory_map>: Use
10151 TARGET_DEFAULT_RETURN.
10152
cbffc065
TT
101532014-02-19 Tom Tromey <tromey@redhat.com>
10154
10155 * target-delegates.c: Rebuild.
10156 * target.c (target_thread_alive): Unconditionally delegate.
10157 * target.h (struct target_ops) <to_thread_alive>: Use
10158 TARGET_DEFAULT_RETURN.
10159
f09e2107
TT
101602014-02-19 Tom Tromey <tromey@redhat.com>
10161
10162 * target-delegates.c: Rebuild.
10163 * target.c (target_save_record): Unconditionally delegate.
10164 * target.h (struct target_ops) <to_save_record>: Use
10165 TARGET_DEFAULT_NORETURN.
10166
07366925
TT
101672014-02-19 Tom Tromey <tromey@redhat.com>
10168
10169 * target-delegates.c: Rebuild.
10170 * target.c (target_delete_record): Unconditionally delegate.
10171 * target.h (struct target_ops) <to_delete_record>: Use
10172 TARGET_DEFAULT_NORETURN.
10173
dd2e9d25
TT
101742014-02-19 Tom Tromey <tromey@redhat.com>
10175
10176 * target-delegates.c: Rebuild.
10177 * target.c (target_record_is_replaying): Unconditionally
10178 delegate.
10179 * target.h (struct target_ops) <to_record_is_replaying>: Use
10180 TARGET_DEFAULT_RETURN.
10181
671e76cc
TT
101822014-02-19 Tom Tromey <tromey@redhat.com>
10183
10184 * target-delegates.c: Rebuild.
10185 * target.c (target_goto_record_begin): Unconditionally delegate.
10186 * target.h (struct target_ops) <to_goto_record_begin>: Use
10187 TARGET_DEFAULT_NORETURN.
10188
e9179bb3
TT
101892014-02-19 Tom Tromey <tromey@redhat.com>
10190
10191 * target-delegates.c: Rebuild.
10192 * target.c (target_goto_record_end): Unconditionally delegate.
10193 * target.h (struct target_ops) <to_goto_record_end>: Use
10194 TARGET_DEFAULT_NORETURN.
10195
05969c84
TT
101962014-02-19 Tom Tromey <tromey@redhat.com>
10197
10198 * target-delegates.c: Rebuild.
10199 * target.c (target_goto_record): Unconditionally delegate.
10200 * target.h (struct target_ops) <to_goto_record>: Use
10201 TARGET_DEFAULT_NORETURN.
10202
3679abfa
TT
102032014-02-19 Tom Tromey <tromey@redhat.com>
10204
10205 * target-delegates.c: Rebuild.
10206 * target.c (target_insn_history): Unconditionally delegate.
10207 * target.h (struct target_ops) <to_insn_history>: Use
10208 TARGET_DEFAULT_NORETURN.
10209
8444ab58
TT
102102014-02-19 Tom Tromey <tromey@redhat.com>
10211
10212 * target-delegates.c: Rebuild.
10213 * target.c (target_insn_history_from): Unconditionally delegate.
10214 * target.h (struct target_ops) <to_insn_history_from>: Use
10215 TARGET_DEFAULT_NORETURN.
10216
c29302cc
TT
102172014-02-19 Tom Tromey <tromey@redhat.com>
10218
10219 * target-delegates.c: Rebuild.
10220 * target.c (target_insn_history_range): Unconditionally delegate.
10221 * target.h (struct target_ops) <to_insn_history_range>: Use
10222 TARGET_DEFAULT_NORETURN.
10223
170049d4
TT
102242014-02-19 Tom Tromey <tromey@redhat.com>
10225
10226 * target-delegates.c: Rebuild.
10227 * target.c (target_call_history): Unconditionally delegate.
10228 * target.h (struct target_ops) <to_call_history>: Use
10229 TARGET_DEFAULT_NORETURN.
10230
16fc27d6
TT
102312014-02-19 Tom Tromey <tromey@redhat.com>
10232
10233 * target-delegates.c: Rebuild.
10234 * target.c (target_call_history_from): Unconditionally delegate.
10235 * target.h (struct target_ops) <to_call_history_from>: Use
10236 TARGET_DEFAULT_NORETURN.
10237
115d9817
TT
102382014-02-19 Tom Tromey <tromey@redhat.com>
10239
10240 * target-delegates.c: Rebuild.
10241 * target.c (target_call_history_range): Unconditionally delegate.
10242 * target.h (struct target_ops) <to_call_history_range>: Use
10243 TARGET_DEFAULT_NORETURN.
10244
eb276a6b
TT
102452014-02-19 Tom Tromey <tromey@redhat.com>
10246
10247 * target-delegates.c: Rebuild.
10248 * target.c (target_verify_memory): Unconditionally delegate.
10249 * target.h (struct target_ops) <to_verify_memory>: Use
10250 TARGET_DEFAULT_NORETURN.
10251
9e538d0d
TT
102522014-02-19 Tom Tromey <tromey@redhat.com>
10253
10254 * target-delegates.c: Rebuild.
10255 * target.c (target_core_of_thread): Unconditionally delegate.
10256 * target.h (struct target_ops) <to_core_of_thread>: Use
10257 TARGET_DEFAULT_RETURN.
10258
f6fb2925
TT
102592014-02-19 Tom Tromey <tromey@redhat.com>
10260
10261 * target-delegates.c: Rebuild.
10262 * target.c (target_flash_done): Unconditionally delegate.
10263 * target.h (struct target_ops) <to_flash_done>: Use
10264 TARGET_DEFAULT_NORETURN.
10265
e8a6c6ac
TT
102662014-02-19 Tom Tromey <tromey@redhat.com>
10267
10268 * target-delegates.c: Rebuild.
10269 * target.c (target_flash_erase): Unconditionally delegate.
10270 * target.h (struct target_ops) <to_flash_erase>: Use
10271 TARGET_DEFAULT_NORETURN.
10272
7e35c012
TT
102732014-02-19 Tom Tromey <tromey@redhat.com>
10274
10275 * target-delegates.c: Rebuild.
10276 * target.c (target_get_section_table): Unconditionally delegate.
10277 * target.h (struct target_ops) <to_get_section_table>: Use
10278 TARGET_DEFAULT_RETURN.
10279
770234d3
TT
102802014-02-19 Tom Tromey <tromey@redhat.com>
10281
10282 * target-delegates.c: Rebuild.
10283 * target.c (target_pid_to_str): Unconditionally delegate.
10284 (init_dummy_target): Don't initialize to_pid_to_str.
10285 (default_pid_to_str): Rename from dummy_pid_to_str.
10286 * target.h (struct target_ops) <to_pid_to_str>: Use
10287 TARGET_DEFAULT_FUNC.
10288
09b0dc2b
TT
102892014-02-19 Tom Tromey <tromey@redhat.com>
10290
10291 * target-delegates.c: Rebuild.
10292 * target.c (target_find_new_threads): Unconditionally delegate.
10293 * target.h (struct target_ops) <to_find_new_threads>: Use
10294 TARGET_DEFAULT_RETURN.
10295
7d4f8efa
TT
102962014-02-19 Tom Tromey <tromey@redhat.com>
10297
10298 * target-delegates.c: Rebuild.
10299 * target.c (target_program_signals): Unconditionally delegate.
10300 * target.h (struct target_ops) <to_program_signals>: Use
10301 TARGET_DEFAULT_IGNORE.
10302
035cad7f
TT
103032014-02-19 Tom Tromey <tromey@redhat.com>
10304
10305 * target-delegates.c: Rebuild.
10306 * target.c (target_pass_signals): Unconditionally delegate.
10307 * target.h (struct target_ops) <to_pass_signals>: Use
10308 TARGET_DEFAULT_IGNORE.
10309
8d657035
TT
103102014-02-19 Tom Tromey <tromey@redhat.com>
10311
10312 * target-delegates.c: Rebuild.
10313 * target.c (default_mourn_inferior): New function.
10314 (target_mourn_inferior): Unconditionally delegate.
10315 * target.h (struct target_ops) <to_mourn_inferior>: Use
10316 TARGET_DEFAULT_FUNC.
10317
098dba18
TT
103182014-02-19 Tom Tromey <tromey@redhat.com>
10319
10320 * target-delegates.c: Rebuild.
10321 * target.c (default_follow_fork): New function.
10322 (target_follow_fork): Unconditionally delegate.
10323 * target.h (struct target_ops) <to_follow_fork>: Use
10324 TARGET_DEFAULT_FUNC.
10325
423a4807
TT
103262014-02-19 Tom Tromey <tromey@redhat.com>
10327
10328 * target-delegates.c: Rebuild.
10329 * target.c (target_kill): Unconditionally delegate.
10330 * target.h (struct target_ops) <to_kill>: Use
10331 TARGET_DEFAULT_NORETURN.
10332
6c7e5e5c
TT
103332014-02-19 Tom Tromey <tromey@redhat.com>
10334
10335 * target-delegates.c: Rebuild.
10336 * target.c (target_masked_watch_num_registers): Unconditionally
10337 delegate.
10338 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10339 Use TARGET_DEFAULT_RETURN.
10340
8b1c364c
TT
103412014-02-19 Tom Tromey <tromey@redhat.com>
10342
10343 * target-delegates.c: Rebuild.
10344 * target.c (target_remove_mask_watchpoint): Unconditionally
10345 delegate.
10346 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10347 TARGET_DEFAULT_RETURN.
10348
cd4ae029
TT
103492014-02-19 Tom Tromey <tromey@redhat.com>
10350
10351 * target-delegates.c: Rebuild.
10352 * target.c (target_insert_mask_watchpoint): Unconditionally
10353 delegate.
10354 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10355 TARGET_DEFAULT_RETURN.
10356
a134316b
TT
103572014-02-19 Tom Tromey <tromey@redhat.com>
10358
10359 * target-delegates.c: Rebuild.
10360 * target.c (target_ranged_break_num_registers): Unconditionally
10361 delegate.
10362 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10363 Use TARGET_DEFAULT_RETURN.
10364
ad5989bd
TT
103652014-02-19 Tom Tromey <tromey@redhat.com>
10366
10367 * target-delegates.c: Rebuild.
10368 * target.c (target_fetch_registers): Unconditionally delegate.
10369 * target.h (struct target_ops) <to_fetch_registers>: Use
10370 TARGET_DEFAULT_NORETURN.
10371
46ee7e8d
TT
103722014-02-19 Tom Tromey <tromey@redhat.com>
10373
10374 * target-delegates.c: Rebuild.
10375 * target.c (update_current_target): Don't inherit or default
10376 to_stop.
10377 * target.h (struct target_ops) <to_stop>: Use
10378 TARGET_DEFAULT_IGNORE.
10379
843f59ed
TT
103802014-02-19 Tom Tromey <tromey@redhat.com>
10381
10382 * target-delegates.c: Rebuild.
10383 * target.c (update_current_target): Don't inherit or default
10384 to_can_run_breakpoint_commands.
10385 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10386 Use TARGET_DEFAULT_RETURN.
10387
ccfde2a0
TT
103882014-02-19 Tom Tromey <tromey@redhat.com>
10389
10390 * target-delegates.c: Rebuild.
10391 * target.c (update_current_target): Don't inherit or default
10392 to_supports_evaluation_of_breakpoint_conditions.
10393 * target.h (struct target_ops)
10394 <to_supports_evaluation_of_breakpoint_conditions>: Use
10395 TARGET_DEFAULT_RETURN.
10396
0de91722
TT
103972014-02-19 Tom Tromey <tromey@redhat.com>
10398
10399 * target-delegates.c: Rebuild.
10400 * target.c (update_current_target): Don't inherit or default
10401 to_augmented_libraries_svr4_read.
10402 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10403 Use TARGET_DEFAULT_RETURN.
10404
9a7d8b48
TT
104052014-02-19 Tom Tromey <tromey@redhat.com>
10406
10407 * target-delegates.c: Rebuild.
10408 * target.c (update_current_target): Don't inherit or default
10409 to_can_use_agent.
10410 * target.h (struct target_ops) <to_can_use_agent>: Use
10411 TARGET_DEFAULT_RETURN.
10412
d9db5b21
TT
104132014-02-19 Tom Tromey <tromey@redhat.com>
10414
10415 * target-delegates.c: Rebuild.
10416 * target.c (update_current_target): Don't inherit or default
10417 to_use_agent.
10418 * target.h (struct target_ops) <to_use_agent>: Use
10419 TARGET_DEFAULT_NORETURN.
10420
92155eeb
TT
104212014-02-19 Tom Tromey <tromey@redhat.com>
10422
10423 * target-delegates.c: Rebuild.
10424 * target.c (update_current_target): Don't inherit or default
10425 to_traceframe_info.
10426 (return_null): Remove.
10427 * target.h (struct target_ops) <to_traceframe_info>: Use
10428 TARGET_DEFAULT_RETURN.
10429
d6522a22
TT
104302014-02-19 Tom Tromey <tromey@redhat.com>
10431
10432 * target-delegates.c: Rebuild.
10433 * target.c (update_current_target): Don't inherit or default
10434 to_static_tracepoint_markers_by_strid.
10435 * target.h (struct target_ops)
10436 <to_static_tracepoint_markers_by_strid>: Use
10437 TARGET_DEFAULT_NORETURN.
10438
4c3e4425
TT
104392014-02-19 Tom Tromey <tromey@redhat.com>
10440
10441 * target-delegates.c: Rebuild.
10442 * target.c (update_current_target): Don't inherit or default
10443 to_static_tracepoint_marker_at.
10444 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10445 Use TARGET_DEFAULT_RETURN.
10446
dcd6917f
TT
104472014-02-19 Tom Tromey <tromey@redhat.com>
10448
10449 * target-delegates.c: Rebuild.
10450 * target.c (update_current_target): Don't inherit or default
10451 to_set_permissions.
10452 * target.h (struct target_ops) <to_set_permissions>: Use
10453 TARGET_DEFAULT_IGNORE.
10454
22bcceee
TT
104552014-02-19 Tom Tromey <tromey@redhat.com>
10456
10457 * target-delegates.c: Rebuild.
10458 * target.c (update_current_target): Don't inherit or default
10459 to_get_tib_address.
10460 * target.h (struct target_ops) <to_get_tib_address>: Use
10461 TARGET_DEFAULT_NORETURN.
10462
8586ccaa
TT
104632014-02-19 Tom Tromey <tromey@redhat.com>
10464
10465 * target-delegates.c: Rebuild.
10466 * target.c (update_current_target): Don't inherit or default
10467 to_set_trace_notes.
10468 * target.h (struct target_ops) <to_set_trace_notes>: Use
10469 TARGET_DEFAULT_RETURN.
10470
91df8d1d
TT
104712014-02-19 Tom Tromey <tromey@redhat.com>
10472
10473 * target-delegates.c: Rebuild.
10474 * target.c (update_current_target): Don't initialize
10475 to_set_trace_buffer_size.
10476 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10477 TARGET_DEFAULT_IGNORE.
10478
8d526939
TT
104792014-02-19 Tom Tromey <tromey@redhat.com>
10480
10481 * target-delegates.c: Rebuild.
10482 * target.c (update_current_target): Don't inherit or default
10483 to_set_circular_trace_buffer.
10484 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10485 TARGET_DEFAULT_IGNORE.
10486
0bcfeddf
TT
104872014-02-19 Tom Tromey <tromey@redhat.com>
10488
10489 * target-delegates.c: Rebuild.
10490 * target.c (update_current_target): Don't inherit or default
10491 to_set_disconnected_tracing.
10492 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10493 TARGET_DEFAULT_IGNORE.
10494
9249843f
TT
104952014-02-19 Tom Tromey <tromey@redhat.com>
10496
10497 * target-delegates.c: Rebuild.
10498 * target.c (update_current_target): Don't inherit or default
10499 to_get_min_fast_tracepoint_insn_len.
10500 (return_minus_one): Remove.
10501 * target.h (struct target_ops)
10502 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10503
ace92e7d
TT
105042014-02-19 Tom Tromey <tromey@redhat.com>
10505
10506 * target-delegates.c: Rebuild.
10507 * target.c (update_current_target): Don't inherit or default
10508 to_get_raw_trace_data.
10509 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10510 TARGET_DEFAULT_NORETURN.
10511
08120467
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_upload_trace_state_variables.
10517 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10518 Use TARGET_DEFAULT_RETURN.
10519
1e949b00
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_upload_tracepoints.
10525 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10526 TARGET_DEFAULT_RETURN.
10527
a2e6c147
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_save_trace_data.
10533 * target.h (struct target_ops) <to_save_trace_data>: Use
10534 TARGET_DEFAULT_NORETURN.
10535
959bcd0b
TT
105362014-02-19 Tom Tromey <tromey@redhat.com>
10537
10538 * target-delegates.c: Rebuild.
10539 * target.c (update_current_target): Don't inherit or default
10540 to_get_trace_state_variable_value.
10541 * target.h (struct target_ops)
10542 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10543
afc94e66
TT
105442014-02-19 Tom Tromey <tromey@redhat.com>
10545
10546 * target-delegates.c: Rebuild.
10547 * target.c (update_current_target): Don't inherit or default
10548 to_trace_find.
10549 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10550
e51c07ea
TT
105512014-02-19 Tom Tromey <tromey@redhat.com>
10552
10553 * target-delegates.c: Rebuild.
10554 * target.c (update_current_target): Don't inherit or default
10555 to_trace_stop.
10556 * target.h (struct target_ops) <to_trace_stop>: Use
10557 TARGET_DEFAULT_NORETURN.
10558
6fea14cd
TT
105592014-02-19 Tom Tromey <tromey@redhat.com>
10560
10561 * target-delegates.c: Rebuild.
10562 * target.c (update_current_target): Don't inherit or default
10563 to_get_tracepoint_status.
10564 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10565 TARGET_DEFAULT_NORETURN.
10566
4072d4ff
TT
105672014-02-19 Tom Tromey <tromey@redhat.com>
10568
10569 * target-delegates.c: Rebuild.
10570 * target.c (update_current_target): Don't inherit or default
10571 to_get_trace_status.
10572 * target.h (struct target_ops) <to_get_trace_status>: Use
10573 TARGET_DEFAULT_RETURN.
10574
25da2e80
TT
105752014-02-19 Tom Tromey <tromey@redhat.com>
10576
10577 * target-delegates.c: Rebuild.
10578 * target.c (update_current_target): Don't inherit or default
10579 to_trace_start.
10580 * target.h (struct target_ops) <to_trace_start>: Use
10581 TARGET_DEFAULT_NORETURN.
10582
86dd181d
TT
105832014-02-19 Tom Tromey <tromey@redhat.com>
10584
10585 * target-delegates.c: Rebuild.
10586 * target.c (update_current_target): Don't inherit or default
10587 to_trace_set_readonly_regions.
10588 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10589 Use TARGET_DEFAULT_NORETURN.
10590
05c41993
TT
105912014-02-19 Tom Tromey <tromey@redhat.com>
10592
10593 * target-delegates.c: Rebuild.
10594 * target.c (update_current_target): Don't inherit or default
10595 to_disable_tracepoint.
10596 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10597 TARGET_DEFAULT_NORETURN.
10598
151f70f1
TT
105992014-02-19 Tom Tromey <tromey@redhat.com>
10600
10601 * target-delegates.c: Rebuild.
10602 * target.c (update_current_target): Don't inherit or default
10603 to_enable_tracepoint.
10604 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10605 TARGET_DEFAULT_NORETURN.
10606
94eb98b9
TT
106072014-02-19 Tom Tromey <tromey@redhat.com>
10608
10609 * target-delegates.c: Rebuild.
10610 * target.c (update_current_target): Don't inherit or default
10611 to_download_trace_state_variable.
10612 * target.h (struct target_ops) <to_download_trace_state_variable>:
10613 Use TARGET_DEFAULT_NORETURN.
10614
719acc4a
TT
106152014-02-19 Tom Tromey <tromey@redhat.com>
10616
10617 * target-delegates.c: Rebuild.
10618 * target.c (update_current_target): Don't inherit or default
10619 to_can_download_tracepoint.
10620 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10621 TARGET_DEFAULT_RETURN.
10622
9a980a22
TT
106232014-02-19 Tom Tromey <tromey@redhat.com>
10624
10625 * target-delegates.c: Rebuild.
10626 * target.c (update_current_target): Don't inherit or default
10627 to_download_tracepoint.
10628 * target.h (struct target_ops) <to_download_tracepoint>: Use
10629 TARGET_DEFAULT_NORETURN.
10630
5536135b
TT
106312014-02-19 Tom Tromey <tromey@redhat.com>
10632
10633 * target-delegates.c: Rebuild.
10634 * target.c (update_current_target): Don't inherit or default
10635 to_trace_init.
10636 * target.h (struct target_ops) <to_trace_init>: Use
10637 TARGET_DEFAULT_RETURN.
10638
9409d39e
TT
106392014-02-19 Tom Tromey <tromey@redhat.com>
10640
10641 * target-delegates.c: Rebuild.
10642 * target.c (update_current_target): Don't inherit or default
10643 to_supports_string_tracing.
10644 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10645 TARGET_DEFAULT_RETURN.
10646
aab1b22d
TT
106472014-02-19 Tom Tromey <tromey@redhat.com>
10648
10649 * target-delegates.c: Rebuild.
10650 * target.c (update_current_target): Don't inherit or default
10651 to_supports_enable_disable_tracepoint.
10652 * target.h (struct target_ops)
10653 <to_supports_enable_disable_tracepoint>: Use
10654 TARGET_DEFAULT_RETURN.
10655
a7304748
TT
106562014-02-19 Tom Tromey <tromey@redhat.com>
10657
10658 * target-delegates.c: Rebuild.
10659 * target.c (update_current_target): Don't inherit or default
10660 to_supports_multi_process.
10661 * target.h (struct target_ops) <to_supports_multi_process>: Use
10662 TARGET_DEFAULT_RETURN.
10663
4229b31d
TT
106642014-02-19 Tom Tromey <tromey@redhat.com>
10665
10666 * target-delegates.c: Rebuild.
10667 * target.c (update_current_target): Don't inherit or default
10668 to_get_ada_task_ptid.
10669 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10670 TARGET_DEFAULT_FUNC.
10671
43eba180
TT
106722014-02-19 Tom Tromey <tromey@redhat.com>
10673
10674 * target-delegates.c: Rebuild.
10675 * target.c (update_current_target): Don't inherit or default
10676 to_thread_architecture.
10677 * target.h (struct target_ops) <to_thread_architecture>: Use
10678 TARGET_DEFAULT_FUNC.
10679
fe31bf5b
TT
106802014-02-19 Tom Tromey <tromey@redhat.com>
10681
10682 * target-delegates.c: Rebuild.
10683 * target.c (update_current_target): Don't inherit or default
10684 to_execution_direction.
10685 * target.h (struct target_ops) <to_execution_direction>: Use
10686 TARGET_DEFAULT_FUNC.
10687
53e1cfc7
TT
106882014-02-19 Tom Tromey <tromey@redhat.com>
10689
10690 * target-delegates.c: Rebuild.
10691 * target.c (update_current_target): Don't inherit or default
10692 to_can_execute_reverse.
10693 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10694 TARGET_DEFAULT_RETURN.
10695 (target_can_execute_reverse): Unconditionally delegate.
10696
9bb9d61d
TT
106972014-02-19 Tom Tromey <tromey@redhat.com>
10698
10699 * target-delegates.c: Rebuild.
10700 * target.c (update_current_target): Don't inherit or default
10701 to_goto_bookmark.
10702 (dummy_goto_bookmark): Remove.
10703 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10704 * target.h (struct target_ops) <to_goto_bookmark>: Use
10705 TARGET_DEFAULT_NORETURN.
10706
3dbafbbb
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_bookmark.
10712 (dummy_get_bookmark): Remove.
10713 (init_dummy_target): Don't inherit or default to_get_bookmark.
10714 * target.h (struct target_ops) <to_get_bookmark>: Use
10715 TARGET_DEFAULT_NORETURN
10716
16f796b1
TT
107172014-02-19 Tom Tromey <tromey@redhat.com>
10718
10719 * target-delegates.c: Rebuild.
10720 * target.c (update_current_target): Don't inherit or default
10721 to_make_corefile_notes.
10722 (init_dummy_target): Don't initialize to_make_corefile_notes.
10723 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10724 TARGET_DEFAULT_FUNC.
10725
0b5a2719
TT
107262014-02-19 Tom Tromey <tromey@redhat.com>
10727
10728 * target-delegates.c: Rebuild.
10729 * target.c (update_current_target): Don't inherit or default
10730 to_find_memory_regions.
10731 (init_dummy_target): Don't initialize to_find_memory_regions.
10732 * target.h (struct target_ops) <to_find_memory_regions>: Use
10733 TARGET_DEFAULT_FUNC.
10734
d9cb0195
TT
107352014-02-19 Tom Tromey <tromey@redhat.com>
10736
10737 * target-delegates.c: Rebuild.
10738 * target.c (update_current_target): Don't inherit or default
10739 to_log_command.
10740 * target.h (struct target_ops) <to_log_command>: Use
10741 TARGET_DEFAULT_IGNORE.
10742 (target_log_command): Unconditionally delegate.
10743
830ca330
TT
107442014-02-19 Tom Tromey <tromey@redhat.com>
10745
10746 * target-delegates.c: Rebuild.
10747 * target.c (update_current_target): Don't inherit or default
10748 to_pid_to_exec_file.
10749 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10750 TARGET_DEFAULT_RETURN.
10751
825828fc
TT
107522014-02-19 Tom Tromey <tromey@redhat.com>
10753
10754 * target-delegates.c: Rebuild.
10755 * target.c (update_current_target): Don't inherit or default
10756 to_thread_name.
10757 (target_thread_name): Unconditionally delegate.
10758 * target.h (struct target_ops) <to_thread_name>: Use
10759 TARGET_DEFAULT_RETURN.
10760
4a7e6dda
TT
107612014-02-19 Tom Tromey <tromey@redhat.com>
10762
10763 * target-delegates.c: Rebuild.
10764 * target.c (update_current_target): Don't inherit or default
10765 to_extra_thread_info.
10766 * target.h (struct target_ops) <to_extra_thread_info>: Use
10767 TARGET_DEFAULT_RETURN.
10768
0db88c1d
TT
107692014-02-19 Tom Tromey <tromey@redhat.com>
10770
10771 * target-delegates.c: Rebuild.
10772 * target.c (update_current_target): Don't inherit or default
10773 to_has_exited.
10774 * target.h (struct target_ops) <to_has_exited>: Use
10775 TARGET_DEFAULT_RETURN..
10776
6a9fa051
TT
107772014-02-19 Tom Tromey <tromey@redhat.com>
10778
10779 * target-delegates.c: Rebuild.
10780 * target.c (update_current_target): Don't inherit or default
10781 to_set_syscall_catchpoint.
10782 (return_one): Remove.
10783 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10784 TARGET_DEFAULT_RETURN.
10785
62f64d7a
TT
107862014-02-19 Tom Tromey <tromey@redhat.com>
10787
10788 * target-delegates.c: Rebuild.
10789 * target.c (update_current_target): Don't inherit or default
10790 to_insert_exec_catchpoint.
10791 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10792 TARGET_DEFAULT_RETURN.
10793
cda0f38c
TT
107942014-01-08 Tom Tromey <tromey@redhat.com>
10795
10796 * target-delegates.c: Rebuild.
10797 * target.c (update_current_target): Don't inherit or default
10798 to_insert_exec_catchpoint.
10799 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10800 TARGET_DEFAULT_RETURN.
10801
95c3375e
TT
108022014-02-19 Tom Tromey <tromey@redhat.com>
10803
10804 * target-delegates.c: Rebuild.
10805 * target.c (update_current_target): Don't inherit or default
10806 to_remove_vfork_catchpoint.
10807 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10808 TARGET_DEFAULT_RETURN.
10809
7e18a8dc
TT
108102014-02-19 Tom Tromey <tromey@redhat.com>
10811
10812 * target-delegates.c: Rebuild.
10813 * target.c (update_current_target): Don't inherit or default
10814 to_insert_vfork_catchpoint.
10815 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10816 TARGET_DEFAULT_RETURN.
10817
e1a21fb7
TT
108182014-02-19 Tom Tromey <tromey@redhat.com>
10819
10820 * target-delegates.c: Rebuild.
10821 * target.c (update_current_target): Don't inherit or default
10822 to_remove_fork_catchpoint.
10823 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10824 TARGET_DEFAULT_RETURN.
10825
5958ebeb
TT
108262014-02-19 Tom Tromey <tromey@redhat.com>
10827
10828 * target-delegates.c: Rebuild.
10829 * target.c (update_current_target): Don't inherit or default
10830 to_insert_fork_catchpoint.
10831 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10832 TARGET_DEFAULT_RETURN.
10833
340ba4bf
TT
108342014-02-19 Tom Tromey <tromey@redhat.com>
10835
10836 * target-delegates.c: Rebuild.
10837 * target.c (update_current_target): Don't inherit or default
10838 to_post_startup_inferior.
10839 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10840 TARGET_DEFAULT_IGNORE.
10841
7634da87
TT
108422014-02-19 Tom Tromey <tromey@redhat.com>
10843
10844 * target-delegates.c: Rebuild.
10845 * target.c (update_current_target): Don't inherit or default
10846 to_load.
10847 * target.h (struct target_ops) <to_load>: Use
10848 TARGET_DEFAULT_NORETURN.
10849
e19e919f
TT
108502014-02-19 Tom Tromey <tromey@redhat.com>
10851
10852 * target-delegates.c: Rebuild.
10853 * target.c (update_current_target): Don't inherit or default
10854 to_terminal_info.
10855 * target.h (struct target_ops) <to_terminal_info>: Use
10856 TARGET_DEFAULT_FUNC.
10857
c6ea8f79
TT
108582014-02-19 Tom Tromey <tromey@redhat.com>
10859
10860 * target-delegates.c: Rebuild.
10861 * target.c (update_current_target): Don't inherit or default
10862 to_terminal_save_ours.
10863 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10864 TARGET_DEFAULT_IGNORE.
10865
e4a733f1
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_terminal_ours.
10871 * target.h (struct target_ops) <to_terminal_ours>: Use
10872 TARGET_DEFAULT_IGNORE.
10873
74fcbef9
TT
108742014-02-19 Tom Tromey <tromey@redhat.com>
10875
10876 * target-delegates.c: Rebuild.
10877 * target.c (update_current_target): Don't inherit or default
10878 to_terminal_ours_for_output.
10879 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10880 TARGET_DEFAULT_IGNORE.
10881
ddeaacc9
TT
108822014-02-19 Tom Tromey <tromey@redhat.com>
10883
10884 * target-delegates.c: Rebuild.
10885 * target.c (update_current_target): Don't inherit or default
10886 to_terminal_inferior.
10887 * target.h (struct target_ops) <to_terminal_inferior>: Use
10888 TARGET_DEFAULT_IGNORE.
10889
0343661d
TT
108902014-02-19 Tom Tromey <tromey@redhat.com>
10891
10892 * target-delegates.c: Rebuild.
10893 * target.c (update_current_target): Don't inherit or default
10894 to_terminal_init.
10895 * target.h (struct target_ops) <to_terminal_init>: Use
10896 TARGET_DEFAULT_IGNORE.
10897
77cdffe9
TT
108982014-02-19 Tom Tromey <tromey@redhat.com>
10899
10900 * target-delegates.c: Rebuild.
10901 * target.c (update_current_target): Don't inherit or default
10902 to_can_accel_watchpoint_condition.
10903 * target.h (struct target_ops)
10904 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10905
d03655e4
TT
109062014-02-19 Tom Tromey <tromey@redhat.com>
10907
10908 * target-delegates.c: Rebuild.
10909 * target.c (update_current_target): Don't inherit or default
10910 to_region_ok_for_hw_watchpoint.
10911 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10912 Use TARGET_DEFAULT_FUNC.
10913
65f160a9
TT
109142014-02-19 Tom Tromey <tromey@redhat.com>
10915
10916 * target-delegates.c: Rebuild.
10917 * target.c (update_current_target): Don't inherit or default
10918 to_watchpoint_addr_within_range.
10919 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10920 Use TARGET_DEFAULT_FUNC.
10921
61dd109f
TT
109222014-02-19 Tom Tromey <tromey@redhat.com>
10923
10924 * target-delegates.c: Rebuild.
10925 * target.c (update_current_target): Don't inherit or default
10926 to_remove_watchpoint.
10927 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10928 TARGET_DEFAULT_NORETURN.
10929
016facd4
TT
109302014-02-19 Tom Tromey <tromey@redhat.com>
10931
10932 * target-delegates.c: Rebuild.
10933 * target.c (update_current_target): Don't inherit or default
10934 to_insert_watchpoint.
10935 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10936 TARGET_DEFAULT_RETURN.
10937
418dabac
TT
109382014-02-19 Tom Tromey <tromey@redhat.com>
10939
10940 * target-delegates.c: Rebuild.
10941 * target.c (update_current_target): Don't inherit or default
10942 to_remove_hw_breakpoint.
10943 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10944 TARGET_DEFAULT_RETURN.
10945
61b371f9
TT
109462014-02-19 Tom Tromey <tromey@redhat.com>
10947
10948 * target-delegates.c: Rebuild.
10949 * target.c (update_current_target): Don't inherit or default
10950 to_insert_hw_breakpoint.
10951 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10952 TARGET_DEFAULT_RETURN.
10953
52b51d06
TT
109542014-02-19 Tom Tromey <tromey@redhat.com>
10955
10956 * target-delegates.c: Rebuild.
10957 * target.c (update_current_target): Don't inherit or default
10958 to_can_use_hw_breakpoint.
10959 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10960 TARGET_DEFAULT_RETURN.
10961
f86e59b2
TT
109622014-02-19 Tom Tromey <tromey@redhat.com>
10963
10964 * target-delegates.c: Rebuild.
10965 * target.c (update_current_target): Don't inherit or default
10966 to_files_info.
10967 * target.h (struct target_ops) <to_files_info>: Use
10968 TARGET_DEFAULT_IGNORE.
10969
6c628163
TT
109702014-02-19 Tom Tromey <tromey@redhat.com>
10971
10972 * target-delegates.c: Rebuild.
10973 * target.c (update_current_target): Don't inherit or default
10974 to_store.
10975 * target.h (struct target_ops) <to_store>: Use
10976 TARGET_DEFAULT_NORETURN.
10977
bebd3233
TT
109782014-02-19 Tom Tromey <tromey@redhat.com>
10979
10980 * target-delegates.c: Rebuild.
10981 * target.c (update_current_target): Don't inherit or default
10982 to_post_attach.
10983 * target.h (struct target_ops) <to_post_attach>: Use
10984 TARGET_DEFAULT_IGNORE.
10985
a53f3625
TT
109862014-02-19 Tom Tromey <tromey@redhat.com>
10987
10988 * target-delegates.c: Rebuild.
10989 * target.c (update_current_target): Don't inherit or default
10990 to_rcmd.
10991 (default_rcmd): New function.
10992 (do_monitor_command): Unconditionally delegate.
10993 * target.h (struct target_ops) <to_rmcd>: Use
10994 TARGET_DEFAULT_FUNC.
10995
e9a29200
TT
109962014-02-19 Tom Tromey <tromey@redhat.com>
10997
10998 * target-delegates.c: Rebuild.
10999 * target.c (init_dummy_target): Don't initialize to_attach.
11000 (target_attach): Unconditionally delegate.
11001 * target.h (struct target_ops) <to_attach>: Use
11002 TARGET_DEFAULT_FUNC.
11003
09da0d0a
TT
110042014-02-19 Tom Tromey <tromey@redhat.com>
11005
11006 * target-delegates.c: Rebuild.
11007 * target.c (target_detach): Unconditionally delegate.
11008 (init_dummy_target): Don't initialize to_detach.
11009 * target.h (struct target_ops) <to_detach>: Use
11010 TARGET_DEFAULT_IGNORE.
11011
5436ff03
TT
110122014-02-19 Tom Tromey <tromey@redhat.com>
11013
11014 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11015 Add argument.
11016 (target_augmented_libraries_svr4_read): Add argument.
11017 * target.c (update_current_target): Update.
11018 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11019 argument.
11020
f0d960ea
TT
110212014-02-19 Tom Tromey <tromey@redhat.com>
11022
11023 * target.h (struct target_ops) <to_call_history_range>: Add
11024 argument.
11025 * target.c (target_call_history_range): Add argument.
11026 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11027 argument.
11028 (record_btrace_call_history_from): Update.
11029
ec0aea04
TT
110302014-02-19 Tom Tromey <tromey@redhat.com>
11031
11032 * target.h (struct target_ops) <to_call_history_from>: Add
11033 argument.
11034 * target.c (target_call_history_from): Add argument.
11035 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11036 argument.
11037
5df2fcba
TT
110382014-02-19 Tom Tromey <tromey@redhat.com>
11039
11040 * target.h (struct target_ops) <to_call_history>: Add argument.
11041 * target.c (target_call_history): Add argument.
11042 * record-btrace.c (record_btrace_call_history): Add 'self'
11043 argument.
11044
4e99c6b7
TT
110452014-02-19 Tom Tromey <tromey@redhat.com>
11046
11047 * target.h (struct target_ops) <to_insn_history_range>: Add
11048 argument.
11049 * target.c (target_insn_history_range): Add argument.
11050 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11051 argument.
11052 (record_btrace_insn_history_from): Update.
11053
9abc3ff3
TT
110542014-02-19 Tom Tromey <tromey@redhat.com>
11055
11056 * target.h (struct target_ops) <to_insn_history_from>: Add
11057 argument.
11058 * target.c (target_insn_history_from): Add argument.
11059 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11060 argument.
11061
7a6c5609
TT
110622014-02-19 Tom Tromey <tromey@redhat.com>
11063
11064 * target.h (struct target_ops) <to_insn_history>: Add argument.
11065 * target.c (target_insn_history): Add argument.
11066 * record-btrace.c (record_btrace_insn_history): Add 'self'
11067 argument.
11068
606183ac
TT
110692014-02-19 Tom Tromey <tromey@redhat.com>
11070
11071 * target.h (struct target_ops) <to_goto_record>: Add argument.
11072 * target.c (target_goto_record): Add argument.
11073 * record-full.c (record_full_goto): Add 'self' argument.
11074 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11075
307a1b91
TT
110762014-02-19 Tom Tromey <tromey@redhat.com>
11077
11078 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11079 * target.c (target_goto_record_end): Add argument.
11080 * record-full.c (record_full_goto_end): Add 'self' argument.
11081 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11082
08475817
TT
110832014-02-19 Tom Tromey <tromey@redhat.com>
11084
11085 * target.h (struct target_ops) <to_goto_record_begin>: Add
11086 argument.
11087 * target.c (target_goto_record_begin): Add argument.
11088 * record-full.c (record_full_goto_begin): Add 'self' argument.
11089 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11090 argument.
11091
1c63c994
TT
110922014-02-19 Tom Tromey <tromey@redhat.com>
11093
11094 * target.h (struct target_ops) <to_record_is_replaying>: Add
11095 argument.
11096 * target.c (target_record_is_replaying): Add argument.
11097 * record-full.c (record_full_is_replaying): Add 'self' argument.
11098 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11099 argument.
11100 (record_btrace_xfer_partial, record_btrace_store_registers)
11101 (record_btrace_prepare_to_store, record_btrace_resume)
11102 (record_btrace_wait, record_btrace_decr_pc_after_break)
11103 (record_btrace_find_new_threads, record_btrace_thread_alive):
11104 Update.
11105
d1b55219
TT
111062014-02-19 Tom Tromey <tromey@redhat.com>
11107
11108 * target.h (struct target_ops) <to_delete_record>: Add argument.
11109 * target.c (target_delete_record): Add argument.
11110 * record-full.c (record_full_delete): Add 'self' argument.
11111
1390f529
TT
111122014-02-19 Tom Tromey <tromey@redhat.com>
11113
11114 * target.h (struct target_ops) <to_save_record>: Add argument.
11115 * target.c (target_save_record): Add argument.
11116 * record-full.c (record_full_save): Add 'self' argument.
11117 (record_full_save): Add 'self' argument.
11118
630d6a4a
TT
111192014-02-19 Tom Tromey <tromey@redhat.com>
11120
11121 * target.h (struct target_ops) <to_info_record>: Add argument.
11122 * target.c (target_info_record): Add argument.
11123 * record.c (info_record_command): Add argument.
11124 * record-full.c (record_full_info): Add 'self' argument.
11125 * record-btrace.c (record_btrace_info): Add 'self' argument.
11126
c6cd7c02
TT
111272014-02-19 Tom Tromey <tromey@redhat.com>
11128
11129 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11130 * target.c (target_stop_recording): Add argument.
11131 * record.c (record_stop): Add argument.
11132 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11133 argument.
11134
39c49f83
TT
111352014-02-19 Tom Tromey <tromey@redhat.com>
11136
11137 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11138 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11139 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11140 argument.
11141 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11142 (_initialize_amd64_linux_nat): Use it.
11143 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11144 (_initialize_i386_linux_nat): Use it.
11145
1777056d
TT
111462014-02-19 Tom Tromey <tromey@redhat.com>
11147
11148 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11149 * target.c (target_teardown_btrace): Add argument.
11150 * remote.c (remote_teardown_btrace): Add 'self' argument.
11151 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11152 argument.
11153 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11154 argument.
11155
25e95349
TT
111562014-02-19 Tom Tromey <tromey@redhat.com>
11157
11158 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11159 * target.c (target_disable_btrace): Add argument.
11160 * remote.c (remote_disable_btrace): Add 'self' argument.
11161 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11162 argument.
11163 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11164 argument.
11165
e3c49f88
TT
111662014-02-19 Tom Tromey <tromey@redhat.com>
11167
11168 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11169 * target.c (target_enable_btrace): Add argument.
11170 * remote.c (remote_enable_btrace): Add 'self' argument.
11171 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11172 argument.
11173 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11174 argument.
11175
fe38f897
TT
111762014-02-19 Tom Tromey <tromey@redhat.com>
11177
11178 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11179 (target_can_use_agent): Add argument.
11180 * target.c (update_current_target): Update.
11181 * remote.c (remote_can_use_agent): Add 'self' argument.
11182 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11183
2c152180
TT
111842014-02-19 Tom Tromey <tromey@redhat.com>
11185
11186 * target.h (struct target_ops) <to_use_agent>: Add argument.
11187 (target_use_agent): Add argument.
11188 * target.c (update_current_target): Update.
11189 * remote.c (remote_use_agent): Add 'self' argument.
11190 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11191
a893e81f
TT
111922014-02-19 Tom Tromey <tromey@redhat.com>
11193
11194 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11195 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11196 (target_traceframe_info): Add argument.
11197 * target.c (update_current_target): Update.
11198 * remote.c (remote_traceframe_info): Add 'self' argument.
11199 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11200
c686c57f
TT
112012014-02-19 Tom Tromey <tromey@redhat.com>
11202
11203 * target.h (target_static_tracepoint_markers_by_strid): Add
11204 argument.
11205 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11206 'self' argument.
11207 * target.c (update_current_target): Update.
11208 * remote.c (struct target_ops)
11209 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11210 * linux-nat.c (struct target_ops)
11211 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11212
61fc905d
TT
112132014-02-19 Tom Tromey <tromey@redhat.com>
11214
11215 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11216 Add argument.
11217 (target_static_tracepoint_marker_at): Add argument.
11218 * target.c (update_current_target): Update.
11219 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11220 argument.
11221
c378d69d
TT
112222014-02-19 Tom Tromey <tromey@redhat.com>
11223
11224 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11225 (target_set_permissions): Add argument.
11226 * target.c (update_current_target): Update.
11227 * remote.c (remote_set_permissions): Add 'self' argument.
11228 (remote_start_remote): Update.
11229
bd7ae0f5
TT
112302014-02-19 Tom Tromey <tromey@redhat.com>
11231
11232 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11233 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11234 (target_get_tib_address): Add argument.
11235 * target.c (update_current_target): Update.
11236 * remote.c (remote_get_tib_address): Add 'self' argument.
11237
d9e68a2c
TT
112382014-02-19 Tom Tromey <tromey@redhat.com>
11239
11240 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11241 (target_set_trace_notes): Add argument.
11242 * target.c (update_current_target): Update.
11243 * remote.c (remote_set_trace_notes): Add 'self' argument.
11244
4da384be
TT
112452014-02-19 Tom Tromey <tromey@redhat.com>
11246
11247 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11248 argument.
11249 (target_set_trace_buffer_size): Add argument.
11250 * target.c (update_current_target): Update.
11251 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11252
736d5b1f
TT
112532014-02-19 Tom Tromey <tromey@redhat.com>
11254
11255 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11256 argument.
11257 (target_set_circular_trace_buffer): Add argument.
11258 * target.c (update_current_target): Update.
11259 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11260 argument.
11261
37b25738
TT
112622014-02-19 Tom Tromey <tromey@redhat.com>
11263
11264 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11265 argument.
11266 (target_set_disconnected_tracing): Add argument.
11267 * target.c (update_current_target): Update.
11268 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11269
0e67620a
TT
112702014-02-19 Tom Tromey <tromey@redhat.com>
11271
11272 * target.h (struct target_ops)
11273 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11274 (target_get_min_fast_tracepoint_insn_len): Add argument.
11275 * target.c (update_current_target): Update.
11276 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11277 argument.
11278
88ee6f45
TT
112792014-02-19 Tom Tromey <tromey@redhat.com>
11280
11281 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11282 argument.
11283 (target_get_raw_trace_data): Add argument.
11284 * target.c (update_current_target): Update.
11285 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11286
181e3713
TT
112872014-02-19 Tom Tromey <tromey@redhat.com>
11288
11289 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11290 Add argument.
11291 (target_upload_trace_state_variables): Add argument.
11292 * target.c (update_current_target): Update.
11293 * remote.c (remote_upload_trace_state_variables): Add 'self'
11294 argument.
11295 (remote_start_remote): Update.
11296
ab6617cc
TT
112972014-02-19 Tom Tromey <tromey@redhat.com>
11298
11299 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11300 argument.
11301 (target_upload_tracepoints): Add argument.
11302 * target.c (update_current_target): Update.
11303 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11304 (remote_start_remote): Update.
11305
dc3decaf
TT
113062014-02-19 Tom Tromey <tromey@redhat.com>
11307
11308 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11309 (target_save_trace_data): Add argument.
11310 * target.c (update_current_target): Update.
11311 * remote.c (remote_save_trace_data): Add 'self' argument.
11312
4011015b
TT
113132014-02-19 Tom Tromey <tromey@redhat.com>
11314
11315 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11316 argument.
11317 * target.h (struct target_ops)
11318 <to_get_trace_state_variable_value>: Add argument.
11319 (target_get_trace_state_variable_value): Add argument.
11320 * target.c (update_current_target): Update.
11321 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11322 argument.
11323 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11324
bd4c6793
TT
113252014-02-19 Tom Tromey <tromey@redhat.com>
11326
11327 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11328 * target.h (struct target_ops) <to_trace_find>: Add argument.
11329 (target_trace_find): Add argument.
11330 * target.c (update_current_target): Update.
11331 * remote.c (remote_trace_find): Add 'self' argument.
11332 * ctf.c (ctf_trace_find): Add 'self' argument.
11333
74499f1b
TT
113342014-02-19 Tom Tromey <tromey@redhat.com>
11335
11336 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11337 (target_trace_stop): Add argument.
11338 * target.c (update_current_target): Update.
11339 * remote.c (remote_trace_stop): Add 'self' argument.
11340
db90e85c
TT
113412014-02-19 Tom Tromey <tromey@redhat.com>
11342
11343 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11344 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11345 argument.
11346 (target_get_tracepoint_status): Add argument.
11347 * target.c (update_current_target): Update.
11348 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11349
8bd200f1
TT
113502014-02-19 Tom Tromey <tromey@redhat.com>
11351
11352 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11353 * target.h (struct target_ops) <to_get_trace_status>: Add
11354 argument.
11355 (target_get_trace_status): Add argument.
11356 * target.c (update_current_target): Update.
11357 * remote.c (remote_get_trace_status): Add 'self' argument.
11358 (remote_start_remote, remote_can_download_tracepoint): Update.
11359 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11360
e2d1aae3
TT
113612014-02-19 Tom Tromey <tromey@redhat.com>
11362
11363 * target.h (struct target_ops) <to_trace_start>: Add argument.
11364 (target_trace_start): Add argument.
11365 * target.c (update_current_target): Update.
11366 * remote.c (remote_trace_start): Add 'self' argument.
11367
583f9a86
TT
113682014-02-19 Tom Tromey <tromey@redhat.com>
11369
11370 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11371 Add argument.
11372 (target_trace_set_readonly_regions): Add argument.
11373 * target.c (update_current_target): Update.
11374 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11375 argument.
11376
780b049c
TT
113772014-02-19 Tom Tromey <tromey@redhat.com>
11378
11379 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11380 argument.
11381 (target_disable_tracepoint): Add argument.
11382 * target.c (update_current_target): Update.
11383 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11384
46670d57
TT
113852014-02-19 Tom Tromey <tromey@redhat.com>
11386
11387 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11388 argument.
11389 (target_enable_tracepoint): Add argument.
11390 * target.c (update_current_target): Update.
11391 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11392
559d2b81
TT
113932014-02-19 Tom Tromey <tromey@redhat.com>
11394
11395 * target.h (struct target_ops) <to_download_trace_state_variable>:
11396 Add argument.
11397 (target_download_trace_state_variable): Add argument.
11398 * target.c (update_current_target): Update.
11399 * remote.c (remote_download_trace_state_variable): Add 'self'
11400 argument.
11401
a52a8357
TT
114022014-02-19 Tom Tromey <tromey@redhat.com>
11403
11404 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11405 argument.
11406 (target_can_download_tracepoint): Add argument.
11407 * target.c (update_current_target): Update.
11408 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11409
548f7808
TT
114102014-02-19 Tom Tromey <tromey@redhat.com>
11411
11412 * target.h (struct target_ops) <to_download_tracepoint>: Add
11413 argument.
11414 (target_download_tracepoint): Add argument.
11415 * target.c (update_current_target): Update.
11416 * remote.c (remote_download_tracepoint): Add 'self' argument.
11417
ecae04e1
TT
114182014-02-19 Tom Tromey <tromey@redhat.com>
11419
11420 * target.h (struct target_ops) <to_trace_init>: Add argument.
11421 (target_trace_init): Add argument.
11422 * target.c (update_current_target): Update.
11423 * remote.c (remote_trace_init): Add 'self' argument.
11424
fab5aa7c
TT
114252014-02-19 Tom Tromey <tromey@redhat.com>
11426
11427 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11428 * target.c (target_fileio_readlink): Add argument.
11429 * remote.c (remote_hostio_readlink): Add 'self' argument.
11430 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11431
dbbca37d
TT
114322014-02-19 Tom Tromey <tromey@redhat.com>
11433
11434 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11435 * target.c (target_fileio_unlink): Add argument.
11436 * remote.c (remote_hostio_unlink): Add 'self' argument.
11437 (remote_file_delete): Update.
11438 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11439
df39ea25
TT
114402014-02-19 Tom Tromey <tromey@redhat.com>
11441
11442 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11443 * target.c (target_fileio_close): Add argument.
11444 * remote.c (remote_hostio_close): Add 'self' argument.
11445 (remote_hostio_close_cleanup): Update.
11446 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11447 Update.
11448 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11449
a3be983c
TT
114502014-02-19 Tom Tromey <tromey@redhat.com>
11451
11452 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11453 * target.c (target_fileio_pread): Add argument.
11454 * remote.c (remote_hostio_pread): Add 'self' argument.
11455 (remote_bfd_iovec_pread, remote_file_get): Update.
11456 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11457
0d866f62
TT
114582014-02-19 Tom Tromey <tromey@redhat.com>
11459
11460 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11461 * target.c (target_fileio_pwrite): Add argument.
11462 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11463 (remote_file_put): Update.
11464 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11465
cd897586
TT
114662014-02-19 Tom Tromey <tromey@redhat.com>
11467
11468 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11469 * target.c (target_fileio_open): Add argument.
11470 * remote.c (remote_hostio_open): Add 'self' argument.
11471 (remote_bfd_iovec_open): Add 'self' argument.
11472 (remote_file_put): Add 'self' argument.
11473 (remote_file_get): Add 'self' argument.
11474 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11475
78eff0ec
TT
114762014-02-19 Tom Tromey <tromey@redhat.com>
11477
11478 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11479 Add argument.
11480 (target_can_run_breakpoint_commands): Add argument.
11481 * target.c (update_current_target): Update.
11482 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11483 argument.
11484 (remote_insert_breakpoint): Add 'self' argument.
11485 (remote_insert_hw_breakpoint): Add 'self' argument.
11486 (remote_can_run_breakpoint_commands): Add 'self' argument.
11487
efcc2da7
TT
114882014-02-19 Tom Tromey <tromey@redhat.com>
11489
11490 * target.h (struct target_ops)
11491 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11492 (target_supports_evaluation_of_breakpoint_conditions): Add
11493 argument.
11494 * target.c (update_current_target): Update.
11495 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11496 argument.
11497 (remote_insert_breakpoint): Add 'self' argument.
11498 (remote_insert_hw_breakpoint): Add 'self' argument.
11499 (remote_supports_cond_breakpoints): Add 'self' argument.
11500
6de37a3a
TT
115012014-02-19 Tom Tromey <tromey@redhat.com>
11502
11503 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11504 argument.
11505 (target_supports_string_tracing): Add argument.
11506 * target.c (update_current_target): Update.
11507 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11508
2bfc0540
TT
115092014-02-19 Tom Tromey <tromey@redhat.com>
11510
11511 * target.h (struct target_ops)
11512 <to_supports_disable_randomization>: Add argument.
11513 * target.c (find_default_supports_disable_randomization): Add
11514 argument.
11515 (target_supports_disable_randomization): Add argument.
11516 (find_default_supports_disable_randomization): Add 'self'
11517 argument.
11518 * remote.c (extended_remote_supports_disable_randomization): Add
11519 'self' argument.
11520 (remote_supports_disable_randomization): Add 'self' argument.
11521 (extended_remote_create_inferior): Update.
11522 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11523 'self' argument.
11524
7d178d6a
TT
115252014-02-19 Tom Tromey <tromey@redhat.com>
11526
11527 * target.h (struct target_ops)
11528 <to_supports_enable_disable_tracepoint>: Add argument.
11529 (target_supports_enable_disable_tracepoint): Add argument.
11530 * target.c (update_current_target): Update.
11531 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11532 argument.
11533
86ce2668
TT
115342014-02-19 Tom Tromey <tromey@redhat.com>
11535
11536 * target.h (struct target_ops) <to_supports_multi_process>: Add
11537 argument.
11538 (target_supports_multi_process): Add argument.
11539 * target.c (update_current_target): Update.
11540 * remote.c (remote_supports_multi_process): Add 'self' argument.
11541 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11542 argument.
11543 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11544 argument.
11545
4c612759
TT
115462014-02-19 Tom Tromey <tromey@redhat.com>
11547
11548 * target.h (struct target_ops) <to_execution_direction>: Add
11549 argument.
11550 (target_execution_direction): Add argument.
11551 * target.c (default_execution_direction): Add 'self' argument.
11552 * record-full.c (record_full_execution_direction): Add 'self'
11553 argument.
11554
19db3e69
TT
115552014-02-19 Tom Tromey <tromey@redhat.com>
11556
11557 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11558 argument.
11559 (target_can_execute_reverse): Add argument.
11560 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11561 * record-full.c (record_full_can_execute_reverse): Add 'self'
11562 argument.
11563 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11564 argument.
11565
1e6b91a4
TT
115662014-02-19 Tom Tromey <tromey@redhat.com>
11567
11568 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11569 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11570 argument.
11571 (target_get_ada_task_ptid): Add argument.
11572 * target.c (update_current_target): Update.
11573 (default_get_ada_task_ptid): Add 'self' argument.
11574 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11575 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11576 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11577 argument.
11578 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11579 argument.
11580 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11581 argument.
11582 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11583 argument.
11584 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11585 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11586 argument.
11587
3c80fb48
TT
115882014-02-19 Tom Tromey <tromey@redhat.com>
11589
11590 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11591 (target_goto_bookmark): Add argument.
11592 * target.c (dummy_goto_bookmark): Add 'self' argument.
11593 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11594
dd0e2830
TT
115952014-02-19 Tom Tromey <tromey@redhat.com>
11596
11597 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11598 (target_get_bookmark): Add argument.
11599 * target.c (dummy_get_bookmark): Add 'self' argument.
11600 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11601
fc6691b2
TT
116022014-02-19 Tom Tromey <tromey@redhat.com>
11603
11604 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11605 argument.
11606 (target_make_corefile_notes): Add argument.
11607 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11608 * procfs.c (procfs_make_note_section): Add 'self' argument.
11609 (procfs_make_note_section): Add 'self' argument.
11610 (procfs_make_note_section): Add 'self' argument.
11611 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11612 argument.
11613 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11614 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11615 * exec.c (exec_make_note_section): Add 'self' argument.
11616 (exec_make_note_section): Add 'self' argument.
11617
2e73927c
TT
116182014-02-19 Tom Tromey <tromey@redhat.com>
11619
11620 * target.h (struct target_ops) <to_find_memory_regions>: Add
11621 argument.
11622 (target_find_memory_regions): Add argument.
11623 * target.c (dummy_find_memory_regions): Add 'self' argument.
11624 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11625 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11626 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11627 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11628 * exec. (exec_do_find_memory_regions): New global.
11629 (exec_set_find_memory_regions): Rewrite.
11630 (exec_find_memory_regions): New function.
11631 (init_exec_ops): Use exec_find_memory_regions.
11632
2a9a2795
TT
116332014-02-19 Tom Tromey <tromey@redhat.com>
11634
11635 * target.h (struct target_ops) <to_supports_non_stop>: Add
11636 argument.
11637 * target.c (find_default_supports_non_stop): Add argument.
11638 (target_supports_non_stop): Add argument.
11639 (find_default_supports_non_stop): Add 'self' argument.
11640 * remote.c (remote_supports_non_stop): Add 'self' argument.
11641 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11642
4ab76ea3
TT
116432014-02-19 Tom Tromey <tromey@redhat.com>
11644
11645 * target.h (struct target_ops) <to_log_command>: Add argument.
11646 (target_log_command): Add argument.
11647 * serial.h (serial_log_command): Add 'self' argument.
11648 * serial.c (serial_log_command): Add 'self' argument.
11649
8dd27370
TT
116502014-02-19 Tom Tromey <tromey@redhat.com>
11651
11652 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11653 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11654 argument.
11655 (target_pid_to_exec_file): Add argument.
11656 * target.c (debug_to_pid_to_exec_file): Add argument.
11657 (update_current_target): Update.
11658 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11659 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11660 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11661 (linux_handle_extended_wait): Update.
11662 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11663 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11664 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11665 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11666
1aac633b
TT
116672014-02-19 Tom Tromey <tromey@redhat.com>
11668
11669 * target.h (struct target_ops) <to_rcmd>: Add argument.
11670 (target_rcmd): Add argument.
11671 * target.c (debug_to_rcmd): Add argument.
11672 (update_current_target, do_monitor_command): Update.
11673 * remote.c (remote_rcmd): Add 'self' argument.
11674 * monitor.c (monitor_rcmd): Add 'self' argument.
11675
1eab8a48
TT
116762014-02-19 Tom Tromey <tromey@redhat.com>
11677
11678 * windows-nat.c (windows_stop): Add 'self' argument.
11679 * target.h (struct target_ops) <to_stop>: Add argument.
11680 * target.c (target_stop): Add argument.
11681 (debug_to_stop): Add argument.
11682 (update_current_target): Update.
11683 * remote.c (remote_stop): Add 'self' argument.
11684 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11685 (gdbsim_cntrl_c): Update.
11686 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11687 * procfs.c (procfs_stop): Add 'self' argument.
11688 * nto-procfs.c (procfs_stop): Add 'self' argument.
11689 * monitor.c (monitor_stop): Add 'self' argument.
11690 (monitor_open): Update.
11691 * linux-nat.c (linux_nat_stop): Add argument.
11692 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11693 * gnu-nat.c (gnu_stop): Add 'self' argument.
11694 * darwin-nat.c (darwin_stop): Add 'self' argument.
11695
503a628d
TT
116962014-02-19 Tom Tromey <tromey@redhat.com>
11697
11698 * target.h (struct target_ops) <to_thread_name>: Add argument.
11699 * target.c (target_thread_name): Add argument.
11700 (update_current_target): Update.
11701 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11702
c15906d8
TT
117032014-02-19 Tom Tromey <tromey@redhat.com>
11704
11705 * target.h (struct target_ops) <to_extra_thread_info>: Add
11706 argument.
11707 (target_extra_thread_info): Add argument.
11708 * target.c (update_current_target): Update.
11709 * remote.c (remote_threads_extra_info): Add 'self' argument.
11710 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11711 argument.
11712 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11713 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11714 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11715 argument.
11716 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11717 argument.
11718 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11719 argument.
11720 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11721 argument.
11722
daf5e9b6
TT
117232014-02-19 Tom Tromey <tromey@redhat.com>
11724
11725 * target.h (struct target_ops) <to_program_signals>: Add argument.
11726 * target.c (target_program_signals): Add argument.
11727 * remote.c (remote_program_signals): Add 'self' argument.
11728
94bedb42
TT
117292014-02-19 Tom Tromey <tromey@redhat.com>
11730
11731 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11732 * target.c (target_pass_signals): Add argument.
11733 * remote.c (remote_pass_signals): Add 'self' argument.
11734 (remote_start_remote): Update.
11735 * procfs.c (procfs_pass_signals): Add 'self' argument.
11736 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11737 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11738 (linux_nat_create_inferior, linux_nat_attach): Update.
11739
da82bd6b
TT
117402014-02-19 Tom Tromey <tromey@redhat.com>
11741
11742 * windows-nat.c (windows_can_run): Add 'self' argument.
11743 * target.h (struct target_ops) <to_can_run>: Add argument.
11744 (target_can_run): Add argument.
11745 * target.c (debug_to_can_run): Add argument.
11746 (update_current_target): Update.
11747 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11748 * inf-child.c (inf_child_can_run): Add 'self' argument.
11749 * go32-nat.c (go32_can_run): Add 'self' argument.
11750
d796e1d6
TT
117512014-02-19 Tom Tromey <tromey@redhat.com>
11752
11753 * target.h (struct target_ops) <to_has_exited>: Add argument.
11754 (target_has_exited): Add argument.
11755 * target.c (debug_to_has_exited): Add argument.
11756 (update_current_target): Update.
11757
ff214e67
TT
117582014-02-19 Tom Tromey <tromey@redhat.com>
11759
11760 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11761 argument.
11762 (target_set_syscall_catchpoint): Add argument.
11763 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11764 argument.
11765 * target.c (update_current_target): Update.
11766
758e29d2
TT
117672014-02-19 Tom Tromey <tromey@redhat.com>
11768
11769 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11770 argument.
11771 (target_remove_exec_catchpoint): Add argument.
11772 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11773 (update_current_target): Update.
11774 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11775 argument.
11776
ba025e51
TT
117772014-02-19 Tom Tromey <tromey@redhat.com>
11778
11779 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11780 argument.
11781 (target_insert_exec_catchpoint): Add argument.
11782 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11783 (update_current_target): Update.
11784 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11785 argument.
11786
e98cf0cd
TT
117872014-02-19 Tom Tromey <tromey@redhat.com>
11788
11789 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11790 argument.
11791 (target_remove_vfork_catchpoint): Add argument.
11792 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11793 (update_current_target): Update.
11794 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11795 argument.
11796
3ecc7da0
TT
117972014-02-19 Tom Tromey <tromey@redhat.com>
11798
11799 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11800 argument.
11801 (target_insert_vfork_catchpoint): Add argument.
11802 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11803 (update_current_target): Update.
11804 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11805 argument.
11806
973fc227
TT
118072014-02-19 Tom Tromey <tromey@redhat.com>
11808
11809 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11810 argument.
11811 (target_remove_fork_catchpoint): Add argument.
11812 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11813 (update_current_target): Update.
11814 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11815 argument.
11816
a863b201
TT
118172014-02-19 Tom Tromey <tromey@redhat.com>
11818
11819 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11820 argument.
11821 (target_insert_fork_catchpoint): Add argument.
11822 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11823 (update_current_target): Update.
11824 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11825 argument.
11826
2e97a79e
TT
118272014-02-19 Tom Tromey <tromey@redhat.com>
11828
11829 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11830 argument.
11831 (target_post_startup_inferior): Add argument.
11832 * target.c (debug_to_post_startup_inferior): Add argument.
11833 (update_current_target): Update.
11834 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11835 argument.
11836 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11837 argument.
11838 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11839 argument.
11840 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11841 argument.
11842 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11843 'self' argument.
11844 (super_post_startup_inferior): Likewise.
11845 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11846 'self' argument.
11847 (super_post_startup_inferior): Likewise.
11848 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11849 Add 'self' argument.
11850 (super_post_startup_inferior): Likewise.
11851
71a9f134
TT
118522014-02-19 Tom Tromey <tromey@redhat.com>
11853
11854 * target.h (struct target_ops) <to_load>: Add argument.
11855 * target.c (target_load): Add argument.
11856 (debug_to_load): Add argument.
11857 (update_current_target): Update.
11858 * remote.c (remote_load): Add 'self' argument.
11859 * remote-sim.c (gdbsim_load): Add 'self' argument.
11860 * remote-mips.c (mips_load): Add 'self' argument.
11861 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11862 * monitor.c (monitor_load): Add 'self' argument.
11863 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11864
0a4f40a2
TT
118652014-02-19 Tom Tromey <tromey@redhat.com>
11866
11867 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11868 (target_terminal_info): Add argument.
11869 * target.c (debug_to_terminal_info): Add argument.
11870 (default_terminal_info): Likewise.
11871 * inflow.c (child_terminal_info): Add 'self' argument.
11872 * inferior.h (child_terminal_info): Add 'self' argument.
11873 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11874
ae3bd431
TT
118752014-02-19 Tom Tromey <tromey@redhat.com>
11876
11877 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11878 argument.
11879 (target_terminal_save_ours): Add argument.
11880 * target.c (debug_to_terminal_save_ours): Add argument.
11881 (update_current_target): Update.
11882 * inflow.c (terminal_save_ours): Add 'self' argument.
11883 * inferior.h (terminal_save_ours): Add 'self' argument.
11884
e3594fd1
TT
118852014-02-19 Tom Tromey <tromey@redhat.com>
11886
11887 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11888 (target_terminal_ours): Add argument.
11889 * target.c (debug_to_terminal_ours): Add argument.
11890 (update_current_target): Update.
11891 * remote.c (remote_terminal_ours): Add 'self' argument.
11892 (remote_close): Update.
11893 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11894 * inflow.c (terminal_ours): Add 'self' argument.
11895 * inferior.h (terminal_ours): Add 'self' argument.
11896 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11897
2e1e1a19
TT
118982014-02-19 Pedro Alves <palves@redhat.com>
11899 Tom Tromey <tromey@redhat.com>
11900
11901 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11902 argument.
11903 (target_terminal_ours_for_output): Add argument.
11904 * target.c (debug_to_terminal_ours_for_output): Add argument.
11905 (update_current_target): Update.
11906 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11907 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11908 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11909
d2f640d4
TT
119102014-02-19 Tom Tromey <tromey@redhat.com>
11911
11912 * target.h (struct target_ops) <to_terminal_inferior>: Add
11913 argument.
11914 * target.c (target_terminal_inferior): Add argument.
11915 (update_current_target): Update.
11916 * remote.c (remote_terminal_inferior): Add 'self' argument.
11917 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11918 * inflow.c (terminal_inferior): Add 'self' argument.
11919 * inferior.h (terminal_inferior): Add 'self' argument.
11920 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11921 (go32_terminal_inferior): Add 'self' argument.
11922
c42bf286
TT
119232014-02-19 Tom Tromey <tromey@redhat.com>
11924
11925 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11926 (target_terminal_init): Add argument.
11927 * target.c (debug_to_terminal_init): Add argument.
11928 (update_current_target): Update.
11929 * inflow.c (terminal_init_inferior): Add 'self' argument.
11930 * inferior.h (terminal_init_inferior): Add 'self' argument.
11931 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11932 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11933
c3a5ff89
TT
119342014-02-19 Tom Tromey <tromey@redhat.com>
11935
11936 * target.h (struct target_ops)
11937 <to_can_accel_watchpoint_condition>: Add argument.
11938 (target_can_accel_watchpoint_condition): Add argument.
11939 * target.c (debug_to_can_accel_watchpoint_condition): Add
11940 argument.
11941 (update_current_target): Update.
11942 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11943 'self' argument.
11944
31568a15
TT
119452014-02-19 Tom Tromey <tromey@redhat.com>
11946
11947 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11948 Add argument.
11949 (target_region_ok_for_hw_watchpoint): Add argument.
11950 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11951 (default_region_ok_for_hw_watchpoint): Add argument.
11952 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11953 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11954 argument.
11955 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11956 argument.
11957 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11958 argument.
11959 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11960 'self' argument.
11961 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11962 'self' argument.
11963 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11964 'self' argument.
11965 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11966 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11967 'self' argument.
11968 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11969 Add 'self' argument.
11970
7bb99c53
TT
119712014-02-19 Tom Tromey <tromey@redhat.com>
11972
11973 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11974 argument.
11975 (target_insert_watchpoint): Add argument.
11976 * target.c (debug_to_insert_watchpoint): Add argument.
11977 (update_current_target): Update.
11978 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11979 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11980 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11981 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11982 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11983 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11984 argument.
11985 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11986 (procfs_insert_hw_watchpoint): Add 'self' argument.
11987 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11988 argument.
11989 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11990 argument.
11991 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11992 argument.
11993 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11994 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11995 argument.
11996 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11997 'self' argument.
11998
11b5219a
TT
119992014-02-19 Tom Tromey <tromey@redhat.com>
12000
12001 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12002 argument.
12003 (target_remove_watchpoint): Add argument.
12004 * target.c (debug_to_remove_watchpoint): Add argument.
12005 (update_current_target): Update.
12006 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12007 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12008 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12009 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12010 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12011 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12012 argument.
12013 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12014 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12015 argument.
12016 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12017 argument.
12018 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12019 argument.
12020 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12021 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12022 argument.
12023 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12024 'self' argument.
12025
a64dc96c
TT
120262014-02-19 Tom Tromey <tromey@redhat.com>
12027
12028 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12029 argument.
12030 (target_remove_hw_breakpoint): Add argument.
12031 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12032 (update_current_target): Update.
12033 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12034 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12035 argument.
12036 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12037 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12038 argument.
12039 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12040 'self' argument.
12041
23a26771
TT
120422014-02-19 Tom Tromey <tromey@redhat.com>
12043
12044 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12045 argument.
12046 (target_insert_hw_breakpoint): Add argument.
12047 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12048 (update_current_target): Update.
12049 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12050 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12051 argument.
12052 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12053 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12054 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12055 argument.
12056 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12057 'self' argument.
12058
5461485a
TT
120592014-02-19 Tom Tromey <tromey@redhat.com>
12060
12061 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12062 argument.
12063 (target_can_use_hardware_watchpoint): Add argument.
12064 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12065 (update_current_target): Update.
12066 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12067 argument.
12068 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12069 argument.
12070 * remote.c (remote_check_watch_resources): Add 'self' argument.
12071 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12072 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12073 argument.
12074 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12075 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12076 argument.
12077 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12078 argument.
12079 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12080 argument.
12081 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12082 argument.
12083 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12084 argument.
12085 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12086 argument.
12087 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12088 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12089 argument.
12090 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12091 'self' argument.
12092
f045800c
TT
120932014-02-19 Tom Tromey <tromey@redhat.com>
12094
12095 * target.h (struct target_ops) <to_post_attach>: Add argument.
12096 (target_post_attach): Add argument.
12097 * target.c (debug_to_post_attach): Add argument.
12098 (update_current_target): Update.
12099 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12100 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12101 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12102 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12103 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12104
de90e03d
TT
121052014-02-19 Tom Tromey <tromey@redhat.com>
12106
12107 * windows-nat.c (windows_close): Add 'self' argument.
12108 * tracepoint.c (tfile_close): Add 'self' argument.
12109 * target.h (struct target_ops) <to_close>: Add argument.
12110 * target.c (target_close): Add argument.
12111 (update_current_target): Update.
12112 * remote.c (remote_close): Add 'self' argument.
12113 * remote-sim.c (gdbsim_close): Add 'self' argument.
12114 * remote-mips.c (mips_close): Add 'self' argument.
12115 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12116 * record-full.c (record_full_close): Add 'self' argument.
12117 * record-btrace.c (record_btrace_close): Add 'self' argument.
12118 * monitor.h (monitor_close): Add 'self' argument.
12119 * monitor.c (monitor_close): Add 'self' argument.
12120 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12121 * linux-nat.c (linux_nat_close): Add argument.
12122 * go32-nat.c (go32_close): Add 'self' argument.
12123 * exec.c (exec_close_1): Add 'self' argument.
12124 * ctf.c (ctf_close): Add 'self' argument.
12125 * corelow.c (core_close): Add 'self' argument.
12126 (core_close_cleanup): Update.
12127 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12128 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12129
9dd130a0
TT
121302014-02-19 Tom Tromey <tromey@redhat.com>
12131
12132 * remote.c (remote_load): New function.
12133 (init_remote_ops): Use it.
12134
46917d26
TT
121352014-02-19 Tom Tromey <tromey@redhat.com>
12136
12137 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12138 argument.
12139 * common/linux-btrace.h (linux_supports_btrace): Update.
12140 * remote.c (remote_supports_btrace): Add "self" argument.
12141 * target-delegates.c: Rebuild.
12142 * target.c (target_supports_btrace): Remove.
12143 * target.h (struct target_ops) <to_supports_btrace>: Add
12144 target_ops argument.
12145 (target_supports_btrace): New define.
12146
6b84065d
TT
121472014-02-19 Tom Tromey <tromey@redhat.com>
12148
12149 * record-full.c (record_full_beneath_to_resume_ops)
12150 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12151 (record_full_beneath_to_wait)
12152 (record_full_beneath_to_store_registers_ops)
12153 (record_full_beneath_to_store_registers)
12154 (record_full_beneath_to_xfer_partial_ops)
12155 (record_full_beneath_to_xfer_partial)
12156 (record_full_beneath_to_insert_breakpoint_ops)
12157 (record_full_beneath_to_insert_breakpoint)
12158 (record_full_beneath_to_remove_breakpoint_ops)
12159 (record_full_beneath_to_remove_breakpoint)
12160 (record_full_beneath_to_stopped_by_watchpoint)
12161 (record_full_beneath_to_stopped_data_address)
12162 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12163 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12164 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12165 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12166 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12167 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12168 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12169 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12170 (record_full_resume, record_full_wait_1)
12171 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12172 (record_full_store_registers, record_full_xfer_partial)
12173 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12174 (record_full_async, record_full_core_xfer_partial): Use target
12175 delegation.
12176 * target-delegates.c: Rebuild.
12177 * target.c (current_xfer_partial): Remove.
12178 (update_current_target): Do not INHERIT or de_fault
12179 to_insert_breakpoint, to_remove_breakpoint,
12180 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12181 to_is_async_p, to_async. Do not set to_xfer_partial field.
12182 (default_xfer_partial): Simplify.
12183 (current_xfer_partial): Remove.
12184 (target_wait, target_resume): Simplify.
12185 (find_default_can_async_p, find_default_is_async_p): Update.
12186 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12187 to_xfer_partial, to_stopped_by_watchpoint,
12188 to_stopped_data_address.
12189 (target_store_registers): Simplify.
12190 (forward_target_remove_breakpoint)
12191 (forward_target_insert_breakpoint): Remove.
12192 (target_remove_breakpoint, target_insert_breakpoint)
12193 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12194 * target.h (struct target_ops) <to_resume, to_wait,
12195 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12196 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12197 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12198 markup.
12199 (forward_target_remove_breakpoint)
12200 (forward_target_insert_breakpoint): Remove.
12201 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12202 directly.
12203 (record_btrace_insert_breakpoint): Delegate directly.
12204
1101cb7b
TT
122052014-02-19 Tom Tromey <tromey@redhat.com>
12206
12207 PR build/7701:
12208 * target-delegates.c: New file.
12209 * target.c: Include target-delegates.c.
12210 (init_dummy_target): Call install_dummy_methods.
12211 (complete_target_initialization): Call install_delegators.
12212 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12213 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12214 * make-target-delegates: New file.
12215
8b06beed
TT
122162014-02-19 Tom Tromey <tromey@redhat.com>
12217
12218 * record.c (find_record_target): Use find_target_at.
12219 * target.c (find_target_at): New function.
12220 * target.h (find_target_at): Declare.
12221
6a109b6b
TT
122222014-02-19 Tom Tromey <tromey@redhat.com>
12223
12224 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12225 Add 'ops' argument.
12226 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12227 'ops' argument.
12228 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12229 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12230 'ops' argument.
12231 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12232 argument.
12233 * linux-nat.c (save_sigtrap): Update.
12234 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12235 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12236 (linux_nat_close): Update.
12237 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12238 argument.
12239 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12240 argument.
12241 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12242 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12243 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12244 (tmp_to_async): Add 'ops' argument.
12245 (record_full_stopped_by_watchpoint, record_full_async)
12246 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12247 argument.
12248 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12249 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12250 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12251 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12252 (remote_is_async_p, remote_async): Add 'ops' argument.
12253 (remote_stopped_data_address): Update.
12254 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12255 * target.c (update_current_target)
12256 (find_default_can_async_p, find_default_is_async_p): Update.
12257 (init_dummy_target): Update.
12258 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12259 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12260 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12261 (target_can_async_p, target_is_async_p, target_async)
12262 (target_stopped_by_watchpoint): Update.
12263
e095146b
YQ
122642014-02-19 Yao Qi <yao@codesourcery.com>
12265
12266 PR gdb/16220
12267 * gdbarch.sh: Remove startup_gdbarch.
12268 * gdbarch.c: Regenerated.
12269 * gdbarch.h: Likewise.
12270
bc3c6b36
KB
122712014-02-17 Kevin Buettner <kevinb@redhat.com>
12272
12273 * rl78-tdep.c (rl78_g10_register_name): New function.
12274 (rl78_return_value): Add g10 support.
12275 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12276 g10.
12277
98dc0167 122782014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12279
12280 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12281 (SUBDIR_GUILE_SRCS): Ditto.
12282 (scm-gsmob.o): Ditto.
12283
842c05cd
YQ
122842014-02-17 Yao Qi <yao@codesourcery.com>
12285
12286 * gnu-nat.c (ILL_RPC): Declare defined function.
12287
25c0bd04
YQ
122882014-02-17 Yao Qi <yao@codesourcery.com>
12289
12290 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12291 mach_msg_type_number_t.
12292 (gnu_write_inferior): Likewise.
12293
a9a758e3
YQ
122942014-02-17 Yao Qi <yao@codesourcery.com>
12295
12296 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12297 in format string.
12298 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12299 (inf_validate_procs, inf_signal): Likewise.
12300 (S_exception_raise_request): Likewise.
12301 (do_mach_notify_dead_name): Likewise.
12302 (steal_exc_port): Likewise.
12303 (gnu_read_inferior): Change 'copy_count''s type to
12304 mach_msg_type_number_t.
12305 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12306 format string.
12307
bae8023e
TS
123082014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12309
c82f56d9
TS
12310 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12311 flag. Adjust all users; in particular...
12312 (gnu_wait): ..., don't decrement its value in here...
12313 (gnu_create_inferior): ..., and instead set the flag in here,
12314 around the startup_inferior call, and call that one with
12315 START_INFERIOR_TRAPS_EXPECTED.
12316
3398af6a
TS
12317 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12318 (ILL_RPC): ... new macro.
12319 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12320 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12321 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12322 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12323 functions with ILL_RPC macro.
12324 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12325 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12326 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12327 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12328 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12329 (S_proc_getlogin_reply, S_proc_getsid_reply)
12330 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12331 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12332 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12333 (S_proc_getnports_reply, S_proc_is_important_reply)
12334 (S_proc_get_code_reply): New stub functions, generated with
12335 ILL_RPC macro.
12336
d47642c9
TS
12337 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12338 collected the type check structures.
12339
bae8023e
TS
12340 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12341
8a55ffb0
DE
123422014-02-14 Doug Evans <dje@google.com>
12343
12344 * target.c (target_write_partial): Fix result type.
12345
c2853f3d
JM
123462014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12347
12348 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12349 the proper offsets to access fpregset_t.
12350
ac61d2db
SA
123512014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12352
12353 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12354 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12355 * h8300-tdep.c (setmachinelist): Remove global.
12356 * hppa-tdep.c (hppa_sigtramp): Remove global.
12357 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12358 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12359 * ravenscar-thread.c (update_target_observer): Remove global.
12360 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12361
9d2d0b8b
TT
123622014-02-12 Tom Tromey <tromey@redhat.com>
12363
12364 * common/rsp-low.c: Update comments.
12365 * common/rsp-low.h: Update comments.
12366
a7191e8b
TT
123672014-02-12 Tom Tromey <tromey@redhat.com>
12368
12369 * common/rsp-low.c (convert_ascii_to_int): Remove.
12370 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12371
ff0e980e
TT
123722014-02-12 Tom Tromey <tromey@redhat.com>
12373
12374 * common/rsp-low.h (unhexify): Don't declare.
12375 * common/rsp-low.c (unhexify): Remove.
12376
e9371aff
TT
123772014-02-12 Tom Tromey <tromey@redhat.com>
12378
12379 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12380 * common/rsp-low.c (convert_int_to_ascii): Remove.
12381
971dc0b8
TT
123822014-02-12 Tom Tromey <tromey@redhat.com>
12383
12384 * common/rsp-low.h (hexify): Don't declare.
12385 * common/rsp-low.c (hexify): Remove.
12386
0a822afb
TT
123872014-02-12 Tom Tromey <tromey@redhat.com>
12388
12389 * common/rsp-low.c (hexify): Never take strlen of argument.
12390
9f1b45b0
TT
123912014-02-12 Tom Tromey <tromey@redhat.com>
12392
12393 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12394 * remote.c (extended_remote_run, remote_rcmd)
12395 (remote_download_trace_state_variable, remote_save_trace_data)
12396 (remote_set_trace_notes): Update.
12397 * tracepoint.c (encode_source_string, tfile_write_status)
12398 (tfile_write_uploaded_tsv): Update.
12399
9c3d6531
TT
124002014-02-12 Tom Tromey <tromey@redhat.com>
12401
12402 * tracepoint.c: Include rsp-low.h.
12403 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12404 * remote.c: Include rsp-low.h.
12405 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12406 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12407 (remote_unescape_input): Move to common/rsp-low.c.
12408 * common/rsp-low.h: New file.
12409 * common/rsp-low.c: New file.
12410 * Makefile.in (SFILES): Add common/rsp-low.c.
12411 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12412 (COMMON_OBS): Add rsp-low.o.
12413 (rsp-low.o): New target.
12414
01fd3ea5
TT
124152014-02-12 Tom Tromey <tromey@redhat.com>
12416
12417 * utils.h: Include print-utils.h.
12418 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12419 (int_string, core_addr_to_string, core_addr_to_string_nz)
12420 (hex_string, hex_string_custom): Don't declare.
12421 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12422 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12423 (hex_string_custom, int_string, core_addr_to_string)
12424 (core_addr_to_string_nz, host_address_to_string): Move to
12425 common/print-utils.c.
12426 * common/print-utils.h: New file.
12427 * common/print-utils.c: New file
12428 * Makefile.in (SFILES): Add common/print-utils.c.
12429 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12430 (COMMON_OBS): Add print-utils.o.
12431 (print-utils.o): New target.
12432
9fb50108
TT
124332014-02-12 Tom Tromey <tromey@redhat.com>
12434
12435 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12436
0548b5db
MK
124372014-02-12 Mark Kettenis <kettenis@gnu.org>
12438
12439 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12440
493443a4
MK
124412014-02-12 Mark Kettenis <kettenis@gnu.org>
12442
12443 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12444 if a PT_IO ptrace request returns sucessfully but indicates that 0
12445 bytes were transferred.
12446
706d0883
PA
124472014-02-12 Pedro Alves <palves@redhat.com>
12448 Kevin Buettner <kevinb@redhat.com>
12449
12450 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12451 TYPE_INSTANCE_FLAG_CODE_SPACE.
12452
5caa2f0b
PA
124532014-02-12 Pedro Alves <palves@redhat.com>
12454
12455 * h8300-tdep.c (pseudo_from_raw_register)
12456 (raw_from_pseudo_register): New functions.
12457 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12458 them.
12459
76fd5f74
PA
124602014-02-12 Pedro Alves <palves@redhat.com>
12461
12462 * h8300-tdep.c (h8300_register_sim_regno): New function.
12463 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12464 gdbarch_register_sim_regno hook.
12465
8f008406
SA
124662014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12467
12468 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12469
195abc10
SA
124702014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12471
12472 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12473
93ffa5b9
MK
124742014-02-12 Mark Kettenis <kettenis@gnu.org>
12475
12476 * obsd-tdep.h (obsd_init_abi): New prototype.
12477 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12478 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12479 (obsd_init_abi): New functions.
12480 * i386obsd-tdep.c: Include "obsd-tdep.h".
12481 (i386obsd_init_abi): Call obsd_init_abi.
12482 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12483 (amd64obsd_init_abi): Call obsd_init_abi.
12484 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12485 obsd-tdep.c to gdb_target_obs.
12486
49caec94
JM
124872014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12488
12489 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12490 double float arguments to 16-byte in the argument slots.
12491
e1402065
DE
124922014-02-11 Doug Evans <xdje42@gmail.com>
12493
12494 * configure.ac: Don't crash if pkg-config is not found and guile
12495 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12496 in guile checks.
12497 * configure: Regenerate.
12498
edcc890f
YQ
124992014-02-11 Yao Qi <yao@codesourcery.com>
12500
12501 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12502 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12503 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12504 * gnu-nat.c (gnu_xfer_memory): Likewise.
12505 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12506 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12507 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12508 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12509
9b409511
YQ
125102014-02-11 Yao Qi <yao@codesourcery.com>
12511
12512 * target.h (enum target_xfer_error): Rename to ...
12513 (enum target_xfer_status): ... it. New. All users updated.
12514 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12515 New.
12516 (TARGET_XFER_STATUS_ERROR_P): New macro.
12517 (target_xfer_error_to_string): Remove declaration.
12518 (target_xfer_status_to_string): Declare.
12519 (target_xfer_partial_ftype): Adjust it.
12520 (struct target_ops) <to_xfer_partial>: Return
12521 target_xfer_status. Add argument xfered_len. Update
12522 comments.
12523 * target.c (target_xfer_error_to_string): Rename to ...
12524 (target_xfer_status_to_string): ... it. New. All callers
12525 updated.
12526 (target_read_live_memory): Likewise. Call target_xfer_partial
12527 instead of target_read.
12528 (memory_xfer_live_readonly_partial): Return
12529 target_xfer_status. Add argument xfered_len.
12530 (raw_memory_xfer_partial): Likewise.
12531 (memory_xfer_partial_1): Likewise.
12532 (memory_xfer_partial): Likewise.
12533 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12534 properly. Update debug message.
12535 (default_xfer_partial, current_xfer_partial): Likewise.
12536 (target_write_partial): Likewise.
12537 (target_read_partial): Likewise. All callers updated.
12538 (read_whatever_is_readable): Likewise.
12539 (target_write_with_progress): Likewise.
12540 (target_read_alloc_1): Likewise.
12541
12542 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12543 * auxv.c (procfs_xfer_auxv): Likewise.
12544 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12545 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12546 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12547 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12548 * corefile.c (read_memory): Adjust.
12549 * corelow.c (core_xfer_partial): Likewise.
12550 * ctf.c (ctf_xfer_partial): Likewise.
12551 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12552 updated.
12553 (darwin_xfer_partial): Likewise.
12554 * exec.c (section_table_xfer_memory_partial): Likewise. All
12555 callers updated.
12556 (exec_xfer_partial): Likewise.
12557 * exec.h (section_table_xfer_memory_partial): Update
12558 declaration.
12559 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12560 negative.
12561 (gnu_xfer_partial): Likewise.
12562 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12563 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12564 (ia64_hpux_xfer_solib_got): Likewise.
12565 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12566 type of 'partial_len' to ULONGEST.
12567 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12568 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12569 (linux_nat_xfer_partial): Likewise.
12570 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12571 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12572 * monitor.c (monitor_xfer_memory): Likewise.
12573 (monitor_xfer_partial): Likewise.
12574 * procfs.c (procfs_xfer_partial): Likewise.
12575 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12576 * record-full.c (record_full_xfer_partial): Likewise.
12577 (record_full_core_xfer_partial): Likewise.
12578 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12579 (gdbsim_xfer_partial): Likewise.
12580 * remote.c (remote_write_bytes_aux): Likewise. All callers
12581 updated.
12582 (remote_write_bytes, remote_read_bytes): Likewise. All
12583 callers updated.
12584 (remote_flash_erase): Likewise. All callers updated.
12585 (remote_write_qxfer): Likewise. All callers updated.
12586 (remote_read_qxfer): Likewise. All callers updated.
12587 (remote_xfer_partial): Likewise.
12588 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12589 (rs6000_xfer_shared_libraries): Likewise.
12590 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12591 (sol_thread_xfer_partial): Likewise.
12592 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12593 (sparc_xfer_partial): Likewise.
12594 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12595 updated.
12596 (spu_xfer_partial): Likewise.
12597 * spu-multiarch.c (spu_xfer_partial): Likewise.
12598 * tracepoint.c (tfile_xfer_partial): Likewise.
12599 * windows-nat.c (windows_xfer_memory): Likewise.
12600 (windows_xfer_shared_libraries): Likewise.
12601 (windows_xfer_partial): Likewise.
12602 * valprint.c: Replace 'target_xfer_error' with
12603 'target_xfer_status' in comments.
12604
a8e63083
JB
126052014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12606
12607 Checked in by Joel Brobecker <brobecker@adacore.com>.
12608 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12609
e86b67d3
JB
126102014-02-11 Joel Brobecker <brobecker@adacore.com>
12611
12612 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12613 function parameters.
12614
4b7d1f7f
WN
126152014-02-10 Will Newton <will.newton@linaro.org>
12616
12617 * elfread.c (elf_rel_plt_read): Look for a .got section if
12618 looking up .got.plt fails.
12619 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12620 on address passed to elf_gnu_ifunc_record_cache.
12621 (elf_gnu_ifunc_resolve_addr): Likewise.
12622 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12623
961842b2
JM
126242014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12625
12626 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12627 (X_RETTURN): New macro.
12628 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12629
12630 * sparc64-tdep.c (sparc64_init_abi): Hook
12631 sparc_in_function_epilogue_p.
12632
3f03e7b1
GB
126332014-02-10 Gary Benson <gbenson@redhat.com>
12634
12635 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12636 Rename name_matcher to symbol_matcher.
12637
96f861ef
GB
126382014-02-10 Gary Benson <gbenson@redhat.com>
12639
12640 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12641 Use expand_symtabs_file_matcher_ftype and
12642 expand_symtabs_symbol_matcher_ftype.
12643
ee01b665
JB
126442014-02-10 Joel Brobecker <brobecker@adacore.com>
12645
12646 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12647 (struct ada_symbol_cache): New.
12648 (ada_free_symbol_cache): Forward declare.
12649 (struct ada_pspace_data): New.
12650 (ada_pspace_data_handle): New static global.
12651 (get_ada_pspace_data, ada_pspace_data_cleanup)
12652 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12653 (cache_space, cache): Delete, now folded inside struct
12654 ada_pspace_data.
12655 (ada_get_symbol_cache): New function.
12656 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12657 implementation.
12658 (_initialize_ada_language): Remove initialization of cache_space.
12659 Move call to observer_attach_inferior_exit up, grouping it
12660 with the other observer registrations inside this function.
12661 Rename command to be more general. Add call to
12662 register_program_space_data_with_cleanup.
12663
143adbbf
JB
126642014-02-10 Joel Brobecker <brobecker@adacore.com>
12665
12666 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12667 ada_new_objfile_observer.
12668 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12669 (_initialize_tasks): Update uses of ada_new_objfile_observer
12670 and ada_tasks_normal_stop_observer.
12671
aa4fb036
JB
126722014-02-10 Joel Brobecker <brobecker@adacore.com>
12673
12674 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12675 returned by the 'Length attribute to integer.
12676
9dee8cc6
JB
126772014-02-10 Joel Brobecker <brobecker@adacore.com>
12678
12679 * ada-lang.c (_initialize_ada_language): Initialize
12680 cache_space obstack.
12681
3d9434b5
JB
126822014-02-10 Joel Brobecker <brobecker@adacore.com>
12683
12684 * ada-lang.c (HASH_SIZE): New macro.
12685 (struct cache_entry): New type.
12686 (cache_space, cache): New static globals.
12687 (ada_clear_symbol_cache, find_entry): New functions.
12688 (lookup_cached_symbol, cache_symbol): Implement.
12689 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12690 (_initialize_ada_language): Attach ada_new_objfile_observer
12691 and ada_free_objfile_observer.
12692
f0c5f9b2
JB
126932014-02-10 Joel Brobecker <brobecker@adacore.com>
12694
12695 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12696 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12697 struct block * parameter.
12698 (ada_lookup_symbol_list_worker): Constify local variable "block".
12699 Remove cast which is no longer necessary.
12700
ed3ef339
DE
127012014-02-10 Doug Evans <xdje42@gmail.com>
12702
12703 Add Guile as an extension language.
12704 * NEWS: Mention Guile scripting.
12705 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12706 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12707 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12708 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12709 (CLIBS): Add GUILE_LIBS.
12710 (install-guile): New rule.
12711 (guile.o): New rule.
12712 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12713 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12714 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12715 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12716 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12717 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12718 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12719 * configure.ac: New option --with-guile.
12720 * configure: Regenerate.
12721 * config.in: Regenerate.
12722 * auto-load.c: Remove #include "python/python.h". Add #include
12723 "gdb/section-scripts.h".
12724 (source_section_scripts): Handle Guile scripts.
12725 (_initialize_auto_load): Add name of Guile objfile script to
12726 scripts-directory help text.
12727 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12728 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12729 (struct breakpoint): New member scm_bp_object.
12730 * defs.h (enum command_control_type): New value guile_control.
12731 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12732 "extension.h".
12733 (show_user): Update comment.
12734 (_initialize_cli_cmds): Update help text for "show user". Update help
12735 text for max-user-call-depth.
12736 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12737 "extension.h".
12738 (multi_line_command_p): Add guile_control.
12739 (print_command_lines): Handle guile_control.
12740 (execute_control_command, recurse_read_control_structure): Ditto.
12741 (process_next_line): Recognize "guile" commands.
12742 * disasm.c (gdb_disassemble_info): Make non-static.
12743 * disasm.h: #include "dis-asm.h".
12744 (struct gdbarch): Add forward decl.
12745 (gdb_disassemble_info): Declare.
12746 * extension.c: #include "guile/guile.h".
12747 (extension_languages): Add guile.
12748 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12749 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12750 * gdbtypes.c (get_unsigned_type_max): New function.
12751 (get_signed_type_minmax): New function.
12752 * gdbtypes.h (get_unsigned_type_max): Declare.
12753 (get_signed_type_minmax): Declare.
12754 * guile/README: New file.
12755 * guile/guile-internal.h: New file.
12756 * guile/guile.c: New file.
12757 * guile/guile.h: New file.
12758 * guile/scm-arch.c: New file.
12759 * guile/scm-auto-load.c: New file.
12760 * guile/scm-block.c: New file.
12761 * guile/scm-breakpoint.c: New file.
12762 * guile/scm-disasm.c: New file.
12763 * guile/scm-exception.c: New file.
12764 * guile/scm-frame.c: New file.
12765 * guile/scm-gsmob.c: New file.
12766 * guile/scm-iterator.c: New file.
12767 * guile/scm-lazy-string.c: New file.
12768 * guile/scm-math.c: New file.
12769 * guile/scm-objfile.c: New file.
12770 * guile/scm-ports.c: New file.
12771 * guile/scm-pretty-print.c: New file.
12772 * guile/scm-safe-call.c: New file.
12773 * guile/scm-string.c: New file.
12774 * guile/scm-symbol.c: New file.
12775 * guile/scm-symtab.c: New file.
12776 * guile/scm-type.c: New file.
12777 * guile/scm-utils.c: New file.
12778 * guile/scm-value.c: New file.
12779 * guile/lib/gdb.scm: New file.
12780 * guile/lib/gdb/boot.scm: New file.
12781 * guile/lib/gdb/experimental.scm: New file.
12782 * guile/lib/gdb/init.scm: New file.
12783 * guile/lib/gdb/iterator.scm: New file.
12784 * guile/lib/gdb/printing.scm: New file.
12785 * guile/lib/gdb/types.scm: New file.
12786 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12787 (VPATH): Add $(GUILE_SRCDIR).
12788 (GUILE_DIR): New variable.
12789 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12790 (all): Add stamp-guile dependency.
12791 (stamp-guile): New rule.
12792 (clean-guile, install-guile, uninstall-guile): New rules.
12793 (install-only): Add install-guile dependency.
12794 (uninstall): Add uninstall-guile dependency.
12795 (clean): Add clean-guile dependency.
12796
ac020ec5
DE
127972014-02-09 Doug Evans <xdje42@gmail.com>
12798
12799 Revert this patch (which I approved, mea culpa).
12800
12801 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12802
12803 * Makefile.in (all-lib): Remove.
12804 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12805
2a081c59
JK
128062014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12807
12808 Fix Python stack corruption.
12809 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12810 gdb_py_longest.
12811
0a6bd22d
MK
128122014-02-08 Mark Kettenis <kettenis@gnu.org>
12813
12814 * Makefile.in (all-lib): Remove.
12815 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12816
1a860409
DE
128172014-02-07 Doug Evans <dje@google.com>
12818
12819 * extension-priv.h (extension_language_script_ops): Add comment.
12820 (extension_language_ops): Add comment.
caf5a491 12821 (active_ext_lang_state): Fix typo in comment.
1a860409 12822
d137e6dc
PA
128232014-02-07 Pedro Alves <palves@redhat.com>
12824
0dcb32c3 12825 PR breakpoints/16292
d137e6dc
PA
12826 * infrun.c (handle_signal_stop) <signal arrives while stepping
12827 over a breakpoint>: Switch back to the stepping thread.
12828
ce6d0892
YQ
128292014-02-07 Yao Qi <yao@codesourcery.com>
12830
12831 * target.c (target_xfer_partial): Return zero if LEN is zero.
12832
2ed4b548
YQ
128332014-02-07 Yao Qi <yao@codesourcery.com>
12834
12835 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12836 (ld_so_xfer_auxv): Likewise.
12837 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12838 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12839 * corelow.c (core_xfer_partial): Likewise.
12840 * ctf.c (ctf_xfer_partial): Likewise.
12841 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12842 (darwin_xfer_partial): Likewise.
12843 * exec.c (exec_xfer_partial): Likewise.
12844 * gnu-nat.c (gnu_xfer_partial): Likewise.
12845 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12846 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12847 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12848 * linux-nat.c (linux_xfer_siginfo): Likewise.
12849 (linux_proc_xfer_spu): Likewise.
12850 * procfs.c (procfs_xfer_partial): Likewise.
12851 * record-full.c (record_full_xfer_partial): Likewise.
12852 (record_full_core_xfer_partial): Likewise.
12853 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12854 * remote.c (remote_write_qxfer): Likewise.
12855 (remote_write_qxfer, remote_read_qxfer): Likewise.
12856 (remote_xfer_partial): Likewise.
12857 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12858 (rs6000_xfer_shared_libraries): Likewise.
12859 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12860 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12861 (spu_xfer_partial): Likewise.
12862 * target.c (memory_xfer_partial_1): Likewise.
12863 * tracepoint.c (tfile_xfer_partial): Likewise.
12864 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12865 (windows_xfer_partial): Likewise.
12866
c09f20e4
YQ
128672014-02-07 Yao Qi <yao@codesourcery.com>
12868
12869 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12870 comments.
12871 (core_xfer_shared_libraries_aix): Likewise.
12872 * gdbarch.c, gdbarch.h: Regenerated.
12873 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12874 ULONGEST. Change 'len_avail' type to ULONGEST.
12875 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12876 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12877 declaration.
12878 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12879
8635b3bf
YQ
128802014-02-07 Yao Qi <yao@codesourcery.com>
12881
12882 * corefile.c (memory_error): Get 'exception' from ERR and pass
12883 'exception' to throw_error.
12884
6dddc817
DE
128852014-02-06 Doug Evans <xdje42@gmail.com>
12886
12887 * configure.ac (libpython checking): Remove all but python.o from
12888 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12889 * configure: Regenerate.
12890
12891 * Makefile.in (SFILES): Add extension.c.
12892 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12893 (COMMON_OBS): Add extension.o.
12894 * extension.h: New file.
12895 * extension-priv.h: New file.
12896 * extension.c: New file.
12897
12898 * python/python-internal.h: #include "extension.h".
12899 (gdbpy_auto_load_enabled): Declare.
12900 (gdbpy_apply_val_pretty_printer): Declare.
12901 (gdbpy_apply_frame_filter): Declare.
12902 (gdbpy_preserve_values): Declare.
12903 (gdbpy_breakpoint_cond_says_stop): Declare.
12904 (gdbpy_breakpoint_has_cond): Declare.
12905 (void source_python_script_for_objfile): Delete.
12906 * python/python.c: #include "extension-priv.h".
12907 Delete inclusion of "observer.h".
12908 (extension_language_python): Moved here and renamed from
12909 script_language_python in py-auto-load.c.
12910 Redefined to be of type extension_language_defn.
12911 (python_extension_script_ops): New global.
12912 (python_extension_ops): New global.
12913 (struct python_env): New member previous_active.
12914 (restore_python_env): Call restore_active_ext_lang.
12915 (ensure_python_env): Call set_active_ext_lang.
12916 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12917 New arg extlang.
12918 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12919 New arg extlang.
12920 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12921 New arg extlang.
12922 (gdbpy_eval_from_control_command): Renamed from
12923 eval_python_from_control_command, made static. New arg extlang.
12924 (gdbpy_source_script) Renamed from source_python_script, made static.
12925 New arg extlang.
12926 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12927 result to int. New arg extlang.
12928 (gdbpy_source_objfile_script): Renamed from
12929 source_python_script_for_objfile, made static. New arg extlang.
12930 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12931 static. New args extlang, extlang_printers. Change result type to
12932 "void".
12933 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12934 static. New arg extlang. Rename arg printers to extlang_printers
12935 and change type to ext_lang_type_printers *.
12936 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12937 static. Replace argument arg with extlang, extlang_printers.
12938 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12939 (!HAVE_PYTHON, source_python_script): Delete.
12940 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12941 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12942 (!HAVE_PYTHON, start_type_printers): Delete.
12943 (!HAVE_PYTHON, apply_type_printers): Delete.
12944 (!HAVE_PYTHON, free_type_printers): Delete.
12945 (_initialize_python): Delete call to observer_attach_before_prompt.
12946 (finalize_python): Set/restore active extension language.
12947 (gdbpy_finish_initialization) Renamed from
12948 finish_python_initialization, made static. New arg extlang.
12949 (gdbpy_initialized): New function.
12950 * python/python.h: #include "extension.h". Delete #include
12951 "value.h", "mi/mi-cmds.h".
12952 (extension_language_python): Declare.
12953 (GDBPY_AUTO_FILE_NAME): Delete.
12954 (enum py_bt_status): Moved to extension.h and renamed to
12955 ext_lang_bt_status.
12956 (enum frame_filter_flags): Moved to extension.h.
12957 (enum py_frame_args): Moved to extension.h and renamed to
12958 ext_lang_frame_args.
12959 (finish_python_initialization): Delete.
12960 (eval_python_from_control_command): Delete.
12961 (source_python_script): Delete.
12962 (apply_val_pretty_printer): Delete.
12963 (apply_frame_filter): Delete.
12964 (preserve_python_values): Delete.
12965 (gdbpy_script_language_defn): Delete.
12966 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12967 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12968
12969 * auto-load.c: #include "extension.h".
12970 (GDB_AUTO_FILE_NAME): Delete.
12971 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12972 (script_language_gdb): Delete, moved to extension.c and renamed to
12973 extension_language_gdb.
12974 (source_gdb_script_for_objfile): Delete.
12975 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12976 (loaded_script): Change type of language member to
12977 struct extension_language_defn *.
12978 (init_loaded_scripts_info): Initialize
12979 unsupported_script_warning_printed.
12980 (maybe_add_script): Make static. Change type of language arg to
12981 struct extension_language_defn *.
12982 (clear_section_scripts): Reset unsupported_script_warning_printed.
12983 (auto_load_objfile_script_1): Rewrite to use extension language API.
12984 (auto_load_objfile_script): Make public. Remove support-compiled-in
12985 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12986 (source_section_scripts): Rewrite to use extension language API.
12987 (load_auto_scripts_for_objfile): Rewrite to use
12988 auto_load_scripts_for_objfile.
12989 (collect_matching_scripts_data): Change type of language member to
12990 struct extension_language_defn *.
12991 (auto_load_info_scripts): Change type of language arg to
12992 struct extension_language_defn *.
12993 (unsupported_script_warning_print): New function.
12994 (script_not_found_warning_print): Make static.
12995 (_initialize_auto_load): Rewrite construction of scripts-directory
12996 help.
12997 * auto-load.h (struct objfile): Add forward decl.
12998 (struct script_language): Delete.
12999 (struct auto_load_pspace_info): Add forward decl.
13000 (struct extension_language_defn): Add forward decl.
13001 (maybe_add_script): Delete.
13002 (auto_load_objfile_script): Declare.
13003 (script_not_found_warning_print): Delete.
13004 (auto_load_info_scripts): Update prototype.
13005 (auto_load_gdb_scripts_enabled): Declare.
13006 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13007 auto_load_python_scripts_enabled and made public.
13008 (script_language_python): Delete, moved to python.c.
13009 (gdbpy_script_language_defn): Delete.
13010 (info_auto_load_python_scripts): Update to use
13011 extension_language_python.
13012
13013 * breakpoint.c (condition_command): Replace call to
13014 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13015 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13016 with call to breakpoint_ext_lang_cond_says_stop.
13017 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13018 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13019 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13020 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13021 New arg slang.
13022 (local_setattro): Print name of extension language with existing
13023 stop condition.
13024
13025 * valprint.c (val_print, value_print): Update to call
13026 apply_ext_lang_val_pretty_printer.
13027 * cp-valprint.c (cp_print_value): Update call to
13028 apply_ext_lang_val_pretty_printer.
13029 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13030 (gdbpy_apply_val_pretty_printer): Renamed from
13031 apply_val_pretty_printer. New arg extlang.
13032 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13033
13034 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13035 extension language API.
13036 * cli/cli-script.c (execute_control_command): Update to call
13037 eval_ext_lang_from_control_command.
13038
13039 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13040 enum ext_lang_bt_status values. Update call to
13041 apply_ext_lang_frame_filter.
13042 (mi_cmd_stack_list_locals): Ditto.
13043 (mi_cmd_stack_list_args): Ditto.
13044 (mi_cmd_stack_list_variables): Ditto.
13045 * mi/mi-main.c: Delete #include "python/python-internal.h".
13046 Add #include "extension.h".
13047 (mi_cmd_list_features): Replace reference to python internal variable
13048 gdb_python_initialized with call to ext_lang_initialized_p.
13049
13050 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13051 Update to use enum ext_lang_frame_args. Update to call
13052 apply_ext_lang_frame_filter.
13053 * python/py-framefilter.c (extract_sym): Update to use enum
13054 ext_lang_bt_status.
13055 (extract_value, py_print_type, py_print_value): Ditto.
13056 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13057 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13058 (py_print_frame): Ditto.
13059 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13060 New arg extlang. Update to use enum ext_lang_bt_status.
13061
13062 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13063 finish_python_initialization. Replace with call to
13064 finish_ext_lang_initialization.
13065
13066 * typeprint.c (do_free_global_table): Update to call
13067 free_ext_lang_type_printers.
13068 (create_global_typedef_table): Update to call
13069 start_ext_lang_type_printers.
13070 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13071 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13072 (type_print_options): Change type of global_printers from "void *"
13073 to "struct ext_lang_type_printers *".
13074
13075 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13076 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13077 (gdbpy_preserve_values): Renamed from preserve_python_values.
13078 New arg extlang.
13079 (!HAVE_PYTHON, preserve_python_values): Delete.
13080
13081 * utils.c (quit_flag): Delete, moved to extension.c.
13082 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13083 extension.c.
13084
13085 * eval.c: Delete #include "python/python.h".
13086 * main.c: Delete #include "python/python.h".
13087
13088 * defs.h: Update comment.
13089
6af79985
JB
130902014-02-06 Joel Brobecker <brobecker@adacore.com>
13091
13092 GDB 7.7 released.
13093
12c5175d
MK
130942014-02-05 Mark Kettenis <kettenis@gnu.org>
13095
13096 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13097 defined.
13098
8dc5b319
YQ
130992014-02-05 Yao Qi <yao@codesourcery.com>
13100
13101 * remote.c (remote_pass_signals): Remove local 'buf' and use
13102 rs->buf.
13103 (remote_program_signals): Likewise.
13104
de7b2893
YQ
131052014-02-05 Yao Qi <yao@codesourcery.com>
13106
13107 * ctf.c: Include "inferior.h" and "gdbthread.h".
13108 (CTF_PID): A new macro.
13109 (ctf_open): Call inferior_appeared and add_thread_silent.
13110 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13111 (ctf_thread_alive): New function.
13112 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13113
66d032ac
YQ
131142014-02-05 Yao Qi <yao@codesourcery.com>
13115
13116 Revert this patch:
13117
13118 2013-05-24 Yao Qi <yao@codesourcery.com>
13119
13120 * tracepoint.c (TFILE_PID): Remove.
13121 (tfile_open): Don't add thread and inferior.
13122 (tfile_close): Don't set 'inferior_ptid'. Don't call
13123 exit_inferior_silent.
13124 (tfile_thread_alive): Remove.
13125 (init_tfile_ops): Don't set field 'to_thread_alive' of
13126 tfile_ops.
13127
f4ccffad
CE
131282014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13129
13130 * remote.c (remote_start_remote): Call remote_check_symbols even
13131 if only symbol-file (not file) has been given.
13132
591a12a1
UW
131332014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13134
13135 * gdbarch.sh (skip_entrypoint): New callback.
13136 * gdbarch.c, gdbarch.h: Regenerate.
13137 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13138 * infrun.c (fill_in_stop_func): Likewise.
13139 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13140 (ppc_elfv2_elf_make_msymbol_special): New function.
13141 (ppc_elfv2_skip_entrypoint): Likewise.
13142 (ppc_linux_init_abi): Install them for ELFv2.
13143
cc0e89c5
UW
131442014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13145
13146 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13147 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13148 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13149 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13150 structures returned in GPRs.
13151
52f548e4
UW
131522014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13153
13154 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13155 offset to the stack parameter list for the ELFv2 ABI.
13156
d4094b6a
UW
131572014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13158
13159 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13160 set_gdbarch_convert_from_func_ptr_addr and
13161 set_gdbarch_elf_make_msymbol_special for ELFv1.
13162 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13163 function descriptors on ELFv1.
13164 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13165 set up r12 at function entry.
13166
cd453cd0
UW
131672014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13168
13169 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13170 (struct gdbarch_tdep): New member elf_abi.
13171
13172 * rs6000-tdep.c: Include "elf/ppc64.h".
13173 (rs6000_gdbarch_init): Detect ELF ABI version.
13174
0ff3e01f
UW
131752014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13176
13177 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13178 within a register pair holding a DFP 128-bit value on little-endian.
13179 (ppc64_sysv_abi_return_value_base): Likewise.
13180 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13181 (dfp_pseudo_register_write): Likewise.
13182
5b757e5d
UW
131832014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13184
13185 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13186 offset on little-endian when passing _Decimal32.
13187 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13188
084ee545
UW
131892014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13190
13191 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13192 of the overlapped FP register within the VSX register on little-
13193 endian platforms.
13194 (efpr_pseudo_register_write): Likewise.
13195
d63167af
UW
131962014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13197
13198 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13199 offset on little-endian when passing small structures.
13200
e765b44c
UW
132012014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13202
13203 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13204 (struct ppc64_sysv_argpos): New data structure.
13205 (ppc64_sysv_abi_push_float): Remove.
13206 (ppc64_sysv_abi_push_val): New function.
13207 (ppc64_sysv_abi_push_integer): Likewise.
13208 (ppc64_sysv_abi_push_freg): Likewise.
13209 (ppc64_sysv_abi_push_vreg): Likewise.
13210 (ppc64_sysv_abi_push_param): Likewise.
13211 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13212 (ppc64_sysv_abi_return_value_base): New function.
13213 (ppc64_sysv_abi_return_value): Refactor to use it.
13214
36c24d95
UW
132152014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13216
13217 * NEWS: Document new target powerpc64le-*-linux*.
13218
26fd9228
MK
132192014-02-04 Mark Kettenis <kettenis@gnu.org>
13220
13221 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13222 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13223 core dumps.
13224 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13225 register set used in ELF core dumps. Add floating-point register set.
13226
c5bb7362
KB
132272014-02-03 Kevin Buettner <kevinb@redhat.com>
13228
74228e77 13229 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
13230 dwarf2_to_gdb[] table using symbolic constants. Adjust
13231 penultimate entry from number representing the PC register
13232 to symbolic constant representing the MDR register. Add
13233 constant for the PC register to the end of the table.
13234
af09351e
MK
132352014-02-03 Mark Kettenis <kettenis@gnu.org>
13236
13237 * bsd-kvm.c: Include <sys/param.h>
13238
8507e05d
MK
132392014-02-03 Mark Kettenis <kettenis@gnu.org>
13240
13241 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13242
ae56bfb8
JB
132432014-01-31 Joel Brobecker <brobecker@adacore.com>
13244
13245 * ada-lang.h (clear_ada_sym_cache): Delete.
13246
718ee4dc
UW
132472014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13248
13249 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13250
401e27fd
JM
132512014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13252
13253 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13254 the sigreturn register save area only if the syscall is
13255 sigreturn.
13256
a7c88acd
JB
132572014-01-29 Joel Brobecker <brobecker@adacore.com>
13258
13259 * valops.c (value_slice): Minor reformatting.
13260
fa0079ea
UW
132612014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13262
13263 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13264
c6044dd1
JB
132652014-01-28 Joel Brobecker <brobecker@adacore.com>
13266
13267 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13268 New static globals.
13269 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13270 (ada_ignore_descriptive_types_p): New static global.
13271 (find_parallel_type_by_descriptive_type): Return immediately
13272 if ada_ignore_descriptive_types_p is set.
13273 (_initialize_ada_language): Register new commands "maintenance
13274 set ada", "maintenance show ada", "maintenance set ada
13275 ignore-descriptive-types" and "maintenance show ada
13276 ignore-descriptive-types".
13277 * NEWS: Add entry for new "maint ada set/show
13278 ignore-descriptive-types" commands.
13279
568e808b
MM
132802014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13281
13282 * record-btrace.c (record_btrace_close): Call btrace_teardown
13283 for all threads.
13284
467d141b
JB
132852014-01-27 Joel Brobecker <brobecker@adacore.com>
13286
13287 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13288 "ui-out.h".
13289
fb151210
JB
132902014-01-27 Joel Brobecker <brobecker@adacore.com>
13291
13292 * ada-typeprint (type_is_full_subrange_of_target_type):
13293 New function.
13294 (print_range): Add parameter bounds_prefered_p. If not set,
13295 try printing range types using the name of their base type.
13296 (print_range_type): Add parameter bounds_prefered_p.
13297 Use it in call to print_range.
13298 (print_array_type, ada_print_type): Update calls to print_range
13299 and print_range_type.
13300
aba02109
JB
133012014-01-27 Joel Brobecker <brobecker@adacore.com>
13302
13303 * ada-typeprint.c (print_array_type, print_choices, print_range)
13304 (print_range_bound, print_dynamic_range_bound, print_range_type):
13305 Remove declaration.
13306
e62e21fd
JB
133072014-01-27 Joel Brobecker <brobecker@adacore.com>
13308
13309 * ada-typeprint.c (print_range): Add missing empty line
13310 after local declaration.
13311
859cf5d1
JB
133122014-01-27 Joel Brobecker <brobecker@adacore.com>
13313
13314 * ada-valprint.c (print_optional_low_bound): Get index_type's
13315 target type for as long as it is a TYPE_CODE_RANGE.
13316
25790f6f
JB
133172014-01-27 Joel Brobecker <brobecker@adacore.com>
13318
13319 * procfs.c (procfs_make_note_section): Remove assertion and
13320 associated comment.
13321
6b6aa828
YQ
133222014-01-24 Yao Qi <yao@codesourcery.com>
13323
13324 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13325 * corelow.c (get_core_siginfo): Likewise.
13326
5d6df423
YQ
133272014-01-24 Yao Qi <yao@codesourcery.com>
13328
13329 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13330 ULONGEST. Don't check 'len' is negative.
13331 (remote_write_bytes): Change type of 'len' to ULONGEST.
13332
83b645b8
TT
133332014-01-23 Tom Tromey <tromey@redhat.com>
13334
13335 PR python/16485:
13336 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13337 Handle exception from frame.block.
13338 (FrameVars.fetch_frame_locals): Likewise.
13339
0740f8d8
TT
133402014-01-23 Tom Tromey <tromey@redhat.com>
13341
13342 PR python/16487:
13343 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13344 on a NULL pointer. Move "goto error" to correct place.
13345
21909fa1
TT
133462014-01-23 Tom Tromey <tromey@redhat.com>
13347
13348 PR python/16491:
13349 * python/py-framefilter.c (apply_frame_filter): Call
13350 ensure_python_env after computing gdbarch.
13351
17fde6d0
YQ
133522014-01-23 Yao Qi <yao@codesourcery.com>
13353
13354 * target.c (raw_memory_xfer_partial): Change argument type
13355 from void * to gdb_byte *.
13356 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13357
87ce2a04
DE
133582014-01-22 Doug Evans <dje@google.com>
13359
13360 New gdbserver option --debug-format=timestamp.
13361 * NEWS: Mention it.
13362
237b092b
AA
133632014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13364
13365 * syscalls/s390x-linux.xml: New file.
13366 * syscalls/s390-linux.xml: New file.
13367 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13368 (XML_SYSCALL_FILENAME_S390X): Likewise.
13369 (op_svc): New enum value for SVC opcode.
13370 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13371 (s390_linux_get_syscall_number): New function.
13372 (s390_gdbarch_init): Register '*get_syscall_number' and the
13373 syscall xml file name.
13374 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13375 "s390-linux.xml" and "s390x-linux.xml".
13376 * NEWS: Announce new feature.
13377
54bff650
BS
133782014-01-22 Baruch Siach <baruch@tkos.co.il>
13379
13380 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13381
14e361d7
PA
133822014-01-22 Pedro Alves <palves@redhat.com>
13383
13384 * xtensa-config.c: Include defs.h.
13385
46bbb3ed
JB
133862014-01-22 Joel Brobecker <brobecker@adacore.com>
13387
13388 * common/common-utils.h: Add "ARI:" comment beside __func__
13389 reference.
13390
3a80edfc
JB
133912014-01-22 Joel Brobecker <brobecker@adacore.com>
13392
13393 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13394 documentation a bit.
13395
4869db5e
RM
133962014-01-21 Roland McGrath <mcgrathr@google.com>
13397
13398 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13399 * configure: Regenerate.
13400 * aclocal.m4: Regenerate.
13401 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13402 New substituted variables.
13403 (install-strip): New target.
13404 (INSTALL_SCRIPT): New substituted variable.
13405 (FLAGS_TO_PASS): Add it.
13406 (install-only): Use $(INSTALL_SCRIPT) rather than
13407 $(INSTALL_PROGRAM) for gcore.
13408
9ea4267d
TT
134092014-01-20 Tom Tromey <tromey@redhat.com>
13410
13411 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13412 together.
13413
1f2bdf09
TT
134142014-01-20 Tom Tromey <tromey@redhat.com>
13415
13416 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13417 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13418 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13419 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13420 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13421 (struct cmd_list_element) <flags>: Remove.
13422 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13423 doc_allocated>: New fields.
13424 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13425 bitfields.
13426 * maint.c (maintenance_do_deprecate): Update.
13427 * top.c (execute_command): Update.
13428
e671835b
BS
134292014-01-20 Baruch Siach <baruch@tkos.co.il>
13430
13431 * xtensa-linux-nat.c: Include asm/ptrace.h.
13432
50367cd2
IB
134332014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13434
13435 * Makefile.in (SFILES): Add d-support.c.
13436 (COMMON_OBS): Add d-support.o.
13437 * d-lang.h (d_parse_symbol): Add comment, now defined in
13438 d-support.c.
13439 * d-lang.c (parse_call_convention)
13440 (parse_attributes, parse_function_types)
13441 (parse_function_args, parse_type, parse_identifier)
13442 (call_convention_p, d_parse_symbol): Move functions to ...
13443 * d-support.c: ... New file.
13444
ec9f644a
IB
134452014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13446
13447 * d-lang.h (d_parse_symbol): Add declaration.
13448 * d-lang.c (extract_identifiers)
13449 (extract_type_info): Remove functions.
13450 (parse_call_convention, parse_attributes)
13451 (parse_function_types, parse_function_args)
13452 (parse_type, parse_identifier, call_convention_p)
13453 (d_parse_symbol): New functions.
13454 (d_demangle): Use d_parse_symbol to demangle D symbols.
13455
94b1b47e
IB
134562014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13457
13458 * d-lang.h (struct builtin_d_type): New data type.
13459 (builtin_d_type): Add declaration.
13460 * d-lang.c (d_language_arch_info, build_d_types)
13461 (builtin_d_type): New functions.
13462 (enum d_primitive_types): New data type.
13463 (d_language_defn): Change c_language_arch_info to
13464 d_language_arch_info.
13465 (d_type_data): New static variable.
13466 (_initialize_d_language): Initialize d_type_data.
13467
63778547
IB
134682014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13469
13470 * d-lang.h (d_main_name): Add declaration.
13471 * d-lang.c (d_main_name): New function.
13472 * symtab.c (find_main_name): Add call to d_main_name.
13473
3271ba66
IB
134742014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13475
13476 * d-lang.c (d_language_defn): Change macro_expansion_c to
13477 macro_expansion_no.
13478
d36b3012
IB
134792014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13480
13481 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13482
c90a6fb7
SDJ
134832014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13484
13485 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13486 gdb_exception" declaration.
13487 * remote.c (getpkt_or_notif_sane): Likewise.
13488
749234e5
DE
134892014-01-17 Doug Evans <dje@google.com>
13490
13491 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13492 function, contents of dirnames_to_char_ptr_vec_append moved here.
13493 (delim_string_to_char_ptr_vec): New function.
13494 (dirnames_to_char_ptr_vec_append): Rewrite.
13495 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13496
df049a58
DE
134972014-01-17 Doug Evans <dje@google.com>
13498
13499 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13500 and moved here ...
13501 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13502 #include "common-utils.h".
13503 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13504 * common/vec.h (VEC_ASSERT_PASS): Update.
13505 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13506 (MACH_CHECK_ERROR): Update.
13507
69f97648
SM
135082014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13509
13510 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13511 comments.
13512 * gdbarch.h: Regenerate.
13513
98b1cfdc
TT
135142014-01-16 Tom Tromey <tromey@redhat.com>
13515
13516 * value.c (struct value) <regnum>: Move earlier.
13517
77a19445
TT
135182014-01-16 Tom Tromey <tromey@redhat.com>
13519
13520 * remote.c (extended_remote_create_inferior): Rename from
13521 extended_remote_create_inferior_1. Add "ops" argument. Remove
13522 old implementation.
13523
62261490
PA
135242014-01-16 Pedro Alves <palves@redhat.com>
13525
13526 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13527 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13528 the backchain.
13529
4d65956b
DE
135302014-01-16 Doug Evans <dje@google.com>
13531
13532 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13533
52834460
MM
135342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13535
13536 * btrace.h (btrace_thread_flag): New.
13537 (struct btrace_thread_info) <flags>: New.
13538 * record-btrace.c (record_btrace_resume_thread)
13539 (record_btrace_find_thread_to_move, btrace_step_no_history)
13540 (btrace_step_stopped, record_btrace_start_replaying)
13541 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13542 (record_btrace_find_resume_thread): New.
13543 (record_btrace_resume, record_btrace_wait): Extend.
13544 (record_btrace_can_execute_reverse): New.
13545 (record_btrace_open): Fail in non-stop mode.
13546 (record_btrace_set_replay): Split into this, ...
13547 (record_btrace_stop_replaying): ... this, ...
13548 (record_btrace_clear_histories): ... and this.
13549 (init_record_btrace_ops): Init to_can_execute_reverse.
13550 * NEWS: Announce it.
13551
118e6252
MM
135522014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13553
13554 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13555 (forward_target_decr_pc_after_break)
13556 (target_decr_pc_after_break): New.
13557 * target.c (forward_target_decr_pc_after_break)
13558 (target_decr_pc_after_break): New.
13559 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13560 instead of gdbarch_decr_pc_after_break.
13561 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13562 instead of gdbarch_decr_pc_after_break.
13563 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13564 instead of gdbarch_decr_pc_after_break.
13565 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13566 instead of gdbarch_decr_pc_after_break.
13567 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13568 instead of gdbarch_decr_pc_after_break.
13569 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13570 instead of gdbarch_decr_pc_after_break.
13571
6e07b1d2
MM
135722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13573
13574 * btrace.c: Include regcache.h.
13575 (btrace_add_pc): New.
13576 (btrace_enable): Call btrace_add_pc.
13577 (btrace_is_empty): New.
13578 * btrace.h (btrace_is_empty): New.
13579 * record-btrace.c (require_btrace, record_btrace_info): Call
13580 btrace_is_empty.
13581
969c39fb
MM
135822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13583
13584 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13585 Support delta reads.
13586 (linux_disable_btrace): Change return type.
13587 * common/linux-btrace.h (linux_read_btrace): Change parameters
13588 and return type to allow error reporting. Update users.
13589 (linux_disable_btrace): Change return type. Update users.
13590 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13591 New.
13592 (btrace_error): New.
13593 (btrace_block) <begin>: Comment on BEGIN == 0.
13594 * btrace.c (btrace_compute_ftrace): Start from the end of
13595 the current trace.
13596 (btrace_stitch_trace, btrace_clear_history): New.
13597 (btrace_fetch): Read delta trace, return if replaying.
13598 (btrace_clear): Move clear history code to btrace_clear_history.
13599 (parse_xml_btrace): Throw an error if parsing failed.
13600 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13601 and return type to allow error reporting.
13602 (target_read_btrace): Change parameters and return type to allow
13603 error reporting.
13604 * target.c (target_read_btrace): Update.
13605 * remote.c (remote_read_btrace): Support delta reads. Pass
13606 errors on.
13607 * NEWS: Announce it.
13608
0b722aec
MM
136092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13610
13611 * record.h (record_btrace_frame_unwind)
13612 (record_btrace_tailcall_frame_unwind): New declarations.
13613 * dwarf2-frame: Include record.h
13614 (dwarf2_frame_cfa): Throw an error for btrace frames.
13615 * record-btrace.c: Include hashtab.h.
13616 (btrace_get_bfun_name): New.
13617 (btrace_call_history): Call btrace_get_bfun_name.
13618 (struct btrace_frame_cache): New.
13619 (bfcache): New.
13620 (bfcache_hash, bfcache_eq, bfcache_new): New.
13621 (btrace_get_frame_function): New.
13622 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13623 (record_btrace_frame_this_id): Compute own id.
13624 (record_btrace_frame_prev_register): Provide PC, throw_error
13625 for all other registers.
13626 (record_btrace_frame_sniffer): Detect btrace frames.
13627 (record_btrace_tailcall_frame_sniffer): New.
13628 (record_btrace_frame_dealloc_cache): New.
13629 (record_btrace_frame_unwind): Add new functions.
13630 (record_btrace_tailcall_frame_unwind): New.
13631 (_initialize_record_btrace): Allocate cache.
13632 * btrace.c (btrace_clear): Call reinit_frame_cache.
13633 * NEWS: Announce it.
13634
066ce621
MM
136352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13636
13637 * record-btrace.c (record_btrace_set_replay)
13638 (record_btrace_goto_begin, record_btrace_goto_end)
13639 (record_btrace_goto): New.
13640 (init_record_btrace_ops): Initialize them.
13641 * NEWS: Announce it.
13642
e2887aa3
MM
136432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13644
13645 * record-btrace.c (record_btrace_find_new_threads)
13646 (record_btrace_thread_alive): New.
13647 (init_record_btrace_ops): Initialize to_find_new_threads and
13648 to_thread_alive.
13649
b2f4cfde
MM
136502014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13651
13652 * record-btrace.c (record_btrace_resume): New.
13653 (record_btrace_wait): New.
13654 (init_record_btrace_ops): Initialize to_wait and to_resume.
13655
633785ff
MM
136562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13657
13658 * record-btrace.c (record_btrace_xfer_partial)
13659 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13660 (record_btrace_allow_memory_access): New.
13661 (init_record_btrace_ops): Initialize new methods.
13662 * target.c (raw_memory_xfer_partial): Bail out if target reports
13663 that this memory is not available.
13664
3db08215
MM
136652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13666
13667 * target.h (target_ops) <to_insert_breakpoint>
13668 <to_remove_breakpoint>: Add target_ops parameter.
13669 (forward_target_insert_breakpoint): New.
13670 (forward_target_remove_breakpoint): New.
13671 (memory_remove_breakpoint, memory_insert_breakpoint):
13672 Add target_ops parameter.
13673 * target.c (target_insert_breakpoint): Split into this and ...
13674 (forward_target_insert_breakpoint): ... this.
13675 (target_remove_breakpoint): Split into this and ...
13676 (forward_target_remove_breakpoint): ... this.
13677 (debug_to_insert_breakpoint): Add target_ops parameter.
13678 Call forward_target_insert_breakpoint.
13679 (debug_to_remove_breakpoint): Add target_ops parameter.
13680 Call forward_target_remove_breakpoint.
13681 (update_current_target): Do not inherit or default to_insert_breakpoint
13682 and to_remove_breakpoint.
13683 * corelow.c (ignore): Add target_ops parameter.
13684 * exec.c (ignore): Add target_ops parameter.
13685 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13686 Add target_ops parameter.
13687 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13688 Add target_ops parameter.
13689 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13690 Add target_ops parameter.
13691 * record-full.c (record_full_beneath_to_insert_breakpoint)
13692 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13693 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13694 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13695 (record_full_core_remove_breakpoint): Add target_ops parameter.
13696 Update users.
13697 (record_full_beneath_to_insert_breakpoint_ops)
13698 (record_full_beneath_to_remove_breakpoint_ops)
13699 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13700 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13701 tmp_to_remove_breakpoint_ops,
13702 record_full_beneath_to_insert_breakpoint_ops, and
13703 record_full_beneath_to_remove_breakpoint_ops.
13704 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13705 (m32r_remove_breakpoint): Add target_ops parameter.
13706 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13707 Add target_ops parameter.
13708 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13709 Add target_ops parameter.
13710
cecac1ab
MM
137112014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13712 Markus Metzger <markus.t.metzger@intel.com>
13713
13714 * record-btrace.c: Include frame-unwind.h.
13715 (record_btrace_frame_unwind_stop_reason)
13716 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13717 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13718 New.
13719 (init_record_btrace_ops): Install it.
13720
824344ca
MM
137212014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13722
13723 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13724 get_prev_frame_1.
13725
32261e52
MM
137262014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13727
13728 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13729 earlier.
13730
ea001bdc
MM
137312014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13732
13733 * frame-unwind.c: Include target.h.
13734 (frame_unwind_try_unwinder): New function with code from ...
13735 (frame_unwind_find_by_frame): ... here. New variable
13736 unwinder_from_target, call also target_get_unwinder)
13737 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13738 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13739 * target.h (struct target_ops): New fields to_get_unwinder and
13740 to_get_tailcall_unwinder.
13741 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13742
1f3ef581
MM
137432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13744
13745 * record-btrace.c (record_btrace_fetch_registers)
13746 (record_btrace_store_registers)
13747 (record_btrace_to_prepare_to_store): New.
13748 (init_record_btrace_ops): Add the above.
13749
f32dbf8c
MM
137502014-01-16 Tom Tromey <tromey@redhat.com>
13751
13752 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13753 * target.h (struct target_ops) <to_prepare_to_store>: Add
13754 argument.
13755 (target_prepare_to_store): Add argument.
13756 * target.c (debug_to_prepare_to_store): Add argument.
13757 (update_current_target): Update.
13758 * remote.c (remote_prepare_to_store): Add 'self' argument.
13759 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13760 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13761 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13762 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13763 argument.
13764 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13765 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13766 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13767 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13768 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13769
07bbe694
MM
137702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13771
13772 * btrace.h (replay) <replay>: New.
13773 (btrace_is_replaying): New.
13774 * btrace.c (btrace_clear): Free replay iterator.
13775 (btrace_is_replaying): New.
13776 * record-btrace.c (record_btrace_is_replaying): New.
13777 (record_btrace_info): Print insn number if replaying.
13778 (record_btrace_insn_history): Start at replay position.
13779 (record_btrace_call_history): Start at replay position.
13780 (init_record_btrace_ops): Init to_record_is_replaying.
13781
0688d04e
MM
137822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13783
13784 * record-btrace.c (record_btrace_insn_history_range): Include
13785 end.
13786 (record_btrace_insn_history_from): Adjust range.
13787 (record_btrace_call_history_range): Include
13788 end.
13789 (record_btrace_call_history_from): Adjust range.
13790 * NEWS: Announce changes.
13791
8710b709
MM
137922014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13793
13794 * record.h (enum record_print_flag)
13795 <record_print_indent_calls>: New.
13796 * record.c (get_call_history_modifiers): Recognize /c modifier.
13797 (_initialize_record): Document /c modifier.
13798 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13799 Reorder fields. Optionally indent the function name. Update
13800 all users.
13801 * NEWS: Announce changes.
13802
d0fa7535
MM
138032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13804
13805 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13806
5de9129b
MM
138072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13808
13809 * btrace.c (ftrace_new_function): Start counting at one.
13810 * record-btrace.c (record_btrace_info): Adjust number of calls
13811 and insns.
13812 * NEWS: Announce it.
13813
7acbe133
MM
138142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13815
13816 * record-btrace.c (btrace_call_history_insn_range): Print
13817 insn range as [begin, end].
13818
23a7fe75
MM
138192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13820
13821 * btrace.h (struct btrace_func_link): New.
13822 (enum btrace_function_flag): New.
13823 (struct btrace_inst): Rename to ...
13824 (struct btrace_insn): ...this. Update all users.
13825 (struct btrace_func) <ibegin, iend>: Remove.
13826 (struct btrace_func_link): New.
13827 (struct btrace_func): Rename to ...
13828 (struct btrace_function): ...this. Update all users.
13829 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13830 (number, level, flags>: New.
13831 (struct btrace_insn_iterator): Rename to ...
13832 (struct btrace_insn_history): ...this.
13833 Update all users.
13834 (struct btrace_insn_iterator, btrace_call_iterator): New.
13835 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13836 (struct btrace_target_info) <begin, end, level>
13837 <insn_history, call_history>: New.
13838 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13839 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13840 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13841 (btrace_call_number, btrace_call_begin, btrace_call_end)
13842 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13843 (btrace_find_function_by_number, btrace_set_insn_history)
13844 (btrace_set_call_history): New.
13845 * btrace.c (btrace_init_insn_iterator)
13846 (btrace_init_func_iterator, compute_itrace): Remove.
13847 (ftrace_print_function_name, ftrace_print_filename)
13848 (ftrace_skip_file): Change
13849 parameter to const.
13850 (ftrace_init_func): Remove.
13851 (ftrace_debug): Use new btrace_function fields.
13852 (ftrace_function_switched): Also consider gaining and
13853 losing symbol information).
13854 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13855 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13856 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13857 New.
13858 (ftrace_new_function): Move. Remove debug print.
13859 (ftrace_update_lines, ftrace_update_insns): New.
13860 (ftrace_update_function): Check for call, ret, and jump.
13861 (compute_ftrace): Renamed to ...
13862 (btrace_compute_ftrace): ...this. Rewritten to compute call
13863 stack.
13864 (btrace_fetch, btrace_clear): Updated.
13865 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13866 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13867 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13868 (btrace_call_number, btrace_call_begin, btrace_call_end)
13869 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13870 (btrace_find_function_by_number, btrace_set_insn_history)
13871 (btrace_set_call_history): New.
13872 * record-btrace.c (require_btrace): Use new btrace thread
13873 info fields.
13874 (record_btrace_info, btrace_insn_history)
13875 (record_btrace_insn_history, record_btrace_insn_history_range):
13876 Use new btrace thread info fields and new iterator.
13877 (btrace_func_history_src_line): Rename to ...
13878 (btrace_call_history_src_line): ...this. Use new btrace
13879 thread info fields.
13880 (btrace_func_history): Rename to ...
13881 (btrace_call_history): ...this. Use new btrace thread info
13882 fields and new iterator.
13883 (record_btrace_call_history, record_btrace_call_history_range):
13884 Use new btrace thread info fields and new iterator.
13885
8372a7cb
MM
138862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13887
13888 * frame.h (frame_id_build_unavailable_stack_special): New.
13889 * frame.c (frame_id_build_unavailable_stack_special): New.
13890
c2170eef
MM
138912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13892
13893 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13894 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13895 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13896 to gdbarch.
13897 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13898 (i386_insn_is_jump, i386_jmp_p): New.
13899 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13900 insn_is_jump to gdbarch.
13901 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13902 * gdbarch.h: Regenerated.
13903 * gdbarch.c: Regenerated.
13904 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13905 (default_insn_is_jump): New.
13906 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13907 (default_insn_is_jump): New.
13908
864089d2
MM
139092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13910
13911 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13912 Change to ...
13913 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13914 (btrace_read_type) <btrace_read_new>: Change to ...
13915 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13916
ed9edfb5
MM
139172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13918
13919 * common/linux-btrace.c (linux_read_btrace): Free trace from
13920 previous iteration.
13921
fbcbc3fd
DE
139222014-01-15 Doug Evans <dje@google.com>
13923
13924 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13925 uint32_t.
13926
3d548a53
TT
139272014-01-15 Tom Tromey <tromey@redhat.com>
13928
13929 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13930 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13931 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13932 (set_objfile_main_name): New function.
13933 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13934 language_of_main>: New fields.
13935 (set_objfile_main_name): Declare.
13936 * symtab.c (find_main_name): Loop over objfiles to find the main
13937 name and language.
13938 (set_main_name): Now static.
13939 (get_main_info): Add comment.
13940 * symtab.h (set_main_name): Don't declare.
13941
32ac0d11
TT
139422014-01-15 Tom Tromey <tromey@redhat.com>
13943
13944 * symtab.c (main_progspace_key): New global.
13945 (struct main_info): New.
13946 (name_of_main, language_of_main): Remove.
13947 (get_main_info, main_info_cleanup): New function.
13948 (set_main_name, main_name, main_language): Use get_main_info.
13949 (_initialize_symtab): Initialize main_progspace_key.
13950
9e6c82ad
TT
139512014-01-15 Tom Tromey <tromey@redhat.com>
13952
13953 * dbxread.c (process_one_symbol): Update.
13954 * dwarf2read.c (read_partial_die): Update.
13955 * symfile.c (set_initial_language): Call main_language.
13956 * symtab.c (language_of_main): Now static.
13957 (set_main_name): Add 'lang' parameter.
13958 (find_main_name): Update.
13959 (main_language): New function.
13960 (symtab_observer_executable_changed): Update.
13961 * symtab.h (set_main_name): Update.
13962 (language_of_main): Remove.
13963 (main_language): Declare.
13964
6ef55de7
TT
139652014-01-15 Tom Tromey <tromey@redhat.com>
13966
13967 * symfile.c (init_entry_point_info): Use new "initialized" field.
13968 Update.
13969 * objfiles.h (struct entry_point) <initialized>: New field.
13970 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13971 (struct objfile) <ei>: ...here. Remove.
13972 * objfiles.c (entry_point_address_query): Update.
13973
53eddfa6
TT
139742014-01-15 Tom Tromey <tromey@redhat.com>
13975
13976 * objfiles.c (entry_point_address_query): Relocate entry point
13977 address.
13978 (objfile_relocate1): Do not relocate entry point address.
13979 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13980 <the_bfd_section_index>: New field.
13981 * symfile.c (init_entry_point_info): Find the entry point's
13982 section.
13983
d56e56aa
TT
139842014-01-15 Tom Tromey <tromey@redhat.com>
13985
13986 * solib-frv.c (enable_break): Use entry_point_address_query.
13987
33a97bbe
OJ
139882014-01-15 Omair Javaid <omair.javaid@linaro.org>
13989
13990 * NEWS: Add note on improved process record-replay on
13991 arm*-linux* targets.
13992
c6ec2b30
OJ
139932014-01-15 Omair Javaid <omair.javaid@linaro.org>
13994
13995 * arm-tdep.c (enum arm_record_result): New enum.
13996 (arm_record_unsupported_insn): New function.
13997 (arm_record_coproc_data_proc): Removed.
13998 (thumb2_record_ld_st_multiple): New function.
13999 (thumb2_record_ld_st_dual_ex_tbb): New function.
14000 (thumb2_record_data_proc_sreg_mimm): New function.
14001 (thumb2_record_ps_dest_generic): New function.
14002 (thumb2_record_branch_misc_cntrl): New function.
14003 (thumb2_record_str_single_data): New function.
14004 (thumb2_record_ld_mem_hints): New function.
14005 (thumb2_record_ld_word): New function.
14006 (thumb2_record_lmul_lmla_div): New function.
14007 (thumb2_record_decode_insn_handler): New function.
14008 (decode_insn): Add thumb32 instruction handlers.
14009
97dfe206
OJ
140102014-01-15 Omair Javaid <omair.javaid@linaro.org>
14011
14012 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14013 (struct arm_linux_record_tdep): Declare.
14014 (arm_canonicalize_syscall): New function.
14015 (arm_all_but_pc_registers_record): New function.
14016 (arm_linux_syscall_record): New function.
14017 (arm_linux_init_abi): Add syscall recording constructs.
14018 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14019 decoding. (arm_record_coproc_data_proc): Update arm syscall
14020 decoding.
14021 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14022 <arm_syscall_record>: New field.
14023 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14024 gdb_target_obs.
14025
9904a494
OJ
140262014-01-15 Omair Javaid <omair.javaid@linaro.org>
14027
14028 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14029 register for push instruction recording.
14030
f969241e
OJ
140312014-01-15 Omair Javaid <omair.javaid@linaro.org>
14032
14033 * arm-tdep.c (thumb_record_misc): Update to correct logical
14034 error while recording ldm, ldmia and pop instructions.
14035
bfbbec00
OJ
140362014-01-15 Omair Javaid <omair.javaid@linaro.org>
14037
14038 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14039
e40adcc9
PA
140402014-01-15 Pedro Alves <palves@redhat.com>
14041
14042 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14043 (go32_resume, go32_fetch_registers, store_register)
14044 (go32_store_registers, go32_prepare_to_store)
14045 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14046 (go32_create_inferior, go32_can_run, go32_terminal_init)
14047 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14048 declarations.
14049
b0a16e66
TT
140502014-01-15 Tom Tromey <tromey@redhat.com>
14051
14052 * target.h (async_callback_ftype): New typedef.
14053 (struct target_ops) <to_async>: Use it.
14054
bf7105a4
JB
140552014-01-15 Joel Brobecker <brobecker@adacore.com>
14056
14057 * python/py-value.c (get_field_type): Remove unnecessary curly
14058 braces for single-statement if block.
14059
a8f35c2e
JB
140602014-01-15 Joel Brobecker <brobecker@adacore.com>
14061
14062 * python/py-type.c (convert_field): Add missing empty line
14063 after declarations.
14064
bb4142cf
DE
140652014-01-14 Doug Evans <dje@google.com>
14066
14067 * symfile.h (expand_symtabs_matching): Renamed from
14068 expand_partial_symbol_names. Update prototype.
14069 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14070 * symfile.c (expand_symtabs_matching): Renamed from
14071 expand_partial_symbol_names. New args file_matcher, kind.
14072 Rename arg fun to symbol_matcher.
14073 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14074 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14075 ada_expand_partial_symbol_name.
14076 (ada_make_symbol_completion_list): Update to call
14077 expand_symtabs_matching.
14078 (ada_add_global_exceptions): Call expand_symtabs_matching.
14079 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14080 call map_symbol_filenames.
14081 * symtab.c (sources_info): Update to call map_symbol_filenames.
14082 (search_symbols): Call expand_symtabs_matching.
14083 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14084 (default_make_symbol_completion_list_break_on): Update to call
14085 expand_symtabs_matching.
14086 (make_source_files_completion_list): Update to call
14087 map_symbol_filenames.
14088
206f2a57
DE
140892014-01-14 Doug Evans <dje@google.com>
14090
14091 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14092 (expand_symtabs_symbol_matcher_ftype): New typedef.
14093 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14094 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14095 * symfile.c (expand_partial_symbol_names): Update to use
14096 expand_symtabs_symbol_matcher_ftype.
14097 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14098 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14099 Arg name_matcher renamed to symbol_matcher.
14100 * psymtab.c (recursively_search_psymtabs): Update to use
14101 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14102 sym_matcher.
14103 (expand_symtabs_matching_via_partial): Update to use
14104 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14105 Arg name_matcher renamed to symbol_matcher.
14106
540c2971
DE
141072014-01-14 Doug Evans <dje@google.com>
14108
14109 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14110 (map_partial_symbol_filenames): Ditto.
14111 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14112 (map_partial_symbol_filenames): Ditto.
14113 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14114 (map_partial_symbol_filenames): Ditto.
14115 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14116 (map_partial_symbol_filenames): Ditto.
14117 * symtab.c: Delete #include "psymtab.h".
14118
8213266a
PA
141192014-01-14 Pedro Alves <palves@redhat.com>
14120 Tom Tromey <tromey@redhat.com>
14121
14122 * infrun.c (use_displaced_stepping): Use find_record_target
14123 instead of RECORD_IS_USED.
14124 (adjust_pc_after_break): Use record_full_is_used instead of
14125 RECORD_IS_USED.
14126 * record-btrace.c (record_btrace_open): Call record_preopen
14127 instead of checking RECORD_IS_USED.
14128 * record-full.c (record_full_shortname)
14129 (record_full_core_shortname): New globals.
14130 (record_full_is_used): New function.
14131 (find_full_open): Call record_preopen instead of checking
14132 RECORD_IS_USED.
14133 (init_record_full_ops): Set the target's shortname to
14134 record_full_shortname.
14135 (init_record_full_core_ops): Set the target's shortname to
14136 record_full_core_shortname.
14137 * record-full.h (record_full_is_used): Declare.
14138 * record.c (find_record_target): Make extern.
14139 (record_preopen): New function.
14140 * record.h (RECORD_IS_USED): Delete macro.
14141 (find_record_target, record_preopen): Declare functions.
14142
7ec1862d
YQ
141432014-01-14 Yao Qi <yao@codesourcery.com>
14144
14145 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14146 'len''s type to ULONGEST.
14147 (core_xfer_shared_libraries_aix): Likewise.
14148 * gdbarch.c, gdbarch.h: Regenerated.
14149 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14150 Change type of 'len' to ULONGEST.
14151 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14152 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14153
dea80a27
YQ
141542014-01-14 Yao Qi <yao@codesourcery.com>
14155
14156 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14157 type of 'len' to ULONGEST.
14158 (linux_xfer_osdata_processgroups): Likewise.
14159 (linux_xfer_osdata_threads): Likewise.
14160 (linux_xfer_osdata_fds): Likewise.
14161 (linux_xfer_osdata_isockets): Likewise.
14162 (linux_xfer_osdata_shm): Likewise.
14163 (linux_xfer_osdata_sem): Likewise.
14164 (linux_xfer_osdata_msg): Likewise.
14165 (linux_common_xfer_osdata): Likewise.
14166 (struct osdata_type) <getter>: Likewise.
14167 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14168 the declaration.
14169
b55e14c7
YQ
141702014-01-14 Yao Qi <yao@codesourcery.com>
14171
14172 * target.h (target_xfer_partial_ftype): Update.
14173 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14174 ULONGEST.
14175 * aix-thread.c (aix_thread_xfer_partial): Change type of
14176 argument 'len' to ULONGEST.
14177 * auxv.c (procfs_xfer_auxv): Likewise.
14178 (ld_so_xfer_auxv): Likewise.
14179 (memory_xfer_auxv): Likewise.
14180 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14181 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14182 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14183 * corelow.c (core_xfer_partial): Likewise.
14184 * ctf.c (ctf_xfer_partial): Likewise.
14185 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14186 '%u'.
14187 (darwin_read_dyld_info): Likewise.
14188 (darwin_xfer_partial): Likewise.
14189 * exec.c (section_table_xfer_memory_partial): Likewise.
14190 (exec_xfer_partial): Likewise.
14191 * exec.h (section_table_xfer_memory_partial): Update
14192 declaration.
14193 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14194 instead of plongest.
14195 (gnu_xfer_partial): Likewise.
14196 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14197 (ia64_hpux_xfer_solib_got): Likewise.
14198 (ia64_hpux_xfer_partial): Likewise.
14199 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14200 * inf-ptrace.c (inf_ptrace_xfer_partial):
14201 * inf-ttrace.c (inf_ttrace_xfer_partial):
14202 * linux-nat.c (linux_xfer_siginfo): Likewise.
14203 (linux_nat_xfer_partial): Likewise.
14204 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14205 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14206 * monitor.c (monitor_xfer_memory): Likewise.
14207 (monitor_xfer_partial): Likewise.
14208 * procfs.c (procfs_xfer_partial): Likewise.
14209 * record-full.c (record_full_xfer_partial): Likewise.
14210 (record_full_core_xfer_partial): Likewise.
14211 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14212 instead of plongest.
14213 (gdbsim_xfer_partial): Likewise.
14214 * remote.c (remote_xfer_partial): Likewise.
14215 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14216 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14217 declaration.
14218 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14219 (rs6000_xfer_shared_libraries): Likewise.
14220 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14221 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14222 (sparc_xfer_partial): Likewise.
14223 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14224 (spu_xfer_partial): Likewise.
14225 * spu-multiarch.c (spu_xfer_partial): Likewise.
14226 * target.c (target_read_live_memory): Likewise.
14227 (memory_xfer_live_readonly_partial): Likewise.
14228 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14229 (target_xfer_partial, default_xfer_partial): Likewise.
14230 (current_xfer_partial): Likewise.
14231 * tracepoint.c (tfile_xfer_partial): Likewise.
14232 * windows-nat.c (windows_xfer_memory): Likewise. Call
14233 pulongest instead of plongest.
14234 (windows_xfer_partial): Likewise.
14235 (windows_xfer_shared_libraries): Likewise.
14236
05804640
YQ
142372014-01-14 Yao Qi <yao@codesourcery.com>
14238
14239 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14240 target_xfer_partial_ftype.
14241
b5b08fb4
SC
142422014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14243
14244 PR python/15464
14245 PR python/16113
14246 * valops.c (value_struct_elt_bitpos): New function
14247 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14248 object to 'None' if the field name is an empty string ("").
14249 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14250 attribute to look for a field when 'name' is 'None'.
14251 (get_field_type): New function
14252
13aaf454
DE
142532014-01-13 Doug Evans <dje@google.com>
14254
14255 PR symtab/16426
14256 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14257 (try_open_dwop_file): Ditto.
14258 * gdb_bfd.c: #include "vec.h".
14259 (bfdp): New typedef.
14260 (struct gdb_bfd_data): New member included_bfds.
14261 (gdb_bfd_unref): Unref all included bfds.
14262 (gdb_bfd_record_inclusion): New function.
14263 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14264
c2cec97c
TT
142652014-01-13 Tom Tromey <tromey@redhat.com>
14266
14267 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14268
78e5999d
TT
142692014-01-13 Tom Tromey <tromey@redhat.com>
14270
14271 * defs.h (use_windows): Remove.
14272 * gdb.c (main): Update.
14273 * main.c (captured_main, gdb_main): Update.
14274 * main.h (struct captured_main_args) <use_windows>: Remove.
14275 * top.c (use_windows): Remove.
14276
f2052bbe
TT
142772014-01-13 Tom Tromey <tromey@redhat.com>
14278
14279 * defs.h (deprecated_flush_hook): Remove.
14280
fde4f8ed
JK
142812014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14282
14283 PR threads/16216
14284 * linux-thread-db.c (try_thread_db_load): Add parameter
14285 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14286 (try_thread_db_load_from_pdir_1): Move it there from here.
14287 (try_thread_db_load_from_sdir): Update caller.
14288 (try_thread_db_load_from_dir): Move it there from here.
14289
bdf61915
PP
142902014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14291
14292 * regformats/regdat.sh: Always rewrite the register file.
14293
f71e1a8d
PA
142942014-01-13 Pedro Alves <palves@redhat.com>
14295
14296 * Makefile.in (CHECK_HEADERS): New variable.
14297 (check-headers:): New rule.
14298
42c85435
TT
142992014-01-13 Tom Tromey <tromey@redhat.com>
14300
14301 * cli/cli-setshow.c (do_set_command): Update.
14302 * defs.h (deprecated_set_hook): Remove.
14303 * top.c (deprecated_set_hook): Remove.
14304
f8de5129
PA
143052014-01-13 Pedro Alves <palves@redhat.com>
14306
14307 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14308 the tracepoint if the PC is a pseudo-register.
14309
fc270c35
TT
143102014-01-13 Tom Tromey <tromey@redhat.com>
14311
14312 * defs.h (XCALLOC): Remove.
14313 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14314 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14315 * dwarf2loc.c (allocate_piece_closure): Likewise.
14316 * elfread.c (elf_symfile_segments): Likewise.
14317 (elf_symfile_segments): Likewise.
14318 * gdbtypes.c (copy_type_recursive): Likewise.
14319 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14320 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14321 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14322 XCALLOC.
14323 * mt-tdep.c (mt_gdbarch_init): Likewise.
14324 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14325 XCALLOC.
14326 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14327 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14328 * registry.c (registry_alloc_data): Likewise.
14329 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14330 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14331 * serial.c (serial_fdopen_ops): Likewise.
14332 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14333 XCALLOC.
14334 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14335 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14336 not XCALLOC.
14337
70ba0933
TT
143382014-01-13 Tom Tromey <tromey@redhat.com>
14339
14340 * defs.h (XMALLOC): Remove.
14341 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14342 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14343 * cli-out.c (struct ui_out *): Likewise.
14344 * cli/cli-dump.c (add_dump_command): Likewise.
14345 (add_dump_command): Likewise.
14346 * complaints.c (get_complaints): Likewise.
14347 (find_complaint): Likewise.
14348 * dwarf2-frame.c (execute_cfa_program): Likewise.
14349 * dwarf2read.c (abbrev_table_read_table): Likewise.
14350 * gdbarch.sh: Likewise.
14351 * gdbarch.c: Rebuild.
14352 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14353 * interps.c (interp_new): Likewise.
14354 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14355 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14356 * mi/mi-console.c (mi_console_file_new): Likewise.
14357 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14358 * mi/mi-out.c (mi_out_new): Likewise.
14359 * mi/mi-parse.c (mi_parse): Likewise.
14360 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14361 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14362 * observer.c (xalloc_observer_list_node): Likewise.
14363 * regcache.c (regcache_xmalloc_1): Likewise.
14364 * reggroups.c (reggroup_new): Likewise.
14365 (_initialize_reggroup): Likewise.
14366 * registry.c (register_data_with_cleanup): Likewise.
14367 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14368 * ser-base.c (serial_ttystate): Likewise.
14369 * ser-mingw.c (make_pipe_state): Likewise.
14370 * ser-pipe.c (pipe_open): Likewise.
14371 * serial.c (serial_open): Likewise.
14372 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14373 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14374 (tui_alloc_win_info): Likewise.
14375 (tui_add_content_elements): Likewise.
14376 * tui/tui-file.c (tui_file_new): Likewise.
14377 * tui/tui-out.c (tui_out_new): Likewise.
14378 * ui-file.c (mem_file_new): Likewise.
14379 * ui-out.c (push_level): Likewise.
14380 (make_cleanup_ui_out_end): Likewise.
14381 (append_header_to_list): Likewise.
14382 (ui_out_new): Likewise.
14383 * user-regs.c (user_reg_add_builtin): Likewise.
14384
41bf6aca
TT
143852014-01-13 Tom Tromey <tromey@redhat.com>
14386
14387 * defs.h (XZALLOC): Remove.
14388 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14389 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14390 (get_ada_tasks_inferior_data): Likewise.
14391 * auto-load.c (get_auto_load_pspace_data): Likewise.
14392 * auxv.c (get_auxv_inferior_data): Likewise.
14393 * bfd-target.c (target_bfd_reopen): Likewise.
14394 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14395 (deprecated_insert_raw_breakpoint): Likewise.
14396 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14397 * corelow.c (core_open): Likewise.
14398 * darwin-nat.c (darwin_check_new_threads): Likewise.
14399 (darwin_attach_pid): Likewise.
14400 * dummy-frame.c (dummy_frame_push): Likewise.
14401 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14402 * dwarf2loc.c (allocate_piece_closure): Likewise.
14403 * elfread.c (elf_symfile_segments): Likewise.
14404 * eval.c (ptrmath_type_p): Likewise.
14405 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14406 * gdbtypes.c (alloc_type_arch): Likewise.
14407 (alloc_type_instance): Likewise.
14408 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14409 * inf-child.c (inf_child_can_use_agent): Likewise.
14410 * inflow.c (get_inflow_inferior_data): Likewise.
14411 * infrun.c (save_infcall_suspend_state): Likewise.
14412 * jit.c (jit_reader_load): Likewise.
14413 (get_jit_objfile_data): Likewise.
14414 (get_jit_program_space_data): Likewise.
14415 (jit_object_open_impl): Likewise.
14416 (jit_symtab_open_impl): Likewise.
14417 (jit_block_open_impl): Likewise.
14418 (jit_frame_sniffer): Likewise.
14419 * linux-fork.c (add_fork): Likewise.
14420 * maint.c (make_command_stats_cleanup): Likewise.
14421 * objfiles.c (get_objfile_pspace_data): Likewise.
14422 * opencl-lang.c (struct lval_closure): Likewise.
14423 * osdata.c (osdata_start_osdata): Likewise.
14424 * progspace.c (new_address_space): Likewise.
14425 (add_program_space): Likewise.
14426 * remote-sim.c (get_sim_inferior_data): Likewise.
14427 * sh-tdep.c (sh_gdbarch_init): Likewise.
14428 * skip.c (Ignore): Likewise.
14429 (skip_delete_command): Likewise.
14430 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14431 (library_list_start_library): Likewise.
14432 (solib_aix_current_sos): Likewise.
14433 * solib-darwin.c (get_darwin_info): Likewise.
14434 (darwin_current_sos): Likewise.
14435 * solib-dsbt.c (get_dsbt_info): Likewise.
14436 * solib-ia64-hpux.c (new_so_list): Likewise.
14437 (ia64_hpux_get_solib_linkage_addr): Likewise.
14438 * solib-spu.c (append_ocl_sos): Likewise.
14439 (spu_current_sos): Likewise.
14440 * solib-svr4.c (get_svr4_info): Likewise.
14441 (svr4_keep_data_in_core): Likewise.
14442 (library_list_start_library): Likewise.
14443 (svr4_default_sos): Likewise.
14444 (svr4_read_so_list): Likewise.
14445 * solib-target.c (library_list_start_library): Likewise.
14446 (solib_target_current_sos): Likewise.
14447 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14448 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14449 * symfile.c (default_symfile_segments): Likewise.
14450 * target-descriptions.c (tdesc_data_init): Likewise.
14451 (tdesc_create_reg): Likewise.
14452 (struct tdesc_type *): Likewise.
14453 (tdesc_create_vector): Likewise.
14454 (tdesc_set_struct_size): Likewise.
14455 (struct tdesc_type *): Likewise.
14456 (tdesc_free_feature): Likewise.
14457 (tdesc_create_feature): Likewise.
14458 * windows-nat.c (windows_add_thread): Likewise.
14459 (windows_make_so): Likewise.
14460 * xml-support.c (gdb_xml_body_text): Likewise.
14461 (gdb_xml_create_parser_and_cleanup): Likewise.
14462 (xml_process_xincludes): Likewise.
14463 * xml-syscall.c (allocate_syscalls_info): Likewise.
14464 (syscall_create_syscall_desc): Likewise.
14465
5acfdbae
SDJ
144662014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14467
14468 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14469 function, with code from i386_stap_parse_special_token.
14470 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14471 (i386_stap_parse_special_token): Move code to the two functions
14472 above; simplify it.
14473
0000e5cc
PA
144742014-01-09 Pedro Alves <palves@redhat.com>
14475 Hui Zhu <hui@codesourcery.com>
14476
14477 PR gdb/16101
14478 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14479 bp_err_string. Don't mark the location shlib_disabled if the
14480 error thrown wasn't a generic or memory error. Catch errors
14481 thrown while inserting breakpoints in overlayed code. Output
14482 error message of software breakpoints.
14483 * remote.c (remote_insert_breakpoint): If this breakpoint has
14484 target-side commands but this stub doesn't support Z0 packets,
14485 throw NOT_SUPPORTED_ERROR error.
14486 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14487 * target.h (target_insert_breakpoint): Extend comment.
14488 (target_insert_hw_breakpoint): Add comment.
14489
b7ea362b
PA
144902014-01-08 Pedro Alves <palves@redhat.com>
14491
14492 * remote.c (remote_add_thread): Add threads silently if starting
14493 up.
14494 (remote_notice_new_inferior): If in all-stop, and starting up,
14495 don't call notice_new_inferior.
14496 (get_current_thread): New function, factored out from ...
14497 (add_current_inferior_and_thread): ... this. Adjust.
14498 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14499 found any thread, then select the remote's current thread as GDB's
14500 current thread too.
14501
b7bba001
JB
145022014-01-08 Joel Brobecker <brobecker@adacore.com>
14503
14504 * NEWS: Create a new section for the next release branch.
14505 Rename the section of the current branch, now that it has
14506 been cut.
14507
16dfbded
JB
145082014-01-08 Joel Brobecker <brobecker@adacore.com>
14509
14510 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14511 * version.in: Bump version to 7.7.50.DATE-cvs.
14512
22c90ac1
YQ
145132014-01-08 Yao Qi <yao@codesourcery.com>
14514
14515 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14516 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14517 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14518
d64ad97c
YQ
145192014-01-08 Yao Qi <yao@codesourcery.com>
14520
14521 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14522 return value of bfd_get_filename to symbol_file_add_from_bfd.
14523
f93ba80c
PM
145242014-01-08 Pierre Muller <muller@sourceware.org>
14525
14526 Fix PR16201.
14527 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14528 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14529 to prim_record_mininal_symbol_and_info.
14530 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14531 in call to prim_record_minimal_symbol_and_info.
14532 (read_pe_exported_syms): Set index field of section_data.
14533
a4d9ba85
AP
145342014-01-07 Andrew Pinski <apinski@cavium.com>
14535
14536 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14537 * features/aarch64.c: Regenerate.
14538
1b67eb02
AS
145392014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14540
14541 * target.c (return_null): Define.
14542 (update_current_target): Use it instead of return_zero for
14543 functions that return a pointer.
14544
5e3f4fab
EBM
145452014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14546
14547 * source.c (add_path): Fix check for duplicated paths in the previously
14548 included paths.
14549
e2616788
HK
145502014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14551
14552 * ada-lang.c: Remove duplicated include statements.
14553 * alphabsd-nat.c: Ditto.
14554 * amd64-darwin-tdep.c: Ditto.
14555 * amd64fbsd-nat.c: Ditto.
14556 * auto-load.c: Ditto.
14557 * ax-gdb.c: Ditto.
14558 * breakpoint.c: Ditto.
14559 * dbxread.c: Ditto.
14560 * fork-child.c: Ditto.
14561 * gdb_usleep.c: Ditto.
14562 * i386-darwin-tdep.c: Ditto.
14563 * i386fbsd-nat.c: Ditto.
14564 * infcmd.c: Ditto.
14565 * inferior.c: Ditto.
14566 * jv-lang.c: Ditto.
14567 * linux-nat.c: Ditto.
14568 * linux-tdep.c: Ditto.
14569 * m68kbsd-nat.c: Ditto.
14570 * m68klinux-nat.c: Ditto.
14571 * microblaze-tdep.c: Ditto.
14572 * mips-linux-tdep.c: Ditto.
14573 * mn10300-tdep.c: Ditto.
14574 * nto-tdep.c: Ditto.
14575 * opencl-lang.c: Ditto.
14576 * osdata.c: Ditto.
14577 * printcmd.c: Ditto.
14578 * regcache.c: Ditto.
14579 * remote-m32r-sdi.c: Ditto.
14580 * remote.c: Ditto.
14581 * symfile.c: Ditto.
14582 * symtab.c: Ditto.
14583 * tilegx-linux-nat.c: Ditto.
14584 * tilegx-tdep.c: Ditto.
14585 * tracepoint.c: Ditto.
14586 * valops.c: Ditto.
14587 * vaxbsd-nat.c: Ditto.
14588 * windows-nat.c: Ditto.
14589 * xtensa-tdep.c: Ditto.
14590
bd1f7788
YQ
145912014-01-07 Yao Qi <yao@codesourcery.com>
14592
14593 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14594
79301218
JB
145952014-01-07 Yao Qi <yao@codesourcery.com>
14596 Joel Brobecker <brobecker@adacore.com>
14597
14598 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14599 (pdc_write_regs): Likewise.
14600 (fetch_regs_kernel_thread): Likewise.
14601 (store_regs_kernel_thread): Likewise.
14602
146032014-01-07 Joel Brobecker <brobecker@adacore.com>
14604
14605 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14606 tagged type objects to their actual type.
14607
8e355c5d
JB
146082014-01-07 Joel Brobecker <brobecker@adacore.com>
14609
14610 * ada-valprint.c (print_field_values): Add "language" parameter.
14611 Update calls to print_field_values and print_variant_part.
14612 Pass new parameter "language" in call to val_print instead
14613 of "current_language". Replace call to ada_val_print by call
14614 to val_print.
14615 (print_variant_part): Add "language" parameter.
14616 (ada_val_print_struct_union): Update call to print_field_values.
14617
4fbf5aa5
JB
146182014-01-07 Joel Brobecker <brobecker@adacore.com>
14619
14620 * ada-valprint.c (ui_memcpy): Delete.
14621 (ada_print_floating): Update documentation. Add empty line
14622 between between function documentation and implementation.
14623 Delete variable "buffer". Use ui_file_xstrdup in place of
14624 ui_file_put. Minor adjustments following this change.
14625
71855601
JB
146262014-01-07 Joel Brobecker <brobecker@adacore.com>
14627
14628 * ada-valprint.c (ada_val_print_string): New function,
14629 extracted from ada_val_print_array.
14630 (ada_val_print_array): Replace extracted code by call
14631 to ada_val_print_string followed by a return. Move
14632 "else" branch to the function's top block.
14633
4eb27a30
JB
146342014-01-07 Joel Brobecker <brobecker@adacore.com>
14635
14636 * ada-valprint.c (ada_val_print_array): Move implementation
14637 down. Rename parameter "offset" and "val" into "offset_aligned"
14638 and "original_value" respectively. Add parameter "offset".
14639
34b27950
JB
146402014-01-07 Joel Brobecker <brobecker@adacore.com>
14641
14642 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14643 re-organizing the code. Change the "???" message printed
14644 when target type is a TYPE_CODE_UNDEF into
14645 "<ref to undefined type>".
14646
079e4591
JB
146472014-01-07 Joel Brobecker <brobecker@adacore.com>
14648
14649 * ada-valprint.c (print_record): Delete, implementation inlined...
14650 (ada_val_print_struct_union): ... here. Remove call to
14651 ada_check_typedef in inlined implementation.
14652
8004dfd1
JB
146532014-01-07 Joel Brobecker <brobecker@adacore.com>
14654
14655 * ada-valprint.c (ada_val_print_gnat_array): New function,
14656 extracted from ada_val_print_1;
14657 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14658 (ada_val_print_flt, ada_val_print_struct_union)
14659 (ada_val_print_ref): Likewise.
14660 (ada_val_print_1): Delete variables i and elttype.
14661 Replace extracted-out code by call to corresponding
14662 new functions.
14663
760a2db0
JB
146642014-01-07 Joel Brobecker <brobecker@adacore.com>
14665
14666 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14667
3a92c861
JB
146682014-01-07 Joel Brobecker <brobecker@adacore.com>
14669
14670 * ada-valprint.c (ada_val_print_1): Replace calls to
14671 ada_val_print_1 by calls to val_print.
14672
cd1630f9
JB
146732014-01-07 Joel Brobecker <brobecker@adacore.com>
14674
14675 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14676 Update calls to self accordingly. Replace calls to c_val_print
14677 by calls to val_print.
14678
bdf779a0
JB
146792014-01-07 Joel Brobecker <brobecker@adacore.com>
14680
14681 * ada-valprint.c (print_record): Delete declaration.
14682 (adjust_type_signedness, ada_val_print_1): Likewise.
14683 (ada_val_print): Move function implementation down.
14684 (print_variant_part, print_field_values, print_record):
14685 Move function implementation up.
14686
c0d48811
JB
146872014-01-07 Joel Brobecker <brobecker@adacore.com>
14688
14689 * python/py-type.c (typy_get_name): New function.
14690 (type_object_getset): Add entry for attribute "name".
14691 * NEWS: Add entry mentioning this new attribute.
14692
c26e9cbb
YQ
146932014-01-07 Yao Qi <yao@codesourcery.com>
14694
14695 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14696 statement.
14697
0cc6f43d
YQ
146982014-01-07 Yao Qi <yao@codesourcery.com>
14699
14700 * gnu-nat.c (info_port_rights): Add qualifier const to
14701 argument args.
14702
eec03155
YQ
147032014-01-07 Yao Qi <yao@codesourcery.com>
14704
14705 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14706
f04a82ef
YQ
147072014-01-07 Yao Qi <yao@codesourcery.com>
14708
14709 * gnu-nat.c (make_inf) Update declaration.
14710 (make_inf): Make it static.
14711 (inf_set_traced): Likewise.
14712 (inf_port_to_thread, inf_task_died_status): Likewise.
14713
d57dda0a
YQ
147142014-01-07 Yao Qi <yao@codesourcery.com>
14715
14716 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14717
3aa8c969
YQ
147182014-01-07 Yao Qi <yao@codesourcery.com>
14719
14720 * gnu-nat.c (_initialize_gnu_nat): Declare.
14721
94123b4f
YQ
147222014-01-07 Yao Qi <yao@codesourcery.com>
14723
14724 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14725 'enum bfd_endian'.
14726 (struct gdbarch_info) <byte_order>: Change type to
14727 'enum bfd_endian'.
14728 <byte_order_for_code>: Likewise.
14729 * gdbarch.c, gdbarch.h: Regenerated.
14730
dc81d70a
TT
147312014-01-06 Sasha Smundak <asmundak@google.com>
14732
14733 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14734
cc2f3c35
TT
147352014-01-06 Tom Tromey <tromey@redhat.com>
14736
14737 * doublest.c (convert_doublest_to_floatformat): Use const, not
14738 CONST.
14739 * somread.c (som_symtab_read): Likewise.
14740
adcf2eed
HZ
147412014-01-07 Hui Zhu <hui@codesourcery.com>
14742
14743 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14744 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14745 (gdb_bfd_fopen): Ditto.
14746 (gdb_bfd_openr): Ditto.
14747 (gdb_bfd_openw): Ditto.
14748 (gdb_bfd_openr_iovec): Ditto.
14749 (gdb_bfd_fdopenr): Ditto.
14750 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14751 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14752 with xstrdup.
14753 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14754 with xstrdup.
14755 * symfile-mem.c (symbol_file_add_from_memory): Removed
14756 gdb_bfd_stash_filename.
14757
50722198
DE
147582014-01-03 Doug Evans <dje@google.com>
14759
14760 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14761 output.
14762
2fa4b862
JB
147632014-01-01 Joel Brobecker <brobecker@adacore.com>
14764
14765 Update year range in copyright notice of all files.
14766
28498c42
JB
147672014-01-01 Joel Brobecker <brobecker@adacore.com>
14768
14769 * top.c (print_gdb_version): Set copyright year to 2014.
14770
7b6e1046
JB
147712014-01-01 Joel Brobecker <brobecker@adacore.com>
14772
14773 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14774
df96af55 14775For older changes see ChangeLog-2013.
c906108c
SS
14776\f
14777Local Variables:
14778mode: change-log
14779left-margin: 8
14780fill-column: 74
14781version-control: never
57da7796 14782coding: utf-8
c906108c 14783End:
This page took 2.516402 seconds and 4 git commands to generate.