daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b7a084be
PA
12014-11-07 Pedro Alves <palves@redhat.com>
2
3 * infrun.c (process_event_stop_test) <subroutine check>: Don't
4 check if we did a "nexti" inside a prologue.
5 * symtab.c (in_prologue): Delete function.
6 * symtab.h (in_prologue): Delete declaration.
7
67be31e5
DE
82014-11-06 Doug Evans <xdje42@gmail.com>
9
10 * symtab.h (lookup_global_symbol): Improve function comment.
11
08724ab7
DE
122014-11-06 Doug Evans <xdje42@gmail.com>
13
14 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
15 All callers updated.
16 * symtab.h (lookup_global_symbol): Update decl.
17 (lookup_static_symbol): Move decl to better location.
18
d9060ba6
DE
192014-11-06 Doug Evans <xdje42@gmail.com>
20
21 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
22
74016e12
DE
232014-11-06 Doug Evans <xdje42@gmail.com>
24
25 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
26 All callers updated.
27 (lookup_symbol_in_all_objfiles): Renamed from
28 lookup_symbol_aux_symtabs. All callers updated.
29 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
30 All callers updated.
31 (lookup_symbol_in_objfile_symtabs): Renamed from
32 lookup_symbol_aux_objfile. All callers updated.
33
d1a2d36d
DE
342014-11-06 Doug Evans <xdje42@gmail.com>
35
36 * symtab.c (lookup_symbol_in_block): Renamed from
37 lookup_symbol_aux_block. All callers updated.
38
24d864bb
DE
392014-11-06 Doug Evans <xdje42@gmail.com>
40
41 * symtab.c (lookup_static_symbol): Renamed from
42 lookup_static_symbol_aux. All callers updated.
43 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
44 All callers updated.
45
358d6ab3
DE
462014-11-06 Doug Evans <xdje42@gmail.com>
47
48 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
49 * block.c (block_lookup_symbol): Use it.
50 * cp-support.c (make_symbol_overload_list_block): Use it.
51 * symtab.c (iterate_over_symbols): Use it.
52
16b2eaa1
DE
532014-11-06 Doug Evans <xdje42@gmail.com>
54
55 * symtab.c (lookup_block_symbol): Moved to ...
56 * block.c (block_lookup_symbol): ... here and renamed.
57 All callers updated.
58 * block.h (block_lookup_symbol): Declare.
59 * symtab.h (lookup_block_symbol): Delete.
60
2dd2cd1c
DE
612014-11-06 Doug Evans <xdje42@gmail.com>
62
63 * ada-lang.c (ada_make_symbol_completion_list): Use
64 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
65 * symtab.c (lookup_objfile_from_block): Ditto.
66
d4c58915
DE
672014-11-06 Doug Evans <xdje42@gmail.com>
68
69 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
70 TYPE_CODE_STRUCT.
71
9c1877ea
DE
722014-11-06 Doug Evans <xdje42@gmail.com>
73
74 * objfiles.c (get_objfile_arch): Constify.
75 * objfiles.h (get_objfile_arch): Update prototype.
76 * solib.c (solib_global_lookup): Fetch arch from objfile,
77 not target_gdbarch.
78
426a4079
SL
792014-11-06 Sandra Loosemore <sandra@codesourcery.com>
80
81 * nios2-tdep.c (wild_insn): Delete.
82 (profiler_insn, irqentry_insn): Delete.
83 (nios2_match_sequence): Delete.
84 (nios2_analyze_prologue): Update comments. Remove matching
85 of obsolete profiler_insn and irqentry_insn sequences.
86
ee11262d
AM
872014-11-05 Alan Modra <amodra@gmail.com>
88
89 * charset.c (convert_between_encodings): Shrink obstack using
90 obstack_blank_fast.
91 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
92 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
93 to char* before doing pointer arithmetic.
ee11262d 94
c87e6d00
SM
952014-11-04 Simon Marchi <simon.marchi@ericsson.com>
96
97 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
98
441ef17f
PA
992014-11-04 Pedro Alves <palves@redhat.com>
100
101 * breakpoint.c (breakpoint_thread_match): Delete function.
102 * breakpoint.h (breakpoint_thread_match): Delete declaration.
103
e0f52461
SC
1042014-11-03 Siva Chandra Reddy <sivachandra@google.com>
105
106 PR c++/17494
107 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
108 the method args also under EVAL_SKIP when evaluating method
109 calls under EVAL_SKIP.
110
a0b4d890
YQ
1112014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
112
113 * dwarf2loc.c (read_pieced_value): Do big endian
114 processing only if gdb_regnum is not -1.
115 (write_pieced_value): Ditto.
116
1172014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
118
119 * arm-linux-tdep.c (arm_linux_init_abi): Use
120 info.byte_order_for_code to choose endianity of breakpoint
121 instructions snippets.
122
1232014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
124
125 * arm-tdep.c (extract_arm_insn): Use
126 gdbarch_byte_order_for_code to read arm instruction.
127
e82149ff
DE
1282014-11-02 Doug Evans <xdje42@gmail.com>
129
130 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
131
d7ee84f1
DE
1322014-11-02 Doug Evans <xdje42@gmail.com>
133
134 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
135 main_subfile before returning.
136
4f072d17
DE
1372014-10-31 Doug Evans <xdje42@gmail.com>
138
139 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
140 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
141
8301c89e
DE
1422014-10-31 Doug Evans <xdje42@gmail.com>
143
144 * valops.c (value_cast_pointers): Fix whitespace.
145 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
146 Ditto.
147
02be9a71
DE
1482014-10-30 Doug Evans <dje@google.com>
149
150 * NEWS: Mention ability add attributes to gdb.Objfile and
151 gdb.Progspace objects.
152 * python/py-objfile.c (objfile_object): New member dict.
153 (objfpy_dealloc): Py_XDECREF dict.
154 (objfpy_initialize): Initialize dict.
155 (objfile_getset): Add __dict__.
156 (objfile_object_type): Set tp_dictoffset member.
157 * python/py-progspace.c (progspace_object): New member dict.
158 (pspy_dealloc): Py_XDECREF dict.
159 (pspy_initialize): Initialize dict.
160 (pspace_getset): Add __dict__.
161 (pspace_object_type): Set tp_dictoffset member.
162
6427bef6
YQ
1632014-10-30 Yao Qi <yao@codesourcery.com>
164
165 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
166 replace '\\' with '\\\\'.
167
f60325be
JB
1682014-10-29 Joel Brobecker <brobecker@adacore.com>
169
170 GDB 7.8.1 released.
171
ab917dfb
PA
1722014-10-29 Pedro Alves <palves@redhat.com>
173
174 PR gdb/17408
175 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
176 instead of assuming a thread with a stepping range is always
177 stepping.
178
d3d4baed
PA
1792014-10-29 Pedro Alves <palves@redhat.com>
180
181 PR python/17372
182 * event-top.c (change_line_handler): Call
183 gdb_rl_callback_handler_remove instead of
184 rl_callback_handler_remove.
185 (callback_handler_installed): New global.
186 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
187 (gdb_rl_callback_handler_reinstall): New functions.
188 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
189 gdb_rl_callback_handler_install instead of
190 rl_callback_handler_remove and rl_callback_handler_install.
191 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
192 instead of rl_callback_handler_remove.
193 * event-top.h (gdb_rl_callback_handler_remove)
194 (gdb_rl_callback_handler_install)
195 (gdb_rl_callback_handler_reinstall): New declarations.
196 * infrun.c (reinstall_readline_callback_handler_cleanup): New
197 cleanup function.
198 (fetch_inferior_event): Install it.
199 * top.c (gdb_readline_wrapper_line) Call
200 gdb_rl_callback_handler_remove instead of
201 rl_callback_handler_remove.
202 (gdb_readline_wrapper_cleanup): Don't call
203 rl_callback_handler_install.
204
6e5d7f39
PA
2052014-10-29 Pedro Alves <palves@redhat.com>
206
207 * event-top.c (command_line_handler): Clear the first byte of
208 linebuffer, when it is first allocated.
209
551cb6a5
PA
2102014-10-29 Pedro Alves <palves@redhat.com>
211
212 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
213 TRY_CATCH.
214
1e1e619b
PA
2152014-10-29 Pedro Alves <palves@redhat.com>
216
217 PR tui/16138
218 PR tui/17519
219 * tui/tui-interp.c (tui_is_toplevel): Delete global.
220 (tui_allowed_p): Delete function.
221 * tui/tui.c: Include "interps.h".
222 (tui_enable): Don't use tui_allowed_p. Error out here with
223 detailed error messages if the TUI is the top level interpreter,
224 or if output is not a terminal. Use newterm instead of initscr,
225 and error out if initializing the terminal fails. Also error out if
226 the terminal doesn't support cursor addressing.
227 * tui/tui.h (tui_allowed_p): Delete declaration.
228
6041179a
JB
2292014-10-29 Joel Brobecker <brobecker@adacore.com>
230
231 * arm-tdep.c (arm_skip_stack_protector): Return early if
232 address loaded by first "ldr" instruction does not have
233 a corresponding minimal symbol. Update comment.
234
6ae274b7
YQ
2352014-10-29 Yao Qi <yao@codesourcery.com>
236
237 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
238 loaded address correctly of ldr instruction.
239
7f5ef605
PA
2402014-10-28 Pedro Alves <palves@redhat.com>
241
242 PR gdb/12623
243 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
244 field.
245 * infrun.c (resume) <stepping breakpoint instruction>: Set the
246 thread's stepped_breakpoint field. Skip if reverse debugging.
247 Add comment.
248 (init_thread_stepping_state, handle_signal_stop): Clear the
249 thread's stepped_breakpoint field.
250
7d1a114c
PA
2512014-10-27 Pedro Alves <palves@redhat.com>
252
253 * remote.c (remote_thread_alive): New, factored out from ...
254 (remote_thread_alive): ... this.
255 (remote_update_thread_list): Bail out before deleting threads if
256 the target returned an empty list, and, the current thread has a
257 magic/fake ptid.
258
e5f8a7cc
PA
2592014-10-27 Pedro Alves <palves@redhat.com>
260
261 * infrun.c (handle_signal_stop): Also skip handlers when a random
262 signal arrives while handling a "stepi" or a "nexti". Set the
263 thread's 'step_after_step_resume_breakpoint' flag.
264
71e396f9
LM
2652014-10-27 Luis Machado <lgustavo@codesourcery.com>
266
267 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
268 (arm_record_ld_st_imm_offset): Reimplement to cover all
269 load/store cases for ARM opcode 010.
270 (arm_record_ld_st_multiple): Reimplement to cover all
271 load/store cases for ARM opcode 100.
272
3aee438b
DE
2732014-10-26 Doug Evans <xdje42@gmail.com>
274
275 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
276
f88cb4b6
DE
2772014-10-26 Doug Evans <xdje42@gmail.com>
278
279 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
280 parameter "kind" to "block_index".
281 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
282 "block_index".
283 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
284
a023a30f
DE
2852014-10-26 Doug Evans <xdje42@gmail.com>
286
287 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
288
4c35218e
DE
2892014-10-26 Doug Evans <xdje42@gmail.com>
290
291 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
292 obstack_alloc.
293
f08e8df3
DE
2942014-10-26 Doug Evans <xdje42@gmail.com>
295
296 * parser-defs.h (block_found): Move decl from here ...
297 * symtab.h (block_found): ... to here.
298
cf901d3b
DE
2992014-10-26 Doug Evans <xdje42@gmail.com>
300
301 * symtab.h (struct field_of_this_result): Fix typo in comment.
302 (lookup_symbol_in_language): Move function comment here.
303 (lookup_symbol): Improve function comment.
304 (basic_lookup_symbol_nonlocal): Ditto.
305 (lookup_symbol_static, lookup_symbol_global): Ditto.
306 (lookup_symbol_aux_block): Ditto.
307 (lookup_language_this): Add function comment.
308 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
309 function comment.
310 (lookup_block_symbol): Improve function comment.
311 (lookup_struct): Fix capitalization in function comment.
312 (lookup_transparent_type): Add function comment.
313 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
314 Improve function comment.
315 (lookup_objfile_from_block): Add function comment.
316 * symtab.c (lookup_symbol_in_language): Update function comment.
317 (lookup_symbol, lookup_language_this): Ditto.
318 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
319 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
320 (basic_lookup_symbol_nonlocal): Ditto.
321 (lookup_symbol_static, lookup_symbol_global): Ditto.
322 (lookup_transparent_type, lookup_block_symbol): Ditto.
323
ff6c39cf
DE
3242014-10-25 Doug Evans <xdje42@gmail.com>
325
326 * symtab.c (types_info): Delete forward decl.
327 (functions_info, variables_info, sources_info): Ditto.
328 (_initialize_symtab): Rewrite forward decl to use
329 initialize_file_ftype.
330
ec201f0c
DE
3312014-10-25 Doug Evans <xdje42@gmail.com>
332
333 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
334
ca040673
DE
3352014-10-25 Doug Evans <xdje42@gmail.com>
336
337 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
338 of local var child_die.
339
6f259a23
DB
3402014-10-24 Don Breazeal <donb@codesourcery.com>
341
342 * infrun.c (follow_fork_inferior): Update fork message printing
343 to use target_terminal_ours_for_output instead of
344 target_terminal_ours, to use _() for all format strings, to print
345 "vfork" instead of "fork" for vforks, and to add a detach message.
346 (handle_vfork_child_exec_or_exit): Update message printing to use
347 target_terminal_ours_for_output instead of target_terminal_ours, to
348 use _() for all format strings, and to fix some formatting.
349
09dd9a69
PA
3502014-10-24 Pedro Alves <palves@redhat.com>
351
352 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
353 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
354 * config/vax/vax.mh: Delete.
355 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
356 obsolete configurations section.
357 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
358 * vax-nat.c: Delete file.
359
5ab806de
PA
3602014-10-24 Pedro Alves <palves@redhat.com>
361
362 * NEWS (Removed targets): Add OS/arch column.
363
3433cfa5
SC
3642014-10-24 Siva Chandra Reddy <sivachandra@google.com>
365
366 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
367 on the arg type of a constructor only if it is of reference type.
368
96ba4233
SL
3692014-10-23 Sandra Loosemore <sandra@codesourcery.com>
370
371 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
372 accessors and constants from nios2 opcodes update.
373 (nios2_get_next_pc): Likewise.
374
28153fd3
DE
3752014-10-19 Doug Evans <xdje42@gmail.com>
376
377 * gdbthread.h (set_running): Fix comment.
378 (set_executing, finish_thread_state): Fix comment.
379
fc9b8e47
DE
3802014-10-18 Doug Evans <xdje42@gmail.com>
381
382 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
383
4ffbba72
DE
3842014-10-17 Doug Evans <dje@google.com>
385
386 * NEWS: Mention new event gdb.clear_objfiles.
387 * python/py-event.h (emit_clear_objfiles_event): Clear
388 * python/py-events.h (events_object): New member clear_objfiles.
389 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
390 event.
391 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
392 emit clear_objfiles event.
393 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
394 function.
395 (emit_clear_objfiles_event): New function.
396 (clear_objfiles): New event.
397 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
398 Declare.
399 * python/python.c (_initialize_python): Call
400 gdbpy_initialize_clear_objfiles_event.
401
d096d8c1
DE
4022014-10-17 Doug Evans <dje@google.com>
403
404 * NEWS: Mention new gdb.Objfile.progspace attribute.
405 * python/py-objfile.c (objfpy_get_progspace): New function.
406 (objfile_getset): New entry for "progspace".
407
6c4486e6
PA
4082014-10-17 Pedro Alves <palves@redhat.com>
409
410 PR gdb/17471
411 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
412 returns a copy of the input.
413 (run_command_1, continue_command, step_1, jump_command)
414 (signal_command, until_command, advance_command, finish_command)
415 (attach_command): Adjust and install a cleanup to free the
416 stripped args.
417
0ff33695
PA
4182014-10-17 Pedro Alves <palves@redhat.com>
419
420 PR gdb/17300
421 * infcmd.c (continue_1): If continuing all threads in the
422 foreground, make sure the inferior's terminal settings are put in
423 effect.
424
6fdebc3d
PA
4252014-10-17 Pedro Alves <palves@redhat.com>
426
427 PR gdb/17472
428 * annotate.c (annotate_breakpoints_invalid): Use
429 target_terminal_our_for_output instead of target_terminal_ours.
430 Give back the terminal to the target.
431 (annotate_frames_invalid): Likewise.
432
5842f62a
PA
4332014-10-17 Pedro Alves <palves@redhat.com>
434
435 * target.c (enum terminal_state): New enum.
436 (terminal_state): New global.
437 (target_terminal_init): New function.
438 (target_terminal_inferior): Skip if inferior already owns the
439 terminal.
440 (target_terminal_ours, target_terminal_ours_for_output): New
441 functions.
442 * target.h (target_terminal_init): Convert to function prototype.
443 (target_terminal_ours_for_output): Convert to function prototype
444 and tweak comment.
445 (target_terminal_ours): Convert to function prototype and tweak
446 comment.
447 * windows-nat.c (do_initial_windows_stuff): Call
448 target_terminal_init instead of child_terminal_init_with_pgrp.
449
32a8097b
PA
4502014-10-17 Pedro Alves <palves@redhat.com>
451
452 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
453 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
454 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
455 solib-osf.c.
456 * NEWS: Mention that support for alpha*-*-osf* has been removed.
457 * ada-lang.h [__alpha__ && __osf__]
458 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
459 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
460 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
461 GDB_OSABI_OSF1.
462 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
463 files.
464 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
465 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
466 * configure: Regenerate.
467 * configure.ac: Remove references to osf.
468 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
469 section. Remove all other references to osf.
470 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
471 Remove all other references to osf.
472 * dec-thread.c: Delete file.
473 * defs.h (GDB_OSABI_OSF1): Delete.
474 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
475 defined.
476 * osabi.c (gdb_osabi_names): Delete "OSF/1".
477 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
478 Delete code.
479 (unconditionally_kill_inferior)
480 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
481 * solib-osf.c: Delete file.
482
80134cf5
PA
4832014-10-17 Pedro Alves <palves@redhat.com>
484
485 * remote.c (clear_threads_listing_context): Move higher up, out of
486 the HAVE_LIBEXPAT guard.
487
89c7137f
TG
4882014-10-16 Tristan Gingold <gingold@adacore.com>
489
490 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
491 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
492 on amd64.
493
44ee4a52
PA
4942014-10-15 Pedro Alves <palves@redhat.com>
495
496 * dec-thread.c (dec_thread_count_gdb_threads)
497 (dec_thread_add_gdb_thread): Delete.
498 (dec_thread_update_thread_list): Delete.
499 (dec_thread_find_new_threads): Rename to ...
500 (dec_thread_update_thread_list): ... this. Delete GDB-size
501 threads that are no longer found in dec_thread_list.
502 (resync_thread_list): Delete.
503 (dec_thread_wait): Call dec_thread_update_thread_list instead of
504 resync_thread_list.
505
ab970af1
PA
5062014-10-15 Pedro Alves <palves@redhat.com>
507
508 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
509 * remote.c (remote_update_thread_list): Skip calling prune_threads
510 if any thread listing method is supported, and instead walk over
511 the set of remote threads listed, deleting those that are not
512 found in GDB's thread list.
513
e8032dde
PA
5142014-10-15 Pedro Alves <palves@redhat.com>
515
516 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
517 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
518 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
519 (bsd_uthread_target): Adjust.
520 * corelow.c (core_open): Adjust.
521 * dec-thread.c (dec_thread_find_new_threads): Update comment.
522 (dec_thread_update_thread_list): New function.
523 (init_dec_thread_ops): Adjust.
524 * gdbthread.h (prune_threads): New declaration.
525 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
526 (thread_db_update_thread_list): ... this. Call prune_threads.
527 (init_thread_db_ops): Adjust.
528 * nto-procfs.c (procfs_find_new_threads): Rename to ...
529 (procfs_update_thread_list): ... this. Call prune_threads.
530 (procfs_attach, procfs_create_inferior, init_procfs_targets):
531 Adjust.
532 * obsd-nat.c (obsd_find_new_threads): Rename to ...
533 (obsd_update_thread_list): ... this. Call prune_threads.
534 (obsd_add_target): Adjust.
535 * procfs.c (procfs_target): Adjust.
536 (procfs_notice_thread): Update comment.
537 (procfs_find_new_threads): Rename to ...
538 (procfs_update_thread_list): ... this. Call prune_threads.
539 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
540 comment.
541 (ravenscar_wait): Adjust.
542 (ravenscar_find_new_threads): Rename to ...
543 (ravenscar_update_thread_list): ... this. Call prune_threads.
544 (init_ravenscar_thread_ops): Adjust.
545 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
546 (record_btrace_update_thread_list): ... this. Adjust comment.
547 (init_record_btrace_ops): Adjust.
548 * remote.c (remote_threads_info): Rename to ...
549 (remote_update_thread_list): ... this. Call prune_threads.
550 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
551 Adjust.
552 * sol-thread.c (check_for_thread_db): Adjust.
553 (sol_find_new_threads_callback): Rename to ...
554 (sol_update_thread_list_callback): ... this.
555 (sol_find_new_threads): Rename to ...
556 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
557 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
558 * target-delegates.c: Regenerate.
559 * target.c (target_find_new_threads): Rename to ...
560 (target_update_thread_list): ... this.
561 * target.h (struct target_ops): Rename to_find_new_threads field
562 to to_update_thread_list.
563 (target_find_new_threads): Rename to ...
564 (target_update_thread_list): ... this.
565 * thread.c (prune_threads): Make extern.
566 (update_thread_list): Adjust.
567
6dc54d91
PA
5682014-10-15 Pedro Alves <palves@redhat.com>
569
570 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
571 Add describing comment. Return -1 if the qL packet is not
572 supported.
573 (struct thread_item, thread_item_t): Move higher up in
574 the file. Add comments.
575 (struct threads_parsing_context): Move higher up in
576 the file, add comments, and remote to ...
577 (struct threads_listing_context): ... this.
578 (remote_newthread_step): Don't add the thread to GDB's thread
579 database here. Instead push it to the thread_listing_context
580 list.
581 (remote_find_new_threads): Rename to ...
582 (remote_get_threads_with_ql): ... this. Add target_ops and
583 targets_listing_context parameters. Pass down context.
584 (start_thread): Adjust.
585 (clear_threads_parsing_context): Rename to ...
586 (clear_threads_listing_context): ... this.
587 (remote_get_threads_with_qxfer): New, with parts salvaged from old
588 remote_threads_info.
589 (remote_get_threads_with_qthreadinfo): Ditto.
590 (remote_threads_info): Reimplement.
591
36728e82
PA
5922014-10-15 Pedro Alves <palves@redhat.com>
593
594 * infrun.c (resume): Don't force displaced-stepping for all
595 single-steps on software single-stepping archs.
596
34b7e8a6
PA
5972014-10-15 Pedro Alves <palves@redhat.com>
598
599 * breakpoint.c (single_step_breakpoints): Delete global.
600 (insert_single_step_breakpoint): Adjust to store the breakpoint
601 pointer in the current thread.
602 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
603 (cancel_single_step_breakpoints): Delete functions.
604 (breakpoint_has_location_inserted_here): Make extern.
605 (single_step_breakpoint_inserted_here_p): Adjust to walk the
606 breakpoint list.
607 * breakpoint.h (breakpoint_has_location_inserted_here): New
608 declaration.
609 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
610 (cancel_single_step_breakpoints): Remove declarations.
611 * gdbthread.h (struct thread_control_state)
612 <single_step_breakpoints>: New field.
613 (delete_single_step_breakpoints)
614 (thread_has_single_step_breakpoints_set)
615 (thread_has_single_step_breakpoint_here): New declarations.
616 * infrun.c (follow_exec): Also clear the single-step breakpoints.
617 (singlestep_breakpoints_inserted_p, singlestep_ptid)
618 (singlestep_pc): Delete globals.
619 (infrun_thread_ptid_changed): Remove references to removed
620 globals.
621 (resume_cleanups): Delete the current thread's single-step
622 breakpoints.
623 (maybe_software_singlestep): Remove references to removed globals.
624 (resume): Adjust to use thread_has_single_step_breakpoints_set and
625 delete_single_step_breakpoints.
626 (init_wait_for_inferior): Remove references to removed globals.
627 (delete_thread_infrun_breakpoints): Delete the thread's
628 single-step breakpoints too.
629 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
630 single-step breakpoints here.
631 (delete_stopped_threads_single_step_breakpoints): New function.
632 (adjust_pc_after_break): Adjust to use
633 thread_has_single_step_breakpoints_set.
634 (handle_inferior_event): Remove references to removed globals.
635 Use delete_stopped_threads_single_step_breakpoints.
636 (handle_signal_stop): Adjust to per-thread single-step
637 breakpoints. Swap test order to do cheaper tests first.
638 (switch_back_to_stepped_thread): Extend debug output. Remove
639 references to removed globals.
640 * record-full.c (record_full_wait_1): Adjust to per-thread
641 single-step breakpoints.
642 * thread.c (delete_single_step_breakpoints)
643 (thread_has_single_step_breakpoints_set)
644 (thread_has_single_step_breakpoint_here): New functions.
645 (clear_thread_inferior_resources): Also delete the thread's
646 single-step breakpoints.
647
5b834a0a
PA
6482014-10-15 Pedro Alves <palves@redhat.com>
649
650 * thread.c (delete_thread_breakpoint): New function.
651 (delete_step_resume_breakpoint)
652 (delete_exception_resume_breakpoint): Use it.
653 (delete_at_next_stop): New function.
654 (clear_thread_inferior_resources): Use delete_at_next_stop.
655
a1fd2fa5
PA
6562014-10-15 Pedro Alves <palves@redhat.com>
657
658 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
659 (breakpoint_inserted_here_p): ... here. Remove special case for
660 software single-step breakpoints.
661 (find_non_raw_software_breakpoint_inserted_here): Inline ...
662 (software_breakpoint_inserted_here_p): ... here. Remove special
663 case for software single-step breakpoints.
664 (bp_target_info_copy_insertion_state)
665 (deprecated_insert_raw_breakpoint)
666 (deprecated_remove_raw_breakpoint): Delete functions.
667 * breakpoint.h (deprecated_insert_raw_breakpoint)
668 (deprecated_remove_raw_breakpoint): Remove declarations.
669
7c16b83e
PA
6702014-10-15 Pedro Alves <palves@redhat.com>
671
672 PR breakpoints/9649
673 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
674 Delete array globals.
675 (single_step_breakpoints): New global.
676 (breakpoint_xfer_memory): Remove special handling for single-step
677 breakpoints.
678 (update_breakpoints_after_exec): Delete bp_single_step
679 breakpoints.
680 (detach_breakpoints): Remove special handling for single-step
681 breakpoints.
682 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
683 (bpstat_stop_status): Add comment.
684 (bpstat_what, bptype_string, print_one_breakpoint_location)
685 (adjust_breakpoint_address, init_bp_location): Handle
686 bp_single_step.
687 (new_single_step_breakpoint): New function.
688 (set_momentary_breakpoint, bkpt_remove_location): Remove special
689 handling for single-step breakpoints.
690 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
691 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
692 Rewrite.
693 (detach_single_step_breakpoints, find_single_step_breakpoint):
694 Delete functions.
695 (breakpoint_has_location_inserted_here): New function.
696 (single_step_breakpoint_inserted_here_p): Rewrite.
697 * breakpoint.h: Remove FIXME.
698 (enum bptype) <bp_single_step>: New enum value.
699 (insert_single_step_breakpoint): Update comment.
700 * infrun.c (resume_cleanups)
701 (delete_step_thread_step_resume_breakpoint): Remove single-step
702 breakpoints.
703 (fetch_inferior_event): Install a cleanup that removes infrun
704 breakpoints.
705 (switch_back_to_stepped_thread) <expect thread advanced also>:
706 Clear step-over info.
707
0cbcdb96
PA
7082014-10-15 Pedro Alves <palves@redhat.com>
709
710 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
711 (delete_thread_infrun_breakpoints): New function, with parts
712 salvaged from delete_step_resume_breakpoint_callback.
713 (delete_step_thread_step_resume_breakpoint): Delete.
714 (for_each_just_stopped_thread_callback_func): New typedef.
715 (for_each_just_stopped_thread): New function.
716 (delete_just_stopped_threads_infrun_breakpoints): New function.
717 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
718 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
719 ... this. Adjust.
720 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
721
963f9c80
PA
7222014-10-15 Pedro Alves <palves@redhat.com>
723
724 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
725 trying to step past a non-steppable watchpoint.
726 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
727 field.
728 * infrun.c (struct step_over_info): Add new field
729 'nonsteppable_watchpoint_p' and adjust comments.
730 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
731 Adjust.
732 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
733 (stepping_past_nonsteppable_watchpoint): New function.
734 (step_over_info_valid_p): Also return true if stepping past a
735 nonsteppable watchpoint.
736 (proceed): Adjust call to set_step_over_info. Remove reference to
737 init_infwait_state.
738 (init_wait_for_inferior): Remove reference to init_infwait_state.
739 (waiton_ptid): Delete global.
740 (struct execution_control_state)
741 <stepped_after_stopped_by_watchpoint>: Delete field.
742 (wait_for_inferior, fetch_inferior_event): Always pass
743 minus_one_ptid to target_wait.
744 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
745 field.
746 (init_infwait_state): Delete function.
747 (handle_inferior_event): Remove infwait_state handling.
748 (handle_signal_stop) <watchpoints handling>: Adjust after
749 stepped_after_stopped_by_watchpoint removal. Don't remove
750 breakpoints here nor set infwait_state. Set the thread's
751 stepping_over_watchpoint flag, and call keep_going instead.
752 (keep_going): Handle stepping_over_watchpoint. Adjust
753 set_step_over_info calls.
754 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
755 function.
756
6cc83d2a
PA
7572014-10-15 Pedro Alves <palves@redhat.com>
758
759 * infrun.c (step_over_info_valid_p): New function.
760 (resume): Use step_over_info_valid_p instead of checking the
761 threads's trap_expected flag.
762
6979730b
DE
7632014-10-15 Doug Evans <dje@google.com>
764 Walfred Tedeschi <walfred.tedeschi@intel.com>
765
766 PR python/17364
767 * python/lib/gdb/__init__.py (packages): Add "printer".
768 * python/lib/gdb/command/bound_registers.py: Moved to ...
769 * python/lib/gdb/printer/bound_registers.py: ... here.
770 Add printer to global set of builtin printers. Rename printer from
771 "bound" to "mpx_bound128".
772 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
773 registered as global "builtin" printer.
774 (add_builtin_pretty_printer): New function.
775 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
776 gdb/printer/__init__.py.
777
35a49624
IB
7782014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
779
780 * Makefile.in (SFILES): Remove d-support.c.
781 (COMMON_OBS): Remove d-support.o.
782 * d-lang.h (d_parse_symbol): Remove declaration.
783 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
784 * d-support.c: Remove file.
785
8fa0c4f8
AA
7862014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
787
788 * gdb/infrun.c (process_event_stop_test): Apply
789 gdbarch_addr_bits_remove to longjmp resume address.
790
3666da81
PA
7912014-10-15 Pedro Alves <palves@redhat.com>
792
793 * regformats/microblaze.dat: Delete file.
794
449aa9df
AKA
7952014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
796
797 * features/Makefile (microblaze-expedite): Replace pc with rpc.
798 * regformats/microblaze-with-stack-protect.dat: Regenerate.
799
ebb8ece2
SC
8002014-10-15 Siva Chandra Reddy <sivachandra@google.com>
801
802 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
803 as non-trivial.
804
82c48ac7
SC
8052014-10-15 Siva Chandra Reddy <sivachandra@google.com>
806
807 PR c++/13403
808 PR c++/15154
809 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
810 with qualified args.
811
c40cc657
JB
8122014-10-14 Joel Brobecker <brobecker@adacore.com>
813
814 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
815 of the case where the second operand is a pointer.
816 <BINOP_SUB>: Likewise.
817
0ea5cda8
SDJ
8182014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
819
820 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
821 only if it is not NULL.
822 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
823 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
824 (struct probe_ops) <clear_semaphore>: Likewise.
825 * tracepoint.c (start_tracing): Call set_semaphore only if it is
826 not NULL.
827 (stop_tracing): Likewise, for clear_semaphore.
828
f7088df3
SDJ
8292014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
830
831 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
832 using language_c, instead of current_language.
833
4e1bbde0
DE
8342014-10-13 Doug Evans <dje@google.com>
835
6ff5a0f6 836 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 837 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 838 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
839 (pspy_new, pspace_to_pspace_object): Call it.
840
c780cc2f
JK
8412014-10-13 Miroslav Franc <mfranc@redhat.com>
842 Jan Kratochvil <jan.kratochvil@redhat.com>
843
844 Fix "save breakpoints" for "catch" command.
845 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
846 newline.
847
99894e11
JK
8482014-10-12 Miroslav Franc <mfranc@redhat.com>
849
850 Fix "save breakpoints" for "disable $bpnum" command.
851 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
852
3831839c
PA
8532014-10-10 Pedro Alves <palves@redhat.com>
854
855 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
856 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
857 (HFILES_NO_SRCDIR): Remove solib-irix.h.
858 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
859 and been removed.
860 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
861 * configure.ac: Remove references to IRIX.
862 * configure.host: Add *-*-irix* to the obsolete hosts section.
863 Remove all other references to irix.
864 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
865 Delete files.
866
cc3afae2
AKA
8672014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
868
869 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
870 isn't valid, release the tdesc arch data and return NULL.
871
cdfa0b0a
PA
8722014-10-10 Pedro Alves <palves@redhat.com>
873
874 * linux-tdep.c: Include observer.h.
875 (linux_inferior_data): New global.
876 (struct linux_info): New structure.
877 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
878 (get_linux_inferior_data): New functions.
879 (linux_vsyscall_range): Rename to ...
880 (linux_vsyscall_range_raw): ... this.
881 (linux_vsyscall_range): New function; handles caching.
882 (_initialize_linux_tdep): Register linux_inferior_data. Install
883 inferior_exit and inferior_appeared observers.
884
8b9a549d
PA
8852014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
886 Pedro Alves <palves@redhat.com>
887
888 PR symtab/14466
889 * solib-svr4.c (svr4_read_so_list): Rename to ...
890 (svr4_current_sos_1): ... this and change the function comment.
891 (svr4_current_sos): New function.
892
3437254d
PA
8932014-10-10 Pedro Alves <palves@redhat.com>
894
895 * arch-utils.c (default_vsyscall_range): New function.
896 * arch-utils.h (default_vsyscall_range): New declaration.
897 * gdbarch.sh (vsyscall_range): New hook.
898 * gdbarch.h, gdbarch.c: Regenerate.
899 * linux-tdep.c (linux_vsyscall_range): New function.
900 (linux_init_abi): Install linux_vsyscall_range as
901 vsyscall_range gdbarch hook.
902 * memrange.c (address_in_mem_range): New function.
903 * memrange.h (address_in_mem_range): New declaration.
904 * symfile-mem.c (find_vdso_size): Delete function.
905 (add_vsyscall_page): Use gdbarch_vsyscall_range.
906
31cc0b80
PA
9072014-10-10 Pedro Alves <palves@redhat.com>
908
909 * infrun.c (normal_stop): Fix typo in comment.
910
3e3286a2
SDJ
9112014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
912
913 PR tdep/9390
914 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
915 typo when using logical AND to determine instruction type.
916
fcbdedf8
YQ
9172014-10-09 Yao Qi <yao@codesourcery.com>
918
919 * infrun.c (handle_signal_stop): Remove local variable
920 'printed'.
921
db984616
SS
9222014-10-08 Stan Shebs <stan@codesourcery.com>
923
924 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
925
3ba37e6c
GB
9262014-10-08 Gary Benson <gbenson@redhat.com>
927
928 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
929
a442d071
GB
9302014-10-08 Gary Benson <gbenson@redhat.com>
931
932 * common/common-defs.h: Include common-exceptions.h.
933 * exceptions.h: Do not include common-exceptions.h.
934
6f1947e8
GB
9352014-10-08 Gary Benson <gbenson@redhat.com>
936
937 * common/common-defs.h: Include cleanups.h.
938 * common/common-exceptions.c: Do not include cleanups.h.
939 * utils.h: Likewise.
940
c765fdb9
GB
9412014-10-08 Gary Benson <gbenson@redhat.com>
942
943 * ada-lang.c: Do not include exceptions.h.
944 * ada-valprint.c: Likewise.
945 * amd64-tdep.c: Likewise.
946 * auto-load.c: Likewise.
947 * block.c: Likewise.
948 * break-catch-throw.c: Likewise.
949 * breakpoint.c: Likewise.
950 * btrace.c: Likewise.
951 * c-lang.c: Likewise.
952 * cli/cli-cmds.c: Likewise.
953 * cli/cli-interp.c: Likewise.
954 * cli/cli-script.c: Likewise.
955 * completer.c: Likewise.
956 * corefile.c: Likewise.
957 * corelow.c: Likewise.
958 * cp-abi.c: Likewise.
959 * cp-support.c: Likewise.
960 * cp-valprint.c: Likewise.
961 * darwin-nat.c: Likewise.
962 * dwarf2-frame-tailcall.c: Likewise.
963 * dwarf2-frame.c: Likewise.
964 * dwarf2loc.c: Likewise.
965 * dwarf2read.c: Likewise.
966 * eval.c: Likewise.
967 * event-loop.c: Likewise.
968 * event-top.c: Likewise.
969 * f-valprint.c: Likewise.
970 * frame-unwind.c: Likewise.
971 * frame.c: Likewise.
972 * gdbtypes.c: Likewise.
973 * gnu-v2-abi.c: Likewise.
974 * gnu-v3-abi.c: Likewise.
975 * guile/scm-auto-load.c: Likewise.
976 * guile/scm-breakpoint.c: Likewise.
977 * guile/scm-cmd.c: Likewise.
978 * guile/scm-frame.c: Likewise.
979 * guile/scm-lazy-string.c: Likewise.
980 * guile/scm-param.c: Likewise.
981 * guile/scm-symbol.c: Likewise.
982 * guile/scm-type.c: Likewise.
983 * hppa-hpux-tdep.c: Likewise.
984 * i386-tdep.c: Likewise.
985 * inf-loop.c: Likewise.
986 * infcall.c: Likewise.
987 * infcmd.c: Likewise.
988 * infrun.c: Likewise.
989 * interps.c: Likewise.
990 * interps.h: Likewise.
991 * jit.c: Likewise.
992 * linespec.c: Likewise.
993 * linux-nat.c: Likewise.
994 * linux-thread-db.c: Likewise.
995 * m32r-rom.c: Likewise.
996 * main.c: Likewise.
997 * memory-map.c: Likewise.
998 * mi/mi-cmd-break.c: Likewise.
999 * mi/mi-cmd-stack.c: Likewise.
1000 * mi/mi-interp.c: Likewise.
1001 * mi/mi-main.c: Likewise.
1002 * monitor.c: Likewise.
1003 * nto-procfs.c: Likewise.
1004 * objc-lang.c: Likewise.
1005 * p-valprint.c: Likewise.
1006 * parse.c: Likewise.
1007 * ppc-linux-tdep.c: Likewise.
1008 * printcmd.c: Likewise.
1009 * probe.c: Likewise.
1010 * python/py-auto-load.c: Likewise.
1011 * python/py-breakpoint.c: Likewise.
1012 * python/py-cmd.c: Likewise.
1013 * python/py-finishbreakpoint.c: Likewise.
1014 * python/py-frame.c: Likewise.
1015 * python/py-framefilter.c: Likewise.
1016 * python/py-function.c: Likewise.
1017 * python/py-gdb-readline.c: Likewise.
1018 * python/py-inferior.c: Likewise.
1019 * python/py-infthread.c: Likewise.
1020 * python/py-lazy-string.c: Likewise.
1021 * python/py-linetable.c: Likewise.
1022 * python/py-param.c: Likewise.
1023 * python/py-prettyprint.c: Likewise.
1024 * python/py-symbol.c: Likewise.
1025 * python/py-type.c: Likewise.
1026 * python/py-value.c: Likewise.
1027 * python/python-internal.h: Likewise.
1028 * python/python.c: Likewise.
1029 * record-btrace.c: Likewise.
1030 * record-full.c: Likewise.
1031 * regcache.c: Likewise.
1032 * remote-fileio.c: Likewise.
1033 * remote-mips.c: Likewise.
1034 * remote.c: Likewise.
1035 * rs6000-aix-tdep.c: Likewise.
1036 * rs6000-nat.c: Likewise.
1037 * skip.c: Likewise.
1038 * solib-darwin.c: Likewise.
1039 * solib-dsbt.c: Likewise.
1040 * solib-frv.c: Likewise.
1041 * solib-ia64-hpux.c: Likewise.
1042 * solib-spu.c: Likewise.
1043 * solib-svr4.c: Likewise.
1044 * solib.c: Likewise.
1045 * spu-tdep.c: Likewise.
1046 * stack.c: Likewise.
1047 * stap-probe.c: Likewise.
1048 * symfile-mem.c: Likewise.
1049 * symmisc.c: Likewise.
1050 * target.c: Likewise.
1051 * thread.c: Likewise.
1052 * top.c: Likewise.
1053 * tracepoint.c: Likewise.
1054 * tui/tui-interp.c: Likewise.
1055 * typeprint.c: Likewise.
1056 * utils.c: Likewise.
1057 * valarith.c: Likewise.
1058 * valops.c: Likewise.
1059 * valprint.c: Likewise.
1060 * value.c: Likewise.
1061 * varobj.c: Likewise.
1062 * windows-nat.c: Likewise.
1063 * xml-support.c: Likewise.
1064
484933d1
MR
10652014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1066
1067 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1068 name implies.
1069 (extended_mips16_next_pc): Update accordingly.
1070
ab50adb6
MR
10712014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1072
1073 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1074 function.
1075 (micromips_instruction_is_compact_branch): Likewise.
1076 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1077 or a compact jump, reaching a jump delay slot, or seeing a
1078 second non-prologue instruction.
1079 (micromips_scan_prologue): Also terminate scanning upon seeing a
1080 compact branch or jump, or reaching a branch or jump delay slot.
1081 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1082 or jump delay slot, or seeing a second non-prologue instruction.
1083 (mips32_instruction_has_delay_slot): Retain instruction
1084 examination code only, update arguments accordingly and move
1085 instruction fetch pieces to...
1086 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1087 (micromips_instruction_has_delay_slot): Likewise and to...
1088 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1089 (mips16_instruction_has_delay_slot): Likewise and to...
1090 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1091 (mips_single_step_through_delay): Update accordingly.
1092 (mips_adjust_breakpoint_address): Likewise.
1093
ae790652
MR
10942014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1095
1096 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1097 !mustbe32 also return 1 for 32-bit instructions.
1098 (mips16_instruction_has_delay_slot): Likewise. Add an
1099 explanatory comment.
1100
9b807e7b
MR
11012014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1102
1103 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1104 symbols special.
1105
0d5ed153
MR
11062014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1107
1108 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1109 update comments.
1110 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1111 for the breakpoint's address. Don't preinitialize `placed_size'.
1112 (insert_bp_location): Set `reqstd_address' rather than
1113 `placed_address'.
1114 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1115 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1116 address.
1117 (bkpt_remove_location): Likewise.
1118 (deprecated_insert_raw_breakpoint): Likewise.
1119 (deprecated_remove_raw_breakpoint): Likewise.
1120 (find_single_step_breakpoint): Likewise.
1121 * mem-break.c (default_memory_insert_breakpoint): Use
1122 `reqstd_address' for the breakpoint's address. Don't set
1123 `placed_address' or `placed_size' if breakpoint contents couldn't
1124 have been determined.
1125 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1126 the breakpoint's address.
1127 (remote_insert_hw_breakpoint): Likewise. Don't set
1128 `placed_address' or `placed_size' if breakpoint couldn't have been
1129 set.
1130 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1131 `reqstd_address' for the breakpoint's address.
1132 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1133 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1134 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1135 * microblaze-linux-tdep.c
1136 (microblaze_linux_memory_remove_breakpoint): Likewise.
1137 * monitor.c (monitor_insert_breakpoint): Likewise.
1138 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1139 (procfs_insert_hw_breakpoint): Likewise.
1140 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1141 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1142 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1143 * remote-mips.c (mips_insert_breakpoint): Likewise.
1144 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1145
3e871532
LM
11462014-10-03 Luis Machado <lgustavo@codesourcery.com>
1147
1148 * valops.c (value_assign): Check for bit field assignments
1149 before calling architecture-specific register value
1150 conversion functions.
1151
ec48dc8b
PM
11522014-10-03 Pierre Muller <muller@sourceware.org>
1153
1154 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1155
b57bacec
PA
11562014-10-02 Pedro Alves <palves@redhat.com>
1157
1158 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1159 threads_are_executing.
1160 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1161 describing comment.
1162 * gdbthread.h (threads_are_executing): Declare.
1163 (handle_signal_stop) <random signals>: Don't print about the
1164 signal here if stopping.
1165 (end_stepping_range): Don't notify observers here.
1166 (normal_stop): Update the thread list. If stopped by a random
1167 signal or a stepping range ended, notify observers.
1168 * thread.c (threads_executing): New global.
1169 (init_thread_list): Clear 'threads_executing'.
1170 (set_executing): Set or clear 'threads_executing'.
1171 (threads_are_executing): New function.
1172 (update_threads_executing): New function.
1173 (update_thread_list): Use it.
1174
13fd3ff3
PA
11752014-10-02 Pedro Alves <palves@redhat.com>
1176
1177 PR breakpoints/17431
1178 * breakpoint.c (update_breakpoints_after_exec): Don't create
1179 overlay, longjmp, std terminate nor exception breakpoints here.
1180
32990ada
PA
11812014-10-02 Pedro Alves <palves@redhat.com>
1182
1183 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1184 Adjust comments.
1185 * inferior.c (find_inferior_for_program_space): Give preference to
1186 the current inferior.
1187 * inferior.h (find_inferior_for_program_space): Update comment.
1188 * progspace.c (switch_to_program_space_and_thread): Prefer the
1189 current inferior if it's bound to the program space requested. If
1190 the inferior found doesn't have a PID yet, don't bother looking up
1191 a thread.
1192 * progspace.h (switch_to_program_space_and_thread): Adjust
1193 comment.
1194 * thread.c (any_thread_of_process, any_live_thread_of_process):
1195 Give preference to the current thread.
1196
0fec99e8
PA
11972014-10-01 Pedro Alves <palves@redhat.com>
1198
1199 * breakpoint.c (insert_bp_location): Error out if inserting a
1200 software breakpoint at a read-only address.
1201 * target.c (memory_xfer_check_region): New function, factored out
1202 from ...
1203 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1204 ULONGEST.
1205 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1206 against the memory region attributes.
1207
2ddf4301
SM
12082014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1209
1210 * NEWS: Announce new exit-code field in -list-thread-groups
1211 output.
1212 * inferior.c (exit_inferior_1): Don't clear exit code.
1213 (inferior_appeared): Clear exit code.
1214 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1215 code.
1216
5fdeec1d
PA
12172014-10-01 Pedro Alves <palves@redhat.com>
1218
1219 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1220 GENERATED" along with emacs/vi read-only markers.
1221 * regformats/aarch64.dat: Regenerate.
1222 * regformats/arm-with-iwmmxt.dat: Regenerate.
1223 * regformats/arm-with-neon.dat: Regenerate.
1224 * regformats/arm-with-vfpv2.dat: Regenerate.
1225 * regformats/arm-with-vfpv3.dat: Regenerate.
1226 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1227 * regformats/i386/amd64-avx.dat: Regenerate.
1228 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1229 * regformats/i386/amd64-avx512.dat: Regenerate.
1230 * regformats/i386/amd64-linux.dat: Regenerate.
1231 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1232 * regformats/i386/amd64-mpx.dat: Regenerate.
1233 * regformats/i386/amd64.dat: Regenerate.
1234 * regformats/i386/i386-avx-linux.dat: Regenerate.
1235 * regformats/i386/i386-avx.dat: Regenerate.
1236 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1237 * regformats/i386/i386-avx512.dat: Regenerate.
1238 * regformats/i386/i386-linux.dat: Regenerate.
1239 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1240 * regformats/i386/i386-mmx.dat: Regenerate.
1241 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1242 * regformats/i386/i386-mpx.dat: Regenerate.
1243 * regformats/i386/i386.dat: Regenerate.
1244 * regformats/i386/x32-avx-linux.dat: Regenerate.
1245 * regformats/i386/x32-avx.dat: Regenerate.
1246 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1247 * regformats/i386/x32-avx512.dat: Regenerate.
1248 * regformats/i386/x32-linux.dat: Regenerate.
1249 * regformats/i386/x32.dat: Regenerate.
1250 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1251 * regformats/mips-dsp-linux.dat: Regenerate.
1252 * regformats/mips-linux.dat: Regenerate.
1253 * regformats/mips64-dsp-linux.dat: Regenerate.
1254 * regformats/mips64-linux.dat: Regenerate.
1255 * regformats/nios2-linux.dat: Regenerate.
1256 * regformats/rs6000/powerpc-32.dat: Regenerate.
1257 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1258 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1259 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1260 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1261 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1262 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1263 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1264 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1265 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1266 * regformats/s390-linux32.dat: Regenerate.
1267 * regformats/s390-linux32v1.dat: Regenerate.
1268 * regformats/s390-linux32v2.dat: Regenerate.
1269 * regformats/s390-linux64.dat: Regenerate.
1270 * regformats/s390-linux64v1.dat: Regenerate.
1271 * regformats/s390-linux64v2.dat: Regenerate.
1272 * regformats/s390-te-linux64.dat: Regenerate.
1273 * regformats/s390x-linux64.dat: Regenerate.
1274 * regformats/s390x-linux64v1.dat: Regenerate.
1275 * regformats/s390x-linux64v2.dat: Regenerate.
1276 * regformats/s390x-te-linux64.dat: Regenerate.
1277 * regformats/tic6x-c62x-linux.dat: Regenerate.
1278 * regformats/tic6x-c62x.dat: Regenerate.
1279 * regformats/tic6x-c64x-linux.dat: Regenerate.
1280 * regformats/tic6x-c64x.dat: Regenerate.
1281 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1282 * regformats/tic6x-c64xp.dat: Regenerate.
1283
db74e4ba
PA
12842014-10-01 Pedro Alves <palves@redhat.com>
1285
1286 * features/Makefile: Update comments.
1287 (XMLTOC): List all xml files we build C files from.
1288 (clean-cfiles): New rule.
1289
d63f2f84
PA
12902014-10-01 Pedro Alves <palves@redhat.com>
1291
1292 * features/i386/amd64-avx512-linux.c: Regenerate.
1293 * features/i386/amd64-avx512.c: Regenerate.
1294 * features/i386/x32-avx512-linux.c: Regenerate.
1295 * features/i386/x32-avx512.c: Regenerate.
1296
20ad026d
PA
12972014-10-01 Pedro Alves <palves@redhat.com>
1298
1299 * features/Makefile (WHICH): Remove arm-with-m,
1300 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1301
acc9fe45
PA
13022014-10-01 Pedro Alves <palves@redhat.com>
1303
1304 * features/Makefile (clean): New rule.
1305
e001e535
PA
13062014-10-01 Pedro Alves <palves@redhat.com>
1307
1308 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1309 (zmm14h): Add missing end quotes.
1310
bdc14417
PA
13112014-10-01 Pedro Alves <palves@redhat.com>
1312
1313 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1314 * features/aarch64.c: Regenerate.
1315
d83ad864
DB
13162014-09-30 Don Breazeal <donb@codesourcery.com>
1317
1318 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1319 code so as to work with follow_fork_inferior.
1320 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1321 (inf_ttrace_create_inferior): Remove reference to
1322 inf_ttrace_vfork_ppid.
1323 (inf_ttrace_attach): Ditto.
1324 (inf_ttrace_detach): Ditto.
1325 (inf_ttrace_kill): Use current_inferior instead of
1326 inf_ttrace_vfork_ppid.
1327 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1328 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1329 inferior away from the parent.
1330 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1331 target_follow_fork.
1332 (follow_fork_inferior): New function.
1333 (follow_inferior_reset_breakpoints): Make function static.
1334 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1335 * linux-nat.c (linux_child_follow_fork): Move target-independent
1336 code to infrun.c:follow_fork_inferior.
1337
29082443
AA
13382014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1339
1340 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1341 * gdbarch.c: Regenerate.
1342 * gdbarch.h: Likewise.
1343 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1344 gdbarch method 'regset_from_core_section'.
1345 (get_core_register_section): Remove handling for the case that
1346 regset == NULL and regset_from_core_section is defined.
1347 (get_core_registers): Drop check for deleted method.
1348 * procfs.c (procfs_do_thread_registers): Adjust comment.
1349
f968fe80
AA
13502014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1351
1352 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1353 (linux_nat_make_corefile_notes): Remove.
1354 (linux_target_install_ops): Do not set target method
1355 'make_corefile_notes'.
1356 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1357 Remove field.
1358 (linux_corefile_thread_callback): Instead of args->collect, call
1359 linux_collect_thread_registers.
1360 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1361 NULL unless there is a regset iterator.
1362 (linux_make_corefile_notes_1): Remove.
1363 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1364 by linux_make_corefile_notes.
1365 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1366
174ad59a
AA
13672014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1368
1369 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1370 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1371 Remove.
1372 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1373
97094034
AA
13742014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1375
1376 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1377 (xtensa_iterate_over_regset_sections): New.
1378 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1379
f73d3ce7
AA
13802014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1381
1382 * vax-tdep.c (vax_regset_from_core_section): Remove.
1383 (vax_iterate_over_regset_sections): New.
1384 (vax_gdbarch_init): Adjust gdbarch initialization.
1385
cb24567a
AA
13862014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1387
1388 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1389 (tilegx_regset_from_core_section): Remove.
1390 (tilegx_iterate_over_regset_sections): New.
1391 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1392
e5139de8
AA
13932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1394
1395 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1396 (sparc_iterate_over_regset_sections): New.
1397 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1398 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1399 targets.
1400 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1401 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1402 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1403 target method 'make_corefile_notes'.
1404
c6d41a6f
AA
14052014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1406
1407 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1408 'sizeof_gregset' and 'sizeof_fpregset'.
1409 * sh-tdep.c (sh_regset_from_core_section): Remove.
1410 (sh_iterate_over_regset_sections): New.
1411 (sh_gdbarch_init): Adjust gdbarch initialization.
1412 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1413 sizeof_fpregset.
1414 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1415 'sizeof_gregset'.
1416
9845a0b5
AA
14172014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1418
1419 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1420 (score7_linux_iterate_over_regset_sections): New.
1421 (score_gdbarch_init): Adjust gdbarch initialization.
1422
23ea9aeb
AA
14232014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1424
1425 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1426 FreeBSD targets.
1427 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1428 method 'make_corefile_notes'.
1429 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1430 (ppcfbsd_regset_from_core_section): Remove.
1431 (ppcfbsd_iterate_over_regset_sections): New.
1432 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1433 initialization.
1434 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1435 (ppcnbsd_iterate_over_regset_sections): New.
1436 (ppcnbsd_init_abi): Adjust.
1437 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1438 (ppcobsd_iterate_over_regset_sections): New.
1439 (ppcobsd_init_abi): Adjust.
1440 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1441 (rs6000_aix_iterate_over_regset_sections): New.
1442 (rs6000_aix_init_osabi): Adjust.
1443
c5b8d704
AA
14442014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1445
1446 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1447 (nios2_regset_from_core_section): Remove.
1448 (nios2_iterate_over_regset_sections): New.
1449 (nios2_linux_init_abi): Adjust gdbarch initialization.
1450
3636e608
AA
14512014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1452
1453 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1454 (am33_iterate_over_regset_sections): New.
1455 (am33_linux_init_osabi): Adjust gdbarch initialization.
1456
d4036235
AA
14572014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1458
1459 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1460 (mips_linux_iterate_over_regset_sections): New.
1461 (mips_linux_init_abi): Adjust gdbarch initialization.
1462 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1463 (mips64obsd_iterate_over_regset_sections): New.
1464 (mips64obsd_init_abi): Adjust.
1465 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1466 (mipsnbsd_iterate_over_regset_sections): New.
1467 (mipsnbsd_init_abi): Adjust.
1468
b61ddd6e
AA
14692014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1470
1471 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1472 (m88k_iterate_over_regset_sections): New.
1473 (m88k_gdbarch_init): Adjust gdbarch initialization.
1474
55a2906a
AA
14752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1476
1477 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1478 (ia64_linux_iterate_over_regset_sections): New.
1479 (ia64_linux_init_abi): Adjust gdbarch initialization.
1480
022c98ab
AA
14812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1482
1483 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1484 (m68kbsd_iterate_over_regset_sections): New.
1485 (m68kbsd_init_abi): Adjust gdbarch initialization.
1486 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1487 (m68k_linux_iterate_over_regset_sections): New.
1488 (m68k_linux_init_abi): Adjust gdbarch initialization.
1489
5fac247f
AA
14902014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1491
1492 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1493 (m32r_linux_regset_from_core_section): Remove.
1494 (m32r_linux_iterate_over_regset_sections): New.
1495 (m32r_linux_init_abi): Adjust gdbarch initialization.
1496
490496c3
AA
14972014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1498
1499 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1500 (amd64obsd_iterate_over_regset_sections): New.
1501 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1502 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1503 Remove.
1504 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1505 regset_from_core_section initialization.
1506 * i386-tdep.c (i386_regset_from_core_section): Remove.
1507 (i386_iterate_over_regset_sections): New.
1508 (i386_gdbarch_init): Adjust gdbarch initialization.
1509 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1510 (i386_iterate_over_regset_sections): New prototype.
1511 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1512 Remove.
1513 (i386obsd_aout_iterate_over_regset_sections): New.
1514 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1515 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1516 targets.
1517 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1518 (amd64fbsd_init_abi): Call fbsd_init_abi.
1519 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1520 (i386fbsd4_init_abi): Call fbsd_init_abi.
1521 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1522 target method 'make_corefile_notes'.
1523 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1524
50c5eb53
AA
15252014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1526
1527 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1528 (hppa_hpux_iterate_over_regset_sections): New.
1529 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1530 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1531 (hppa_linux_iterate_over_regset_sections): New.
1532 (hppa_linux_init_abi): Adjust.
1533 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1534 (hppanbsd_iterate_over_regset_sections): New.
1535 (hppanbsd_init_abi): Adjust.
1536 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1537 (hppaobsd_iterate_over_regset_sections): New.
1538 (hppaobsd_init_abi): Adjust.
1539
66afae4f
AA
15402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1541
1542 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1543 (frv_linux_iterate_over_regset_sections): New.
1544 (frv_linux_init_abi): Adjust gdbarch initialization.
1545
ed09174e
AA
15462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1547
1548 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1549 (armbsd_iterate_over_regset_sections): New prototype.
1550 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1551 (armbsd_iterate_over_regset_sections): New.
1552 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1553 initialization.
1554
dff2166e
AA
15552014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1556
1557 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1558 (alpha_linux_iterate_over_regset_sections): New.
1559 (alpha_linux_init_abi): Adjust gdbarch initialization.
1560 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1561 prototype.
1562 (alphanbsd_iterate_over_regset_sections): New prototype.
1563
4108500a
AA
15642014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1565
1566 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1567 Remove.
1568 (aarch64_linux_iterate_over_regset_sections): New.
1569 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1570
a904c024
AA
15712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1572
1573 * fbsd-tdep.c: New file.
1574 * fbsd-tdep.h: New file.
1575 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1576 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1577 (ALLDEPFILES): Add fbsd-tdep.c.
1578
8f0435f7
AA
15792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1580
1581 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1582 parameter.
1583 * gdbarch.h: Regenerate.
1584 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1585 iterator.
1586 (get_core_register_section): Add parameter 'regset' and use it, if
1587 set. Add parameter 'min_size' and verify the bfd section size
1588 against it.
1589 (get_core_registers_cb): Add parameter 'regset' and pass it to
1590 get_core_register section. For the "standard" register sections
1591 ".reg" and ".reg2", set an appropriate default for human_name.
1592 (get_core_registers): Don't abort when the gdbarch has an iterator
1593 but no regset_from_core_section. Add NULL/0 for parameters
1594 'regset'/'min_size' in calls to get_core_register_section.
1595 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1596 'regset' and use it instead of calling the
1597 regset_from_core_section gdbarch method.
1598 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1599 * i386-tdep.c (i386_supply_xstateregset)
1600 (i386_collect_xstateregset, i386_xstateregset): Moved to
1601 i386-linux-tdep.c.
1602 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1603 .reg-xstate.
1604 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1605 core file support only if the regset iterator hasn't been set.
1606 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1607 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1608 Moved from i386-tdep.c and renamed to *_linux*.
1609 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1610 each callback invocation. Allow any .reg-xstate size when reading
1611 from a core file.
1612 * amd64-tdep.c (amd64_supply_xstateregset)
1613 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1614 amd64-linux-tdep.c.
1615 (amd64_regset_from_core_section): Remove.
1616 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1617 install an amd64-specific regset_from_core_section gdbarch method.
1618 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1619 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1620 Moved from amd64-tdep.c and renamed to *_linux*.
1621 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1622 to each callback invocation. Allow any .reg-xstate size when
1623 reading from a core file.
1624 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1625 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1626 each callback invocation.
1627 (arm_linux_init_abi): No longer set the regset_from_core_section
1628 gdbarch method.
1629 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1630 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1631 each callback invocation.
1632 (ppc_linux_init_abi): No longer set the regset_from_core_section
1633 gdbarch method.
1634 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1635 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1636 (s390_regset_from_core_section): Remove.
1637 (s390_iterate_over_regset_sections): Add regset parameter to each
1638 callback invocation.
1639 (s390_gdbarch_init): No longer set the regset_from_core_section
1640 gdbarch method. Drop initialization of deleted tdep fields.
1641
5aa82d05
AA
16422014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1643
1644 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1645 (amd64_linux_iterate_over_regset_sections): New.
1646 (amd64_linux_init_abi_common): Don't install the regset section
1647 list, but the new iterator in gdbarch.
1648 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1649 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1650 (arm_linux_iterate_over_regset_sections): ...here. New function.
1651 (arm_linux_init_abi): Set iterator instead of section list.
1652 * corelow.c (get_core_registers_cb): New function, logic moved
1653 from...
1654 (get_core_registers): ...loop body here. Use new iterator method
1655 instead of walking through the regset section list.
1656 * gdbarch.sh: Remove 'core_regset_sections'. New method
1657 'iterate_over_regset_sections'. New typedef
1658 'iterate_over_regset_sections_cb'.
1659 * gdbarch.c: Regenerate.
1660 * gdbarch.h: Likewise.
1661 * i386-linux-tdep.c (i386_linux_regset_sections)
1662 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1663 Remove.
1664 (i386_linux_iterate_over_regset_sections): New.
1665 (i386_linux_init_abi): Don't choose a regset section list, but
1666 install new iterator in gdbarch.
1667 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1668 (linux_collect_regset_section_cb): New function, logic moved
1669 from...
1670 (linux_collect_thread_registers): ...loop body here. Use iterator
1671 method instead of walking through list.
1672 (linux_make_corefile_notes_1): Check for presence of iterator
1673 method instead of regset section list.
1674 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1675 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1676 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1677 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1678 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1679 (ppc_linux_init_abi): Don't choose from above regset section
1680 lists, but install new iterator in gdbarch.
1681 * regset.h (struct core_regset_section): Remove.
1682 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1683 have_linux_v1, have_linux_v2, and have_tdb.
1684 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1685 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1686 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1687 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1688 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1689 (s390_iterate_over_regset_sections): ...here. New function. Use
1690 new tdep fields.
1691 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1692 regset section lists, but install new iterator.
1693
2eca4a8d
JK
16942014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1695
1696 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1697
a73c2b56
SM
16982014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1699
1700 * progspace.c (print_program_space): Don't prune program spaces
1701 before printing them.
1702
03d46957
PA
17032014-09-25 Pedro Alves <palves@redhat.com>
1704
1705 * infrun.c (user_visible_resume_ptid): Don't check
1706 singlestep_breakpoints_inserted_p.
1707
e558d7c1
PA
17082014-09-25 Pedro Alves <palves@redhat.com>
1709
1710 * breakpoint.c (should_be_inserted): Add debug output.
1711
7f89fd65
PA
17122014-09-25 Pedro Alves <palves@redhat.com>
1713
1714 * infrun.c (stepping_past_instruction_at)
1715 (clear_exit_convenience_vars): Point at infrun.h instead of
1716 inferior.h.
1717 (handle_signal_stop): Fix typo.
1718
b7576e5c
YQ
17192014-09-24 Yao Qi <yao@codesourcery.com>
1720
1721 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1722 bitmask.
1723
9a6cf368
GB
17242014-09-22 Gary Benson <gbenson@redhat.com>
1725
1726 * target.c (target_stop): Updated comment.
1727
03f4463b
GB
17282014-09-22 Gary Benson <gbenson@redhat.com>
1729
1730 * target/target.h (target_stop_ptid): Renamed as...
1731 (target_stop_and_wait): New function. Updated comment.
1732 All uses updated.
1733 (target_continue_ptid): Renamed as...
1734 (target_continue_no_signal): New function. Updated comment.
1735 All uses updated.
1736
a25a5a45
PA
17372014-09-22 Pedro Alves <palves@redhat.com>
1738
1739 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1740 and "auto" merged.
1741 * breakpoint.c (enum ugll_insert_mode): New enum.
1742 (always_inserted_mode): Now a plain boolean.
1743 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1744 (breakpoints_always_inserted_mode): Delete.
1745 (breakpoints_should_be_inserted_now): New function.
1746 (insert_breakpoints): Pass UGLL_INSERT to
1747 update_global_location_list instead of calling
1748 insert_breakpoint_locations manually.
1749 (create_solib_event_breakpoint_1): New, factored out from ...
1750 (create_solib_event_breakpoint): ... this.
1751 (create_and_insert_solib_event_breakpoint): Use
1752 create_solib_event_breakpoint_1 instead of calling
1753 insert_breakpoint_locations manually.
1754 (update_global_location_list): Change parameter type from boolean
1755 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1756 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1757 (update_global_location_list_nothrow): Change parameter type from
1758 boolean to enum ugll_insert_mode.
1759 (_initialize_breakpoint): "breakpoint always-inserted" option is
1760 now a boolean command. Update help text.
1761 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1762 (breakpoints_should_be_inserted_now): New declaration.
1763 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1764 Remove breakpoints_always_inserted_mode check.
1765 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1766 * remote.c (remote_start_remote): Likewise.
1767
04086b45
PA
17682014-09-22 Pedro Alves <palves@redhat.com>
1769
1770 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1771 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1772 Instead, pass UGLL_INSERT to update_global_location_list.
1773 (update_global_location_list): Change parameter type from boolean
1774 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1775 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1776 (create_solib_event_breakpoint_1): New, factored out from ...
1777 (create_solib_event_breakpoint): ... this.
1778 (create_and_insert_solib_event_breakpoint): Use
1779 create_solib_event_breakpoint_1 instead of calling
1780 insert_breakpoint_locations manually.
1781 (update_global_location_list): Handle UGLL_INSERT.
1782
44702360
PA
17832014-09-22 Pedro Alves <palves@redhat.com>
1784
1785 * breakpoint.c (enum ugll_insert_mode): New enum.
1786 (update_global_location_list)
1787 (update_global_location_list_nothrow): Change parameter type from
1788 boolean to enum ugll_insert_mode. All callers adjusted.
1789
93c6145a
JB
17902014-09-19 Joel Brobecker <brobecker@adacore.com>
1791
1792 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1793 SystemTap support in GDB.
1794
89a5711c
DB
17952014-09-19 Don Breazeal <donb@codesourcery.com>
1796
1797 * linux-nat.c (linux_handle_extended_wait): Call
1798 linux_ptrace_get_extended_event.
1799 (wait_lwp): Call linux_is_extended_waitstatus.
1800 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1801 and linux_is_extended_waitstatus.
1802 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1803 linux_ptrace_get_extended_event.
1804 (linux_ptrace_get_extended_event): New function.
1805 (linux_is_extended_waitstatus): New function.
1806 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1807 (linux_is_extended_waitstatus): New declarations.
1808
c3b7b696
YQ
18092014-09-19 Yao Qi <yao@codesourcery.com>
1810
1811 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1812 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1813 comments. Callers update.
1814 (dwarf_decode_lines): Likewise.
1815 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1816 comments. Skip the line table if 'lowpc' is greater than
1817 'address'. Don't check
1818 dwarf2_per_objfile->has_section_at_zero.
1819
2b4fd423
DE
18202014-09-18 Doug Evans <dje@google.com>
1821
1822 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1823 * python/py-symtab.c (stpy_get_producer): New function.
1824 (symtab_object_getset): Add "producer" attribute.
1825
5e43d467
UW
18262014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1827
1828 PR gdb/17384
1829 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1830 (do_captured_read_memory_integer): Remove.
1831 (safe_read_memory_integer): Use target_read_memory directly instead
1832 of catching errors in do_captured_read_memory_integer.
1833
04e79979
MR
18342014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1835
1836 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1837 not gdb/doc.
1838
76aeec5b
SDJ
18392014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1840
1841 * objc-lang.c (find_implementation_from_class): Remove dead code.
1842
2f693f9d
SDJ
18432014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1844
1845 PR cli/7233
1846 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1847 "fprintf_unfiltered (gdb_stdlog...)".
1848
bb9d5f81
PP
18492014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1850
1851 PR breakpoints/12526
1852 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1853 val_bitsize.
1854 * breakpoint.c (watch_command_1): Use these fields to retain
1855 bitfield information.
1856 (extract_bitfield_from_watchpoint_value): New function.
1857 (watchpoint_check): Use it.
1858 (update_watchpoint): Use it. Optimize the address and length of a
1859 HW watchpoint pointing to a bitfield.
1860 * value.h (unpack_value_bitfield): New prototype.
1861 * value.c (unpack_value_bitfield): Make extern.
1862
05db5edd
ST
18632014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1864
1865 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1866 x86-dregs.o.
1867 * gnu-nat.c (inf_threads): New function.
1868 * gnu-nat.h (inf_threads_ftype): New typedef.
1869 (inf_threads): New declaration.
1870 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1871 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1872 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1873 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1874 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1875 (i386_gnu_dr_get_control): New functions.
1876 (reg_addr): New structure.
1877 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1878 i386 debugging register hooks.
1879 * NEWS: Mention this.
1880
5a578da5
OJ
18812014-08-13 Omair Javaid <omair.javaid@linaro.org>
1882
1883 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1884 vector data transfer instructions.
1885 (arm_record_coproc_data_proc): Updated.
1886
f20f80dd
OJ
18872014-08-13 Omair Javaid <omair.javaid@linaro.org>
1888
1889 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1890 arm_record_exreg_ld_st_insn.
1891 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1892 load/store insns.
1893
851f26ae
OJ
18942014-08-13 Omair Javaid <omair.javaid@linaro.org>
1895
1896 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1897 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1898 processing instructions.
1899
1e1b6563
OJ
19002014-08-13 Omair Javaid <omair.javaid@linaro.org>
1901
1902 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1903 for advance SIMD struct ld/st insn.
1904 (thumb2_record_decode_insn_handler): Replace stub handler with
1905 thumb2_record_asimd_struct_ld_st.
1906
60cc5e93
OJ
19072014-08-13 Omair Javaid <omair.javaid@linaro.org>
1908
1909 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1910 for asimd, vfp and coprocessor insns.
1911 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1912 and coprocessor insns.
1913 (thumb2_record_coproc_insn): New function.
1914 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1915 handlers.
1916 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1917 opcode 110 insns.
1918
81219e53
DE
19192014-09-13 Doug Evans <xdje42@gmail.com>
1920
1921 * NEWS: Mention new "queue-signal" command.
1922 * infcmd.c (queue_signal_command): New function.
1923 (_initialize_infcmd): Add new queue-signal command.
1924
d36bf488
DE
19252014-09-13 Doug Evans <xdje42@gmail.com>
1926
1927 * linux-nat.c (wait_lwp): Add debugging printf.
1928 (linux_nat_wait_1): Ditto.
1929
f37f681c
PA
19302014-09-12 Pedro Alves <palves@redhat.com>
1931
1932 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1933 (create_and_insert_solib_event_breakpoint): New functions.
1934 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1935 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1936 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1937 (remove_dbx_link_breakpoint): Delete function.
1938 (insert_dbx_link_bpt_in_file): Use
1939 create_and_insert_solib_event_breakpoint instead of
1940 deprecated_insert_raw_breakpoint.
1941 (procfs_wait): Don't check whether we hit __dbx_link here.
1942 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1943 here.
1944 * solib-irix.c (base_breakpoint): Delete global.
1945 (disable_break): Delete function.
1946 (enable_break): Use create_solib_event_breakpoint
1947 instead of deprecated_insert_raw_breakpoint.
1948 (irix_solib_handle_event): New function.
1949 (irix_solib_create_inferior_hook): Don't run the target or disable
1950 the mapping-complete breakpoint here.
1951 (_initialize_irix_solib): Install irix_solib_handle_event as
1952 so_ops->handle_event hook.
1953
9d9bf2df
EBM
19542014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1955 Ulrich Weigand  <uweigand@de.ibm.com>
1956
1957 PR tdep/17379
1958 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1959 instead of read_memory_unsigned_integer.
1960
b006a80e
GB
19612014-09-12 Gary Benson <gbenson@redhat.com>
1962
1963 * nat/linux-waitpid.c: Include common-defs.h.
1964 [GDBSERVER]: Add FIXME comment.
1965 [!GDBSERVER]: Don't include defs.h or signal.h.
1966 (linux_debug) [!GDBSERVER]: Remove empty block.
1967
296b1496
GB
19682014-09-12 Gary Benson <gbenson@redhat.com>
1969
1970 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1971 Don't include defs.h or server.h.
1972
53f81362
GB
19732014-09-12 Gary Benson <gbenson@redhat.com>
1974
1975 * nat/linux-btrace.c: Include common-defs.h.
1976 Don't include defs.h, server.h or gdbthread.h.
1977 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1978
727605ca
GB
19792014-09-12 Gary Benson <gbenson@redhat.com>
1980
1981 * common/agent.c: Include common-defs.h.
1982 Don't include defs.h or server.h.
1983 * common/buffer.c: Likewise.
1984 * common/common-debug.c: Likewise.
1985 * common/common-utils.c: Likewise.
1986 * common/errors.c: Likewise.
1987 * common/filestuff.c: Likewise.
1988 * common/format.c: Likewise.
1989 * common/gdb_vecs.c: Likewise.
1990 * common/print-utils.c: Likewise.
1991 * common/ptid.c: Likewise.
1992 * common/rsp-low.c: Likewise.
1993 * common/signals.c: Likewise.
1994 * common/vec.c: Likewise.
1995 * common/xml-utils.c: Likewise.
1996 * nat/linux-osdata.c: Likewise.
1997 * nat/linux-procfs.c: Likewise.
1998 * nat/linux-ptrace.c: Likewise.
1999 * nat/mips-linux-watch.c: Likewise.
2000 * target/waitstatus.c: Likewise.
2001
361c8ade
GB
20022014-09-12 Tom Tromey <tromey@redhat.com>
2003 Gary Benson <gbenson@redhat.com>
2004
2005 * common/common-regcache.h: New file.
2006 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2007 * regcache.h: Include common-regcache.h.
2008 (regcache_read_pc): Don't declare.
2009 * regcache.c (get_thread_regcache_for_ptid): New function.
2010 * nat/linux-btrace.c: Don't include regcache.h.
2011 Include common-regcache.h.
2012 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2013
a01cbb49
TS
20142014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2015
2016 * regcache.h (struct regset): Declare.
2017
98880d46
PA
20182014-09-11 Pedro Alves <palves@redhat.com>
2019
2020 PR gdb/17347
2021 * main.c: Include "infrun.h".
2022 (catch_command_errors, catch_command_errors_const): Wait for the
2023 foreground command to complete.
2024 * top.c (maybe_wait_sync_command_done): New function, factored out
2025 from ...
2026 (maybe_wait_sync_command_done): ... here.
2027 * top.h (maybe_wait_sync_command_done): New declaration.
2028
bd9269f7
GB
20292014-09-11 Tom Tromey <tromey@redhat.com>
2030 Gary Benson <gbenson@redhat.com>
2031
2032 * common/symbol.h: New file.
2033 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2034 * minsyms.c (find_minimal_symbol_address): New function.
2035 * common/agent.c: Include common/symbol.h.
2036 [!GDBSERVER]: Don't include objfiles.h.
2037 (agent_look_up_symbols): Use find_minimal_symbol_address.
2038
f8c1d06b
GB
20392014-09-11 Gary Benson <gbenson@redhat.com>
2040
2041 * target/target.h (target_stop_ptid, target_continue_ptid):
2042 Declare.
2043 * target.c (target_stop_ptid, target_continue_ptid): New
2044 functions.
2045 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2046 (agent_run_command): Always use target_stop_ptid and
2047 target_continue_ptid.
2048
721ec300
GB
20492014-09-11 Tom Tromey <tromey@redhat.com>
2050 Gary Benson <gbenson@redhat.com>
2051
2052 * target/target.h: New file.
2053 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2054 * target.h: Include target/target.h.
2055 (target_read_memory, target_write_memory): Don't declare.
2056 * target.c (target_read_uint32): New function.
2057 * common/agent.c: Include target/target.h.
2058 [!GDBSERVER]: Don't include target.h.
2059 (helper_thread_id): Type changed to uint32_t.
2060 (agent_get_helper_thread_id): Use target_read_uint32.
2061 (agent_run_command): Always use target_read_memory and
2062 target_write_memory.
2063 (agent_capability): Type changed to uint32_t.
2064 (agent_capability_check): Use target_read_uint32.
2065
c5e92cca
GB
20662014-09-11 Gary Benson <gbenson@redhat.com>
2067
2068 * common/common-debug.h (show_debug_regs): Declare.
2069 * common/common-debug.c (show_debug_regs): Define.
2070 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2071 all uses with show_debug_regs. Replace all uses that considered
2072 debug_hw_points as a multi-value integer with straight boolean
2073 uses.
2074 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2075 with show_debug_regs.
2076 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2077 all uses with show_debug_regs.
2078 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2079 uses with show_debug_regs.
2080
eeef931a
UW
20812014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2082
2083 * findvar.c (address_from_register): Handle targets requiring
2084 a special conversion routine even for plain pointer types.
2085
8efa9855
UW
20862014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2087
2088 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2089 (store_register): Do not call exec_one_dummy_insn.
2090
eb479039
JB
20912014-09-10 Joel Brobecker <brobecker@adacore.com>
2092
2093 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2094 dereference it first. Use value_enclosing_type instead of
2095 value_type.
2096 (ada_array_length): Likewise.
2097
deede10c
JB
20982014-09-10 Joel Brobecker <brobecker@adacore.com>
2099
2100 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2101 Adjust function implementation and documentation accordingly.
2102 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2103 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2104 Update call to ada_value_ptr_subscript.
2105
7828a5f5
JB
21062014-09-10 Joel Brobecker <brobecker@adacore.com>
2107
2108 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2109 instead of VAL's type.
2110
35782f14
JB
21112014-09-10 Joel Brobecker <brobecker@adacore.com>
2112
2113 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2114
d342a0da
DE
21152014-09-09 Doug Evans <xdje42@gmail.com>
2116
2117 PR guile/17367
2118 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2119 last parameter to pkg-config, not first.
2120 * configure.ac: Pass --with-guile provided pkg-config path to
2121 GDB_GUILE_PROGRAM_NAMES.
2122 * configure: Regenerate.
2123
b4a3d263
GKB
21242014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2125
2126 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2127 Bertazi".
2128
6e466374
MR
21292014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2130
2131 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2132 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2133 the list of sections determining GDB_OSABI_IRIX.
2134
a1ada89a
JH
21352014-09-09 James Hogan <james.hogan@imgtec.com>
2136
2137 * MAINTAINERS (Write After Approval): Add "James Hogan".
2138
86db008d
JH
21392014-09-09 James Hogan <james.hogan@imgtec.com>
2140
2141 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2142
72fde3df
JB
21432014-09-09 Joel Brobecker <brobecker@adacore.com>
2144
2145 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2146
92d8d229
DE
21472014-09-08 Doug Evans <xdje42@gmail.com>
2148
2149 PR 17247
2150 * guile.c: #include <signal.h>.
2151 (_initialize_guile): Block SIGCHLD while initializing Guile.
2152
2153 Replaces the following, which is reverted.
2154
2155 2014-07-26 Doug Evans <xdje42@gmail.com>
2156
2157 PR 17185
2158 * configure.ac: Add check for header gc/gc.h.
2159 Add check for function setenv.
2160 * configure: Regenerate.
2161 * config.in: Regenerate.
2162 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2163
d81412aa
DE
21642014-09-08 Doug Evans <xdje42@gmail.com>
2165
2166 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2167 with named constant. Fix style of pointer comparison.
2168 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2169
a9f116cb
GKB
21702014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2171
2172 PR gdb/17035
2173 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2174 decide whether we display the command on "show user".
2175 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2176 printing command name.
2177 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2178 * cli/cli-decode.c (cli_user_command_p): Create helper function
2179 to verify whether cmd_list_element is a user-defined command.
2180
c75bd3a2
JK
21812014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2182
2183 PR python/17355
2184 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2185 Fix goto out of TRY_CATCH.
2186
faa42425 21872014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 2188 Tom Tromey <tromey@redhat.com>
faa42425
DE
2189
2190 PR 15276
2191 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2192 $_any_caller_matches.
2193 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2194 * python/lib/gdb/function/caller_is.py: New file.
2195
0d41ba00
DE
21962014-09-06 Doug Evans <xdje42@gmail.com>
2197
2198 * infcmd.c (program_info): Fix typo.
2199
474ca4f6
SDJ
22002014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2201
2202 PR gdb/17235
2203 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2204 'number'. New variable 'has_digit'. Rewrite code to deal with
2205 subexpressions on SDT probes.
2206
ebf13736
PA
22072014-09-04 Pedro Alves <palves@redhat.com>
2208
2209 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2210 the input is only one character long.
2211
eb0b0463
SDJ
22122014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2213
2214 PR fortran/17237
2215 * f-valprint.c (f_val_print): Specify the correct print option to
2216 use when printing integer values.
2217
5ee44bfa
GB
22182014-09-04 Gary Benson <gbenson@redhat.com>
2219
2220 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2221 Remove code to cope with LWPs wrapped as PIDs.
2222 Add assertions to ensure no wrapped LWPs are passed.
2223
4875ffdb
PA
22242014-09-04 Pedro Alves <palves@redhat.com>
2225
2226 * value.c (value_ranges_copy_adjusted): New function, factored out
2227 from ...
2228 (value_contents_copy_raw): ... here.
2229 (unpack_value_bits_as_long_1): Rename back to ...
2230 (unpack_bits_as_long): ... this. Remove 'original_value' and
2231 'result' parameters. Change return type to LONGEST.
2232 (unpack_value_bits_as_long): Delete.
2233 (unpack_value_field_as_long_1): Delete.
2234 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2235 (unpack_value_bitfield): New function.
2236 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2237 (value_fetch_lazy): Use unpack_value_bitfield.
2238 * value.h (unpack_value_bits_as_long): Delete declaration.
2239
5f3b99cf
SS
22402014-09-03 Sasha Smundak <asmundak@google.com>
2241
2242 * python/py-frame.c (frapy_read_register): New function.
2243
ac740bc7
JH
22442014-09-03 James Hogan <james.hogan@imgtec.com>
2245
2246 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2247 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2248
7d793aa9
SDJ
22492014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2250
2251 PR python/16699
2252 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2253 function.
2254 (add_cmd): Set "completer_handle_brkchars" to NULL.
2255 * cli/cli-decode.h (struct cmd_list_element)
2256 <completer_handle_brkchars>: New field.
2257 * command.h (completer_ftype_void): New typedef.
2258 (set_cmd_completer_handle_brkchars): New prototype.
2259 * completer.c (set_gdb_completion_word_break_characters): New
2260 function.
2261 (complete_line_internal): Call "completer_handle_brkchars"
2262 callback from command.
2263 * completer.h: Include "command.h".
2264 (set_gdb_completion_word_break_characters): New prototype.
2265 * python/py-cmd.c (cmdpy_completer_helper): New function.
2266 (cmdpy_completer_handle_brkchars): New function.
2267 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2268 (cmdpy_init): Set completer_handle_brkchars to
2269 cmdpy_completer_handle_brkchars.
2270
97ea6506
GB
22712014-09-03 Gary Benson <gbenson@redhat.com>
2272
2273 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2274 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2275 Loop conditions changed to equivalent form.
2276 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2277 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2278 ALL_DEBUG_ADDRESS_REGISTERS.
2279
d1437815
JB
22802014-09-03 Joel Brobecker <brobecker@adacore.com>
2281
2282 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2283 description fix.
2284
9b94fcf1
DE
22852014-09-02 Doug Evans <dje@google.com>
2286
2287 * typeprint.c (find_global_typedef): Fix comment.
2288
df7e5265
GB
22892014-09-02 Gary Benson <gbenson@redhat.com>
2290
2291 * i386-nat.h: Renamed as...
2292 * x86-nat.h: New file. All type, function and variable name
2293 prefixes changed from "i386_" to "x86_". All references updated.
2294 * i386-nat.c: Renamed as...
2295 * x86-nat.c: New file. All type, function and variable name
2296 prefixes changed from "i386_" to "x86_". All references updated.
2297 * common/i386-xstate.h: Renamed as...
2298 * common/x86-xstate.h: New file. All type, function and variable
2299 name prefixes changed from "i386_" to "x86_". All references
2300 updated.
2301 * nat/i386-cpuid.h: Renamed as...
2302 * nat/x86-cpuid.h: New file. All type, function and variable name
2303 prefixes changed from "i386_" to "x86_". All references updated.
2304 * nat/i386-gcc-cpuid.h: Renamed as...
2305 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2306 name prefixes changed from "i386_" to "x86_". All references
2307 updated.
2308 * nat/i386-dregs.h: Renamed as...
2309 * nat/x86-dregs.h: New file. All type, function and variable name
2310 prefixes changed from "i386_" to "x86_". All references updated.
2311 * nat/i386-dregs.c: Renamed as...
2312 * nat/x86-dregs.c: New file. All type, function and variable name
2313 prefixes changed from "i386_" to "x86_". All references updated.
2314
1c3569d4
MR
23152014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2316
2317 * varobj.c (_initialize_varobj): Move to the end of file.
2318
ff55e1b5
GB
23192014-08-29 Gary Benson <gbenson@redhat.com>
2320
2321 * common/common-exceptions.h: New file.
2322 * common/common-exceptions.c: Likewise.
2323 * Makefile.in (SFILES): Add common/common-exceptions.c.
2324 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2325 (COMMON_OBS): Add common-exceptions.o.
2326 (common-exceptions.o): New rule.
2327 * exceptions.h (common-exceptions.h): Include.
2328 (gdb_setjmp.h): Do not include.
2329 (return_reason): Moved to common-exceptions.h.
2330 (enum return_reason): Likewise.
2331 (RETURN_MASK): Likewise.
2332 (typedef return_mask): Likewise.
2333 (enum errors): Likewise.
2334 (struct gdb_exception): Likewise.
2335 (exceptions_state_mc_init): Likewise.
2336 (exceptions_state_mc_action_iter): Likewise.
2337 (exceptions_state_mc_action_iter_1): Likewise.
2338 (TRY_CATCH): Likewise.
2339 (throw_exception): Likewise.
2340 (throw_verror): Likewise.
2341 (throw_vquit): Likewise.
2342 (throw_error): Likewise.
2343 (throw_quit): Likewise.
2344 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2345 (enum catcher_action): Likewise.
2346 (struct catcher): Likewise.
2347 (current_catcher): Likewise.
2348 (catcher_list_size): Likewise.
2349 (exceptions_state_mc_init): Likewise.
2350 (catcher_pop): Likewise.
2351 (exceptions_state_mc): Likewise.
2352 (exceptions_state_mc_action_iter): Likewise.
2353 (exceptions_state_mc_action_iter_1): Likewise.
2354 (throw_exception): Likewise.
2355 (exception_messages): Likewise.
2356 (exception_messages_size): Likewise.
2357 (throw_it): Likewise.
2358 (throw_verror): Likewise.
2359 (throw_vquit): Likewise.
2360 (throw_error): Likewise.
2361 (throw_quit): Likewise.
2362 (prepare_to_throw_exception): New function.
2363
e9bcb658
GB
23642014-08-29 Gary Benson <gbenson@redhat.com>
2365
2366 * common/gdb_setjmp.h: New file.
2367 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2368 * configure.ac: Move sigsetjmp check...
2369 * common/common.m4: ...here.
2370 * configure: Regenerate.
2371 * cp-support.c (SIGJMP_BUF): Delete.
2372 (SIGSETJMP): Likewise.
2373 (SIGLONGJMP): Likewise.
2374 * exceptions.h (gdb_setjmp.h): Include.
2375 (setjmp.h): Do not include.
2376 (EXCEPTIONS_SIGJMP_BUF): Delete.
2377 (EXCEPTIONS_SIGSETJMP): Likewise.
2378 (EXCEPTIONS_SIGLONGJMP): Likewise.
2379 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2380 from gdb_setjmp.h.
2381 * exceptions.c: Likewise.
2382
e3180625
GB
23832014-08-29 Gary Benson <gbenson@redhat.com>
2384
2385 * cleanups.h: Moved to...
2386 * common/cleanups.h: New file.
2387 * cleanups.c: Moved to...
2388 * common/cleanups.c: New file. Include common-defs.h and
2389 cleanups.h. Do not include defs.h.
2390 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2391 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2392 (cleanups.o): New rule.
2393
e3d6ba5d
GB
23942014-08-29 Gary Benson <gbenson@redhat.com>
2395
2396 * common/errors.h (internal_warning): New declaration.
2397 (internal_vwarning): Likewise.
2398 * common/errors.c (internal_warning): New function.
2399 * utils.h (internal_warning): Don't declare.
2400 (internal_vwarning): Likewise.
2401 * utils.c (internal_warning): Removed.
2402
075c7033
GB
24032014-08-29 Gary Benson <gbenson@redhat.com>
2404
2405 * main.c (captured_main): Use warning during startup.
2406 Prefix startup warning messages with command name.
2407
91b35fd0
GB
24082014-08-29 Gary Benson <gbenson@redhat.com>
2409
2410 * main.c (captured_main): Handle usage errors with error.
2411
b1ec390e
GB
24122014-08-29 Gary Benson <gbenson@redhat.com>
2413
2414 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2415 exit pair with a call to error. Wrap the message with _().
2416
fd0ef3dd
GB
24172014-08-29 Gary Benson <gbenson@redhat.com>
2418
2419 * main.c (captured_main): Replace a fprintf/exit
2420 pair with a call to error. Wrap the message with _().
2421
e0e6bcab
GB
24222014-08-29 Gary Benson <gbenson@redhat.com>
2423
2424 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2425 pairs with calls to error. Wrap the message with _().
2426
0d2f5c07
GB
24272014-08-29 Gary Benson <gbenson@redhat.com>
2428
2429 * utils.c (vwarning): Protect calls to target_terminal_ours
2430 and wrap_here.
2431
5df43998
GB
24322014-08-29 Gary Benson <gbenson@redhat.com>
2433
2434 * exceptions.c (print_flush): Protect calls to
2435 target_terminal_ours and wrap_here.
2436
2437fd32
GB
24372014-08-29 Gary Benson <gbenson@redhat.com>
2438
2439 * utils.h (filtered_printing_initialized): New declaration.
2440 * utils.c (abort_with_message): New function.
2441 (internal_vproblem): Use abort_with_message for first level
2442 recursive internal problems, and if gdb_stderr is not set up.
2443 Protect calls to target_terminal_ours, begin_line and query.
2444
f1f58506
DE
24452014-08-28 Doug Evans <dje@google.com>
2446
2447 * symtab.c (in_prologue): Move definition to better spot.
2448 (skip_prologue_using_sal): Ditto.
2449
aab2f208
DE
24502014-08-28 Doug Evans <dje@google.com>
2451
2452 * symtab.c (find_function_start_sal): Move definition to better spot.
2453
6b65d1b6
YQ
24542014-08-28 Yao Qi <yao@codesourcery.com>
2455
2456 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2457 found_stack_adjust in forward scan. Remove condition check
2458 on found_stack_adjust which is always true. Indent the code.
2459
a1b34d15
YQ
24602014-08-28 Yao Qi <yao@codesourcery.com>
2461
2462 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2463 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2464 (dwarf_decode_lines): Remove argument
2465 want_line_info. Remove condition check on want_line_info.
2466 Callers update.
2467
d5962de5
DE
24682014-08-27 Doug Evans <dje@google.com>
2469
2470 * dwarf2read.c (dwarf_record_line): Fix typo.
2471
9b139002
SDJ
24722014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2473
2474 * target.h (struct target_ops::to_terminal_save_ours): Remove
2475 declaration.
2476 (target_terminal_save_ours): Remove macro.
2477 * target-delegates.c: Regenerate.
2478 * inf-child.c (inf_child_target): Don't set the nonexistent
2479 field to_terminal_save_ours.
2480 * inferior.h (child_terminal_save_ours): Remove declaration.
2481 * terminal.h (gdb_save_tty_state): New declaration.
2482 * inflow.c (child_terminal_save_ours): Rename to ...
2483 (gdb_save_tty_state): ... this.
2484 * tui/tui.c: Include terminal.h.
2485 (tui_enable): Use gdb_save_tty_state instead of
2486 target_terminal_save_ours.
2487 (tui_disable): Likewise.
2488
9debeba0
DE
24892014-08-25 Doug Evans <dje@google.com>
2490
2491 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2492 Pass NULL instead of 0 for context pointer.
2493
428fc5fc
YQ
24942014-08-25 Yao Qi <yao@codesourcery.com>
2495
2496 * dwarf2read.c: Fix grammatical error.
2497
cdc07690
YQ
24982014-08-24 Yao Qi <yao@codesourcery.com>
2499
2500 * dwarf2read.c (scan_partial_symbols): Update comments.
2501 Rename argument 'need_pc' with 'set_addrmap'.
2502 (add_partial_namespace): Rename argument 'need_pc' with
2503 'set_addrmap'.
2504 (add_partial_module): Likewise.
2505 (add_partial_subprogram): Likewise. Update comments.
2506 (dwarf2_name): Fix typo.
2507
a05a36a5
DE
25082014-08-22 Doug Evans <dje@google.com>
2509
2510 PR 17276
2511 * dwarf2read.c (dwarf_record_line_p): New function.
2512 (dwarf_decode_lines_1): Ignore subsequent line number entries
2513 for the same line if any entry had a non-zero discriminator.
2514
252a6764
DE
25152014-08-22 Doug Evans <dje@google.com>
2516
2517 * buildsym.h (record_line_ftype): New typedef.
2518 (record_line): Use it.
2519 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2520 (dwarf_decode_lines_1): Call them.
2521
510db052
YQ
25222014-08-22 Yao Qi <yao@codesourcery.com>
2523
2524 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2525 (ctf_end): Remove code.
2526
22fd09ae
JK
25272014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2528
2529 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2530 (linux_make_corefile_notes): call update_thread_list, protected against
2531 exceptions.
2532
656e8868
PA
25332014-08-21 Pedro Alves <palves@redhat.com>
2534
2535 * infcmd.c (attach_command): Remove comment.
2536
de589d04
WN
25372014-08-21 Bin Cheng <bin.cheng@arm.com>
2538
2539 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2540 unsigned LONGEST to ULONGEST.
2541
2a31c623
PA
25422014-08-20 Pedro Alves <palves@redhat.com>
2543
2544 * Makefile.in (check-read1): New rule.
2545
d36430db
JB
25462014-08-20 Joel Brobecker <brobecker@adacore.com>
2547
2548 * value.c (value_from_contents_and_address): Strip resolved_type's
2549 typedef layers before checking its TYPE_DATA_LOCATION.
2550
000339af
PA
25512014-08-20 Pedro Alves <palves@redhat.com>
2552
2553 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2554
5f52445b
YQ
25552014-08-20 Yao Qi <yao@codesourcery.com>
2556
2557 * amd64-tdep.c (amd64_classify): Add a blank line after the
2558 example. Move "*/" to a new line.
2559 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2560 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2561 * dwarf2read.c (psymtab_include_file_name): Likewise.
2562
9a0dc9e3
PA
25632014-08-19 Andrew Burgess <aburgess@broadcom.com>
2564 Pedro Alves <palves@redhat.com>
2565
2566 PR symtab/14604
2567 PR symtab/14605
2568 * ada-lang.c (coerce_unspec_val_to_type): Use
2569 value_contents_copy_raw.
2570 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2571 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2572 * cp-valprint.c (cp_print_value_fields): Let the common printing
2573 code handle optimized out values.
2574 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2575 * d-valprint.c (dynamic_array_type): Use
2576 value_bits_any_optimized_out.
2577 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2578 check_any_valid fields.
2579 (check_pieced_value_bits): Delete and inline ...
2580 (check_pieced_synthetic_pointer): ... here.
2581 (check_pieced_value_validity): Delete.
2582 (check_pieced_value_invalid): Delete.
2583 (pieced_value_funcs): Remove check_validity and check_any_valid
2584 fields.
2585 (read_pieced_value): Use mark_value_bits_optimized_out.
2586 (write_pieced_value): Switch to use
2587 mark_value_bytes_optimized_out.
2588 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2589 of assuming the whole value is optimized out.
2590 * findvar.c (read_frame_register_value): Remove special handling
2591 of optimized out registers.
2592 (value_from_register): Use mark_value_bytes_optimized_out.
2593 * frame-unwind.c (frame_unwind_got_optimized): Use
2594 mark_value_bytes_optimized_out.
2595 * jv-valprint.c (java_value_print): Adjust.
2596 (java_print_value_fields): Let the common printing code handle
2597 optimized out values.
2598 * mips-tdep.c (mips_print_register): Remove special handling of
2599 optimized out registers.
2600 * opencl-lang.c (lval_func_check_validity): Delete.
2601 (lval_func_check_any_valid): Delete.
2602 (opencl_value_funcs): Remove check_validity and check_any_valid
2603 fields.
2604 * p-valprint.c (pascal_object_print_value_fields): Let the common
2605 printing code handle optimized out values.
2606 * stack.c (read_frame_arg): Remove special handling of optimized
2607 out values. Fetch both VAL and ENTRYVAL before comparing
2608 contents. Adjust to value_available_contents_eq rename.
2609 * valprint.c (valprint_check_validity)
2610 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2611 (val_print_array_elements): Adjust.
2612 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2613 (value_bits_any_optimized_out): New function.
2614 (value_entirely_covered_by_range_vector): New function, factored
2615 out from value_entirely_unavailable.
2616 (value_entirely_unavailable): Reimplement.
2617 (value_entirely_optimized_out): New function.
2618 (insert_into_bit_range_vector): New function, factored out from
2619 mark_value_bits_unavailable.
2620 (mark_value_bits_unavailable): Reimplement.
2621 (struct ranges_and_idx): New struct.
2622 (find_first_range_overlap_and_match): New function, factored out
2623 from value_available_contents_bits_eq.
2624 (value_available_contents_bits_eq): Rename to ...
2625 (value_contents_bits_eq): ... this. Check both unavailable
2626 contents and optimized out contents.
2627 (value_available_contents_eq): Rename to ...
2628 (value_contents_eq): ... this.
2629 (allocate_value_lazy): Remove reference to the old optimized_out
2630 boolean.
2631 (allocate_optimized_out_value): Use
2632 mark_value_bytes_optimized_out.
2633 (require_not_optimized_out): Adjust to check whether the
2634 optimized_out vec is empty.
2635 (ranges_copy_adjusted): New function, factored out from
2636 value_contents_copy_raw.
2637 (value_contents_copy_raw): Also copy the optimized out ranges.
2638 Assert the destination ranges aren't optimized out.
2639 (value_contents_copy): Update comment, remove call to
2640 require_not_optimized_out.
2641 (value_contents_equal): Adjust to check whether the optimized_out
2642 vec is empty.
2643 (set_value_optimized_out, value_optimized_out_const): Delete.
2644 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2645 New functions.
2646 (value_entirely_optimized_out, value_bits_valid): Delete.
2647 (value_copy): Take a VEC copy of the 'optimized_out' field.
2648 (value_primitive_field): Remove special handling of optimized out.
2649 (value_fetch_lazy): Assert that lazy values have no unavailable
2650 regions. Use value_bits_any_optimized_out. Remove some special
2651 handling for optimized out values.
2652 * value.h: Add intro comment about <optimized out> and
2653 <unavailable>.
2654 (struct lval_funcs): Remove check_validity and check_any_valid
2655 fields.
2656 (set_value_optimized_out, value_optimized_out_const): Remove.
2657 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2658 New declarations.
2659 (value_bits_any_optimized_out): New declaration.
2660 (value_bits_valid): Delete declaration.
2661 (value_available_contents_eq): Rename to ...
2662 (value_contents_eq): ... this, and extend comments.
2663
6694c411
JK
26642014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2665
2666 Fix -fsanitize=address on unreadable inferior strings.
2667 * valprint.c (val_print_string): Fix access before BUFFER.
2668
89a1c21a
SM
26692014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2670
2671 * target.c (target_struct_size): Remove.
2672 (target_struct_allocsize): Remove.
2673 (DEFAULT_ALLOCSIZE): Remove.
2674 (target_ops_p): New typedef.
2675 (DEF_VEC_P (target_ops_p)): New vector type.
2676 (target_structs): Change type to VEC (target_ops_p).
2677 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2678 (find_default_run_target): Rewrite for loop following changes to
2679 target_structs.
2680
cb417230
JB
26812014-08-19 Joel Brobecker <brobecker@adacore.com>
2682
2683 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2684 Adjust code accordingly. Adjust function description comment.
2685
817e0957
YQ
26862014-08-19 Yao Qi <yao@codesourcery.com>
2687
2688 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2689 types.
2690
2974be62
AM
26912014-08-19 Alan Modra <amodra@gmail.com>
2692
2693 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2694 * config.in: Regenerate.
2695 * configure: Regenerate.
2696
34abf635
GB
26972014-08-19 Tom Tromey <tromey@redhat.com>
2698 Gary Benson <gbenson@redhat.com>
2699
2700 * common/common-debug.h: New file.
2701 * common/common-debug.c: Likewise.
2702 * debug.c: Likewise.
2703 * Makefile.in (SFILES): Add common/common-debug.c.
2704 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2705 (COMMON_OBS): Add common-debug.o and debug.o.
2706 (common-debug.o): New rule.
2707 * common/common-defs.h: Include common-debug.h.
2708 * common/agent.c (debug_agent_printf): New function.
2709 (DEBUG_AGENT): Redefine.
2710 * nat/i386-dregs.c (debug_printf): Undefine.
2711
f6e94d78
GB
27122014-08-19 Gary Benson <gbenson@redhat.com>
2713
2714 * common/common-defs.h: Include print-utils.h.
2715 * utils.h: Do not include print-utils.h.
2716
9239eeab
GB
27172014-08-19 Tom Tromey <tromey@redhat.com>
2718 Gary Benson <gbenson@redhat.com>
2719
2720 * common/common-types.h: New file.
2721 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2722 * common/common-defs.h: Include common-types.h.
2723 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2724 (ULONGEST): Remove.
2725
ef87c8bb
GB
27262014-08-19 Tom Tromey <tromey@redhat.com>
2727 Gary Benson <gbenson@redhat.com>
2728
2729 * common/errors.h: New file.
2730 * common/errors.c: Likewise.
2731 * Makefile.in (SFILES): Add common/errors.c.
2732 (HFILES_NO_SRCDIR): Add common/errors.h.
2733 (COMMON_OBS): Add errors.o.
2734 (errors.o): New rule.
2735 * common/common-defs.h: Include errors.h.
2736 * utils.h (perror_with_name, error, verror, warning, vwarning):
2737 Don't declare.
2738 * common/common-utils.h: (malloc_failure, internal_error):
2739 Likewise.
2740
196a707b
GB
27412014-08-19 Gary Benson <gbenson@redhat.com>
2742
2743 * utils.c (internal_vproblem): Always print the message.
2744
ded4fc8f
DE
27452014-08-18 Doug Evans <dje@google.com>
2746
2747 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2748
950c97d8
JB
27492014-08-18 Joel Brobecker <brobecker@adacore.com>
2750
2751 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2752 Return 0 if TYPE is dynamic.
2753 (print_range): Add handling of dynamic ranges.
2754
3cdcd0ce
JB
27552014-08-18 Keven Boell <keven.boell@intel.com>
2756 Joel Brobecker <brobecker@adacore.com>
2757
2758 * gdbtypes.h (struct main_type): Add field "data_location".
2759 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2760 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2761 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2762 a dynamic data location.
2763 (resolve_dynamic_type): Add DW_AT_data_location handling.
2764 (copy_recursive, copy_type): Copy the data_location information
2765 when present.
2766 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2767 * value.c (value_from_contents_and_address): Add
2768 DW_AT_data_location handling.
2769
08412b07
JB
27702014-08-18 Keven Boell <keven.boell@intel.com>
2771 Joel Brobecker <brobecker@adacore.com>
2772
2773 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2774 field "get_object_address".
2775 * dwarf2expr.c (execute_stack_op): Add handling for
2776 DW_OP_push_object_address.
2777 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2778 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2779 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2780 (dwarf_expr_get_obj_addr): New function.
2781 (dwarf_expr_ctx_funcs): Add get_object_address field.
2782 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2783 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2784 (dwarf2_evaluate_property): Add parameter "address". Use it.
2785 (needs_get_obj_addr): New function.
2786 (needs_frame_ctx_funcs): Add get_object_address field.
2787 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2788 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2789 (resolve_dynamic_array): Likewise.
2790
84754697
JB
27912014-08-18 Joel Brobecker <brobecker@adacore.com>
2792
2793 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2794 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2795 fixed value for records and unions for which some GNAT encodings
2796 are present.
2797
da5c522f
JB
27982014-08-18 Joel Brobecker <brobecker@adacore.com>
2799
2800 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2801 rewrite to avoid "else if" and "else" constructs. Should be
2802 a no-op in practice.
2803
0d72a7c3
JB
28042014-08-18 Joel Brobecker <brobecker@adacore.com>
2805
2806 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2807 of lexical block.
2808
e66d4446
SC
28092014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2810
2811 PR c++/17132
2812 * eval.c: Update all calls to find_overload_match.
2813 * valarith.c: Likewise.
2814 (value_user_defined_cpp_op, value_user_defined_op): New
2815 argument NOSIDE. Update all callers.
2816 * valops.c (find_overload_match): New argument NOSIDE.
2817 * value.h (find_overload_match): Update signature.
2818
940df408
SC
28192014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2820
2821 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2822 'items' methods instead of 'iteritems' method on dictionaries.
2823
699ca60a
DE
28242014-08-15 Doug Evans <dje@google.com>
2825
2826 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2827 closer to use.
2828
37780ee5
DE
28292014-08-15 Doug Evans <dje@google.com>
2830
2831 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2832
0ad93d4f
DE
28332014-08-15 Doug Evans <dje@google.com>
2834
2835 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2836
20d8c372
DE
28372014-08-15 Doug Evans <dje@google.com>
2838
2839 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2840 unused.
2841
cb039ba4
EZ
28422014-08-15 Eli Zaretskii <eliz@gnu.org>
2843
2844 * dcache.h: Include target.h, to avoid compile time warnings.
2845
eb7a547a
JB
28462014-08-15 Joel Brobecker <brobecker@adacore.com>
2847
2848 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2849 frame_info" partial declaration.
2850 * gdbarch.h: Regenerate.
2851
783cecc8
YQ
28522014-08-15 Yao Qi <yao@codesourcery.com>
2853
2854 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2855 Add parameter 'decode_for_pst_p'. Callers update.
2856
65c749e7
YQ
28572014-08-13 Yao Qi <yao@codesourcery.com>
2858
2859 PR build/17104
2860 * configure.ac: Use local variable 'pos'.
2861 * configure: Regenerated.
2862
d769e349
DE
28632014-08-11 Doug Evans <dje@google.com>
2864
2865 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2866 message, it is redundant with "Reading symbols from ..." message.
2867
24f1235e
DE
28682014-08-10 Doug Evans <xdje42@gmail.com>
2869
2870 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2871
dcd2e6ef
YQ
28722014-08-09 Yao Qi <yao@codesourcery.com>
2873
2874 PR remote/9053
2875 * remote.c (remote_xfer_partial): Remove dead code.
2876
070bdf0b
AA
28772014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2878
2879 * ia64-linux-tdep.c: Include "regset.h".
2880 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2881 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2882 (ia64_linux_supply_fpregset): New function.
2883 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2884 (ia64_linux_regset_from_core_section): New function.
2885 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2886 method.
2887
08f9f542
AA
28882014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2889
2890 * m68klinux-tdep.c: Include "regset.h".
2891 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2892 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2893 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2894 (m68k_linux_regset_from_core_section): New function.
2895 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2896 method.
2897
8f1cee41
AA
28982014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2899
2900 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2901 function. Move logic to...
2902 (tilegx_linux_regmap): ... this new register map.
2903 (tilegx_linux_regset): Refer to register map, replace supply
2904 method by regcache_supply_regset, and add collect method.
2905 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2906 TILEGX_FIRST_EASY_REGNUM.
2907
c5741217
AA
29082014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2909
2910 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2911 that calls regcache_supply_regset and handles the EPC register
2912 separately. Move main logic to...
2913 (score7_linux_gregmap): ... this new register map.
2914 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2915 (score7_linux_gregset): Refer to register map. Add collect method.
2916 (score7_linux_regset_from_core_section): Replace
2917 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2918 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2919 (struct regset): Delete unused forward declaraction.
2920 (struct pt_regs): Delete structure definition.
2921 (elf_gregset_t): Delete typedef.
2922
81580573
AA
29232014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2924
2925 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2926 (nios2_core_regset): Add collect method.
2927
ba199d7d
AA
29282014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2929
2930 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2931 platform-independent and don't write to read-only input buffer.
2932 (m32r_linux_collect_gregset): New function.
2933 (m32r_linux_gregset): Add collect method.
2934
0006a9da
AA
29352014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2936
2937 * hppa-linux-tdep.c (greg_map): Rename to...
2938 (hppa_linux_gregmap): ... this. Also convert to
2939 regcache_map_entry format.
2940 (hppa_linux_supply_regset): Delete function.
2941 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2942 (hppa_linux_fpregmap): ... this new register map.
2943 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2944 register map, replace supply method by regcache_supply_regset, and
2945 add collect method regcache_collect_regset.
2946
901e1b23
AA
29472014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2948
2949 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2950 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2951 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2952 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2953 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2954 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2955 (frv_linux_supply_gregset): Replace main logic by call to
2956 regcache_supply_regset, but keep clearing gr32-gr63.
2957 (frv_linux_supply_fpregset): Delete function.
2958 (frv_linux_gregset): Refer to appropriate register map and add
2959 regcache_collect_regset as the collect method.
2960 (frv_linux_fpregset): Likewise. Also exchange the supply method
2961 by regcache_supply_regset.
2962
1d6e7555
AA
29632014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2964
2965 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2966 by call to alpha_supply_int_regs.
2967 (alpha_linux_collect_gregset): New function.
2968 (alpha_linux_supply_fpregset): Replace logic by call to
2969 alpha_supply_fp_regs.
2970 (alpha_linux_collect_fpregset): New function.
2971 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2972
d4d793bf
AA
29732014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2974
2975 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2976 by call to regcache_collect_regset.
2977 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2978 instead of aarch64_linux_supply_gregset/_fpregset.
2979 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2980 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2981 header file instead.
2982 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2983 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2984 functions. Move logic to ...
2985 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2986 register maps.
2987 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2988 refer to new register maps, replace *_regset_from_core by
2989 regcache_supply_regset, and also use regcache_collect_regset.
2990 * aarch64-linux-tdep.h: Include "regset.h".
2991 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2992 Delete prototypes.
2993 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2994 macros, moved from C source file.
2995 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2996 variable declarations.
2997
99b7da5d
AA
29982014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2999
3000 * s390-linux-nat.c: Include "regset.h".
3001 (regmap_gregset): Delete macro.
3002 (s390_64_regmap_gregset): New register map for
3003 regcache_supply/_collect_regset.
3004 (s390_64_gregset): New regset.
3005 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3006 (regmap_fpregset): Delete macro.
3007 (s390_native_supply, s390_native_collect): Delete functions.
3008 (supply_gregset, fill_gregset): Replace s390-specific regmap
3009 handling by a call to regcache_supply/_collect_regset.
3010 (supply_fpregset, fill_fpregset): Call regcache_supply/
3011 _collect_regset instead of s390_native_supply/_collect.
3012 (fetch_regset, store_regset): Likewise. Also change the last
3013 parameter to a regset instead of a regmap.
3014 (s390_linux_fetch_inferior_registers)
3015 (390_linux_store_inferior_registers): Adjust last parameter in
3016 calls to fetch_regset and store_regset.
3017 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3018 (s390_gregmap): ... this. Also make static const and convert to
3019 regcache_map_entry format.
3020 (s390x_regmap_gregset): Delete.
3021 (s390_regmap_fpregset): Rename to...
3022 (s390_fpregmap): ... this. Make static const and convert to
3023 regcache_map_entry format.
3024 (s390_regmap_upper, s390_regmap_last_break)
3025 (s390x_regmap_last_break, s390_regmap_system_call)
3026 (s390_regmap_tdb): Likewise.
3027 (s390_supply_regset, s390_collect_regset): Remove functions.
3028 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3029 s390_supply_regset.
3030 (s390_gregset, s390_fpregset, s390_upper_regset)
3031 (s390_last_break_regset, s390x_last_break_regset)
3032 (s390_system_call_regset, s390_tdb_regset): Make global and
3033 replace s390_supply/_collect_regset by regcache_supply/
3034 _collect_regset.
3035 (s390x_gregset): Delete.
3036 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3037 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3038 (s390_regmap_fpregset, s390_regmap_last_break)
3039 (s390x_regmap_last_break, s390_regmap_system_call)
3040 (s390_regmap_tdb): Delete global variable declarations.
3041 (s390_gregset, s390_fpregset, s390_last_break_regset)
3042 (s390x_last_break_regset, s390_system_call_regset)
3043 (s390_tdb_regset): New global variable declarations.
3044
0b309272
AA
30452014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3046
3047 * regcache.c: Include "regset.h".
3048 (regcache_transfer_regset): New local function.
3049 (regcache_supply_regset, regcache_collect_regset): New functions.
3050 * regcache.h (struct regcache_map_entry): New structure.
3051 (REGCACHE_MAP_SKIP): New enum value.
3052 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3053
7fefa8d7
AA
30542014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3055
3056 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3057 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3058 (ppc_linux_collect_gregset ): Likewise.
3059 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3060 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3061 (ppc_collect_vrregset): Likewise.
3062 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3063 Likewise.
3064
96c4f946
YQ
30652014-08-07 Yao Qi <yao@codesourcery.com>
3066
3067 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3068 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3069 * remote.c (remote_read_bytes): Likewise.
3070
fffbe6a8
YQ
30712014-08-07 Yao Qi <yao@codesourcery.com>
3072
3073 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3074
5ee8a82c
YQ
30752014-08-07 Yao Qi <yao@codesourcery.com>
3076
3077 PR remote/17230
3078 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3079 TARGET_XFER_OK instead of 0.
3080
bb974a24
GB
30812014-08-07 Gary Benson <gbenson@redhat.com>
3082
3083 * common/common-defs.h: Include errno.h.
3084 * defs.h: Do not include errno.h.
3085 * ada-typeprint.c: Likewise.
3086 * c-typeprint.c: Likewise.
3087 * core-regset.c: Likewise.
3088 * corefile.c: Likewise.
3089 * corelow.c: Likewise.
3090 * event-loop.c: Likewise.
3091 * f-typeprint.c: Likewise.
3092 * gnu-nat.c: Likewise.
3093 * go32-nat.c: Likewise.
3094 * i386gnu-nat.c: Likewise.
3095 * m2-typeprint.c: Likewise.
3096 * nat/linux-btrace.c: Likewise.
3097 * p-typeprint.c: Likewise.
3098 * procfs.c: Likewise.
3099 * remote-sim.c: Likewise.
3100 * rs6000-nat.c: Likewise.
3101 * target.c: Likewise.
3102 * typeprint.c: Likewise.
3103 * ui-file.c: Likewise.
3104 * valops.c: Likewise.
3105 * valprint.c: Likewise.
3106
6d3d12eb
GB
31072014-08-07 Gary Benson <gbenson@redhat.com>
3108
3109 * common/common-defs.h: Include string.h.
3110 * aarch64-tdep.c: Do not include string.h.
3111 * ada-exp.y: Likewise.
3112 * ada-lang.c: Likewise.
3113 * ada-lex.l: Likewise.
3114 * ada-typeprint.c: Likewise.
3115 * ada-valprint.c: Likewise.
3116 * aix-thread.c: Likewise.
3117 * alpha-linux-tdep.c: Likewise.
3118 * alpha-mdebug-tdep.c: Likewise.
3119 * alpha-nat.c: Likewise.
3120 * alpha-osf1-tdep.c: Likewise.
3121 * alpha-tdep.c: Likewise.
3122 * alphanbsd-tdep.c: Likewise.
3123 * amd64-dicos-tdep.c: Likewise.
3124 * amd64-linux-tdep.c: Likewise.
3125 * amd64-nat.c: Likewise.
3126 * amd64-sol2-tdep.c: Likewise.
3127 * amd64fbsd-tdep.c: Likewise.
3128 * amd64obsd-tdep.c: Likewise.
3129 * arch-utils.c: Likewise.
3130 * arm-linux-nat.c: Likewise.
3131 * arm-linux-tdep.c: Likewise.
3132 * arm-tdep.c: Likewise.
3133 * arm-wince-tdep.c: Likewise.
3134 * armbsd-tdep.c: Likewise.
3135 * armnbsd-nat.c: Likewise.
3136 * armnbsd-tdep.c: Likewise.
3137 * armobsd-tdep.c: Likewise.
3138 * avr-tdep.c: Likewise.
3139 * ax-gdb.c: Likewise.
3140 * ax-general.c: Likewise.
3141 * bcache.c: Likewise.
3142 * bfin-tdep.c: Likewise.
3143 * breakpoint.c: Likewise.
3144 * build-id.c: Likewise.
3145 * buildsym.c: Likewise.
3146 * c-exp.y: Likewise.
3147 * c-lang.c: Likewise.
3148 * c-typeprint.c: Likewise.
3149 * c-valprint.c: Likewise.
3150 * charset.c: Likewise.
3151 * cli-out.c: Likewise.
3152 * cli/cli-cmds.c: Likewise.
3153 * cli/cli-decode.c: Likewise.
3154 * cli/cli-dump.c: Likewise.
3155 * cli/cli-interp.c: Likewise.
3156 * cli/cli-logging.c: Likewise.
3157 * cli/cli-script.c: Likewise.
3158 * cli/cli-setshow.c: Likewise.
3159 * cli/cli-utils.c: Likewise.
3160 * coffread.c: Likewise.
3161 * common/agent.c: Likewise.
3162 * common/buffer.c: Likewise.
3163 * common/buffer.h: Likewise.
3164 * common/common-utils.c: Likewise.
3165 * common/filestuff.c: Likewise.
3166 * common/filestuff.c: Likewise.
3167 * common/format.c: Likewise.
3168 * common/print-utils.c: Likewise.
3169 * common/rsp-low.c: Likewise.
3170 * common/signals.c: Likewise.
3171 * common/vec.h: Likewise.
3172 * common/xml-utils.c: Likewise.
3173 * core-regset.c: Likewise.
3174 * corefile.c: Likewise.
3175 * corelow.c: Likewise.
3176 * cp-abi.c: Likewise.
3177 * cp-name-parser.y: Likewise.
3178 * cp-support.c: Likewise.
3179 * cp-valprint.c: Likewise.
3180 * cris-tdep.c: Likewise.
3181 * d-exp.y: Likewise.
3182 * darwin-nat.c: Likewise.
3183 * dbxread.c: Likewise.
3184 * dcache.c: Likewise.
3185 * demangle.c: Likewise.
3186 * dicos-tdep.c: Likewise.
3187 * disasm.c: Likewise.
3188 * doublest.c: Likewise.
3189 * dsrec.c: Likewise.
3190 * dummy-frame.c: Likewise.
3191 * dwarf2-frame.c: Likewise.
3192 * dwarf2loc.c: Likewise.
3193 * dwarf2read.c: Likewise.
3194 * elfread.c: Likewise.
3195 * environ.c: Likewise.
3196 * eval.c: Likewise.
3197 * event-loop.c: Likewise.
3198 * exceptions.c: Likewise.
3199 * exec.c: Likewise.
3200 * expprint.c: Likewise.
3201 * f-exp.y: Likewise.
3202 * f-lang.c: Likewise.
3203 * f-typeprint.c: Likewise.
3204 * f-valprint.c: Likewise.
3205 * fbsd-nat.c: Likewise.
3206 * findcmd.c: Likewise.
3207 * findvar.c: Likewise.
3208 * fork-child.c: Likewise.
3209 * frame.c: Likewise.
3210 * frv-linux-tdep.c: Likewise.
3211 * frv-tdep.c: Likewise.
3212 * gdb.c: Likewise.
3213 * gdb_bfd.c: Likewise.
3214 * gdbarch.c: Likewise.
3215 * gdbarch.sh: Likewise.
3216 * gdbtypes.c: Likewise.
3217 * gnu-nat.c: Likewise.
3218 * gnu-v2-abi.c: Likewise.
3219 * gnu-v3-abi.c: Likewise.
3220 * go-exp.y: Likewise.
3221 * go-lang.c: Likewise.
3222 * go32-nat.c: Likewise.
3223 * guile/guile.c: Likewise.
3224 * guile/scm-auto-load.c: Likewise.
3225 * hppa-hpux-tdep.c: Likewise.
3226 * hppa-linux-nat.c: Likewise.
3227 * hppanbsd-tdep.c: Likewise.
3228 * hppaobsd-tdep.c: Likewise.
3229 * i386-cygwin-tdep.c: Likewise.
3230 * i386-dicos-tdep.c: Likewise.
3231 * i386-linux-tdep.c: Likewise.
3232 * i386-nto-tdep.c: Likewise.
3233 * i386-sol2-tdep.c: Likewise.
3234 * i386-tdep.c: Likewise.
3235 * i386bsd-tdep.c: Likewise.
3236 * i386gnu-nat.c: Likewise.
3237 * i386nbsd-tdep.c: Likewise.
3238 * i386obsd-tdep.c: Likewise.
3239 * i387-tdep.c: Likewise.
3240 * ia64-libunwind-tdep.c: Likewise.
3241 * ia64-linux-nat.c: Likewise.
3242 * inf-child.c: Likewise.
3243 * inf-ptrace.c: Likewise.
3244 * inf-ttrace.c: Likewise.
3245 * infcall.c: Likewise.
3246 * infcmd.c: Likewise.
3247 * inflow.c: Likewise.
3248 * infrun.c: Likewise.
3249 * interps.c: Likewise.
3250 * iq2000-tdep.c: Likewise.
3251 * irix5-nat.c: Likewise.
3252 * jv-exp.y: Likewise.
3253 * jv-lang.c: Likewise.
3254 * jv-typeprint.c: Likewise.
3255 * jv-valprint.c: Likewise.
3256 * language.c: Likewise.
3257 * linux-fork.c: Likewise.
3258 * linux-nat.c: Likewise.
3259 * lm32-tdep.c: Likewise.
3260 * m2-exp.y: Likewise.
3261 * m2-typeprint.c: Likewise.
3262 * m32c-tdep.c: Likewise.
3263 * m32r-linux-nat.c: Likewise.
3264 * m32r-linux-tdep.c: Likewise.
3265 * m32r-rom.c: Likewise.
3266 * m32r-tdep.c: Likewise.
3267 * m68hc11-tdep.c: Likewise.
3268 * m68k-tdep.c: Likewise.
3269 * m68kbsd-tdep.c: Likewise.
3270 * m68klinux-nat.c: Likewise.
3271 * m68klinux-tdep.c: Likewise.
3272 * m88k-tdep.c: Likewise.
3273 * machoread.c: Likewise.
3274 * macrocmd.c: Likewise.
3275 * main.c: Likewise.
3276 * mdebugread.c: Likewise.
3277 * mem-break.c: Likewise.
3278 * memattr.c: Likewise.
3279 * memory-map.c: Likewise.
3280 * mep-tdep.c: Likewise.
3281 * mi/mi-cmd-break.c: Likewise.
3282 * mi/mi-cmd-disas.c: Likewise.
3283 * mi/mi-cmd-env.c: Likewise.
3284 * mi/mi-cmd-stack.c: Likewise.
3285 * mi/mi-cmd-var.c: Likewise.
3286 * mi/mi-cmds.c: Likewise.
3287 * mi/mi-console.c: Likewise.
3288 * mi/mi-getopt.c: Likewise.
3289 * mi/mi-interp.c: Likewise.
3290 * mi/mi-main.c: Likewise.
3291 * mi/mi-parse.c: Likewise.
3292 * microblaze-rom.c: Likewise.
3293 * microblaze-tdep.c: Likewise.
3294 * mingw-hdep.c: Likewise.
3295 * minidebug.c: Likewise.
3296 * minsyms.c: Likewise.
3297 * mips-irix-tdep.c: Likewise.
3298 * mips-linux-tdep.c: Likewise.
3299 * mips-tdep.c: Likewise.
3300 * mips64obsd-tdep.c: Likewise.
3301 * mipsnbsd-tdep.c: Likewise.
3302 * mipsread.c: Likewise.
3303 * mn10300-linux-tdep.c: Likewise.
3304 * mn10300-tdep.c: Likewise.
3305 * monitor.c: Likewise.
3306 * moxie-tdep.c: Likewise.
3307 * mt-tdep.c: Likewise.
3308 * nat/linux-btrace.c: Likewise.
3309 * nat/linux-osdata.c: Likewise.
3310 * nat/linux-procfs.c: Likewise.
3311 * nat/linux-ptrace.c: Likewise.
3312 * nat/linux-waitpid.c: Likewise.
3313 * nbsd-tdep.c: Likewise.
3314 * nios2-linux-tdep.c: Likewise.
3315 * nto-procfs.c: Likewise.
3316 * nto-tdep.c: Likewise.
3317 * objc-lang.c: Likewise.
3318 * objfiles.c: Likewise.
3319 * opencl-lang.c: Likewise.
3320 * osabi.c: Likewise.
3321 * osdata.c: Likewise.
3322 * p-exp.y: Likewise.
3323 * p-lang.c: Likewise.
3324 * p-typeprint.c: Likewise.
3325 * parse.c: Likewise.
3326 * posix-hdep.c: Likewise.
3327 * ppc-linux-nat.c: Likewise.
3328 * ppc-sysv-tdep.c: Likewise.
3329 * ppcfbsd-tdep.c: Likewise.
3330 * ppcnbsd-tdep.c: Likewise.
3331 * ppcobsd-tdep.c: Likewise.
3332 * printcmd.c: Likewise.
3333 * procfs.c: Likewise.
3334 * prologue-value.c: Likewise.
3335 * python/py-auto-load.c: Likewise.
3336 * python/py-gdb-readline.c: Likewise.
3337 * ravenscar-thread.c: Likewise.
3338 * regcache.c: Likewise.
3339 * registry.c: Likewise.
3340 * remote-fileio.c: Likewise.
3341 * remote-m32r-sdi.c: Likewise.
3342 * remote-mips.c: Likewise.
3343 * remote-notif.c: Likewise.
3344 * remote-sim.c: Likewise.
3345 * remote.c: Likewise.
3346 * reverse.c: Likewise.
3347 * rs6000-aix-tdep.c: Likewise.
3348 * ser-base.c: Likewise.
3349 * ser-go32.c: Likewise.
3350 * ser-mingw.c: Likewise.
3351 * ser-pipe.c: Likewise.
3352 * ser-tcp.c: Likewise.
3353 * ser-unix.c: Likewise.
3354 * serial.c: Likewise.
3355 * sh-tdep.c: Likewise.
3356 * sh64-tdep.c: Likewise.
3357 * shnbsd-tdep.c: Likewise.
3358 * skip.c: Likewise.
3359 * sol-thread.c: Likewise.
3360 * solib-dsbt.c: Likewise.
3361 * solib-frv.c: Likewise.
3362 * solib-osf.c: Likewise.
3363 * solib-som.c: Likewise.
3364 * solib-spu.c: Likewise.
3365 * solib-target.c: Likewise.
3366 * solib.c: Likewise.
3367 * somread.c: Likewise.
3368 * source.c: Likewise.
3369 * sparc-nat.c: Likewise.
3370 * sparc-sol2-tdep.c: Likewise.
3371 * sparc-tdep.c: Likewise.
3372 * sparc64-tdep.c: Likewise.
3373 * sparc64fbsd-tdep.c: Likewise.
3374 * sparc64nbsd-tdep.c: Likewise.
3375 * sparcnbsd-tdep.c: Likewise.
3376 * spu-linux-nat.c: Likewise.
3377 * spu-multiarch.c: Likewise.
3378 * spu-tdep.c: Likewise.
3379 * stabsread.c: Likewise.
3380 * stack.c: Likewise.
3381 * std-regs.c: Likewise.
3382 * symfile.c: Likewise.
3383 * symmisc.c: Likewise.
3384 * symtab.c: Likewise.
3385 * target.c: Likewise.
3386 * thread.c: Likewise.
3387 * tilegx-linux-nat.c: Likewise.
3388 * tilegx-tdep.c: Likewise.
3389 * top.c: Likewise.
3390 * tracepoint.c: Likewise.
3391 * tui/tui-command.c: Likewise.
3392 * tui/tui-data.c: Likewise.
3393 * tui/tui-disasm.c: Likewise.
3394 * tui/tui-file.c: Likewise.
3395 * tui/tui-layout.c: Likewise.
3396 * tui/tui-out.c: Likewise.
3397 * tui/tui-regs.c: Likewise.
3398 * tui/tui-source.c: Likewise.
3399 * tui/tui-stack.c: Likewise.
3400 * tui/tui-win.c: Likewise.
3401 * tui/tui-windata.c: Likewise.
3402 * tui/tui-winsource.c: Likewise.
3403 * typeprint.c: Likewise.
3404 * ui-file.c: Likewise.
3405 * ui-out.c: Likewise.
3406 * user-regs.c: Likewise.
3407 * utils.c: Likewise.
3408 * v850-tdep.c: Likewise.
3409 * valarith.c: Likewise.
3410 * valops.c: Likewise.
3411 * valprint.c: Likewise.
3412 * value.c: Likewise.
3413 * varobj.c: Likewise.
3414 * vax-tdep.c: Likewise.
3415 * vaxnbsd-tdep.c: Likewise.
3416 * vaxobsd-tdep.c: Likewise.
3417 * windows-nat.c: Likewise.
3418 * xcoffread.c: Likewise.
3419 * xml-support.c: Likewise.
3420 * xstormy16-tdep.c: Likewise.
3421 * xtensa-linux-nat.c: Likewise.
3422
dccbb609
GB
34232014-08-07 Gary Benson <gbenson@redhat.com>
3424
3425 * common/common-defs.h: Include gdb_assert.h.
3426 * aarch64-tdep.c: Do not include gdb_assert.h.
3427 * addrmap.c: Likewise.
3428 * aix-thread.c: Likewise.
3429 * alpha-linux-tdep.c: Likewise.
3430 * alpha-mdebug-tdep.c: Likewise.
3431 * alphanbsd-tdep.c: Likewise.
3432 * amd64-nat.c: Likewise.
3433 * amd64-tdep.c: Likewise.
3434 * amd64bsd-nat.c: Likewise.
3435 * amd64fbsd-nat.c: Likewise.
3436 * amd64fbsd-tdep.c: Likewise.
3437 * amd64nbsd-nat.c: Likewise.
3438 * amd64nbsd-tdep.c: Likewise.
3439 * amd64obsd-nat.c: Likewise.
3440 * amd64obsd-tdep.c: Likewise.
3441 * arch-utils.c: Likewise.
3442 * arm-tdep.c: Likewise.
3443 * armbsd-tdep.c: Likewise.
3444 * auxv.c: Likewise.
3445 * bcache.c: Likewise.
3446 * bfin-tdep.c: Likewise.
3447 * blockframe.c: Likewise.
3448 * breakpoint.c: Likewise.
3449 * bsd-kvm.c: Likewise.
3450 * bsd-uthread.c: Likewise.
3451 * buildsym.c: Likewise.
3452 * c-exp.y: Likewise.
3453 * c-lang.c: Likewise.
3454 * charset.c: Likewise.
3455 * cleanups.c: Likewise.
3456 * cli-out.c: Likewise.
3457 * cli/cli-decode.c: Likewise.
3458 * cli/cli-dump.c: Likewise.
3459 * cli/cli-logging.c: Likewise.
3460 * cli/cli-script.c: Likewise.
3461 * cli/cli-utils.c: Likewise.
3462 * coffread.c: Likewise.
3463 * common/common-utils.c: Likewise.
3464 * common/queue.h: Likewise.
3465 * common/signals.c: Likewise.
3466 * common/vec.h: Likewise.
3467 * complaints.c: Likewise.
3468 * completer.c: Likewise.
3469 * corelow.c: Likewise.
3470 * cp-abi.c: Likewise.
3471 * cp-name-parser.y: Likewise.
3472 * cp-namespace.c: Likewise.
3473 * cp-support.c: Likewise.
3474 * cris-tdep.c: Likewise.
3475 * dbxread.c: Likewise.
3476 * dictionary.c: Likewise.
3477 * doublest.c: Likewise.
3478 * dsrec.c: Likewise.
3479 * dummy-frame.c: Likewise.
3480 * dwarf2-frame-tailcall.c: Likewise.
3481 * dwarf2-frame.c: Likewise.
3482 * dwarf2expr.c: Likewise.
3483 * dwarf2loc.c: Likewise.
3484 * dwarf2read.c: Likewise.
3485 * eval.c: Likewise.
3486 * event-loop.c: Likewise.
3487 * exceptions.c: Likewise.
3488 * expprint.c: Likewise.
3489 * f-valprint.c: Likewise.
3490 * fbsd-nat.c: Likewise.
3491 * findvar.c: Likewise.
3492 * frame-unwind.c: Likewise.
3493 * frame.c: Likewise.
3494 * frv-tdep.c: Likewise.
3495 * gcore.c: Likewise.
3496 * gdb-dlfcn.c: Likewise.
3497 * gdb_bfd.c: Likewise.
3498 * gdbarch.c: Likewise.
3499 * gdbarch.sh: Likewise.
3500 * gdbtypes.c: Likewise.
3501 * gnu-nat.c: Likewise.
3502 * gnu-v3-abi.c: Likewise.
3503 * go-lang.c: Likewise.
3504 * guile/scm-exception.c: Likewise.
3505 * guile/scm-gsmob.c: Likewise.
3506 * guile/scm-lazy-string.c: Likewise.
3507 * guile/scm-math.c: Likewise.
3508 * guile/scm-pretty-print.c: Likewise.
3509 * guile/scm-safe-call.c: Likewise.
3510 * guile/scm-utils.c: Likewise.
3511 * guile/scm-value.c: Likewise.
3512 * h8300-tdep.c: Likewise.
3513 * hppa-hpux-nat.c: Likewise.
3514 * hppa-tdep.c: Likewise.
3515 * hppanbsd-tdep.c: Likewise.
3516 * hppaobsd-tdep.c: Likewise.
3517 * i386-darwin-nat.c: Likewise.
3518 * i386-darwin-tdep.c: Likewise.
3519 * i386-nto-tdep.c: Likewise.
3520 * i386-tdep.c: Likewise.
3521 * i386bsd-nat.c: Likewise.
3522 * i386fbsd-tdep.c: Likewise.
3523 * i386gnu-nat.c: Likewise.
3524 * i386nbsd-tdep.c: Likewise.
3525 * i386obsd-tdep.c: Likewise.
3526 * i387-tdep.c: Likewise.
3527 * ia64-libunwind-tdep.c: Likewise.
3528 * ia64-tdep.c: Likewise.
3529 * inf-ptrace.c: Likewise.
3530 * inf-ttrace.c: Likewise.
3531 * infcall.c: Likewise.
3532 * infcmd.c: Likewise.
3533 * infrun.c: Likewise.
3534 * inline-frame.c: Likewise.
3535 * interps.c: Likewise.
3536 * jv-lang.c: Likewise.
3537 * jv-typeprint.c: Likewise.
3538 * linux-fork.c: Likewise.
3539 * linux-nat.c: Likewise.
3540 * linux-thread-db.c: Likewise.
3541 * m32c-tdep.c: Likewise.
3542 * m32r-linux-nat.c: Likewise.
3543 * m32r-tdep.c: Likewise.
3544 * m68k-tdep.c: Likewise.
3545 * m68kbsd-nat.c: Likewise.
3546 * m68kbsd-tdep.c: Likewise.
3547 * m88k-tdep.c: Likewise.
3548 * machoread.c: Likewise.
3549 * macroexp.c: Likewise.
3550 * macrotab.c: Likewise.
3551 * maint.c: Likewise.
3552 * mdebugread.c: Likewise.
3553 * memory-map.c: Likewise.
3554 * mep-tdep.c: Likewise.
3555 * mi/mi-common.c: Likewise.
3556 * microblaze-tdep.c: Likewise.
3557 * mingw-hdep.c: Likewise.
3558 * mips-linux-nat.c: Likewise.
3559 * mips-linux-tdep.c: Likewise.
3560 * mips-tdep.c: Likewise.
3561 * mips64obsd-tdep.c: Likewise.
3562 * mipsnbsd-tdep.c: Likewise.
3563 * mn10300-linux-tdep.c: Likewise.
3564 * mn10300-tdep.c: Likewise.
3565 * moxie-tdep.c: Likewise.
3566 * mt-tdep.c: Likewise.
3567 * nat/linux-btrace.c: Likewise.
3568 * nat/linux-osdata.c: Likewise.
3569 * nat/linux-ptrace.c: Likewise.
3570 * nat/mips-linux-watch.c: Likewise.
3571 * nios2-linux-tdep.c: Likewise.
3572 * nios2-tdep.c: Likewise.
3573 * objc-lang.c: Likewise.
3574 * objfiles.c: Likewise.
3575 * obsd-nat.c: Likewise.
3576 * opencl-lang.c: Likewise.
3577 * osabi.c: Likewise.
3578 * parse.c: Likewise.
3579 * ppc-linux-nat.c: Likewise.
3580 * ppc-sysv-tdep.c: Likewise.
3581 * ppcfbsd-nat.c: Likewise.
3582 * ppcfbsd-tdep.c: Likewise.
3583 * ppcnbsd-nat.c: Likewise.
3584 * ppcnbsd-tdep.c: Likewise.
3585 * ppcobsd-nat.c: Likewise.
3586 * ppcobsd-tdep.c: Likewise.
3587 * printcmd.c: Likewise.
3588 * procfs.c: Likewise.
3589 * prologue-value.c: Likewise.
3590 * psymtab.c: Likewise.
3591 * python/py-lazy-string.c: Likewise.
3592 * python/py-value.c: Likewise.
3593 * regcache.c: Likewise.
3594 * reggroups.c: Likewise.
3595 * registry.c: Likewise.
3596 * remote-sim.c: Likewise.
3597 * remote.c: Likewise.
3598 * rs6000-aix-tdep.c: Likewise.
3599 * rs6000-tdep.c: Likewise.
3600 * s390-linux-tdep.c: Likewise.
3601 * score-tdep.c: Likewise.
3602 * ser-base.c: Likewise.
3603 * ser-mingw.c: Likewise.
3604 * sh-tdep.c: Likewise.
3605 * sh64-tdep.c: Likewise.
3606 * solib-darwin.c: Likewise.
3607 * solib-spu.c: Likewise.
3608 * solib-svr4.c: Likewise.
3609 * source.c: Likewise.
3610 * sparc-nat.c: Likewise.
3611 * sparc-sol2-tdep.c: Likewise.
3612 * sparc-tdep.c: Likewise.
3613 * sparc64-sol2-tdep.c: Likewise.
3614 * sparc64-tdep.c: Likewise.
3615 * sparc64fbsd-tdep.c: Likewise.
3616 * sparc64nbsd-tdep.c: Likewise.
3617 * sparc64obsd-tdep.c: Likewise.
3618 * sparcnbsd-tdep.c: Likewise.
3619 * sparcobsd-tdep.c: Likewise.
3620 * spu-multiarch.c: Likewise.
3621 * spu-tdep.c: Likewise.
3622 * stabsread.c: Likewise.
3623 * stack.c: Likewise.
3624 * symfile.c: Likewise.
3625 * symtab.c: Likewise.
3626 * target-descriptions.c: Likewise.
3627 * target-memory.c: Likewise.
3628 * target.c: Likewise.
3629 * tic6x-linux-tdep.c: Likewise.
3630 * tic6x-tdep.c: Likewise.
3631 * tilegx-linux-nat.c: Likewise.
3632 * tilegx-tdep.c: Likewise.
3633 * top.c: Likewise.
3634 * tramp-frame.c: Likewise.
3635 * tui/tui-out.c: Likewise.
3636 * tui/tui-winsource.c: Likewise.
3637 * ui-out.c: Likewise.
3638 * user-regs.c: Likewise.
3639 * utils.c: Likewise.
3640 * v850-tdep.c: Likewise.
3641 * valops.c: Likewise.
3642 * value.c: Likewise.
3643 * varobj.c: Likewise.
3644 * vax-nat.c: Likewise.
3645 * xml-syscall.c: Likewise.
3646 * xml-tdesc.c: Likewise.
3647 * xstormy16-tdep.c: Likewise.
3648 * xtensa-linux-nat.c: Likewise.
3649 * xtensa-tdep.c: Likewise.
3650
e76df0d0
GB
36512014-08-07 Gary Benson <gbenson@redhat.com>
3652
3653 * common/common-defs.h: Include common-utils.h.
3654 * defs.h: Do not include common-utils.h.
3655 * common/gdb_assert.h: Likewise.
3656 * darwin-nat.h: Likewise.
3657 * nat/linux-btrace.c: Likewise.
3658 * target/waitstatus.h: Likewise.
3659
4cb9c816
GB
36602014-08-07 Gary Benson <gbenson@redhat.com>
3661
3662 * common/common-defs.h: Include ptid.h.
3663 * defs.h: Do not include ptid.h.
3664 * inferior.h: Likewise.
3665 * infrun.h: Likewise.
3666 * nat/linux-btrace.h: Likewise.
3667 * nat/linux-osdata.h: Likewise.
3668 * target/waitstatus.h: Likewise.
3669
3995eeee
GB
36702014-08-07 Gary Benson <gbenson@redhat.com>
3671
3672 * common/common-defs.h: Include gdb_locale.h.
3673 * defs.h: Do not include gdb_locale.h.
3674
cb9f1a9b
GB
36752014-08-07 Gary Benson <gbenson@redhat.com>
3676
3677 * common/common-defs.h: Include gdb/signals.h.
3678 * defs.h: Do not include gdb/signals.h.
3679
a5fceff8
GB
36802014-08-07 Gary Benson <gbenson@redhat.com>
3681
3682 * common/common-defs.h: Include pathmax.h.
3683 * defs.h: Do not include pathmax.h.
3684
b9391142
GB
36852014-08-07 Gary Benson <gbenson@redhat.com>
3686
3687 * common/common-defs.h: Include libiberty.h.
3688 * defs.h: Do not include libiberty.h.
3689 * common/queue.h: Likewise.
3690 * cp-name-parser.y: Likewise.
3691 * mi/mi-cmd-catch.c: Likewise.
3692 * python/python.c: Likewise.
3693
0e443c87
GB
36942014-08-07 Gary Benson <gbenson@redhat.com>
3695
3696 * common/common-defs.h: Include ansidecl.h.
3697 * defs.h: Do not include ansidecl.h.
3698 * common/buffer.h: Likewise.
3699 * common/common-utils.h: Likewise.
3700
8ebb3f56
GB
37012014-08-07 Gary Benson <gbenson@redhat.com>
3702
3703 * common/common-defs.h: Include stddef.h.
3704 * defs.h: Do not include stddef.h.
3705 * common/common-utils.h: Likewise.
3706 * amd64fbsd-nat.c: Likewise.
3707 * bcache.c: Likewise.
3708 * charset.c: Likewise.
3709 * common/buffer.h: Likewise.
3710 * common/vec.h: Likewise.
3711 * i386bsd-nat.c: Likewise.
3712 * nat/linux-btrace.h: Likewise.
3713 * ppcfbsd-nat.c: Likewise.
3714 * ppcnbsd-tdep.h: Likewise.
3715 * ppcobsd-nat.c: Likewise.
3716 * ppcobsd-tdep.h: Likewise.
3717 * python/py-gdb-readline.c: Likewise.
3718
8980bdf6
GB
37192014-08-07 Gary Benson <gbenson@redhat.com>
3720
3721 * common/common-defs.h: Include stdarg.h.
3722 * defs.h: Do not include stdarg.h.
3723 * ada-lang.c: Likewise.
3724 * common/common-utils.h: Likewise.
3725 * guile/scm-string.c: Likewise.
3726 * guile/scm-utils.c: Likewise.
3727 * m32c-tdep.c: Likewise.
3728
d7096f71
GB
37292014-08-07 Gary Benson <gbenson@redhat.com>
3730
3731 * common/common-defs.h: Include stdlib.h.
3732 * defs.h: Do not include stdlib.h.
3733 * addrmap.c: Likewise.
3734 * bcache.c: Likewise.
3735 * common/buffer.c: Likewise.
3736 * common/common-utils.c: Likewise.
3737 * cp-name-parser.y: Likewise.
3738 * go32-nat.c: Likewise.
3739 * mn10300-linux-tdep.c: Likewise.
3740 * nat/linux-osdata.c: Likewise.
3741 * tui/tui.c: Likewise.
3742 * windows-nat.c: Likewise.
3743
d02f550d
GB
37442014-08-07 Gary Benson <gbenson@redhat.com>
3745
3746 * common/common-defs.h: Include stdio.h.
3747 * defs.h: Do not include stdio.h.
3748 * ada-lang.c: Likewise.
3749 * common/buffer.c: Likewise.
3750 * common/common-utils.c: Likewise.
3751 * cp-name-parser.y: Likewise.
3752 * gnu-nat.c: Likewise.
3753 * go32-nat.c: Likewise.
3754 * i386gnu-nat.c: Likewise.
3755 * proc-api.c: Likewise.
3756 * proc-events.c: Likewise.
3757 * proc-flags.c: Likewise.
3758 * proc-why.c: Likewise.
3759 * python/python-internal.h: Likewise.
3760 * target-memory.c: Likewise.
3761 * tui/tui-io.c: Likewise.
3762 * tui/tui.c: Likewise.
3763
b6d7a4bf
SM
37642014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3765
3766 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3767 (scan_dyntag_auxv): Same.
3768
af19829b
YQ
37692014-08-06 Yao Qi <yao@codesourcery.com>
3770
3771 * amd64-linux-nat.c: Remove duplicated include
3772 "x86-linux-nat.h".
3773 * i386-linux-nat.c: Likewise.
3774
8e07a239
YQ
37752014-08-06 Yao Qi <yao@codesourcery.com>
3776
3777 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3778 operand" with "Special opcode" in comments.
3779
7bfe8241
GB
37802014-08-05 Gary Benson <gbenson@redhat.com>
3781
3782 * interps.c (initialize_interps): Remove prototype.
3783 (interpreter_initialized): Remove static global.
3784 (interp_add): Do not call initialize_interps.
3785 (initialize_interps): Remove function.
3786
d6c95504
GB
37872014-08-05 Gary Benson <gbenson@redhat.com>
3788
3789 * utils.c (vwarning): Remove spurious va_end.
3790
241fd515
AM
37912014-08-05 Alan Modra <amodra@gmail.com>
3792
3793 * charset.c (convert_between_encodings): Cast result of obstack_base.
3794 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3795 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3796 (read_unwind_info): Use size_t for some locals.
3797 * jit.c (finalize_symtab): Likewise.
3798 * utils.c (hashtab_obstack_allocate): Likewise.
3799 * symmisc.c (print_objfile_statistics): Update format strings.
3800
dc304a94
JK
38012014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3802
3803 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3804 (Changes in GDB 7.8): ... here.
3805
3cecbbbe
TT
38062014-08-04 Tom Tromey <tromey@redhat.com>
3807
3808 * target.c (set_targetdebug): New function.
3809 (initialize_targets): Pass set_targetdebug when creating "set
3810 debug target".
3811
6908c509
JB
38122014-08-01 Joel Brobecker <brobecker@adacore.com>
3813
3814 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3815 if detecting a variable-sized field that is not the last field.
3816 Fix struct type length computation.
3817
53e8f97d
JB
38182014-08-01 Joel Brobecker <brobecker@adacore.com>
3819
3820 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3821 Add debug trace.
3822
e068c55d
JB
38232014-08-01 Joel Brobecker <brobecker@adacore.com>
3824
3825 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3826 Remove "+ 8" offset in computation of CHAIN_VMA.
3827
4d4ca2a1
DE
38282014-07-31 Doug Evans <dje@google.com>
3829
3830 * inflow.c (child_terminal_inferior): Add comment.
3831 (child_terminal_ours_for_output): Add comment.
3832 (child_terminal_ours): Add comment.
3833 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3834 (linux_nat_terminal_ours): Add comment.
3835
462f517e
GB
38362014-07-31 Gary Benson <gbenson@redhat.com>
3837
3838 * common/btrace-common.h: Do not include defs.h or server.h.
3839 * nat/mips-linux-watch.h: Likewise.
3840 * gdb-dlfcn.h: Do not include defs.h.
3841 * tracefile.h: Likewise.
3842
74228e77
RM
38432014-07-30 Roland McGrath <mcgrathr@google.com>
3844
3845 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3846
014f9477
TT
38472014-07-30 Tom Tromey <tromey@redhat.com>
3848
3849 * bsd-kvm.c (bsd_kvm_open): Constify.
3850 * corelow.c (core_open): Constify.
3851 * ctf.c (ctf_open): Constify.
3852 * dbug-rom.c (dbug_open): Constify.
3853 * exec.c (exec_open): Constify.
3854 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3855 * microblaze-rom.c (picobug_open): Constify.
3856 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3857 Constify.
3858 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3859 * record-btrace.c (record_btrace_open): Constify.
3860 * record-full.c (record_full_core_open_1, record_full_open_1)
3861 (record_full_open): Constify.
3862 * remote-m32r-sdi.c (m32r_open): Constify.
3863 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3864 (rockhopper_open, lsi_open): Constify.
3865 * remote-sim.c (gdbsim_open): Constify.
3866 * remote.c (remote_open, extended_remote_open, remote_open_1):
3867 Constify.
3868 * target.h (struct target_ops) <to_open>: Make "arg" const.
3869 * tracefile-tfile.c (tfile_open): Constify.
3870
e799154c
TT
38712014-07-30 Tom Tromey <tromey@redhat.com>
3872
3873 * breakpoint.c (map_breakpoint_numbers): Update.
3874 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3875 (get_number_const): New function.
3876 (get_number): Rewrite using get_number_const.
3877 (init_number_or_range): Make "string" const.
3878 (number_is_in_list): Make "list" const.
3879 * cli/cli-utils.h (get_number_const): Declare.
3880 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3881 (init_number_or_range, number_is_in_list): Update.
3882 * printcmd.c (map_display_numbers): Update.
3883 * value.c (value_from_history_ref): Constify.
3884 * value.h (value_from_history_ref): Update.
3885
5f08566b
TT
38862014-07-30 Tom Tromey <tromey@redhat.com>
3887
3888 * corefile.c (hook_type, call_extra_exec_file_hooks)
3889 (specify_exec_file_hook): Constify.
3890 * exec.c (exec_file_attach): Make "filename" const.
3891 * gdbcore.h (deprecated_exec_file_display_hook)
3892 (specify_exec_file_hook, exec_file_attach): Constify.
3893 * main.c (captured_main): Use catch_command_errors_const.
3894
8981c758
TT
38952014-07-30 Tom Tromey <tromey@redhat.com>
3896
3897 * target.c (open_target): New function.
3898 (add_target_with_completer, add_deprecated_target_alias): Use
3899 set_cmd_sfunc, set_cmd_context.
3900 (debug_to_open): Remove.
3901 (setup_target_debug): Update.
3902
a1c7835a
YQ
39032014-07-30 Yao Qi <yao@codesourcery.com>
3904
3905 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3906 comments.
3907 * parse.c (exp_iterate): Update comments.
3908
976411d6
GB
39092014-07-30 Gary Benson <gbenson@redhat.com>
3910
3911 * common/common-defs.h: New file.
3912 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3913 * defs.h: Include common-defs.h.
3914 Do not include config.h or build-gnulib/config.h.
3915
5d4848a4
GB
39162014-07-30 Gary Benson <gbenson@redhat.com>
3917
3918 * common/common-utils.h: Do not include config.h.
3919 * nat/linux-btrace.h: Likewise.
3920
d41f6d8e
GB
39212014-07-30 Gary Benson <gbenson@redhat.com>
3922
3923 * btrace.c: Include defs.h.
3924 * common/ptid.c: Include defs.h or server.h as appropriate.
3925 * nat/mips-linux-watch.c: Likewise.
3926
84202f9c
TT
39272014-07-29 Tom Tromey <tromey@redhat.com>
3928
3929 * target.c (target_is_pushed): Simplify.
3930
2530441c
JB
39312014-07-29 Joel Brobecker <brobecker@adacore.com>
3932
3933 GDB 7.8 released.
3934
7e09a223
YQ
39352014-07-29 Yao Qi <yao@codesourcery.com>
3936
3937 PR gdb/17206
3938 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3939
7ebdbe92
DE
39402014-07-28 Doug Evans <xdje42@gmail.com>
3941
3942 PR guile/17203
3943 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3944 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3945 parameters.
3946
f347ffc9
WN
39472014-07-28 Will Newton <will.newton@linaro.org>
3948
3949 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3950 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3951 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3952 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3953 (THUMB2_EABI_SYSCALL): Likewise.
3954 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3955 struct tramp_frame.
3956 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3957 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3958
37c5f1f7
DE
39592014-07-27 Doug Evans <xdje42@gmail.com>
3960
3961 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3962
0c3abbc7
DE
39632014-07-27 Doug Evans <xdje42@gmail.com>
3964
3965 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3966
e76c5d17
DE
39672014-07-26 Ludovic Courtès <ludo@gnu.org>
3968 Doug Evans <xdje42@gmail.com>
3969
3970 PR guile/17146
3971 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3972 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3973 * configure.ac: Try to use guild to compile an scm file, if it fails
3974 then disable guile support.
3975 * configure: Regenerate.
3976 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3977 GUILE_FILE_LIST.
3978 (GUILE_COMPILED_FILES): New variable.
3979 (GUILE_FILES) Update.
3980 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3981 (stamp-guile): Compile scm files.
3982 * guile/guile.c (boot_guile_support): New function.
3983 (standard_throw_args_p): New function.
3984 (print_standard_throw_error, print_throw_error): New functions.
3985 (handle_boot_error): New function.
3986 (initialize_scheme_side): Rewrite to call boot_guile_support.
3987 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3988 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3989
186fcde0
DE
39902014-07-26 Ludovic Courtès <ludo@gnu.org>
3991 Doug Evans <xdje42@gmail.com>
3992
3993 PR guile/17146
3994 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3995 * guile/lib/gdb/support.scm: New file.
3996 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3997 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3998 All uses updated.
3999 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4000 All uses updated.
4001 (%assert-type): Ditto, and renamed to assert-type.
4002 (%exception-print-style): Delete.
4003
4df42755
DE
40042014-07-26 Doug Evans <xdje42@gmail.com>
4005
4006 PR build/17105
4007 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4008 * configure: Regenerate.
4009 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4010 PYTHON_FILES.
4011 (PYTHON_FILES): New variable.
4012 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4013 (GUILE_FILES): New variable.
4014 (stamp-python, install-python, uninstall-python): Handle empty
4015 file list.
4016 (stamp-guile, install-guile, uninstall-guile): Ditto.
4017
ee7333ae
DE
40182014-07-26 Doug Evans <xdje42@gmail.com>
4019
4020 PR guile/17177
4021 * guile/lib/gdb.scm (pretty-printers): Export.
4022 (set-pretty-printers!): Export.
4023 * guile/lib/gdb/printing.scm (gdb module): Update.
4024 (prepend-pretty-printer!, append-pretty-printer!): Update.
4025 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4026 (pretty_printer_list_var): Delete.
4027 (pretty_printer_list): New static global.
4028 (gdbscm_pretty_printers): New function.
4029 (gdbscm_set_pretty_printers_x): New function.
4030 (ppscm_find_pretty_printer_from_gdb): Update.
4031 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4032 (gdbscm_initialize_pretty_printers): Update.
4033
74edf516
DE
40342014-07-26 Doug Evans <xdje42@gmail.com>
4035
4036 PR 17185
4037 * configure.ac: Add check for header gc/gc.h.
4038 Add check for function setenv.
4039 * configure: Regenerate.
4040 * config.in: Regenerate.
4041 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4042
d54398a7
MR
40432014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4044
4045 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4046 variation in gdbarch matching.
4047
ab16fce8
TT
40482014-07-25 Tom Tromey <tromey@redhat.com>
4049
4050 * exec.c (using_exec_ops): Remove.
4051 (exec_close_1): Update. Remove extraneous block, reindent.
4052 (add_target_sections): Use target_is_pushed.
4053
88056fbb
PA
40542014-07-25 Pedro Alves <palves@redhat.com>
4055
4056 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4057 * monitor.c (monitor_create_inferior): Likewise.
4058 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4059 * remote-sim.c (gdbsim_create_inferior): Likewise.
4060 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4061 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4062 * windows-nat.c (do_initial_windows_stuff): Likewise.
4063
70509625
PA
40642014-07-25 Pedro Alves <palves@redhat.com>
4065
4066 * NEWS: Mention signal passing and "signal" command changes.
4067 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4068 comment.
4069 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4070 call.
4071 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4072 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4073 (jump_command): Adjust clear_proceed_status call.
4074 (signal_command): Warn if other thread that are resumed have
4075 signals that will be delivered. Adjust clear_proceed_status call.
4076 (until_next_command, finish_command)
4077 (proceed_after_attach_callback, attach_command_post_wait)
4078 (attach_command): Adjust clear_proceed_status call.
4079 * infrun.c (proceed_after_vfork_done): Likewise.
4080 (proceed_after_attach_callback): Adjust comment.
4081 (clear_proceed_status_thread): Clear stop_signal if not in pass
4082 state.
4083 (clear_proceed_status_callback): Delete.
4084 (clear_proceed_status): New 'step' parameter. Only clear the
4085 proceed status of threads the command being prepared is about to
4086 resume.
4087 (proceed): If passed in an explicit signal, override stop_signal
4088 with it. Don't pass the last stop signal to the thread we're
4089 resuming.
4090 (init_wait_for_inferior): Adjust clear_proceed_status call.
4091 (switch_back_to_stepped_thread): Clear the signal if it should not
4092 be passed.
4093 * infrun.h (clear_proceed_status): New 'step' parameter.
4094 (user_visible_resume_ptid): Add comment.
4095 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4096 signal is in pass state.
4097 * remote.c (append_pending_thread_resumptions): Likewise.
4098 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4099
d8be2939
TT
41002014-07-25 Tom Tromey <tromey@redhat.com>
4101
4102 * target.h (target_stopped_data_address)
4103 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4104 parentheses.
4105
7d0d9d2b
PL
41062014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4107
4108 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4109 comments.
4110 (avr_pointer_to_address): Likewise.
4111
e9e7f724
TT
41122014-07-24 Tom Tromey <tromey@redhat.com>
4113
4114 * monitor.c (compile_pattern): Update.
4115 * target.h (struct target_ops) <to_shortname, to_longname,
4116 to_doc>: Now const.
4117
1947513d
TT
41182014-07-24 Tom Tromey <tromey@redhat.com>
4119
4120 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4121 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4122 (add_info_alias, add_com): Make "doc" const.
4123 (print_doc_line): Make "str" const.
4124 (delete_cmd): Update.
4125 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4126 (print_doc_line): Update.
4127 * cli/cli-script.c (document_command): Update.
4128 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4129 (add_com, add_info, add_info_alias): Update.
4130 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4131 * python/py-cmd.c (cmdpy_destroyer): Update.
4132
64e61d29
TT
41332014-07-24 Tom Tromey <tromey@redhat.com>
4134
4135 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4136 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4137 (help_cmd_list): Constify.
4138 (lookup_cmd): Update.
4139 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4140 const.
4141 (help_cmd_list, apropos_cmd): Update.
4142 * cli/cli-script.c (show_user): Update.
4143 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4144 * cli/cli-setshow.h (cmd_show_list): Update.
4145 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4146 (cmd_show_list): Update.
4147 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4148 * python/py-cmd.c (cmdpy_destroyer): Update.
4149
429e55ea
TT
41502014-07-24 Tom Tromey <tromey@redhat.com>
4151
4152 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4153 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4154 const.
4155 * command.h (deprecate_cmd): Update.
4156 * maint.c (maintenance_do_deprecate): Add casts.
4157
64669f3b
TT
41582014-07-24 Tom Tromey <tromey@redhat.com>
4159
4160 * cli/cli-decode.c (help_cmd): Make parameter "const".
4161 * cli/cli-decode.h (help_cmd): Update.
4162
d3d3328b
TT
41632014-07-24 Tom Tromey <tromey@redhat.com>
4164
4165 * stack.c (up_silently_base, down_silently_base): Make argument
4166 const.
4167
414842dc
TT
41682014-07-24 Tom Tromey <tromey@redhat.com>
4169
4170 * solib.c (solib_add): Make "pattern" const.
4171 * solib.h (solib_add): Update.
4172
baa336ce
TT
41732014-07-24 Tom Tromey <tromey@redhat.com>
4174
4175 * remote.c (remote_serial_open, print_packet, putpkt)
4176 (putpkt_binary): Constify.
4177 * remote.h (putpkt): Update.
4178
5a19e2d0
TT
41792014-07-24 Tom Tromey <tromey@redhat.com>
4180
4181 * monitor.c (monitor_open): Make "args" const.
4182 * monitor.h (monitor_open): Update.
4183
fc4baa5e
TT
41842014-07-24 Tom Tromey <tromey@redhat.com>
4185
4186 * maint.c (match_bfd_flags): Make "string" const.
4187 (print_bfd_section_info): Remove casts.
4188 (print_objfile_section_info): Make "string" const.
4189
0d5f0dbe
TT
41902014-07-24 Tom Tromey <tromey@redhat.com>
4191
4192 * inf-child.c (inf_child_open_target): Make "arg" const.
4193 * inf-child.h (inf_child_open_target): Update.
4194
41c77899
TT
41952014-07-24 Tom Tromey <tromey@redhat.com>
4196
4197 * environ.c (unset_in_environ): Make "var" const.
4198 * environ.h (unset_in_environ): Update.
4199
93db0d79
TT
42002014-07-24 Tom Tromey <tromey@redhat.com>
4201
4202 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4203 Make "cmd" const.
4204 (scan_filename_with_cleanup): Likewise.
4205 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4206 Make arguments const.
4207 (restore_command): Update.
4208
36d6eb95
PA
42092014-07-24 Pedro Alves <palves@redhat.com>
4210
4211 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4212
8009206a
TT
42132014-07-24 Tom Tromey <tromey@redhat.com>
4214 Gary Benson <gbenson@redhat.com>
4215
4216 * nat/linux-ptrace.c (additional_flags): New global.
4217 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4218 additional_flags; don't check GDBSERVER.
4219 (linux_ptrace_set_additional_flags): New function.
4220 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4221 Declare.
4222 * linux-nat.c (_initialize_linux_nat): Call
4223 linux_ptrace_set_additional_flags.
4224
a7068b60
TT
42252014-07-24 Tom Tromey <tromey@redhat.com>
4226
4227 * make-target-delegates (munge_type, write_debugmethod): New
4228 functions.
4229 (debug_names): New global.
4230 ($TARGET_DEBUG_PRINTER): New global.
4231 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4232 name.
4233 Write debug methods. Generate init_debug_target.
4234 * target-debug.h: New file.
4235 * target-delegates.c: Rebuild.
4236 * target.c: Include target-debug.h.
4237 (debug_target): Hoist definition.
4238 (target_kill, target_get_section_table, target_memory_map)
4239 (target_flash_erase, target_flash_done, target_detach)
4240 (target_disconnect, target_wait, target_resume)
4241 (target_pass_signals, target_program_signals, target_follow_fork)
4242 (target_mourn_inferior, target_search_memory)
4243 (target_thread_address_space, target_close)
4244 (target_find_new_threads, target_core_of_thread)
4245 (target_verify_memory, target_insert_mask_watchpoint)
4246 (target_remove_mask_watchpoint): Remove targetdebug code.
4247 (debug_to_post_attach, debug_to_prepare_to_store)
4248 (debug_to_files_info, debug_to_insert_breakpoint)
4249 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4250 (debug_to_region_ok_for_hw_watchpoint)
4251 (debug_to_can_accel_watchpoint_condition)
4252 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4253 (debug_to_watchpoint_addr_within_range)
4254 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4255 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4256 (debug_to_terminal_init, debug_to_terminal_inferior)
4257 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4258 (debug_to_terminal_save_ours, debug_to_terminal_info)
4259 (debug_to_load, debug_to_post_startup_inferior)
4260 (debug_to_insert_fork_catchpoint)
4261 (debug_to_remove_fork_catchpoint)
4262 (debug_to_insert_vfork_catchpoint)
4263 (debug_to_remove_vfork_catchpoint)
4264 (debug_to_insert_exec_catchpoint)
4265 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4266 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4267 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4268 (setup_target_debug): Call init_debug_target.
4269 * target.h (TARGET_DEBUG_PRINTER): New macro.
4270 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4271 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4272
2c51604d
GB
42732014-07-24 Gary Benson <gbenson@redhat.com>
4274
4275 * exceptions.h (throw_vfatal): Renamed to...
4276 (throw_vquit): New declaration.
4277 (throw_quit): Likewise.
4278 * exceptions.c (throw_vfatal): Renamed to...
4279 (throw_vquit): New function.
4280 (throw_quit): Likewise.
4281 (throw_error): Call throw_verror rather than throw_it.
4282 * utils.h (vfatal): Removed.
4283 (fatal): Likewise.
4284 * utils.c (vfatal): Removed.
4285 (fatal): Likewise.
4286 (internal_verror): Replaced call to fatal with call to throw_quit.
4287 (quit): Replaced calls to fatal with calls to throw_quit.
4288
34211963
ME
42892014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4290
4291 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4292 target_read_code.
4293
a52b4d3e
ME
42942014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4295
4296 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4297 less than zero in conditional expression.
4298
a8bdc56b
TT
42992014-07-23 Tom Tromey <tromey@redhat.com>
4300
4301 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4302 ($INTRO_PART): Don't match whitespace.
4303 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4304 argument matching.
4305 ($METHOD): Add $METHOD_TRAILER.
4306 (trim): Rewrite.
4307 (scan_target_h): New sub.
4308 Change main loop not to collect state.
4309 * target-delegates.c: Rebuild.
4310
91b52240
GB
43112014-07-23 Gary Benson <gbenson@redhat.com>
4312
4313 * cp-support.c (gdb_demangle): Fix build on systems without
4314 sigaltstack.
4315
45326f6f
JK
43162014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4317
4318 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4319 for reference entry value target data value.
4320
e214cf6c
JK
43212014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4322
4323 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4324 value_available_contents_eq.
4325
bddbbedd
PA
43262014-07-22 Pedro Alves <palves@redhat.com>
4327
4328 * value.c (allocate_optimized_out_value): Don't mark value as
4329 non-lazy.
4330
45c71484
JW
43312014-07-22 Jiong Wang <jiong.wang@arm.com>
4332
4333 * MAINTAINERS (Write After Approval): Update my email address.
4334
9597b22a
DE
43352014-07-20 Doug Evans <dje@google.com>
4336
4337 PR server/17147
4338 * remote.c (putpkt_binary): Add text to error message.
4339
91101fe5
YQ
43402014-07-20 Yao Qi <yao@codesourcery.com>
4341
4342 * eval.c: Remove "Chill" from comments.
4343 * gdbtypes.h: Likewise.
4344 * symtab.h: Likewise.
4345
c9402c95
YQ
43462014-07-20 Yao Qi <yao@codesourcery.com>
4347
4348 * std-operator.def: Update comments to TERNOP_SLICE.
4349
ae8fddda
YQ
43502014-07-20 Yao Qi <yao@codesourcery.com>
4351
4352 * std-operator.def: Remove BINOP_RANGE.
4353 * breakpoint.c (watchpoint_exp_is_const): Update.
4354 * expprint.c (dump_subexp_body_standard): Likewise.
4355 * eval.c (init_array_element): Remove dead code.
4356 (evaluate_subexp_standard): Likewise.
4357
9c816640
YQ
43582014-07-20 Yao Qi <yao@codesourcery.com>
4359
4360 * std-operator.def: Remove BINOP_IN.
4361 * breakpoint.c (watchpoint_exp_is_const): Update.
4362 * eval.c (evaluate_subexp_standard): Likewise.
4363 * expprint.c (dump_subexp_body_standard): Likewise.
4364
164224e9
ME
43652014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4366
4367 * microblaze-tdep.c (microblaze_register_names): Add
4368 the rshr and rslr register names.
4369 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4370 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4371 Use of tdesc_numbered_register. Use of
4372 microblaze_register_g_packet_guesses. Use of
4373 tdesc_use_registers. Use of set_gdbarch_register_type.
4374 (microblaze_register_g_packet_guesses): New.
4375 * microblaze-tdep.h (microblaze_reg_num): Add
4376 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4377 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4378 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4379 * features/microblaze-core.xml: New file.
4380 * features/microblaze-stack-protect.xml: New file.
4381 * features/microblaze-with-stack-protect.c: New file.
4382 * features/microblaze-with-stack-protect.xml: New file.
4383 * features/microblaze.xml: New file.
4384 * features/microblaze.c: New file.
4385 * features/Makefile (microblaze-with-stack-protect): Add
4386 microblaze-with-stack-protect microblaze and microblaze-expedite.
4387 * regformats/microblaze-with-stack-protect.dat: New file.
4388 * regformats/microblaze.dat: New file.
4389 * doc/gdb.texinfo (MicroBlaze Features): Added.
4390
e8b2341c
TT
43912014-07-18 Tom Tromey <tromey@redhat.com>
4392
4393 * exec.c (exec_ops): Now static.
4394 * exec.h (exec_ops): Don't declare.
4395
44e89118
TT
43962014-07-18 Tom Tromey <tromey@redhat.com>
4397
4398 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4399 to find_target_beneath.
4400 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4401 find_target_beneath.
4402 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4403
b0ed115f
TT
44042014-07-18 Tom Tromey <tromey@redhat.com>
4405
4406 PR gdb/17130:
4407 * utils.c (quit): Use target_supports_terminal_ours.
4408 * target.h (target_supports_terminal_ours): Declare.
4409 * target.c (target_supports_delete_record): Don't check
4410 to_delete_record against NULL.
4411 (target_supports_terminal_ours): New function.
4412
e75fdfca
TT
44132014-07-18 Tom Tromey <tromey@redhat.com>
4414
4415 PR gdb/17130:
4416 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4417 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4418 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4419 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4420 * windows-nat.c (windows_xfer_partial): Always delegate.
4421 * record-btrace.c (record_btrace_xfer_partial): Simplify
4422 delegation.
4423 (record_btrace_fetch_registers, record_btrace_store_registers)
4424 (record_btrace_prepare_to_store, record_btrace_resume)
4425 (record_btrace_wait, record_btrace_find_new_threads)
4426 (record_btrace_thread_alive): Likewise.
4427 * procfs.c (procfs_xfer_partial): Always delegate.
4428 * corelow.c (core_xfer_partial): Always delegate.
4429 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4430
83814951
TT
44312014-07-18 Tom Tromey <tromey@redhat.com>
4432
4433 * exec.c (exec_make_note_section): Move earlier.
4434
b8b8facf
DE
44352014-07-17 Doug Evans <dje@google.com>
4436
74b49205 4437 PR gdb/17170
b8b8facf
DE
4438 * maint.c (count_symtabs_and_blocks): Handle NULL
4439 current_program_space.
4440 (report_command_stats): Check global enabled flag in addition to
4441 recorded enabled flag.
4442 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4443
69ff6be5
PA
44442014-07-16 Pedro Alves <palves@redhat.com>
4445
4446 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4447
252db1b5
TT
44482014-07-16 Tom Tromey <tromey@redhat.com>
4449
4450 * target.h (struct target_ops) <to_delete_record>: Reformat
4451 comment.
4452
a432721e
TT
44532014-07-16 Tom Tromey <tromey@redhat.com>
4454
4455 * target-delegates.c: Rebuild.
4456
487d9753
PL
44572014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4458
4459 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4460 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4461 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4462 (avr_pointer_to_address): Likewise.
4463 (avr_address_class_type_flags): New function.
4464 (avr_address_class_type_flags_to_name): Likewise.
4465 (avr_address_class_name_to_type_flags): Likewise.
4466 (avr_gdbarch_init): Set address_class_type_flags,
4467 address_class_type_flags_to_name and
4468 address_class_name_to_type_flags.
4469
57745c90
PA
44702014-07-15 Pedro Alves <palves@redhat.com>
4471
4472 * linux-nat.c (kill_callback): Save errno and work with saved
4473 copy.
4474
2d40be18
SM
44752014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4476
4477 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4478
572f6555
EBM
44792014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4480
4481 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4482 breakpoint support correctly.
4483
cc1c52ad
PA
44842014-07-14 Pedro Alves <palves@redhat.com>
4485
4486 * utils.c (prompt_for_continue): Call target_terminal_ours.
4487
1e973570
PA
44882014-07-14 Pedro Alves <palves@redhat.com>
4489
4490 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4491 catch_errors. Don't re-enable stdin or notify observers where,
4492 and rethrow error.
4493 (fetch_inferior_event_wrapper): Delete.
4494
93d6eb10
PA
44952014-07-14 Pedro Alves <palves@redhat.com>
4496
4497 PR gdb/17072
4498 * top.c: Include "inf-loop.h".
4499 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4500 field.
4501 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4502 was async before.
4503 (gdb_readline_wrapper): Store whether the target is async, and
4504 make it sync.
4505
0017922d
PA
45062014-07-14 Pedro Alves <palves@redhat.com>
4507
4508 PR gdb/17072
4509 * top.c (gdb_readline_wrapper_line): Tweak comment.
4510 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4511 the input handler callback.
4512
94696ad3
PA
45132014-07-14 Pedro Alves <palves@redhat.com>
4514
4515 PR gdb/17072
4516 * main.c: Include event-top.h.
4517 (handle_command_errors): New function.
4518 (catch_command_errors, catch_command_errors_const): Use it.
4519
9d1e69a2
PA
45202014-07-14 Pedro Alves <palves@redhat.com>
4521
4522 * exceptions.c (catch_command_errors, catch_command_errors_const):
4523 Moved to main.c.
4524 * exceptions.h (catch_command_errors_ftype)
4525 (catch_command_errors_const_ftype): Moved to main.c.
4526 (catch_command_errors, catch_command_errors_const): Delete
4527 declarations.
4528 * main.c (catch_command_errors_ftype)
4529 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4530 (catch_command_errors, catch_command_errors_const)): Moved here
4531 from exceptions.c and make static.
4532
feefc97b
PA
45332014-07-14 Pedro Alves <palves@redhat.com>
4534
4535 * exceptions.c (print_any_exception): Delete.
4536 (catch_exceptions_with_msg): Use exception_print instead of
4537 print_any_exception.
4538 (catch_errors): Use exception_fprintf instead of
4539 print_any_exception.
4540 (catch_command_errors, catch_command_errors_const): Use
4541 exception_print instead of print_any_exception.
4542
c933f875
PA
45432014-07-14 Pedro Alves <palves@redhat.com>
4544
4545 * infcall.c (run_inferior_call): Set 'sync_execution' while
4546 running the inferior call.
4547
feb6f816
PA
45482014-07-14 Pedro Alves <palves@redhat.com>
4549
4550 * value.c (value_contents_equal): Delete function.
4551 * value.h (value_contents_equal): Delete declaration.
4552
d98b7a16
TT
45532014-07-14 Tom Tromey <tromey@redhat.com>
4554
4555 PR exp/17106:
4556 * gdbtypes.c (is_dynamic_type_internal): New function, from
4557 is_dynamic_type.
4558 (is_dynamic_type): Rewrite.
4559 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4560 (resolve_dynamic_struct): Likewise.
4561 (resolve_dynamic_type_internal): New function, from
4562 resolve_dynamic_type.
4563 (resolve_dynamic_type): Rewrite.
4564
548740d6
TT
45652014-07-14 Tom Tromey <tromey@redhat.com>
4566
4567 * target.c (target_require_runnable): Also check record_stratum.
4568 Update comment.
4569
808f7ab1
YQ
45702014-07-11 Yao Qi <yao@codesourcery.com>
4571
4572 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4573 thumb_instruction_restores_sp return true.
4574
540314bd
YQ
45752014-07-11 Yao Qi <yao@codesourcery.com>
4576
4577 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4578 (thumb_in_function_epilogue_p): Call
4579 thumb_instruction_restores_sp.
4580
1db01f22
YQ
45812014-07-11 Yao Qi <yao@codesourcery.com>
4582
4583 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4584 'add sp, #imm'.
4585 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4586
3116063b
GB
45872014-07-11 Gary Benson <gbenson@redhat.com>
4588
4589 * amd64-linux-nat.c (gdbcore.h): Remove include.
4590 (regset.h): Likewise.
4591 (nat/linux-btrace.h): Likewise.
4592 (btrace.h): Likewise.
4593 (gdb_assert.h): Likewise.
4594 (string.h): Likewise.
4595 (sys/uio.h): Likewise.
4596 (sys/debugreg.h): Likewise.
4597 (sys/syscall.h): Likewise.
4598 (sys/procfs.h): Likewise.
4599 (sys/user.h): Likewise.
4600 (asm/ptrace.h): Likewise.
4601 (i386-nat.h): Likewise.
4602 * i386-linux-nat.c (i386-nat.h): Likewise.
4603 (regset.h): Likewise.
4604 (target.h): Likewise.
4605 (linux-nat.h): Likewise.
4606 (nat/linux-btrace.h): Likewise.
4607 (btrace.h): Likewise.
4608 (gdb_assert.h): Likewise.
4609 (string.h): Likewise.
4610 (sys/uio.h): Likewise.
4611 (sys/user.h): Likewise.
4612 (sys/procfs.h): Likewise.
4613 (sys/reg.h): Likewise.
4614 (sys/debugreg.h): Likewise.
4615 (ORIG_EAX): Remove definition.
4616
040baaf6
GB
46172014-07-11 Gary Benson <gbenson@redhat.com>
4618
4619 * i386-linux-nat.h: New file.
4620 * x86-linux-nat.h: Likewise.
4621 * x86-linux-nat.c: Likewise.
4622 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4623 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4624 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4625 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4626 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4627 (PTRACE_SETREGSET): Likewise.
4628 (arch_lwp_info): Now in x86-linux-nat.c.
4629 (have_ptrace_getregset): Now in x86-linux-nat.h.
4630 (x86_linux_dr_get): Now in x86-linux-nat.c.
4631 (x86_linux_dr_set): Likewise.
4632 (x86_linux_dr_get_addr): Likewise.
4633 (x86_linux_dr_get_control): Likewise.
4634 (x86_linux_dr_get_status): Likewise.
4635 (update_debug_registers_callback): Likewise.
4636 (x86_linux_dr_set_control): Likewise.
4637 (x86_linux_dr_set_addr): Likewise.
4638 (x86_linux_prepare_to_resume): Likewise.
4639 (x86_linux_new_thread): Likewise.
4640 (x86_linux_new_fork): Likewise.
4641 (x86_linux_get_thread_area): Likewise.
4642 (super_post_startup_inferior): Likewise.
4643 (x86_linux_child_post_startup_inferior): Likewise.
4644 (AMD64_LINUX_USER64_CS): Likewise.
4645 (AMD64_LINUX_X32_DS): Likewise.
4646 (x86_linux_read_description): Likewise.
4647 (x86_linux_enable_btrace): Likewise.
4648 (x86_linux_disable_btrace): Likewise.
4649 (x86_linux_teardown_btrace): Likewise.
4650 (x86_linux_read_btrace): Likewise.
4651 (x86_linux_create_target): Likewise.
4652 (x86_linux_add_target): Likewise.
4653 * i386-linux-nat.c (x86-linux-nat.h): New include.
4654 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4655 (PTRACE_SETREGSET): Likewise.
4656 (arch_lwp_info): Now in x86-linux-nat.c.
4657 (have_ptrace_getregset): Now in x86-linux-nat.h.
4658 (x86_linux_dr_get): Now in x86-linux-nat.c.
4659 (x86_linux_dr_set): Likewise.
4660 (x86_linux_dr_get_addr): Likewise.
4661 (x86_linux_dr_get_control): Likewise.
4662 (x86_linux_dr_get_status): Likewise.
4663 (update_debug_registers_callback): Likewise.
4664 (x86_linux_dr_set_control): Likewise.
4665 (x86_linux_dr_set_addr): Likewise.
4666 (x86_linux_prepare_to_resume): Likewise.
4667 (x86_linux_new_thread): Likewise.
4668 (x86_linux_new_fork): Likewise.
4669 (x86_linux_get_thread_area): Likewise.
4670 (super_post_startup_inferior): Likewise.
4671 (x86_linux_child_post_startup_inferior): Likewise.
4672 (AMD64_LINUX_USER64_CS): Likewise.
4673 (AMD64_LINUX_X32_DS): Likewise.
4674 (x86_linux_read_description): Likewise.
4675 (x86_linux_enable_btrace): Likewise.
4676 (x86_linux_disable_btrace): Likewise.
4677 (x86_linux_teardown_btrace): Likewise.
4678 (x86_linux_read_btrace): Likewise.
4679 (x86_linux_create_target): Likewise.
4680 (x86_linux_add_target): Likewise.
4681
1aa7e42c
GB
46822014-07-11 Gary Benson <gbenson@redhat.com>
4683
4684 * amd64-linux-nat.c: Comment and whitespace changes.
4685 * i386-linux-nat.c: Comment and whitespace changes.
4686
c1e246a0
GB
46872014-07-11 Gary Benson <gbenson@redhat.com>
4688
4689 * amd64-linux-nat.c (x86_linux_create_target): New function.
4690 (x86_linux_add_target): Likewise.
4691 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4692 * i386-linux-nat.c (x86_linux_create_target): New function.
4693 (x86_linux_add_target): Likewise.
4694 (_initialize_i386_linux_nat): Delegate to the above new functions.
4695
8c420b8d
GB
46962014-07-11 Gary Benson <gbenson@redhat.com>
4697
4698 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4699 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4700 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4701 (ps_get_thread_area): Delegate to the above.
4702
cb1da100
GB
47032014-07-11 Gary Benson <gbenson@redhat.com>
4704
4705 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4706 x86_linux_read_description. All uses updated. amd64-specific
4707 code conditionalized. Conditionalized i386-specific code added.
4708 Redundant cast removed.
4709 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4710 x86_linux_read_description. All uses updated. i386-specific
4711 code conditionalized. Conditionalized amd64-specific code added.
4712 One sizeof replaced with the actual type it is describing.
4713
2acf3cd0
GB
47142014-07-11 Gary Benson <gbenson@redhat.com>
4715
4716 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4717 x86_linux_dr_get. All uses updated.
4718 (amd64_linux_dr_set): Renamed to
4719 x86_linux_dr_set. All uses updated.
4720 (amd64_linux_dr_get_addr): Renamed to
4721 x86_linux_dr_get_addr. All uses updated.
4722 (amd64_linux_dr_get_control): Renamed to
4723 x86_linux_dr_get_control. All uses updated.
4724 (amd64_linux_dr_get_status): Renamed to
4725 x86_linux_dr_get_status. All uses updated.
4726 (amd64_linux_dr_set_control): Renamed to
4727 x86_linux_dr_set_control. All uses updated.
4728 (amd64_linux_dr_set_addr): Renamed to
4729 x86_linux_dr_set_addr. All uses updated.
4730 (amd64_linux_prepare_to_resume): Renamed to
4731 x86_linux_prepare_to_resume. All uses updated.
4732 (amd64_linux_new_thread): Renamed to
4733 x86_linux_new_thread. All uses updated.
4734 (amd64_linux_new_fork): Renamed to
4735 x86_linux_new_fork. All uses updated.
4736 (amd64_linux_child_post_startup_inferior): Renamed to
4737 x86_linux_child_post_startup_inferior. All uses updated.
4738 (amd64_linux_enable_btrace): Renamed to
4739 x86_linux_enable_btrace. All uses updated.
4740 (amd64_linux_disable_btrace): Renamed to
4741 x86_linux_disable_btrace. All uses updated.
4742 (amd64_linux_teardown_btrace): Renamed to
4743 x86_linux_teardown_btrace. All uses updated.
4744 (amd64_linux_read_btrace): Renamed to
4745 x86_linux_read_btrace. All uses updated.
4746 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4747 x86_linux_dr_get. All uses updated.
4748 (i386_linux_dr_set): Renamed to
4749 x86_linux_dr_set. All uses updated.
4750 (i386_linux_dr_get_addr): Renamed to
4751 x86_linux_dr_get_addr. All uses updated.
4752 (i386_linux_dr_get_control): Renamed to
4753 x86_linux_dr_get_control. All uses updated.
4754 (i386_linux_dr_get_status): Renamed to
4755 x86_linux_dr_get_status. All uses updated.
4756 (i386_linux_dr_set_control): Renamed to
4757 x86_linux_dr_set_control. All uses updated.
4758 (i386_linux_dr_set_addr): Renamed to
4759 x86_linux_dr_set_addr. All uses updated.
4760 (i386_linux_prepare_to_resume): Renamed to
4761 x86_linux_prepare_to_resume. All uses updated.
4762 (i386_linux_new_thread): Renamed to
4763 x86_linux_new_thread. All uses updated.
4764 (i386_linux_new_fork): Renamed to
4765 x86_linux_new_fork. All uses updated.
4766 (i386_linux_child_post_startup_inferior): Renamed to
4767 x86_linux_child_post_startup_inferior. All uses updated.
4768 (i386_linux_enable_btrace): Renamed to
4769 x86_linux_enable_btrace. All uses updated.
4770 (i386_linux_disable_btrace): Renamed to
4771 x86_linux_disable_btrace. All uses updated.
4772 (i386_linux_teardown_btrace): Renamed to
4773 x86_linux_teardown_btrace. All uses updated.
4774 (i386_linux_read_btrace): Renamed to
4775 x86_linux_read_btrace. All uses updated.
4776
b9c1d481
AS
47772014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4778
4779 * remote.c (extended_remote_post_attach): New function.
4780 (init_extended_remote_ops): Install it as to_post_attach method.
4781
7180e04a
PA
47822014-07-09 Pedro Alves <palves@redhat.com>
4783
4784 * infcmd.c (attach_command_post_wait): Don't call
4785 target_terminal_inferior here.
4786 (attach_command): Call it here instead.
4787
9a9a7608
AB
47882014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4789
4790 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4791 field.
4792 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4793 from varobj.c, with additional checks.
4794 (c_varobj_ops): Fill in is_path_expr_parent field.
4795 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4796 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4797 field.
4798 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4799 ops method.
4800 (varobj_default_is_path_expr_parent): New function.
4801 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4802 (varobj_default_is_path_expr_parent): Declare new function.
4803
1f267ae3
MM
48042014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4805
4806 * infcmd.c (finish_backward): Turn internal error into normal error.
4807
b2ee242b
PA
48082014-07-07 Pedro Alves <palves@redhat.com>
4809
8a869bca 4810 PR gdb/17096
b2ee242b
PA
4811 * remote.c (async_handle_remote_sigint)
4812 (async_handle_remote_sigint_twice): Call
4813 gdb_call_async_signal_handler instead of
4814 mark_async_signal_handler.
4815
38e229b2
TT
48162014-07-07 Tom Tromey <tromey@redhat.com>
4817
4818 * target-delegates.c: Rebuild.
4819 * target.c (target_info_record): Remove.
4820 * record.c (info_record_command): Unconditionally call
4821 to_info_record.
4822 * target.h (struct target_ops) <to_info_record>: Use
4823 TARGET_DEFAULT_IGNORE.
4824 (target_info_record): Remove.
4825
f0f9ff95
TT
48262014-07-07 Tom Tromey <tromey@redhat.com>
4827
4828 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4829 TARGET_DEFAULT_NORETURN.
4830 * target.c (generic_tls_error): New function.
4831 (target_translate_tls_address): Don't search target stack.
4832 * target-delegates.c: Rebuild.
4833 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4834 stack.
4835 * linux-thread-db.c (thread_db_get_thread_local_address):
4836 Unconditionally call beneath target.
4837
4a5be5ee
MK
48382014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4839
4840 * cli/cli-logging.c (pop_output_files): Assign targerr to
4841 gdb_stdtargerr.
4842
92c3b204
AB
48432014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4844
4845 * MAINTAINERS (Write After Approval): Update my email address.
4846
9b11e3a7
GB
48472014-07-02 Gary Benson <gbenson@redhat.com>
4848
4849 * proc-service.c (ps_xfer_memory): Update comment.
4850 (ps_pstop): Remove unused function.
4851 (ps_pcontinue): Likewise.
4852 (ps_lstop): Likewise.
4853 (ps_lcontinue): Likewise.
4854 (ps_lgetxregsize): Likewise.
4855 (ps_lgetxregs): Likewise.
4856 (ps_lsetxregs): Likewise.
4857 (ps_plog): Likewise.
4858 (ps_ptread): Likewise.
4859 (ps_ptwrite): Likewise.
4860
cf363f18
MW
48612014-07-01 Mark Wielaard <mjw@redhat.com>
4862
4863 * dwarf2read.c (add_array_cv_type): New function.
4864 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4865 (read_tag_volatile_type): Likewise.
4866
82ae6c8d
TT
48672014-07-01 Tom Tromey <tromey@redhat.com>
4868
4869 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4870 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4871 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4872 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4873 * command.h (cmd_cfunc_ftype): Move earlier.
4874 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4875 (add_com, add_info): Use cmd_cfunc_ftype.
4876
96142726
TT
48772014-06-30 Tom Tromey <tromey@redhat.com>
4878
4879 * symtab.c (operator_chars): Make parameters and return type
4880 const.
4881 (file_matches): Make "files" const.
4882 (struct search_symbols_data) <files>: Now const.
4883 (search_symbols): Make "regexp" and "files" parameters const.
4884 Update.
4885 (symtab_symbol_info): Remove cast.
4886 (rbreak_command): Update.
4887 * symtab.h (search_symbols): Update.
4888
b67a2c6f
YQ
48892014-06-27 Yao Qi <yao@codesourcery.com>
4890
4891 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4892 Change parameter type to 'struct thread_info *'. Caller
4893 updated.
4894 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4895 Update declaration.
4896 * dummy-frame.c (struct dummy_frame_id): New.
4897 (dummy_frame_id_eq): New function.
4898 (struct dummy_frame) <id>: Change its type to 'struct
4899 dummy_frame_id'.
4900 (dummy_frame_push): Add parameter ptid and save it in
4901 dummy_frame_id.
4902 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4903 inferior_ptid.
4904 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4905 to inferior_ptid.
4906 (lookup_dummy_frame): Change parameter type to 'struct
4907 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4908 instead of frame_id_eq.
4909 (dummy_frame_pop): Add parameter ptid. Callers updated.
4910 Update comments. Compose dummy_frame_id and pass it to
4911 lookup_dummy_frame.
4912 (dummy_frame_discard): Add parameter ptid.
4913 (dummy_frame_sniffer): Compose dummy_frame_id and call
4914 dummy_frame_id_eq instead of frame_id_eq.
4915 (fprint_dummy_frames): Print ptid.
4916 * dummy-frame.h: Remove comments.
4917 (dummy_frame_push): Add ptid in declaration.
4918 (dummy_frame_pop, dummy_frame_discard): Likewise.
4919
5b10184c
TT
49202014-06-26 Tom Tromey <tromey@redhat.com>
4921
4922 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4923 * command.h (error_no_arg): Update.
4924
06900326
TT
49252014-06-26 Tom Tromey <tromey@redhat.com>
4926
4927 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4928 (do_show_command): Make "arg" const.
4929 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4930
c2bcbb1d
TT
49312014-06-26 Tom Tromey <tromey@redhat.com>
4932
4933 * record-full.c (record_full_get_bookmark): Make "args" const.
4934 (record_full_goto_bookmark): Make "raw_bookmark" const.
4935 * record.c (record_goto): New function.
4936 (cmd_record_goto): Use it. Now static.
4937 * record.h (record_goto): Declare.
4938 (cmd_record_goto): Remove declaration.
4939 * target-delegates.c: Rebuild.
4940 * target.h (struct target_ops) <to_get_bookmark,
4941 to_goto_bookmark>: Make parameter const.
4942
9cbe5fff
TT
49432014-06-26 Tom Tromey <tromey@redhat.com>
4944
4945 * defs.h (generic_load): Update.
4946 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4947 * monitor.c (monitor_load): Make "args" const.
4948 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4949 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4950 const.
4951 (mips_load): Make "file" const.
4952 * remote-sim.c (gdbsim_load): Make "args" const.
4953 * remote.c (remote_load): Make "name" const.
4954 * symfile.c (generic_load): Make "args" const.
4955 * target-delegates.c: Rebuild.
4956 * target.c (target_load): Make "arg" const.
4957 (debug_to_load): Make "args" const.
4958 * target.h (struct target_ops) <to_load>: Make parameter const.
4959 (target_load): Update.
4960
34a68019
TT
49612014-06-26 Tom Tromey <tromey@redhat.com>
4962
4963 PR symtab/16902:
4964 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4965 (dwarf2_physname, read_partial_die)
4966 (guess_partial_die_structure_name, fixup_partial_die)
4967 (guess_full_die_structure_name, anonymous_struct_prefix)
4968 (dwarf2_name): Use per-BFD obstack.
4969
efc889c1
YQ
49702014-06-26 Yao Qi <yao@codesourcery.com>
4971
4972 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4973 dummyframe and this_id into inner block below.
4974
4395285e
YQ
49752014-06-26 Yao Qi <yao@codesourcery.com>
4976
4977 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4978 with "signal_pass[0]" in the initialization of signal_pass.
4979
aef92902
MM
49802014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4981
4982 * record-btrace.c (record_btrace_generating_corefile)
4983 (record_btrace_prepare_to_generate_core)
4984 (record_btrace_done_generating_core): New.
4985 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4986 (record_btrace_store_registers, record_btrace_prepare_to_store):
4987 Forward request when generating a core file.
4988 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4989 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4990 to_done_generating_core.
4991
5fff78c4
MM
49922014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4993
4994 * target.h (target_ops) <to_prepare_to_generate_core>
4995 <to_done_generating_core>: New.
4996 (target_prepare_to_generate_core, target_done_generating_core): New.
4997 * target.c (target_prepare_to_generate_core)
4998 (target_done_generating_core): New.
4999 * target-delegates.c: Regenerate.
5000 * gcore.c: (write_gcore_file): Rename to ...
5001 (write_gcore_file_1): ...this.
5002 (write_gcore_file): Call target_prepare_to_generate_core
5003 and target_done_generating_core.
5004
1d1f1ccb
MM
50052014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5006
5007 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5008 * gcore.c (write_gcore_file): Free memory returned from
5009 make_corefile_notes.
5010 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5011 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5012
3343ef86
YQ
50132014-06-24 Yao Qi <yao@codesourcery.com>
5014
5015 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5016 (arm_linux_init_abi): Set skip_trampoline_code with
5017 gdbarch_skip_trampoline_code instead of
5018 find_solib_trampoline_target.
5019
18d18ac8
YQ
50202014-06-24 Yao Qi <yao@codesourcery.com>
5021
5022 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5023 arm_skip_bx_reg returns non-zero.
5024
80d8d390
YQ
50252014-06-24 Yao Qi <yao@codesourcery.com>
5026
5027 * arm-tdep.c (arm_skip_bx_reg): New function.
5028 (arm_skip_stub): Call arm_skip_bx_reg.
5029
6a18a01c
DB
50302014-06-23 Don Breazeal <donb@codesourcery.com>
5031
5032 * MAINTAINERS: Add myself as write-after-approval maintainer.
5033
8e9db26e
PA
50342014-06-23 Pedro Alves <palves@redhat.com>
5035
5036 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5037 DR_CONTROL before setting DR0..DR3.
5038 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5039 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5040 bits of DR_CONTROL related to the debug register slot being
5041 disabled. If all slots are vacant, clear local slowdown as well,
5042 and assert DR_CONTROL is 0.
5043
70afc5b7
SC
50442014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5045
5046 * python/lib/gdb/command/xmethods.py
5047 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5048 current progspace only if the string "progspace" matches LOCUS_RE.
5049
840ed64d
JK
50502014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5051
5052 Fix --with-system-readline with readline-6.3 patch 5.
5053 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5054 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5055 types.
5056
26f2dc30
TT
50572014-06-20 Tom Tromey <tromey@redhat.com>
5058
5059 * dwarf2read.c (dw2_get_real_path): Use correct type in
5060 OBSTACK_CALLOC.
5061 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5062
125f8a3d
GB
50632014-06-20 Gary Benson <gbenson@redhat.com>
5064
5065 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5066 * common/glibc_thread_db.h: Likewise.
5067 * common/i386-cpuid.h: Likewise.
5068 * common/i386-gcc-cpuid.h: Likewise.
5069 * common/linux-btrace.h: Likewise.
5070 * common/linux-osdata.h: Likewise.
5071 * common/linux-procfs.h: Likewise.
5072 * common/linux-ptrace.h: Likewise.
5073 * common/mips-linux-watch.h: Likewise.
5074 * common/linux-btrace.c: Moved to nat.
5075 * common/linux-osdata.c: Likewise.
5076 * common/linux-procfs.c: Likewise.
5077 * common/linux-ptrace.c: Likewise.
5078 * common/mips-linux-watch.c: Likewise.
5079 * nat/gdb_thread_db.h: Moved from common.
5080 * nat/glibc_thread_db.h: Likewise.
5081 * nat/i386-cpuid.h: Likewise.
5082 * nat/i386-gcc-cpuid.h: Likewise.
5083 * nat/linux-btrace.c: Likewise.
5084 * nat/linux-btrace.h: Likewise.
5085 * nat/linux-osdata.c: Likewise.
5086 * nat/linux-osdata.h: Likewise.
5087 * nat/linux-procfs.c: Likewise.
5088 * nat/linux-procfs.h: Likewise.
5089 * nat/linux-ptrace.c: Likewise.
5090 * nat/linux-ptrace.h: Likewise.
5091 * nat/mips-linux-watch.c: Likewise.
5092 * nat/mips-linux-watch.h: Likewise.
5093 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5094 (object file files): Reordered.
5095 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5096 of glibc_thread_db.h.
5097
42995dbd
GB
50982014-06-20 Gary Benson <gbenson@redhat.com>
5099
5100 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5101 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5102 (i386_dr_low): Likewise.
5103 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5104 (i386_dr_low_set_addr): Likewise.
5105 (i386_dr_low_get_addr): Likewise.
5106 (i386_dr_low_can_set_control): Likewise.
5107 (i386_dr_low_set_control): Likewise.
5108 (i386_dr_low_get_control): Likewise.
5109 (i386_dr_low_get_status): Likewise.
5110 (i386_get_debug_register_length): Likewise.
5111 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5112 (i386_dr_low): Likewise.
5113 * nat/i386-dregs.c (i386-low.h): Remove include.
5114 (i386-nat.h): Likewise.
5115 (nat/i386-dregs.h): New include.
5116 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5117 (i386_dr_low_set_addr): Likewise.
5118 (i386_dr_low_get_addr): Likewise.
5119 (i386_dr_low_can_set_control): Likewise.
5120 (i386_dr_low_set_control): Likewise.
5121 (i386_dr_low_get_control): Likewise.
5122 (i386_dr_low_get_status): Likewise.
5123 (i386_get_debug_register_length): Likewise.
5124 (debug_hw_points): Likewise.
5125
3ed9baed
IB
51262014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5127
5128 * Makefile.in (SFILES): Add d-exp.y.
5129 (YYFILES): Add d-exp.c.
5130 (YYOBJ): Add d-exp.o.
5131 (local-maintainer-clean): Delete d-exp.c.
5132 * d-exp.y: New file.
5133 * d-lang.h (d_parse): New declaration.
5134 (d_error): New declaration.
5135 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5136 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5137 PREC_ORDER operators.
5138 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5139
78c164b0
YQ
51402014-06-19 Yao Qi <yao@codesourcery.com>
5141
5142 * gdbthread.h (any_running): Remove the declaration.
5143 * thread.c (any_running): Remove.
5144
f6e29b6e
YQ
51452014-06-19 Yao Qi <yao@codesourcery.com>
5146
5147 * gdbthread.h (struct thread_info) <state>: Change its type to
5148 'enum thread_state'. Update comments.
5149
034f788c
PA
51502014-06-19 Pedro Alves <palves@redhat.com>
5151
5152 * gdbthread.h (ALL_THREADS): Delete.
5153 (ALL_NON_EXITED_THREADS): New macro.
5154 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5155 instead of ALL_THREADS.
5156 * infrun.c (find_thread_needs_step_over)
5157 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5158 instead of ALL_THREADS.
5159 * record-btrace.c (record_btrace_open)
5160 (record_btrace_stop_recording, record_btrace_close)
5161 (record_btrace_is_replaying, record_btrace_resume)
5162 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5163 * remote.c (append_pending_thread_resumptions): Likewise.
5164 * thread.c (thread_apply_all_command): Likewise.
5165
46e33252
GB
51662014-06-19 Gary Benson <gbenson@redhat.com>
5167
5168 * i386-nat.c (i386_stopped_by_watchpoint):
5169 Use i386_dr_stopped_by_watchpoint.
5170 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5171 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5172
3a8ee006
GB
51732014-06-19 Gary Benson <gbenson@redhat.com>
5174
5175 * nat/i386-dregs.c: New file.
5176 * Makefile.in (i386-dregs.o): New rule.
5177 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5178 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5179 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5180 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5181 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5182 * config/i386/go32.mh (NATDEPFILES): Likewise.
5183 * config/i386/linux.mh (NATDEPFILES): Likewise.
5184 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5185 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5186 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5187 * i386-nat.h (debug_hw_points): New declaration.
5188 * i386-nat.c (breakpoint.h): Remove include.
5189 (command.h): Likewise.
5190 (target.h): Likewise.
5191 (gdb_assert.h): Likewise.
5192 (debug_hw_points): Made nonstatic.
5193 (debug_printf): Now in i386-dregs.c.
5194 (TARGET_HAS_DR_LEN_8): Likewise.
5195 (DR_CONTROL_SHIFT): Likewise.
5196 (DR_CONTROL_SIZE): Likewise.
5197 (DR_RW_EXECUTE): Likewise.
5198 (DR_RW_WRITE): Likewise.
5199 (DR_RW_READ): Likewise.
5200 (DR_RW_IORW): Likewise.
5201 (DR_LEN_1): Likewise.
5202 (DR_LEN_2): Likewise.
5203 (DR_LEN_4): Likewise.
5204 (DR_LEN_8): Likewise.
5205 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5206 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5207 (DR_ENABLE_SIZE): Likewise.
5208 (DR_LOCAL_SLOWDOWN): Likewise.
5209 (DR_GLOBAL_SLOWDOWN): Likewise.
5210 (DR_CONTROL_RESERVED): Likewise.
5211 (I386_DR_CONTROL_MASK): Likewise.
5212 (I386_DR_VACANT): Likewise.
5213 (I386_DR_LOCAL_ENABLE): Likewise.
5214 (I386_DR_GLOBAL_ENABLE): Likewise.
5215 (I386_DR_DISABLE): Likewise.
5216 (I386_DR_SET_RW_LEN): Likewise.
5217 (I386_DR_GET_RW_LEN): Likewise.
5218 (I386_DR_WATCH_HIT): Likewise.
5219 (i386_wp_op_t): Likewise.
5220 (i386_show_dr): Likewise.
5221 (i386_length_and_rw_bits): Likewise.
5222 (i386_insert_aligned_watchpoint): Likewise.
5223 (i386_remove_aligned_watchpoint): Likewise.
5224 (i386_handle_nonaligned_watchpoint): Likewise.
5225 (i386_update_inferior_debug_regs): Likewise.
5226 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5227 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5228 (i386_region_ok_for_watchpoint):
5229 Use i386_dr_region_ok_for_watchpoint.
5230 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5231
322a8e06
GB
52322014-06-19 Gary Benson <gbenson@redhat.com>
5233
5234 * i386-nat.c (i386_insert_hw_breakpoint): Use
5235 i386_insert_watchpoint.
5236 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5237
8f26655c
GB
52382014-06-19 Gary Benson <gbenson@redhat.com>
5239
5240 * i386-nat.c (i386_dr_show): Renamed to
5241 i386_show_dr and made static. All uses updated.
5242 (i386_dr_length_and_rw_bits): Renamed to
5243 i386_length_and_rw_bits and made static.
5244 All uses updated.
5245 (i386_dr_insert_aligned_watchpoint): Renamed to
5246 i386_insert_aligned_watchpoint and made static.
5247 All uses updated.
5248 (i386_dr_remove_aligned_watchpoint): Renamed to
5249 i386_remove_aligned_watchpoint and made static.
5250 All uses updated.
5251 (i386_dr_update_inferior_debug_regs): Renamed to
5252 i386_update_inferior_debug_regs and made static.
5253 All uses updated.
5254 * nat/i386-dregs.h (i386_dr_show): Removed.
5255 (i386_dr_length_and_rw_bits): Likewise.
5256 (i386_dr_insert_aligned_watchpoint): Likewise.
5257 (i386_dr_remove_aligned_watchpoint): Likewise.
5258 (i386_dr_update_inferior_debug_regs): Likewise.
5259
992c7d70
GB
52602014-06-19 Gary Benson <gbenson@redhat.com>
5261
5262 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5263 * configure: Regenerate.
5264 * config.in: Likewise.
5265 * main.c (signal.h): New include.
5266 (setup_alternate_signal_stack): New function.
5267 (captured_main): Call the above.
5268 * cp-support.c (signal.h): New include.
5269 (catch_demangler_crashes): New flag.
5270 (SIGJMP_BUF): New define.
5271 (SIGSETJMP): Likewise.
5272 (SIGLONGJMP): Likewise.
5273 (gdb_demangle_jmp_buf): New static global.
5274 (gdb_demangle_attempt_core_dump): Likewise.
5275 (gdb_demangle_signal_handler): New function.
5276 (gdb_demangle): If catch_demangler_crashes is set, install the
5277 above signal handler before calling bfd_demangle, and restore
5278 the original signal handler afterwards. Display the offending
5279 symbol and call demangler_warning the first time a segmentation
5280 fault is caught.
5281 (_initialize_cp_support): New maint set/show command.
5282
eae7090b
GB
52832014-06-19 Gary Benson <gbenson@redhat.com>
5284
5285 * utils.h (resource_limit_kind): New enum.
5286 (can_dump_core): New declaration.
5287 (warn_cant_dump_core): Likewise.
5288 (dump_core): Likewise.
5289 * utils.c (dump_core): Made nonstatic. Added new
5290 parameter "limit_kind".
5291 (can_dump_core): Made nonstatic. Moved printing code to...
5292 (warn_cant_dump_core): New function.
5293 (can_dump_core_warn): Likewise.
5294 (internal_vproblem): Replace calls to can_dump_core with
5295 calls to can_dump_core_warn. Supply new argument to each.
5296
57fcfb1b
GB
52972014-06-19 Gary Benson <gbenson@redhat.com>
5298
5299 * utils.h (demangler_vwarning): New declaration.
5300 (demangler_warning): Likewise.
5301 * utils.c (struct internal_problem)
5302 <user_settable_should_quit>: New field.
5303 <user_settable_should_dump_core>: Likewise
5304 (internal_error_problem): Add values for above new fields.
5305 (internal_warning_problem): Likewise.
5306 (demangler_warning_problem): New static global.
5307 (demangler_vwarning): New function.
5308 (demangler_warning): Likewise.
5309 (add_internal_problem_command): Selectively add commands.
5310 (_initialize_utils): New internal problem command.
5311 * maint.c (maintenance_demangler_warning): New function.
5312 (_initialize_maint_cmds): New command.
5313
17a40b44
TT
53142014-06-18 Tom Tromey <tromey@redhat.com>
5315
5316 * f-valprint.c (info_common_command_for_block): Update.
5317 * symtab.h (struct general_symbol_info) <common_block>: Now
5318 const.
5319
346d1dfe
TT
53202014-06-18 Tom Tromey <tromey@redhat.com>
5321
5322 * symtab.h (struct symtab) <blockvector>: Now const.
5323 * ada-lang.c (ada_add_global_exceptions): Update.
5324 * buildsym.c (augment_type_symtab): Update.
5325 * dwarf2read.c (dw2_lookup_symbol): Update.
5326 * jit.c (finalize_symtab): Update.
5327 * jv-lang.c (add_class_symtab_symbol): Update.
5328 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5329 Update.
5330 * objfiles.c (objfile_relocate1): Update.
5331 * psymtab.c (lookup_symbol_aux_psymtabs)
5332 (maintenance_check_psymtabs): Update.
5333 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5334 Update.
5335 * spu-tdep.c (spu_catch_start): Update.
5336 * symmisc.c (dump_symtab_1): Update.
5337 * symtab.c (lookup_global_symbol_from_objfile)
5338 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5339 (basic_lookup_transparent_type_quick)
5340 (basic_lookup_transparent_type, find_pc_sect_symtab)
5341 (find_pc_sect_line, search_symbols): Update.
5342 * block.c (find_block_in_blockvector): Make "bl" const.
5343 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5344 const.
5345 (blockvector_contains_pc): Make "bv" const.
5346 (block_for_pc_sect): Update.
5347 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5348 (blockvector_contains_pc): Update.
5349 * breakpoint.c (resolve_sal_pc): Update.
5350 * inline-frame.c (block_starting_point_at): Update.
5351
1834676b
TT
53522014-06-18 Tom Tromey <tromey@redhat.com>
5353
5354 * completer.c (complete_line): Make "line_buffer" const.
5355 * completer.h (complete_line): Update.
5356
ac1a991b
TT
53572014-06-18 Tom Tromey <tromey@redhat.com>
5358
5359 * symtab.c (add_macro_name): Remove unneeded cast.
5360
5bc98e52
TT
53612014-06-18 Tom Tromey <tromey@redhat.com>
5362
5363 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5364 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5365
8236def8
TT
53662014-06-18 Tom Tromey <tromey@redhat.com>
5367
5368 * probe.c (info_probes_for_ops): Make "arg" const.
5369 * probe.h (info_probes_for_ops): Update.
5370
3977b71f
TT
53712014-06-18 Tom Tromey <tromey@redhat.com>
5372
5373 * varobj.c (varobj_create): Update.
5374 * valops.c (value_of_this): Update.
5375 * tracepoint.c (add_local_symbols, scope_info): Update.
5376 * symtab.h (struct general_symbol_info) <block>: Now const.
5377 * symtab.c (skip_prologue_sal)
5378 (default_make_symbol_completion_list_break_on)
5379 (skip_prologue_using_sal): Update.
5380 * stack.h (iterate_over_block_locals)
5381 (iterate_over_block_local_vars): Update.
5382 * stack.c (print_frame_args): Update.
5383 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5384 parameter const.
5385 (get_selected_block): Make return type const.
5386 * python/py-frame.c (frapy_block): Update.
5387 * python/py-block.c (gdbpy_block_for_pc): Update.
5388 * p-exp.y (%union) <bval>: Now const.
5389 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5390 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5391 * m2-exp.y (%union) <bval>: Now const.
5392 * linespec.c (get_current_search_block): Make return type const.
5393 (create_sals_line_offset, find_label_symbols): Update.
5394 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5395 Update.
5396 (block_starting_point_at): Make "block" const.
5397 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5398 (check_exception_resume): Update.
5399 * guile/scm-frame.c (gdbscm_frame_block): Update.
5400 * guile/scm-block.c (gdbscm_lookup_block): Update.
5401 * frame.h (get_frame_block): Update.
5402 (get_selected_block): Make return type const.
5403 * frame.c (frame_id_inner): Update.
5404 * f-valprint.c (info_common_command_for_block)
5405 (info_common_command): Update.
5406 * dwarf2loc.c (dwarf2_find_location_expression)
5407 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5408 (locexpr_describe_location_piece): Update.
5409 * c-exp.y (%union) <bval>: Now const.
5410 * breakpoint.c (resolve_sal_pc): Update.
5411 * blockframe.c (get_frame_block):Make return type const.
5412 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5413 (block_innermost_frame): Update.
5414 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5415 (block_for_pc, block_for_pc_sect): Update.
5416 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5417 'pblock' const.
5418 (block_for_pc_sect, block_for_pc): Make return type const.
5419 * ax-gdb.c (gen_expr): Update.
5420 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5421 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5422 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5423 (ada_read_var_value): Update.
5424 * ada-exp.y (struct name_info) <block>: Now const.
5425 (%union): Likewise.
5426 (block_lookup): Constify.
5427
b9228891
GB
54282014-06-18 Gary Benson <gbenson@redhat.com>
5429
5430 * nat/i386-dregs.h: New file.
5431 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5432 * i386-nat.h (i386-dregs.h): New include.
5433 (DR_FIRSTADDR): Now in i386-dregs.h.
5434 (DR_LASTADDR): Likewise.
5435 (DR_NADDR): Likewise.
5436 (DR_STATUS): Likewise.
5437 (DR_CONTROL): Likewise.
5438 (i386_debug_reg_state): Likewise.
5439 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5440
a1aa2221
LM
54412014-06-18 Don Breazeal <donb@codesourcery.com>
5442
5443 * breakpoint.c (set_longjmp_breakpoint): Call
5444 momentary_breakpoint_from_master with additional argument.
5445 (set_longjmp_breakpoint_for_call_dummy): Call
5446 momentary_breakpoint_from_master with additional argument.
5447 (set_std_terminate_breakpoint): Call
5448 momentary_breakpoint_from_master with additional argument.
5449 (momentary_breakpoint_from_master): Add argument to function
5450 definition and use it to initialize structure member flag.
74228e77 5451 (clone_momentary_breakpoint): Call
a1aa2221
LM
5452 momentary_breakpoint_from_master with additional argument.
5453 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5454 member flags set in momentary_breakpoint_from_master.
5455
4be83cc2
GB
54562014-06-18 Gary Benson <gbenson@redhat.com>
5457
5458 * i386-nat.c (i386_show_dr): Renamed to
5459 i386_dr_show and made nonstatic. All uses updated.
5460 (i386_length_and_rw_bits): Renamed to
5461 i386_dr_length_and_rw_bits and made nonstatic.
5462 All uses updated.
5463 (i386_insert_aligned_watchpoint): Renamed to
5464 i386_dr_insert_aligned_watchpoint and made nonstatic.
5465 All uses updated.
5466 (i386_remove_aligned_watchpoint): Renamed to
5467 i386_dr_remove_aligned_watchpoint and made nonstatic.
5468 All uses updated.
5469 (i386_update_inferior_debug_regs): Renamed to
5470 i386_dr_update_inferior_debug_regs and made nonstatic.
5471 All uses updated.
5472
131aa0d4
GB
54732014-06-18 Gary Benson <gbenson@redhat.com>
5474
5475 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5476 (i386_dr_low_can_set_control): Likewise.
5477 (i386_dr_low_set_addr): Likewise.
5478 (i386_dr_low_set_control): Likewise.
5479 (i386_dr_low_get_addr): Likewise.
5480 (i386_dr_low_get_status): Likewise.
5481 (i386_dr_low_get_control): Likewise.
5482 (i386_insert_aligned_watchpoint): Use new macros.
5483 (i386_update_inferior_debug_regs): Likewise.
5484 (i386_stopped_data_address): Likewise.
5485
d9305f7f
GB
54862014-06-18 Gary Benson <gbenson@redhat.com>
5487
5488 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5489 New parameter. All uses updated.
5490
ea008da4
GB
54912014-06-18 Gary Benson <gbenson@redhat.com>
5492
5493 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5494 All uses updated.
5495
1b6d4134
GB
54962014-06-18 Gary Benson <gbenson@redhat.com>
5497
5498 * i386-nat.c (debug_printf): New macro.
5499 (i386_get_debug_register_length): Likewise.
5500 (TARGET_HAS_DR_LEN_8): Use above macro.
5501 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5502 and printf_unfiltered. Use phex to format values.
5503
9b4550ef
GB
55042014-06-18 Gary Benson <gbenson@redhat.com>
5505
5506 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5507 Make const.
5508
6e62758f
GB
55092014-06-18 Gary Benson <gbenson@redhat.com>
5510
5511 * i386-nat.c: Comment changes.
5512
51c79e94
GB
55132014-06-18 Gary Benson <gbenson@redhat.com>
5514
5515 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5516
3e11889a
GB
55172014-06-18 Gary Benson <gbenson@redhat.com>
5518
5519 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5520 (i386_insert_aligned_watchpoint): Likewise.
5521 (i386_remove_aligned_watchpoint): Likewise.
5522 (i386_handle_nonaligned_watchpoint): Likewise.
5523
fc6e2f03
GB
55242014-06-18 Gary Benson <gbenson@redhat.com>
5525
5526 * i386-nat.c: Whitespace changes.
5527
2afe7d50
SB
55282014-06-17 Samuel Bronson <naesten@gmail.com>
5529
5530 * MAINTAINERS: Update Roland McGrath's email address.
5531 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 5532 Red Hat a while ago, and giving me a current address.
2afe7d50 5533
3bca49ee
TT
55342014-06-17 Tom Tromey <tromey@redhat.com>
5535
5536 * utils.h (savestring): Remove declaration.
5537
6e366df1
TT
55382014-06-17 Tom Tromey <tromey@redhat.com>
5539
5540 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5541
6be47f0c
KS
55422014-06-16 Keith Seitz <keiths@redhat.com>
5543
5544 PR mi/15863
5545 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5546 to update the varobj if inferior_ptid is null_ptid.
5547
7bc112c1
TT
55482014-06-16 Tom Tromey <tromey@redhat.com>
5549
5550 * target.h (struct target_ops) <to_info_proc>: Make parameter
5551 const.
5552 (target_info_proc): Update.
5553 * target.c (target_info_proc): Make "args" const.
5554 * procfs.c (procfs_info_proc): Update.
5555 * linux-tdep.c (linux_info_proc): Update.
5556 (linux_core_info_proc_mappings): Make "args" const.
5557 (linux_core_info_proc): Update.
5558 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5559 * gdbarch.c: Rebuild.
5560 * gdbarch.h: Rebuild.
5561 * corelow.c (core_info_proc): Update.
5562
fee354ee
TT
55632014-06-16 Tom Tromey <tromey@redhat.com>
5564
5565 * target.h (struct target_ops) <to_disconnect>: Make parameter
5566 const.
5567 (target_disconnect): Update.
5568 * target.c (target_disconnect): Make "args" const.
5569 * target-delegates.c: Rebuild.
5570 * remote.c (remote_disconnect): Update.
5571 * record.h (record_disconnect): Update.
5572 * record.c (record_disconnect): Update.
5573 * inf-child.c (inf_child_disconnect): Update.
5574
a30bf1f1
TT
55752014-06-16 Tom Tromey <tromey@redhat.com>
5576
5577 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5578 * target.c (debug_to_rcmd, default_rcmd): Update.
5579 * target-delegates.c: Rebuild.
5580 * remote.c (remote_rcmd): Update.
5581 * monitor.c (monitor_rcmd): Update.
5582
d03de421
PA
55832014-06-16 Pedro Alves <palves@redhat.com>
5584
5585 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5586 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5587 have OBJF_SHARED set.
5588 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5589 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5590 instead of OBJF_USERLOADED.
5591 * objfiles.h (OBJF_SHARED): Update comment.
5592 (userloaded_objfile_contains_address_p): Rename to ...
5593 (shared_objfile_contains_address_p): ... this, and update
5594 comments.
5595 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5596 new objfile.
5597 (remove_symbol_file_command): Skip objfiles that don't have
5598 OBJF_SHARED set.
5599
99f4262f
TT
56002014-06-16 Tom Tromey <tromey@redhat.com>
5601
5602 * minsyms.h (prim_record_minimal_symbol)
5603 (prim_record_minimal_symbol_and_info): Update comments.
5604
97d66cc6
EZ
56052014-06-14 Eli Zaretskii <eliz@gnu.org>
5606
5607 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5608 or --without-guile, according to how GDB was built.
5609
635c7e8a
TT
56102014-06-13 Tom Tromey <tromey@redhat.com>
5611
5612 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5613 to help_list.
5614 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5615 to help_list.
5616 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5617 help_list.
5618 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5619 help_list.Pass all_commands, not -1, to help_list.
5620 * cli/cli-dump.c (dump_command, append_command)
5621 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5622 (binary_dump_command, binary_append_command): Pass all_commands,
5623 not -1, to help_list.
5624 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5625 -1, to help_list.
5626 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5627 -1, to help_list.
5628 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5629 help_list.
5630 * top.c (set_history): Pass all_commands, not -1, to help_list.
5631 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5632 all_commands, not -1, to help_list.
5633 * symfile.c (overlay_command): Pass all_commands, not -1, to
5634 help_list.
5635 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5636 help_list.
5637 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5638 help_list.
5639 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5640 -1, to help_list.
5641 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5642 not -1, to help_list.
5643 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5644 not -1, to help_list.
5645 * maint.c (maintenance_command, maintenance_info_command)
5646 (maintenance_print_command, maintenance_set_cmd): Pass
5647 all_commands, not -1, to help_list.
5648 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5649 help_list.
5650 * language.c (set_check): Pass all_commands, not -1, to help_list.
5651 * infcmd.c (unset_command): Pass all_commands, not -1, to
5652 help_list.
5653 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5654 help_list.
5655 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5656 help_list.
5657 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5658 help_list.
5659 * breakpoint.c (save_command): Pass all_commands, not -1, to
5660 help_list.
5661 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5662 all_commands, not -1, to help_list.
5663
b94ade42
PL
56642014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5665
5666 * regcache.c (struct register_to_invalidate): New structure.
5667 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5668 functions.
5669 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5670
31f628ae
YQ
56712014-06-12 Yao Qi <yao@codesourcery.com>
5672
5673 * varobj.c (varobj_get_num_children): Call
5674 varobj_is_dynamic_p.
5675 (varobj_list_children): Likewise.
5676 (varobj_update): Likewise. Update comments.
5677
cde5ef40
YQ
56782014-06-12 Yao Qi <yao@codesourcery.com>
5679
5680 * varobj.c (varobj_pretty_printed_p): Rename to ...
5681 (varobj_is_dynamic_p): ... this. New function.
5682 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5683 (varobj_is_dynamic_p): Declare.
5684 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5685 (mi_print_value_p, varobj_update_one): Likewise.
5686
576ea091
YQ
56872014-06-12 Pedro Alves <pedro@codesourcery.com>
5688 Yao Qi <yao@codesourcery.com>
5689
5690 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5691 (varobj_get_iterator): Wrap up code for pretty-printer by
5692 "#if HAVE_PYTHON" and "#endif".
5693 (update_dynamic_varobj_children): Likewise.
5694
827f100c
YQ
56952014-06-12 Pedro Alves <pedro@codesourcery.com>
5696 Yao Qi <yao@codesourcery.com>
5697
5698 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5699 gdb_python_initialized is false. Move some code from varobj.c.
5700 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5701 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5702 (struct varobj_item): Moved to varobj-iter.h".
5703 (varobj_clear_saved_item): New function.
5704 (update_dynamic_varobj_children): Move python-related code to
5705 py-varobj.c.
5706 (free_variable): Call varobj_clear_saved_item and
5707 varobj_iter_delete.
5708
e5250216
YQ
57092014-06-12 Pedro Alves <pedro@codesourcery.com>
5710 Yao Qi <yao@codesourcery.com>
5711
5712 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5713 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5714 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5715 (py-varobj.o): New rule.
5716 * python/py-varobj.c: New file.
5717 * python/python-internal.h (py_varobj_get_iterator): Declare.
5718 * varobj-iter.h: New file.
5719 * varobj.c: Include "varobj-iter.h"
5720 (struct varobj) <child_iter>: Change its type from "PyObject *"
5721 to "struct varobj_iter *".
5722 <saved_item>: Likewise.
5723 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5724 [HAVE_PYTHON] (varobj_get_iterator): New function.
5725 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5726 python-specific code to python/py-varobj.c.
5727 (install_visualizer): Call varobj_iter_delete instead of
5728 Py_XDECREF.
5729 * varobj.h (varobj_ensure_python_env): Declare.
5730
5a2e0d6e
YQ
57312014-06-12 Yao Qi <yao@codesourcery.com>
5732
5733 * varobj.c (struct varobj_item): New structure.
5734 (create_child_with_value): Update declaration.
5735 (varobj_add_child): Replace arguments 'name' and 'value' with
5736 'item'. All callers updated.
5737 (install_dynamic_child): Likewise.
5738 (update_dynamic_varobj_children): Likewise.
5739 (varobj_add_child): Likewise.
5740 (create_child_with_value): Likewise.
5741
919b9a93
JB
57422014-06-11 Joel Brobecker <brobecker@adacore.com>
5743
5744 * NEWS: Create a new section for the next release branch.
5745 Rename the section of the current branch, now that it has
5746 been cut.
5747
71a55bdf
JB
57482014-06-11 Joel Brobecker <brobecker@adacore.com>
5749
5750 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5751 * version.in: Bump version to 7.8.50.DATE-cvs.
5752
364fe1f7
PA
57532014-06-11 Pedro Alves <palves@redhat.com>
5754
5755 PR remote/17028
5756 * ser-mingw.c (net_windows_socket_check_pending): New function.
5757 (net_windows_select_thread): Ignore spurious wakeups. Use
5758 net_windows_socket_check_pending.
5759 (net_windows_wait_handle): Check for pending events with
5760 ioctlsocket, through net_windows_socket_check_pending, instead of
5761 checking the socket's event.
5762
5a6c7709
SC
57632014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5764
5765 * python/python-internal.h (gdb_PyObject_GetAttrString)
5766 (gdb_PyObject_HasAttrString): New inline function definitions.
5767 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5768 char * of the second argument to PyObject_GetAttrString.
74228e77 5769
0e58ee40
JB
57702014-06-10 Joel Brobecker <brobecker@adacore.com>
5771
5772 * serial.c (serial_write): Fix index of character to be printed
5773 in call to serial_logchar when serial debug traces are enabled.
5774
d190df30
JB
57752014-06-10 Joel Brobecker <brobecker@adacore.com>
5776
5777 * gdbtypes (resolve_dynamic_range): Add function description.
5778
b4b01d36
PA
57792014-06-09 Pedro Alves <palves@redhat.com>
5780
5781 * linux-nat.c (linux_child_follow_fork): Initialize status with
5782 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5783 inner block. Only pass the signal to PTRACE_DETACH if in pass
5784 state.
5785
3657956b
GB
57862014-06-09 Gary Benson <gbenson@redhat.com>
5787
5788 * common/signals.c (gdb_signal_from_host): Reorder to separate
5789 the always-available ANSI-standard signals from the signals that
5790 require checking.
5791 (do_gdb_signal_to_host): Likewise.
5792 * proc-events.c (signal_table): Likewise.
5793
c077881a
HZ
57942014-06-08 Hui Zhu <hui@codesourcery.com>
5795
5796 * common/linux-ptrace.c (linux_disable_event_reporting): New
5797 function.
5798 * common/linux-ptrace.h (linux_disable_event_reporting): New
5799 declaration.
5800 * linux-nat.c (linux_child_follow_fork): Do a single step before
5801 detach.
5802
4186eb54
KS
58032014-06-07 Keith Seitz <keiths@redhat.com>
5804
5805 Revert:
5806 PR c++/16253
5807 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5808 from symbol_matches_domain in symtab.c. All local callers
5809 of symbol_matches_domain updated.
5810 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5811 search STRUCT_DOMAIN.
5812 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5813 independently. standard_lookup will do that automatically.
5814 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5815 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5816 (cp_lookup_symbol_in_namespace): Likewise.
5817 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5818 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5819 may return a STRUCT_DOMAIN match.
5820 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5821 * cp-support.c: Include language.h.
5822 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5823 VAR_DOMAIN.
5824 * psymtab.c (match_partial_symbol): Compare the requested
5825 domain with the symbol's domain directly.
5826 (lookup_partial_symbol): Likewise.
5827 * symtab.c (lookup_symbol_in_language): Explain when/why
5828 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5829 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5830 appropriate languages.
5831 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5832 and moved to ada-lang.c
5833 (lookup_block_symbol): Explain that this function only returns
5834 symbol matching the requested DOMAIN.
5835 Compare the requested domain with the symbol's domain directly.
5836 (iterate_over_symbols): Compare the requested domain with the
5837 symbol's domain directly.
5838 * symtab.h (symbol_matches_domain): Remove.
5839
25326a28 58402014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5841
5842 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5843 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5844 (gdbscm_guile_version_is_at_least): Declare.
5845 (gdbscm_scm_string_to_int): Declare.
5846 * guile/guile.c (gdbscm_guile_major_version): New global.
5847 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5848 (guile_datadir): New static global.
5849 (gdbscm_guile_data_directory): New function.
5850 (initialize_scheme_side): Update.
5851 (misc_guile_functions): Add guile-data-directory.
5852 (initialize_gdb_module): Fetch guile version number.
5853 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5854 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5855 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5856 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5857 comments.
5858 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5859 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5860 * guile/scm-value.c (gdbscm_value_to_string): Only call
5861 scm_port_conversion_strategy if Guile version >= 2.0.6.
5862
0a770bb2 58632014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5864
5865 * main.c (print_gdb_help): Add -q and --silent.
5866
73ba372c
GB
58672014-06-06 Gary Benson <gbenson@redhat.com>
5868
5869 * common/signals.c: Remove preprocessor conditionals for
5870 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5871 SIGSEGV and SIGTERM.
5872 * proc-events.c: Likewise.
5873
c33b2f12
MM
58742014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5875
5876 * symfile.c (symfile_free_objfile): Remove restriction to
5877 OBJF_USERLOADED.
5878 * symfile-mem.c (symbol_file_add_from_memory): Call
5879 add_target_sections_of_objfile.
5880
fb934770
LC
58812014-06-05 Ludovic Courtès <ludo@gnu.org>
5882
5883 * guile/scm-value.c (gdbscm_history_append_x): Use
5884 'vlscm_get_value_smob_arg_unsafe' instead of
5885 'vlscm_scm_to_value'.
5886
6ef284bd
SM
58872014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5888
5889 PR mi/15806
5890 * utils.c (printchar): Don't escape at all if quoter is NUL.
5891 Update function documentation to clarify effect of parameter
5892 QUOTER.
5893 * remote.c (escape_buffer): Pass '\\' as the quoter to
5894 fputstrn_unfiltered.
5895 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5896 generate the output.
5897 (mi_solib_unloaded): Same.
5898
270c9937
JB
58992014-06-05 Joel Brobecker <brobecker@adacore.com>
5900
5901 * development.sh: Delete.
5902 * Makefile.in (config.status): Adjust dependency on development.sh.
5903 * configure.ac: Adjust development.sh source call.
5904 * configure: Regenerate.
5905
16f691fb
DE
59062014-06-04 Doug Evans <xdje42@gmail.com>
5907
5908 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5909 is_scheme_bkpt, spec.
5910 (bpscm_make_breakpoint_smob): Initialize new members.
5911 (gdbscm_create_breakpoint_x): Split into two ...
5912 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5913 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5914 (scheme_function breakpoint_functions): Update.
5915 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5916 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5917 register-breakpoint!.
5918
ef7cab6b
JB
59192014-06-04 Joel Brobecker <brobecker@adacorer.com>
5920
5921 PR server/17023
5922 * mem-break.c (z_type_supported): Return zero if
5923 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5924
012370f6
TT
59252014-06-04 Tom Tromey <tromey@redhat.com>
5926
5927 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5928 value_from_contents_and_address_unresolved.
5929 (ada_template_to_fixed_record_type_1): Likewise.
5930 (ada_which_variant_applies): Likewise.
5931 * value.h (value_from_contents_and_address_unresolved): Declare.
5932 * value.c (value_from_contents_and_address_unresolved): New
5933 function.
5934 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5935 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5936 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5937
92e2a17f
TT
59382014-06-04 Tom Tromey <tromey@redhat.com>
5939
5940 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5941
c0939df1
TT
59422014-06-04 Tom Tromey <tromey@redhat.com>
5943
5944 * procfs.c (procfs_attach): Make "args" const.
5945 * windows-nat.c (windows_attach): Make "args" const.
5946 * nto-procfs.c (procfs_attach): Make "args" const.
5947 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5948 * go32-nat.c (go32_attach): Make "args" const.
5949 * gnu-nat.c (gnu_attach): Make "args" const.
5950 * darwin-nat.c (darwin_attach): Make "args" const.
5951 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5952 * linux-nat.c (linux_nat_attach): Make "args" const.
5953 * remote.c (extended_remote_attach_1, extended_remote_attach):
5954 Make "args" const.
5955 * target.h (struct target_ops) <to_attach>: Make "args" const.
5956 (find_default_attach): Likewise.
5957 * utils.c (parse_pid_to_attach): Make "args" const.
5958 * utils.h (parse_pid_to_attach): Update.
5959
8eaff7cd
TT
59602014-06-04 Tom Tromey <tromey@redhat.com>
5961
5962 * target-delegates.c: Rebuild.
5963 * target.c (default_thread_address_space): New function.
5964 (target_thread_address_space): Simplify.
5965 * target.h (struct target_ops) <to_thread_address_space>: Add
5966 TARGET_DEFAULT_FUNC.
5967
1913f160
DE
59682014-06-04 Doug Evans <xdje42@gmail.com>
5969
5970 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5971
70ad5bff
MM
59722014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5973
5974 * record-btrace.c: Include event-loop.h and inf-loop.h.
5975 (record_btrace_resume_exec_dir)
5976 (record_btrace_async_inferior_event_handler)
5977 (record_btrace_handle_async_inferior_event): New.
5978 (record_btrace_open): Create async event handler.
5979 (record_btrace_close): Delete async event handler.
5980 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5981 Mark async event handler.
5982 (record_btrace_execution_direction): New.
5983 (init_record_btrace_ops): Initialize to_execution_direction.
5984
b6210538
DE
59852014-06-03 Doug Evans <xdje42@gmail.com>
5986
5987 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5988 (gdbscm_make_parameter): Ditto.
5989
a5b1fd27
DE
59902014-06-03 Doug Evans <dje@google.com>
5991
5992 * exec.c (exec_close_1): Call clear_section_table instead of
5993 resize_section_table.
5994 (clear_section_table): New function.
5995 (resize_section_table): Make static. Rename arg num_added to
5996 adjustment.
5997 * exec.h (clear_section_table): Declare.
5998 (resize_section_table): Delete.
5999 * progspace.c (release_program_space): Call clear_section_table
6000 instead of resize_section_table.
6001
0c6e92a5
SC
60022014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6003
6004 * NEWS (Python Scripting): Add entry about the new xmethods
6005 feature.
6006
883964a7
SC
60072014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6008
6009 * python/py-xmethods.c: New file.
6010 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6011 (objfpy_dealloc): XDECREF on the new xmethods field.
6012 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6013 field.
6014 (objfpy_get_xmethods): New function.
6015 (objfile_getset): New entry 'xmethods'.
6016 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6017 (pspy_dealloc): XDECREF on the new xmethods field.
6018 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6019 field.
6020 (pspy_get_xmethods): New function.
6021 (pspace_getset): New entry 'xmethods'.
6022 * python/python-internal.h: Add declarations for new functions.
6023 * python/python.c (_initialize_python): Invoke
6024 gdbpy_initialize_xmethods.
6025 * python/lib/gdb/__init__.py (xmethods): New
6026 attribute.
6027 * python/lib/gdb/xmethod.py: New file.
6028 * python/lib/gdb/command/xmethods.py: New file.
6029
58992dc5
SC
60302014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6031
6032 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6033 best match method returned by find_overload_match is an xmethod.
6034 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6035 the best matching operator returned by find_overload_match is an
6036 xmethod.
6037 * valops.c: #include "extension.h".
6038 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6039 Return void. The list of matching source methods is returned in
6040 "fn_list" and a vector of matching debug method workers is
6041 returned in "xm_worker_vec". Update all callers.
6042 (value_find_oload_method_list): Likewise.
6043 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6044 non-NULL, then the index of the best matching method in this
6045 vector is returned. Update all callers.
6046 (find_overload_match): Include xmethods while performing overload
6047 resolution.
6048
e81e7f5e
SC
60492014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6050
6051 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6052 * extension-priv.h (struct extension_language_ops): Add the
6053 xmethod interface.
6054 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6055 get_matching_xmethod_workers, get_xmethod_argtypes,
6056 invoke_xmethod, free_xmethod_worker,
6057 free_xmethod_worker_vec): New functions.
6058 * extension.h: #include "common/vec.h".
6059 New function declarations.
6060 (struct xmethod_worker): New struct.
6061 (VEC (xmethod_worker_ptr)): New vector type.
6062 (xmethod_worker_ptr): New typedef.
6063 (xmethod_worker_vec): Likewise.
6064 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6065 builtin_type.
6066 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6067 (struct builtin_type): New field "xmethod".
6068 * valarith.c (value_ptradd): Assert that the value argument is not
6069 lval_xcallable.
6070 * valops.c (value_must_coerce_to_target): Return 0 for
6071 lval_xcallable values.
6072 * value.c (struct value): New field XM_WORKER in the field
6073 LOCATION.
6074 (value_address, value_raw_address): Return 0 for lval_xcallable
6075 values.
6076 (set_value_address): Assert that the value is not an
6077 lval_xcallable.
6078 (value_free): Free the associated xmethod worker when freeing
6079 lval_xcallable values.
6080 (set_value_component_location): Assert that the WHOLE value is not
6081 lval_xcallable.
6082 (value_of_xmethod, call_xmethod): New functions.
6083 * value.h: Declare "struct xmethod_worker".
6084 Declare new functions value_of_xmethod, call_xmethod.
6085
ef370185
JB
60862014-06-03 Joel Brobecker <brobecker@adacore.com>
6087 Pedro Alves <palves@redhat.com>
6088
6089 PR breakpoints/17000
6090 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6091 New function, extracted from software_breakpoint_inserted_here_p.
6092 (software_breakpoint_inserted_here_p): Replace factored out code
6093 by call to find_non_raw_software_breakpoint_inserted_here.
6094 (bp_target_info_copy_insertion_state): New function.
6095 (bkpt_insert_location): Handle the case of a single-step
6096 breakpoint already inserted at the same address.
6097 (bkpt_remove_location): Handle the case of a single-step
6098 breakpoint still inserted at the same address.
6099 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6100 breakpoint already inserted at the same address.
6101 (deprecated_remove_raw_breakpoint): Handle the case of a
6102 non-raw breakpoint still inserted at the same address.
6103 (find_single_step_breakpoint): New function, extracted from
6104 single_step_breakpoint_inserted_here_p.
6105 (find_single_step_breakpoint): New function,
6106 factored out from single_step_breakpoint_inserted_here_p.
6107 (single_step_breakpoint_inserted_here_p): Reimplement.
6108
1e2ccb61
BM
61092014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6110
6111 Pushed by Joel Brobecker <brobecker@adacore.com>
6112 * source.c (show_substitute_path_command): Fix display of matching
6113 substitution rules.
6114
d3448d85
GB
61152014-06-03 Gary Benson <gbenson@redhat.com>
6116
6117 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6118
06eb1586
DE
61192014-06-02 Doug Evans <xdje42@gmail.com>
6120
6121 Add parameter support for Guile.
6122 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6123 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6124 (scm-param.o): New rule.
6125 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6126 (gdbscm_misc_error): Declare.
6127 (gdbscm_canonicalize_command_name): Declare.
6128 (gdbscm_scm_to_host_string): Declare.
6129 (gdbscm_scm_from_host_string): Declare.
6130 (gdbscm_initialize_parameters): Declare.
6131 * guile/guile.c (initialize_gdb_module): Call
6132 gdbscm_initialize_parameters.
6133 * guile/lib/gdb.scm: Export parameter symbols.
6134 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6135 cmdscm_canonicalize_name and made public. All callers updated.
6136 * guile/scm-exception.c (gdbscm_misc_error): New function.
6137 * guile/scm-param.c: New file.
6138 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6139 (gdbscm_scm_to_host_string): New function.
6140 (gdbscm_scm_from_host_string): New function.
6141 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6142
e698b8c4
DE
61432014-06-02 Doug Evans <xdje42@gmail.com>
6144
6145 Add command support for Guile.
6146 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6147 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6148 (scm-cmd.o): New rule.
6149 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6150 (gdbscm_user_error_p): Declare.
6151 (gdbscm_parse_command_name): Declare.
6152 (gdbscm_valid_command_class_p): Declare.
6153 (gdbscm_initialize_commands): Declare.
6154 * guile/guile.c (initialize_gdb_module): Call
6155 gdbscm_initialize_commands.
6156 * guile/lib/gdb.scm: Export command symbols.
6157 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6158 (throw-user-error): New function.
6159 * guile/scm-cmd.c: New file.
6160 * guile/scm-exception.c (user_error_symbol): New static global.
6161 (gdbscm_user_error_p): New function.
6162 (gdbscm_initialize_exceptions): Set user_error_symbol.
6163 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6164
fb1f94b0
PM
61652014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6166
6167 * top.c (command_loop): Handle comments here...
6168 (command_line_input): ... not here.
6169
ded03782
DE
61702014-06-02 Doug Evans <xdje42@gmail.com>
6171
6172 Add progspace support for Guile.
6173 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6174 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6175 (scm-progspace.o): New rule.
6176 * guile/guile-internal.h (pspace_smob): New typedef.
6177 (psscm_pspace_smob_pretty_printers): Declare.
6178 (psscm_pspace_smob_from_pspace): Declare.
6179 (psscm_scm_from_pspace): Declare.
6180 * guile/guile.c (initialize_gdb_module): Call
6181 gdbscm_initialize_pspaces.
6182 * guile/lib/gdb.scm: Export progspace symbols.
6183 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6184 support.
6185 (append-pretty-printer!): Ditto.
6186 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6187 Implement.
6188 * guile/scm-progspace.c: New file.
6189
397998fc
AM
61902014-06-03 Alan Modra <amodra@gmail.com>
6191
6192 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6193 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6194
6aa5f3a6
DE
61952014-06-02 Doug Evans <dje@google.com>
6196
6197 Add support for skeletonless type units.
6198 * dwarf2read.c (struct dwarf2_per_objfile): New member
6199 n_allocated_type_units.
6200 (struct dwarf2_per_objfile) <tu_stats>: New member
6201 nr_all_type_units_reallocs.
6202 (create_signatured_type_table_from_index): Initialize
6203 n_allocated_type_units
6204 (create_all_type_units): Ditto.
6205 (add_type_unit): Move up in file. New arg slot.
6206 All callers updated. Increase space for all_type_units more
6207 efficiently.
6208 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6209 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6210 (lookup_dwp_signatured_type): Ditto.
6211 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6212 All callers updated.
6213 (build_type_psymtabs_1): Leave type_unit_groups as
6214 NULL if no TUs present.
6215 (print_tu_stats): New function.
6216 (process_skeletonless_type_unit): New function.
6217 (process_dwo_file_for_skeletonless_type_units): New
6218 function.
6219 (process_skeletonless_type_units): New function.
6220 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6221 Call print tu_stats if debugging enabled.
6222
41fac0cf
PA
62232014-06-02 Pedro Alves <palves@redhat.com>
6224
6225 * breakpoint.c (build_target_command_list): Don't build a command
6226 list if we have any duplicate location that isn't a dprintf.
6227
cd1608cc
PA
62282014-06-02 Pedro Alves <palves@redhat.com>
6229
6230 * breakpoint.c (dprintf_breakpoint_hit): New function.
6231 (initialize_breakpoint_ops): Install it as dprintf's
6232 breakpoint_hit method.
6233
486ef3b9
JB
62342014-06-02 Joel Brobecker <brobecker@adacore.com>
6235
6236 * source.c (substitute_path_rule_matches): Simplify using
6237 filename_ncmp instead of FILENAME_CMP.
6238
230cd560
JB
62392014-06-02 Joel Brobecker <brobecker@adacore.com>
6240
6241 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6242
16954d5d
LC
62432014-06-01 Ludovic Courtès <ludo@gnu.org>
6244
6245 * configure.ac: When Guile is available, check for the
6246 availability of 'scm_new_smob'.
6247 * configure, config.h.in: Regenerate.
6248 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6249 function.
6250
53e8a631
AB
62512014-05-30 Andrew Burgess <aburgess@broadcom.com>
6252
6253 * frame.c (struct frame_info): Add stop_string field.
6254 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6255 (get_prev_frame_always): Old content moved into
6256 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6257 TRY_CATCH, handle MEMORY_ERROR exceptions.
6258 (frame_stop_reason_string): New function definition.
6259 * frame.h (unwind_stop_reason_to_string): Extend comment to
6260 mention frame_stop_reason_string.
6261 (frame_stop_reason_string): New function declaration.
6262 * stack.c (frame_info): Switch to frame_stop_reason_string.
6263 (backtrace_command_1): Switch to frame_stop_reason_string.
6264 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6265 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6266 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6267
70e38b8e
AB
62682014-05-30 Andrew Burgess <aburgess@broadcom.com>
6269
6270 * frame.c (frame_stop_reason_string): Rename to ...
6271 (unwind_stop_reason_to_string): this.
6272 * frame.h (frame_stop_reason_string): Rename to ...
6273 (unwind_stop_reason_to_string): this.
6274 * stack.c (frame_info): Update call to frame_stop_reason_string.
6275 (backtrace_command_1): Likewise.
6276 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6277 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6278
938f0e2f
AB
62792014-05-30 Andrew Burgess <aburgess@broadcom.com>
6280
6281 * frame.c (remove_prev_frame): New function.
6282 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6283 remove_prev_frame.
6284
a09dd441
PA
62852014-05-29 Pedro Alves <palves@redhat.com>
6286
6287 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6288 and make it const. When a single-step decays to a continue,
6289 clear 'step', not 'hw_step'. Pass whether the caller wanted
6290 to step to user_visible_resume_ptid, not what we ask the
6291 target to do.
6292
bdc36728
PA
62932014-05-29 Pedro Alves <palves@redhat.com>
6294
6295 * infrun.c (process_event_stop_test, handle_step_into_function)
6296 (handle_step_into_function_backward): Adjust.
6297 Don't set the even thread's stop_step and call stop_waiting before
6298 calling end_stepping_range. Instead do that ...
6299 (end_stepping_range): ... here. Take an ecs pointer parameter.
6300
22bcd14b
PA
63012014-05-29 Pedro Alves <palves@redhat.com>
6302
6303 * infrun.c (stop_stepping): Rename to ...
6304 (stop_waiting): ... this.
6305 (proceed): Update comment.
6306 (process_event_stop_test, handle_inferior_event)
6307 (handle_signal_stop, handle_step_into_function)
6308 (handle_step_into_function_backward): Update.
6309
4ae57c05
PA
63102014-05-29 Pedro Alves <palves@redhat.com>
6311
6312 * infcall.c (run_inferior_call): Don't check whether the current
6313 thread is running after the proceed call.
6314
329ea579
PA
63152014-05-29 Pedro Alves <palves@redhat.com>
6316 Tom Tromey <tromey@redhat.com>
6317
6318 * NEWS: Mention "maint set target-async", "set mi-async", and that
6319 background execution commands are now always available.
6320 * target.h (target_async_permitted): Update comment.
6321 * target.c (target_async_permitted, target_async_permitted_1):
6322 Default to 1.
6323 (set_target_async_command): Rename to ...
6324 (maint_set_target_async_command): ... this.
6325 (show_target_async_command): Rename to ...
6326 (maint_show_target_async_command): ... this.
6327 (_initialize_target): Adjust.
6328 * infcmd.c (prepare_execution_command): Make extern.
6329 * inferior.h (prepare_execution_command): Declare.
6330 * infrun.c (set_observer_mode): Leave target async alone.
6331 * mi/mi-interp.c (mi_interpreter_init): Install
6332 mi_on_sync_execution_done as sync_execution_done observer.
6333 (mi_on_sync_execution_done): New function.
6334 (mi_execute_command_input_handler): Don't print the prompt if we
6335 just started a synchronous command with an async target.
6336 (mi_on_resume): Check sync_execution before printing prompt.
6337 * mi/mi-main.h (mi_async_p): Declare.
6338 * mi/mi-main.c: Include gdbcmd.h.
6339 (mi_async_p): New function.
6340 (mi_async, mi_async_1): New globals.
6341 (set_mi_async_command, show_mi_async_command, mi_async): New
6342 functions.
6343 (exec_continue): Call prepare_execution_command.
6344 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6345 (mi_execute_async_cli_command): Use mi_async_p.
6346 (_initialize_mi_main): Install "set mi-async". Make
6347 "target-async" a deprecated alias.
6348
92bcb5f9
PA
63492014-05-29 Pedro Alves <palves@redhat.com>
6350
6351 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6352 (_initialize_cli_interp): Adjust.
6353 * event-loop.c: Include "observer.h".
6354 (start_event_loop): Notify 'command_error' observers instead of
6355 calling display_gdb_prompt. Remove FIXME comment.
6356 * event-top.c (display_gdb_prompt): Remove call into the
6357 interpreters.
6358 * inf-loop.c: Include "observer.h".
6359 (inferior_event_handler): Notify 'command_error' observers instead
6360 of calling display_gdb_prompt.
6361 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6362 observers instead of calling display_gdb_prompt.
6363 * interps.c (interp_set): Don't call display_gdb_prompt.
6364 (current_interp_display_prompt_p): Delete.
6365 * interps.h (interp_prompt_p): Delete declaration.
6366 (interp_prompt_p_ftype): Delete.
6367 (struct interp_procs) <prompt_proc_p>: Delete field.
6368 (current_interp_display_prompt_p): Delete declaration.
6369 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6370 (_initialize_mi_interp): Adjust.
6371 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6372 'command_error' observers.
6373 (tui_on_sync_execution_done, tui_on_command_error): New
6374 functions.
6375 (tui_display_prompt_p): Delete.
6376 (_initialize_tui_interp): Adjust.
6377
fd664c91
PA
63782014-05-29 Pedro Alves <palves@redhat.com>
6379
6380 PR gdb/13860
6381 * cli/cli-interp.c: Include infrun.h and observer.h.
6382 (cli_uiout, cli_interp): New globals.
6383 (cli_on_signal_received, cli_on_end_stepping_range)
6384 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6385 functions.
6386 (cli_interpreter_init): Install them as 'end_stepping_range',
6387 'signal_received' 'signal_exited', 'exited' and 'no_history'
6388 observers.
6389 (_initialize_cli_interp): Remove cli_interp local.
6390 * infrun.c (handle_inferior_event): Call the several stop reason
6391 observers instead of printing the stop reason directly.
6392 (end_stepping_range): New function.
6393 (print_end_stepping_range_reason, print_signal_exited_reason)
6394 (print_exited_reason, print_signal_received_reason)
6395 (print_no_history_reason): Make static, and add an uiout
6396 parameter. Print to that instead of to CURRENT_UIOUT.
6397 * infrun.h (print_end_stepping_range_reason)
6398 (print_signal_exited_reason, print_exited_reason)
6399 (print_signal_received_reason print_no_history_reason): New
6400 declarations.
6401 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6402 'mi_uiout'.
6403 <cli_uiout>: New field.
6404 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6405 uiout for CLI output. Install 'signal_received',
6406 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6407 observers.
6408 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6409 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6410 (mi_on_no_history): New functions.
6411 (ui_out_free_cleanup): Delete function.
6412 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6413 instead use the one already stored in the MI interpreter data.
6414 (mi_ui_out): Adjust.
6415 * tui/tui-interp.c: Include infrun.h and observer.h.
6416 (tui_interp): New global.
6417 (tui_on_signal_received, tui_on_end_stepping_range)
6418 (tui_on_signal_exited, tui_on_exited)
6419 (tui_on_no_history): New functions.
6420 (tui_init): Install them as 'end_stepping_range',
6421 'signal_received' 'signal_exited', 'exited' and 'no_history'
6422 observers.
6423 (_initialize_tui_interp): Delete tui_interp local.
6424
8817a6f2
PA
64252014-05-29 Pedro Alves <palves@redhat.com>
6426
6427 PR gdb/15713
6428 * linux-nat.c (linux_nat_resume_callback): Rename the second
6429 parameter to 'except'. Skip LP if it points to EXCEPT.
6430 (linux_nat_resume): Don't mark the event lwp as not stopped
6431 before resuming sibling lwps. Instead ask
6432 linux_nat_resume_callback to skip the event lwp. Mark it as not
6433 stopped after actually resuming it.
6434 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6435 resuming it.
6436 (wait_lwp): Mark the lwp as stopped here.
6437 (stop_wait_callback): Mark the lwp as not stopped right after
6438 resuming it. Don't mark lwps as stopped here.
6439 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6440 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6441
251bde03
PA
64422014-05-29 Pedro Alves <palves@redhat.com>
6443
6444 PR PR15693
6445 * infrun.c (resume): Determine how much to resume depending on
6446 whether the caller wanted a step, not whether we can hardware step
6447 the target. Mark all threads that we intend to run as running,
6448 unless we're calling an inferior function.
6449 (normal_stop): If the thread is running an infcall, don't finish
6450 thread state.
6451 * target.c (target_resume): Don't mark threads as running here.
6452
7f3c0343
JB
64532014-05-28 Joel Brobecker <brobecker@adacore.com>
6454
6455 * serial.c (_initialize_serial): Remove support for
6456 the "set remotebaud" and "show remotebaud" commands.
6457 * NEWS: Add entry documenting the removal of that command.
6458
ee34b3f9
YQ
64592014-05-28 Yao Qi <yao@codesourcery.com>
6460
6461 * charset.c: Fix typo in comments.
6462
add6c04d
GB
64632014-05-27 Gary Benson <gbenson@redhat.com>
6464
6465 * utils.c (internal_vproblem): Prompt for a bug report.
6466
92c48fc5
AW
64672014-05-26 Andy Wingo <wingo@igalia.com>
6468
6469 * guile/scm-arch.c (arscm_mark_arch_smob):
6470 * guile/scm-block.c (bkscm_mark_block_smob)
6471 (bkscm_mark_block_syms_progress_smob):
6472 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6473 * guile/scm-exception.c (exscm_mark_exception_smob):
6474 * guile/scm-frame.c (frscm_mark_frame_smob):
6475 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6476 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6477 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6478 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6479 (ppscm_mark_pretty_printer_worker_smob):
6480 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6481 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6482 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6483 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6484 mark functions.
6485 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6486 function.
6487
b2715b27
AW
64882014-05-26 Andy Wingo <wingo@igalia.com>
6489 Doug Evans <xdje42@gmail.com>
6490
6491 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6492 empty_base_class. All uses updated.
6493 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6494 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6495 Adapt all callers.
6496 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6497 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6498 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6499 (gdbscm_gsmob_has_property_p, add_property_name)
6500 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6501 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6502 (gdb-object-has-property?, gdb-object-properties): Remove.
6503 (gdb-object-kind): Renamed from gsmob-kind.
6504
214ab2da
AW
65052014-05-26 Andy Wingo <wingo@igalia.com>
6506
6507 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6508 * configure: Regenerate.
6509
589fdceb
MM
65102014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6511
6512 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6513
67b5c0c1
MM
65142014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6515
6516 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6517 (replay_memory_access_read_only, replay_memory_access_read_write)
6518 (replay_memory_access_types, replay_memory_access)
6519 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6520 (cmd_set_record_btrace, cmd_show_record_btrace)
6521 (cmd_show_replay_memory_access): New.
6522 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6523 (record_btrace_remove_breakpoint): Replace
6524 record_btrace_allow_memory_access with replay_memory_access.
6525 (_initialize_record_btrace): Add commands.
6526 * NEWS: Announce it.
6527
036cd381
RR
65282014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6529
6530 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6531
c77c1e42
RR
65322014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6533
6534 * MAINTAINERS (Write After Approval): Move self back from
6535 paper trail.
6536
45741a9c
PA
65372014-05-22 Pedro Alves <palves@redhat.com>
6538
6539 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6540 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6541 (disable_randomization, enum exec_direction_kind)
6542 (execution_direction, stop_registers, start_remote)
6543 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6544 (wait_for_inferior, normal_stop, get_last_target_status)
6545 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6546 (insert_step_resume_breakpoint_at_sal)
6547 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6548 (set_step_info, print_stop_event, signal_stop_state)
6549 (signal_print_state, signal_pass_state, signal_stop_update)
6550 (signal_print_update, signal_pass_update)
6551 (update_signals_program_target, clear_exit_convenience_vars)
6552 (displaced_step_dump_bytes, update_observer_mode)
6553 (signal_catch_update, gdb_signal_from_command): Move
6554 declarations ...
6555 * infrun.h: ... to this new file.
6556 * amd64-tdep.c: Include infrun.h.
6557 * annotate.c: Include infrun.h.
6558 * arch-utils.c: Include infrun.h.
6559 * arm-linux-tdep.c: Include infrun.h.
6560 * arm-tdep.c: Include infrun.h.
6561 * break-catch-sig.c: Include infrun.h.
6562 * breakpoint.c: Include infrun.h.
6563 * common/agent.c: Include infrun.h instead of inferior.h.
6564 * corelow.c: Include infrun.h.
6565 * event-top.c: Include infrun.h.
6566 * go32-nat.c: Include infrun.h.
6567 * i386-tdep.c: Include infrun.h.
6568 * inf-loop.c: Include infrun.h.
6569 * infcall.c: Include infrun.h.
6570 * infcmd.c: Include infrun.h.
6571 * infrun.c: Include infrun.h.
6572 * linux-fork.c: Include infrun.h.
6573 * linux-nat.c: Include infrun.h.
6574 * linux-thread-db.c: Include infrun.h.
6575 * monitor.c: Include infrun.h.
6576 * nto-tdep.c: Include infrun.h.
6577 * procfs.c: Include infrun.h.
6578 * record-btrace.c: Include infrun.h.
6579 * record-full.c: Include infrun.h.
6580 * remote-m32r-sdi.c: Include infrun.h.
6581 * remote-mips.c: Include infrun.h.
6582 * remote-notif.c: Include infrun.h.
6583 * remote-sim.c: Include infrun.h.
6584 * remote.c: Include infrun.h.
6585 * reverse.c: Include infrun.h.
6586 * rs6000-tdep.c: Include infrun.h.
6587 * s390-linux-tdep.c: Include infrun.h.
6588 * solib-irix.c: Include infrun.h.
6589 * solib-osf.c: Include infrun.h.
6590 * solib-svr4.c: Include infrun.h.
6591 * target.c: Include infrun.h.
6592 * top.c: Include infrun.h.
6593 * windows-nat.c: Include infrun.h.
6594 * mi/mi-interp.c: Include infrun.h.
6595 * mi/mi-main.c: Include infrun.h.
6596 * python/py-threadevent.c: Include infrun.h.
6597
98eb56a4
PA
65982014-05-22 Pedro Alves <palves@redhat.com>
6599
6600 * infrun.c (handle_inferior_event): Store the exit code for
6601 --return-child-result here, instead of ...
6602 (print_exited_reason): ... here.
6603
17b2616c
PA
66042014-05-21 Pedro Alves <palves@redhat.com>
6605
6606 PR gdb/13860
6607 * gdbthread.h (struct thread_control_state): New field
6608 `command_interp'.
6609 * infrun.c (follow_fork): Copy the new thread control field to the
6610 child fork thread.
6611 (clear_proceed_status_thread): Clear the new thread control field.
6612 (proceed): Set the new thread control field.
6613 * interps.h (command_interp): Declare.
6614 * interps.c (command_interpreter): New global.
6615 (command_interp): New function.
6616 (interp_exec): Set `command_interpreter' while here.
6617 * cli-out.c (cli_uiout_dtor): New function.
6618 (cli_ui_out_impl): Install it.
6619 * mi/mi-interp.c: Include cli-out.h.
6620 (mi_cmd_interpreter_exec): Add comment.
6621 (restore_current_uiout_cleanup): New function.
6622 (ui_out_free_cleanup): New function.
6623 (mi_on_normal_stop): If finishing an execution command started by
6624 a CLI command, or any kind of breakpoint-like event triggered,
6625 print the stop event to the output (CLI) stream.
6626 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6627
5166082f
PA
66282014-05-21 Pedro Alves <palves@redhat.com>
6629
6630 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6631 current source line having changed.
6632 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6633 * infrun.c (normal_stop): Adjust call to
6634 set_current_sal_from_frame.
6635 * source.c (clear_lines_listed_range): New function.
6636 (set_current_source_symtab_and_line, identify_source_line): Clear
6637 the lines listed range.
6638 (line_info): Handle the first "info line" after the current source
6639 line having changed.
6640 * stack.c (print_stack_frame): Remove center handling.
6641 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6642 center sal.line.
6643
c1ee2fb3
PA
66442014-05-21 Pedro Alves <palves@redhat.com>
6645
6646 * inf-child.c (inf_child_mourn_inferior): New function.
6647 * inf-child.h (inf_child_mourn_inferior): New declaration.
6648 * darwin-nat.c (darwin_mourn_inferior): Use
6649 inf_child_mourn_inferior.
6650 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6651 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6652 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6653 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6654 * windows-nat.c (windows_mourn_inferior): Likewise.
6655
5c6d4fb2
DE
66562014-05-21 Doug Evans <xdje42@gmail.com>
6657
250748cb 6658 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 6659
4a2722c5
DE
66602014-05-21 Doug Evans <xdje42@gmail.com>
6661
17292b30 6662 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
6663 (gdbscm_out_of_range_error): Ditto.
6664 (gdbscm_memory_error): Ditto.
250748cb
DE
6665 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6666 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
6667 (gdbscm_out_of_range_error): Update.
6668 (gdbscm_memory_error): Update.
6669 (gdbscm_scm_to_target_string_unsafe): Delete.
6670
6a3cb8e8
PA
66712014-05-21 Pedro Alves <palves@redhat.com>
6672
6673 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6674 globals.
6675 (inf_child_open_target): New function.
6676 (inf_child_open): Use inf_child_open_target to push the target
6677 instead of erroring out.
6678 (inf_child_disconnect, inf_child_close)
6679 (inf_child_maybe_unpush_target): New functions.
6680 (inf_child_target): Install inf_child_disconnect and
6681 inf_child_close. Store a pointer to the returned object.
6682 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6683 declarations.
6684 * target.c (auto_connect_native_target): New global.
6685 (show_default_run_target): New function.
6686 (find_default_run_target): Return NULL if automatically connecting
6687 to the native target is disabled.
6688 (_initialize_target): Install set/show auto-connect-native-target.
6689 * NEWS: Mention "set auto-connect-native-target", and "target
6690 native".
6691 * linux-nat.c (super_close): New global.
6692 (linux_nat_close): Call super_close.
6693 (linux_nat_add_target): Store a pointer to the base class's
6694 to_close method.
6695 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6696 inf_child_maybe_unpush.
6697 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6698 already pushed.
6699 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6700 the inferior. Use inf_child_maybe_unpush_target.
6701 (inf_ttrace_attach): Don't push the target if it is already
6702 pushed.
6703 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6704 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6705 after mourning the inferior. Use inf_child_maybe_unpush_target.
6706 (darwin_attach_pid): Don't push the target if it is already
6707 pushed.
6708 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6709 mourning the inferior. Use inf_child_maybe_unpush_target.
6710 (gnu_detach): Use inf_child_maybe_unpush_target.
6711 * go32-nat.c (go32_create_inferior): Don't push the target if it
6712 is already pushed.
6713 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6714 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6715 (procfs_open): Rename to ...
6716 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6717 comments. Can target_preopen before changing node. Call
6718 inf_child_open_target to push the target explicitly.
6719 (procfs_attach): Don't push the target if it is already pushed.
6720 (procfs_detach): Use inf_child_maybe_unpush_target.
6721 (procfs_create_inferior): Don't push the target if it is already
6722 pushed.
6723 (nto_native_ops): New global.
6724 (procfs_open): Reimplement.
6725 (procfs_native_open): New function.
6726 (init_procfs_targets): Install procfs_native_open as to_open of
6727 "target native". Store a pointer to the "native" target in
6728 nto_native_ops.
6729 * procfs.c (procfs_attach): Don't push the target if it is already
6730 pushed.
6731 (procfs_detach): Use inf_child_maybe_unpush_target.
6732 (procfs_mourn_inferior): Only unpush the target after mourning the
6733 inferior. Use inf_child_maybe_unpush_target.
6734 (procfs_init_inferior): Don't push the target if it is already
6735 pushed.
6736 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6737 if it is already pushed.
6738
930ee1b1
PA
67392014-05-21 Pedro Alves <palves@redhat.com>
6740
6741 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6742 and "procfs" targets are now called "native" instead.
6743
1f5d1b13
PA
67442014-05-21 Pedro Alves <palves@redhat.com>
6745
6746 * go32-nat.c (go32_open): Delete.
6747 (go32_target): Don't override the to_open method.
6748
132f8e03
PA
67492014-05-21 Pedro Alves <palves@redhat.com>
6750
6751 * nto-procfs.c (procfs_can_run): New function.
6752 (nto_procfs_ops): New global.
6753 (init_procfs_targets): New, based on procfs_target. Install
6754 "target native" in addition to "target procfs".
6755 (_initialize_procfs): Call init_procfs_targets instead of adding
6756 the target here.
6757
03c136c3
PA
67582014-05-21 Pedro Alves <palves@redhat.com>
6759
6760 * windows-nat.c (windows_target): Don't override to_shortname,
6761 to_longname or to_doc.
6762
a635d0f3
PA
67632014-05-21 Pedro Alves <palves@redhat.com>
6764
6765 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6766 to_doc.
6767
4f9b5133
PA
67682014-05-21 Pedro Alves <palves@redhat.com>
6769
6770 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6771 to_shortname, to_longname or to_doc.
6772
bc85afde
PA
67732014-05-21 Pedro Alves <palves@redhat.com>
6774
6775 * go32-nat.c (go32_target): Don't override to_shortname,
6776 to_longname or to_doc.
6777
4ebfc96e
PA
67782014-05-21 Pedro Alves <palves@redhat.com>
6779
6780 * inf-child.c (inf_child_open): Remove mention of "child".
6781 (inf_child_target): Rename target to "native" instead of "child".
6782
2648dfed
AA
67832014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6784
6785 * Makefile.in (SFILES): Delete "regset.c".
6786 (COMMON_OBS): Delete "regset.o".
6787 * regset.c: Remove.
6788 * regset.h (regset_alloc): Delete prototype.
6789
b13feb94
AA
67902014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6791
6792 * sparc-linux-tdep.c (sparc32_linux_gregset)
6793 (sparc32_linux_fpregset): New static regset structures.
6794 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6795 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6796 'fpregset' fields.
6797 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6798 (sparc64_linux_fpregset): New static regset structures.
6799 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6800 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6801 New static regset structures.
6802 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6803 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6804 New static regset structures.
6805 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6806 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6807 New static regset structures.
6808 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6809 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6810 New static regset structures.
6811 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6812
b4fd25c9
AA
68132014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6814
6815 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6816 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6817 register maps ("regmaps") from "*regset" to "*regmap". Do this
6818 for all regmap types and variables.
6819 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6820 (sparc32_linux_supply_core_gregset)
6821 (sparc32_linux_collect_core_gregset)
6822 (sparc32_linux_supply_core_fpregset)
6823 (sparc32_linux_collect_core_fpregset): Likewise.
6824 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6825 (sparc_gregmap, sparc_fpregmap): ... these.
6826 (sparc_supply_gregset, sparc_collect_gregset)
6827 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6828 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6829 (_initialize_sparc_nat): Rename regmaps.
6830 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6831 (sparc_gregmap, sparc_fpregmap): ... these.
6832 (sparc_supply_gregset, sparc_collect_gregset)
6833 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6834 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6835 Rename macros to...
6836 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6837 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6838 Likewise.
6839 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6840 Rename to...
6841 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6842 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6843 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6844 regmaps.
6845 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6846 (sparc32_bsd_fpregset): Rename to...
6847 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6848 (sparc32_bsd_fpregmap): ... these.
6849 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6850 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6851 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6852 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6853 (struct sparc_gregmap, struct sparc_fpregmap)
6854 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6855 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6856 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6857 (sparc32_supply_regset, sparc32_collect_gregset)
6858 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6859 prototypes.
6860 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6861 (sparc64_linux_ptrace_gregmap): ... this.
6862 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6863 (_initialize_sparc64_linux_nat): Rename regmaps.
6864 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6865 (sparc64_linux_core_gregmap): ... this.
6866 (sparc64_linux_supply_core_gregset)
6867 (sparc64_linux_collect_core_gregset)
6868 (sparc64_linux_supply_core_fpregset)
6869 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6870 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6871 (sparc64_sol2_fpregset): Rename to...
6872 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6873 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6874 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6875 regmaps.
6876 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6877 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6878 (sparc64_bsd_fpregset): Rename to...
6879 (struct sparc_gregmap, sparc64_sol2_gregmap)
6880 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6881 (sparc64_bsd_fpregmap): ... these.
6882 (sparc64_supply_gregset, sparc64_collect_gregset)
6883 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6884 prototypes.
6885 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6886 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6887 (sparc64fbsd_gregmap): ... this.
6888 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6889 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6890 Rename regmaps.
6891 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6892 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6893 (sparc64nbsd_collect_fpregset): Likewise.
6894 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6895 (sparc64nbsd_gregmap): ... this.
6896 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6897 regmaps.
6898 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6899 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6900 (sparc64obsd_gregmap): ... this.
6901 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6902 regmaps.
6903 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6904 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6905 (sparc32nbsd_gregmap): ... this.
6906 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6907 regmaps.
6908
8fea3224
AA
69092014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6910
6911 * score-tdep.c (score7_linux_gregset): New static regset
6912 structure.
6913 (score7_linux_regset_from_core_section): Remove dynamic regset
6914 allocation.
6915 (score_gdbarch_init): Drop allocation of tdep structure.
6916 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6917
24534243
AA
69182014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6919
6920 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6921 regset structures.
6922 (am33_regset_from_core_section): Remove dynamic regset
6923 allocations.
6924
b7195f27
AA
69252014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6926
6927 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6928 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6929 structures.
6930 (mips_linux_regset_from_core_section): Remove dynamic regset
6931 allocations.
6932 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6933 'gregset64', 'fpregset', and 'fpregset64'.
6934 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6935 deleted tdep fields.
6936
ecc37a5a
AA
69372014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6938
6939 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6940 regset structures.
6941 (amd64_regset_from_core_section): Remove dynamic regset
6942 allocations.
6943 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6944 structure.
6945 (amd64obsd_regset_from_core_section): Remove dynamic regset
6946 allocation.
6947 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6948 Likewise.
6949 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6950 x86-common regset supply function.
6951 * i386-tdep.c (i386_collect_gregset): Make static.
6952 (i386_gregset): New global regset structure.
6953 (i386_fpregset, i386_xstateregset): New static regset structures.
6954 (i386_regset_from_core_section): Remove dynamic regset
6955 allocations.
6956 (i386_gdbarch_init): Remove initialization of tdep fields
6957 'gregset', 'fpregset', and 'xstateregset'.
6958 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6959 'fpregset', and 'xstateregset'.
6960 (i386_collect_gregset): Remove prototype.
6961 (i386_gregset): New declaration.
6962 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6963 structure.
6964 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6965 allocation.
6966
b7611c43
AA
69672014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6968
6969 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6970 (arm_linux_vfpregset): New static regset structures.
6971 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6972 regset structures.
6973 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6974 and 'vfpregset' fields.
6975
a069a2bd
AA
69762014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6977
6978 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6979 (aarch64_linux_fpregset): New static regset structures.
6980 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6981 of regset structures.
6982 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6983 'fpregset' fields.
6984
09424cff
AA
69852014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6986
6987 * regset.h (struct regset): Remove gdbarch field.
6988 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6989 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6990 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6991 Likewise.
6992 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6993 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6994 (ppc32_linux_vsxregset): Likewise.
6995 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6996 via the regcache instead of the regset.
6997 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6998 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6999 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7000 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7001 Likewise.
7002
3ca7dae4
AA
70032014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7004
7005 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7006 Constify structures.
7007 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7008 (alphanbsd_aout_gregset): Likewise.
7009 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7010 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7011 Likewise.
7012 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7013 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7014 Likewise.
7015 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7016 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7017 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7018 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7019 * m88k-tdep.c (m88k_gregset): Likewise.
7020 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7021 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7022 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7023 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7024 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7025 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7026 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7027 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7028 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7029 Likewise.
7030 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7031 * sh-tdep.h (sh_corefile_gregset): Likewise.
7032 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7033 * vax-tdep.c (vax_gregset): Likewise.
7034
5876f503
JK
70352014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7036
7037 Fix TLS access for -static -pthread.
7038 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7039 (try_thread_db_load_1): Initialize it.
7040 (thread_db_get_thread_local_address): Call it if LM is zero.
7041 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7042 * target.h (struct target_ops) (to_get_thread_local_address): Add
7043 load_module_addr comment.
7044
0256a6ac
PA
70452014-05-21 Pedro Alves <palves@redhat.com>
7046
7047 * dcache.c (dcache_read_memory_partial): If reading the cache line
7048 fails, fallback to reading just the memory the caller wanted.
7049
227533ac
DE
70502014-05-20 Doug Evans <dje@google.com>
7051
7052 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7053 instead of get_current_arch.
7054
936d2992
PA
70552014-05-20 Pedro Alves <palves@redhat.com>
7056
7057 * NEWS: Mention that compare-sections now works with all targets.
7058
7059 * remote.c (PACKET_qCRC): New enum value.
7060 (remote_verify_memory): Don't send qCRC if the target has no
7061 execution. Use packet_support/packet_ok. If the target doesn't
7062 support the qCRC packet, fallback to a deep memory copy.
7063 (compare_sections_command): Say "target image" instead of "remote
7064 executable".
7065 (_initialize_remote): Add PACKET_qCRC to the list of config
7066 packets that have no associated command. Extend comment.
7067 * target.c (simple_verify_memory, default_verify_memory): New
7068 function.
7069 * target.h (struct target_ops) <to_verify_memory>: Default to
7070 default_verify_memory.
7071 (simple_verify_memory): New declaration.
7072 * target-delegates.c: Regenerate.
7073
e59fa00f
MM
70742014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7075
7076 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7077
f2205de0
HZ
70782014-05-20 Hui Zhu <hui@codesourcery.com>
7079 Yao Qi <yao@codesourcery.com>
7080
7081 PR backtrace/16558
7082 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7083 and change address of sp and pc.
7084
c4e54771
TT
70852014-05-19 Tom Tromey <tromey@redhat.com>
7086
7087 * gdbtypes.c (rank_function): Use XNEWVEC.
7088 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7089
73051182
DE
70902014-05-19 Doug Evans <dje@google.com>
7091
7092 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7093 build_type_unit_groups and moved closer to only caller. Remove
7094 arguments. All references updated. Remove outdated .gdb_index
7095 comment.
7096 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7097 build_type_psymtabs_1.
7098
8832e7e3
DE
70992014-05-19 Doug Evans <dje@google.com>
7100
7101 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7102 n_type_unit_groups, all_type_unit_groups. All uses removed.
7103 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7104 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7105 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7106 (add_type_unit_group_to_table): Delete.
7107
cd8ae15e
DE
71082014-05-19 Doug Evans <dje@google.com>
7109
7110 * eval.c (evaluate_subexp_standard): Add some comments.
7111
08f4850b
DE
71122014-05-17 Doug Evans <xdje42@gmail.com>
7113
7114 * progspace.c (remove_program_space): Delete, unused.
7115 * progspace.h (remove_program_space): Ditto.
7116
bed8455c
DE
71172014-05-17 Doug Evans <xdje42@gmail.com>
7118
7119 * inferior.c (prune_inferiors): Fix comment.
7120 (remove_inferior_command): Call prune_program_spaces.
7121
8d551b02
DE
71222014-05-16 Doug Evans <dje@google.com>
7123
7124 New command line option -D.
7125 * NEWS: Mention it.
7126 * main.c (set_gdb_data_directory): New function.
7127 (captured_main): Recognize -D. Flag error for --data-directory "".
7128 Call set_gdb_data_directory.
7129 (print_gdb_help): Print --data-directory, -D.
7130 * main.h (set_gdb_data_directory): Declare.
7131 * top.c (staged_gdb_datadir): New static global.
7132 (set_gdb_datadir): Call set_gdb_data_directory
7133 (show_gdb_datadir): New function.
7134 (init_main): Update init of data-directory parameter.
7135
18848e28
GF
71362014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7137
7138 Import the "dirfd" gnulib module.
7139 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7140 * gnulib/aclocal.m4: Update.
7141 * gnulib/config.in: Update.
7142 * gnulib/configure: Update.
7143 * gnulib/import/Makefile.am: Update.
7144 * gnulib/import/Makefile.in: Update.
7145 * gnulib/import/dirfd.c: New.
7146 * gnulib/import/m4/dirfd.m4: New.
7147 * gnulib/import/m4/gnulib-cache.m4: Update.
7148 * gnulib/import/m4/gnulib-comp.m4: Update.
7149
95c64f92
YQ
71502014-05-16 Pierre Muller <muller@sourceware.org>
7151 Yao Qi <yao@codesourcery.com>
7152
7153 * valprint.c (print_wchar): Move the code on checking whether
7154 W is a printable wide char to the default branch of switch
7155 statement below. Call wchar_printable instead of gdb_iswprint.
7156
cac395ea
TM
71572014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7158
19679eca 7159 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
7160 ldr.w and ldrd instructions.
7161
83655187
DE
71622014-05-15 Doug Evans <dje@google.com>
7163
7164 * dwarf2read.c (read_structure_type): Delete outdated comments.
7165
dd756689
TT
71662014-05-14 Tom Tromey <tromey@redhat.com>
7167
7168 * macrocmd.c (print_macro_definition): Reindent.
7169
75ddda77
DE
71702014-05-13 Doug Evans <xdje42@gmail.com>
7171
7172 * python/py-cmd.c (cmdpy_completer): Add comment.
7173 (completers): Make const.
7174
b0f16a3e
SM
71752014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7176
7177 * infrun.c (resume): Remove should_resume (unused). Move up
7178 declaration of resume_ptid.
7179
033c3379
TT
71802014-05-13 Tom Tromey <tromey@redhat.com>
7181
7182 * language.h (unop_type_check): Remove.
7183 (binop_type_check): Don't declare.
7184
9b44a3a5
AA
71852014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7186
7187 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7188 call to regcache_raw_collect.
7189
303a33fa
SM
71902014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7191
7192 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7193 mi_console->quote as the quoting character.
7194
196100a0
SM
71952014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7196
7197 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7198
f989a1c8
TT
71992014-04-29 Tom Tromey <tromey@redhat.com>
7200
7201 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7202 "show debug varobj".
7203
9404b58f
KM
72042014-05-07 Kyle McMartin <kyle@redhat.com>
7205
7206 Pushed by Joel Brobecker <brobecker@adacore.com>.
7207 * aarch64-tdep.c (aarch64_software_single_step): New function.
7208 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7209 with aarch64_software_single_step.
7210
5e49ba57
JB
72112014-05-05 Joel Brobecker <brobecker@adacore.com>
7212
7213 GDB 7.7.1 released.
7214
c888a17d
KS
72152014-05-05 Keith Seitz <keiths@redhat.com>
7216
7217 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7218 variable or history value is successfully parsed.
7219
290a839c
YQ
72202014-05-05 Yao Qi <yao@codesourcery.com>
7221 Pedro Alves <palves@redhat.com>
7222
7223 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7224 address of blocks that intersects the requested range. Trim
7225 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7226 sections.
7227 * ctf.c (ctf_xfer_partial): Likewise.
7228
91256dc2
YQ
72292014-05-05 Yao Qi <yao@codesourcery.com>
7230
7231 * printcmd.c (display_command): Remove the check to
7232 target_has_execution.
7233
07284463
MK
72342014-05-03 Mark Kettenis <kettenis@gnu.org>
7235
7236 * ppcobsd-nat.c: Include "obsd-nat.h".
7237 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7238 add_target.
7239 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7240
30a1e6cc
SDJ
72412014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7242
7243 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7244 and 16-bit signed and unsigned arguments. Update comment.
7245 (stap_parse_probe_arguments): Extend code to handle such
7246 arguments. Use warning instead of complaint to notify about
7247 unrecognized bitness.
7248
f33da99a
SDJ
72492014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7250
7251 PR breakpoints/16889
7252 * stap-probe.c (stap_parse_probe_arguments): Simplify
7253 check for non-prefixed probes (i.e., probes whose
7254 arguments do not start with "N@"). Always set the
7255 argument type to a sane value.
7256
95cf3b38
DT
72572014-05-01 David Taylor <dtaylor@emc.com>
7258
7259 * remote.c (compare_sections_command): Add -r option to compare
7260 all loadable read-only sections.
7261
1cfdf534
SC
72622014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7263
7264 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7265 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7266 Update all callers.
7267 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7268 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7269 Remove unused CORE_ADDR argument. Update all callers.
7270
ca4f7f8b
PA
72712014-04-29 Pedro Alves <palves@redhat.com>
7272
7273 * remote.c (struct packet_config) <detect>: Extend comment.
7274 (add_packet_config_cmd): Don't set the config's detect or support
7275 fields here.
7276 (init_all_packet_configs): Also initialize the config's 'detect'
7277 field.
7278 (reset_all_packet_configs_support): New function.
7279 (remote_open_1): Call reset_all_packet_configs_support instead of
7280 init_all_packet_configs.
7281 (_initialize_remote): Initialize all packet configs. Assert that
7282 all packets have an associated command, except a few known
7283 outliers.
7284
11c1ba78
JB
72852014-04-28 Joel Brobecker <brobecker@adacore.com>
7286
7287 * dwarf2read.c (read_subrange_type): Handle dynamic
7288 DW_AT_lower_bound attributes.
7289
8739bc53
JB
72902014-04-28 Joel Brobecker <brobecker@adacore.com>
7291
7292 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7293 dynamic bounds before computing its upper bound.
7294 (ada_discrete_type_low_bound): Same as above with the lower bound.
7295
6f8a3220
JB
72962014-04-28 Joel Brobecker <brobecker@adacore.com>
7297
7298 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7299 range types. Adjust the array handling implementation to
7300 take advantage of this change.
7301 (resolve_dynamic_range): New function, mostly extracted from
7302 resolve_dynamic_bounds.
7303 (resolve_dynamic_array): New function, mostly extracted from
7304 resolve_dynamic_bounds.
7305 (resolve_dynamic_bounds): Delete.
7306 (resolve_dynamic_type): Reimplement. Add handling of
7307 TYPE_CODE_RANGE types.
7308
4d072ce4
JB
73092014-04-28 Joel Brobecker <brobecker@adacore.com>
7310
7311 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7312 handling of parallel ___XA types.
7313
52865325
JB
73142014-04-28 Joel Brobecker <brobecker@adacore.com>
7315
7316 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7317 unnecessary second call to static_unwrap_type.
7318
433e77fa
HZ
73192014-04-27 Hui Zhu <hui@codesourcery.com>
7320
7321 * stack.c (print_frame_info): Call do_gdb_disassembly with
7322 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7323
b51a69ee
DE
73242014-04-26 Doug Evans <xdje42@gmail.com>
7325
7326 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7327
7ae1a6a6
PA
73282014-04-25 Pedro Alves <palves@redhat.com>
7329
7330 PR server/16255
7331 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7332 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7333 and newline from built string.
7334 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7335 (linux_ptrace_attach_fail_reason): ... this.
7336 * linux-nat.c (linux_nat_attach): Adjust to use
7337 linux_ptrace_attach_fail_reason.
7338
4082afcc
PA
73392014-04-25 Pedro Alves <palves@redhat.com>
7340
7341 * remote.c (struct remote_state): Remove multi_process_aware,
7342 non_stop_aware, cond_tracepoints, cond_breakpoints,
7343 breakpoint_commands, fast_tracepoints, static_tracepoints,
7344 install_in_trace, disconnected_tracing,
7345 enable_disable_tracepoints, string_tracing, and
7346 augmented_libraries_svr4_read fields.
7347 (remote_multi_process_p): Move further below in the file.
7348 (struct packet_config): Add comments.
7349 (update_packet_config): Delete function.
7350 (show_packet_config_cmd): Use packet_config_support.
7351 (add_packet_config_cmd): Use NULL as set callback.
7352 (packet_ok): "set remote foo-packet"-style commands no longer
7353 change config->supported -- adjust.
7354 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7355 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7356 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7357 (PACKET_QNonStop, PACKET_multiprocess_feature)
7358 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7359 (PACKET_DisconnectedTracing_feature)
7360 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7361 (set_remote_protocol_packet_cmd): Delete function.
7362 (packet_config_support, packet_support): New functions.
7363 (set_remote_protocol_Z_packet_cmd): Don't call
7364 update_packet_config.
7365 (remote_query_attached, remote_pass_signals)
7366 (remote_program_signals, remote_threads_info)
7367 (remote_threads_extra_info, remote_start_remote): Use
7368 packet_support.
7369 (remote_start_remote): Use packet_config_support and
7370 packet_support.
7371 (init_all_packet_configs): Set all packets to unknown support,
7372 instead of calling update_packet_config.
7373 (remote_check_symbols): Use packet_support.
7374 (remote_supported_packet): Unconditionally set the packet config's
7375 support status.
7376 (remote_multi_process_feature, remote_non_stop_feature)
7377 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7378 (remote_breakpoint_commands_feature)
7379 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7380 (remote_install_in_trace_feature)
7381 (remote_disconnected_tracing_feature)
7382 (remote_enable_disable_tracepoint_feature)
7383 (remote_string_tracing_feature)
7384 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7385 (remote_protocol_features): Adjust to use remote_supported_packet
7386 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7387 "ConditionalTracepoints", "ConditionalBreakpoints",
7388 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7389 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7390 "EnableDisableTracepoints", and "tracenz".
7391 (remote_query_supported): Use packet_support.
7392 (remote_open_1): Adjust.
7393 (extended_remote_attach_1): Use packet_support. Switch on the
7394 result of packet_ok instead of checking whether the packet ended
7395 up disabled.
7396 (remote_vcont_resume): Use packet_support.
7397 (remote_resume, remote_stop_ns, fetch_register_using_p)
7398 (remote_prepare_to_store, store_register_using_P)
7399 (check_binary_download, remote_write_bytes): Use packet_support.
7400 (remote_vkill): Use packet_support. Switch on the result of
7401 packet_ok instead of checking whether the packet ended up
7402 disabled.
7403 (extended_remote_supports_disable_randomization): Use
7404 packet_support.
7405 (extended_remote_run): Switch on the result of packet_ok instead
7406 of checking whether the packet ended up disabled.
7407 (remote_insert_breakpoint, remote_remove_breakpoint)
7408 (remote_insert_watchpoint, remote_remove_watchpoint)
7409 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7410 packet_support.
7411 (remote_search_memory): Use packet_config_support.
7412 (remote_get_thread_local_address, remote_get_tib_address)
7413 (remote_hostio_send_command, remote_can_execute_reverse): Use
7414 packet_support.
7415 (remote_supports_cond_tracepoints)
7416 (remote_supports_cond_breakpoints)
7417 (remote_supports_fast_tracepoints)
7418 (remote_supports_static_tracepoints)
7419 (remote_supports_install_in_trace)
7420 (remote_supports_enable_disable_tracepoint)
7421 (remote_supports_string_tracing)
7422 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7423 the packet config says the feature is enabled or disabled.
7424 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7425 (remote_get_trace_status): Use packet_support.
7426 (remote_set_disconnected_tracing): Adjust to check whether the
7427 feature is enabled with packet_support.
7428 (remote_set_trace_buffer_size, remote_use_agent)
7429 (remote_can_use_agent, remote_supports_btrace): Use
7430 packet_support.
7431 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7432 Use packet_config_support.
7433 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7434 the packet config says the feature is enabled or disabled.
7435 (set_range_stepping): Use packet_support.
7436
bdb52a22
TT
74372014-04-25 Tom Tromey <tromey@redhat.com>
7438
7439 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7440 argument.
7441
e9475ead
SA
74422014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7443
7444 * NEWS: Mention support for C99 variable length arrays.
7445
82eacd52
JB
74462014-04-24 Joel Brobecker <brobecker@adacore.com>
7447
7448 * ada-lang.c (standard_exc): Expand introductory comment.
7449
01f9f808
MS
74502014-04-24 Michael Sturm <michael.sturm@mintel.com>
7451 Walfred Tedeschi <walfred.tedeschi@intel.com>
7452
7453 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7454 AVX512 registers.
7455 (amd64_linux_read_description): Add code to handle AVX512 xstate
7456 mask and return respective tdesc.
7457 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7458 and features/i386/x32-avx512-linux.c.
7459 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7460 (amd64_linux_core_read_description): Add code to handle AVX512
7461 xstate mask and return respective tdesc.
7462 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7463 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7464 calculation.
7465 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7466 (tdesc_amd64_avx512_linux): New prototype.
7467 (tdesc_x32_avx512_linux): Likewise.
7468 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7469 features/i386/x32-avx512.c.
7470 (amd64_ymm_avx512_names): New register names for pseudo
7471 registers YMM16-31.
7472 (amd64_ymmh_avx512_names): New register names for raw registers
7473 YMMH16-31.
7474 (amd64_k_names): New register names for K registers.
7475 (amd64_zmmh_names): New register names for ZMM raw registers.
7476 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7477 (amd64_xmm_avx512_names): New register names for XMM16-31
7478 registers.
7479 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7480 registers.
7481 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7482 if feature is present.
7483 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7484 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7485 (AMD64_NUM_REGS): Adjust to new number of registers.
7486 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7487 registers supplied via XSTATE by AVX512 registers.
7488 (i386_linux_read_description): Add case for AVX512.
7489 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7490 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7491 (i386_linux_core_read_description): Add case for AVX512.
7492 (i386_linux_init_abi): Install supported register note section
7493 for AVX512.
7494 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7495 AVX512.
7496 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7497 registers to be number of zmm7h + 1.
7498 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7499 * i386-tdep.c: Include features/i386/i386-avx512.c.
7500 (i386_zmm_names): Add ZMM pseudo register names array.
7501 (i386_zmmh_names): Add ZMM raw register names array.
7502 (i386_k_names): Add K raw register names array.
7503 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7504 registers. AVX512 has 16 more ZMM registers than there are YMM
7505 registers.
7506 (i386_zmmh_regnum_p): Add function to look up register number of
7507 ZMM raw registers.
7508 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7509 (i386_k_regnum_p): Likewise for K raw registers.
7510 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7511 registers added by AVX512.
7512 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7513 registers added by AVX512.
7514 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7515 added by AVX512.
7516 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7517 (i386_pseudo_register_name): Add ZMM pseudo registers.
7518 (i386_zmm_type): Construct and return vector registers type for ZMM
7519 registers.
7520 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7521 ZMM0-31 pseudo registers and K registers.
7522 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7523 and YMM16-31 registers from register cache.
7524 (i386_pseudo_register_write): Add code to write K, ZMM and
7525 YMM16-31 registers.
7526 (i386_register_reggroup_p): Add code to include/exclude AVX512
7527 registers in/from respective register groups.
7528 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7529 registers if feature is present in xcr0.
7530 (i386_gdbarch_init): Add code to initialize AVX512 feature
7531 variables in tdep structure, wire in pseudo registers and call
7532 initialize_tdesc_i386_avx512.
7533 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7534 variables.
7535 (i386_regnum): Add AVX512 registers.
7536 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7537 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7538 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7539 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7540 512 bits wide.
7541 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7542 (i386_ymm_avx512_regnum_p): Likewise.
7543 (i386_k_regnum_p): Likewise.
7544 (i386_zmm_regnum_p): Likewise.
7545 (i386_zmmh_regnum_p): Likewise.
7546 * i387-tdep.c : Update year in copyright notice.
7547 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7548 XSAVE buffer.
7549 (XSAVE_YMM_AVX512_ADDR): New macro.
7550 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7551 XSAVE buffer.
7552 (XSAVE_XMM_AVX512_ADDR): New macro.
7553 (xsave_avx512_k_offset): New table for K register offsets in
7554 XSAVE buffer.
7555 (XSAVE_AVX512_K_ADDR): New macro.
7556 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7557 in XSAVE buffer.
7558 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7559 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7560 buffer.
7561 (i387_collect_xsave): Add code to collect AVX512 registers from
7562 XSAVE buffer.
7563 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7564 of XMM16-31 registers.
7565 (I387_NUM_K_REGS): New define for number of K registers.
7566 (I387_K0_REGNUM): New define for K0 register number.
7567 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7568 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7569 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7570 registers.
7571 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7572 (I387_XMM16_REGNUM): New define for XMM16 register number.
7573 (I387_YMM0_REGNUM): New define for YMM0 register number.
7574 (I387_KEND_REGNUM): New define for last K register number.
7575 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7576 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7577 number.
7578 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7579 number.
7580 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7581 size.
7582 * features/Makefile: Add AVX512 related files.
7583 * features/i386/32bit-avx512.xml: New file.
7584 * features/i386/64bit-avx512.xml: Likewise.
7585 * features/i386/amd64-avx512-linux.c: Likewise.
7586 * features/i386/amd64-avx512-linux.xml: Likewise.
7587 * features/i386/amd64-avx512.c: Likewise.
7588 * features/i386/amd64-avx512.xml: Likewise.
7589 * features/i386/i386-avx512-linux.c: Likewise.
7590 * features/i386/i386-avx512-linux.xml: Likewise.
7591 * features/i386/i386-avx512.c: Likewise.
7592 * features/i386/i386-avx512.xml: Likewise.
7593 * features/i386/x32-avx512-linux.c: Likewise.
7594 * features/i386/x32-avx512-linux.xml: Likewise.
7595 * features/i386/x32-avx512.c: Likewise.
7596 * features/i386/x32-avx512.xml: Likewise.
7597 * regformats/i386/amd64-avx512-linux.dat: New file.
7598 * regformats/i386/amd64-avx512.dat: Likewise.
7599 * regformats/i386/i386-avx512-linux.dat: Likewise.
7600 * regformats/i386/i386-avx512.dat: Likewise.
7601 * regformats/i386/x32-avx512-linux.dat: Likewise.
7602 * regformats/i386/x32-avx512.dat: Likewise.
7603 * NEWS: Add note about new support for AVX512.
7604
7605
08351840
PA
76062014-04-23 Pedro Alves <palves@redhat.com>
7607
7608 * breakpoint.c (insert_bp_location): Tolerate errors if the
7609 breakpoint is set in a user-loaded objfile.
7610 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7611 location is marked shlib_disabled. If the breakpoint is set in a
7612 user-loaded objfile is a GDB-side memory breakpoint, validate it
7613 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7614 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7615 flag.
7616 * mem-break.c (memory_validate_breakpoint): New function.
7617 * objfiles.c (userloaded_objfile_contains_address_p): New
7618 function.
7619 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7620 * target.h (memory_validate_breakpoint): New declaration.
7621
076855f9
PA
76222014-04-23 Pedro Alves <palves@redhat.com>
7623
7624 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7625 the breakpoint is set in a shared library, only suppress
7626 errors for software breakpoints, not hardware breakpoints.
7627
483805cf
PA
76282014-04-22 Pedro Alves <palves@redhat.com>
7629
7630 * infrun.c (schedlock_applies): New function, factored out from
7631 find_thread_needs_step_over.
7632 (find_thread_needs_step_over): Use it.
7633 (switch_back_to_stepped_thread): Always clear trap_expected if the
7634 step over is finished. Return early if scheduler locking applies.
7635 Look for the stepping thread and a potential step-over thread with
7636 a single loop.
7637 (currently_stepping_or_nexting_callback): Delete.
7638
a75fef0e
NC
76392014-04-22 Nick Clifton <nickc@redhat.com>
7640
7641 * NEWS: Mention that ARM sim now supports tracing.
7642
48b6e87e
YQ
76432014-04-22 Yao Qi <yao@codesourcery.com>
7644
7645 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7646 to ...
7647 * tracefile.c (tracefile_fetch_registers): ... it. New
7648 function.
7649 * tracefile.h (tracefile_fetch_registers): Declare.
7650 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7651 tracefile_fetch_registers.
7652
17617f2d
EZ
76532014-04-19 Eli Zaretskii <eliz@gnu.org>
7654
7655 PR gdb/14018
7656 * windows-nat.c (thread_rec): Don't display a warning when
7657 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7658 fails for any reason, set th->suspended to -1, so that we don't
7659 try to resume such a thread. Also, don't return NULL in these
7660 cases, to avoid completely ruin the session due to "PC register is
7661 not available" error.
7662 (do_windows_fetch_inferior_registers): Check errors in
7663 GetThreadContext call.
7664 (windows_continue): Accept an additional argument KILLED; if not
7665 zero, ignore errors in the SetThreadContext call, since the
7666 inferior was killed and is shutting down.
7667 (windows_resume, get_windows_debug_event)
7668 (windows_create_inferior, windows_mourn_inferior)
7669 (windows_kill_inferior): All callers of windows_continue changed
7670 to adjust to its new calling sequence.
7671
5723a6fd
YQ
76722014-04-19 Yao Qi <yao@codesourcery.com>
7673
7674 * ctf.c (ctf_open): Call post_create_inferior.
7675
614d5099
YQ
76762014-04-19 Yao Qi <yao@codesourcery.com>
7677
7678 * ctf.c (handle_id): New static variable.
7679 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7680 value. Get the declaration of event "register" and get length
7681 of field "contents".
7682
dac3e710
YQ
76832014-04-19 Yao Qi <yao@codesourcery.com>
7684
7685 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7686
2bca57ba
SC
76872014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7688
7689 * valops.c (oload_method_static): Remove unnecessary argument
7690 METHOD. Update all callers.
7691
51d48146
PA
76922014-04-18 Pedro alves <palves@redhat.com>
7693 Tom Tromey <tromey@redhat.com>
7694
7695 PR backtrace/15558
7696 * frame.c (get_prev_frame_1): Rename to ...
7697 (get_prev_frame_always): ... this, and make extern. Adjust.
7698 (skip_artificial_frames): Use get_prev_frame_always.
7699 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7700 (get_frame_unwind_stop_reason): Adjust to rename.
7701 * frame.h (get_prev_frame_always): Declare.
7702 * inline-frame.c: Include frame.h.
7703 (inline_frame_this_id): Use get_prev_frame_always.
7704
1bdad2e0
TG
77052014-04-18 Tristan Gingold <gingold@adacore.com>
7706
7707 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7708 code by using bfd_mach_o_get_base_address.
7709
7ce16bd4
UW
77102014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7711
7712 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7713 (spu_ax_pseudo_register_collect): New function.
7714 (spu_ax_pseudo_register_push_stack): Likewise.
7715 (spu_dwarf_reg_to_regnum): Likewise.
7716 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7717
2ed3c037
UW
77182014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7719
7720 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7721 Replace FRAME argument with FRAME_ID.
7722 * gdbarch.c, gdbarch.h: Regenerate.
7723 * findvar.c (default_value_from_register): Add GDBARCH argument;
7724 replace FRAME by FRAME_ID. No longer call get_frame_id.
7725 (value_from_register): Update call to gdbarch_value_from_register.
7726 * value.h (default_value_from_register): Update prototype.
7727 * s390-linux-tdep.c (s390_value_from_register): Update interface
7728 and call to default_value_from_register.
7729 * spu-tdep.c (spu_value_from_register): Likewise.
7730
7731 * findvar.c (address_from_register): Remove TYPE argument.
7732 Do not call value_from_register; use gdbarch_value_from_register
7733 with null_frame_id instead.
7734 * value.h (address_from_register): Update prototype.
7735 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7736 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7737 address_from_register interface change.
7738
71e50e83
YQ
77392014-04-17 Yao Qi <yao@codesourcery.com>
7740
7741 * gdbtypes.h: Update comments to link to types and macros'
7742 definitions.
7743
7a23c549
SC
77442014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7745
7746 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7747
22869d73
KS
77482014-04-16 Keith Seitz <keiths@redhat.com>
7749
7750 PR gdb/15827
7751 * dwarf2read.c (skip_one_die): Check that all relative-offset
7752 sibling DIEs fall within range of the current reader's buffer.
7753 (read_partial_die): Likewise.
7754
c4f87ca6
KS
77552014-04-16 Keith Seitz <keiths@redhat.com>
7756
7757 PR c++/16597
7758 * cp-namespace.c (lookup_symbol_file): If the type name of
7759 `this' is NULL, return immediately.
7760
b50c8614
KS
77612014-04-14 Keith Seitz <keiths@redhat.com>
7762
7763 PR c++/16253
7764 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7765 from symbol_matches_domain in symtab.c. All local callers
7766 of symbol_matches_domain updated.
7767 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7768 search STRUCT_DOMAIN.
7769 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7770 independently. standard_lookup will do that automatically.
7771 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7772 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7773 (cp_lookup_symbol_in_namespace): Likewise.
7774 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7775 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7776 may return a STRUCT_DOMAIN match.
7777 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7778 * cp-support.c: Include language.h.
7779 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7780 VAR_DOMAIN.
7781 * psymtab.c (match_partial_symbol): Compare the requested
7782 domain with the symbol's domain directly.
7783 (lookup_partial_symbol): Likewise.
7784 * symtab.c (lookup_symbol_in_language): Explain when/why
7785 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7786 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7787 appropriate languages.
7788 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7789 and moved to ada-lang.c
7790 (lookup_block_symbol): Explain that this function only returns
7791 symbol matching the requested DOMAIN.
7792 Compare the requested domain with the symbol's domain directly.
7793 (iterate_over_symbols): Compare the requested domain with the
7794 symbol's domain directly.
7795 * symtab.h (symbol_matches_domain): Remove.
7796
3d567982
TT
77972014-04-14 Tom Tromey <tromey@redhat.com>
7798
7799 PR c++/15246:
7800 * c-exp.y (type_aggregate_p): New function.
7801 (qualified_name, classify_inner_name): Use it.
7802 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7803 and TYPE_TARGET_TYPE of an enum type.
7804 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7805 an enum type.
7806 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7807 handle TYPE_DECLARED_CLASS.
7808 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7809 types.
7810 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7811 * valops.c (enum_constant_from_type): New function.
7812 (value_aggregate_elt): Use it.
7813 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7814 TYPE_CODE_ENUM.
7815
c848d642
TT
78162014-04-14 Tom Tromey <tromey@redhat.com>
7817
7818 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7819 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7820 const.
7821 * value.h (value_aggregate_elt): Update.
7822
0626fc76
TT
78232014-04-14 Tom Tromey <tromey@redhat.com>
7824
7825 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7826
5ecaaa66
SA
78272014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7828
7829 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7830 (evaluate_subexp_standard): Pass noside argument.
7831 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7832 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7833 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7834 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7835 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7836
1612e0c0
SA
78372014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7838
7839 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7840 points to a constant blob.
7841
c451ebe5
SA
78422014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7843
7844 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7845 property and store it as the high bound and flag the range accordingly.
7846 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7847 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7848 * gdbtypes.h (enum range_flags): New enum.
7849 (struct range_bounds): Add flags member.
7850
1d42e4c4
SA
78512014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7852
7853 * c-typeprint.c (c_type_print_varspec_suffix): Added
7854 check for not yet resolved high bound. If unresolved, print
7855 "variable length" string to the console instead of random
7856 length.
7857
9f1f738a
SA
78582014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7859
7860 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7861 value.
7862 (ada_template_to_fixed_record_type_1): Likewise.
7863 (ada_to_fixed_type_1): Likewise.
7864 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7865 (cp_print_value): Likewise.
7866 * d-valprint.c (dynamic_array_type): Likewise.
7867 * findvar.c (address_of_variable): Likewise.
7868 * jv-valprint.c (java_value_print): Likewise.
7869 * valops.c (value_ind): Likewise.
7870 * value.c (coerce_ref): Likewise.
7871
3c8452d4
SA
78722014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7873
7874 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7875 value and retrieve the dynamic type size.
7876
4ad88275
SA
78772014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7878
7879 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7880 passed to sizeof is dynamic evaluate the argument to compute the length.
7881
80180f79
SA
78822014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7883 Joel Brobecker <brobecker@adacore.com>
7884
7885 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7886 (dwarf2_evaluate_property): New function.
7887 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7888 * dwarf2read.c (attr_to_dynamic_prop): New function.
7889 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7890 attribute.
7891 * gdbtypes.c: Include dwarf2loc.h.
7892 (is_dynamic_type): New function.
7893 (resolve_dynamic_type): New function.
7894 (resolve_dynamic_bounds): New function.
7895 (get_type_length): New function.
7896 (check_typedef): Use get_type_length to compute type length.
7897 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7898 (TYPE_LOW_BOUND_KIND): New macro.
7899 (is_dynamic_type): New function prototype.
7900 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7901 to resolve dynamic properties of the type. Update comment.
7902 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7903
a1556843
RH
79042014-04-14 Richard Henderson <rth@redhat.com>
7905
7906 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7907
0be03e84
DE
79082014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7909 Doug Evans <xdje42@gmail.com>
7910
7911 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7912 dereference TYPE_CODE_REF values.
7913
6b662e19
JB
79142014-04-11 Joel Brobecker <brobecker@adacore.com>
7915
7916 Revert the following changes due to regressions:
7917
7918 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7919 (dwarf2_evaluate_property): New function.
7920 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7921 * dwarf2read.c (attr_to_dynamic_prop): New function.
7922 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7923 attribute.
7924 * gdbtypes.c: Include dwarf2loc.h.
7925 (is_dynamic_type): New function.
7926 (resolve_dynamic_type): New function.
7927 (resolve_dynamic_bounds): New function.
7928 (get_type_length): New function.
7929 (check_typedef): Use get_type_length to compute type length.
7930 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7931 (TYPE_LOW_BOUND_KIND): New macro.
7932 (is_dynamic_type): New function prototype.
7933 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7934 to resolve dynamic properties of the type. Update comment.
7935 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7936
7937 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7938 passed to sizeof is dynamic evaluate the argument to compute the length.
7939
7940 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7941 value and retrieve the dynamic type size.
7942
7943 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7944 (ada_template_to_fixed_record_type_1): Likewise.
7945 (ada_to_fixed_type_1): Likewise.
7946 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7947 (cp_print_value): Likewise.
7948 * d-valprint.c (dynamic_array_type): Likewise.
7949 * eval.c (evaluate_subexp_with_coercion): Likewise.
7950 * findvar.c (address_of_variable): Likewise.
7951 * jv-valprint.c (java_value_print): Likewise.
7952 * valops.c (value_ind): Likewise.
7953 * value.c (coerce_ref): Likewise.
7954
7955 * c-typeprint.c (c_type_print_varspec_suffix): Added
7956 check for not yet resolved high bound. If unresolved, print
7957 "variable length" string to the console instead of random
7958 length.
7959
7960 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7961 property and store it as the high bound and flag the range accordingly.
7962 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7963 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7964 * gdbtypes.h (enum range_flags): New enum.
7965 (struct range_bounds): Add flags member.
7966
7967 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7968 points to a constant blob.
7969
7970 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7971 (evaluate_subexp_standard): Pass noside argument.
7972 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7973 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7974 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7975 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7976 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7977
245a5f0b
KS
79782014-04-11 Keith Seitz <keiths@redhat.com>
7979
7980 PR c++/16675
7981 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7982 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7983 reference types.
7984
3bce8237
SA
79852014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7986
7987 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7988 (evaluate_subexp_standard): Pass noside argument.
7989 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7990 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7991 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7992 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7993 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7994
92b09522
SA
79952014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7996
7997 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7998 points to a constant blob.
7999
e1969afb
SA
80002014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8001
8002 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8003 property and store it as the high bound and flag the range accordingly.
8004 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8005 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8006 * gdbtypes.h (enum range_flags): New enum.
8007 (struct range_bounds): Add flags member.
8008
b86138fb
SA
80092014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8010
8011 * c-typeprint.c (c_type_print_varspec_suffix): Added
8012 check for not yet resolved high bound. If unresolved, print
8013 "variable length" string to the console instead of random
8014 length.
8015
bcd629a4
SA
80162014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8017
8018 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8019 (ada_template_to_fixed_record_type_1): Likewise.
8020 (ada_to_fixed_type_1): Likewise.
8021 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8022 (cp_print_value): Likewise.
8023 * d-valprint.c (dynamic_array_type): Likewise.
8024 * eval.c (evaluate_subexp_with_coercion): Likewise.
8025 * findvar.c (address_of_variable): Likewise.
8026 * jv-valprint.c (java_value_print): Likewise.
8027 * valops.c (value_ind): Likewise.
8028 * value.c (coerce_ref): Likewise.
8029
04b19544
SA
80302014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8031
8032 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8033 value and retrieve the dynamic type size.
8034
26cb189f
SA
80352014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8036
8037 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8038 passed to sizeof is dynamic evaluate the argument to compute the length.
8039
37c1ab67
SA
80402014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8041
8042 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8043 (dwarf2_evaluate_property): New function.
8044 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8045 * dwarf2read.c (attr_to_dynamic_prop): New function.
8046 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8047 attribute.
8048 * gdbtypes.c: Include dwarf2loc.h.
8049 (is_dynamic_type): New function.
8050 (resolve_dynamic_type): New function.
8051 (resolve_dynamic_bounds): New function.
8052 (get_type_length): New function.
8053 (check_typedef): Use get_type_length to compute type length.
8054 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8055 (TYPE_LOW_BOUND_KIND): New macro.
8056 (is_dynamic_type): New function prototype.
8057 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8058 to resolve dynamic properties of the type. Update comment.
8059 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8060
729efb13
SA
80612014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8062
8063 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8064 declaring high/low bounds and change uses accordingly. Call
8065 create_range_type instead of create_static_range_type.
8066 * gdbtypes.c (create_range_type): New function.
8067 (create_range_type): Convert bounds into struct bound_prop and pass
8068 them to create_range_type.
8069 * gdbtypes.h (struct bound_prop): New struct.
8070 (create_range_type): New function prototype.
8071 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8072 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8073 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8074 part of the bound.
8075 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8076
0c9c3474
SA
80772014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8078
8079 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8080 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8081 * ada-lang.c: All uses of create_range_type updated.
8082 * coffread.c: All uses of create_range_type updated.
8083 * dwarf2read.c: All uses of create_range_type updated.
8084 * f-exp.y: All uses of create_range_type updated.
8085 * m2-valprint.c: All uses of create_range_type updated.
8086 * mdebugread.c: All uses of create_range_type updated.
8087 * stabsread.c: All uses of create_range_type updated.
8088 * valops.c: All uses of create_range_type updated.
8089 * valprint.c: All uses of create_range_type updated.
8090
9d497a19
PA
80912014-04-10 Pedro Alves <palves@redhat.com>
8092
8093 * breakpoint.c (single_step_breakpoints)
8094 (single_step_gdbarch): Move up in the file.
8095 (one_breakpoint_xfer_memory): New function, factored out from ...
8096 (breakpoint_xfer_memory): ... here. Also process single-step
8097 breakpoints.
8098
15a9128a
TG
80992014-04-09 Tristan Gingold <gingold@adacore.com>
8100
8101 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8102 comments.
8103 (darwin_decode_exception_message): Free port only after use.
8104
9c97a070
PL
81052014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8106
8107 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8108 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8109 when setting the size of call_length.
8110
7af389b8
SC
81112014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8112
8113 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8114 dereference TYPE_CODE_REF values.
8115
86ad98c3
JB
81162014-04-07 Joel Brobecker <brobecker@adacore.com>
8117
8118 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8119 end of warning message.
8120
b0aeadb3
DE
81212014-04-03 Doug Evans <dje@google.com>
8122
8123 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8124 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8125
5979d6b6
AM
81262014-04-02 Alan Modra <amodra@gmail.com>
8127
8128 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8129 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8130 (struct symbol_file_add_from_memory_args): Add size field.
8131 (find_vdso_size): New function.
8132 (add_vsyscall_page): Attempt to find vdso size.
8133
0d60c288
DE
81342014-04-01 Doug Evans <dje@google.com>
8135
8136 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8137
a41f2563
TG
81382014-04-01 Tristan Gingold <gingold@adacore.com>
8139
8140 * darwin-nat.c (darwin_encode_reply): Add prototype.
8141 (darwin_decode_exception_message): Reply to unknown inferiors.
8142 (darwin_decode_message): Handle message by id. Ignore message
8143 to unknown inferior.
8144 (darwin_wait): Discard unknown messages, add debug trace.
8145
11a865c8
DE
81462014-03-31 Doug Evans <dje@google.com>
8147
8148 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8149 comp_dir_string.
8150
770e7fc7
DE
81512014-03-31 Doug Evans <dje@google.com>
8152
8153 New option "set print symbol-loading".
8154 * NEWS: Mention it.
8155 * solib.c (solib_read_symbols): Only print symbol loading messages
8156 if requested.
8157 (solib_add): If symbol loading is in "brief" mode, notify user
8158 symbols are being loaded.
8159 (reload_shared_libraries_1): Ditto.
8160 * symfile.c (print_symbol_loading_off): New static global.
8161 (print_symbol_loading_brief): New static global.
8162 (print_symbol_loading_full): New static global.
8163 (print_symbol_loading_enums): New static global.
8164 (print_symbol_loading): New static global.
8165 (print_symbol_loading_p): New function.
8166 (symbol_file_add_with_addrs): Only print symbol loading messages
8167 if requested.
8168 (_initialize_symfile): Register "print symbol-loading" set/show
8169 command.
8170 * symfile.h (print_symbol_loading_p): Declare.
8171
c32c64b7
DE
81722014-03-30 Doug Evans <xdje42@gmail.com>
8173
8174 * infrun.c (set_last_target_status): New function.
8175 (handle_inferior_event): Call it.
8176
7c0bc051
DE
81772014-03-30 Doug Evans <xdje42@gmail.com>
8178
8179 * inferior.h (enum stop_kind): Improve comment.
8180
8776cfe9
JB
81812014-03-28 Joel Brobecker <brobecker@adacore.com>
8182
8183 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8184 a reference, strip the reference layer before calling
8185 the lang_ops value_has_mutated callback.
8186
410a0ff2
SDJ
81872014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8188
8189 Remove some globals from our parser.
8190 * language.c (unk_lang_parser): Add "struct parser_state"
8191 argument.
8192 * language.h (struct language_defn) <la_parser>: Likewise.
8193 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8194 (initialize_expout): Add "struct parser_state" argument.
8195 Rewrite function to use the parser state.
8196 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8197 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8198 write_exp_elt_longcst, write_exp_elt_dblcst,
8199 write_exp_elt_decfloatcst, write_exp_elt_type,
8200 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8201 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8202 write_dollar_variable): Likewise.
8203 (parse_exp_in_context_1): Use parser state.
8204 (insert_type_address_space): Add "struct parser_state" argument.
8205 Use parser state.
8206 (increase_expout_size): New function.
8207 * parser-defs.h: Forward declare "struct language_defn" and
8208 "struct parser_state".
8209 (expout, expout_size, expout_ptr): Remove extern declarations.
8210 (parse_gdbarch, parse_language): Rewrite macro declarations to
8211 accept the parser state.
8212 (struct parser_state): New struct.
8213 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8214 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8215 write_exp_elt_decfloatcst, write_exp_elt_type,
8216 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8217 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8218 write_exp_msymbol, write_dollar_variable,
8219 mark_struct_expression, insert_type_address_space): Add "struct
8220 parser_state" argument.
8221 (increase_expout_size): New function.
8222 * utils.c (do_clear_parser_state): New function.
8223 (make_cleanup_clear_parser_state): Likewise.
8224 * utils.h (make_cleanup_clear_parser_state): New function
8225 prototype.
8226 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8227 Update calls to write_exp* in order to pass the parser state.
8228 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8229 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8230 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8231 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8232 * stap-probe.c (stap_parse_register_operand): Likewise.
8233 (stap_parse_single_operand): Likewise.
8234 (stap_parse_argument_1): Likewise.
8235 (stap_parse_argument): Use parser state.
8236 * stap-probe.h: Include "parser-defs.h".
8237 (struct stap_parse_info) <pstate>: New field.
8238 * c-exp.y (parse_type): Rewrite to use parser state.
8239 (yyparse): Redefine to c_parse_internal.
8240 (pstate): New global variable.
8241 (parse_number): Add "struct parser_state" argument.
8242 (write_destructor_name): Likewise.
8243 (type_exp): Update calls to write_exp* and similars in order to
8244 use parser state.
8245 (exp1, exp, variable, qualified_name, space_identifier,
8246 typename, typebase): Likewise.
8247 (write_destructor_name, parse_number, lex_one_token,
8248 classify_name, classify_inner_name, c_parse): Add "struct
8249 parser_state" argument. Update function to use parser state.
8250 * c-lang.h: Forward declare "struct parser_state".
8251 (c_parse): Add "struct parser_state" argument.
8252 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8253 (yyparse): Redefine macro to ada_parse_internal.
8254 (pstate): New variable.
8255 (write_int, write_object_renaming, write_var_or_type,
8256 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8257 type_int, type_long, type_long_long, type_float, type_double,
8258 type_long_double, type_char, type_boolean, type_system_address):
8259 Add "struct parser_state" argument.
8260 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8261 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8262 var_or_type, aggregate, aggregate_component_list,
8263 positional_list, others, component_group,
8264 component_associations): Update calls to write_exp* and similar
8265 functions in order to use parser state.
8266 (ada_parse, write_var_from_sym, write_int,
8267 write_exp_op_with_string, write_object_renaming,
8268 find_primitive_type, write_selectors, write_ambiguous_var,
8269 write_var_or_type, write_name_assoc, type_int, type_long,
8270 type_long_long, type_float, type_double, type_long_double,
8271 type_char, type_boolean, type_system_address): Add "struct
8272 parser_state" argument. Adjust function to use parser state.
8273 * ada-lang.c (parse): Likewise.
8274 * ada-lang.h: Forward declare "struct parser_state".
8275 (ada_parse): Add "struct parser_state" argument.
8276 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8277 calls to both functions.
8278 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8279 parser state.
8280 (yyparse): Redefine macro to f_parse_internal.
8281 (pstate): New variable.
8282 (parse_number): Add "struct parser_state" argument.
8283 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8284 and similars in order to use parser state.
8285 (parse_number): Adjust code to use parser state.
8286 (yylex): Likewise.
8287 (f_parse): New function.
8288 * f-lang.h: Forward declare "struct parser_state".
8289 (f_parse): Add "struct parser_state" argument.
8290 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8291 parser state.
8292 (yyparse): Redefine macro for java_parse_internal.
8293 (pstate): New variable.
8294 (push_expression_name, push_expression_name, insert_exp): Add
8295 "struct parser_state" argument.
8296 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8297 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8298 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8299 PostIncrementExpression, PostDecrementExpression,
8300 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8301 UnaryExpressionNotPlusMinus, CastExpression,
8302 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8303 RelationalExpression, EqualityExpression, AndExpression,
8304 ExclusiveOrExpression, InclusiveOrExpression,
8305 ConditionalAndExpression, ConditionalOrExpression,
8306 ConditionalExpression, Assignment, LeftHandSide): Update
8307 calls to write_exp* and similars in order to use parser state.
8308 (parse_number): Ajust code to use parser state.
8309 (yylex): Likewise.
8310 (java_parse): New function.
8311 (push_variable): Add "struct parser_state" argument. Adjust
8312 code to user parser state.
8313 (push_fieldnames, push_qualified_expression_name,
8314 push_expression_name, insert_exp): Likewise.
8315 * jv-lang.h: Forward declare "struct parser_state".
8316 (java_parse): Add "struct parser_state" argument.
8317 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8318 parser state.
8319 (yyparse): Redefine macro to m2_parse_internal.
8320 (pstate): New variable.
8321 (type_exp, exp, fblock, variable, type): Update calls to
8322 write_exp* and similars to use parser state.
8323 (yylex): Likewise.
8324 (m2_parse): New function.
8325 * m2-lang.h: Forward declare "struct parser_state".
8326 (m2_parse): Add "struct parser_state" argument.
8327 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8328 * objc-lang.h: Forward declare "struct parser_state".
8329 (end_msglist): Add "struct parser_state" argument.
8330 * p-exp.y (parse_type): Rewrite macro to use parser state.
8331 (yyparse): Redefine macro to pascal_parse_internal.
8332 (pstate): New variable.
8333 (parse_number): Add "struct parser_state" argument.
8334 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8335 write_exp* and similars in order to use parser state.
8336 (parse_number, yylex): Adjust code to use parser state.
8337 (pascal_parse): New function.
8338 * p-lang.h: Forward declare "struct parser_state".
8339 (pascal_parse): Add "struct parser_state" argument.
8340 * go-exp.y (parse_type): Rewrite macro to use parser state.
8341 (yyparse): Redefine macro to go_parse_internal.
8342 (pstate): New variable.
8343 (parse_number): Add "struct parser_state" argument.
8344 (type_exp, exp1, exp, variable, type): Update calls to
8345 write_exp* and similars in order to use parser state.
8346 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8347 to use parser state.
8348 (go_parse): Likewise.
8349 * go-lang.h: Forward declare "struct parser_state".
8350 (go_parse): Add "struct parser_state" argument.
8351
342587c4
DE
83522014-03-27 Doug Evans <dje@google.com>
8353
8354 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8355
33e80786
DE
83562014-03-27 Doug Evans <dje@google.com>
8357
8358 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8359 Remove argument abbrev_section. All callers updated.
8360
1dbab08b
DE
83612014-03-27 Doug Evans <dje@google.com>
8362
8363 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8364 addr_base, ranges_base.
8365
318d3177
KS
83662014-03-26 Keith Seitz <keiths@redhat.com>
8367
8368 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8369 types, not VAR_DOMAIN.
8370
1e54db15
SL
83712014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8372
8373 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8374 "ra" registers.
8375 * features/nios2-linux.c: Regenerated.
8376 * features/nios2.c: Regenerated.
8377
d3839ede
PA
83782014-03-25 Pedro Alves <palves@redhat.com>
8379
8380 * cli/cli-script.c (script_from_file): Force the interpreter to
8381 sync mode.
8382
7588d2ec
PL
83832014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8384
8385 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8386 small stack allocation.
8387
a6290449
TG
83882014-03-24 Tristan Gingold <gingold@adacore.com>
8389
8390 * darwin-nat.c (exc_server): Remove unused prototype.
8391 (darwin_dump_message): Correctly display data on x86_64.
8392 (darwin_encode_reply): Fix style.
8393 Add comments and fix indentation.
8394
31ae9d24 83952014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
8396
8397 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8398
6339bfc4
DE
83992014-03-22 Doug Evans <xdje42@gmail.com>
8400
8401 * infcmd.c: Whitespace fixes.
8402 (interrupt_command): Merge two function comments into one.
8403
0a07590b
DE
84042014-03-22 Doug Evans <xdje42@gmail.com>
8405
8406 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8407 All uses updated.
8408
b55fbac4
YQ
84092014-03-22 Yao Qi <yao@codesourcery.com>
8410
8411 * remote.c (target_read_live_memory): Remove.
8412 (memory_xfer_live_readonly_partial): Rename it to
8413 remote_xfer_live_readonly_partial. Remove argument 'object'.
8414 All callers updated. Call remote_read_bytes_1
8415 instead of target_read_live_memory.
8416 * tracepoint.c (set_traceframe_number): Remove.
8417 (make_cleanup_restore_traceframe_number): Likewise .
8418 * tracepoint.h (set_traceframe_number): Remove declaration.
8419 (make_cleanup_restore_traceframe_number): Likewise.
8420
9217e74e
YQ
84212014-03-22 Yao Qi <yao@codesourcery.com>
8422
8423 * remote.c (remote_read_bytes): Move code on reading from the
8424 remote stub to ...
8425 (remote_read_bytes_1): ... here. New function.
8426
8acf9577
YQ
84272014-03-22 Yao Qi <yao@codesourcery.com>
8428
8429 * ctf.c (ctf_xfer_partial): Check the return value of
8430 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8431 return TARGET_XFER_UNAVAILABLE.
8432 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8433 * target.c (target_read_live_memory): Move it to remote.c.
8434 (memory_xfer_live_readonly_partial): Likewise.
8435 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8436 * remote.c (target_read_live_memory): Moved from target.c.
8437 (memory_xfer_live_readonly_partial): Likewise.
8438 (remote_read_bytes): Factored out from
8439 memory_xfer_partial_1.
8440
feef67ab
DE
84412014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8442
8443 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8444 NULL pointer.
8445
b65dc60b
PA
84462014-03-21 Pedro Alves <palves@redhat.com>
8447
8448 * infrun.c (normal_stop): Extend comment.
8449
b4ab256d
HZ
84502014-03-21 Hui Zhu <hui@codesourcery.com>
8451 Pedro Alves <palves@redhat.com>
8452
8453 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8454 static buffer.
8455 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8456 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8457 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8458
deba7593
MR
84592014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8460
8461 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8462 `z' formatted output modifier.
8463
1bff71c3
SDJ
84642014-03-20 Tom Tromey <tromey@redhat.com>
8465 Sergio Durigan Junior <sergiodj@redhat.com>
8466
8467 * probe.c (parse_probes): Turn assert into an ordinary error.
8468 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8469 exceptions when parsing probes. Rearrange the code for clarity.
8470
90e28950
TT
84712014-03-20 Tom Tromey <tromey@redhat.com>
8472
8473 PR gdb/14135
8474 * top.c (execute_command): Only dispatch events if the command
8475 started the target.
8476
beb460e8
PA
84772014-03-20 Tom Tromey <tromey@redhat.com>
8478
8479 PR cli/15718
8480 * infcall.c: Include event-top.h.
8481 (run_inferior_call): Call async_disable_stdin if needed.
8482
99619bea
PA
84832014-03-20 Pedro Alves <palves@redhat.com>
8484
8485 * infrun.c (prepare_to_proceed): Delete.
8486 (thread_still_needs_step_over): New function.
8487 (find_thread_needs_step_over): New function.
8488 (proceed): If the current thread needs a step-over, set its
8489 steping_over_breakpoint flag. Adjust to use
8490 find_thread_needs_step_over instead of prepare_to_proceed.
8491 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8492 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8493 breakpoint.
8494 (switch_back_to_stepped_thread): Step over breakpoints of all
8495 threads not the stepping thread, before switching back to the
8496 stepping thread.
8497
2adfaa28
PA
84982014-03-20 Pedro Alves <palves@redhat.com>
8499
8500 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8501 extern.
8502 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8503 * infrun.c (saved_singlestep_ptid)
8504 (stepping_past_singlestep_breakpoint): Delete.
8505 (resume): Remove stepping_past_singlestep_breakpoint handling.
8506 (proceed): Store the prev_pc of the stepping thread too.
8507 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8508 singlestep_pc.
8509 (enum infwait_states): Delete infwait_thread_hop_state.
8510 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8511 field.
8512 (handle_inferior_event): Adjust.
8513 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8514 handling and the thread-hop code. Before removing single-step
8515 breakpoints, check whether the thread hit a single-step breakpoint
8516 of another thread. If it did, the trap is not a random signal.
8517 (switch_back_to_stepped_thread): If the event thread hit a
8518 single-step breakpoint, unblock it before switching to the
8519 stepping thread. Handle the case of the stepped thread having
8520 advanced already.
8521 (keep_going): Handle the case of the current thread moving past a
8522 single-step breakpoint.
8523
31e77af2
PA
85242014-03-20 Pedro Alves <palves@redhat.com>
8525
8526 PR breakpoints/7143
8527 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8528 are being stepped over.
8529 (breakpoint_address_match): Make extern.
8530 * breakpoint.h (breakpoint_address_match): New declaration.
8531 * inferior.h (stepping_past_instruction_at): New declaration.
8532 * infrun.c (struct step_over_info): New type.
8533 (step_over_info): New global.
8534 (set_step_over_info, clear_step_over_info)
8535 (stepping_past_instruction_at): New functions.
8536 (handle_inferior_event): Clear the step-over info when
8537 trap_expected is cleared.
8538 (resume): Remove now stale comment.
8539 (clear_proceed_status): Clear step-over info.
8540 (proceed): Adjust step-over handling to set or clear the step-over
8541 info instead of removing all breakpoints.
8542 (handle_signal_stop): When setting up a thread-hop, don't remove
8543 breakpoints here.
8544 (stop_stepping): Clear step-over info.
8545 (keep_going): Adjust step-over handling to set or clear step-over
8546 info and then always inserting breakpoints, instead of removing
8547 all breakpoints when stepping over one.
8548
b9f437de
PA
85492014-03-20 Pedro Alves <palves@redhat.com>
8550
8551 * infrun.c (previous_inferior_ptid): Adjust comment.
8552 (deferred_step_ptid): Delete.
8553 (infrun_thread_ptid_changed, prepare_to_proceed)
8554 (init_wait_for_inferior): Adjust.
8555 (handle_signal_stop): Delete deferred_step_ptid handling.
8556
06c868a8
JK
85572014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8558
8559 PR gdb/15358
8560 * defs.h (sync_quit_force_run): New declaration.
8561 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8562 * event-top.c (async_sigterm_handler): New declaration.
8563 (async_sigterm_token): New variable.
8564 (async_init_signals): Create also async_sigterm_token.
8565 (async_sigterm_handler): New function.
8566 (sync_quit_force_run): New variable.
8567 (handle_sigterm): Replace quit_force call by other calls.
8568 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8569
dea80df0
MR
85702014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8571
8572 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8573 offset into SPE pseudo registers.
8574
0c7e1a46
PA
85752014-03-18 Pedro Alves <palves@redhat.com>
8576
8577 PR gdb/13860
8578 * inferior.h (print_stop_event): Declare.
8579 * infrun.c (print_stop_event): New, factored out from ...
8580 (normal_stop): ... this.
8581 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8582 of bpstat_print/print_stack_frame.
8583
9c1fcd01
TT
85842014-03-17 Tom Tromey <tromey@redhat.com>
8585
8586 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8587
11aa919a
PMR
85882014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8589
8590 * ada-lang.c (decode_constrained_packed_array): Perform a
8591 minimal coercion for reference with coerce_ref instead of
8592 ada_coerce_ref.
8593
d4ccb5e0
TG
85942014-03-17 Tristan Gingold <gingold@adacore.com>
8595
8596 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8597 (darwin_solib_create_inferior_hook): Emit a warning if version
8598 is unhandled.
8599
49840f2a
UW
86002014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8601
8602 * python/py-value.c (get_field_flag): Cast flag_name argument to
8603 PyObject_GetAttrString to support Python 2.4.
8604
ed4123e5
JK
86052014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8606
8607 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8608 (Global Maintainers): Remove Jan Kratochvil.
8609
d6b64346
PA
86102014-03-14 Pedro Alves <palves@redhat.com>
8611
8612 * inferior.h (terminal_ours_for_output): Rename to ...
8613 (child_terminal_ours_for_output): ... this.
8614 (terminal_save_ours): Rename to ...
8615 (child_terminal_save_ours): ... this.
8616 (terminal_ours): Rename to ...
8617 (child_terminal_ours): ... this.
8618 (terminal_inferior): Rename to ...
8619 (child_terminal_inferior): ... this.
8620 (terminal_init_inferior): Rename to ...
8621 (child_terminal_init_inferior): ... this.
8622 (terminal_init_inferior_with_pgrp): Rename to ...
8623 (child_terminal_init_inferior_with_pgrp): ... this.
8624 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8625 (child_terminal_init_with_pgrp): ... this.
8626 (terminal_save_ours): Rename to ...
8627 (child_terminal_save_ours): ... this.
8628 (terminal_init_inferior): Rename to ...
8629 (child_terminal_init): ... this. Adjust.
8630 (terminal_inferior): Rename to ...
8631 (child_terminal_inferior): ... this.
8632 (terminal_ours_for_output): Rename to ...
8633 (child_terminal_ours_for_output): ... this. Adjust.
8634 (terminal_ours): Rename to ...
8635 (child_terminal_ours): ... this.
8636 (terminal_ours_1): Rename to ...
8637 (child_terminal_ours_1): ... this. Adjust.
8638 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8639 * windows-nat.c (do_initial_windows_stuff): Adjust.
8640 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8641 (gnu_terminal_init): ... this. Adjust.
8642 (gnu_target): Adjust.
8643 * inf-child.c (inf_child_target): Adjust.
8644
5a1e8c7a
DE
86452014-03-13 Doug Evans <xdje42@gmail.com>
8646
8647 PR guile/16612
8648 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8649 new eq?-hashtab.
8650
350e1a76
DE
86512014-03-13 Doug Evans <xdje42@gmail.com>
8652
8653 * value.c (record_latest_value): Call release_value_or_incref
8654 instead of release_value.
8655
a69900ae
PA
86562014-03-13 Pedro Alves <palves@redhat.com>
8657
8658 * procfs.c (procfs_target): Don't override to_shortname,
8659 to_longname or to_doc.
8660
5db9f0bd
PA
86612014-03-13 Pedro Alves <palves@redhat.com>
8662
8663 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8664 Unix in user visible strings.
8665
5e3a2c38
SS
86662014-03-12 Stan Shebs <stan@codesourcery.com>
8667
8668 * gdbtypes.h: Annotate comments for Doxygen, add a page
8669 block comment with some general info.
8670
8bc2fe48
PA
86712014-03-12 Pedro Alves <palves@redhat.com>
8672
8673 * infcmd.c (prepare_execution_command): New function, factored out
8674 from several execution commands.
8675 (run_command_1, continue_command, step_1, jump_command)
8676 (signal_command, until_command, advance_command, finish_command)
8677 (attach_command): Use prepare_execution_command.
8678
638c5f49
OJ
86792014-03-12 Omair Javaid <omair.javaid@linaro.org>
8680
8681 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8682 (MAX_BPTS): Define.
8683 (MAX_WPTS): Define.
8684 (struct arm_linux_thread_points): Removed.
8685 (struct arm_linux_process_info): New.
8686 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8687 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8688 (arm_linux_find_breakpoints_by_tid): Removed.
8689 (struct arch_lwp_info): New.
8690 (arm_linux_find_process_pid): New functions.
8691 (arm_linux_add_process): New functions.
8692 (arm_linux_process_info_get): New functions.
8693 (arm_linux_forget_process): New function.
8694 (arm_linux_get_debug_reg_state): New function.
8695 (struct update_registers_data): New.
8696 (update_registers_callback): New function.
8697 (arm_linux_insert_hw_breakpoint1): Updated.
8698 (arm_linux_remove_hw_breakpoint1): Updated.
8699 (arm_linux_insert_hw_breakpoint): Updated.
8700 (arm_linux_remove_hw_breakpoint): Updated.
8701 (arm_linux_insert_watchpoint): Updated.
8702 (arm_linux_remove_watchpoint): Updated.
8703 (arm_linux_new_thread): Updated.
8704 (arm_linux_prepare_to_resume): New function.
8705 (arm_linux_new_fork): New function.
8706 (_initialize_arm_linux_nat): Updated.
8707
6d03af93
PA
87082014-03-12 Pedro Alves <palves@redhat.com>
8709
8710 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8711
b3ccfe11
TT
87122014-03-12 Tom Tromey <tromey@redhat.com>
8713
8714 * inf-child.c (return_zero): New function.
8715 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8716 * aix-thread.c (aix_thread_inferior_created): New function.
8717 (aix_thread_attach): Remove.
8718 (init_aix_thread_ops): Don't set to_attach.
8719 (_initialize_aix_thread): Register inferior_created observer.
8720 * corelow.c (init_core_ops): Don't set to_attach or
8721 to_create_inferior.
8722 * exec.c (init_exec_ops): Don't set to_attach or
8723 to_create_inferior.
8724 * infcmd.c (run_command_1): Use find_run_target. Make direct
8725 target calls.
8726 (attach_command): Use find_attach_target. Make direct target
8727 calls.
8728 * record-btrace.c (init_record_btrace_ops): Don't set
8729 to_create_inferior.
8730 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8731 Remove.
8732 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8733 set to_create_inferior.
8734 * target.c (complete_target_initialization): Add assertion.
8735 (target_create_inferior): Remove.
8736 (find_default_attach, find_default_create_inferior): Remove.
8737 (find_attach_target, find_run_target): New functions.
8738 (find_default_is_async_p, find_default_can_async_p)
8739 (target_supports_non_stop, target_attach): Remove.
8740 (init_dummy_target): Don't set to_create_inferior or
8741 to_supports_non_stop.
8742 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8743 TARGET_DEFAULT_FUNC.
8744 <to_create_inferior>: Add comment.
8745 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8746 TARGET_DEFAULT_RETURN.
8747 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8748 (find_attach_target, find_run_target): Declare.
8749 (target_create_inferior): Remove.
8750 (target_has_execution_1): Update comment.
8751 (target_supports_non_stop): Remove.
8752 * target-delegates.c: Rebuild.
8753
91f83b02
PA
87542014-03-12 Pedro Alves <palves@redhat.com>
8755
8756 * inf-child.h: Update comment to not mention Unix.
8757
f1aea813
PA
87582014-03-12 Pedro Alves <palves@redhat.com>
8759
8760 * inf-child.c: Update top comment to not mention Unix. Add
8761 generic comment describing how this target is meant to be used.
8762 (inf_child_post_attach, inf_child_post_startup_inferior)
8763 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8764 Unix in comment.
8765
ee8e9165
PA
87662014-03-12 Pedro Alves <palves@redhat.com>
8767
8768 * nto-procfs.c: Include inf-child.h.
8769 (procfs_ops): Delete global.
8770 (procfs_can_run): Delete method.
8771 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8772 target pointer instead of referencing procfs_ops.
8773 (procfs_prepare_to_store): Delete.
8774 (init_procfs_ops): Delete function.
8775 (procfs_target): New function, based on init_procfs_ops, but
8776 inherit inf_child_target.
8777 (_initialize_procfs): Use procfs_target.
8778
51a9c8c5
PA
87792014-03-12 Pedro Alves <palves@redhat.com>
8780
8781 * windows-nat.c: Include inf-child.h.
8782 (windows_ops): Delete global.
8783 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8784 methods.
8785 (init_windows_ops): Delete function.
8786 (windows_target): New function, based on init_windows_ops, but
8787 inherit inf_child_target.
8788 (_initialize_windows_nat): Use windows_target. Install x86
8789 specific target methods here.
8790
c1966e26
DE
87912014-03-10 Doug Evans <xdje42@gmail.com>
8792
8793 * guile/guile.c (call_initialize_gdb_module): New function.
8794 (initialize_guile): Replace call to scm_init_guile with call to
8795 scm_with_guile.
8796
023db19c
JB
87972014-03-10 Joel Brobecker <brobecker@adacore.com>
8798
8799 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8800 in call to TYPE_CODE macro.
8801
5ec18f2b
JG
88022014-03-10 Jerome Guitton <guitton@adacore.com>
8803
8668be63
JB
8804 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8805 Resolve tagged types to full view.
5ec18f2b 8806
7d03f2eb
HZ
88072014-03-10 Hui Zhu <hui@codesourcery.com>
8808
8809 * target.h (target_insert_breakpoint): Remove "hardware" from its
8810 comments.
8811
c5164cbc
DE
88122014-03-07 Doug Evans <dje@google.com>
8813
8814 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8815
c4a3fee2
DE
88162014-03-07 Doug Evans <dje@google.com>
8817
8818 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8819 Remove unused local comp_dir_attr. Assert exactly one of
8820 stub_comp_unit_die, stub_comp_dir is non-NULL.
8821
3156469c
JB
88222014-03-07 Joel Brobecker <brobecker@adacore.com>
8823
8824 * target.h (complete_target_initialization, add_target):
8825 Add comment.
8826
c1a7b7c6
PA
88272014-03-07 Pedro Alves <palves@redhat.com>
8828
8829 * go32-nat.c: Include inf-child.h.
8830 (go32_ops): Delete global.
8831 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8832 Delete methods.
8833 (go32_create_inferior): Push the passed in target pointer instead
8834 of referencing go32_ops.
8835 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8836 (go32_target): New function, based on init_go32_ops, but inherit
8837 inf_child_target.
8838 (_initialize_go32_nat): Use go32_target. Move parts of
8839 init_go32_ops here.
8840
d3c1a85f
JB
88412014-03-06 Joel Brobecker <brobecker@adacore.com>
8842
8843 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8844 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8845 SYMBOL_VALUE_ADDRESS.
8846 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8847
5fa1d40e
YQ
88482014-03-06 Yao Qi <yao@codesourcery.com>
8849
8850 * breakpoint.c (get_tracepoint_by_number): Remove argument
8851 optional_p. All callers updated. Adjust comments. Update
8852 output message.
8853 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8854
0c13193f
YQ
88552014-03-06 Yao Qi <yao@codesourcery.com>
8856
8857 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8858 early if get_number returns zero. Use 'p' instead of 'args'.
8859
2217da06
YQ
88602014-03-06 Yao Qi <yao@codesourcery.com>
8861
8862 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8863 message.
8864
cc3da688
YQ
88652014-03-06 Yao Qi <yao@codesourcery.com>
8866
8867 PR breakpoints/16508
8868 * tracepoint.c (check_trace_running): New function.
8869 (trace_find_command): Move code to check_trace_running and
8870 call check_trace_running.
8871 (trace_find_pc_command): Likewise.
8872 (trace_find_tracepoint_command): Likewise.
8873 (trace_find_line_command): Likewise.
8874 (trace_find_range_command): Likewise.
8875 * tracepoint.h (check_trace_running): Likewise.
8876 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8877
6a5f844b
YQ
88782014-03-06 Yao Qi <yao@codesourcery.com>
8879
8880 * target.h (struct target_ops) <to_traceframe_info>: Use
8881 TARGET_DEFAULT_NORETURN (tcomplain ()).
8882 * target-delegates.c: Regenerated.
8883
0f26cec1
PA
88842014-03-05 Pedro Alves <palves@redhat.com>
8885
8886 PR gdb/16575
8887 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8888 void. Update comment.
8889 (dcache_xfer_memory): Delete.
8890 (dcache_read_memory_partial): New, based on the read bits of
8891 dcache_xfer_memory.
8892 (dcache_update): Add status parameter. Use ULONGEST for len, and
8893 adjust. Discard cache lines if the reason for the update was
8894 error.
8895 * dcache.h (dcache_xfer_memory): Delete declaration.
8896 (dcache_read_memory_partial): New declaration.
8897 (dcache_update): Update prototype.
8898 * target.c (raw_memory_xfer_partial): Update the dcache here.
8899 (memory_xfer_partial_1): Don't handle dcache writes here.
8900
b2b255bd
MF
89012014-03-05 Mike Frysinger <vapier@gentoo.org>
8902
8903 * remote-sim.c (gdbsim_load): Add const to prog.
8904
5d9cf8a4
TT
89052014-03-03 Tom Tromey <tromey@redhat.com>
8906
8907 * elfread.c (probe_key): Change to bfd_data.
8908 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8909 now per-BFD, not per-objfile.
8910 * stap-probe.c (stap_probe_destroy): Update comment.
8911 (handle_stap_probe): Allocate on the per-BFD obstack.
8912
729662a5
TT
89132014-03-03 Tom Tromey <tromey@redhat.com>
8914
8915 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8916 * breakpoint.c (create_longjmp_master_breakpoint): Use
8917 get_probe_address.
8918 (add_location_to_breakpoint, bkpt_probe_insert_location)
8919 (bkpt_probe_remove_location): Update.
8920 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8921 * elfread.c (elf_symfile_relocate_probe): Remove.
8922 (elf_probe_fns): Update.
8923 (insert_exception_resume_breakpoint): Change type of "probe"
8924 parameter to bound_probe.
8925 (check_exception_resume): Update.
8926 * objfiles.c (objfile_relocate1): Don't relocate probes.
8927 * probe.c (bound_probe_s): New typedef.
8928 (parse_probes): Use get_probe_address. Set sal's objfile.
8929 (find_probe_by_pc): Return a bound_probe.
8930 (collect_probes): Return a VEC(bound_probe_s).
8931 (compare_probes): Update.
8932 (gen_ui_out_table_header_info): Change type of "probes"
8933 parameter. Update.
8934 (info_probes_for_ops): Update.
8935 (get_probe_address): New function.
8936 (probe_safe_evaluate_at_pc): Update.
8937 * probe.h (struct probe_ops) <get_probe_address>: New field.
8938 <set_semaphore, clear_semaphore>: Add objfile parameter.
8939 (struct probe) <objfile>: Remove field.
8940 <arch>: New field.
8941 <address>: Update comment.
8942 (struct bound_probe): New.
8943 (find_probe_by_pc): Return a bound_probe.
8944 (get_probe_address): Declare.
8945 * solib-svr4.c (struct probe_and_action) <address>: New field.
8946 (hash_probe_and_action, equal_probe_and_action): Update.
8947 (register_solib_event_probe): Add address parameter.
8948 (solib_event_probe_at): Update.
8949 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8950 get_probe_address.
8951 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8952 (stap_get_probe_address): New function.
8953 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8954 (compile_probe_arg): Update.
8955 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8956 address.
8957 (handle_stap_probe): Don't relocate the probe.
8958 (stap_relocate): Remove.
8959 (stap_gen_info_probes_table_values): Update.
8960 (stap_probe_ops): Remove stap_relocate.
8961 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8962 (debug_sym_probe_fns): Update.
8963 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8964 * symtab.c (init_sal): Use memset.
8965 * symtab.h (struct symtab_and_line) <objfile>: New field.
8966 * tracepoint.c (start_tracing, stop_tracing): Update.
8967
ff887920
TT
89682014-03-03 Tom Tromey <tromey@redhat.com>
8969
8970 * probe.h (parse_probes, find_probe_by_pc)
8971 (find_probes_in_objfile): Fix comments.
8972
f0407826
DE
89732014-03-02 Doug Evans <xdje42@gmail.com>
8974
8975 * infrun.c (handle_signal_stop): Replace test for
8976 TARGET_WAITKIND_STOPPED with an assert.
8977
35e6a711
DE
89782014-03-02 Doug Evans <xdje42@gmail.com>
8979
8980 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8981
667f9d0b
DE
89822014-03-02 Doug Evans <xdje42@gmail.com>
8983
8984 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8985
dc92ace0
MK
89862014-03-01 Mark Kettenis <kettenis@gnu.org>
8987
8988 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8989
a900370f
MK
89902014-03-01 Mark Kettenis <kettenis@gnu.org>
8991
8992 * i386obsd-nat.c: Include "obsd-nat.h".
8993 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8994 add_target.
8995 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8996
b72a7981
MK
89972014-03-01 Mark Kettenis <kettenis@gnu.org>
8998
8999 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9000
96c70aba
MK
90012014-03-01 Mark Kettenis <kettenis@gnu.org>
9002
9003 * mips64obsd-nat.c: Include "obsd-nath".
9004 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9005 add_target
9006 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9007
874a80af
MK
90082014-03-01 Mark Kettenis <kettenis@gnu.org>
9009
8fd408f1
MK
9010 * amd64obsd-nat.c: Include "obsd-nat,h.
9011 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9012 add_target.
874a80af
MK
9013 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9014
9cf95373
SC
90152014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9016
9017 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9018 (find_overload_match): Update call to find_oload_champ.
9019 (find_oload_champ_namespace_loop): Likewise
9020
863e4da4
MK
90212014-02-28 Mark Kettenis <kettenis@gnu.org>
9022
025cac40
MK
9023 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9024
1ed586ce
MK
9025 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9026 * config/sparc/obsd64.mh: New file.
9027 * sparc64obsd-nat.c: New file.
9028
863e4da4
MK
9029 * obsd-nat.h: New file.
9030 * obsd-nat.c: New file.
9031 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9032 (ALLDEPFILES): Add obsd-nat.c.
9033
89de4da4
TT
90342014-02-28 Tom Tromey <tromey@redhat.com>
9035
9036 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9037 * cli-out.h (cli_ui_out_impl): Now const.
9038 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9039 * ui-out.c (struct ui_out) <impl>: Now const.
9040 (default_ui_out_impl): Now const.
9041 (ui_out_new): Make 'impl' parameter const.
9042 * ui-out.h (ui_out_new): Update.
9043
c725e7b6
MK
90442014-02-27 Mark Kettenis <kettenis@gnu.org>
9045
9046 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9047
670b46b3
MK
90482014-02-27 Mark Kettenis <kettenis@gnu.org>
9049
9050 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9051
c91550fc
JK
90522014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9053
9054 Additional PR 8882 fix.
9055 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9056
2fa0369e
PA
90572014-02-27 Pedro Alves <palves@redhat.com>
9058
9059 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9060 isn't set.
9061
d632a097
PA
90622014-02-27 Pedro Alves <palves@redhat.com>
9063
9064 PR 12702
9065 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9066 * nat/linux-waitpid.c: Include string.h.
9067 (status_to_str): Moved here and made extern.
9068 * nat/linux-waitpid.h (status_to_str): New declaration.
9069
2ebd5a35
HZ
90702014-02-27 Hui Zhu <hui@codesourcery.com>
9071
9072 PR 12702
9073 * infrun.c (ptid_match): Move ...
9074 * common/ptid.c (ptid_match): ... here.
9075 * inferior.h (ptid_match): Move ...
9076 * common/ptid.h (ptid_match): ... here.
9077
3cdd631f
MK
90782014-02-27 Mark Kettenis <kettenis@gnu.org>
9079
9080 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9081 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9082 gdb_target_obs.
9083
bee30a64
MK
90842014-02-27 Mark Kettenis <kettenis@gnu.org>
9085
9086 * obsd-tdep.c (obsd_auxv_parse): New function.
9087 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
9088
9089 * gdbarch.sh (auxv_parse): New.
9090 * gdbarch.h: Regenerated.
9091 * gdbarch.c: Regenerated.
9092 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9093
7a5a839f
LC
90942014-02-26 Ludovic Courtès <ludo@gnu.org>
9095
9096 * guile/scm-value.c (gdbscm_history_append_x): New function.
9097 (value_functions): Add it.
9098
31aa7e4e
JB
90992014-02-27 Joel Brobecker <brobecker@adacore.com>
9100
9101 * dwarf2read.c (attr_value_as_address): New function.
9102 (dwarf2_find_base_address, read_call_site_scope): Use
9103 attr_value_as_address in place of DW_ADDR.
9104 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9105 the low and high addresses. Slight rework of the handling
9106 of the high pc being a constant form, and limit it to
9107 DWARF verson 4 or higher.
9108 (dwarf2_record_block_ranges): Likewise.
9109 (read_partial_die): Likewise.
9110 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9111
9b333ba3
TT
91122014-02-26 Tom Tromey <tromey@redhat.com>
9113
9114 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9115
5f6cac40
TT
91162014-02-26 Tom Tromey <tromey@redhat.com>
9117
9118 * elfread.c (elf_read_minimal_symbols): Return early if
9119 minimal symbols have already been read. Add "ei" parameter.
9120 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9121 * minsyms.c (prim_record_minimal_symbol_full): Update.
9122 * objfiles.h (struct objstats) <n_minsyms>: Move...
9123 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9124 * symmisc.c (print_objfile_statistics): Update.
9125
2750ef27
TT
91262014-02-26 Tom Tromey <tromey@redhat.com>
9127
9128 * elfread.c (elf_read_minimal_symbols): New function, from
9129 elf_symfile_read.
9130 (elf_symfile_read): Call it.
9131
34643a32
TT
91322014-02-26 Tom Tromey <tromey@redhat.com>
9133
9134 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9135 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9136 (lookup_minimal_symbol_solib_trampoline)
9137 (lookup_minimal_symbol_by_pc_section_1)
9138 (lookup_minimal_symbol_and_objfile): Update.
9139 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9140 Don't allocate a minimal symbol if minsyms have already been read.
9141 (build_minimal_symbol_hash_tables): Update.
9142 (install_minimal_symbols): Do nothing if minsyms already read.
9143 Use the per-BFD obstack.
9144 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9145 * objfiles.c (allocate_objfile): Call
9146 terminate_minimal_symbol_table later.
9147 (have_minimal_symbols): Update.
9148 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9149 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9150 Move from struct objfile.
9151 <minsyms_read>: New field.
9152 (struct objfile) <msymbols, minimal_symbol_count,
9153 msymbol_hash, msymbol_demangled_hash>: Move.
9154 (ALL_OBJFILE_MSYMBOLS): Update.
9155 * symfile.c (read_symbols): Set minsyms_read.
9156 (reread_symbols): Update.
9157 * symmisc.c (dump_objfile, dump_msymbols): Update.
9158
2273f0ac
TT
91592014-02-26 Tom Tromey <tromey@redhat.com>
9160
9161 * minsyms.c (msymbols_sort): Remove.
9162 * minsyms.h (msymbols_sort): Remove.
9163 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9164 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9165 * elfread.c (elf_symtab_read): Don't add section offsets.
9166 * xcoffread.c (record_minimal_symbol): Don't add section offset
9167 to minimal symbol address.
9168 * somread.c (text_offset, data_offset): Remove.
9169 (som_symtab_read): Don't add section offsets to minimal symbol
9170 addresses.
9171 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9172 Don't add section offsets to minimal symbols.
9173 * coffread.c (coff_symtab_read): Don't add section offsets
9174 to minimal symbol addresses.
9175 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9176 to minimal symbol addresses.
9177 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9178 section offset to minimal symbol addresses.
9179 * mdebugread.c (parse_partial_symbols): Don't add section
9180 offset to minimal symbol addresses.
9181 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9182 offset to minimal symbol addresses.
9183
77e371c0
TT
91842014-02-26 Tom Tromey <tromey@redhat.com>
9185
9186 * ada-lang.c (ada_main_name): Update.
9187 (ada_add_standard_exceptions): Update.
9188 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9189 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9190 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9191 * auxv.c (ld_so_xfer_auxv): Update.
9192 * avr-tdep.c (avr_scan_prologue): Update.
9193 * ax-gdb.c (gen_var_ref): Update.
9194 * blockframe.c (get_pc_function_start)
9195 (find_pc_partial_function_gnu_ifunc): Update.
9196 * breakpoint.c (create_overlay_event_breakpoint)
9197 (create_longjmp_master_breakpoint)
9198 (create_std_terminate_master_breakpoint)
9199 (create_exception_master_breakpoint): Update.
9200 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9201 * c-valprint.c (c_val_print): Update.
9202 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9203 * common/agent.c (agent_look_up_symbols): Update.
9204 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9205 * dwarf2loc.c (call_site_to_target_addr): Update.
9206 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9207 * elfread.c (elf_gnu_ifunc_record_cache)
9208 (elf_gnu_ifunc_resolve_by_got): Update.
9209 * findvar.c (default_read_var_value): Update.
9210 * frame.c (inside_main_func): Update.
9211 * frv-tdep.c (frv_frame_this_id): Update.
9212 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9213 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9214 Update.
9215 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9216 (hppa_hpux_find_dummy_bpaddr): Update.
9217 * hppa-tdep.c (hppa_symbol_address): Update.
9218 * infcmd.c (until_next_command): Update.
9219 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9220 Update.
9221 * linespec.c (minsym_found, add_minsym): Update.
9222 * linux-nat.c (get_signo): Update.
9223 * linux-thread-db.c (inferior_has_bug): Update.
9224 * m32c-tdep.c (m32c_return_value)
9225 (m32c_m16c_address_to_pointer): Update.
9226 * m32r-tdep.c (m32r_frame_this_id): Update.
9227 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9228 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9229 * maint.c (maintenance_translate_address): Update.
9230 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9231 (frob_address): New function.
9232 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9233 frob_address. Rename parameter to "pc_in".
9234 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9235 addresses.
9236 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9237 Update.
9238 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9239 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9240 * objc-lang.c (find_objc_msgsend): Update.
9241 * objfiles.c (objfile_relocate1): Update.
9242 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9243 * p-valprint.c (pascal_val_print): Update.
9244 * parse.c (write_exp_msymbol): Update.
9245 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9246 (ppc_elfv2_skip_entrypoint): Update.
9247 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9248 * printcmd.c (build_address_symbolic, msym_info)
9249 (address_info): Update.
9250 * proc-service.c (ps_pglobal_lookup): Update.
9251 * psymtab.c (find_pc_sect_psymtab_closer)
9252 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9253 Change msymbol parameter to bound_minimal_symbol.
9254 * ravenscar-thread.c (get_running_thread_id): Update.
9255 * remote.c (remote_check_symbols): Update.
9256 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9257 address.
9258 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9259 * solib-dsbt.c (lm_base): Update.
9260 * solib-frv.c (lm_base, main_got): Update.
9261 * solib-irix.c (locate_base): Update.
9262 * solib-som.c (som_solib_create_inferior_hook)
9263 (link_map_start): Update.
9264 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9265 * solib-svr4.c (elf_locate_base, enable_break): Update.
9266 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9267 (flush_ea_cache): Update.
9268 * stabsread.c (define_symbol, scan_file_globals): Update.
9269 * stack.c (find_frame_funname): Update.
9270 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9271 (debug_qf_find_pc_sect_symtab): Update.
9272 * symfile.c (simple_read_overlay_table)
9273 (simple_overlay_update): Update.
9274 * symfile.h (struct quick_symbol_functions)
9275 <find_pc_sect_symtab>: Change type of msymbol to
9276 bound_minimal_symbol.
9277 * symmisc.c (dump_msymbols): Update.
9278 * symtab.c (find_pc_sect_symtab_via_partial)
9279 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9280 (search_symbols, print_msymbol_info): Update.
9281 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9282 (MSYMBOL_VALUE_ADDRESS): Redefine.
9283 (BMSYMBOL_VALUE_ADDRESS): New macro.
9284 * tracepoint.c (scope_info): Update.
9285 * tui/tui-disasm.c (tui_find_disassembly_address)
9286 (tui_get_begin_asm_address): Update.
9287 * valops.c (find_function_in_inferior): Update.
9288 * value.c (value_static_field, value_fn_field): Update.
9289
3b7344d5
TT
92902014-02-26 Tom Tromey <tromey@redhat.com>
9291
9292 * ada-lang.c (ada_update_initial_language): Update.
9293 (ada_main_name, ada_has_this_exception_support): Update.
9294 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9295 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9296 * arm-tdep.c (arm_skip_stub): Update.
9297 * auxv.c (ld_so_xfer_auxv): Update.
9298 * avr-tdep.c (avr_scan_prologue): Update.
9299 * ax-gdb.c (gen_var_ref): Update.
9300 * breakpoint.c (struct breakpoint_objfile_data)
9301 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9302 type to bound_minimal_symbol.
9303 (create_overlay_event_breakpoint)
9304 (create_longjmp_master_breakpoint)
9305 (create_std_terminate_master_breakpoint)
9306 (create_exception_master_breakpoint): Update.
9307 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9308 * c-exp.y (classify_name): Update.
9309 * coffread.c (coff_symfile_read): Update.
9310 * common/agent.c (agent_look_up_symbols): Update.
9311 * d-lang.c (d_main_name): Update.
9312 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9313 * dec-thread.c (enable_dec_thread): Update.
9314 * dwarf2loc.c (call_site_to_target_addr): Update.
9315 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9316 * eval.c (evaluate_subexp_standard): Update.
9317 * findvar.c (struct minsym_lookup_data) <result>: Change type
9318 to bound_minimal_symbol.
9319 <objfile>: Remove.
9320 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9321 * frame.c (inside_main_func): Update.
9322 * frv-tdep.c (frv_frame_this_id): Update.
9323 * gcore.c (call_target_sbrk): Update.
9324 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9325 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9326 Update.
9327 * go-lang.c (go_main_name): Update.
9328 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9329 (hppa_hpux_find_import_stub_for_addr): Update.
9330 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9331 Update. Change return type.
9332 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9333 type.
9334 * jit.c (jit_breakpoint_re_set_internal): Update.
9335 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9336 Update.
9337 * linux-nat.c (get_signo): Update.
9338 * linux-thread-db.c (inferior_has_bug): Update
9339 * m32c-tdep.c (m32c_return_value)
9340 (m32c_m16c_address_to_pointer): Update.
9341 * m32r-tdep.c (m32r_frame_this_id): Update.
9342 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9343 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9344 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9345 lookup_minimal_symbol. Change return type.
9346 (lookup_minimal_symbol): Remove.
9347 (lookup_bound_minimal_symbol): Update.
9348 (lookup_minimal_symbol_text): Change return type.
9349 (lookup_minimal_symbol_solib_trampoline): Change return type.
9350 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9351 (lookup_minimal_symbol_solib_trampoline): Change return type.
9352 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9353 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9354 (value_nsstring, find_imps): Update.
9355 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9356 * p-lang.c (pascal_main_name): Update.
9357 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9358 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9359 * proc-service.c (ps_pglobal_lookup): Update.
9360 * ravenscar-thread.c (get_running_thread_msymbol): Change
9361 return type.
9362 (has_ravenscar_runtime, get_running_thread_id): Update.
9363 * remote.c (remote_check_symbols): Update.
9364 * sol-thread.c (ps_pglobal_lookup): Update.
9365 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9366 * solib-dsbt.c (lm_base): Update.
9367 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9368 Update.
9369 * solib-irix.c (locate_base): Update.
9370 * solib-som.c (som_solib_create_inferior_hook)
9371 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9372 Update.
9373 * solib-spu.c (spu_enable_break): Update.
9374 * solib-svr4.c (elf_locate_base, enable_break): Update.
9375 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9376 (flush_ea_cache): Update.
9377 * stabsread.c (define_symbol): Update.
9378 * symfile.c (simple_read_overlay_table): Update.
9379 * symtab.c (find_pc_sect_line): Update.
9380 * tracepoint.c (scope_info): Update.
9381 * tui-disasm.c (tui_get_begin_asm_address): Update.
9382 * value.c (value_static_field): Update.
9383
40c1a007
TT
93842014-02-26 Tom Tromey <tromey@redhat.com>
9385
9386 * minsyms.c (prim_record_minimal_symbol_full): Use
9387 SET_MSYMBOL_VALUE_ADDRESS.
9388 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9389 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9390 SET_MSYMBOL_VALUE_ADDRESS.
9391 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9392 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9393
efd66ac6
TT
93942014-02-26 Tom Tromey <tromey@redhat.com>
9395
9396 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9397 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9398 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9399 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9400 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9401 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9402 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9403 * ada-lang.c (ada_main_name): Update.
9404 (ada_lookup_simple_minsym): Update.
9405 (ada_make_symbol_completion_list): Update.
9406 (ada_add_standard_exceptions): Update.
9407 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9408 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9409 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9410 * arm-tdep.c (skip_prologue_function): Update.
9411 (arm_skip_stack_protector, arm_skip_stub): Update.
9412 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9413 (arm_wince_skip_main_prologue): Update.
9414 * auxv.c (ld_so_xfer_auxv): Update.
9415 * avr-tdep.c (avr_scan_prologue): Update.
9416 * ax-gdb.c (gen_var_ref): Update.
9417 * block.c (call_site_for_pc): Update.
9418 * blockframe.c (get_pc_function_start): Update.
9419 (find_pc_partial_function_gnu_ifunc): Update.
9420 * breakpoint.c (create_overlay_event_breakpoint): Update.
9421 (create_longjmp_master_breakpoint): Update.
9422 (create_std_terminate_master_breakpoint): Update.
9423 (create_exception_master_breakpoint): Update.
9424 (resolve_sal_pc): Update.
9425 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9426 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9427 Update.
9428 * c-valprint.c (c_val_print): Update.
9429 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9430 * coffread.c (coff_symfile_read): Update.
9431 * common/agent.c (agent_look_up_symbols): Update.
9432 * dbxread.c (find_stab_function_addr): Update.
9433 (end_psymtab): Update.
9434 * dwarf2loc.c (call_site_to_target_addr): Update.
9435 (func_verify_no_selftailcall): Update.
9436 (tailcall_dump): Update.
9437 (call_site_find_chain_1): Update.
9438 (dwarf_expr_reg_to_entry_parameter): Update.
9439 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9440 (elf_gnu_ifunc_resolve_by_got): Update.
9441 * f-valprint.c (info_common_command): Update.
9442 * findvar.c (read_var_value): Update.
9443 * frame.c (get_prev_frame_1): Update.
9444 (inside_main_func): Update.
9445 * frv-tdep.c (frv_skip_main_prologue): Update.
9446 (frv_frame_this_id): Update.
9447 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9448 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9449 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9450 (gnuv3_skip_trampoline): Update.
9451 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9452 (hppa64_hpux_in_solib_call_trampoline): Update.
9453 (hppa_hpux_skip_trampoline_code): Update.
9454 (hppa64_hpux_search_dummy_call_sequence): Update.
9455 (hppa_hpux_find_import_stub_for_addr): Update.
9456 (hppa_hpux_find_dummy_bpaddr): Update.
9457 * hppa-tdep.c (hppa_symbol_address)
9458 (hppa_lookup_stub_minimal_symbol): Update.
9459 * i386-tdep.c (i386_skip_main_prologue): Update.
9460 (i386_pe_skip_trampoline_code): Update.
9461 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9462 * infcall.c (get_function_name): Update.
9463 * infcmd.c (until_next_command): Update.
9464 * jit.c (jit_breakpoint_re_set_internal): Update.
9465 (jit_inferior_init): Update.
9466 * linespec.c (minsym_found): Update.
9467 (add_minsym): Update.
9468 * linux-fork.c (info_checkpoints_command): Update.
9469 * linux-nat.c (get_signo): Update.
9470 * linux-thread-db.c (inferior_has_bug): Update.
9471 * m32c-tdep.c (m32c_return_value): Update.
9472 (m32c_m16c_address_to_pointer): Update.
9473 (m32c_m16c_pointer_to_address): Update.
9474 * m32r-tdep.c (m32r_frame_this_id): Update.
9475 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9476 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9477 * maint.c (maintenance_translate_address): Update.
9478 * minsyms.c (add_minsym_to_hash_table): Update.
9479 (add_minsym_to_demangled_hash_table): Update.
9480 (msymbol_objfile): Update.
9481 (lookup_minimal_symbol): Update.
9482 (iterate_over_minimal_symbols): Update.
9483 (lookup_minimal_symbol_text): Update.
9484 (lookup_minimal_symbol_by_pc_name): Update.
9485 (lookup_minimal_symbol_solib_trampoline): Update.
9486 (lookup_minimal_symbol_by_pc_section_1): Update.
9487 (lookup_minimal_symbol_and_objfile): Update.
9488 (prim_record_minimal_symbol_full): Update.
9489 (compare_minimal_symbols): Update.
9490 (compact_minimal_symbols): Update.
9491 (build_minimal_symbol_hash_tables): Update.
9492 (install_minimal_symbols): Update.
9493 (terminate_minimal_symbol_table): Update.
9494 (find_solib_trampoline_target): Update.
9495 (minimal_symbol_upper_bound): Update.
9496 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9497 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9498 (mips_skip_pic_trampoline_code): Update.
9499 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9500 * objc-lang.c (selectors_info): Update.
9501 (classes_info): Update.
9502 (find_methods): Update.
9503 (find_imps): Update.
9504 (find_objc_msgsend): Update.
9505 * objfiles.c (objfile_relocate1): Update.
9506 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9507 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9508 * p-valprint.c (pascal_val_print): Update.
9509 * parse.c (write_exp_msymbol): Update.
9510 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9511 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9512 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9513 * printcmd.c (build_address_symbolic): Update.
9514 (sym_info): Update.
9515 (address_info): Update.
9516 * proc-service.c (ps_pglobal_lookup): Update.
9517 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9518 (find_pc_sect_psymtab): Update.
9519 * python/py-framefilter.c (py_print_frame): Update.
9520 * ravenscar-thread.c (get_running_thread_id): Update.
9521 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9522 Update.
9523 * remote.c (remote_check_symbols): Update.
9524 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9525 (rs6000_skip_trampoline_code): Update.
9526 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9527 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9528 * solib-dsbt.c (lm_base): Update.
9529 * solib-frv.c (lm_base): Update.
9530 (main_got): Update.
9531 * solib-irix.c (locate_base): Update.
9532 * solib-som.c (som_solib_create_inferior_hook): Update.
9533 (som_solib_desire_dynamic_linker_symbols): Update.
9534 (link_map_start): Update.
9535 * solib-spu.c (spu_enable_break): Update.
9536 (ocl_enable_break): Update.
9537 * solib-svr4.c (elf_locate_base): Update.
9538 (enable_break): Update.
9539 * spu-tdep.c (spu_get_overlay_table): Update.
9540 (spu_catch_start): Update.
9541 (flush_ea_cache): Update.
9542 * stabsread.c (define_symbol): Update.
9543 (scan_file_globals): Update.
9544 * stack.c (find_frame_funname): Update.
9545 (frame_info): Update.
9546 * symfile.c (simple_read_overlay_table): Update.
9547 (simple_overlay_update): Update.
9548 * symmisc.c (dump_msymbols): Update.
9549 * symtab.c (fixup_section): Update.
9550 (find_pc_sect_line): Update.
9551 (skip_prologue_sal): Update.
9552 (search_symbols): Update.
9553 (print_msymbol_info): Update.
9554 (rbreak_command): Update.
9555 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9556 (completion_list_objc_symbol): Update.
9557 (default_make_symbol_completion_list_break_on): Update.
9558 * tracepoint.c (scope_info): Update.
9559 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9560 (tui_get_begin_asm_address): Update.
9561 * valops.c (find_function_in_inferior): Update.
9562 * value.c (value_static_field): Update.
9563 (value_fn_field): Update.
9564
50e65b17
TT
95652014-02-26 Tom Tromey <tromey@redhat.com>
9566
9567 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9568 bound minimal symbols. Move code that knows about minsym
9569 table layout...
9570 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9571 function.
9572 * minsyms.h (minimal_symbol_upper_bound): Declare.
9573 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9574 minimal_symbol_upper_bound.
9575
1b588015
JB
95762014-02-27 Joel Brobecker <brobecker@adacore.com>
9577
9578 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9579 Use the type's name if its basic type does not have a tag.
9580
dbb9c2b1
JB
95812014-02-27 Joel Brobecker <brobecker@adacore.com>
9582
9583 * dwarf2read.c (read_subrange_type): Add comment.
9584
55426c9d
JB
95852014-02-27 Joel Brobecker <brobecker@adacore.com>
9586
9587 * dwarf2read.c (update_enumeration_type_from_children): New
9588 function, mostly extracted from process_structure_scope.
9589 (read_enumeration_type): Call update_enumeration_type_from_children.
9590 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9591 and flag_flag_enum fields.
9592
f2fce0ca
PA
95932014-02-26 Pedro Alves <palves@redhat.com>
9594
9595 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9596 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9597 to_xfer_partial method.
9598
7a44e40e
PA
95992014-02-26 Pedro Alves <palves@redhat.com>
9600
9601 * target.c (complete_target_initialization): Don't install
9602 default_xfer_partial as to_xfer_partial hook.
9603 (nomemory): Delete.
9604 (update_current_target): Don't INHERIT nor de_fault
9605 deprecated_xfer_memory. Delete de_fault macro.
9606 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9607 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9608 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9609 field.
9610
bd265cd0
PA
96112014-02-26 Pedro Alves <palves@redhat.com>
9612
9613 * go32-nat.c (my_write_child): New function.
9614 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9615 (go32_xfer_partial): New function.
9616 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9617 Instead install a to_xfer_partial hook.
9618
9d46c4e5
PA
96192014-02-26 Pedro Alves <palves@redhat.com>
9620
9621 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9622 to_xfer_partial helper. Rewrite.
9623 (procfs_xfer_partial): New function.
9624 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9625 Install a to_xfer_partial hook.
9626
a1583b1f
PA
96272014-02-26 Pedro Alves <palves@redhat.com>
9628
9629 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9630 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9631 (m32r_xfer_partial): New function.
9632 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9633 Install a to_xfer_partial hook.
9634
6df1b29f
PA
96352014-02-26 Pedro Alves <palves@redhat.com>
9636
9637 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9638 helper.
9639 (mips_xfer_partial): New function.
9640 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9641 hook. Install a to_xfer_partial hook.
9642
dc53a7ad
JB
96432014-02-26 Joel Brobecker <brobecker@adacore.com>
9644
9645 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9646 * gdbtypes.c (create_array_type_with_stride): New function,
9647 renaming create_array_type, but with an added parameter
9648 called "bit_stride".
9649 (create_array_type): Re-implement using
9650 create_array_type_with_stride.
9651 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9652 and DW_AT_bit_stride attributes.
9653
12ab52e9
PA
96542014-02-26 Pedro Alves <palves@redhat.com>
9655
9656 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9657 task-specific breakpoints.
9658
d16461ae
PA
96592014-02-25 Pedro Alves <palves@redhat.com>
9660
9661 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9662 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9663
a8b16220
SS
96642014-02-25 Stan Shebs <stan@codesourcery.com>
9665
9666 * defs.h: Annotate comments for Doxygen.
9667
b9e795ee
TT
96682014-02-25 Tom Tromey <tromey@redhat.com>
9669
9670 * target.h (target_ignore): Don't declare.
9671 * target.c (target_ignore): Remove.
9672
849c862e
JK
96732014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9674
9675 PR gdb/16626
9676 * auto-load.c (auto_load_objfile_script_1): Change filename to
9677 debugfile.
9678
475109d8
JB
96792014-02-25 Joel Brobecker <brobecker@adacore.com>
9680
9681 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9682 documentation. Adjust prototype to match the target_ops
9683 to_xfer_partial method. Adjust implementation accordingly.
9684
e186c3bd
HZ
96852014-02-25 Hui Zhu <hui@codesourcery.com>
9686
9687 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9688 to_traceframe_info.
9689
6d451942
KB
96902014-02-25 Kevin Buettner <kevinb@redhat.com>
9691
041ab8b4 9692 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9693 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9694 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9695 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9696 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9697 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9698 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9699 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9700 New constants.
9701 (rl78_register_type): Use a data pointer type for SP and
9702 new pseudo registers mentioned above. Use a 16 bit integer
9703 type for all other register pairs.
9704 (rl78_register_name, rl78_g10_register_name): Update for
9705 new pseudo registers.
9706 (rl78_pseudo_register_read): Likewise.
9707 (rl78_pseudo_register_write): Likewise.
9708 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9709 to the newly added pseudo registers.
9710
eddf0bae
DE
97112014-02-24 Doug Evans <dje@google.com>
9712
9713 * value.c (record_latest_value): Fix comment.
9714 * printcmd.c (print_command_1): Remove code to handle -1 return from
9715 record_latest_value.
9716
e96027e0
PA
97172014-02-24 Pedro Alves <palves@redhat.com>
9718
9719 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9720 deprecated_xfer_memory hook.
9721 (procfs_xfer_partial): Call procfs_xfer_memory instead
9722 of the deprecated_xfer_memory target hook.
9723 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9724 helper.
9725
0837c976
YZ
97262014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9727
9728 * windows-nat.c (windows_xfer_shared_libraries): Return
9729 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9730 requested object is TARGET_OBJECT_LIBRARIES.
9731
bc113b4e
YQ
97322014-02-24 Yao Qi <yao@codesourcery.com>
9733
9734 * target.h (enum target_xfer_status)
9735 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9736 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9737 explicitly. New.
9738 * corefile.c (memory_error_message): User updated.
9739 * exec.c (section_table_read_available_memory): Likewise.
9740 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9741 * target.c (target_xfer_status_to_string): Likewise.
9742 (raw_memory_xfer_partial): Likewise.
9743 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9744 * valops.c (read_value_memory): Likewise.
9745 * exec.h: Update comments.
9746
01cb8804
YQ
97472014-02-24 Yao Qi <yao@codesourcery.com>
9748
9749 * target.c (target_xfer_status_to_string): Rename argument err
9750 to status.
9751 * target.h (target_xfer_status_to_string): Update declaration.
9752 Replace target_xfer_error_to_string with
9753 target_xfer_status_to_string in comment.
9754
93063aa6
YQ
97552014-02-24 Yao Qi <yao@codesourcery.com>
9756
9757 * mips-linux-nat.c (super_close): Update its type.
9758 (mips_linux_close): Pass 'self' to super_close.
9759
5c328c05
YQ
97602014-02-24 Yao Qi <yao@codesourcery.com>
9761
9762 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9763 * corefile.c (read_memory): Adjusted.
9764 * target.c (target_write_with_progress): Adjusted.
9765
f73023dd
YQ
97662014-02-23 Yao Qi <yao@codesourcery.com>
9767
9768 Revert two patches:
9769
9770 2013-10-25 Yao Qi <yao@codesourcery.com>
9771
9772 * remote.c (remote_traceframe_info): Return early if
9773 traceframe is not selected.
9774
9775 2013-07-19 Yao Qi <yao@codesourcery.com>
9776
9777 * target.c (update_current_target): Change the default action
9778 of 'to_traceframe_info' from tcomplain to return_zero.
9779 * target.h (struct target_ops) <to_traceframe_info>: Add more
9780 comments.
9781
5a2eb0ef
YQ
97822014-02-23 Yao Qi <yao@codesourcery.com>
9783
9784 * valops.c (read_value_memory): Rewrite it. Call
9785 target_xfer_partial in a loop.
9786 * exec.h (section_table_available_memory): Remove declaration.
9787 Move comments to ...
9788 * exec.c (section_table_available_memory): ... here. Make it
9789 static.
9790
1ee79381
YQ
97912014-02-23 Yao Qi <yao@codesourcery.com>
9792
9793 * exec.c (section_table_read_available_memory): New function.
9794 * exec.h (section_table_read_available_memory): Declare.
9795 * ctf.c (ctf_xfer_partial): Call
9796 section_table_read_available_memory.
9797 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9798
1ca49d37
YQ
97992014-02-23 Yao Qi <yao@codesourcery.com>
9800
9801 * ctf.c (ctf_xfer_partial): Move code to ...
9802 * exec.c (exec_read_partial_read_only): ... it. New function.
9803 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9804 * tracefile.c: Include "exec.h".
9805 * exec.h (exec_read_partial_read_only): Declare.
9806
a283690e
YQ
98072014-02-23 Yao Qi <yao@codesourcery.com>
9808
9809 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9810 (tfile_has_memory): Remove.
9811 (init_tfile_ops): Don't set fields to_has_all_memory and
9812 to_has_memory of tfile_ops.
9813 * tracefile.c (tracefile_has_all_memory): New function.
9814 (tracefile_has_memory): New function.
9815 (init_tracefile_ops): Initialize fields to_has_all_memory and
9816 to_has_memory of 'ops'.
9817
12e03cd0
YQ
98182014-02-23 Yao Qi <yao@codesourcery.com>
9819
9820 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9821 (ctf_thread_alive, ctf_get_trace_status): Remove.
9822 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9823 init_tracefile_ops.
9824 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9825 (tfile_has_stack, tfile_has_registers): Remove.
9826 (tfile_thread_alive): Remove.
9827 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9828 init_tracefile_ops.
9829 * tracefile.c (tracefile_has_stack): New function.
9830 (tracefile_has_registers): New function.
9831 (tracefile_thread_alive): New function.
9832 (tracefile_get_trace_status): New function.
9833 (init_tracefile_ops): New function.
9834 * tracefile.h (init_tracefile_ops): Declare.
9835
11395323
YQ
98362014-02-23 Yao Qi <yao@codesourcery.com>
9837
9838 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9839 (O_LARGEFILE): Likewise.
9840 (tfile_ops): Likewise.
9841 (TRACE_HEADER_SIZE): Likewise.
9842 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9843 (cur_data_size): Likewise.
9844 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9845 (tfile_close, tfile_files_info): Likewise.
9846 (tfile_get_trace_status): Likewise.
9847 (tfile_get_tracepoint_status): Likewise.
9848 (tfile_get_traceframe_address): Likewise.
9849 (tfile_trace_find, match_blocktype): Likewise.
9850 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9851 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9852 (tfile_get_trace_state_variable_value): Likewise.
9853 (tfile_has_all_memory, tfile_has_memory): Likewise.
9854 (tfile_has_stack, tfile_has_registers): Likewise.
9855 (tfile_thread_alive, build_traceframe_info): Likewise.
9856 (tfile_traceframe_info, init_tfile_ops): Likewise.
9857 (_initialize_tracepoint): Don't call init_tfile_ops
9858 and add_target_with_completer.
9859 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9860 exec.h, completer.h and filenames.h.
9861 (_initialize_tracefile_tfile): New function.
9862
7951c4eb
YQ
98632014-02-23 Yao Qi <yao@codesourcery.com>
9864
9865 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9866 tracefile-tfile.o.
9867 (HFILES_NO_SRCDIR): Add tracefile.h.
9868 * ctf.c: Include "tracefile.h".
9869 * tracefile.h: New file.
9870 * tracefile.c: New file
9871 * tracefile-tfile.c: New file.
9872 * tracepoint.c: Include "tracefile.h".
9873 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9874 (stop_reason_names): Add const.
9875 (trace_file_writer_xfree): Move it to tracefile.c.
9876 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9877 (trace_save_ctf): Likewise.
9878 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9879 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9880 (tfile_write_header, tfile_write_regblock_type): Likewise.
9881 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9882 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9883 (tfile_write_raw_data, tfile_end): Likewise.
9884 (tfile_trace_file_writer_new): Likewise.
9885 (free_uploaded_tp): Make it extern.
9886 (free_uploaded_tsv): Make it extern.
9887 (_initialize_tracepoint): Move code to register command 'tsave'
9888 to tracefile.c.
9889 * tracepoint.h (stop_reason_names): Declare.
9890 (struct trace_frame_write_ops): Move it to tracefile.h.
9891 (struct trace_file_write_ops): Likewise.
9892 (struct trace_file_writer): Likewise.
9893 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9894
184cd072
JK
98952014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9896
9897 PR gdb/16594
9898 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9899 process name.
9900 (get_cores_used_by_process): New parameter num_cores, use it.
9901 (linux_xfer_osdata_processes): Pass num_cores to it.
9902 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9903 process name.
9904
c63528fc
AK
99052014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9906
9907 * target.c (memory_xfer_partial): Fix length arg in call to
9908 breakpoint_xfer_memory.
9909
d7b30f67
SDJ
99102014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9911
9912 PR tdep/16397
9913 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9914 number comes after the + or - signs. Adjust length of register
9915 name to be extracted.
9916
8838afaf
TT
99172014-02-20 Tom Tromey <tromey@redhat.com>
9918
9919 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9920 (ada_varobj_ops): Mark "extern".
9921
05227d14
TT
99222014-02-20 Tom Tromey <tromey@redhat.com>
9923
9924 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9925
1254eefc
DE
99262014-02-20 Doug Evans <xdje42@gmail.com>
9927
9928 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9929 All callers updated.
9930 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9931 All callers updated.
9932 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9933 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9934
adde2bff
DE
99352014-02-20 lin zuojian <manjian2006@gmail.com>
9936 Joel Brobecker <brobecker@adacore.com>
9937 Doug Evans <xdje42@gmail.com>
9938
9939 PR symtab/16581
9940 * dwarf2read.c (struct die_info): New member in_process.
9941 (reset_die_in_process): New function.
9942 (process_die): Set it at the start, reset when returning.
9943 (inherit_abstract_dies): Only call process_die if origin_child_die
9944 not already being processed.
9945
3be75f87
JB
99462014-02-20 Joel Brobecker <brobecker@adacore.com>
9947
9948 * windows-nat.c (handle_unload_dll): Add function documentation.
9949 (do_initial_windows_stuff): Add comment explaining why we wait
9950 until after inferior initialization has finished before
9951 processing all DLLs.
9952
47f7ffdb
JB
99532014-02-20 Joel Brobecker <brobecker@adacore.com>
9954
9955 * windows-nat.c (get_module_name): Delete.
9956 (windows_get_exec_module_filename): New function, mostly
9957 inspired from get_module_name.
9958 (windows_pid_to_exec_file): Replace call to get_module_name
9959 by call to windows_get_exec_module_filename.
9960
1cd9feab
JB
99612014-02-20 Joel Brobecker <brobecker@adacore.com>
9962
9963 * windows-nat.c (handle_load_dll): Rewrite this function's
9964 introductory comment. Remove code using get_module_name
9965 to get the DLL's name.
9966
ea39ad35
JB
99672014-02-20 Joel Brobecker <brobecker@adacore.com>
9968
9969 * windows-nat.c (get_windows_debug_event): Ignore
9970 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9971 if windows_initialization_done == 0.
9972 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9973 Adjust implementation to always load all DLLs.
9974 (do_initial_windows_stuff): Replace call to
9975 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9976
95060284
JB
99772014-02-20 Joel Brobecker <brobecker@adacore.com>
9978
9979 * windows-nat.c (_initialize_windows_nat): Deprecate the
9980 "dll-symbols" command. Turn the "add-shared-symbol-files"
9981 and "assf" aliases into commands, and deprecate them as well.
9982 * NEWS: Add entry explaining that "dll-symbols" and its two
9983 aliases are now deprecated.
9984
8d4fdb12
JB
99852014-02-20 Joel Brobecker <brobecker@adacore.com>
9986
9987 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9988 new-line in debug string. Remove trailing spaces.
9989
1b281443
SS
99902014-02-19 Stan Shebs <stan@codesourcery.com>
9991
9992 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9993
f7bd0f78
SC
99942014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9995
9996 * NEWS: Add entry for the new feature
9997 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9998 and class values.
9999
399ebc3d
SS
100002014-02-19 Stan Shebs <stan@codesourcery.com>
10001
10002 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10003
c658158d
PA
100042014-02-19 Pedro Alves <palves@redhat.com>
10005
10006 * common/ptid.h (struct ptid): Mention that process_stratum
10007 targets should prefer ptid.lwp.
10008
ba348170
PA
100092014-02-19 Pedro Alves <palves@redhat.com>
10010
10011 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10012 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10013 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10014 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10015 store remote thread ids rather than ptid.tid.
10016 (_initialize_remote): Adjust.
10017
ac01945b
TT
100182014-02-19 Tom Tromey <tromey@redhat.com>
10019
10020 * target.c (target_get_unwinder): Rewrite.
10021 (target_get_tailcall_unwinder): Rewrite.
10022 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10023 (record_btrace_to_get_tailcall_unwinder): New function.
10024 (init_record_btrace_ops): Update.
10025 * target.h (struct target_ops) <to_get_unwinder,
10026 to_get_tailcall_unwinder>: Now function pointers. Use
10027 TARGET_DEFAULT_RETURN.
10028
8476dc92
TT
100292014-02-19 Tom Tromey <tromey@redhat.com>
10030
10031 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10032 argument.
10033 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10034
c0eca49f
TT
100352014-02-19 Tom Tromey <tromey@redhat.com>
10036
10037 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10038 directly.
10039 * target-delegates.c: Rebuild.
10040 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10041 TARGET_DEFAULT_FUNC.
10042 * target.c (default_target_decr_pc_after_break): Rename from
10043 forward_target_decr_pc_after_break. Simplify.
10044 (target_decr_pc_after_break): Rely on delegation.
10045
596b6b39
TT
100462014-02-19 Tom Tromey <tromey@redhat.com>
10047
10048 * target.c (update_current_target): Do not INHERIT to_doc or
10049 to_magic. Do not de_fault to_open or to_close.
10050
b427c1bc
TT
100512014-02-19 Tom Tromey <tromey@redhat.com>
10052
10053 * gcore.h (objfile_find_memory_regions): Declare.
10054 * gcore.c (objfile_find_memory_regions): No longer static. Add
10055 "self" argument.
10056 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10057 * exec.c: Include gcore.h.
10058 (exec_set_find_memory_regions): Remove.
10059 (exec_find_memory_regions): Remove.
10060 (exec_do_find_memory_regions): Remove.
10061 (init_exec_ops): Update.
10062 * defs.h (exec_set_find_memory_regions): Remove.
10063
9b144037
TT
100642014-02-19 Tom Tromey <tromey@redhat.com>
10065
10066 * target-delegates.c: Rebuild.
10067 * target.h (struct target_ops) <to_extra_thread_info,
10068 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10069 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10070 not 0, in TARGET_DEFAULT_RETURN.
10071
555bbdeb
TT
100722014-02-19 Tom Tromey <tromey@redhat.com>
10073
10074 * target.c (complete_target_initialization): Remove casts. Use
10075 return_zero_has_execution.
10076 (return_zero): Add "ignore" argument.
10077 (return_zero_has_execution): New function.
10078 (init_dummy_target): Remove casts. Use
10079 return_zero_has_execution.
10080
be4ddd36
TT
100812014-02-19 Tom Tromey <tromey@redhat.com>
10082
10083 * target.c (update_current_target): Update comments. Do not
10084 INHERIT to_stratum.
10085
2117c711
TT
100862014-02-19 Tom Tromey <tromey@redhat.com>
10087
10088 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10089 needed.
10090 * corelow.c (core_read_description): Delegate when needed.
10091 * remote.c (remote_read_description): Delegate when needed.
10092 * target-delegates.c: Rebuild.
10093 * target.c (target_read_description): Rewrite.
10094 * target.h (struct target_ops) <to_read_description>: Update
10095 comment. Use TARGET_DEFAULT_RETURN.
10096
e88ef65c
TT
100972014-02-19 Tom Tromey <tromey@redhat.com>
10098
10099 * target-delegates.c: Rebuild.
10100 * target.c (update_current_target): Don't inherit or default
10101 to_can_run.
10102 (find_default_run_target): Check against delegate_can_run.
10103 * target.h (struct target_ops) <to_can_run>: Use
10104 TARGET_DEFAULT_RETURN.
10105
86a0854a
TT
101062014-02-19 Tom Tromey <tromey@redhat.com>
10107
10108 * target-delegates.c: Rebuild.
10109 * target.c (target_disconnect): Unconditionally delegate.
10110 * target.h (struct target_ops) <to_disconnect>: Use
10111 TARGET_DEFAULT_NORETURN.
10112
ee97f592
TT
101132014-02-19 Tom Tromey <tromey@redhat.com>
10114
10115 * record.c (record_stop): Unconditionally delegate.
10116 * target-delegates.c: Rebuild.
10117 * target.c (target_stop_recording): Unconditionally delegate.
10118 * target.h (struct target_ops) <to_stop_recording>: Use
10119 TARGET_DEFAULT_IGNORE.
10120
6dc7fcf4
TT
101212014-02-19 Tom Tromey <tromey@redhat.com>
10122
10123 * target-delegates.c: Rebuild.
10124 * target.c (target_enable_btrace): Unconditionally delegate.
10125 * target.h (struct target_ops) <to_enable_btrace>: Use
10126 TARGET_DEFAULT_NORETURN.
10127
eb5b20d4
TT
101282014-02-19 Tom Tromey <tromey@redhat.com>
10129
10130 * target-delegates.c: Rebuild.
10131 * target.c (target_read_btrace): Unconditionally delegate.
10132 * target.h (struct target_ops) <to_read_btrace>: Use
10133 TARGET_DEFAULT_NORETURN.
10134
9ace480d
TT
101352014-02-19 Tom Tromey <tromey@redhat.com>
10136
10137 * target-delegates.c: Rebuild.
10138 * target.c (target_teardown_btrace): Unconditionally delegate.
10139 * target.h (struct target_ops) <to_teardown_btrace>: Use
10140 TARGET_DEFAULT_NORETURN.
10141
8dc292d3
TT
101422014-02-19 Tom Tromey <tromey@redhat.com>
10143
10144 * target-delegates.c: Rebuild.
10145 * target.c (target_disable_btrace): Unconditionally delegate.
10146 * target.h (struct target_ops) <to_disable_btrace>: Use
10147 TARGET_DEFAULT_NORETURN.
10148
58a5184e
TT
101492014-02-19 Tom Tromey <tromey@redhat.com>
10150
10151 * target-delegates.c: Rebuild.
10152 * target.c (default_search_memory): New function.
10153 (simple_search_memory): Update comment.
10154 (target_search_memory): Unconditionally delegate.
10155 * target.h (struct target_ops) <to_search_memory>: Use
10156 TARGET_DEFAULT_FUNC.
10157
8de71aab
TT
101582014-02-19 Tom Tromey <tromey@redhat.com>
10159
10160 * auxv.c (default_auxv_parse): No longer static.
10161 (target_auxv_parse): Unconditionally delegate.
10162 * auxv.h (default_auxv_parse): Declare.
10163 * target-delegates.c: Rebuild.
10164 * target.c: Include auxv.h.
10165 * target.h (struct target_ops) <to_auxv_parse>: Use
10166 TARGET_DEFAULT_FUNC.
10167
6b2c5a57
TT
101682014-02-19 Tom Tromey <tromey@redhat.com>
10169
10170 * target-delegates.c: Rebuild.
10171 * target.c (target_memory_map): Unconditionally delegate.
10172 * target.h (struct target_ops) <to_memory_map>: Use
10173 TARGET_DEFAULT_RETURN.
10174
cbffc065
TT
101752014-02-19 Tom Tromey <tromey@redhat.com>
10176
10177 * target-delegates.c: Rebuild.
10178 * target.c (target_thread_alive): Unconditionally delegate.
10179 * target.h (struct target_ops) <to_thread_alive>: Use
10180 TARGET_DEFAULT_RETURN.
10181
f09e2107
TT
101822014-02-19 Tom Tromey <tromey@redhat.com>
10183
10184 * target-delegates.c: Rebuild.
10185 * target.c (target_save_record): Unconditionally delegate.
10186 * target.h (struct target_ops) <to_save_record>: Use
10187 TARGET_DEFAULT_NORETURN.
10188
07366925
TT
101892014-02-19 Tom Tromey <tromey@redhat.com>
10190
10191 * target-delegates.c: Rebuild.
10192 * target.c (target_delete_record): Unconditionally delegate.
10193 * target.h (struct target_ops) <to_delete_record>: Use
10194 TARGET_DEFAULT_NORETURN.
10195
dd2e9d25
TT
101962014-02-19 Tom Tromey <tromey@redhat.com>
10197
10198 * target-delegates.c: Rebuild.
10199 * target.c (target_record_is_replaying): Unconditionally
10200 delegate.
10201 * target.h (struct target_ops) <to_record_is_replaying>: Use
10202 TARGET_DEFAULT_RETURN.
10203
671e76cc
TT
102042014-02-19 Tom Tromey <tromey@redhat.com>
10205
10206 * target-delegates.c: Rebuild.
10207 * target.c (target_goto_record_begin): Unconditionally delegate.
10208 * target.h (struct target_ops) <to_goto_record_begin>: Use
10209 TARGET_DEFAULT_NORETURN.
10210
e9179bb3
TT
102112014-02-19 Tom Tromey <tromey@redhat.com>
10212
10213 * target-delegates.c: Rebuild.
10214 * target.c (target_goto_record_end): Unconditionally delegate.
10215 * target.h (struct target_ops) <to_goto_record_end>: Use
10216 TARGET_DEFAULT_NORETURN.
10217
05969c84
TT
102182014-02-19 Tom Tromey <tromey@redhat.com>
10219
10220 * target-delegates.c: Rebuild.
10221 * target.c (target_goto_record): Unconditionally delegate.
10222 * target.h (struct target_ops) <to_goto_record>: Use
10223 TARGET_DEFAULT_NORETURN.
10224
3679abfa
TT
102252014-02-19 Tom Tromey <tromey@redhat.com>
10226
10227 * target-delegates.c: Rebuild.
10228 * target.c (target_insn_history): Unconditionally delegate.
10229 * target.h (struct target_ops) <to_insn_history>: Use
10230 TARGET_DEFAULT_NORETURN.
10231
8444ab58
TT
102322014-02-19 Tom Tromey <tromey@redhat.com>
10233
10234 * target-delegates.c: Rebuild.
10235 * target.c (target_insn_history_from): Unconditionally delegate.
10236 * target.h (struct target_ops) <to_insn_history_from>: Use
10237 TARGET_DEFAULT_NORETURN.
10238
c29302cc
TT
102392014-02-19 Tom Tromey <tromey@redhat.com>
10240
10241 * target-delegates.c: Rebuild.
10242 * target.c (target_insn_history_range): Unconditionally delegate.
10243 * target.h (struct target_ops) <to_insn_history_range>: Use
10244 TARGET_DEFAULT_NORETURN.
10245
170049d4
TT
102462014-02-19 Tom Tromey <tromey@redhat.com>
10247
10248 * target-delegates.c: Rebuild.
10249 * target.c (target_call_history): Unconditionally delegate.
10250 * target.h (struct target_ops) <to_call_history>: Use
10251 TARGET_DEFAULT_NORETURN.
10252
16fc27d6
TT
102532014-02-19 Tom Tromey <tromey@redhat.com>
10254
10255 * target-delegates.c: Rebuild.
10256 * target.c (target_call_history_from): Unconditionally delegate.
10257 * target.h (struct target_ops) <to_call_history_from>: Use
10258 TARGET_DEFAULT_NORETURN.
10259
115d9817
TT
102602014-02-19 Tom Tromey <tromey@redhat.com>
10261
10262 * target-delegates.c: Rebuild.
10263 * target.c (target_call_history_range): Unconditionally delegate.
10264 * target.h (struct target_ops) <to_call_history_range>: Use
10265 TARGET_DEFAULT_NORETURN.
10266
eb276a6b
TT
102672014-02-19 Tom Tromey <tromey@redhat.com>
10268
10269 * target-delegates.c: Rebuild.
10270 * target.c (target_verify_memory): Unconditionally delegate.
10271 * target.h (struct target_ops) <to_verify_memory>: Use
10272 TARGET_DEFAULT_NORETURN.
10273
9e538d0d
TT
102742014-02-19 Tom Tromey <tromey@redhat.com>
10275
10276 * target-delegates.c: Rebuild.
10277 * target.c (target_core_of_thread): Unconditionally delegate.
10278 * target.h (struct target_ops) <to_core_of_thread>: Use
10279 TARGET_DEFAULT_RETURN.
10280
f6fb2925
TT
102812014-02-19 Tom Tromey <tromey@redhat.com>
10282
10283 * target-delegates.c: Rebuild.
10284 * target.c (target_flash_done): Unconditionally delegate.
10285 * target.h (struct target_ops) <to_flash_done>: Use
10286 TARGET_DEFAULT_NORETURN.
10287
e8a6c6ac
TT
102882014-02-19 Tom Tromey <tromey@redhat.com>
10289
10290 * target-delegates.c: Rebuild.
10291 * target.c (target_flash_erase): Unconditionally delegate.
10292 * target.h (struct target_ops) <to_flash_erase>: Use
10293 TARGET_DEFAULT_NORETURN.
10294
7e35c012
TT
102952014-02-19 Tom Tromey <tromey@redhat.com>
10296
10297 * target-delegates.c: Rebuild.
10298 * target.c (target_get_section_table): Unconditionally delegate.
10299 * target.h (struct target_ops) <to_get_section_table>: Use
10300 TARGET_DEFAULT_RETURN.
10301
770234d3
TT
103022014-02-19 Tom Tromey <tromey@redhat.com>
10303
10304 * target-delegates.c: Rebuild.
10305 * target.c (target_pid_to_str): Unconditionally delegate.
10306 (init_dummy_target): Don't initialize to_pid_to_str.
10307 (default_pid_to_str): Rename from dummy_pid_to_str.
10308 * target.h (struct target_ops) <to_pid_to_str>: Use
10309 TARGET_DEFAULT_FUNC.
10310
09b0dc2b
TT
103112014-02-19 Tom Tromey <tromey@redhat.com>
10312
10313 * target-delegates.c: Rebuild.
10314 * target.c (target_find_new_threads): Unconditionally delegate.
10315 * target.h (struct target_ops) <to_find_new_threads>: Use
10316 TARGET_DEFAULT_RETURN.
10317
7d4f8efa
TT
103182014-02-19 Tom Tromey <tromey@redhat.com>
10319
10320 * target-delegates.c: Rebuild.
10321 * target.c (target_program_signals): Unconditionally delegate.
10322 * target.h (struct target_ops) <to_program_signals>: Use
10323 TARGET_DEFAULT_IGNORE.
10324
035cad7f
TT
103252014-02-19 Tom Tromey <tromey@redhat.com>
10326
10327 * target-delegates.c: Rebuild.
10328 * target.c (target_pass_signals): Unconditionally delegate.
10329 * target.h (struct target_ops) <to_pass_signals>: Use
10330 TARGET_DEFAULT_IGNORE.
10331
8d657035
TT
103322014-02-19 Tom Tromey <tromey@redhat.com>
10333
10334 * target-delegates.c: Rebuild.
10335 * target.c (default_mourn_inferior): New function.
10336 (target_mourn_inferior): Unconditionally delegate.
10337 * target.h (struct target_ops) <to_mourn_inferior>: Use
10338 TARGET_DEFAULT_FUNC.
10339
098dba18
TT
103402014-02-19 Tom Tromey <tromey@redhat.com>
10341
10342 * target-delegates.c: Rebuild.
10343 * target.c (default_follow_fork): New function.
10344 (target_follow_fork): Unconditionally delegate.
10345 * target.h (struct target_ops) <to_follow_fork>: Use
10346 TARGET_DEFAULT_FUNC.
10347
423a4807
TT
103482014-02-19 Tom Tromey <tromey@redhat.com>
10349
10350 * target-delegates.c: Rebuild.
10351 * target.c (target_kill): Unconditionally delegate.
10352 * target.h (struct target_ops) <to_kill>: Use
10353 TARGET_DEFAULT_NORETURN.
10354
6c7e5e5c
TT
103552014-02-19 Tom Tromey <tromey@redhat.com>
10356
10357 * target-delegates.c: Rebuild.
10358 * target.c (target_masked_watch_num_registers): Unconditionally
10359 delegate.
10360 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10361 Use TARGET_DEFAULT_RETURN.
10362
8b1c364c
TT
103632014-02-19 Tom Tromey <tromey@redhat.com>
10364
10365 * target-delegates.c: Rebuild.
10366 * target.c (target_remove_mask_watchpoint): Unconditionally
10367 delegate.
10368 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10369 TARGET_DEFAULT_RETURN.
10370
cd4ae029
TT
103712014-02-19 Tom Tromey <tromey@redhat.com>
10372
10373 * target-delegates.c: Rebuild.
10374 * target.c (target_insert_mask_watchpoint): Unconditionally
10375 delegate.
10376 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10377 TARGET_DEFAULT_RETURN.
10378
a134316b
TT
103792014-02-19 Tom Tromey <tromey@redhat.com>
10380
10381 * target-delegates.c: Rebuild.
10382 * target.c (target_ranged_break_num_registers): Unconditionally
10383 delegate.
10384 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10385 Use TARGET_DEFAULT_RETURN.
10386
ad5989bd
TT
103872014-02-19 Tom Tromey <tromey@redhat.com>
10388
10389 * target-delegates.c: Rebuild.
10390 * target.c (target_fetch_registers): Unconditionally delegate.
10391 * target.h (struct target_ops) <to_fetch_registers>: Use
10392 TARGET_DEFAULT_NORETURN.
10393
46ee7e8d
TT
103942014-02-19 Tom Tromey <tromey@redhat.com>
10395
10396 * target-delegates.c: Rebuild.
10397 * target.c (update_current_target): Don't inherit or default
10398 to_stop.
10399 * target.h (struct target_ops) <to_stop>: Use
10400 TARGET_DEFAULT_IGNORE.
10401
843f59ed
TT
104022014-02-19 Tom Tromey <tromey@redhat.com>
10403
10404 * target-delegates.c: Rebuild.
10405 * target.c (update_current_target): Don't inherit or default
10406 to_can_run_breakpoint_commands.
10407 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10408 Use TARGET_DEFAULT_RETURN.
10409
ccfde2a0
TT
104102014-02-19 Tom Tromey <tromey@redhat.com>
10411
10412 * target-delegates.c: Rebuild.
10413 * target.c (update_current_target): Don't inherit or default
10414 to_supports_evaluation_of_breakpoint_conditions.
10415 * target.h (struct target_ops)
10416 <to_supports_evaluation_of_breakpoint_conditions>: Use
10417 TARGET_DEFAULT_RETURN.
10418
0de91722
TT
104192014-02-19 Tom Tromey <tromey@redhat.com>
10420
10421 * target-delegates.c: Rebuild.
10422 * target.c (update_current_target): Don't inherit or default
10423 to_augmented_libraries_svr4_read.
10424 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10425 Use TARGET_DEFAULT_RETURN.
10426
9a7d8b48
TT
104272014-02-19 Tom Tromey <tromey@redhat.com>
10428
10429 * target-delegates.c: Rebuild.
10430 * target.c (update_current_target): Don't inherit or default
10431 to_can_use_agent.
10432 * target.h (struct target_ops) <to_can_use_agent>: Use
10433 TARGET_DEFAULT_RETURN.
10434
d9db5b21
TT
104352014-02-19 Tom Tromey <tromey@redhat.com>
10436
10437 * target-delegates.c: Rebuild.
10438 * target.c (update_current_target): Don't inherit or default
10439 to_use_agent.
10440 * target.h (struct target_ops) <to_use_agent>: Use
10441 TARGET_DEFAULT_NORETURN.
10442
92155eeb
TT
104432014-02-19 Tom Tromey <tromey@redhat.com>
10444
10445 * target-delegates.c: Rebuild.
10446 * target.c (update_current_target): Don't inherit or default
10447 to_traceframe_info.
10448 (return_null): Remove.
10449 * target.h (struct target_ops) <to_traceframe_info>: Use
10450 TARGET_DEFAULT_RETURN.
10451
d6522a22
TT
104522014-02-19 Tom Tromey <tromey@redhat.com>
10453
10454 * target-delegates.c: Rebuild.
10455 * target.c (update_current_target): Don't inherit or default
10456 to_static_tracepoint_markers_by_strid.
10457 * target.h (struct target_ops)
10458 <to_static_tracepoint_markers_by_strid>: Use
10459 TARGET_DEFAULT_NORETURN.
10460
4c3e4425
TT
104612014-02-19 Tom Tromey <tromey@redhat.com>
10462
10463 * target-delegates.c: Rebuild.
10464 * target.c (update_current_target): Don't inherit or default
10465 to_static_tracepoint_marker_at.
10466 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10467 Use TARGET_DEFAULT_RETURN.
10468
dcd6917f
TT
104692014-02-19 Tom Tromey <tromey@redhat.com>
10470
10471 * target-delegates.c: Rebuild.
10472 * target.c (update_current_target): Don't inherit or default
10473 to_set_permissions.
10474 * target.h (struct target_ops) <to_set_permissions>: Use
10475 TARGET_DEFAULT_IGNORE.
10476
22bcceee
TT
104772014-02-19 Tom Tromey <tromey@redhat.com>
10478
10479 * target-delegates.c: Rebuild.
10480 * target.c (update_current_target): Don't inherit or default
10481 to_get_tib_address.
10482 * target.h (struct target_ops) <to_get_tib_address>: Use
10483 TARGET_DEFAULT_NORETURN.
10484
8586ccaa
TT
104852014-02-19 Tom Tromey <tromey@redhat.com>
10486
10487 * target-delegates.c: Rebuild.
10488 * target.c (update_current_target): Don't inherit or default
10489 to_set_trace_notes.
10490 * target.h (struct target_ops) <to_set_trace_notes>: Use
10491 TARGET_DEFAULT_RETURN.
10492
91df8d1d
TT
104932014-02-19 Tom Tromey <tromey@redhat.com>
10494
10495 * target-delegates.c: Rebuild.
10496 * target.c (update_current_target): Don't initialize
10497 to_set_trace_buffer_size.
10498 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10499 TARGET_DEFAULT_IGNORE.
10500
8d526939
TT
105012014-02-19 Tom Tromey <tromey@redhat.com>
10502
10503 * target-delegates.c: Rebuild.
10504 * target.c (update_current_target): Don't inherit or default
10505 to_set_circular_trace_buffer.
10506 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10507 TARGET_DEFAULT_IGNORE.
10508
0bcfeddf
TT
105092014-02-19 Tom Tromey <tromey@redhat.com>
10510
10511 * target-delegates.c: Rebuild.
10512 * target.c (update_current_target): Don't inherit or default
10513 to_set_disconnected_tracing.
10514 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10515 TARGET_DEFAULT_IGNORE.
10516
9249843f
TT
105172014-02-19 Tom Tromey <tromey@redhat.com>
10518
10519 * target-delegates.c: Rebuild.
10520 * target.c (update_current_target): Don't inherit or default
10521 to_get_min_fast_tracepoint_insn_len.
10522 (return_minus_one): Remove.
10523 * target.h (struct target_ops)
10524 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10525
ace92e7d
TT
105262014-02-19 Tom Tromey <tromey@redhat.com>
10527
10528 * target-delegates.c: Rebuild.
10529 * target.c (update_current_target): Don't inherit or default
10530 to_get_raw_trace_data.
10531 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10532 TARGET_DEFAULT_NORETURN.
10533
08120467
TT
105342014-02-19 Tom Tromey <tromey@redhat.com>
10535
10536 * target-delegates.c: Rebuild.
10537 * target.c (update_current_target): Don't inherit or default
10538 to_upload_trace_state_variables.
10539 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10540 Use TARGET_DEFAULT_RETURN.
10541
1e949b00
TT
105422014-02-19 Tom Tromey <tromey@redhat.com>
10543
10544 * target-delegates.c: Rebuild.
10545 * target.c (update_current_target): Don't inherit or default
10546 to_upload_tracepoints.
10547 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10548 TARGET_DEFAULT_RETURN.
10549
a2e6c147
TT
105502014-02-19 Tom Tromey <tromey@redhat.com>
10551
10552 * target-delegates.c: Rebuild.
10553 * target.c (update_current_target): Don't inherit or default
10554 to_save_trace_data.
10555 * target.h (struct target_ops) <to_save_trace_data>: Use
10556 TARGET_DEFAULT_NORETURN.
10557
959bcd0b
TT
105582014-02-19 Tom Tromey <tromey@redhat.com>
10559
10560 * target-delegates.c: Rebuild.
10561 * target.c (update_current_target): Don't inherit or default
10562 to_get_trace_state_variable_value.
10563 * target.h (struct target_ops)
10564 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10565
afc94e66
TT
105662014-02-19 Tom Tromey <tromey@redhat.com>
10567
10568 * target-delegates.c: Rebuild.
10569 * target.c (update_current_target): Don't inherit or default
10570 to_trace_find.
10571 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10572
e51c07ea
TT
105732014-02-19 Tom Tromey <tromey@redhat.com>
10574
10575 * target-delegates.c: Rebuild.
10576 * target.c (update_current_target): Don't inherit or default
10577 to_trace_stop.
10578 * target.h (struct target_ops) <to_trace_stop>: Use
10579 TARGET_DEFAULT_NORETURN.
10580
6fea14cd
TT
105812014-02-19 Tom Tromey <tromey@redhat.com>
10582
10583 * target-delegates.c: Rebuild.
10584 * target.c (update_current_target): Don't inherit or default
10585 to_get_tracepoint_status.
10586 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10587 TARGET_DEFAULT_NORETURN.
10588
4072d4ff
TT
105892014-02-19 Tom Tromey <tromey@redhat.com>
10590
10591 * target-delegates.c: Rebuild.
10592 * target.c (update_current_target): Don't inherit or default
10593 to_get_trace_status.
10594 * target.h (struct target_ops) <to_get_trace_status>: Use
10595 TARGET_DEFAULT_RETURN.
10596
25da2e80
TT
105972014-02-19 Tom Tromey <tromey@redhat.com>
10598
10599 * target-delegates.c: Rebuild.
10600 * target.c (update_current_target): Don't inherit or default
10601 to_trace_start.
10602 * target.h (struct target_ops) <to_trace_start>: Use
10603 TARGET_DEFAULT_NORETURN.
10604
86dd181d
TT
106052014-02-19 Tom Tromey <tromey@redhat.com>
10606
10607 * target-delegates.c: Rebuild.
10608 * target.c (update_current_target): Don't inherit or default
10609 to_trace_set_readonly_regions.
10610 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10611 Use TARGET_DEFAULT_NORETURN.
10612
05c41993
TT
106132014-02-19 Tom Tromey <tromey@redhat.com>
10614
10615 * target-delegates.c: Rebuild.
10616 * target.c (update_current_target): Don't inherit or default
10617 to_disable_tracepoint.
10618 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10619 TARGET_DEFAULT_NORETURN.
10620
151f70f1
TT
106212014-02-19 Tom Tromey <tromey@redhat.com>
10622
10623 * target-delegates.c: Rebuild.
10624 * target.c (update_current_target): Don't inherit or default
10625 to_enable_tracepoint.
10626 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10627 TARGET_DEFAULT_NORETURN.
10628
94eb98b9
TT
106292014-02-19 Tom Tromey <tromey@redhat.com>
10630
10631 * target-delegates.c: Rebuild.
10632 * target.c (update_current_target): Don't inherit or default
10633 to_download_trace_state_variable.
10634 * target.h (struct target_ops) <to_download_trace_state_variable>:
10635 Use TARGET_DEFAULT_NORETURN.
10636
719acc4a
TT
106372014-02-19 Tom Tromey <tromey@redhat.com>
10638
10639 * target-delegates.c: Rebuild.
10640 * target.c (update_current_target): Don't inherit or default
10641 to_can_download_tracepoint.
10642 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10643 TARGET_DEFAULT_RETURN.
10644
9a980a22
TT
106452014-02-19 Tom Tromey <tromey@redhat.com>
10646
10647 * target-delegates.c: Rebuild.
10648 * target.c (update_current_target): Don't inherit or default
10649 to_download_tracepoint.
10650 * target.h (struct target_ops) <to_download_tracepoint>: Use
10651 TARGET_DEFAULT_NORETURN.
10652
5536135b
TT
106532014-02-19 Tom Tromey <tromey@redhat.com>
10654
10655 * target-delegates.c: Rebuild.
10656 * target.c (update_current_target): Don't inherit or default
10657 to_trace_init.
10658 * target.h (struct target_ops) <to_trace_init>: Use
10659 TARGET_DEFAULT_RETURN.
10660
9409d39e
TT
106612014-02-19 Tom Tromey <tromey@redhat.com>
10662
10663 * target-delegates.c: Rebuild.
10664 * target.c (update_current_target): Don't inherit or default
10665 to_supports_string_tracing.
10666 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10667 TARGET_DEFAULT_RETURN.
10668
aab1b22d
TT
106692014-02-19 Tom Tromey <tromey@redhat.com>
10670
10671 * target-delegates.c: Rebuild.
10672 * target.c (update_current_target): Don't inherit or default
10673 to_supports_enable_disable_tracepoint.
10674 * target.h (struct target_ops)
10675 <to_supports_enable_disable_tracepoint>: Use
10676 TARGET_DEFAULT_RETURN.
10677
a7304748
TT
106782014-02-19 Tom Tromey <tromey@redhat.com>
10679
10680 * target-delegates.c: Rebuild.
10681 * target.c (update_current_target): Don't inherit or default
10682 to_supports_multi_process.
10683 * target.h (struct target_ops) <to_supports_multi_process>: Use
10684 TARGET_DEFAULT_RETURN.
10685
4229b31d
TT
106862014-02-19 Tom Tromey <tromey@redhat.com>
10687
10688 * target-delegates.c: Rebuild.
10689 * target.c (update_current_target): Don't inherit or default
10690 to_get_ada_task_ptid.
10691 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10692 TARGET_DEFAULT_FUNC.
10693
43eba180
TT
106942014-02-19 Tom Tromey <tromey@redhat.com>
10695
10696 * target-delegates.c: Rebuild.
10697 * target.c (update_current_target): Don't inherit or default
10698 to_thread_architecture.
10699 * target.h (struct target_ops) <to_thread_architecture>: Use
10700 TARGET_DEFAULT_FUNC.
10701
fe31bf5b
TT
107022014-02-19 Tom Tromey <tromey@redhat.com>
10703
10704 * target-delegates.c: Rebuild.
10705 * target.c (update_current_target): Don't inherit or default
10706 to_execution_direction.
10707 * target.h (struct target_ops) <to_execution_direction>: Use
10708 TARGET_DEFAULT_FUNC.
10709
53e1cfc7
TT
107102014-02-19 Tom Tromey <tromey@redhat.com>
10711
10712 * target-delegates.c: Rebuild.
10713 * target.c (update_current_target): Don't inherit or default
10714 to_can_execute_reverse.
10715 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10716 TARGET_DEFAULT_RETURN.
10717 (target_can_execute_reverse): Unconditionally delegate.
10718
9bb9d61d
TT
107192014-02-19 Tom Tromey <tromey@redhat.com>
10720
10721 * target-delegates.c: Rebuild.
10722 * target.c (update_current_target): Don't inherit or default
10723 to_goto_bookmark.
10724 (dummy_goto_bookmark): Remove.
10725 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10726 * target.h (struct target_ops) <to_goto_bookmark>: Use
10727 TARGET_DEFAULT_NORETURN.
10728
3dbafbbb
TT
107292014-02-19 Tom Tromey <tromey@redhat.com>
10730
10731 * target-delegates.c: Rebuild.
10732 * target.c (update_current_target): Don't inherit or default
10733 to_get_bookmark.
10734 (dummy_get_bookmark): Remove.
10735 (init_dummy_target): Don't inherit or default to_get_bookmark.
10736 * target.h (struct target_ops) <to_get_bookmark>: Use
10737 TARGET_DEFAULT_NORETURN
10738
16f796b1
TT
107392014-02-19 Tom Tromey <tromey@redhat.com>
10740
10741 * target-delegates.c: Rebuild.
10742 * target.c (update_current_target): Don't inherit or default
10743 to_make_corefile_notes.
10744 (init_dummy_target): Don't initialize to_make_corefile_notes.
10745 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10746 TARGET_DEFAULT_FUNC.
10747
0b5a2719
TT
107482014-02-19 Tom Tromey <tromey@redhat.com>
10749
10750 * target-delegates.c: Rebuild.
10751 * target.c (update_current_target): Don't inherit or default
10752 to_find_memory_regions.
10753 (init_dummy_target): Don't initialize to_find_memory_regions.
10754 * target.h (struct target_ops) <to_find_memory_regions>: Use
10755 TARGET_DEFAULT_FUNC.
10756
d9cb0195
TT
107572014-02-19 Tom Tromey <tromey@redhat.com>
10758
10759 * target-delegates.c: Rebuild.
10760 * target.c (update_current_target): Don't inherit or default
10761 to_log_command.
10762 * target.h (struct target_ops) <to_log_command>: Use
10763 TARGET_DEFAULT_IGNORE.
10764 (target_log_command): Unconditionally delegate.
10765
830ca330
TT
107662014-02-19 Tom Tromey <tromey@redhat.com>
10767
10768 * target-delegates.c: Rebuild.
10769 * target.c (update_current_target): Don't inherit or default
10770 to_pid_to_exec_file.
10771 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10772 TARGET_DEFAULT_RETURN.
10773
825828fc
TT
107742014-02-19 Tom Tromey <tromey@redhat.com>
10775
10776 * target-delegates.c: Rebuild.
10777 * target.c (update_current_target): Don't inherit or default
10778 to_thread_name.
10779 (target_thread_name): Unconditionally delegate.
10780 * target.h (struct target_ops) <to_thread_name>: Use
10781 TARGET_DEFAULT_RETURN.
10782
4a7e6dda
TT
107832014-02-19 Tom Tromey <tromey@redhat.com>
10784
10785 * target-delegates.c: Rebuild.
10786 * target.c (update_current_target): Don't inherit or default
10787 to_extra_thread_info.
10788 * target.h (struct target_ops) <to_extra_thread_info>: Use
10789 TARGET_DEFAULT_RETURN.
10790
0db88c1d
TT
107912014-02-19 Tom Tromey <tromey@redhat.com>
10792
10793 * target-delegates.c: Rebuild.
10794 * target.c (update_current_target): Don't inherit or default
10795 to_has_exited.
10796 * target.h (struct target_ops) <to_has_exited>: Use
10797 TARGET_DEFAULT_RETURN..
10798
6a9fa051
TT
107992014-02-19 Tom Tromey <tromey@redhat.com>
10800
10801 * target-delegates.c: Rebuild.
10802 * target.c (update_current_target): Don't inherit or default
10803 to_set_syscall_catchpoint.
10804 (return_one): Remove.
10805 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10806 TARGET_DEFAULT_RETURN.
10807
62f64d7a
TT
108082014-02-19 Tom Tromey <tromey@redhat.com>
10809
10810 * target-delegates.c: Rebuild.
10811 * target.c (update_current_target): Don't inherit or default
10812 to_insert_exec_catchpoint.
10813 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10814 TARGET_DEFAULT_RETURN.
10815
cda0f38c
TT
108162014-01-08 Tom Tromey <tromey@redhat.com>
10817
10818 * target-delegates.c: Rebuild.
10819 * target.c (update_current_target): Don't inherit or default
10820 to_insert_exec_catchpoint.
10821 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10822 TARGET_DEFAULT_RETURN.
10823
95c3375e
TT
108242014-02-19 Tom Tromey <tromey@redhat.com>
10825
10826 * target-delegates.c: Rebuild.
10827 * target.c (update_current_target): Don't inherit or default
10828 to_remove_vfork_catchpoint.
10829 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10830 TARGET_DEFAULT_RETURN.
10831
7e18a8dc
TT
108322014-02-19 Tom Tromey <tromey@redhat.com>
10833
10834 * target-delegates.c: Rebuild.
10835 * target.c (update_current_target): Don't inherit or default
10836 to_insert_vfork_catchpoint.
10837 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10838 TARGET_DEFAULT_RETURN.
10839
e1a21fb7
TT
108402014-02-19 Tom Tromey <tromey@redhat.com>
10841
10842 * target-delegates.c: Rebuild.
10843 * target.c (update_current_target): Don't inherit or default
10844 to_remove_fork_catchpoint.
10845 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10846 TARGET_DEFAULT_RETURN.
10847
5958ebeb
TT
108482014-02-19 Tom Tromey <tromey@redhat.com>
10849
10850 * target-delegates.c: Rebuild.
10851 * target.c (update_current_target): Don't inherit or default
10852 to_insert_fork_catchpoint.
10853 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10854 TARGET_DEFAULT_RETURN.
10855
340ba4bf
TT
108562014-02-19 Tom Tromey <tromey@redhat.com>
10857
10858 * target-delegates.c: Rebuild.
10859 * target.c (update_current_target): Don't inherit or default
10860 to_post_startup_inferior.
10861 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10862 TARGET_DEFAULT_IGNORE.
10863
7634da87
TT
108642014-02-19 Tom Tromey <tromey@redhat.com>
10865
10866 * target-delegates.c: Rebuild.
10867 * target.c (update_current_target): Don't inherit or default
10868 to_load.
10869 * target.h (struct target_ops) <to_load>: Use
10870 TARGET_DEFAULT_NORETURN.
10871
e19e919f
TT
108722014-02-19 Tom Tromey <tromey@redhat.com>
10873
10874 * target-delegates.c: Rebuild.
10875 * target.c (update_current_target): Don't inherit or default
10876 to_terminal_info.
10877 * target.h (struct target_ops) <to_terminal_info>: Use
10878 TARGET_DEFAULT_FUNC.
10879
c6ea8f79
TT
108802014-02-19 Tom Tromey <tromey@redhat.com>
10881
10882 * target-delegates.c: Rebuild.
10883 * target.c (update_current_target): Don't inherit or default
10884 to_terminal_save_ours.
10885 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10886 TARGET_DEFAULT_IGNORE.
10887
e4a733f1
TT
108882014-02-19 Tom Tromey <tromey@redhat.com>
10889
10890 * target-delegates.c: Rebuild.
10891 * target.c (update_current_target): Don't inherit or default
10892 to_terminal_ours.
10893 * target.h (struct target_ops) <to_terminal_ours>: Use
10894 TARGET_DEFAULT_IGNORE.
10895
74fcbef9
TT
108962014-02-19 Tom Tromey <tromey@redhat.com>
10897
10898 * target-delegates.c: Rebuild.
10899 * target.c (update_current_target): Don't inherit or default
10900 to_terminal_ours_for_output.
10901 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10902 TARGET_DEFAULT_IGNORE.
10903
ddeaacc9
TT
109042014-02-19 Tom Tromey <tromey@redhat.com>
10905
10906 * target-delegates.c: Rebuild.
10907 * target.c (update_current_target): Don't inherit or default
10908 to_terminal_inferior.
10909 * target.h (struct target_ops) <to_terminal_inferior>: Use
10910 TARGET_DEFAULT_IGNORE.
10911
0343661d
TT
109122014-02-19 Tom Tromey <tromey@redhat.com>
10913
10914 * target-delegates.c: Rebuild.
10915 * target.c (update_current_target): Don't inherit or default
10916 to_terminal_init.
10917 * target.h (struct target_ops) <to_terminal_init>: Use
10918 TARGET_DEFAULT_IGNORE.
10919
77cdffe9
TT
109202014-02-19 Tom Tromey <tromey@redhat.com>
10921
10922 * target-delegates.c: Rebuild.
10923 * target.c (update_current_target): Don't inherit or default
10924 to_can_accel_watchpoint_condition.
10925 * target.h (struct target_ops)
10926 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10927
d03655e4
TT
109282014-02-19 Tom Tromey <tromey@redhat.com>
10929
10930 * target-delegates.c: Rebuild.
10931 * target.c (update_current_target): Don't inherit or default
10932 to_region_ok_for_hw_watchpoint.
10933 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10934 Use TARGET_DEFAULT_FUNC.
10935
65f160a9
TT
109362014-02-19 Tom Tromey <tromey@redhat.com>
10937
10938 * target-delegates.c: Rebuild.
10939 * target.c (update_current_target): Don't inherit or default
10940 to_watchpoint_addr_within_range.
10941 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10942 Use TARGET_DEFAULT_FUNC.
10943
61dd109f
TT
109442014-02-19 Tom Tromey <tromey@redhat.com>
10945
10946 * target-delegates.c: Rebuild.
10947 * target.c (update_current_target): Don't inherit or default
10948 to_remove_watchpoint.
10949 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10950 TARGET_DEFAULT_NORETURN.
10951
016facd4
TT
109522014-02-19 Tom Tromey <tromey@redhat.com>
10953
10954 * target-delegates.c: Rebuild.
10955 * target.c (update_current_target): Don't inherit or default
10956 to_insert_watchpoint.
10957 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10958 TARGET_DEFAULT_RETURN.
10959
418dabac
TT
109602014-02-19 Tom Tromey <tromey@redhat.com>
10961
10962 * target-delegates.c: Rebuild.
10963 * target.c (update_current_target): Don't inherit or default
10964 to_remove_hw_breakpoint.
10965 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10966 TARGET_DEFAULT_RETURN.
10967
61b371f9
TT
109682014-02-19 Tom Tromey <tromey@redhat.com>
10969
10970 * target-delegates.c: Rebuild.
10971 * target.c (update_current_target): Don't inherit or default
10972 to_insert_hw_breakpoint.
10973 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10974 TARGET_DEFAULT_RETURN.
10975
52b51d06
TT
109762014-02-19 Tom Tromey <tromey@redhat.com>
10977
10978 * target-delegates.c: Rebuild.
10979 * target.c (update_current_target): Don't inherit or default
10980 to_can_use_hw_breakpoint.
10981 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10982 TARGET_DEFAULT_RETURN.
10983
f86e59b2
TT
109842014-02-19 Tom Tromey <tromey@redhat.com>
10985
10986 * target-delegates.c: Rebuild.
10987 * target.c (update_current_target): Don't inherit or default
10988 to_files_info.
10989 * target.h (struct target_ops) <to_files_info>: Use
10990 TARGET_DEFAULT_IGNORE.
10991
6c628163
TT
109922014-02-19 Tom Tromey <tromey@redhat.com>
10993
10994 * target-delegates.c: Rebuild.
10995 * target.c (update_current_target): Don't inherit or default
10996 to_store.
10997 * target.h (struct target_ops) <to_store>: Use
10998 TARGET_DEFAULT_NORETURN.
10999
bebd3233
TT
110002014-02-19 Tom Tromey <tromey@redhat.com>
11001
11002 * target-delegates.c: Rebuild.
11003 * target.c (update_current_target): Don't inherit or default
11004 to_post_attach.
11005 * target.h (struct target_ops) <to_post_attach>: Use
11006 TARGET_DEFAULT_IGNORE.
11007
a53f3625
TT
110082014-02-19 Tom Tromey <tromey@redhat.com>
11009
11010 * target-delegates.c: Rebuild.
11011 * target.c (update_current_target): Don't inherit or default
11012 to_rcmd.
11013 (default_rcmd): New function.
11014 (do_monitor_command): Unconditionally delegate.
11015 * target.h (struct target_ops) <to_rmcd>: Use
11016 TARGET_DEFAULT_FUNC.
11017
e9a29200
TT
110182014-02-19 Tom Tromey <tromey@redhat.com>
11019
11020 * target-delegates.c: Rebuild.
11021 * target.c (init_dummy_target): Don't initialize to_attach.
11022 (target_attach): Unconditionally delegate.
11023 * target.h (struct target_ops) <to_attach>: Use
11024 TARGET_DEFAULT_FUNC.
11025
09da0d0a
TT
110262014-02-19 Tom Tromey <tromey@redhat.com>
11027
11028 * target-delegates.c: Rebuild.
11029 * target.c (target_detach): Unconditionally delegate.
11030 (init_dummy_target): Don't initialize to_detach.
11031 * target.h (struct target_ops) <to_detach>: Use
11032 TARGET_DEFAULT_IGNORE.
11033
5436ff03
TT
110342014-02-19 Tom Tromey <tromey@redhat.com>
11035
11036 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11037 Add argument.
11038 (target_augmented_libraries_svr4_read): Add argument.
11039 * target.c (update_current_target): Update.
11040 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11041 argument.
11042
f0d960ea
TT
110432014-02-19 Tom Tromey <tromey@redhat.com>
11044
11045 * target.h (struct target_ops) <to_call_history_range>: Add
11046 argument.
11047 * target.c (target_call_history_range): Add argument.
11048 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11049 argument.
11050 (record_btrace_call_history_from): Update.
11051
ec0aea04
TT
110522014-02-19 Tom Tromey <tromey@redhat.com>
11053
11054 * target.h (struct target_ops) <to_call_history_from>: Add
11055 argument.
11056 * target.c (target_call_history_from): Add argument.
11057 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11058 argument.
11059
5df2fcba
TT
110602014-02-19 Tom Tromey <tromey@redhat.com>
11061
11062 * target.h (struct target_ops) <to_call_history>: Add argument.
11063 * target.c (target_call_history): Add argument.
11064 * record-btrace.c (record_btrace_call_history): Add 'self'
11065 argument.
11066
4e99c6b7
TT
110672014-02-19 Tom Tromey <tromey@redhat.com>
11068
11069 * target.h (struct target_ops) <to_insn_history_range>: Add
11070 argument.
11071 * target.c (target_insn_history_range): Add argument.
11072 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11073 argument.
11074 (record_btrace_insn_history_from): Update.
11075
9abc3ff3
TT
110762014-02-19 Tom Tromey <tromey@redhat.com>
11077
11078 * target.h (struct target_ops) <to_insn_history_from>: Add
11079 argument.
11080 * target.c (target_insn_history_from): Add argument.
11081 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11082 argument.
11083
7a6c5609
TT
110842014-02-19 Tom Tromey <tromey@redhat.com>
11085
11086 * target.h (struct target_ops) <to_insn_history>: Add argument.
11087 * target.c (target_insn_history): Add argument.
11088 * record-btrace.c (record_btrace_insn_history): Add 'self'
11089 argument.
11090
606183ac
TT
110912014-02-19 Tom Tromey <tromey@redhat.com>
11092
11093 * target.h (struct target_ops) <to_goto_record>: Add argument.
11094 * target.c (target_goto_record): Add argument.
11095 * record-full.c (record_full_goto): Add 'self' argument.
11096 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11097
307a1b91
TT
110982014-02-19 Tom Tromey <tromey@redhat.com>
11099
11100 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11101 * target.c (target_goto_record_end): Add argument.
11102 * record-full.c (record_full_goto_end): Add 'self' argument.
11103 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11104
08475817
TT
111052014-02-19 Tom Tromey <tromey@redhat.com>
11106
11107 * target.h (struct target_ops) <to_goto_record_begin>: Add
11108 argument.
11109 * target.c (target_goto_record_begin): Add argument.
11110 * record-full.c (record_full_goto_begin): Add 'self' argument.
11111 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11112 argument.
11113
1c63c994
TT
111142014-02-19 Tom Tromey <tromey@redhat.com>
11115
11116 * target.h (struct target_ops) <to_record_is_replaying>: Add
11117 argument.
11118 * target.c (target_record_is_replaying): Add argument.
11119 * record-full.c (record_full_is_replaying): Add 'self' argument.
11120 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11121 argument.
11122 (record_btrace_xfer_partial, record_btrace_store_registers)
11123 (record_btrace_prepare_to_store, record_btrace_resume)
11124 (record_btrace_wait, record_btrace_decr_pc_after_break)
11125 (record_btrace_find_new_threads, record_btrace_thread_alive):
11126 Update.
11127
d1b55219
TT
111282014-02-19 Tom Tromey <tromey@redhat.com>
11129
11130 * target.h (struct target_ops) <to_delete_record>: Add argument.
11131 * target.c (target_delete_record): Add argument.
11132 * record-full.c (record_full_delete): Add 'self' argument.
11133
1390f529
TT
111342014-02-19 Tom Tromey <tromey@redhat.com>
11135
11136 * target.h (struct target_ops) <to_save_record>: Add argument.
11137 * target.c (target_save_record): Add argument.
11138 * record-full.c (record_full_save): Add 'self' argument.
11139 (record_full_save): Add 'self' argument.
11140
630d6a4a
TT
111412014-02-19 Tom Tromey <tromey@redhat.com>
11142
11143 * target.h (struct target_ops) <to_info_record>: Add argument.
11144 * target.c (target_info_record): Add argument.
11145 * record.c (info_record_command): Add argument.
11146 * record-full.c (record_full_info): Add 'self' argument.
11147 * record-btrace.c (record_btrace_info): Add 'self' argument.
11148
c6cd7c02
TT
111492014-02-19 Tom Tromey <tromey@redhat.com>
11150
11151 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11152 * target.c (target_stop_recording): Add argument.
11153 * record.c (record_stop): Add argument.
11154 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11155 argument.
11156
39c49f83
TT
111572014-02-19 Tom Tromey <tromey@redhat.com>
11158
11159 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11160 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11161 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11162 argument.
11163 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11164 (_initialize_amd64_linux_nat): Use it.
11165 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11166 (_initialize_i386_linux_nat): Use it.
11167
1777056d
TT
111682014-02-19 Tom Tromey <tromey@redhat.com>
11169
11170 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11171 * target.c (target_teardown_btrace): Add argument.
11172 * remote.c (remote_teardown_btrace): Add 'self' argument.
11173 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11174 argument.
11175 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11176 argument.
11177
25e95349
TT
111782014-02-19 Tom Tromey <tromey@redhat.com>
11179
11180 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11181 * target.c (target_disable_btrace): Add argument.
11182 * remote.c (remote_disable_btrace): Add 'self' argument.
11183 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11184 argument.
11185 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11186 argument.
11187
e3c49f88
TT
111882014-02-19 Tom Tromey <tromey@redhat.com>
11189
11190 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11191 * target.c (target_enable_btrace): Add argument.
11192 * remote.c (remote_enable_btrace): Add 'self' argument.
11193 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11194 argument.
11195 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11196 argument.
11197
fe38f897
TT
111982014-02-19 Tom Tromey <tromey@redhat.com>
11199
11200 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11201 (target_can_use_agent): Add argument.
11202 * target.c (update_current_target): Update.
11203 * remote.c (remote_can_use_agent): Add 'self' argument.
11204 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11205
2c152180
TT
112062014-02-19 Tom Tromey <tromey@redhat.com>
11207
11208 * target.h (struct target_ops) <to_use_agent>: Add argument.
11209 (target_use_agent): Add argument.
11210 * target.c (update_current_target): Update.
11211 * remote.c (remote_use_agent): Add 'self' argument.
11212 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11213
a893e81f
TT
112142014-02-19 Tom Tromey <tromey@redhat.com>
11215
11216 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11217 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11218 (target_traceframe_info): Add argument.
11219 * target.c (update_current_target): Update.
11220 * remote.c (remote_traceframe_info): Add 'self' argument.
11221 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11222
c686c57f
TT
112232014-02-19 Tom Tromey <tromey@redhat.com>
11224
11225 * target.h (target_static_tracepoint_markers_by_strid): Add
11226 argument.
11227 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11228 'self' argument.
11229 * target.c (update_current_target): Update.
11230 * remote.c (struct target_ops)
11231 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11232 * linux-nat.c (struct target_ops)
11233 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11234
61fc905d
TT
112352014-02-19 Tom Tromey <tromey@redhat.com>
11236
11237 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11238 Add argument.
11239 (target_static_tracepoint_marker_at): Add argument.
11240 * target.c (update_current_target): Update.
11241 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11242 argument.
11243
c378d69d
TT
112442014-02-19 Tom Tromey <tromey@redhat.com>
11245
11246 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11247 (target_set_permissions): Add argument.
11248 * target.c (update_current_target): Update.
11249 * remote.c (remote_set_permissions): Add 'self' argument.
11250 (remote_start_remote): Update.
11251
bd7ae0f5
TT
112522014-02-19 Tom Tromey <tromey@redhat.com>
11253
11254 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11255 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11256 (target_get_tib_address): Add argument.
11257 * target.c (update_current_target): Update.
11258 * remote.c (remote_get_tib_address): Add 'self' argument.
11259
d9e68a2c
TT
112602014-02-19 Tom Tromey <tromey@redhat.com>
11261
11262 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11263 (target_set_trace_notes): Add argument.
11264 * target.c (update_current_target): Update.
11265 * remote.c (remote_set_trace_notes): Add 'self' argument.
11266
4da384be
TT
112672014-02-19 Tom Tromey <tromey@redhat.com>
11268
11269 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11270 argument.
11271 (target_set_trace_buffer_size): Add argument.
11272 * target.c (update_current_target): Update.
11273 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11274
736d5b1f
TT
112752014-02-19 Tom Tromey <tromey@redhat.com>
11276
11277 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11278 argument.
11279 (target_set_circular_trace_buffer): Add argument.
11280 * target.c (update_current_target): Update.
11281 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11282 argument.
11283
37b25738
TT
112842014-02-19 Tom Tromey <tromey@redhat.com>
11285
11286 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11287 argument.
11288 (target_set_disconnected_tracing): Add argument.
11289 * target.c (update_current_target): Update.
11290 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11291
0e67620a
TT
112922014-02-19 Tom Tromey <tromey@redhat.com>
11293
11294 * target.h (struct target_ops)
11295 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11296 (target_get_min_fast_tracepoint_insn_len): Add argument.
11297 * target.c (update_current_target): Update.
11298 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11299 argument.
11300
88ee6f45
TT
113012014-02-19 Tom Tromey <tromey@redhat.com>
11302
11303 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11304 argument.
11305 (target_get_raw_trace_data): Add argument.
11306 * target.c (update_current_target): Update.
11307 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11308
181e3713
TT
113092014-02-19 Tom Tromey <tromey@redhat.com>
11310
11311 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11312 Add argument.
11313 (target_upload_trace_state_variables): Add argument.
11314 * target.c (update_current_target): Update.
11315 * remote.c (remote_upload_trace_state_variables): Add 'self'
11316 argument.
11317 (remote_start_remote): Update.
11318
ab6617cc
TT
113192014-02-19 Tom Tromey <tromey@redhat.com>
11320
11321 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11322 argument.
11323 (target_upload_tracepoints): Add argument.
11324 * target.c (update_current_target): Update.
11325 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11326 (remote_start_remote): Update.
11327
dc3decaf
TT
113282014-02-19 Tom Tromey <tromey@redhat.com>
11329
11330 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11331 (target_save_trace_data): Add argument.
11332 * target.c (update_current_target): Update.
11333 * remote.c (remote_save_trace_data): Add 'self' argument.
11334
4011015b
TT
113352014-02-19 Tom Tromey <tromey@redhat.com>
11336
11337 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11338 argument.
11339 * target.h (struct target_ops)
11340 <to_get_trace_state_variable_value>: Add argument.
11341 (target_get_trace_state_variable_value): Add argument.
11342 * target.c (update_current_target): Update.
11343 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11344 argument.
11345 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11346
bd4c6793
TT
113472014-02-19 Tom Tromey <tromey@redhat.com>
11348
11349 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11350 * target.h (struct target_ops) <to_trace_find>: Add argument.
11351 (target_trace_find): Add argument.
11352 * target.c (update_current_target): Update.
11353 * remote.c (remote_trace_find): Add 'self' argument.
11354 * ctf.c (ctf_trace_find): Add 'self' argument.
11355
74499f1b
TT
113562014-02-19 Tom Tromey <tromey@redhat.com>
11357
11358 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11359 (target_trace_stop): Add argument.
11360 * target.c (update_current_target): Update.
11361 * remote.c (remote_trace_stop): Add 'self' argument.
11362
db90e85c
TT
113632014-02-19 Tom Tromey <tromey@redhat.com>
11364
11365 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11366 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11367 argument.
11368 (target_get_tracepoint_status): Add argument.
11369 * target.c (update_current_target): Update.
11370 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11371
8bd200f1
TT
113722014-02-19 Tom Tromey <tromey@redhat.com>
11373
11374 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11375 * target.h (struct target_ops) <to_get_trace_status>: Add
11376 argument.
11377 (target_get_trace_status): Add argument.
11378 * target.c (update_current_target): Update.
11379 * remote.c (remote_get_trace_status): Add 'self' argument.
11380 (remote_start_remote, remote_can_download_tracepoint): Update.
11381 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11382
e2d1aae3
TT
113832014-02-19 Tom Tromey <tromey@redhat.com>
11384
11385 * target.h (struct target_ops) <to_trace_start>: Add argument.
11386 (target_trace_start): Add argument.
11387 * target.c (update_current_target): Update.
11388 * remote.c (remote_trace_start): Add 'self' argument.
11389
583f9a86
TT
113902014-02-19 Tom Tromey <tromey@redhat.com>
11391
11392 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11393 Add argument.
11394 (target_trace_set_readonly_regions): Add argument.
11395 * target.c (update_current_target): Update.
11396 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11397 argument.
11398
780b049c
TT
113992014-02-19 Tom Tromey <tromey@redhat.com>
11400
11401 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11402 argument.
11403 (target_disable_tracepoint): Add argument.
11404 * target.c (update_current_target): Update.
11405 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11406
46670d57
TT
114072014-02-19 Tom Tromey <tromey@redhat.com>
11408
11409 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11410 argument.
11411 (target_enable_tracepoint): Add argument.
11412 * target.c (update_current_target): Update.
11413 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11414
559d2b81
TT
114152014-02-19 Tom Tromey <tromey@redhat.com>
11416
11417 * target.h (struct target_ops) <to_download_trace_state_variable>:
11418 Add argument.
11419 (target_download_trace_state_variable): Add argument.
11420 * target.c (update_current_target): Update.
11421 * remote.c (remote_download_trace_state_variable): Add 'self'
11422 argument.
11423
a52a8357
TT
114242014-02-19 Tom Tromey <tromey@redhat.com>
11425
11426 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11427 argument.
11428 (target_can_download_tracepoint): Add argument.
11429 * target.c (update_current_target): Update.
11430 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11431
548f7808
TT
114322014-02-19 Tom Tromey <tromey@redhat.com>
11433
11434 * target.h (struct target_ops) <to_download_tracepoint>: Add
11435 argument.
11436 (target_download_tracepoint): Add argument.
11437 * target.c (update_current_target): Update.
11438 * remote.c (remote_download_tracepoint): Add 'self' argument.
11439
ecae04e1
TT
114402014-02-19 Tom Tromey <tromey@redhat.com>
11441
11442 * target.h (struct target_ops) <to_trace_init>: Add argument.
11443 (target_trace_init): Add argument.
11444 * target.c (update_current_target): Update.
11445 * remote.c (remote_trace_init): Add 'self' argument.
11446
fab5aa7c
TT
114472014-02-19 Tom Tromey <tromey@redhat.com>
11448
11449 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11450 * target.c (target_fileio_readlink): Add argument.
11451 * remote.c (remote_hostio_readlink): Add 'self' argument.
11452 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11453
dbbca37d
TT
114542014-02-19 Tom Tromey <tromey@redhat.com>
11455
11456 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11457 * target.c (target_fileio_unlink): Add argument.
11458 * remote.c (remote_hostio_unlink): Add 'self' argument.
11459 (remote_file_delete): Update.
11460 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11461
df39ea25
TT
114622014-02-19 Tom Tromey <tromey@redhat.com>
11463
11464 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11465 * target.c (target_fileio_close): Add argument.
11466 * remote.c (remote_hostio_close): Add 'self' argument.
11467 (remote_hostio_close_cleanup): Update.
11468 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11469 Update.
11470 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11471
a3be983c
TT
114722014-02-19 Tom Tromey <tromey@redhat.com>
11473
11474 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11475 * target.c (target_fileio_pread): Add argument.
11476 * remote.c (remote_hostio_pread): Add 'self' argument.
11477 (remote_bfd_iovec_pread, remote_file_get): Update.
11478 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11479
0d866f62
TT
114802014-02-19 Tom Tromey <tromey@redhat.com>
11481
11482 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11483 * target.c (target_fileio_pwrite): Add argument.
11484 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11485 (remote_file_put): Update.
11486 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11487
cd897586
TT
114882014-02-19 Tom Tromey <tromey@redhat.com>
11489
11490 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11491 * target.c (target_fileio_open): Add argument.
11492 * remote.c (remote_hostio_open): Add 'self' argument.
11493 (remote_bfd_iovec_open): Add 'self' argument.
11494 (remote_file_put): Add 'self' argument.
11495 (remote_file_get): Add 'self' argument.
11496 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11497
78eff0ec
TT
114982014-02-19 Tom Tromey <tromey@redhat.com>
11499
11500 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11501 Add argument.
11502 (target_can_run_breakpoint_commands): Add argument.
11503 * target.c (update_current_target): Update.
11504 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11505 argument.
11506 (remote_insert_breakpoint): Add 'self' argument.
11507 (remote_insert_hw_breakpoint): Add 'self' argument.
11508 (remote_can_run_breakpoint_commands): Add 'self' argument.
11509
efcc2da7
TT
115102014-02-19 Tom Tromey <tromey@redhat.com>
11511
11512 * target.h (struct target_ops)
11513 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11514 (target_supports_evaluation_of_breakpoint_conditions): Add
11515 argument.
11516 * target.c (update_current_target): Update.
11517 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11518 argument.
11519 (remote_insert_breakpoint): Add 'self' argument.
11520 (remote_insert_hw_breakpoint): Add 'self' argument.
11521 (remote_supports_cond_breakpoints): Add 'self' argument.
11522
6de37a3a
TT
115232014-02-19 Tom Tromey <tromey@redhat.com>
11524
11525 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11526 argument.
11527 (target_supports_string_tracing): Add argument.
11528 * target.c (update_current_target): Update.
11529 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11530
2bfc0540
TT
115312014-02-19 Tom Tromey <tromey@redhat.com>
11532
11533 * target.h (struct target_ops)
11534 <to_supports_disable_randomization>: Add argument.
11535 * target.c (find_default_supports_disable_randomization): Add
11536 argument.
11537 (target_supports_disable_randomization): Add argument.
11538 (find_default_supports_disable_randomization): Add 'self'
11539 argument.
11540 * remote.c (extended_remote_supports_disable_randomization): Add
11541 'self' argument.
11542 (remote_supports_disable_randomization): Add 'self' argument.
11543 (extended_remote_create_inferior): Update.
11544 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11545 'self' argument.
11546
7d178d6a
TT
115472014-02-19 Tom Tromey <tromey@redhat.com>
11548
11549 * target.h (struct target_ops)
11550 <to_supports_enable_disable_tracepoint>: Add argument.
11551 (target_supports_enable_disable_tracepoint): Add argument.
11552 * target.c (update_current_target): Update.
11553 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11554 argument.
11555
86ce2668
TT
115562014-02-19 Tom Tromey <tromey@redhat.com>
11557
11558 * target.h (struct target_ops) <to_supports_multi_process>: Add
11559 argument.
11560 (target_supports_multi_process): Add argument.
11561 * target.c (update_current_target): Update.
11562 * remote.c (remote_supports_multi_process): Add 'self' argument.
11563 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11564 argument.
11565 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11566 argument.
11567
4c612759
TT
115682014-02-19 Tom Tromey <tromey@redhat.com>
11569
11570 * target.h (struct target_ops) <to_execution_direction>: Add
11571 argument.
11572 (target_execution_direction): Add argument.
11573 * target.c (default_execution_direction): Add 'self' argument.
11574 * record-full.c (record_full_execution_direction): Add 'self'
11575 argument.
11576
19db3e69
TT
115772014-02-19 Tom Tromey <tromey@redhat.com>
11578
11579 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11580 argument.
11581 (target_can_execute_reverse): Add argument.
11582 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11583 * record-full.c (record_full_can_execute_reverse): Add 'self'
11584 argument.
11585 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11586 argument.
11587
1e6b91a4
TT
115882014-02-19 Tom Tromey <tromey@redhat.com>
11589
11590 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11591 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11592 argument.
11593 (target_get_ada_task_ptid): Add argument.
11594 * target.c (update_current_target): Update.
11595 (default_get_ada_task_ptid): Add 'self' argument.
11596 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11597 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11598 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11599 argument.
11600 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11601 argument.
11602 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11603 argument.
11604 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11605 argument.
11606 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11607 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11608 argument.
11609
3c80fb48
TT
116102014-02-19 Tom Tromey <tromey@redhat.com>
11611
11612 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11613 (target_goto_bookmark): Add argument.
11614 * target.c (dummy_goto_bookmark): Add 'self' argument.
11615 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11616
dd0e2830
TT
116172014-02-19 Tom Tromey <tromey@redhat.com>
11618
11619 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11620 (target_get_bookmark): Add argument.
11621 * target.c (dummy_get_bookmark): Add 'self' argument.
11622 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11623
fc6691b2
TT
116242014-02-19 Tom Tromey <tromey@redhat.com>
11625
11626 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11627 argument.
11628 (target_make_corefile_notes): Add argument.
11629 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11630 * procfs.c (procfs_make_note_section): Add 'self' argument.
11631 (procfs_make_note_section): Add 'self' argument.
11632 (procfs_make_note_section): Add 'self' argument.
11633 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11634 argument.
11635 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11636 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11637 * exec.c (exec_make_note_section): Add 'self' argument.
11638 (exec_make_note_section): Add 'self' argument.
11639
2e73927c
TT
116402014-02-19 Tom Tromey <tromey@redhat.com>
11641
11642 * target.h (struct target_ops) <to_find_memory_regions>: Add
11643 argument.
11644 (target_find_memory_regions): Add argument.
11645 * target.c (dummy_find_memory_regions): Add 'self' argument.
11646 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11647 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11648 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11649 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11650 * exec. (exec_do_find_memory_regions): New global.
11651 (exec_set_find_memory_regions): Rewrite.
11652 (exec_find_memory_regions): New function.
11653 (init_exec_ops): Use exec_find_memory_regions.
11654
2a9a2795
TT
116552014-02-19 Tom Tromey <tromey@redhat.com>
11656
11657 * target.h (struct target_ops) <to_supports_non_stop>: Add
11658 argument.
11659 * target.c (find_default_supports_non_stop): Add argument.
11660 (target_supports_non_stop): Add argument.
11661 (find_default_supports_non_stop): Add 'self' argument.
11662 * remote.c (remote_supports_non_stop): Add 'self' argument.
11663 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11664
4ab76ea3
TT
116652014-02-19 Tom Tromey <tromey@redhat.com>
11666
11667 * target.h (struct target_ops) <to_log_command>: Add argument.
11668 (target_log_command): Add argument.
11669 * serial.h (serial_log_command): Add 'self' argument.
11670 * serial.c (serial_log_command): Add 'self' argument.
11671
8dd27370
TT
116722014-02-19 Tom Tromey <tromey@redhat.com>
11673
11674 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11675 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11676 argument.
11677 (target_pid_to_exec_file): Add argument.
11678 * target.c (debug_to_pid_to_exec_file): Add argument.
11679 (update_current_target): Update.
11680 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11681 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11682 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11683 (linux_handle_extended_wait): Update.
11684 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11685 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11686 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11687 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11688
1aac633b
TT
116892014-02-19 Tom Tromey <tromey@redhat.com>
11690
11691 * target.h (struct target_ops) <to_rcmd>: Add argument.
11692 (target_rcmd): Add argument.
11693 * target.c (debug_to_rcmd): Add argument.
11694 (update_current_target, do_monitor_command): Update.
11695 * remote.c (remote_rcmd): Add 'self' argument.
11696 * monitor.c (monitor_rcmd): Add 'self' argument.
11697
1eab8a48
TT
116982014-02-19 Tom Tromey <tromey@redhat.com>
11699
11700 * windows-nat.c (windows_stop): Add 'self' argument.
11701 * target.h (struct target_ops) <to_stop>: Add argument.
11702 * target.c (target_stop): Add argument.
11703 (debug_to_stop): Add argument.
11704 (update_current_target): Update.
11705 * remote.c (remote_stop): Add 'self' argument.
11706 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11707 (gdbsim_cntrl_c): Update.
11708 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11709 * procfs.c (procfs_stop): Add 'self' argument.
11710 * nto-procfs.c (procfs_stop): Add 'self' argument.
11711 * monitor.c (monitor_stop): Add 'self' argument.
11712 (monitor_open): Update.
11713 * linux-nat.c (linux_nat_stop): Add argument.
11714 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11715 * gnu-nat.c (gnu_stop): Add 'self' argument.
11716 * darwin-nat.c (darwin_stop): Add 'self' argument.
11717
503a628d
TT
117182014-02-19 Tom Tromey <tromey@redhat.com>
11719
11720 * target.h (struct target_ops) <to_thread_name>: Add argument.
11721 * target.c (target_thread_name): Add argument.
11722 (update_current_target): Update.
11723 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11724
c15906d8
TT
117252014-02-19 Tom Tromey <tromey@redhat.com>
11726
11727 * target.h (struct target_ops) <to_extra_thread_info>: Add
11728 argument.
11729 (target_extra_thread_info): Add argument.
11730 * target.c (update_current_target): Update.
11731 * remote.c (remote_threads_extra_info): Add 'self' argument.
11732 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11733 argument.
11734 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11735 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11736 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11737 argument.
11738 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11739 argument.
11740 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11741 argument.
11742 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11743 argument.
11744
daf5e9b6
TT
117452014-02-19 Tom Tromey <tromey@redhat.com>
11746
11747 * target.h (struct target_ops) <to_program_signals>: Add argument.
11748 * target.c (target_program_signals): Add argument.
11749 * remote.c (remote_program_signals): Add 'self' argument.
11750
94bedb42
TT
117512014-02-19 Tom Tromey <tromey@redhat.com>
11752
11753 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11754 * target.c (target_pass_signals): Add argument.
11755 * remote.c (remote_pass_signals): Add 'self' argument.
11756 (remote_start_remote): Update.
11757 * procfs.c (procfs_pass_signals): Add 'self' argument.
11758 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11759 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11760 (linux_nat_create_inferior, linux_nat_attach): Update.
11761
da82bd6b
TT
117622014-02-19 Tom Tromey <tromey@redhat.com>
11763
11764 * windows-nat.c (windows_can_run): Add 'self' argument.
11765 * target.h (struct target_ops) <to_can_run>: Add argument.
11766 (target_can_run): Add argument.
11767 * target.c (debug_to_can_run): Add argument.
11768 (update_current_target): Update.
11769 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11770 * inf-child.c (inf_child_can_run): Add 'self' argument.
11771 * go32-nat.c (go32_can_run): Add 'self' argument.
11772
d796e1d6
TT
117732014-02-19 Tom Tromey <tromey@redhat.com>
11774
11775 * target.h (struct target_ops) <to_has_exited>: Add argument.
11776 (target_has_exited): Add argument.
11777 * target.c (debug_to_has_exited): Add argument.
11778 (update_current_target): Update.
11779
ff214e67
TT
117802014-02-19 Tom Tromey <tromey@redhat.com>
11781
11782 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11783 argument.
11784 (target_set_syscall_catchpoint): Add argument.
11785 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11786 argument.
11787 * target.c (update_current_target): Update.
11788
758e29d2
TT
117892014-02-19 Tom Tromey <tromey@redhat.com>
11790
11791 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11792 argument.
11793 (target_remove_exec_catchpoint): Add argument.
11794 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11795 (update_current_target): Update.
11796 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11797 argument.
11798
ba025e51
TT
117992014-02-19 Tom Tromey <tromey@redhat.com>
11800
11801 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11802 argument.
11803 (target_insert_exec_catchpoint): Add argument.
11804 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11805 (update_current_target): Update.
11806 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11807 argument.
11808
e98cf0cd
TT
118092014-02-19 Tom Tromey <tromey@redhat.com>
11810
11811 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11812 argument.
11813 (target_remove_vfork_catchpoint): Add argument.
11814 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11815 (update_current_target): Update.
11816 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11817 argument.
11818
3ecc7da0
TT
118192014-02-19 Tom Tromey <tromey@redhat.com>
11820
11821 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11822 argument.
11823 (target_insert_vfork_catchpoint): Add argument.
11824 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11825 (update_current_target): Update.
11826 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11827 argument.
11828
973fc227
TT
118292014-02-19 Tom Tromey <tromey@redhat.com>
11830
11831 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11832 argument.
11833 (target_remove_fork_catchpoint): Add argument.
11834 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11835 (update_current_target): Update.
11836 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11837 argument.
11838
a863b201
TT
118392014-02-19 Tom Tromey <tromey@redhat.com>
11840
11841 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11842 argument.
11843 (target_insert_fork_catchpoint): Add argument.
11844 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11845 (update_current_target): Update.
11846 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11847 argument.
11848
2e97a79e
TT
118492014-02-19 Tom Tromey <tromey@redhat.com>
11850
11851 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11852 argument.
11853 (target_post_startup_inferior): Add argument.
11854 * target.c (debug_to_post_startup_inferior): Add argument.
11855 (update_current_target): Update.
11856 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11857 argument.
11858 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11859 argument.
11860 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11861 argument.
11862 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11863 argument.
11864 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11865 'self' argument.
11866 (super_post_startup_inferior): Likewise.
11867 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11868 'self' argument.
11869 (super_post_startup_inferior): Likewise.
11870 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11871 Add 'self' argument.
11872 (super_post_startup_inferior): Likewise.
11873
71a9f134
TT
118742014-02-19 Tom Tromey <tromey@redhat.com>
11875
11876 * target.h (struct target_ops) <to_load>: Add argument.
11877 * target.c (target_load): Add argument.
11878 (debug_to_load): Add argument.
11879 (update_current_target): Update.
11880 * remote.c (remote_load): Add 'self' argument.
11881 * remote-sim.c (gdbsim_load): Add 'self' argument.
11882 * remote-mips.c (mips_load): Add 'self' argument.
11883 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11884 * monitor.c (monitor_load): Add 'self' argument.
11885 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11886
0a4f40a2
TT
118872014-02-19 Tom Tromey <tromey@redhat.com>
11888
11889 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11890 (target_terminal_info): Add argument.
11891 * target.c (debug_to_terminal_info): Add argument.
11892 (default_terminal_info): Likewise.
11893 * inflow.c (child_terminal_info): Add 'self' argument.
11894 * inferior.h (child_terminal_info): Add 'self' argument.
11895 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11896
ae3bd431
TT
118972014-02-19 Tom Tromey <tromey@redhat.com>
11898
11899 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11900 argument.
11901 (target_terminal_save_ours): Add argument.
11902 * target.c (debug_to_terminal_save_ours): Add argument.
11903 (update_current_target): Update.
11904 * inflow.c (terminal_save_ours): Add 'self' argument.
11905 * inferior.h (terminal_save_ours): Add 'self' argument.
11906
e3594fd1
TT
119072014-02-19 Tom Tromey <tromey@redhat.com>
11908
11909 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11910 (target_terminal_ours): Add argument.
11911 * target.c (debug_to_terminal_ours): Add argument.
11912 (update_current_target): Update.
11913 * remote.c (remote_terminal_ours): Add 'self' argument.
11914 (remote_close): Update.
11915 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11916 * inflow.c (terminal_ours): Add 'self' argument.
11917 * inferior.h (terminal_ours): Add 'self' argument.
11918 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11919
2e1e1a19
TT
119202014-02-19 Pedro Alves <palves@redhat.com>
11921 Tom Tromey <tromey@redhat.com>
11922
11923 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11924 argument.
11925 (target_terminal_ours_for_output): Add argument.
11926 * target.c (debug_to_terminal_ours_for_output): Add argument.
11927 (update_current_target): Update.
11928 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11929 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11930 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11931
d2f640d4
TT
119322014-02-19 Tom Tromey <tromey@redhat.com>
11933
11934 * target.h (struct target_ops) <to_terminal_inferior>: Add
11935 argument.
11936 * target.c (target_terminal_inferior): Add argument.
11937 (update_current_target): Update.
11938 * remote.c (remote_terminal_inferior): Add 'self' argument.
11939 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11940 * inflow.c (terminal_inferior): Add 'self' argument.
11941 * inferior.h (terminal_inferior): Add 'self' argument.
11942 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11943 (go32_terminal_inferior): Add 'self' argument.
11944
c42bf286
TT
119452014-02-19 Tom Tromey <tromey@redhat.com>
11946
11947 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11948 (target_terminal_init): Add argument.
11949 * target.c (debug_to_terminal_init): Add argument.
11950 (update_current_target): Update.
11951 * inflow.c (terminal_init_inferior): Add 'self' argument.
11952 * inferior.h (terminal_init_inferior): Add 'self' argument.
11953 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11954 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11955
c3a5ff89
TT
119562014-02-19 Tom Tromey <tromey@redhat.com>
11957
11958 * target.h (struct target_ops)
11959 <to_can_accel_watchpoint_condition>: Add argument.
11960 (target_can_accel_watchpoint_condition): Add argument.
11961 * target.c (debug_to_can_accel_watchpoint_condition): Add
11962 argument.
11963 (update_current_target): Update.
11964 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11965 'self' argument.
11966
31568a15
TT
119672014-02-19 Tom Tromey <tromey@redhat.com>
11968
11969 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11970 Add argument.
11971 (target_region_ok_for_hw_watchpoint): Add argument.
11972 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11973 (default_region_ok_for_hw_watchpoint): Add argument.
11974 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11975 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11976 argument.
11977 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11978 argument.
11979 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11980 argument.
11981 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11982 'self' argument.
11983 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11984 'self' argument.
11985 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11986 'self' argument.
11987 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11988 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11989 'self' argument.
11990 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11991 Add 'self' argument.
11992
7bb99c53
TT
119932014-02-19 Tom Tromey <tromey@redhat.com>
11994
11995 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11996 argument.
11997 (target_insert_watchpoint): Add argument.
11998 * target.c (debug_to_insert_watchpoint): Add argument.
11999 (update_current_target): Update.
12000 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12001 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12002 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12003 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12004 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12005 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12006 argument.
12007 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12008 (procfs_insert_hw_watchpoint): Add 'self' argument.
12009 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12010 argument.
12011 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12012 argument.
12013 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12014 argument.
12015 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12016 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12017 argument.
12018 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12019 'self' argument.
12020
11b5219a
TT
120212014-02-19 Tom Tromey <tromey@redhat.com>
12022
12023 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12024 argument.
12025 (target_remove_watchpoint): Add argument.
12026 * target.c (debug_to_remove_watchpoint): Add argument.
12027 (update_current_target): Update.
12028 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12029 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12030 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12031 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12032 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12033 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12034 argument.
12035 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12036 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12037 argument.
12038 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12039 argument.
12040 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12041 argument.
12042 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12043 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12044 argument.
12045 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12046 'self' argument.
12047
a64dc96c
TT
120482014-02-19 Tom Tromey <tromey@redhat.com>
12049
12050 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12051 argument.
12052 (target_remove_hw_breakpoint): Add argument.
12053 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12054 (update_current_target): Update.
12055 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12056 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12057 argument.
12058 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12059 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12060 argument.
12061 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12062 'self' argument.
12063
23a26771
TT
120642014-02-19 Tom Tromey <tromey@redhat.com>
12065
12066 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12067 argument.
12068 (target_insert_hw_breakpoint): Add argument.
12069 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12070 (update_current_target): Update.
12071 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12072 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12073 argument.
12074 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12075 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12076 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12077 argument.
12078 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12079 'self' argument.
12080
5461485a
TT
120812014-02-19 Tom Tromey <tromey@redhat.com>
12082
12083 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12084 argument.
12085 (target_can_use_hardware_watchpoint): Add argument.
12086 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12087 (update_current_target): Update.
12088 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12089 argument.
12090 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12091 argument.
12092 * remote.c (remote_check_watch_resources): Add 'self' argument.
12093 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12094 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12095 argument.
12096 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12097 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12098 argument.
12099 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12100 argument.
12101 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12102 argument.
12103 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12104 argument.
12105 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12106 argument.
12107 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12108 argument.
12109 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12110 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12111 argument.
12112 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12113 'self' argument.
12114
f045800c
TT
121152014-02-19 Tom Tromey <tromey@redhat.com>
12116
12117 * target.h (struct target_ops) <to_post_attach>: Add argument.
12118 (target_post_attach): Add argument.
12119 * target.c (debug_to_post_attach): Add argument.
12120 (update_current_target): Update.
12121 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12122 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12123 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12124 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12125 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12126
de90e03d
TT
121272014-02-19 Tom Tromey <tromey@redhat.com>
12128
12129 * windows-nat.c (windows_close): Add 'self' argument.
12130 * tracepoint.c (tfile_close): Add 'self' argument.
12131 * target.h (struct target_ops) <to_close>: Add argument.
12132 * target.c (target_close): Add argument.
12133 (update_current_target): Update.
12134 * remote.c (remote_close): Add 'self' argument.
12135 * remote-sim.c (gdbsim_close): Add 'self' argument.
12136 * remote-mips.c (mips_close): Add 'self' argument.
12137 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12138 * record-full.c (record_full_close): Add 'self' argument.
12139 * record-btrace.c (record_btrace_close): Add 'self' argument.
12140 * monitor.h (monitor_close): Add 'self' argument.
12141 * monitor.c (monitor_close): Add 'self' argument.
12142 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12143 * linux-nat.c (linux_nat_close): Add argument.
12144 * go32-nat.c (go32_close): Add 'self' argument.
12145 * exec.c (exec_close_1): Add 'self' argument.
12146 * ctf.c (ctf_close): Add 'self' argument.
12147 * corelow.c (core_close): Add 'self' argument.
12148 (core_close_cleanup): Update.
12149 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12150 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12151
9dd130a0
TT
121522014-02-19 Tom Tromey <tromey@redhat.com>
12153
12154 * remote.c (remote_load): New function.
12155 (init_remote_ops): Use it.
12156
46917d26
TT
121572014-02-19 Tom Tromey <tromey@redhat.com>
12158
12159 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12160 argument.
12161 * common/linux-btrace.h (linux_supports_btrace): Update.
12162 * remote.c (remote_supports_btrace): Add "self" argument.
12163 * target-delegates.c: Rebuild.
12164 * target.c (target_supports_btrace): Remove.
12165 * target.h (struct target_ops) <to_supports_btrace>: Add
12166 target_ops argument.
12167 (target_supports_btrace): New define.
12168
6b84065d
TT
121692014-02-19 Tom Tromey <tromey@redhat.com>
12170
12171 * record-full.c (record_full_beneath_to_resume_ops)
12172 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12173 (record_full_beneath_to_wait)
12174 (record_full_beneath_to_store_registers_ops)
12175 (record_full_beneath_to_store_registers)
12176 (record_full_beneath_to_xfer_partial_ops)
12177 (record_full_beneath_to_xfer_partial)
12178 (record_full_beneath_to_insert_breakpoint_ops)
12179 (record_full_beneath_to_insert_breakpoint)
12180 (record_full_beneath_to_remove_breakpoint_ops)
12181 (record_full_beneath_to_remove_breakpoint)
12182 (record_full_beneath_to_stopped_by_watchpoint)
12183 (record_full_beneath_to_stopped_data_address)
12184 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12185 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12186 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12187 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12188 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12189 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12190 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12191 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12192 (record_full_resume, record_full_wait_1)
12193 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12194 (record_full_store_registers, record_full_xfer_partial)
12195 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12196 (record_full_async, record_full_core_xfer_partial): Use target
12197 delegation.
12198 * target-delegates.c: Rebuild.
12199 * target.c (current_xfer_partial): Remove.
12200 (update_current_target): Do not INHERIT or de_fault
12201 to_insert_breakpoint, to_remove_breakpoint,
12202 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12203 to_is_async_p, to_async. Do not set to_xfer_partial field.
12204 (default_xfer_partial): Simplify.
12205 (current_xfer_partial): Remove.
12206 (target_wait, target_resume): Simplify.
12207 (find_default_can_async_p, find_default_is_async_p): Update.
12208 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12209 to_xfer_partial, to_stopped_by_watchpoint,
12210 to_stopped_data_address.
12211 (target_store_registers): Simplify.
12212 (forward_target_remove_breakpoint)
12213 (forward_target_insert_breakpoint): Remove.
12214 (target_remove_breakpoint, target_insert_breakpoint)
12215 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12216 * target.h (struct target_ops) <to_resume, to_wait,
12217 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12218 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12219 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12220 markup.
12221 (forward_target_remove_breakpoint)
12222 (forward_target_insert_breakpoint): Remove.
12223 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12224 directly.
12225 (record_btrace_insert_breakpoint): Delegate directly.
12226
1101cb7b
TT
122272014-02-19 Tom Tromey <tromey@redhat.com>
12228
12229 PR build/7701:
12230 * target-delegates.c: New file.
12231 * target.c: Include target-delegates.c.
12232 (init_dummy_target): Call install_dummy_methods.
12233 (complete_target_initialization): Call install_delegators.
12234 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12235 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12236 * make-target-delegates: New file.
12237
8b06beed
TT
122382014-02-19 Tom Tromey <tromey@redhat.com>
12239
12240 * record.c (find_record_target): Use find_target_at.
12241 * target.c (find_target_at): New function.
12242 * target.h (find_target_at): Declare.
12243
6a109b6b
TT
122442014-02-19 Tom Tromey <tromey@redhat.com>
12245
12246 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12247 Add 'ops' argument.
12248 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12249 'ops' argument.
12250 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12251 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12252 'ops' argument.
12253 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12254 argument.
12255 * linux-nat.c (save_sigtrap): Update.
12256 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12257 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12258 (linux_nat_close): Update.
12259 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12260 argument.
12261 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12262 argument.
12263 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12264 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12265 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12266 (tmp_to_async): Add 'ops' argument.
12267 (record_full_stopped_by_watchpoint, record_full_async)
12268 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12269 argument.
12270 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12271 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12272 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12273 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12274 (remote_is_async_p, remote_async): Add 'ops' argument.
12275 (remote_stopped_data_address): Update.
12276 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12277 * target.c (update_current_target)
12278 (find_default_can_async_p, find_default_is_async_p): Update.
12279 (init_dummy_target): Update.
12280 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12281 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12282 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12283 (target_can_async_p, target_is_async_p, target_async)
12284 (target_stopped_by_watchpoint): Update.
12285
e095146b
YQ
122862014-02-19 Yao Qi <yao@codesourcery.com>
12287
12288 PR gdb/16220
12289 * gdbarch.sh: Remove startup_gdbarch.
12290 * gdbarch.c: Regenerated.
12291 * gdbarch.h: Likewise.
12292
bc3c6b36
KB
122932014-02-17 Kevin Buettner <kevinb@redhat.com>
12294
12295 * rl78-tdep.c (rl78_g10_register_name): New function.
12296 (rl78_return_value): Add g10 support.
12297 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12298 g10.
12299
98dc0167 123002014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12301
12302 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12303 (SUBDIR_GUILE_SRCS): Ditto.
12304 (scm-gsmob.o): Ditto.
12305
842c05cd
YQ
123062014-02-17 Yao Qi <yao@codesourcery.com>
12307
12308 * gnu-nat.c (ILL_RPC): Declare defined function.
12309
25c0bd04
YQ
123102014-02-17 Yao Qi <yao@codesourcery.com>
12311
12312 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12313 mach_msg_type_number_t.
12314 (gnu_write_inferior): Likewise.
12315
a9a758e3
YQ
123162014-02-17 Yao Qi <yao@codesourcery.com>
12317
12318 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12319 in format string.
12320 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12321 (inf_validate_procs, inf_signal): Likewise.
12322 (S_exception_raise_request): Likewise.
12323 (do_mach_notify_dead_name): Likewise.
12324 (steal_exc_port): Likewise.
12325 (gnu_read_inferior): Change 'copy_count''s type to
12326 mach_msg_type_number_t.
12327 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12328 format string.
12329
bae8023e
TS
123302014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12331
c82f56d9
TS
12332 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12333 flag. Adjust all users; in particular...
12334 (gnu_wait): ..., don't decrement its value in here...
12335 (gnu_create_inferior): ..., and instead set the flag in here,
12336 around the startup_inferior call, and call that one with
12337 START_INFERIOR_TRAPS_EXPECTED.
12338
3398af6a
TS
12339 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12340 (ILL_RPC): ... new macro.
12341 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12342 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12343 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12344 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12345 functions with ILL_RPC macro.
12346 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12347 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12348 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12349 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12350 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12351 (S_proc_getlogin_reply, S_proc_getsid_reply)
12352 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12353 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12354 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12355 (S_proc_getnports_reply, S_proc_is_important_reply)
12356 (S_proc_get_code_reply): New stub functions, generated with
12357 ILL_RPC macro.
12358
d47642c9
TS
12359 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12360 collected the type check structures.
12361
bae8023e
TS
12362 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12363
8a55ffb0
DE
123642014-02-14 Doug Evans <dje@google.com>
12365
12366 * target.c (target_write_partial): Fix result type.
12367
c2853f3d
JM
123682014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12369
12370 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12371 the proper offsets to access fpregset_t.
12372
ac61d2db
SA
123732014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12374
12375 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12376 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12377 * h8300-tdep.c (setmachinelist): Remove global.
12378 * hppa-tdep.c (hppa_sigtramp): Remove global.
12379 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12380 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12381 * ravenscar-thread.c (update_target_observer): Remove global.
12382 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12383
9d2d0b8b
TT
123842014-02-12 Tom Tromey <tromey@redhat.com>
12385
12386 * common/rsp-low.c: Update comments.
12387 * common/rsp-low.h: Update comments.
12388
a7191e8b
TT
123892014-02-12 Tom Tromey <tromey@redhat.com>
12390
12391 * common/rsp-low.c (convert_ascii_to_int): Remove.
12392 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12393
ff0e980e
TT
123942014-02-12 Tom Tromey <tromey@redhat.com>
12395
12396 * common/rsp-low.h (unhexify): Don't declare.
12397 * common/rsp-low.c (unhexify): Remove.
12398
e9371aff
TT
123992014-02-12 Tom Tromey <tromey@redhat.com>
12400
12401 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12402 * common/rsp-low.c (convert_int_to_ascii): Remove.
12403
971dc0b8
TT
124042014-02-12 Tom Tromey <tromey@redhat.com>
12405
12406 * common/rsp-low.h (hexify): Don't declare.
12407 * common/rsp-low.c (hexify): Remove.
12408
0a822afb
TT
124092014-02-12 Tom Tromey <tromey@redhat.com>
12410
12411 * common/rsp-low.c (hexify): Never take strlen of argument.
12412
9f1b45b0
TT
124132014-02-12 Tom Tromey <tromey@redhat.com>
12414
12415 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12416 * remote.c (extended_remote_run, remote_rcmd)
12417 (remote_download_trace_state_variable, remote_save_trace_data)
12418 (remote_set_trace_notes): Update.
12419 * tracepoint.c (encode_source_string, tfile_write_status)
12420 (tfile_write_uploaded_tsv): Update.
12421
9c3d6531
TT
124222014-02-12 Tom Tromey <tromey@redhat.com>
12423
12424 * tracepoint.c: Include rsp-low.h.
12425 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12426 * remote.c: Include rsp-low.h.
12427 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12428 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12429 (remote_unescape_input): Move to common/rsp-low.c.
12430 * common/rsp-low.h: New file.
12431 * common/rsp-low.c: New file.
12432 * Makefile.in (SFILES): Add common/rsp-low.c.
12433 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12434 (COMMON_OBS): Add rsp-low.o.
12435 (rsp-low.o): New target.
12436
01fd3ea5
TT
124372014-02-12 Tom Tromey <tromey@redhat.com>
12438
12439 * utils.h: Include print-utils.h.
12440 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12441 (int_string, core_addr_to_string, core_addr_to_string_nz)
12442 (hex_string, hex_string_custom): Don't declare.
12443 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12444 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12445 (hex_string_custom, int_string, core_addr_to_string)
12446 (core_addr_to_string_nz, host_address_to_string): Move to
12447 common/print-utils.c.
12448 * common/print-utils.h: New file.
12449 * common/print-utils.c: New file
12450 * Makefile.in (SFILES): Add common/print-utils.c.
12451 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12452 (COMMON_OBS): Add print-utils.o.
12453 (print-utils.o): New target.
12454
9fb50108
TT
124552014-02-12 Tom Tromey <tromey@redhat.com>
12456
12457 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12458
0548b5db
MK
124592014-02-12 Mark Kettenis <kettenis@gnu.org>
12460
12461 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12462
493443a4
MK
124632014-02-12 Mark Kettenis <kettenis@gnu.org>
12464
12465 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12466 if a PT_IO ptrace request returns sucessfully but indicates that 0
12467 bytes were transferred.
12468
706d0883
PA
124692014-02-12 Pedro Alves <palves@redhat.com>
12470 Kevin Buettner <kevinb@redhat.com>
12471
12472 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12473 TYPE_INSTANCE_FLAG_CODE_SPACE.
12474
5caa2f0b
PA
124752014-02-12 Pedro Alves <palves@redhat.com>
12476
12477 * h8300-tdep.c (pseudo_from_raw_register)
12478 (raw_from_pseudo_register): New functions.
12479 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12480 them.
12481
76fd5f74
PA
124822014-02-12 Pedro Alves <palves@redhat.com>
12483
12484 * h8300-tdep.c (h8300_register_sim_regno): New function.
12485 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12486 gdbarch_register_sim_regno hook.
12487
8f008406
SA
124882014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12489
12490 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12491
195abc10
SA
124922014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12493
12494 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12495
93ffa5b9
MK
124962014-02-12 Mark Kettenis <kettenis@gnu.org>
12497
12498 * obsd-tdep.h (obsd_init_abi): New prototype.
12499 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12500 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12501 (obsd_init_abi): New functions.
12502 * i386obsd-tdep.c: Include "obsd-tdep.h".
12503 (i386obsd_init_abi): Call obsd_init_abi.
12504 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12505 (amd64obsd_init_abi): Call obsd_init_abi.
12506 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12507 obsd-tdep.c to gdb_target_obs.
12508
49caec94
JM
125092014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12510
12511 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12512 double float arguments to 16-byte in the argument slots.
12513
e1402065
DE
125142014-02-11 Doug Evans <xdje42@gmail.com>
12515
12516 * configure.ac: Don't crash if pkg-config is not found and guile
12517 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12518 in guile checks.
12519 * configure: Regenerate.
12520
edcc890f
YQ
125212014-02-11 Yao Qi <yao@codesourcery.com>
12522
12523 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12524 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12525 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12526 * gnu-nat.c (gnu_xfer_memory): Likewise.
12527 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12528 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12529 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12530 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12531
9b409511
YQ
125322014-02-11 Yao Qi <yao@codesourcery.com>
12533
12534 * target.h (enum target_xfer_error): Rename to ...
12535 (enum target_xfer_status): ... it. New. All users updated.
12536 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12537 New.
12538 (TARGET_XFER_STATUS_ERROR_P): New macro.
12539 (target_xfer_error_to_string): Remove declaration.
12540 (target_xfer_status_to_string): Declare.
12541 (target_xfer_partial_ftype): Adjust it.
12542 (struct target_ops) <to_xfer_partial>: Return
12543 target_xfer_status. Add argument xfered_len. Update
12544 comments.
12545 * target.c (target_xfer_error_to_string): Rename to ...
12546 (target_xfer_status_to_string): ... it. New. All callers
12547 updated.
12548 (target_read_live_memory): Likewise. Call target_xfer_partial
12549 instead of target_read.
12550 (memory_xfer_live_readonly_partial): Return
12551 target_xfer_status. Add argument xfered_len.
12552 (raw_memory_xfer_partial): Likewise.
12553 (memory_xfer_partial_1): Likewise.
12554 (memory_xfer_partial): Likewise.
12555 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12556 properly. Update debug message.
12557 (default_xfer_partial, current_xfer_partial): Likewise.
12558 (target_write_partial): Likewise.
12559 (target_read_partial): Likewise. All callers updated.
12560 (read_whatever_is_readable): Likewise.
12561 (target_write_with_progress): Likewise.
12562 (target_read_alloc_1): Likewise.
12563
12564 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12565 * auxv.c (procfs_xfer_auxv): Likewise.
12566 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12567 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12568 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12569 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12570 * corefile.c (read_memory): Adjust.
12571 * corelow.c (core_xfer_partial): Likewise.
12572 * ctf.c (ctf_xfer_partial): Likewise.
12573 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12574 updated.
12575 (darwin_xfer_partial): Likewise.
12576 * exec.c (section_table_xfer_memory_partial): Likewise. All
12577 callers updated.
12578 (exec_xfer_partial): Likewise.
12579 * exec.h (section_table_xfer_memory_partial): Update
12580 declaration.
12581 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12582 negative.
12583 (gnu_xfer_partial): Likewise.
12584 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12585 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12586 (ia64_hpux_xfer_solib_got): Likewise.
12587 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12588 type of 'partial_len' to ULONGEST.
12589 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12590 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12591 (linux_nat_xfer_partial): Likewise.
12592 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12593 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12594 * monitor.c (monitor_xfer_memory): Likewise.
12595 (monitor_xfer_partial): Likewise.
12596 * procfs.c (procfs_xfer_partial): Likewise.
12597 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12598 * record-full.c (record_full_xfer_partial): Likewise.
12599 (record_full_core_xfer_partial): Likewise.
12600 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12601 (gdbsim_xfer_partial): Likewise.
12602 * remote.c (remote_write_bytes_aux): Likewise. All callers
12603 updated.
12604 (remote_write_bytes, remote_read_bytes): Likewise. All
12605 callers updated.
12606 (remote_flash_erase): Likewise. All callers updated.
12607 (remote_write_qxfer): Likewise. All callers updated.
12608 (remote_read_qxfer): Likewise. All callers updated.
12609 (remote_xfer_partial): Likewise.
12610 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12611 (rs6000_xfer_shared_libraries): Likewise.
12612 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12613 (sol_thread_xfer_partial): Likewise.
12614 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12615 (sparc_xfer_partial): Likewise.
12616 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12617 updated.
12618 (spu_xfer_partial): Likewise.
12619 * spu-multiarch.c (spu_xfer_partial): Likewise.
12620 * tracepoint.c (tfile_xfer_partial): Likewise.
12621 * windows-nat.c (windows_xfer_memory): Likewise.
12622 (windows_xfer_shared_libraries): Likewise.
12623 (windows_xfer_partial): Likewise.
12624 * valprint.c: Replace 'target_xfer_error' with
12625 'target_xfer_status' in comments.
12626
a8e63083
JB
126272014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12628
12629 Checked in by Joel Brobecker <brobecker@adacore.com>.
12630 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12631
e86b67d3
JB
126322014-02-11 Joel Brobecker <brobecker@adacore.com>
12633
12634 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12635 function parameters.
12636
4b7d1f7f
WN
126372014-02-10 Will Newton <will.newton@linaro.org>
12638
12639 * elfread.c (elf_rel_plt_read): Look for a .got section if
12640 looking up .got.plt fails.
12641 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12642 on address passed to elf_gnu_ifunc_record_cache.
12643 (elf_gnu_ifunc_resolve_addr): Likewise.
12644 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12645
961842b2
JM
126462014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12647
12648 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12649 (X_RETTURN): New macro.
12650 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12651
12652 * sparc64-tdep.c (sparc64_init_abi): Hook
12653 sparc_in_function_epilogue_p.
12654
3f03e7b1
GB
126552014-02-10 Gary Benson <gbenson@redhat.com>
12656
12657 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12658 Rename name_matcher to symbol_matcher.
12659
96f861ef
GB
126602014-02-10 Gary Benson <gbenson@redhat.com>
12661
12662 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12663 Use expand_symtabs_file_matcher_ftype and
12664 expand_symtabs_symbol_matcher_ftype.
12665
ee01b665
JB
126662014-02-10 Joel Brobecker <brobecker@adacore.com>
12667
12668 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12669 (struct ada_symbol_cache): New.
12670 (ada_free_symbol_cache): Forward declare.
12671 (struct ada_pspace_data): New.
12672 (ada_pspace_data_handle): New static global.
12673 (get_ada_pspace_data, ada_pspace_data_cleanup)
12674 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12675 (cache_space, cache): Delete, now folded inside struct
12676 ada_pspace_data.
12677 (ada_get_symbol_cache): New function.
12678 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12679 implementation.
12680 (_initialize_ada_language): Remove initialization of cache_space.
12681 Move call to observer_attach_inferior_exit up, grouping it
12682 with the other observer registrations inside this function.
12683 Rename command to be more general. Add call to
12684 register_program_space_data_with_cleanup.
12685
143adbbf
JB
126862014-02-10 Joel Brobecker <brobecker@adacore.com>
12687
12688 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12689 ada_new_objfile_observer.
12690 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12691 (_initialize_tasks): Update uses of ada_new_objfile_observer
12692 and ada_tasks_normal_stop_observer.
12693
aa4fb036
JB
126942014-02-10 Joel Brobecker <brobecker@adacore.com>
12695
12696 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12697 returned by the 'Length attribute to integer.
12698
9dee8cc6
JB
126992014-02-10 Joel Brobecker <brobecker@adacore.com>
12700
12701 * ada-lang.c (_initialize_ada_language): Initialize
12702 cache_space obstack.
12703
3d9434b5
JB
127042014-02-10 Joel Brobecker <brobecker@adacore.com>
12705
12706 * ada-lang.c (HASH_SIZE): New macro.
12707 (struct cache_entry): New type.
12708 (cache_space, cache): New static globals.
12709 (ada_clear_symbol_cache, find_entry): New functions.
12710 (lookup_cached_symbol, cache_symbol): Implement.
12711 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12712 (_initialize_ada_language): Attach ada_new_objfile_observer
12713 and ada_free_objfile_observer.
12714
f0c5f9b2
JB
127152014-02-10 Joel Brobecker <brobecker@adacore.com>
12716
12717 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12718 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12719 struct block * parameter.
12720 (ada_lookup_symbol_list_worker): Constify local variable "block".
12721 Remove cast which is no longer necessary.
12722
ed3ef339
DE
127232014-02-10 Doug Evans <xdje42@gmail.com>
12724
12725 Add Guile as an extension language.
12726 * NEWS: Mention Guile scripting.
12727 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12728 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12729 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12730 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12731 (CLIBS): Add GUILE_LIBS.
12732 (install-guile): New rule.
12733 (guile.o): New rule.
12734 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12735 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12736 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12737 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12738 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12739 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12740 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12741 * configure.ac: New option --with-guile.
12742 * configure: Regenerate.
12743 * config.in: Regenerate.
12744 * auto-load.c: Remove #include "python/python.h". Add #include
12745 "gdb/section-scripts.h".
12746 (source_section_scripts): Handle Guile scripts.
12747 (_initialize_auto_load): Add name of Guile objfile script to
12748 scripts-directory help text.
12749 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12750 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12751 (struct breakpoint): New member scm_bp_object.
12752 * defs.h (enum command_control_type): New value guile_control.
12753 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12754 "extension.h".
12755 (show_user): Update comment.
12756 (_initialize_cli_cmds): Update help text for "show user". Update help
12757 text for max-user-call-depth.
12758 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12759 "extension.h".
12760 (multi_line_command_p): Add guile_control.
12761 (print_command_lines): Handle guile_control.
12762 (execute_control_command, recurse_read_control_structure): Ditto.
12763 (process_next_line): Recognize "guile" commands.
12764 * disasm.c (gdb_disassemble_info): Make non-static.
12765 * disasm.h: #include "dis-asm.h".
12766 (struct gdbarch): Add forward decl.
12767 (gdb_disassemble_info): Declare.
12768 * extension.c: #include "guile/guile.h".
12769 (extension_languages): Add guile.
12770 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12771 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12772 * gdbtypes.c (get_unsigned_type_max): New function.
12773 (get_signed_type_minmax): New function.
12774 * gdbtypes.h (get_unsigned_type_max): Declare.
12775 (get_signed_type_minmax): Declare.
12776 * guile/README: New file.
12777 * guile/guile-internal.h: New file.
12778 * guile/guile.c: New file.
12779 * guile/guile.h: New file.
12780 * guile/scm-arch.c: New file.
12781 * guile/scm-auto-load.c: New file.
12782 * guile/scm-block.c: New file.
12783 * guile/scm-breakpoint.c: New file.
12784 * guile/scm-disasm.c: New file.
12785 * guile/scm-exception.c: New file.
12786 * guile/scm-frame.c: New file.
12787 * guile/scm-gsmob.c: New file.
12788 * guile/scm-iterator.c: New file.
12789 * guile/scm-lazy-string.c: New file.
12790 * guile/scm-math.c: New file.
12791 * guile/scm-objfile.c: New file.
12792 * guile/scm-ports.c: New file.
12793 * guile/scm-pretty-print.c: New file.
12794 * guile/scm-safe-call.c: New file.
12795 * guile/scm-string.c: New file.
12796 * guile/scm-symbol.c: New file.
12797 * guile/scm-symtab.c: New file.
12798 * guile/scm-type.c: New file.
12799 * guile/scm-utils.c: New file.
12800 * guile/scm-value.c: New file.
12801 * guile/lib/gdb.scm: New file.
12802 * guile/lib/gdb/boot.scm: New file.
12803 * guile/lib/gdb/experimental.scm: New file.
12804 * guile/lib/gdb/init.scm: New file.
12805 * guile/lib/gdb/iterator.scm: New file.
12806 * guile/lib/gdb/printing.scm: New file.
12807 * guile/lib/gdb/types.scm: New file.
12808 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12809 (VPATH): Add $(GUILE_SRCDIR).
12810 (GUILE_DIR): New variable.
12811 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12812 (all): Add stamp-guile dependency.
12813 (stamp-guile): New rule.
12814 (clean-guile, install-guile, uninstall-guile): New rules.
12815 (install-only): Add install-guile dependency.
12816 (uninstall): Add uninstall-guile dependency.
12817 (clean): Add clean-guile dependency.
12818
ac020ec5
DE
128192014-02-09 Doug Evans <xdje42@gmail.com>
12820
12821 Revert this patch (which I approved, mea culpa).
12822
12823 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12824
12825 * Makefile.in (all-lib): Remove.
12826 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12827
2a081c59
JK
128282014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12829
12830 Fix Python stack corruption.
12831 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12832 gdb_py_longest.
12833
0a6bd22d
MK
128342014-02-08 Mark Kettenis <kettenis@gnu.org>
12835
12836 * Makefile.in (all-lib): Remove.
12837 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12838
1a860409
DE
128392014-02-07 Doug Evans <dje@google.com>
12840
12841 * extension-priv.h (extension_language_script_ops): Add comment.
12842 (extension_language_ops): Add comment.
caf5a491 12843 (active_ext_lang_state): Fix typo in comment.
1a860409 12844
d137e6dc
PA
128452014-02-07 Pedro Alves <palves@redhat.com>
12846
0dcb32c3 12847 PR breakpoints/16292
d137e6dc
PA
12848 * infrun.c (handle_signal_stop) <signal arrives while stepping
12849 over a breakpoint>: Switch back to the stepping thread.
12850
ce6d0892
YQ
128512014-02-07 Yao Qi <yao@codesourcery.com>
12852
12853 * target.c (target_xfer_partial): Return zero if LEN is zero.
12854
2ed4b548
YQ
128552014-02-07 Yao Qi <yao@codesourcery.com>
12856
12857 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12858 (ld_so_xfer_auxv): Likewise.
12859 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12860 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12861 * corelow.c (core_xfer_partial): Likewise.
12862 * ctf.c (ctf_xfer_partial): Likewise.
12863 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12864 (darwin_xfer_partial): Likewise.
12865 * exec.c (exec_xfer_partial): Likewise.
12866 * gnu-nat.c (gnu_xfer_partial): Likewise.
12867 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12868 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12869 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12870 * linux-nat.c (linux_xfer_siginfo): Likewise.
12871 (linux_proc_xfer_spu): Likewise.
12872 * procfs.c (procfs_xfer_partial): Likewise.
12873 * record-full.c (record_full_xfer_partial): Likewise.
12874 (record_full_core_xfer_partial): Likewise.
12875 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12876 * remote.c (remote_write_qxfer): Likewise.
12877 (remote_write_qxfer, remote_read_qxfer): Likewise.
12878 (remote_xfer_partial): Likewise.
12879 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12880 (rs6000_xfer_shared_libraries): Likewise.
12881 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12882 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12883 (spu_xfer_partial): Likewise.
12884 * target.c (memory_xfer_partial_1): Likewise.
12885 * tracepoint.c (tfile_xfer_partial): Likewise.
12886 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12887 (windows_xfer_partial): Likewise.
12888
c09f20e4
YQ
128892014-02-07 Yao Qi <yao@codesourcery.com>
12890
12891 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12892 comments.
12893 (core_xfer_shared_libraries_aix): Likewise.
12894 * gdbarch.c, gdbarch.h: Regenerated.
12895 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12896 ULONGEST. Change 'len_avail' type to ULONGEST.
12897 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12898 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12899 declaration.
12900 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12901
8635b3bf
YQ
129022014-02-07 Yao Qi <yao@codesourcery.com>
12903
12904 * corefile.c (memory_error): Get 'exception' from ERR and pass
12905 'exception' to throw_error.
12906
6dddc817
DE
129072014-02-06 Doug Evans <xdje42@gmail.com>
12908
12909 * configure.ac (libpython checking): Remove all but python.o from
12910 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12911 * configure: Regenerate.
12912
12913 * Makefile.in (SFILES): Add extension.c.
12914 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12915 (COMMON_OBS): Add extension.o.
12916 * extension.h: New file.
12917 * extension-priv.h: New file.
12918 * extension.c: New file.
12919
12920 * python/python-internal.h: #include "extension.h".
12921 (gdbpy_auto_load_enabled): Declare.
12922 (gdbpy_apply_val_pretty_printer): Declare.
12923 (gdbpy_apply_frame_filter): Declare.
12924 (gdbpy_preserve_values): Declare.
12925 (gdbpy_breakpoint_cond_says_stop): Declare.
12926 (gdbpy_breakpoint_has_cond): Declare.
12927 (void source_python_script_for_objfile): Delete.
12928 * python/python.c: #include "extension-priv.h".
12929 Delete inclusion of "observer.h".
12930 (extension_language_python): Moved here and renamed from
12931 script_language_python in py-auto-load.c.
12932 Redefined to be of type extension_language_defn.
12933 (python_extension_script_ops): New global.
12934 (python_extension_ops): New global.
12935 (struct python_env): New member previous_active.
12936 (restore_python_env): Call restore_active_ext_lang.
12937 (ensure_python_env): Call set_active_ext_lang.
12938 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12939 New arg extlang.
12940 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12941 New arg extlang.
12942 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12943 New arg extlang.
12944 (gdbpy_eval_from_control_command): Renamed from
12945 eval_python_from_control_command, made static. New arg extlang.
12946 (gdbpy_source_script) Renamed from source_python_script, made static.
12947 New arg extlang.
12948 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12949 result to int. New arg extlang.
12950 (gdbpy_source_objfile_script): Renamed from
12951 source_python_script_for_objfile, made static. New arg extlang.
12952 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12953 static. New args extlang, extlang_printers. Change result type to
12954 "void".
12955 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12956 static. New arg extlang. Rename arg printers to extlang_printers
12957 and change type to ext_lang_type_printers *.
12958 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12959 static. Replace argument arg with extlang, extlang_printers.
12960 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12961 (!HAVE_PYTHON, source_python_script): Delete.
12962 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12963 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12964 (!HAVE_PYTHON, start_type_printers): Delete.
12965 (!HAVE_PYTHON, apply_type_printers): Delete.
12966 (!HAVE_PYTHON, free_type_printers): Delete.
12967 (_initialize_python): Delete call to observer_attach_before_prompt.
12968 (finalize_python): Set/restore active extension language.
12969 (gdbpy_finish_initialization) Renamed from
12970 finish_python_initialization, made static. New arg extlang.
12971 (gdbpy_initialized): New function.
12972 * python/python.h: #include "extension.h". Delete #include
12973 "value.h", "mi/mi-cmds.h".
12974 (extension_language_python): Declare.
12975 (GDBPY_AUTO_FILE_NAME): Delete.
12976 (enum py_bt_status): Moved to extension.h and renamed to
12977 ext_lang_bt_status.
12978 (enum frame_filter_flags): Moved to extension.h.
12979 (enum py_frame_args): Moved to extension.h and renamed to
12980 ext_lang_frame_args.
12981 (finish_python_initialization): Delete.
12982 (eval_python_from_control_command): Delete.
12983 (source_python_script): Delete.
12984 (apply_val_pretty_printer): Delete.
12985 (apply_frame_filter): Delete.
12986 (preserve_python_values): Delete.
12987 (gdbpy_script_language_defn): Delete.
12988 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12989 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12990
12991 * auto-load.c: #include "extension.h".
12992 (GDB_AUTO_FILE_NAME): Delete.
12993 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12994 (script_language_gdb): Delete, moved to extension.c and renamed to
12995 extension_language_gdb.
12996 (source_gdb_script_for_objfile): Delete.
12997 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12998 (loaded_script): Change type of language member to
12999 struct extension_language_defn *.
13000 (init_loaded_scripts_info): Initialize
13001 unsupported_script_warning_printed.
13002 (maybe_add_script): Make static. Change type of language arg to
13003 struct extension_language_defn *.
13004 (clear_section_scripts): Reset unsupported_script_warning_printed.
13005 (auto_load_objfile_script_1): Rewrite to use extension language API.
13006 (auto_load_objfile_script): Make public. Remove support-compiled-in
13007 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13008 (source_section_scripts): Rewrite to use extension language API.
13009 (load_auto_scripts_for_objfile): Rewrite to use
13010 auto_load_scripts_for_objfile.
13011 (collect_matching_scripts_data): Change type of language member to
13012 struct extension_language_defn *.
13013 (auto_load_info_scripts): Change type of language arg to
13014 struct extension_language_defn *.
13015 (unsupported_script_warning_print): New function.
13016 (script_not_found_warning_print): Make static.
13017 (_initialize_auto_load): Rewrite construction of scripts-directory
13018 help.
13019 * auto-load.h (struct objfile): Add forward decl.
13020 (struct script_language): Delete.
13021 (struct auto_load_pspace_info): Add forward decl.
13022 (struct extension_language_defn): Add forward decl.
13023 (maybe_add_script): Delete.
13024 (auto_load_objfile_script): Declare.
13025 (script_not_found_warning_print): Delete.
13026 (auto_load_info_scripts): Update prototype.
13027 (auto_load_gdb_scripts_enabled): Declare.
13028 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13029 auto_load_python_scripts_enabled and made public.
13030 (script_language_python): Delete, moved to python.c.
13031 (gdbpy_script_language_defn): Delete.
13032 (info_auto_load_python_scripts): Update to use
13033 extension_language_python.
13034
13035 * breakpoint.c (condition_command): Replace call to
13036 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13037 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13038 with call to breakpoint_ext_lang_cond_says_stop.
13039 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13040 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13041 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13042 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13043 New arg slang.
13044 (local_setattro): Print name of extension language with existing
13045 stop condition.
13046
13047 * valprint.c (val_print, value_print): Update to call
13048 apply_ext_lang_val_pretty_printer.
13049 * cp-valprint.c (cp_print_value): Update call to
13050 apply_ext_lang_val_pretty_printer.
13051 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13052 (gdbpy_apply_val_pretty_printer): Renamed from
13053 apply_val_pretty_printer. New arg extlang.
13054 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13055
13056 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13057 extension language API.
13058 * cli/cli-script.c (execute_control_command): Update to call
13059 eval_ext_lang_from_control_command.
13060
13061 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13062 enum ext_lang_bt_status values. Update call to
13063 apply_ext_lang_frame_filter.
13064 (mi_cmd_stack_list_locals): Ditto.
13065 (mi_cmd_stack_list_args): Ditto.
13066 (mi_cmd_stack_list_variables): Ditto.
13067 * mi/mi-main.c: Delete #include "python/python-internal.h".
13068 Add #include "extension.h".
13069 (mi_cmd_list_features): Replace reference to python internal variable
13070 gdb_python_initialized with call to ext_lang_initialized_p.
13071
13072 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13073 Update to use enum ext_lang_frame_args. Update to call
13074 apply_ext_lang_frame_filter.
13075 * python/py-framefilter.c (extract_sym): Update to use enum
13076 ext_lang_bt_status.
13077 (extract_value, py_print_type, py_print_value): Ditto.
13078 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13079 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13080 (py_print_frame): Ditto.
13081 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13082 New arg extlang. Update to use enum ext_lang_bt_status.
13083
13084 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13085 finish_python_initialization. Replace with call to
13086 finish_ext_lang_initialization.
13087
13088 * typeprint.c (do_free_global_table): Update to call
13089 free_ext_lang_type_printers.
13090 (create_global_typedef_table): Update to call
13091 start_ext_lang_type_printers.
13092 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13093 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13094 (type_print_options): Change type of global_printers from "void *"
13095 to "struct ext_lang_type_printers *".
13096
13097 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13098 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13099 (gdbpy_preserve_values): Renamed from preserve_python_values.
13100 New arg extlang.
13101 (!HAVE_PYTHON, preserve_python_values): Delete.
13102
13103 * utils.c (quit_flag): Delete, moved to extension.c.
13104 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13105 extension.c.
13106
13107 * eval.c: Delete #include "python/python.h".
13108 * main.c: Delete #include "python/python.h".
13109
13110 * defs.h: Update comment.
13111
6af79985
JB
131122014-02-06 Joel Brobecker <brobecker@adacore.com>
13113
13114 GDB 7.7 released.
13115
12c5175d
MK
131162014-02-05 Mark Kettenis <kettenis@gnu.org>
13117
13118 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13119 defined.
13120
8dc5b319
YQ
131212014-02-05 Yao Qi <yao@codesourcery.com>
13122
13123 * remote.c (remote_pass_signals): Remove local 'buf' and use
13124 rs->buf.
13125 (remote_program_signals): Likewise.
13126
de7b2893
YQ
131272014-02-05 Yao Qi <yao@codesourcery.com>
13128
13129 * ctf.c: Include "inferior.h" and "gdbthread.h".
13130 (CTF_PID): A new macro.
13131 (ctf_open): Call inferior_appeared and add_thread_silent.
13132 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13133 (ctf_thread_alive): New function.
13134 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13135
66d032ac
YQ
131362014-02-05 Yao Qi <yao@codesourcery.com>
13137
13138 Revert this patch:
13139
13140 2013-05-24 Yao Qi <yao@codesourcery.com>
13141
13142 * tracepoint.c (TFILE_PID): Remove.
13143 (tfile_open): Don't add thread and inferior.
13144 (tfile_close): Don't set 'inferior_ptid'. Don't call
13145 exit_inferior_silent.
13146 (tfile_thread_alive): Remove.
13147 (init_tfile_ops): Don't set field 'to_thread_alive' of
13148 tfile_ops.
13149
f4ccffad
CE
131502014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13151
13152 * remote.c (remote_start_remote): Call remote_check_symbols even
13153 if only symbol-file (not file) has been given.
13154
591a12a1
UW
131552014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13156
13157 * gdbarch.sh (skip_entrypoint): New callback.
13158 * gdbarch.c, gdbarch.h: Regenerate.
13159 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13160 * infrun.c (fill_in_stop_func): Likewise.
13161 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13162 (ppc_elfv2_elf_make_msymbol_special): New function.
13163 (ppc_elfv2_skip_entrypoint): Likewise.
13164 (ppc_linux_init_abi): Install them for ELFv2.
13165
cc0e89c5
UW
131662014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13167
13168 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13169 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13170 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13171 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13172 structures returned in GPRs.
13173
52f548e4
UW
131742014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13175
13176 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13177 offset to the stack parameter list for the ELFv2 ABI.
13178
d4094b6a
UW
131792014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13180
13181 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13182 set_gdbarch_convert_from_func_ptr_addr and
13183 set_gdbarch_elf_make_msymbol_special for ELFv1.
13184 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13185 function descriptors on ELFv1.
13186 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13187 set up r12 at function entry.
13188
cd453cd0
UW
131892014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13190
13191 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13192 (struct gdbarch_tdep): New member elf_abi.
13193
13194 * rs6000-tdep.c: Include "elf/ppc64.h".
13195 (rs6000_gdbarch_init): Detect ELF ABI version.
13196
0ff3e01f
UW
131972014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13198
13199 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13200 within a register pair holding a DFP 128-bit value on little-endian.
13201 (ppc64_sysv_abi_return_value_base): Likewise.
13202 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13203 (dfp_pseudo_register_write): Likewise.
13204
5b757e5d
UW
132052014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13206
13207 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13208 offset on little-endian when passing _Decimal32.
13209 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13210
084ee545
UW
132112014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13212
13213 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13214 of the overlapped FP register within the VSX register on little-
13215 endian platforms.
13216 (efpr_pseudo_register_write): Likewise.
13217
d63167af
UW
132182014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13219
13220 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13221 offset on little-endian when passing small structures.
13222
e765b44c
UW
132232014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13224
13225 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13226 (struct ppc64_sysv_argpos): New data structure.
13227 (ppc64_sysv_abi_push_float): Remove.
13228 (ppc64_sysv_abi_push_val): New function.
13229 (ppc64_sysv_abi_push_integer): Likewise.
13230 (ppc64_sysv_abi_push_freg): Likewise.
13231 (ppc64_sysv_abi_push_vreg): Likewise.
13232 (ppc64_sysv_abi_push_param): Likewise.
13233 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13234 (ppc64_sysv_abi_return_value_base): New function.
13235 (ppc64_sysv_abi_return_value): Refactor to use it.
13236
36c24d95
UW
132372014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13238
13239 * NEWS: Document new target powerpc64le-*-linux*.
13240
26fd9228
MK
132412014-02-04 Mark Kettenis <kettenis@gnu.org>
13242
13243 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13244 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13245 core dumps.
13246 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13247 register set used in ELF core dumps. Add floating-point register set.
13248
c5bb7362
KB
132492014-02-03 Kevin Buettner <kevinb@redhat.com>
13250
74228e77 13251 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
13252 dwarf2_to_gdb[] table using symbolic constants. Adjust
13253 penultimate entry from number representing the PC register
13254 to symbolic constant representing the MDR register. Add
13255 constant for the PC register to the end of the table.
13256
af09351e
MK
132572014-02-03 Mark Kettenis <kettenis@gnu.org>
13258
13259 * bsd-kvm.c: Include <sys/param.h>
13260
8507e05d
MK
132612014-02-03 Mark Kettenis <kettenis@gnu.org>
13262
13263 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13264
ae56bfb8
JB
132652014-01-31 Joel Brobecker <brobecker@adacore.com>
13266
13267 * ada-lang.h (clear_ada_sym_cache): Delete.
13268
718ee4dc
UW
132692014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13270
13271 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13272
401e27fd
JM
132732014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13274
13275 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13276 the sigreturn register save area only if the syscall is
13277 sigreturn.
13278
a7c88acd
JB
132792014-01-29 Joel Brobecker <brobecker@adacore.com>
13280
13281 * valops.c (value_slice): Minor reformatting.
13282
fa0079ea
UW
132832014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13284
13285 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13286
c6044dd1
JB
132872014-01-28 Joel Brobecker <brobecker@adacore.com>
13288
13289 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13290 New static globals.
13291 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13292 (ada_ignore_descriptive_types_p): New static global.
13293 (find_parallel_type_by_descriptive_type): Return immediately
13294 if ada_ignore_descriptive_types_p is set.
13295 (_initialize_ada_language): Register new commands "maintenance
13296 set ada", "maintenance show ada", "maintenance set ada
13297 ignore-descriptive-types" and "maintenance show ada
13298 ignore-descriptive-types".
13299 * NEWS: Add entry for new "maint ada set/show
13300 ignore-descriptive-types" commands.
13301
568e808b
MM
133022014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13303
13304 * record-btrace.c (record_btrace_close): Call btrace_teardown
13305 for all threads.
13306
467d141b
JB
133072014-01-27 Joel Brobecker <brobecker@adacore.com>
13308
13309 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13310 "ui-out.h".
13311
fb151210
JB
133122014-01-27 Joel Brobecker <brobecker@adacore.com>
13313
13314 * ada-typeprint (type_is_full_subrange_of_target_type):
13315 New function.
13316 (print_range): Add parameter bounds_prefered_p. If not set,
13317 try printing range types using the name of their base type.
13318 (print_range_type): Add parameter bounds_prefered_p.
13319 Use it in call to print_range.
13320 (print_array_type, ada_print_type): Update calls to print_range
13321 and print_range_type.
13322
aba02109
JB
133232014-01-27 Joel Brobecker <brobecker@adacore.com>
13324
13325 * ada-typeprint.c (print_array_type, print_choices, print_range)
13326 (print_range_bound, print_dynamic_range_bound, print_range_type):
13327 Remove declaration.
13328
e62e21fd
JB
133292014-01-27 Joel Brobecker <brobecker@adacore.com>
13330
13331 * ada-typeprint.c (print_range): Add missing empty line
13332 after local declaration.
13333
859cf5d1
JB
133342014-01-27 Joel Brobecker <brobecker@adacore.com>
13335
13336 * ada-valprint.c (print_optional_low_bound): Get index_type's
13337 target type for as long as it is a TYPE_CODE_RANGE.
13338
25790f6f
JB
133392014-01-27 Joel Brobecker <brobecker@adacore.com>
13340
13341 * procfs.c (procfs_make_note_section): Remove assertion and
13342 associated comment.
13343
6b6aa828
YQ
133442014-01-24 Yao Qi <yao@codesourcery.com>
13345
13346 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13347 * corelow.c (get_core_siginfo): Likewise.
13348
5d6df423
YQ
133492014-01-24 Yao Qi <yao@codesourcery.com>
13350
13351 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13352 ULONGEST. Don't check 'len' is negative.
13353 (remote_write_bytes): Change type of 'len' to ULONGEST.
13354
83b645b8
TT
133552014-01-23 Tom Tromey <tromey@redhat.com>
13356
13357 PR python/16485:
13358 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13359 Handle exception from frame.block.
13360 (FrameVars.fetch_frame_locals): Likewise.
13361
0740f8d8
TT
133622014-01-23 Tom Tromey <tromey@redhat.com>
13363
13364 PR python/16487:
13365 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13366 on a NULL pointer. Move "goto error" to correct place.
13367
21909fa1
TT
133682014-01-23 Tom Tromey <tromey@redhat.com>
13369
13370 PR python/16491:
13371 * python/py-framefilter.c (apply_frame_filter): Call
13372 ensure_python_env after computing gdbarch.
13373
17fde6d0
YQ
133742014-01-23 Yao Qi <yao@codesourcery.com>
13375
13376 * target.c (raw_memory_xfer_partial): Change argument type
13377 from void * to gdb_byte *.
13378 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13379
87ce2a04
DE
133802014-01-22 Doug Evans <dje@google.com>
13381
13382 New gdbserver option --debug-format=timestamp.
13383 * NEWS: Mention it.
13384
237b092b
AA
133852014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13386
13387 * syscalls/s390x-linux.xml: New file.
13388 * syscalls/s390-linux.xml: New file.
13389 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13390 (XML_SYSCALL_FILENAME_S390X): Likewise.
13391 (op_svc): New enum value for SVC opcode.
13392 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13393 (s390_linux_get_syscall_number): New function.
13394 (s390_gdbarch_init): Register '*get_syscall_number' and the
13395 syscall xml file name.
13396 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13397 "s390-linux.xml" and "s390x-linux.xml".
13398 * NEWS: Announce new feature.
13399
54bff650
BS
134002014-01-22 Baruch Siach <baruch@tkos.co.il>
13401
13402 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13403
14e361d7
PA
134042014-01-22 Pedro Alves <palves@redhat.com>
13405
13406 * xtensa-config.c: Include defs.h.
13407
46bbb3ed
JB
134082014-01-22 Joel Brobecker <brobecker@adacore.com>
13409
13410 * common/common-utils.h: Add "ARI:" comment beside __func__
13411 reference.
13412
3a80edfc
JB
134132014-01-22 Joel Brobecker <brobecker@adacore.com>
13414
13415 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13416 documentation a bit.
13417
4869db5e
RM
134182014-01-21 Roland McGrath <mcgrathr@google.com>
13419
13420 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13421 * configure: Regenerate.
13422 * aclocal.m4: Regenerate.
13423 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13424 New substituted variables.
13425 (install-strip): New target.
13426 (INSTALL_SCRIPT): New substituted variable.
13427 (FLAGS_TO_PASS): Add it.
13428 (install-only): Use $(INSTALL_SCRIPT) rather than
13429 $(INSTALL_PROGRAM) for gcore.
13430
9ea4267d
TT
134312014-01-20 Tom Tromey <tromey@redhat.com>
13432
13433 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13434 together.
13435
1f2bdf09
TT
134362014-01-20 Tom Tromey <tromey@redhat.com>
13437
13438 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13439 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13440 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13441 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13442 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13443 (struct cmd_list_element) <flags>: Remove.
13444 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13445 doc_allocated>: New fields.
13446 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13447 bitfields.
13448 * maint.c (maintenance_do_deprecate): Update.
13449 * top.c (execute_command): Update.
13450
e671835b
BS
134512014-01-20 Baruch Siach <baruch@tkos.co.il>
13452
13453 * xtensa-linux-nat.c: Include asm/ptrace.h.
13454
50367cd2
IB
134552014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13456
13457 * Makefile.in (SFILES): Add d-support.c.
13458 (COMMON_OBS): Add d-support.o.
13459 * d-lang.h (d_parse_symbol): Add comment, now defined in
13460 d-support.c.
13461 * d-lang.c (parse_call_convention)
13462 (parse_attributes, parse_function_types)
13463 (parse_function_args, parse_type, parse_identifier)
13464 (call_convention_p, d_parse_symbol): Move functions to ...
13465 * d-support.c: ... New file.
13466
ec9f644a
IB
134672014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13468
13469 * d-lang.h (d_parse_symbol): Add declaration.
13470 * d-lang.c (extract_identifiers)
13471 (extract_type_info): Remove functions.
13472 (parse_call_convention, parse_attributes)
13473 (parse_function_types, parse_function_args)
13474 (parse_type, parse_identifier, call_convention_p)
13475 (d_parse_symbol): New functions.
13476 (d_demangle): Use d_parse_symbol to demangle D symbols.
13477
94b1b47e
IB
134782014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13479
13480 * d-lang.h (struct builtin_d_type): New data type.
13481 (builtin_d_type): Add declaration.
13482 * d-lang.c (d_language_arch_info, build_d_types)
13483 (builtin_d_type): New functions.
13484 (enum d_primitive_types): New data type.
13485 (d_language_defn): Change c_language_arch_info to
13486 d_language_arch_info.
13487 (d_type_data): New static variable.
13488 (_initialize_d_language): Initialize d_type_data.
13489
63778547
IB
134902014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13491
13492 * d-lang.h (d_main_name): Add declaration.
13493 * d-lang.c (d_main_name): New function.
13494 * symtab.c (find_main_name): Add call to d_main_name.
13495
3271ba66
IB
134962014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13497
13498 * d-lang.c (d_language_defn): Change macro_expansion_c to
13499 macro_expansion_no.
13500
d36b3012
IB
135012014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13502
13503 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13504
c90a6fb7
SDJ
135052014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13506
13507 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13508 gdb_exception" declaration.
13509 * remote.c (getpkt_or_notif_sane): Likewise.
13510
749234e5
DE
135112014-01-17 Doug Evans <dje@google.com>
13512
13513 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13514 function, contents of dirnames_to_char_ptr_vec_append moved here.
13515 (delim_string_to_char_ptr_vec): New function.
13516 (dirnames_to_char_ptr_vec_append): Rewrite.
13517 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13518
df049a58
DE
135192014-01-17 Doug Evans <dje@google.com>
13520
13521 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13522 and moved here ...
13523 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13524 #include "common-utils.h".
13525 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13526 * common/vec.h (VEC_ASSERT_PASS): Update.
13527 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13528 (MACH_CHECK_ERROR): Update.
13529
69f97648
SM
135302014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13531
13532 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13533 comments.
13534 * gdbarch.h: Regenerate.
13535
98b1cfdc
TT
135362014-01-16 Tom Tromey <tromey@redhat.com>
13537
13538 * value.c (struct value) <regnum>: Move earlier.
13539
77a19445
TT
135402014-01-16 Tom Tromey <tromey@redhat.com>
13541
13542 * remote.c (extended_remote_create_inferior): Rename from
13543 extended_remote_create_inferior_1. Add "ops" argument. Remove
13544 old implementation.
13545
62261490
PA
135462014-01-16 Pedro Alves <palves@redhat.com>
13547
13548 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13549 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13550 the backchain.
13551
4d65956b
DE
135522014-01-16 Doug Evans <dje@google.com>
13553
13554 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13555
52834460
MM
135562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13557
13558 * btrace.h (btrace_thread_flag): New.
13559 (struct btrace_thread_info) <flags>: New.
13560 * record-btrace.c (record_btrace_resume_thread)
13561 (record_btrace_find_thread_to_move, btrace_step_no_history)
13562 (btrace_step_stopped, record_btrace_start_replaying)
13563 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13564 (record_btrace_find_resume_thread): New.
13565 (record_btrace_resume, record_btrace_wait): Extend.
13566 (record_btrace_can_execute_reverse): New.
13567 (record_btrace_open): Fail in non-stop mode.
13568 (record_btrace_set_replay): Split into this, ...
13569 (record_btrace_stop_replaying): ... this, ...
13570 (record_btrace_clear_histories): ... and this.
13571 (init_record_btrace_ops): Init to_can_execute_reverse.
13572 * NEWS: Announce it.
13573
118e6252
MM
135742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13575
13576 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13577 (forward_target_decr_pc_after_break)
13578 (target_decr_pc_after_break): New.
13579 * target.c (forward_target_decr_pc_after_break)
13580 (target_decr_pc_after_break): New.
13581 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13582 instead of gdbarch_decr_pc_after_break.
13583 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13584 instead of gdbarch_decr_pc_after_break.
13585 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13586 instead of gdbarch_decr_pc_after_break.
13587 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13588 instead of gdbarch_decr_pc_after_break.
13589 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13590 instead of gdbarch_decr_pc_after_break.
13591 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13592 instead of gdbarch_decr_pc_after_break.
13593
6e07b1d2
MM
135942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13595
13596 * btrace.c: Include regcache.h.
13597 (btrace_add_pc): New.
13598 (btrace_enable): Call btrace_add_pc.
13599 (btrace_is_empty): New.
13600 * btrace.h (btrace_is_empty): New.
13601 * record-btrace.c (require_btrace, record_btrace_info): Call
13602 btrace_is_empty.
13603
969c39fb
MM
136042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13605
13606 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13607 Support delta reads.
13608 (linux_disable_btrace): Change return type.
13609 * common/linux-btrace.h (linux_read_btrace): Change parameters
13610 and return type to allow error reporting. Update users.
13611 (linux_disable_btrace): Change return type. Update users.
13612 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13613 New.
13614 (btrace_error): New.
13615 (btrace_block) <begin>: Comment on BEGIN == 0.
13616 * btrace.c (btrace_compute_ftrace): Start from the end of
13617 the current trace.
13618 (btrace_stitch_trace, btrace_clear_history): New.
13619 (btrace_fetch): Read delta trace, return if replaying.
13620 (btrace_clear): Move clear history code to btrace_clear_history.
13621 (parse_xml_btrace): Throw an error if parsing failed.
13622 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13623 and return type to allow error reporting.
13624 (target_read_btrace): Change parameters and return type to allow
13625 error reporting.
13626 * target.c (target_read_btrace): Update.
13627 * remote.c (remote_read_btrace): Support delta reads. Pass
13628 errors on.
13629 * NEWS: Announce it.
13630
0b722aec
MM
136312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13632
13633 * record.h (record_btrace_frame_unwind)
13634 (record_btrace_tailcall_frame_unwind): New declarations.
13635 * dwarf2-frame: Include record.h
13636 (dwarf2_frame_cfa): Throw an error for btrace frames.
13637 * record-btrace.c: Include hashtab.h.
13638 (btrace_get_bfun_name): New.
13639 (btrace_call_history): Call btrace_get_bfun_name.
13640 (struct btrace_frame_cache): New.
13641 (bfcache): New.
13642 (bfcache_hash, bfcache_eq, bfcache_new): New.
13643 (btrace_get_frame_function): New.
13644 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13645 (record_btrace_frame_this_id): Compute own id.
13646 (record_btrace_frame_prev_register): Provide PC, throw_error
13647 for all other registers.
13648 (record_btrace_frame_sniffer): Detect btrace frames.
13649 (record_btrace_tailcall_frame_sniffer): New.
13650 (record_btrace_frame_dealloc_cache): New.
13651 (record_btrace_frame_unwind): Add new functions.
13652 (record_btrace_tailcall_frame_unwind): New.
13653 (_initialize_record_btrace): Allocate cache.
13654 * btrace.c (btrace_clear): Call reinit_frame_cache.
13655 * NEWS: Announce it.
13656
066ce621
MM
136572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13658
13659 * record-btrace.c (record_btrace_set_replay)
13660 (record_btrace_goto_begin, record_btrace_goto_end)
13661 (record_btrace_goto): New.
13662 (init_record_btrace_ops): Initialize them.
13663 * NEWS: Announce it.
13664
e2887aa3
MM
136652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13666
13667 * record-btrace.c (record_btrace_find_new_threads)
13668 (record_btrace_thread_alive): New.
13669 (init_record_btrace_ops): Initialize to_find_new_threads and
13670 to_thread_alive.
13671
b2f4cfde
MM
136722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13673
13674 * record-btrace.c (record_btrace_resume): New.
13675 (record_btrace_wait): New.
13676 (init_record_btrace_ops): Initialize to_wait and to_resume.
13677
633785ff
MM
136782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13679
13680 * record-btrace.c (record_btrace_xfer_partial)
13681 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13682 (record_btrace_allow_memory_access): New.
13683 (init_record_btrace_ops): Initialize new methods.
13684 * target.c (raw_memory_xfer_partial): Bail out if target reports
13685 that this memory is not available.
13686
3db08215
MM
136872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13688
13689 * target.h (target_ops) <to_insert_breakpoint>
13690 <to_remove_breakpoint>: Add target_ops parameter.
13691 (forward_target_insert_breakpoint): New.
13692 (forward_target_remove_breakpoint): New.
13693 (memory_remove_breakpoint, memory_insert_breakpoint):
13694 Add target_ops parameter.
13695 * target.c (target_insert_breakpoint): Split into this and ...
13696 (forward_target_insert_breakpoint): ... this.
13697 (target_remove_breakpoint): Split into this and ...
13698 (forward_target_remove_breakpoint): ... this.
13699 (debug_to_insert_breakpoint): Add target_ops parameter.
13700 Call forward_target_insert_breakpoint.
13701 (debug_to_remove_breakpoint): Add target_ops parameter.
13702 Call forward_target_remove_breakpoint.
13703 (update_current_target): Do not inherit or default to_insert_breakpoint
13704 and to_remove_breakpoint.
13705 * corelow.c (ignore): Add target_ops parameter.
13706 * exec.c (ignore): Add target_ops parameter.
13707 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13708 Add target_ops parameter.
13709 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13710 Add target_ops parameter.
13711 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13712 Add target_ops parameter.
13713 * record-full.c (record_full_beneath_to_insert_breakpoint)
13714 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13715 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13716 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13717 (record_full_core_remove_breakpoint): Add target_ops parameter.
13718 Update users.
13719 (record_full_beneath_to_insert_breakpoint_ops)
13720 (record_full_beneath_to_remove_breakpoint_ops)
13721 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13722 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13723 tmp_to_remove_breakpoint_ops,
13724 record_full_beneath_to_insert_breakpoint_ops, and
13725 record_full_beneath_to_remove_breakpoint_ops.
13726 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13727 (m32r_remove_breakpoint): Add target_ops parameter.
13728 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13729 Add target_ops parameter.
13730 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13731 Add target_ops parameter.
13732
cecac1ab
MM
137332014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13734 Markus Metzger <markus.t.metzger@intel.com>
13735
13736 * record-btrace.c: Include frame-unwind.h.
13737 (record_btrace_frame_unwind_stop_reason)
13738 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13739 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13740 New.
13741 (init_record_btrace_ops): Install it.
13742
824344ca
MM
137432014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13744
13745 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13746 get_prev_frame_1.
13747
32261e52
MM
137482014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13749
13750 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13751 earlier.
13752
ea001bdc
MM
137532014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13754
13755 * frame-unwind.c: Include target.h.
13756 (frame_unwind_try_unwinder): New function with code from ...
13757 (frame_unwind_find_by_frame): ... here. New variable
13758 unwinder_from_target, call also target_get_unwinder)
13759 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13760 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13761 * target.h (struct target_ops): New fields to_get_unwinder and
13762 to_get_tailcall_unwinder.
13763 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13764
1f3ef581
MM
137652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13766
13767 * record-btrace.c (record_btrace_fetch_registers)
13768 (record_btrace_store_registers)
13769 (record_btrace_to_prepare_to_store): New.
13770 (init_record_btrace_ops): Add the above.
13771
f32dbf8c
MM
137722014-01-16 Tom Tromey <tromey@redhat.com>
13773
13774 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13775 * target.h (struct target_ops) <to_prepare_to_store>: Add
13776 argument.
13777 (target_prepare_to_store): Add argument.
13778 * target.c (debug_to_prepare_to_store): Add argument.
13779 (update_current_target): Update.
13780 * remote.c (remote_prepare_to_store): Add 'self' argument.
13781 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13782 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13783 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13784 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13785 argument.
13786 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13787 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13788 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13789 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13790 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13791
07bbe694
MM
137922014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13793
13794 * btrace.h (replay) <replay>: New.
13795 (btrace_is_replaying): New.
13796 * btrace.c (btrace_clear): Free replay iterator.
13797 (btrace_is_replaying): New.
13798 * record-btrace.c (record_btrace_is_replaying): New.
13799 (record_btrace_info): Print insn number if replaying.
13800 (record_btrace_insn_history): Start at replay position.
13801 (record_btrace_call_history): Start at replay position.
13802 (init_record_btrace_ops): Init to_record_is_replaying.
13803
0688d04e
MM
138042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13805
13806 * record-btrace.c (record_btrace_insn_history_range): Include
13807 end.
13808 (record_btrace_insn_history_from): Adjust range.
13809 (record_btrace_call_history_range): Include
13810 end.
13811 (record_btrace_call_history_from): Adjust range.
13812 * NEWS: Announce changes.
13813
8710b709
MM
138142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13815
13816 * record.h (enum record_print_flag)
13817 <record_print_indent_calls>: New.
13818 * record.c (get_call_history_modifiers): Recognize /c modifier.
13819 (_initialize_record): Document /c modifier.
13820 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13821 Reorder fields. Optionally indent the function name. Update
13822 all users.
13823 * NEWS: Announce changes.
13824
d0fa7535
MM
138252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13826
13827 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13828
5de9129b
MM
138292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13830
13831 * btrace.c (ftrace_new_function): Start counting at one.
13832 * record-btrace.c (record_btrace_info): Adjust number of calls
13833 and insns.
13834 * NEWS: Announce it.
13835
7acbe133
MM
138362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13837
13838 * record-btrace.c (btrace_call_history_insn_range): Print
13839 insn range as [begin, end].
13840
23a7fe75
MM
138412014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13842
13843 * btrace.h (struct btrace_func_link): New.
13844 (enum btrace_function_flag): New.
13845 (struct btrace_inst): Rename to ...
13846 (struct btrace_insn): ...this. Update all users.
13847 (struct btrace_func) <ibegin, iend>: Remove.
13848 (struct btrace_func_link): New.
13849 (struct btrace_func): Rename to ...
13850 (struct btrace_function): ...this. Update all users.
13851 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13852 (number, level, flags>: New.
13853 (struct btrace_insn_iterator): Rename to ...
13854 (struct btrace_insn_history): ...this.
13855 Update all users.
13856 (struct btrace_insn_iterator, btrace_call_iterator): New.
13857 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13858 (struct btrace_target_info) <begin, end, level>
13859 <insn_history, call_history>: New.
13860 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13861 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13862 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13863 (btrace_call_number, btrace_call_begin, btrace_call_end)
13864 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13865 (btrace_find_function_by_number, btrace_set_insn_history)
13866 (btrace_set_call_history): New.
13867 * btrace.c (btrace_init_insn_iterator)
13868 (btrace_init_func_iterator, compute_itrace): Remove.
13869 (ftrace_print_function_name, ftrace_print_filename)
13870 (ftrace_skip_file): Change
13871 parameter to const.
13872 (ftrace_init_func): Remove.
13873 (ftrace_debug): Use new btrace_function fields.
13874 (ftrace_function_switched): Also consider gaining and
13875 losing symbol information).
13876 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13877 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13878 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13879 New.
13880 (ftrace_new_function): Move. Remove debug print.
13881 (ftrace_update_lines, ftrace_update_insns): New.
13882 (ftrace_update_function): Check for call, ret, and jump.
13883 (compute_ftrace): Renamed to ...
13884 (btrace_compute_ftrace): ...this. Rewritten to compute call
13885 stack.
13886 (btrace_fetch, btrace_clear): Updated.
13887 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13888 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13889 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13890 (btrace_call_number, btrace_call_begin, btrace_call_end)
13891 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13892 (btrace_find_function_by_number, btrace_set_insn_history)
13893 (btrace_set_call_history): New.
13894 * record-btrace.c (require_btrace): Use new btrace thread
13895 info fields.
13896 (record_btrace_info, btrace_insn_history)
13897 (record_btrace_insn_history, record_btrace_insn_history_range):
13898 Use new btrace thread info fields and new iterator.
13899 (btrace_func_history_src_line): Rename to ...
13900 (btrace_call_history_src_line): ...this. Use new btrace
13901 thread info fields.
13902 (btrace_func_history): Rename to ...
13903 (btrace_call_history): ...this. Use new btrace thread info
13904 fields and new iterator.
13905 (record_btrace_call_history, record_btrace_call_history_range):
13906 Use new btrace thread info fields and new iterator.
13907
8372a7cb
MM
139082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13909
13910 * frame.h (frame_id_build_unavailable_stack_special): New.
13911 * frame.c (frame_id_build_unavailable_stack_special): New.
13912
c2170eef
MM
139132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13914
13915 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13916 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13917 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13918 to gdbarch.
13919 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13920 (i386_insn_is_jump, i386_jmp_p): New.
13921 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13922 insn_is_jump to gdbarch.
13923 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13924 * gdbarch.h: Regenerated.
13925 * gdbarch.c: Regenerated.
13926 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13927 (default_insn_is_jump): New.
13928 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13929 (default_insn_is_jump): New.
13930
864089d2
MM
139312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13932
13933 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13934 Change to ...
13935 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13936 (btrace_read_type) <btrace_read_new>: Change to ...
13937 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13938
ed9edfb5
MM
139392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13940
13941 * common/linux-btrace.c (linux_read_btrace): Free trace from
13942 previous iteration.
13943
fbcbc3fd
DE
139442014-01-15 Doug Evans <dje@google.com>
13945
13946 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13947 uint32_t.
13948
3d548a53
TT
139492014-01-15 Tom Tromey <tromey@redhat.com>
13950
13951 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13952 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13953 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13954 (set_objfile_main_name): New function.
13955 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13956 language_of_main>: New fields.
13957 (set_objfile_main_name): Declare.
13958 * symtab.c (find_main_name): Loop over objfiles to find the main
13959 name and language.
13960 (set_main_name): Now static.
13961 (get_main_info): Add comment.
13962 * symtab.h (set_main_name): Don't declare.
13963
32ac0d11
TT
139642014-01-15 Tom Tromey <tromey@redhat.com>
13965
13966 * symtab.c (main_progspace_key): New global.
13967 (struct main_info): New.
13968 (name_of_main, language_of_main): Remove.
13969 (get_main_info, main_info_cleanup): New function.
13970 (set_main_name, main_name, main_language): Use get_main_info.
13971 (_initialize_symtab): Initialize main_progspace_key.
13972
9e6c82ad
TT
139732014-01-15 Tom Tromey <tromey@redhat.com>
13974
13975 * dbxread.c (process_one_symbol): Update.
13976 * dwarf2read.c (read_partial_die): Update.
13977 * symfile.c (set_initial_language): Call main_language.
13978 * symtab.c (language_of_main): Now static.
13979 (set_main_name): Add 'lang' parameter.
13980 (find_main_name): Update.
13981 (main_language): New function.
13982 (symtab_observer_executable_changed): Update.
13983 * symtab.h (set_main_name): Update.
13984 (language_of_main): Remove.
13985 (main_language): Declare.
13986
6ef55de7
TT
139872014-01-15 Tom Tromey <tromey@redhat.com>
13988
13989 * symfile.c (init_entry_point_info): Use new "initialized" field.
13990 Update.
13991 * objfiles.h (struct entry_point) <initialized>: New field.
13992 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13993 (struct objfile) <ei>: ...here. Remove.
13994 * objfiles.c (entry_point_address_query): Update.
13995
53eddfa6
TT
139962014-01-15 Tom Tromey <tromey@redhat.com>
13997
13998 * objfiles.c (entry_point_address_query): Relocate entry point
13999 address.
14000 (objfile_relocate1): Do not relocate entry point address.
14001 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14002 <the_bfd_section_index>: New field.
14003 * symfile.c (init_entry_point_info): Find the entry point's
14004 section.
14005
d56e56aa
TT
140062014-01-15 Tom Tromey <tromey@redhat.com>
14007
14008 * solib-frv.c (enable_break): Use entry_point_address_query.
14009
33a97bbe
OJ
140102014-01-15 Omair Javaid <omair.javaid@linaro.org>
14011
14012 * NEWS: Add note on improved process record-replay on
14013 arm*-linux* targets.
14014
c6ec2b30
OJ
140152014-01-15 Omair Javaid <omair.javaid@linaro.org>
14016
14017 * arm-tdep.c (enum arm_record_result): New enum.
14018 (arm_record_unsupported_insn): New function.
14019 (arm_record_coproc_data_proc): Removed.
14020 (thumb2_record_ld_st_multiple): New function.
14021 (thumb2_record_ld_st_dual_ex_tbb): New function.
14022 (thumb2_record_data_proc_sreg_mimm): New function.
14023 (thumb2_record_ps_dest_generic): New function.
14024 (thumb2_record_branch_misc_cntrl): New function.
14025 (thumb2_record_str_single_data): New function.
14026 (thumb2_record_ld_mem_hints): New function.
14027 (thumb2_record_ld_word): New function.
14028 (thumb2_record_lmul_lmla_div): New function.
14029 (thumb2_record_decode_insn_handler): New function.
14030 (decode_insn): Add thumb32 instruction handlers.
14031
97dfe206
OJ
140322014-01-15 Omair Javaid <omair.javaid@linaro.org>
14033
14034 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14035 (struct arm_linux_record_tdep): Declare.
14036 (arm_canonicalize_syscall): New function.
14037 (arm_all_but_pc_registers_record): New function.
14038 (arm_linux_syscall_record): New function.
14039 (arm_linux_init_abi): Add syscall recording constructs.
14040 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14041 decoding. (arm_record_coproc_data_proc): Update arm syscall
14042 decoding.
14043 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14044 <arm_syscall_record>: New field.
14045 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14046 gdb_target_obs.
14047
9904a494
OJ
140482014-01-15 Omair Javaid <omair.javaid@linaro.org>
14049
14050 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14051 register for push instruction recording.
14052
f969241e
OJ
140532014-01-15 Omair Javaid <omair.javaid@linaro.org>
14054
14055 * arm-tdep.c (thumb_record_misc): Update to correct logical
14056 error while recording ldm, ldmia and pop instructions.
14057
bfbbec00
OJ
140582014-01-15 Omair Javaid <omair.javaid@linaro.org>
14059
14060 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14061
e40adcc9
PA
140622014-01-15 Pedro Alves <palves@redhat.com>
14063
14064 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14065 (go32_resume, go32_fetch_registers, store_register)
14066 (go32_store_registers, go32_prepare_to_store)
14067 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14068 (go32_create_inferior, go32_can_run, go32_terminal_init)
14069 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14070 declarations.
14071
b0a16e66
TT
140722014-01-15 Tom Tromey <tromey@redhat.com>
14073
14074 * target.h (async_callback_ftype): New typedef.
14075 (struct target_ops) <to_async>: Use it.
14076
bf7105a4
JB
140772014-01-15 Joel Brobecker <brobecker@adacore.com>
14078
14079 * python/py-value.c (get_field_type): Remove unnecessary curly
14080 braces for single-statement if block.
14081
a8f35c2e
JB
140822014-01-15 Joel Brobecker <brobecker@adacore.com>
14083
14084 * python/py-type.c (convert_field): Add missing empty line
14085 after declarations.
14086
bb4142cf
DE
140872014-01-14 Doug Evans <dje@google.com>
14088
14089 * symfile.h (expand_symtabs_matching): Renamed from
14090 expand_partial_symbol_names. Update prototype.
14091 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14092 * symfile.c (expand_symtabs_matching): Renamed from
14093 expand_partial_symbol_names. New args file_matcher, kind.
14094 Rename arg fun to symbol_matcher.
14095 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14096 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14097 ada_expand_partial_symbol_name.
14098 (ada_make_symbol_completion_list): Update to call
14099 expand_symtabs_matching.
14100 (ada_add_global_exceptions): Call expand_symtabs_matching.
14101 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14102 call map_symbol_filenames.
14103 * symtab.c (sources_info): Update to call map_symbol_filenames.
14104 (search_symbols): Call expand_symtabs_matching.
14105 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14106 (default_make_symbol_completion_list_break_on): Update to call
14107 expand_symtabs_matching.
14108 (make_source_files_completion_list): Update to call
14109 map_symbol_filenames.
14110
206f2a57
DE
141112014-01-14 Doug Evans <dje@google.com>
14112
14113 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14114 (expand_symtabs_symbol_matcher_ftype): New typedef.
14115 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14116 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14117 * symfile.c (expand_partial_symbol_names): Update to use
14118 expand_symtabs_symbol_matcher_ftype.
14119 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14120 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14121 Arg name_matcher renamed to symbol_matcher.
14122 * psymtab.c (recursively_search_psymtabs): Update to use
14123 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14124 sym_matcher.
14125 (expand_symtabs_matching_via_partial): Update to use
14126 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14127 Arg name_matcher renamed to symbol_matcher.
14128
540c2971
DE
141292014-01-14 Doug Evans <dje@google.com>
14130
14131 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14132 (map_partial_symbol_filenames): Ditto.
14133 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14134 (map_partial_symbol_filenames): Ditto.
14135 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14136 (map_partial_symbol_filenames): Ditto.
14137 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14138 (map_partial_symbol_filenames): Ditto.
14139 * symtab.c: Delete #include "psymtab.h".
14140
8213266a
PA
141412014-01-14 Pedro Alves <palves@redhat.com>
14142 Tom Tromey <tromey@redhat.com>
14143
14144 * infrun.c (use_displaced_stepping): Use find_record_target
14145 instead of RECORD_IS_USED.
14146 (adjust_pc_after_break): Use record_full_is_used instead of
14147 RECORD_IS_USED.
14148 * record-btrace.c (record_btrace_open): Call record_preopen
14149 instead of checking RECORD_IS_USED.
14150 * record-full.c (record_full_shortname)
14151 (record_full_core_shortname): New globals.
14152 (record_full_is_used): New function.
14153 (find_full_open): Call record_preopen instead of checking
14154 RECORD_IS_USED.
14155 (init_record_full_ops): Set the target's shortname to
14156 record_full_shortname.
14157 (init_record_full_core_ops): Set the target's shortname to
14158 record_full_core_shortname.
14159 * record-full.h (record_full_is_used): Declare.
14160 * record.c (find_record_target): Make extern.
14161 (record_preopen): New function.
14162 * record.h (RECORD_IS_USED): Delete macro.
14163 (find_record_target, record_preopen): Declare functions.
14164
7ec1862d
YQ
141652014-01-14 Yao Qi <yao@codesourcery.com>
14166
14167 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14168 'len''s type to ULONGEST.
14169 (core_xfer_shared_libraries_aix): Likewise.
14170 * gdbarch.c, gdbarch.h: Regenerated.
14171 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14172 Change type of 'len' to ULONGEST.
14173 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14174 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14175
dea80a27
YQ
141762014-01-14 Yao Qi <yao@codesourcery.com>
14177
14178 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14179 type of 'len' to ULONGEST.
14180 (linux_xfer_osdata_processgroups): Likewise.
14181 (linux_xfer_osdata_threads): Likewise.
14182 (linux_xfer_osdata_fds): Likewise.
14183 (linux_xfer_osdata_isockets): Likewise.
14184 (linux_xfer_osdata_shm): Likewise.
14185 (linux_xfer_osdata_sem): Likewise.
14186 (linux_xfer_osdata_msg): Likewise.
14187 (linux_common_xfer_osdata): Likewise.
14188 (struct osdata_type) <getter>: Likewise.
14189 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14190 the declaration.
14191
b55e14c7
YQ
141922014-01-14 Yao Qi <yao@codesourcery.com>
14193
14194 * target.h (target_xfer_partial_ftype): Update.
14195 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14196 ULONGEST.
14197 * aix-thread.c (aix_thread_xfer_partial): Change type of
14198 argument 'len' to ULONGEST.
14199 * auxv.c (procfs_xfer_auxv): Likewise.
14200 (ld_so_xfer_auxv): Likewise.
14201 (memory_xfer_auxv): Likewise.
14202 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14203 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14204 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14205 * corelow.c (core_xfer_partial): Likewise.
14206 * ctf.c (ctf_xfer_partial): Likewise.
14207 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14208 '%u'.
14209 (darwin_read_dyld_info): Likewise.
14210 (darwin_xfer_partial): Likewise.
14211 * exec.c (section_table_xfer_memory_partial): Likewise.
14212 (exec_xfer_partial): Likewise.
14213 * exec.h (section_table_xfer_memory_partial): Update
14214 declaration.
14215 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14216 instead of plongest.
14217 (gnu_xfer_partial): Likewise.
14218 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14219 (ia64_hpux_xfer_solib_got): Likewise.
14220 (ia64_hpux_xfer_partial): Likewise.
14221 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14222 * inf-ptrace.c (inf_ptrace_xfer_partial):
14223 * inf-ttrace.c (inf_ttrace_xfer_partial):
14224 * linux-nat.c (linux_xfer_siginfo): Likewise.
14225 (linux_nat_xfer_partial): Likewise.
14226 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14227 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14228 * monitor.c (monitor_xfer_memory): Likewise.
14229 (monitor_xfer_partial): Likewise.
14230 * procfs.c (procfs_xfer_partial): Likewise.
14231 * record-full.c (record_full_xfer_partial): Likewise.
14232 (record_full_core_xfer_partial): Likewise.
14233 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14234 instead of plongest.
14235 (gdbsim_xfer_partial): Likewise.
14236 * remote.c (remote_xfer_partial): Likewise.
14237 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14238 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14239 declaration.
14240 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14241 (rs6000_xfer_shared_libraries): Likewise.
14242 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14243 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14244 (sparc_xfer_partial): Likewise.
14245 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14246 (spu_xfer_partial): Likewise.
14247 * spu-multiarch.c (spu_xfer_partial): Likewise.
14248 * target.c (target_read_live_memory): Likewise.
14249 (memory_xfer_live_readonly_partial): Likewise.
14250 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14251 (target_xfer_partial, default_xfer_partial): Likewise.
14252 (current_xfer_partial): Likewise.
14253 * tracepoint.c (tfile_xfer_partial): Likewise.
14254 * windows-nat.c (windows_xfer_memory): Likewise. Call
14255 pulongest instead of plongest.
14256 (windows_xfer_partial): Likewise.
14257 (windows_xfer_shared_libraries): Likewise.
14258
05804640
YQ
142592014-01-14 Yao Qi <yao@codesourcery.com>
14260
14261 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14262 target_xfer_partial_ftype.
14263
b5b08fb4
SC
142642014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14265
14266 PR python/15464
14267 PR python/16113
14268 * valops.c (value_struct_elt_bitpos): New function
14269 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14270 object to 'None' if the field name is an empty string ("").
14271 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14272 attribute to look for a field when 'name' is 'None'.
14273 (get_field_type): New function
14274
13aaf454
DE
142752014-01-13 Doug Evans <dje@google.com>
14276
14277 PR symtab/16426
14278 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14279 (try_open_dwop_file): Ditto.
14280 * gdb_bfd.c: #include "vec.h".
14281 (bfdp): New typedef.
14282 (struct gdb_bfd_data): New member included_bfds.
14283 (gdb_bfd_unref): Unref all included bfds.
14284 (gdb_bfd_record_inclusion): New function.
14285 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14286
c2cec97c
TT
142872014-01-13 Tom Tromey <tromey@redhat.com>
14288
14289 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14290
78e5999d
TT
142912014-01-13 Tom Tromey <tromey@redhat.com>
14292
14293 * defs.h (use_windows): Remove.
14294 * gdb.c (main): Update.
14295 * main.c (captured_main, gdb_main): Update.
14296 * main.h (struct captured_main_args) <use_windows>: Remove.
14297 * top.c (use_windows): Remove.
14298
f2052bbe
TT
142992014-01-13 Tom Tromey <tromey@redhat.com>
14300
14301 * defs.h (deprecated_flush_hook): Remove.
14302
fde4f8ed
JK
143032014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14304
14305 PR threads/16216
14306 * linux-thread-db.c (try_thread_db_load): Add parameter
14307 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14308 (try_thread_db_load_from_pdir_1): Move it there from here.
14309 (try_thread_db_load_from_sdir): Update caller.
14310 (try_thread_db_load_from_dir): Move it there from here.
14311
bdf61915
PP
143122014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14313
14314 * regformats/regdat.sh: Always rewrite the register file.
14315
f71e1a8d
PA
143162014-01-13 Pedro Alves <palves@redhat.com>
14317
14318 * Makefile.in (CHECK_HEADERS): New variable.
14319 (check-headers:): New rule.
14320
42c85435
TT
143212014-01-13 Tom Tromey <tromey@redhat.com>
14322
14323 * cli/cli-setshow.c (do_set_command): Update.
14324 * defs.h (deprecated_set_hook): Remove.
14325 * top.c (deprecated_set_hook): Remove.
14326
f8de5129
PA
143272014-01-13 Pedro Alves <palves@redhat.com>
14328
14329 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14330 the tracepoint if the PC is a pseudo-register.
14331
fc270c35
TT
143322014-01-13 Tom Tromey <tromey@redhat.com>
14333
14334 * defs.h (XCALLOC): Remove.
14335 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14336 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14337 * dwarf2loc.c (allocate_piece_closure): Likewise.
14338 * elfread.c (elf_symfile_segments): Likewise.
14339 (elf_symfile_segments): Likewise.
14340 * gdbtypes.c (copy_type_recursive): Likewise.
14341 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14342 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14343 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14344 XCALLOC.
14345 * mt-tdep.c (mt_gdbarch_init): Likewise.
14346 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14347 XCALLOC.
14348 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14349 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14350 * registry.c (registry_alloc_data): Likewise.
14351 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14352 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14353 * serial.c (serial_fdopen_ops): Likewise.
14354 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14355 XCALLOC.
14356 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14357 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14358 not XCALLOC.
14359
70ba0933
TT
143602014-01-13 Tom Tromey <tromey@redhat.com>
14361
14362 * defs.h (XMALLOC): Remove.
14363 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14364 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14365 * cli-out.c (struct ui_out *): Likewise.
14366 * cli/cli-dump.c (add_dump_command): Likewise.
14367 (add_dump_command): Likewise.
14368 * complaints.c (get_complaints): Likewise.
14369 (find_complaint): Likewise.
14370 * dwarf2-frame.c (execute_cfa_program): Likewise.
14371 * dwarf2read.c (abbrev_table_read_table): Likewise.
14372 * gdbarch.sh: Likewise.
14373 * gdbarch.c: Rebuild.
14374 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14375 * interps.c (interp_new): Likewise.
14376 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14377 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14378 * mi/mi-console.c (mi_console_file_new): Likewise.
14379 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14380 * mi/mi-out.c (mi_out_new): Likewise.
14381 * mi/mi-parse.c (mi_parse): Likewise.
14382 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14383 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14384 * observer.c (xalloc_observer_list_node): Likewise.
14385 * regcache.c (regcache_xmalloc_1): Likewise.
14386 * reggroups.c (reggroup_new): Likewise.
14387 (_initialize_reggroup): Likewise.
14388 * registry.c (register_data_with_cleanup): Likewise.
14389 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14390 * ser-base.c (serial_ttystate): Likewise.
14391 * ser-mingw.c (make_pipe_state): Likewise.
14392 * ser-pipe.c (pipe_open): Likewise.
14393 * serial.c (serial_open): Likewise.
14394 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14395 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14396 (tui_alloc_win_info): Likewise.
14397 (tui_add_content_elements): Likewise.
14398 * tui/tui-file.c (tui_file_new): Likewise.
14399 * tui/tui-out.c (tui_out_new): Likewise.
14400 * ui-file.c (mem_file_new): Likewise.
14401 * ui-out.c (push_level): Likewise.
14402 (make_cleanup_ui_out_end): Likewise.
14403 (append_header_to_list): Likewise.
14404 (ui_out_new): Likewise.
14405 * user-regs.c (user_reg_add_builtin): Likewise.
14406
41bf6aca
TT
144072014-01-13 Tom Tromey <tromey@redhat.com>
14408
14409 * defs.h (XZALLOC): Remove.
14410 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14411 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14412 (get_ada_tasks_inferior_data): Likewise.
14413 * auto-load.c (get_auto_load_pspace_data): Likewise.
14414 * auxv.c (get_auxv_inferior_data): Likewise.
14415 * bfd-target.c (target_bfd_reopen): Likewise.
14416 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14417 (deprecated_insert_raw_breakpoint): Likewise.
14418 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14419 * corelow.c (core_open): Likewise.
14420 * darwin-nat.c (darwin_check_new_threads): Likewise.
14421 (darwin_attach_pid): Likewise.
14422 * dummy-frame.c (dummy_frame_push): Likewise.
14423 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14424 * dwarf2loc.c (allocate_piece_closure): Likewise.
14425 * elfread.c (elf_symfile_segments): Likewise.
14426 * eval.c (ptrmath_type_p): Likewise.
14427 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14428 * gdbtypes.c (alloc_type_arch): Likewise.
14429 (alloc_type_instance): Likewise.
14430 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14431 * inf-child.c (inf_child_can_use_agent): Likewise.
14432 * inflow.c (get_inflow_inferior_data): Likewise.
14433 * infrun.c (save_infcall_suspend_state): Likewise.
14434 * jit.c (jit_reader_load): Likewise.
14435 (get_jit_objfile_data): Likewise.
14436 (get_jit_program_space_data): Likewise.
14437 (jit_object_open_impl): Likewise.
14438 (jit_symtab_open_impl): Likewise.
14439 (jit_block_open_impl): Likewise.
14440 (jit_frame_sniffer): Likewise.
14441 * linux-fork.c (add_fork): Likewise.
14442 * maint.c (make_command_stats_cleanup): Likewise.
14443 * objfiles.c (get_objfile_pspace_data): Likewise.
14444 * opencl-lang.c (struct lval_closure): Likewise.
14445 * osdata.c (osdata_start_osdata): Likewise.
14446 * progspace.c (new_address_space): Likewise.
14447 (add_program_space): Likewise.
14448 * remote-sim.c (get_sim_inferior_data): Likewise.
14449 * sh-tdep.c (sh_gdbarch_init): Likewise.
14450 * skip.c (Ignore): Likewise.
14451 (skip_delete_command): Likewise.
14452 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14453 (library_list_start_library): Likewise.
14454 (solib_aix_current_sos): Likewise.
14455 * solib-darwin.c (get_darwin_info): Likewise.
14456 (darwin_current_sos): Likewise.
14457 * solib-dsbt.c (get_dsbt_info): Likewise.
14458 * solib-ia64-hpux.c (new_so_list): Likewise.
14459 (ia64_hpux_get_solib_linkage_addr): Likewise.
14460 * solib-spu.c (append_ocl_sos): Likewise.
14461 (spu_current_sos): Likewise.
14462 * solib-svr4.c (get_svr4_info): Likewise.
14463 (svr4_keep_data_in_core): Likewise.
14464 (library_list_start_library): Likewise.
14465 (svr4_default_sos): Likewise.
14466 (svr4_read_so_list): Likewise.
14467 * solib-target.c (library_list_start_library): Likewise.
14468 (solib_target_current_sos): Likewise.
14469 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14470 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14471 * symfile.c (default_symfile_segments): Likewise.
14472 * target-descriptions.c (tdesc_data_init): Likewise.
14473 (tdesc_create_reg): Likewise.
14474 (struct tdesc_type *): Likewise.
14475 (tdesc_create_vector): Likewise.
14476 (tdesc_set_struct_size): Likewise.
14477 (struct tdesc_type *): Likewise.
14478 (tdesc_free_feature): Likewise.
14479 (tdesc_create_feature): Likewise.
14480 * windows-nat.c (windows_add_thread): Likewise.
14481 (windows_make_so): Likewise.
14482 * xml-support.c (gdb_xml_body_text): Likewise.
14483 (gdb_xml_create_parser_and_cleanup): Likewise.
14484 (xml_process_xincludes): Likewise.
14485 * xml-syscall.c (allocate_syscalls_info): Likewise.
14486 (syscall_create_syscall_desc): Likewise.
14487
5acfdbae
SDJ
144882014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14489
14490 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14491 function, with code from i386_stap_parse_special_token.
14492 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14493 (i386_stap_parse_special_token): Move code to the two functions
14494 above; simplify it.
14495
0000e5cc
PA
144962014-01-09 Pedro Alves <palves@redhat.com>
14497 Hui Zhu <hui@codesourcery.com>
14498
14499 PR gdb/16101
14500 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14501 bp_err_string. Don't mark the location shlib_disabled if the
14502 error thrown wasn't a generic or memory error. Catch errors
14503 thrown while inserting breakpoints in overlayed code. Output
14504 error message of software breakpoints.
14505 * remote.c (remote_insert_breakpoint): If this breakpoint has
14506 target-side commands but this stub doesn't support Z0 packets,
14507 throw NOT_SUPPORTED_ERROR error.
14508 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14509 * target.h (target_insert_breakpoint): Extend comment.
14510 (target_insert_hw_breakpoint): Add comment.
14511
b7ea362b
PA
145122014-01-08 Pedro Alves <palves@redhat.com>
14513
14514 * remote.c (remote_add_thread): Add threads silently if starting
14515 up.
14516 (remote_notice_new_inferior): If in all-stop, and starting up,
14517 don't call notice_new_inferior.
14518 (get_current_thread): New function, factored out from ...
14519 (add_current_inferior_and_thread): ... this. Adjust.
14520 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14521 found any thread, then select the remote's current thread as GDB's
14522 current thread too.
14523
b7bba001
JB
145242014-01-08 Joel Brobecker <brobecker@adacore.com>
14525
14526 * NEWS: Create a new section for the next release branch.
14527 Rename the section of the current branch, now that it has
14528 been cut.
14529
16dfbded
JB
145302014-01-08 Joel Brobecker <brobecker@adacore.com>
14531
14532 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14533 * version.in: Bump version to 7.7.50.DATE-cvs.
14534
22c90ac1
YQ
145352014-01-08 Yao Qi <yao@codesourcery.com>
14536
14537 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14538 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14539 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14540
d64ad97c
YQ
145412014-01-08 Yao Qi <yao@codesourcery.com>
14542
14543 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14544 return value of bfd_get_filename to symbol_file_add_from_bfd.
14545
f93ba80c
PM
145462014-01-08 Pierre Muller <muller@sourceware.org>
14547
14548 Fix PR16201.
14549 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14550 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14551 to prim_record_mininal_symbol_and_info.
14552 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14553 in call to prim_record_minimal_symbol_and_info.
14554 (read_pe_exported_syms): Set index field of section_data.
14555
a4d9ba85
AP
145562014-01-07 Andrew Pinski <apinski@cavium.com>
14557
14558 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14559 * features/aarch64.c: Regenerate.
14560
1b67eb02
AS
145612014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14562
14563 * target.c (return_null): Define.
14564 (update_current_target): Use it instead of return_zero for
14565 functions that return a pointer.
14566
5e3f4fab
EBM
145672014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14568
14569 * source.c (add_path): Fix check for duplicated paths in the previously
14570 included paths.
14571
e2616788
HK
145722014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14573
14574 * ada-lang.c: Remove duplicated include statements.
14575 * alphabsd-nat.c: Ditto.
14576 * amd64-darwin-tdep.c: Ditto.
14577 * amd64fbsd-nat.c: Ditto.
14578 * auto-load.c: Ditto.
14579 * ax-gdb.c: Ditto.
14580 * breakpoint.c: Ditto.
14581 * dbxread.c: Ditto.
14582 * fork-child.c: Ditto.
14583 * gdb_usleep.c: Ditto.
14584 * i386-darwin-tdep.c: Ditto.
14585 * i386fbsd-nat.c: Ditto.
14586 * infcmd.c: Ditto.
14587 * inferior.c: Ditto.
14588 * jv-lang.c: Ditto.
14589 * linux-nat.c: Ditto.
14590 * linux-tdep.c: Ditto.
14591 * m68kbsd-nat.c: Ditto.
14592 * m68klinux-nat.c: Ditto.
14593 * microblaze-tdep.c: Ditto.
14594 * mips-linux-tdep.c: Ditto.
14595 * mn10300-tdep.c: Ditto.
14596 * nto-tdep.c: Ditto.
14597 * opencl-lang.c: Ditto.
14598 * osdata.c: Ditto.
14599 * printcmd.c: Ditto.
14600 * regcache.c: Ditto.
14601 * remote-m32r-sdi.c: Ditto.
14602 * remote.c: Ditto.
14603 * symfile.c: Ditto.
14604 * symtab.c: Ditto.
14605 * tilegx-linux-nat.c: Ditto.
14606 * tilegx-tdep.c: Ditto.
14607 * tracepoint.c: Ditto.
14608 * valops.c: Ditto.
14609 * vaxbsd-nat.c: Ditto.
14610 * windows-nat.c: Ditto.
14611 * xtensa-tdep.c: Ditto.
14612
bd1f7788
YQ
146132014-01-07 Yao Qi <yao@codesourcery.com>
14614
14615 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14616
79301218
JB
146172014-01-07 Yao Qi <yao@codesourcery.com>
14618 Joel Brobecker <brobecker@adacore.com>
14619
14620 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14621 (pdc_write_regs): Likewise.
14622 (fetch_regs_kernel_thread): Likewise.
14623 (store_regs_kernel_thread): Likewise.
14624
146252014-01-07 Joel Brobecker <brobecker@adacore.com>
14626
14627 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14628 tagged type objects to their actual type.
14629
8e355c5d
JB
146302014-01-07 Joel Brobecker <brobecker@adacore.com>
14631
14632 * ada-valprint.c (print_field_values): Add "language" parameter.
14633 Update calls to print_field_values and print_variant_part.
14634 Pass new parameter "language" in call to val_print instead
14635 of "current_language". Replace call to ada_val_print by call
14636 to val_print.
14637 (print_variant_part): Add "language" parameter.
14638 (ada_val_print_struct_union): Update call to print_field_values.
14639
4fbf5aa5
JB
146402014-01-07 Joel Brobecker <brobecker@adacore.com>
14641
14642 * ada-valprint.c (ui_memcpy): Delete.
14643 (ada_print_floating): Update documentation. Add empty line
14644 between between function documentation and implementation.
14645 Delete variable "buffer". Use ui_file_xstrdup in place of
14646 ui_file_put. Minor adjustments following this change.
14647
71855601
JB
146482014-01-07 Joel Brobecker <brobecker@adacore.com>
14649
14650 * ada-valprint.c (ada_val_print_string): New function,
14651 extracted from ada_val_print_array.
14652 (ada_val_print_array): Replace extracted code by call
14653 to ada_val_print_string followed by a return. Move
14654 "else" branch to the function's top block.
14655
4eb27a30
JB
146562014-01-07 Joel Brobecker <brobecker@adacore.com>
14657
14658 * ada-valprint.c (ada_val_print_array): Move implementation
14659 down. Rename parameter "offset" and "val" into "offset_aligned"
14660 and "original_value" respectively. Add parameter "offset".
14661
34b27950
JB
146622014-01-07 Joel Brobecker <brobecker@adacore.com>
14663
14664 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14665 re-organizing the code. Change the "???" message printed
14666 when target type is a TYPE_CODE_UNDEF into
14667 "<ref to undefined type>".
14668
079e4591
JB
146692014-01-07 Joel Brobecker <brobecker@adacore.com>
14670
14671 * ada-valprint.c (print_record): Delete, implementation inlined...
14672 (ada_val_print_struct_union): ... here. Remove call to
14673 ada_check_typedef in inlined implementation.
14674
8004dfd1
JB
146752014-01-07 Joel Brobecker <brobecker@adacore.com>
14676
14677 * ada-valprint.c (ada_val_print_gnat_array): New function,
14678 extracted from ada_val_print_1;
14679 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14680 (ada_val_print_flt, ada_val_print_struct_union)
14681 (ada_val_print_ref): Likewise.
14682 (ada_val_print_1): Delete variables i and elttype.
14683 Replace extracted-out code by call to corresponding
14684 new functions.
14685
760a2db0
JB
146862014-01-07 Joel Brobecker <brobecker@adacore.com>
14687
14688 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14689
3a92c861
JB
146902014-01-07 Joel Brobecker <brobecker@adacore.com>
14691
14692 * ada-valprint.c (ada_val_print_1): Replace calls to
14693 ada_val_print_1 by calls to val_print.
14694
cd1630f9
JB
146952014-01-07 Joel Brobecker <brobecker@adacore.com>
14696
14697 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14698 Update calls to self accordingly. Replace calls to c_val_print
14699 by calls to val_print.
14700
bdf779a0
JB
147012014-01-07 Joel Brobecker <brobecker@adacore.com>
14702
14703 * ada-valprint.c (print_record): Delete declaration.
14704 (adjust_type_signedness, ada_val_print_1): Likewise.
14705 (ada_val_print): Move function implementation down.
14706 (print_variant_part, print_field_values, print_record):
14707 Move function implementation up.
14708
c0d48811
JB
147092014-01-07 Joel Brobecker <brobecker@adacore.com>
14710
14711 * python/py-type.c (typy_get_name): New function.
14712 (type_object_getset): Add entry for attribute "name".
14713 * NEWS: Add entry mentioning this new attribute.
14714
c26e9cbb
YQ
147152014-01-07 Yao Qi <yao@codesourcery.com>
14716
14717 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14718 statement.
14719
0cc6f43d
YQ
147202014-01-07 Yao Qi <yao@codesourcery.com>
14721
14722 * gnu-nat.c (info_port_rights): Add qualifier const to
14723 argument args.
14724
eec03155
YQ
147252014-01-07 Yao Qi <yao@codesourcery.com>
14726
14727 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14728
f04a82ef
YQ
147292014-01-07 Yao Qi <yao@codesourcery.com>
14730
14731 * gnu-nat.c (make_inf) Update declaration.
14732 (make_inf): Make it static.
14733 (inf_set_traced): Likewise.
14734 (inf_port_to_thread, inf_task_died_status): Likewise.
14735
d57dda0a
YQ
147362014-01-07 Yao Qi <yao@codesourcery.com>
14737
14738 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14739
3aa8c969
YQ
147402014-01-07 Yao Qi <yao@codesourcery.com>
14741
14742 * gnu-nat.c (_initialize_gnu_nat): Declare.
14743
94123b4f
YQ
147442014-01-07 Yao Qi <yao@codesourcery.com>
14745
14746 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14747 'enum bfd_endian'.
14748 (struct gdbarch_info) <byte_order>: Change type to
14749 'enum bfd_endian'.
14750 <byte_order_for_code>: Likewise.
14751 * gdbarch.c, gdbarch.h: Regenerated.
14752
dc81d70a
TT
147532014-01-06 Sasha Smundak <asmundak@google.com>
14754
14755 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14756
cc2f3c35
TT
147572014-01-06 Tom Tromey <tromey@redhat.com>
14758
14759 * doublest.c (convert_doublest_to_floatformat): Use const, not
14760 CONST.
14761 * somread.c (som_symtab_read): Likewise.
14762
adcf2eed
HZ
147632014-01-07 Hui Zhu <hui@codesourcery.com>
14764
14765 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14766 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14767 (gdb_bfd_fopen): Ditto.
14768 (gdb_bfd_openr): Ditto.
14769 (gdb_bfd_openw): Ditto.
14770 (gdb_bfd_openr_iovec): Ditto.
14771 (gdb_bfd_fdopenr): Ditto.
14772 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14773 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14774 with xstrdup.
14775 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14776 with xstrdup.
14777 * symfile-mem.c (symbol_file_add_from_memory): Removed
14778 gdb_bfd_stash_filename.
14779
50722198
DE
147802014-01-03 Doug Evans <dje@google.com>
14781
14782 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14783 output.
14784
2fa4b862
JB
147852014-01-01 Joel Brobecker <brobecker@adacore.com>
14786
14787 Update year range in copyright notice of all files.
14788
28498c42
JB
147892014-01-01 Joel Brobecker <brobecker@adacore.com>
14790
14791 * top.c (print_gdb_version): Set copyright year to 2014.
14792
7b6e1046
JB
147932014-01-01 Joel Brobecker <brobecker@adacore.com>
14794
14795 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14796
df96af55 14797For older changes see ChangeLog-2013.
c906108c
SS
14798\f
14799Local Variables:
14800mode: change-log
14801left-margin: 8
14802fill-column: 74
14803version-control: never
57da7796 14804coding: utf-8
c906108c 14805End:
This page took 2.257942 seconds and 4 git commands to generate.